diff --git a/next/sample/pr/3325/assets/App-c9ixsJC9.js b/next/sample/pr/3325/assets/App-c9ixsJC9.js new file mode 100644 index 0000000000..be0606eeca --- /dev/null +++ b/next/sample/pr/3325/assets/App-c9ixsJC9.js @@ -0,0 +1,1790 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mgt-person-card-Cbp5qkpX.js","assets/index-hkJM60Tb.js","assets/mgt-file-list-BTjQjdgt.js","assets/repeat-BYNG0dST.js","assets/mgt-file-Dpu464qL.js","assets/index-D1MpQKKC.js","assets/mgt-spinner-DCTBtyM4.js","assets/DashboardPage-NUm-gm1t.js","assets/PageHeader-BLfiQIXJ.js","assets/get-Bki3P7Iw.js","assets/mgt-get-nlun5DqF.js","assets/DataGridHeaderCell-Bb_zMzQi.js","assets/mgt-picker-DJC_Ceuz.js","assets/index-DlteEK7B.js","assets/OutlookPage-D0nneFIP.js","assets/mgt-people-BdxEzgIY.js","assets/SearchPage-BdnzkGN-.js","assets/HomePage-DGzFPoL9.js","assets/FilesPage-TXxll6sC.js","assets/TaxonomyPage-CEcnOueD.js"])))=>i.map(i=>d[i]); +import{E as Bh,P as dc,a as je,b as U,c as uo,R as et,r as b,d as Rr,e as kv,_ as hs,p as ae,f as Ph,g as fr,h as xv,s as Vu,i as Cv,j as O}from"./index-hkJM60Tb.js";/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Si=globalThis,fc=Si.ShadowRoot&&(Si.ShadyCSS===void 0||Si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fh=Symbol(),Hu=new WeakMap;let Sv=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Fh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(fc&&e===void 0){const o=r!==void 0&&r.length===1;o&&(e=Hu.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Hu.set(r,e))}return e}toString(){return this.cssText}};const _v=t=>new Sv(typeof t=="string"?t:t+"",void 0,Fh),Bv=(t,e)=>{if(fc)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of e){const o=document.createElement("style"),n=Si.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},ju=fc?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const o of e.cssRules)r+=o.cssText;return _v(r)})(t):t;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const{is:Pv,defineProperty:Fv,getOwnPropertyDescriptor:Tv,getOwnPropertyNames:Ev,getOwnPropertySymbols:$v,getPrototypeOf:Av}=Object,rr=globalThis,qu=rr.trustedTypes,Nv=qu?qu.emptyScript:"",ba=rr.reactiveElementPolyfillSupport,an=(t,e)=>t,Oi={toAttribute(t,e){switch(e){case Boolean:t=t?Nv:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},hc=(t,e)=>!Pv(t,e),Uu={attribute:!0,type:String,converter:Oi,reflect:!1,hasChanged:hc};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),rr.litPropertyMetadata??(rr.litPropertyMetadata=new WeakMap);let Go=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=Uu){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){const o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&Fv(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){const{get:n,set:i}=Tv(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n==null?void 0:n.call(this)},set(s){const a=n==null?void 0:n.call(this);i.call(this,s),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Uu}static _$Ei(){if(this.hasOwnProperty(an("elementProperties")))return;const e=Av(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(an("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(an("properties"))){const r=this.properties,o=[...Ev(r),...$v(r)];for(const n of o)this.createProperty(n,r[n])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(const[r,o]of this.elementProperties){const n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const n of o)r.unshift(ju(n))}else e!==void 0&&r.push(ju(e));return r}static _$Eu(e,r){const o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(r=>r(this))}addController(e){var r;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Bv(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostDisconnected)==null?void 0:o.call(r)})}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$EC(e,r){var i;const o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){const s=(((i=o.converter)==null?void 0:i.toAttribute)!==void 0?o.converter:Oi).toAttribute(r,o.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){var i;const o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const s=o.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((i=s.converter)==null?void 0:i.fromAttribute)!==void 0?s.converter:Oi;this._$Em=n,this[n]=a.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,o){if(e!==void 0){if(o??(o=this.constructor.getPropertyOptions(e)),!(o.hasChanged??hc)(this[e],r))return;this.P(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,o){this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[i,s]of n)s.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],s)}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(o=this._$EO)==null||o.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(r)):this._$EU()}catch(n){throw e=!1,this._$EU(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach(o=>{var n;return(n=o.hostUpdated)==null?void 0:n.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(e){}firstUpdated(e){}};Go.elementStyles=[],Go.shadowRootOptions={mode:"open"},Go[an("elementProperties")]=new Map,Go[an("finalized")]=new Map,ba==null||ba({ReactiveElement:Go}),(rr.reactiveElementVersions??(rr.reactiveElementVersions=[])).push("2.0.4");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Lv={attribute:!0,type:String,converter:Oi,reflect:!1,hasChanged:hc},Rv=(t=Lv,e,r)=>{const{kind:o,metadata:n}=r;let i=globalThis.litPropertyMetadata.get(n);if(i===void 0&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(r.name,t),o==="accessor"){const{name:s}=r;return{set(a){const l=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,l,t)},init(a){return a!==void 0&&this.P(s,void 0,t),a}}}if(o==="setter"){const{name:s}=r;return function(a){const l=this[s];e.call(this,a),this.requestUpdate(s,l,t)}}throw Error("Unsupported decorator location: "+o)};function Y(t){return(e,r)=>typeof r=="object"?Rv(t,e,r):((o,n,i)=>{const s=n.hasOwnProperty(i);return n.constructor.createProperty(i,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(n,i):void 0})(t,e,r)}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function at(t){return Y({...t,state:!0,attribute:!1})}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const ln=globalThis,Ii=ln.trustedTypes,Wu=Ii?Ii.createPolicy("lit-html",{createHTML:t=>t}):void 0,pc="$lit$",Dt=`lit$${(Math.random()+"").slice(9)}$`,gc="?"+Dt,Dv=`<${gc}>`,Dr=document,Mi=()=>Dr.createComment(""),yn=t=>t===null||typeof t!="object"&&typeof t!="function",Th=Array.isArray,Eh=t=>Th(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",ya=`[ +\f\r]`,Xo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zu=/-->/g,Gu=/>/g,br=RegExp(`>|${ya}(?:([^\\s"'>=/]+)(${ya}*=${ya}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),Xu=/'/g,Ku=/"/g,$h=/^(?:script|style|textarea|title)$/i,vo=Symbol.for("lit-noChange"),Pe=Symbol.for("lit-nothing"),Ju=new WeakMap,Pr=Dr.createTreeWalker(Dr,129);function Ah(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wu!==void 0?Wu.createHTML(e):e}const Nh=(t,e)=>{const r=t.length-1,o=[];let n,i=e===2?"":"",s=Xo;for(let a=0;a"?(s=n??Xo,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?br:u[3]==='"'?Ku:Xu):s===Ku||s===Xu?s=br:s===Zu||s===Gu?s=Xo:(s=br,n=void 0);const p=s===br&&t[a+1].startsWith("/>")?" ":"";i+=s===Xo?l+Dv:d>=0?(o.push(c),l.slice(0,d)+pc+l.slice(d)+Dt+p):l+Dt+(d===-2?a:p)}return[Ah(t,i+(t[r]||"")+(e===2?"":"")),o]};let kl=class Lh{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let i=0,s=0;const a=e.length-1,l=this.parts,[c,u]=Nh(e,r);if(this.el=Lh.createElement(c,o),Pr.currentNode=this.el.content,r===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=Pr.nextNode())!==null&&l.length0){n.textContent=Ii?Ii.emptyScript:"";for(let p=0;p2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Pe}_$AI(e,r=this,o,n){const i=this.strings;let s=!1;if(i===void 0)e=Or(this,e,r,0),s=!yn(e)||e!==this._$AH&&e!==vo,s&&(this._$AH=e);else{const a=e;let l,c;for(e=i[0],l=0;lnew Vh(typeof t=="string"?t:t+"",void 0,bc),ps=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((o,n,i)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1],t[0]);return new Vh(r,t,bc)},Iv=(t,e)=>{if(mc)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of e){const o=document.createElement("style"),n=_i.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},Yu=mc?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const o of e.cssRules)r+=o.cssText;return Ov(r)})(t):t;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const{is:Mv,defineProperty:zv,getOwnPropertyDescriptor:Vv,getOwnPropertyNames:Hv,getOwnPropertySymbols:jv,getPrototypeOf:qv}=Object,or=globalThis,ed=or.trustedTypes,Uv=ed?ed.emptyScript:"",ka=or.reactiveElementPolyfillSupport,cn=(t,e)=>t,xl={toAttribute(t,e){switch(e){case Boolean:t=t?Uv:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Hh=(t,e)=>!Mv(t,e),td={attribute:!0,type:String,converter:xl,reflect:!1,hasChanged:Hh};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),or.litPropertyMetadata??(or.litPropertyMetadata=new WeakMap);let oo=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=td){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){const o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&zv(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){const{get:n,set:i}=Vv(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n==null?void 0:n.call(this)},set(s){const a=n==null?void 0:n.call(this);i.call(this,s),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??td}static _$Ei(){if(this.hasOwnProperty(cn("elementProperties")))return;const e=qv(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(cn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(cn("properties"))){const r=this.properties,o=[...Hv(r),...jv(r)];for(const n of o)this.createProperty(n,r[n])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(const[r,o]of this.elementProperties){const n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const n of o)r.unshift(Yu(n))}else e!==void 0&&r.push(Yu(e));return r}static _$Eu(e,r){const o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(r=>r(this))}addController(e){var r;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Iv(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostDisconnected)==null?void 0:o.call(r)})}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$EC(e,r){var i;const o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){const s=(((i=o.converter)==null?void 0:i.toAttribute)!==void 0?o.converter:xl).toAttribute(r,o.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){var i;const o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const s=o.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((i=s.converter)==null?void 0:i.fromAttribute)!==void 0?s.converter:xl;this._$Em=n,this[n]=a.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,o){if(e!==void 0){if(o??(o=this.constructor.getPropertyOptions(e)),!(o.hasChanged??Hh)(this[e],r))return;this.P(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,o){this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[i,s]of n)s.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],s)}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(o=this._$EO)==null||o.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(r)):this._$EU()}catch(n){throw e=!1,this._$EU(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach(o=>{var n;return(n=o.hostUpdated)==null?void 0:n.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(e){}firstUpdated(e){}};oo.elementStyles=[],oo.shadowRootOptions={mode:"open"},oo[cn("elementProperties")]=new Map,oo[cn("finalized")]=new Map,ka==null||ka({ReactiveElement:oo}),(or.reactiveElementVersions??(or.reactiveElementVersions=[])).push("2.0.4");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const un=globalThis,zi=un.trustedTypes,rd=zi?zi.createPolicy("lit-html",{createHTML:t=>t}):void 0,jh="$lit$",Yt=`lit$${(Math.random()+"").slice(9)}$`,qh="?"+Yt,Wv=`<${qh}>`,Ir=document,wn=()=>Ir.createComment(""),kn=t=>t===null||typeof t!="object"&&typeof t!="function",Uh=Array.isArray,Zv=t=>Uh(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",xa=`[ +\f\r]`,Ko=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,od=/-->/g,nd=/>/g,yr=RegExp(`>|${xa}(?:([^\\s"'>=/]+)(${xa}*=${xa}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),id=/'/g,sd=/"/g,Wh=/^(?:script|style|textarea|title)$/i,Gv=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),P=Gv(1),mo=Symbol.for("lit-noChange"),Fe=Symbol.for("lit-nothing"),ad=new WeakMap,Fr=Ir.createTreeWalker(Ir,129);function Zh(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return rd!==void 0?rd.createHTML(e):e}const Xv=(t,e)=>{const r=t.length-1,o=[];let n,i=e===2?"":"",s=Ko;for(let a=0;a"?(s=n??Ko,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?yr:u[3]==='"'?sd:id):s===sd||s===id?s=yr:s===od||s===nd?s=Ko:(s=yr,n=void 0);const p=s===yr&&t[a+1].startsWith("/>")?" ":"";i+=s===Ko?l+Wv:d>=0?(o.push(c),l.slice(0,d)+jh+l.slice(d)+Yt+p):l+Yt+(d===-2?a:p)}return[Zh(t,i+(t[r]||"")+(e===2?"":"")),o]};class xn{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let i=0,s=0;const a=e.length-1,l=this.parts,[c,u]=Xv(e,r);if(this.el=xn.createElement(c,o),Fr.currentNode=this.el.content,r===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=Fr.nextNode())!==null&&l.length0){n.textContent=zi?zi.emptyScript:"";for(let p=0;p2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Fe}_$AI(e,r=this,o,n){const i=this.strings;let s=!1;if(i===void 0)e=bo(this,e,r,0),s=!kn(e)||e!==this._$AH&&e!==mo,s&&(this._$AH=e);else{const a=e;let l,c;for(e=i[0],l=0;l{const o=(r==null?void 0:r.renderBefore)??e;let n=o._$litPart$;if(n===void 0){const i=(r==null?void 0:r.renderBefore)??null;o._$litPart$=n=new qn(e.insertBefore(wn(),i),i,void 0,r??{})}return n._$AI(t),n};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */let fo=class extends oo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r;const e=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=e.firstChild),e}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=tm(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return mo}};var _h;fo._$litElement$=!0,fo.finalized=!0,(_h=globalThis.litElementHydrateSupport)==null||_h.call(globalThis,{LitElement:fo});const Sa=globalThis.litElementPolyfillSupport;Sa==null||Sa({LitElement:fo});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");class ze{static get strings(){return this._strings}static set strings(e){this._strings=e,this._stringsEventDispatcher.fire(null)}static getDocumentDirection(){var e,r;switch(((e=document.body)===null||e===void 0?void 0:e.getAttribute("dir"))||((r=document.documentElement)===null||r===void 0?void 0:r.getAttribute("dir"))){case"rtl":return"rtl";case"auto":return"auto";case"ltr":default:return"ltr"}}static onStringsUpdated(e){this._stringsEventDispatcher.add(e)}static removeOnStringsUpdated(e){this._stringsEventDispatcher.remove(e)}static onDirectionUpdated(e){this._directionEventDispatcher.add(e),this.initDirection()}static removeOnDirectionUpdated(e){this._directionEventDispatcher.remove(e)}static initDirection(){if(this._isDirectionInit)return;this._isDirectionInit=!0,this.mutationObserver=new MutationObserver(r=>{r.forEach(o=>{o.attributeName==="dir"&&this._directionEventDispatcher.fire(null)})});const e={attributes:!0,attributeFilter:["dir"]};this.mutationObserver.observe(document.body,e),this.mutationObserver.observe(document.documentElement,e)}static updateStringsForTag(e,r){var o;if(e=e.toLowerCase(),e.startsWith("mgt-")&&(e=e.substring(4)),this._strings&&r){for(const n of Object.entries(r)){const i=this._strings[n[0]];typeof i=="string"&&(r[n[0]]=i)}if(!((o=this._strings._components)===null||o===void 0)&&o[e]){const n=this._strings._components[e];for(const i of Object.keys(n))r[i]&&(r[i]=n[i])}}return r}}ze._stringsEventDispatcher=new Bh;ze._directionEventDispatcher=new Bh;ze._isDirectionInit=!1;var Gh=function(t,e,r,o){var n=arguments.length,i=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(i=(n<3?s(i):n>3?s(e,r,i):s(e,r))||i);return n>3&&i&&Object.defineProperty(e,r,i),i},Xh=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)},ld=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})},nr;(function(t){t.mobile="",t.tablet="tablet",t.desktop="desktop"})(nr||(nr={}));class Kh extends fo{static get packageVersion(){return dc}get mediaQuery(){return this.offsetWidth<768?nr.mobile:this.offsetWidth<1200?nr.tablet:nr.desktop}get isLoadingState(){return this._isLoadingState}get isFirstUpdated(){return this._isFirstUpdated}get strings(){return{}}constructor(){super(),this.providerState=je.Loading,this.direction="ltr",this._isLoadingState=!1,this._isFirstUpdated=!1,this.setLoadingState=e=>{this._isLoadingState!==e&&(this._isLoadingState=e,this.requestUpdate("isLoadingState"))},this.handleProviderUpdates=()=>{var e,r;this.providerState=(r=(e=U.globalProvider)===null||e===void 0?void 0:e.state)!==null&&r!==void 0?r:je.Loading,this.requestStateUpdate()},this.handleActiveAccountUpdates=()=>{this.clearState(),this.requestStateUpdate()},this.handleLocalizationChanged=()=>{ze.updateStringsForTag(this.tagName,this.strings),this.requestUpdate()},this.handleDirectionChanged=()=>{this.direction=ze.getDocumentDirection()},this.handleDirectionChanged(),this.handleLocalizationChanged()}connectedCallback(){super.connectedCallback(),ze.onStringsUpdated(this.handleLocalizationChanged),ze.onDirectionUpdated(this.handleDirectionChanged)}disconnectedCallback(){super.disconnectedCallback(),ze.removeOnStringsUpdated(this.handleLocalizationChanged),ze.removeOnDirectionUpdated(this.handleDirectionChanged),U.removeProviderUpdatedListener(this.handleProviderUpdates),U.removeActiveAccountChangedListener(this.handleActiveAccountUpdates)}firstUpdated(e){super.firstUpdated(e),this._isFirstUpdated=!0,U.onProviderUpdated(this.handleProviderUpdates),U.onActiveAccountChanged(this.handleActiveAccountUpdates),this.requestStateUpdate()}loadState(){return Promise.resolve()}clearState(){}fireCustomEvent(e,r,o=!1,n=!1,i=!1){const s=new CustomEvent(e,{bubbles:o,cancelable:n,composed:i,detail:r});return this.dispatchEvent(s)}updated(e){super.updated(e);const r=new CustomEvent("updated",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}requestStateUpdate(e=!1){return ld(this,void 0,void 0,function*(){if(!this._isFirstUpdated)return;this.isLoadingState&&!e&&(yield this._currentLoadStatePromise);const r=U.globalProvider;if(!r)return Promise.resolve();if(r.state===je.SignedOut){this.clearState();return}else{if(r.state===je.Loading)return Promise.resolve();{const o=new Promise((n,i)=>ld(this,void 0,void 0,function*(){try{this.setLoadingState(!0),this.fireCustomEvent("loadingInitiated"),yield this.loadState(),this.setLoadingState(!1),this.fireCustomEvent("loadingCompleted"),n()}catch(s){this.clearState(),this.setLoadingState(!1),this.fireCustomEvent("loadingFailed"),i(s)}return this._currentLoadStatePromise=this.isLoadingState&&this._currentLoadStatePromise&&e?this._currentLoadStatePromise.then(()=>o):o}))}}})}}Gh([at(),Xh("design:type",Number)],Kh.prototype,"providerState",void 0);Gh([at(),Xh("design:type",String)],Kh.prototype,"direction",void 0);/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Bi=globalThis,yc=Bi.ShadowRoot&&(Bi.ShadyCSS===void 0||Bi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jh=Symbol(),cd=new WeakMap;let rm=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Jh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(yc&&e===void 0){const o=r!==void 0&&r.length===1;o&&(e=cd.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&cd.set(r,e))}return e}toString(){return this.cssText}};const om=t=>new rm(typeof t=="string"?t:t+"",void 0,Jh),nm=(t,e)=>{if(yc)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of e){const o=document.createElement("style"),n=Bi.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},ud=yc?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const o of e.cssRules)r+=o.cssText;return om(r)})(t):t;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const{is:im,defineProperty:sm,getOwnPropertyDescriptor:am,getOwnPropertyNames:lm,getOwnPropertySymbols:cm,getPrototypeOf:um}=Object,ir=globalThis,dd=ir.trustedTypes,dm=dd?dd.emptyScript:"",_a=ir.reactiveElementPolyfillSupport,dn=(t,e)=>t,Cl={toAttribute(t,e){switch(e){case Boolean:t=t?dm:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},wc=(t,e)=>!im(t,e),fd={attribute:!0,type:String,converter:Cl,reflect:!1,hasChanged:wc};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),ir.litPropertyMetadata??(ir.litPropertyMetadata=new WeakMap);class Jo extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=fd){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){const o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&sm(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){const{get:n,set:i}=am(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n==null?void 0:n.call(this)},set(s){const a=n==null?void 0:n.call(this);i.call(this,s),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??fd}static _$Ei(){if(this.hasOwnProperty(dn("elementProperties")))return;const e=um(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(dn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(dn("properties"))){const r=this.properties,o=[...lm(r),...cm(r)];for(const n of o)this.createProperty(n,r[n])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(const[r,o]of this.elementProperties){const n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const n of o)r.unshift(ud(n))}else e!==void 0&&r.push(ud(e));return r}static _$Eu(e,r){const o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$Eg=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$ES(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(r=>r(this))}addController(e){var r;(this._$E_??(this._$E_=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var r;(r=this._$E_)==null||r.delete(e)}_$ES(){const e=new Map,r=this.constructor.elementProperties;for(const o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return nm(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$E_)==null||e.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$E_)==null||e.forEach(r=>{var o;return(o=r.hostDisconnected)==null?void 0:o.call(r)})}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$EO(e,r){var i;const o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){const s=(((i=o.converter)==null?void 0:i.toAttribute)!==void 0?o.converter:Cl).toAttribute(r,o.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){var i;const o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const s=o.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((i=s.converter)==null?void 0:i.fromAttribute)!==void 0?s.converter:Cl;this._$Em=n,this[n]=a.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,o){if(e!==void 0){if(o??(o=this.constructor.getPropertyOptions(e)),!(o.hasChanged??wc)(this[e],r))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,o){this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Em!==e&&(this._$ET??(this._$ET=new Set)).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,s]of this._$Ep)this[i]=s;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[i,s]of n)s.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],s)}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(o=this._$E_)==null||o.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(r)):this._$Ej()}catch(n){throw e=!1,this._$Ej(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$E_)==null||r.forEach(o=>{var n;return(n=o.hostUpdated)==null?void 0:n.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ej(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$ET&&(this._$ET=this._$ET.forEach(r=>this._$EO(r,this[r]))),this._$Ej()}updated(e){}firstUpdated(e){}}Jo.elementStyles=[],Jo.shadowRootOptions={mode:"open"},Jo[dn("elementProperties")]=new Map,Jo[dn("finalized")]=new Map,_a==null||_a({ReactiveElement:Jo}),(ir.reactiveElementVersions??(ir.reactiveElementVersions=[])).push("2.0.3");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const fm={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},hm=Symbol();class pm{get taskComplete(){return this.t||(this.status===1?this.t=new Promise((e,r)=>{this.i=e,this.o=r}):this.status===3?this.t=Promise.reject(this.h):this.t=Promise.resolve(this.l)),this.t}constructor(e,r,o){var i;this.u=0,this.status=0,(this.p=e).addController(this);const n=typeof r=="object"?r:{task:r,args:o};this._=n.task,this.v=n.args,this.j=n.argsEqual??gm,this.m=n.onComplete,this.g=n.onError,this.autoRun=n.autoRun??!0,"initialValue"in n&&(this.l=n.initialValue,this.status=2,this.k=(i=this.A)==null?void 0:i.call(this))}hostUpdate(){this.autoRun===!0&&this.O()}hostUpdated(){this.autoRun==="afterUpdate"&&this.O()}A(){if(this.v===void 0)return;const e=this.v();if(!Array.isArray(e))throw Error("The args function must return an array");return e}async O(){const e=this.A(),r=this.k;this.k=e,e===r||e===void 0||r!==void 0&&this.j(r,e)||await this.run(e)}async run(e){var s,a,l,c,u;let r,o;e??(e=this.A()),this.k=e,this.status===1?(s=this.T)==null||s.abort():(this.t=void 0,this.i=void 0,this.o=void 0),this.status=1,this.autoRun==="afterUpdate"?queueMicrotask(()=>this.p.requestUpdate()):this.p.requestUpdate();const n=++this.u;this.T=new AbortController;let i=!1;try{r=await this._(e,{signal:this.T.signal})}catch(d){i=!0,o=d}if(this.u===n){if(r===hm)this.status=0;else{if(i===!1){try{(a=this.m)==null||a.call(this,r)}catch{}this.status=2,(l=this.i)==null||l.call(this,r)}else{try{(c=this.g)==null||c.call(this,o)}catch{}this.status=3,(u=this.o)==null||u.call(this,o)}this.l=r,this.h=o}this.p.requestUpdate()}}abort(e){var r;this.status===1&&((r=this.T)==null||r.abort(e))}get value(){return this.l}get error(){return this.h}render(e){var r,o,n,i;switch(this.status){case 0:return(r=e.initial)==null?void 0:r.call(e);case 1:return(o=e.pending)==null?void 0:o.call(e);case 2:return(n=e.complete)==null?void 0:n.call(e,this.value);case 3:return(i=e.error)==null?void 0:i.call(e,this.error);default:throw Error("Unexpected status: "+this.status)}}}const gm=(t,e)=>t===e||t.length===e.length&&t.every((r,o)=>!wc(r,e[o]));var Qh=function(t,e,r,o){var n=arguments.length,i=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(i=(n<3?s(i):n>3?s(e,r,i):s(e,r))||i);return n>3&&i&&Object.defineProperty(e,r,i),i},Yh=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)},vm=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};class Un extends fo{static get packageVersion(){return dc}get mediaQuery(){return this.offsetWidth<768?nr.mobile:this.offsetWidth<1200?nr.tablet:nr.desktop}get isFirstUpdated(){return this._isFirstUpdated}get strings(){return{}}constructor(){super(),this.providerState=je.Loading,this.direction="ltr",this._isFirstUpdated=!1,this._task=new pm(this,{task:()=>this.loadState(),args:()=>this.args()}),this.renderLoading=()=>P`Loading...`,this.renderError=e=>P`

Error: ${e}

`,this.renderContent=()=>P``,this.handleProviderUpdates=()=>{var e,r;this.providerState=(r=(e=U.globalProvider)===null||e===void 0?void 0:e.state)!==null&&r!==void 0?r:je.Loading},this.handleActiveAccountUpdates=()=>{this.clearState()},this.handleLocalizationChanged=()=>{ze.updateStringsForTag(this.tagName,this.strings),this.requestUpdate()},this.handleDirectionChanged=()=>{this.direction=ze.getDocumentDirection()},this.handleDirectionChanged(),this.handleLocalizationChanged()}connectedCallback(){super.connectedCallback(),ze.onStringsUpdated(this.handleLocalizationChanged),ze.onDirectionUpdated(this.handleDirectionChanged)}disconnectedCallback(){super.disconnectedCallback(),ze.removeOnStringsUpdated(this.handleLocalizationChanged),ze.removeOnDirectionUpdated(this.handleDirectionChanged),U.removeProviderUpdatedListener(this.handleProviderUpdates),U.removeActiveAccountChangedListener(this.handleActiveAccountUpdates)}firstUpdated(e){super.firstUpdated(e),this._isFirstUpdated=!0,U.onProviderUpdated(this.handleProviderUpdates),U.onActiveAccountChanged(this.handleActiveAccountUpdates)}clearState(){}fireCustomEvent(e,r,o=!1,n=!1,i=!1){const s=new CustomEvent(e,{bubbles:o,cancelable:n,composed:i,detail:r});return this.dispatchEvent(s)}updated(e){super.updated(e),this.fireCustomEvent("updated",void 0,!0,!1)}loadState(){return vm(this,void 0,void 0,function*(){return Promise.resolve()})}args(){return[this.providerState]}render(){return this._task.render({pending:this.renderLoading,complete:this.renderContent,error:this.renderError})}}Qh([at(),Yh("design:type",Number)],Un.prototype,"providerState",void 0);Qh([at(),Yh("design:type",String)],Un.prototype,"direction",void 0);const mm=(t,e)=>Sl(t,e,new Set),Sl=(t,e,r)=>{const o=Object.prototype.toString.call(t),n=Object.prototype.toString.call(e);if(typeof t=="object"&&typeof e=="object"&&o===n&&o==="[object Object]"&&!r.has(t)){r.add(t);for(const i in t)if(!Sl(t[i],e[i],r))return!1;for(const i in e)if(!Object.prototype.hasOwnProperty.call(t,i))return!1;return!0}if(Array.isArray(t)&&Array.isArray(e)&&!r.has(t)){if(r.add(t),t.length!==e.length)return!1;for(let i=0;i{const i=this.evalInContext(n||this.trimExpression(o),r);return i?typeof i=="object"?JSON.stringify(i):i.toString():""})}static renderNode(e,r,o){if(e.nodeName==="#text")return e.textContent=this.expandExpressionsAsString(e.textContent,o),e;if(e.nodeName==="TEMPLATE")return e.$parentTemplateContext=o,e;const n=e;if(n.attributes)for(const l of n.attributes)if(l.name==="data-props"){const c=this.trimExpression(l.value);for(const u of c.split(",")){const d=u.trim().split(":");if(d.length===2){const f=d[0].trim(),p=this.evalInContext(d[1].trim(),o);f.startsWith("@")?typeof p=="function"&&n.addEventListener(f.substring(1),h=>p(h,o,r)):n[f]=p}}}else n.setAttribute(l.name,this.expandExpressionsAsString(l.value,o));const i=[],s=[];let a=!1;for(const l of e.childNodes){const c=l;let u=!1;if(c.dataset){let d=!1;if(c.dataset.if){const f=c.dataset.if;this.evalBoolInContext(this.trimExpression(f),o)?(c.removeAttribute("data-if"),a=!0,u=!0):(s.push(c),d=!0)}else typeof c.dataset.else<"u"&&(a?(s.push(c),d=!0):c.removeAttribute("data-else"));c.dataset.for&&!d?i.push(c):d||this.renderNode(l,r,o)}else this.renderNode(l,r,o);!u&&l.nodeName!=="#text"&&(a=!1)}for(const l of s)n.removeChild(l);for(const l of i){const c=l.dataset.for,u=this.trimExpression(c).split(/\s(in|of)\s/i);if(u.length===3){const d=u[0].trim(),f=u[2].trim(),p=this.evalInContext(f,o);if(Array.isArray(p)){l.removeAttribute("data-for");for(let h=0;h=0;a--)(s=t[a])&&(i=(n<3?s(i):n>3?s(e,r,i):s(e,r))||i);return n>3&&i&&Object.defineProperty(e,r,i),i},r0=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};class vs extends Un{constructor(){super(),this.templates={},this._renderedSlots=!1,this._renderedTemplates={},this._slotNamesAddedDuringRender=[],this.renderLoading=()=>this.renderTemplate("loading",null)||P``,this.renderError=e=>this.hasTemplate("error")?this.renderTemplate("error",e):P` +
+ ${e} +
+ `,this.templateContext=this.templateContext||{}}update(e){this.templates=this.getTemplates(),this._slotNamesAddedDuringRender=[],super.update(e)}updated(e){super.updated(e),this.removeUnusedSlottedElements()}renderTemplate(e,r,o){if(!this.hasTemplate(e))return null;o=o||e,this._slotNamesAddedDuringRender.push(o),this._renderedSlots=!0;const n=P` + + `,i=Object.assign(Object.assign({},r),this.templateContext);if(Object.prototype.hasOwnProperty.call(this._renderedTemplates,o)){const{context:l,slot:c}=this._renderedTemplates[o];if(mm(l,i))return n;this.removeChild(c)}const s=document.createElement("div");s.slot=o,s.dataset.generated="template",e0.renderTemplate(s,this.templates[e],i),this.appendChild(s),this._renderedTemplates[o]={context:i,slot:s};const a={templateType:e,context:i,element:s};return this.fireCustomEvent("templateRendered",a),n}hasTemplate(e){var r;return!!(!((r=this.templates)===null||r===void 0)&&r[e])}getTemplates(){const e={};for(let r=0;re.some(r=>t instanceof r);let hd,pd;function bm(){return hd||(hd=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ym(){return pd||(pd=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Bl=new WeakMap,Ba=new WeakMap,ms=new WeakMap;function wm(t){const e=new Promise((r,o)=>{const n=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r($r(t.result)),n()},s=()=>{o(t.error),n()};t.addEventListener("success",i),t.addEventListener("error",s)});return ms.set(e,t),e}function km(t){if(Bl.has(t))return;const e=new Promise((r,o)=>{const n=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),n()},s=()=>{o(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});Bl.set(t,e)}let Pl={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return Bl.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return $r(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function o0(t){Pl=t(Pl)}function xm(t){return ym().includes(t)?function(...e){return t.apply(Fl(this),e),$r(this.request)}:function(...e){return $r(t.apply(Fl(this),e))}}function Cm(t){return typeof t=="function"?xm(t):(t instanceof IDBTransaction&&km(t),_l(t,bm())?new Proxy(t,Pl):t)}function $r(t){if(t instanceof IDBRequest)return wm(t);if(Ba.has(t))return Ba.get(t);const e=Cm(t);return e!==t&&(Ba.set(t,e),ms.set(e,t)),e}const Fl=t=>ms.get(t);function Sm(t,e,{blocked:r,upgrade:o,blocking:n,terminated:i}={}){const s=indexedDB.open(t,e),a=$r(s);return o&&s.addEventListener("upgradeneeded",l=>{o($r(s.result),l.oldVersion,l.newVersion,$r(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),n&&l.addEventListener("versionchange",c=>n(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const _m=["get","getKey","getAll","getAllKeys","count"],Bm=["put","add","delete","clear"],Pa=new Map;function gd(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Pa.get(e))return Pa.get(e);const r=e.replace(/FromIndex$/,""),o=e!==r,n=Bm.includes(r);if(!(r in(o?IDBIndex:IDBObjectStore).prototype)||!(n||_m.includes(r)))return;const i=async function(s,...a){const l=this.transaction(s,n?"readwrite":"readonly");let c=l.store;return o&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),n&&l.done]))[0]};return Pa.set(e,i),i}o0(t=>({...t,get:(e,r,o)=>gd(e,r)||t.get(e,r,o),has:(e,r)=>!!gd(e,r)||t.has(e,r)}));const Pm=["continue","continuePrimaryKey","advance"],vd={},Tl=new WeakMap,n0=new WeakMap,Fm={get(t,e){if(!Pm.includes(e))return t[e];let r=vd[e];return r||(r=vd[e]=function(...o){Tl.set(this,n0.get(this)[e](...o))}),r}};async function*Tm(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const r=new Proxy(e,Fm);for(n0.set(r,e),ms.set(r,Fl(e));e;)yield r,e=await(Tl.get(r)||e.continue()),Tl.delete(r)}function md(t,e){return e===Symbol.asyncIterator&&_l(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&_l(t,[IDBIndex,IDBObjectStore])}o0(t=>({...t,get(e,r,o){return md(e,r)?Tm:t.get(e,r,o)},has(e,r){return md(e,r)||t.has(e,r)}}));const fn="mgt-db-list";var Qo=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};class Em{constructor(e,r){if(!(r in e.stores))throw Error('"store" must be defined in the "schema"');this.schema=e,this.store=r}getValue(e){return Qo(this,void 0,void 0,function*(){if(!window.indexedDB)return null;try{return(yield this.getDb()).get(this.store,e)}catch{return null}})}putValue(e,r){return Qo(this,void 0,void 0,function*(){if(window.indexedDB)try{yield(yield this.getDb()).put(this.store,Object.assign(Object.assign({},r),{timeCached:Date.now()}),e)}catch{return}})}clearStore(){return Qo(this,void 0,void 0,function*(){if(window.indexedDB)try{yield(yield this.getDb()).clear(this.store)}catch{return}})}getDBName(){return Qo(this,void 0,void 0,function*(){const e=yield U.getCacheId();if(e)return`mgt-${this.schema.name}-${e}`})}getDb(){return Qo(this,void 0,void 0,function*(){const e=yield this.getDBName();if(e)return Sm(e,this.schema.version,{upgrade:(r,o,n,i)=>{const s=JSON.parse(localStorage.getItem(fn))||[];s.includes(e)||s.push(e),localStorage.setItem(fn,JSON.stringify(s));for(const a in this.schema.stores)Object.prototype.hasOwnProperty.call(this.schema.stores,a)&&!r.objectStoreNames.contains(a)&&r.createObjectStore(a)}})})}}var $m=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};class V{static getCache(e,r){const o=`${e.name}/${r}`;return this.isInitialized||this.init(),this.cacheStore.has(r)||this.cacheStore.set(o,new Em(e,r)),this.cacheStore.get(o)}static clearCacheById(e){const r=[],o=JSON.parse(localStorage.getItem(fn));if(o){const n=[];o.forEach(i=>{i.includes(e)?r.push(new Promise((s,a)=>{const l=indexedDB.deleteDatabase(i);l.onsuccess=()=>s(),l.onerror=()=>{console.error(`🦒: ${l.error.name} occurred deleting cache: ${i}`,l.error.message),a()}})):n.push(i)}),n.length>0?localStorage.setItem(fn,JSON.stringify(n)):localStorage.removeItem(fn)}return Promise.all(r)}static get config(){return this.cacheConfig}static init(){let e;U.globalProvider&&(e=U.globalProvider.state),U.onProviderUpdated(()=>$m(this,void 0,void 0,function*(){if(e===je.SignedIn&&U.globalProvider.state===je.SignedOut){const r=yield U.getCacheId();r!==null&&(yield this.clearCacheById(r))}e=U.globalProvider.state})),this.isInitialized=!0}}V.cacheStore=new Map;V.isInitialized=!1;V.cacheConfig={defaultInvalidationPeriod:36e5,groups:{invalidationPeriod:null,isEnabled:!0},isEnabled:!0,people:{invalidationPeriod:null,isEnabled:!0},photos:{invalidationPeriod:null,isEnabled:!0},presence:{invalidationPeriod:3e5,isEnabled:!0},users:{invalidationPeriod:null,isEnabled:!0},response:{invalidationPeriod:null,isEnabled:!0},files:{invalidationPeriod:null,isEnabled:!0},fileLists:{invalidationPeriod:null,isEnabled:!0}};var bd=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};class Cn{get value(){return this._value}get hasNext(){return!!this._nextLink}static create(e,r,o){return bd(this,void 0,void 0,function*(){const n=yield r.get();if(n!=null&&n.value){const i=new Cn;return i._graph=e,i._value=n.value,i._nextLink=n["@odata.nextLink"],i._version=o||e.version,i}return null})}static createFromValue(e,r,o=null){const n=new Cn;return n._graph=e,n._value=r,n._nextLink=o,n._version=e.version,n}get nextLink(){return this._nextLink||""}next(){var e;return bd(this,void 0,void 0,function*(){if(this._nextLink){const r=this._nextLink.split(this._version)[1],o=yield this._graph.api(r).version(this._version).get();if(!((e=o==null?void 0:o.value)===null||e===void 0)&&e.length)return this._value=this._value.concat(o.value),this._nextLink=o["@odata.nextLink"],o.value}return null})}}const yd=new WeakMap,wd=(t,e,r)=>{const o=[];for(const n of t)o.push(n.replace(e,r));return o},Am=(t,...e)=>{if(uo.isDisambiguated){let r=yd.get(t);if(!r){const o=new RegExp("(`${uo.prefix}-${t}`,bs=(t,e,r)=>{const o=i0(t);customElements.get(o)||customElements.define(o,e,r)},Nm=()=>{const t=U.globalProvider;return t&&t.state===je.SignedIn},s0=et.createContext(void 0);function ys(){const t=et.useContext(s0);if(t===void 0)throw new Error("Expected an AppProvider somewhere in the react tree to set context value");return t}/** + * @remix-run/router v1.14.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Sn(){return Sn=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function kc(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Rm(){return Math.random().toString(36).substr(2,8)}function xd(t,e){return{usr:t.state,key:t.key,idx:e}}function El(t,e,r,o){return r===void 0&&(r=null),Sn({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?$o(e):e,{state:r,key:e&&e.key||o||Rm()})}function a0(t){let{pathname:e="/",search:r="",hash:o=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(e+=o.charAt(0)==="#"?o:"#"+o),e}function $o(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let o=t.indexOf("?");o>=0&&(e.search=t.substr(o),t=t.substr(0,o)),t&&(e.pathname=t)}return e}function Dm(t,e,r,o){o===void 0&&(o={});let{window:n=document.defaultView,v5Compat:i=!1}=o,s=n.history,a=tr.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Sn({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=tr.Pop;let v=u(),w=v==null?null:v-c;c=v,l&&l({action:a,location:g.location,delta:w})}function f(v,w){a=tr.Push;let m=El(g.location,v,w);c=u()+1;let y=xd(m,c),C=g.createHref(m);try{s.pushState(y,"",C)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;n.location.assign(C)}i&&l&&l({action:a,location:g.location,delta:1})}function p(v,w){a=tr.Replace;let m=El(g.location,v,w);c=u();let y=xd(m,c),C=g.createHref(m);s.replaceState(y,"",C),i&&l&&l({action:a,location:g.location,delta:0})}function h(v){let w=n.location.origin!=="null"?n.location.origin:n.location.href,m=typeof v=="string"?v:a0(v);return Te(w,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,w)}let g={get action(){return a},get location(){return t(n,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return n.addEventListener(kd,d),l=v,()=>{n.removeEventListener(kd,d),l=null}},createHref(v){return e(n,v)},createURL:h,encodeLocation(v){let w=h(v);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:f,replace:p,go(v){return s.go(v)}};return g}var Cd;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Cd||(Cd={}));function Om(t,e,r){r===void 0&&(r="/");let o=typeof e=="string"?$o(e):e,n=u0(o.pathname||"/",r);if(n==null)return null;let i=l0(t);Im(i);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(Te(l.relativePath.startsWith(o),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(o.length));let c=Ar([o,l.relativePath]),u=r.concat(l);i.children&&i.children.length>0&&(Te(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),l0(i.children,e,u,c)),!(i.path==null&&!i.index)&&e.push({path:c,score:Um(c,i.index),routesMeta:u})};return t.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))n(i,s);else for(let l of c0(i.path))n(i,s,l)}),e}function c0(t){let e=t.split("/");if(e.length===0)return[];let[r,...o]=e,n=r.endsWith("?"),i=r.replace(/\?$/,"");if(o.length===0)return n?[i,""]:[i];let s=c0(o.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),n&&a.push(...s),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function Im(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:Wm(e.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}const Mm=/^:[\w-]+$/,zm=3,Vm=2,Hm=1,jm=10,qm=-2,Sd=t=>t==="*";function Um(t,e){let r=t.split("/"),o=r.length;return r.some(Sd)&&(o+=qm),e&&(o+=Vm),r.filter(n=>!Sd(n)).reduce((n,i)=>n+(Mm.test(i)?zm:i===""?Hm:jm),o)}function Wm(t,e){return t.length===e.length&&t.slice(0,-1).every((o,n)=>o===e[n])?t[t.length-1]-e[e.length-1]:0}function Zm(t,e){let{routesMeta:r}=t,o={},n="/",i=[];for(let s=0;s{let{paramName:f,isOptional:p}=u;if(f==="*"){let g=a[d]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const h=a[d];return p&&!h?c[f]=void 0:c[f]=Jm(h||"",f),c},{}),pathname:i,pathnameBase:s,pattern:t}}function Xm(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),kc(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let o=[],n="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(o.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(o.push({paramName:"*"}),n+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":t!==""&&t!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,e?void 0:"i"),o]}function Km(t){try{return decodeURI(t)}catch(e){return kc(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Jm(t,e){try{return decodeURIComponent(t)}catch(r){return kc(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function u0(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,o=t.charAt(r);return o&&o!=="/"?null:t.slice(r)||"/"}function Qm(t,e){e===void 0&&(e="/");let{pathname:r,search:o="",hash:n=""}=typeof t=="string"?$o(t):t;return{pathname:r?r.startsWith("/")?r:Ym(r,e):e,search:n5(o),hash:i5(n)}}function Ym(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function Fa(t,e,r,o){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function e5(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function t5(t,e){let r=e5(t);return e?r.map((o,n)=>n===t.length-1?o.pathname:o.pathnameBase):r.map(o=>o.pathnameBase)}function r5(t,e,r,o){o===void 0&&(o=!1);let n;typeof t=="string"?n=$o(t):(n=Sn({},t),Te(!n.pathname||!n.pathname.includes("?"),Fa("?","pathname","search",n)),Te(!n.pathname||!n.pathname.includes("#"),Fa("#","pathname","hash",n)),Te(!n.search||!n.search.includes("#"),Fa("#","search","hash",n)));let i=t===""||n.pathname==="",s=i?"/":n.pathname,a;if(s==null)a=r;else{let d=e.length-1;if(!o&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;n.pathname=f.join("/")}a=d>=0?e[d]:"/"}let l=Qm(n,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Ar=t=>t.join("/").replace(/\/\/+/g,"/"),o5=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),n5=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,i5=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function s5(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const d0=["post","put","patch","delete"];new Set(d0);const a5=["get",...d0];new Set(a5);/** + * React Router v6.21.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function _n(){return _n=Object.assign?Object.assign.bind():function(t){for(var e=1;e{a.current=!0}),b.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){o.go(c);return}let d=r5(c,JSON.parse(s),i,u.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:Ar([e,d.pathname])),(u.replace?o.replace:o.push)(d,u.state,u)},[e,o,s,i,t])}function u5(t,e){return d5(t,e)}function d5(t,e,r,o){xs()||Te(!1);let{navigator:n}=b.useContext(ws),{matches:i}=b.useContext(Ao),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=Cs(),u;if(e){var d;let v=typeof e=="string"?$o(e):e;l==="/"||(d=v.pathname)!=null&&d.startsWith(l)||Te(!1),u=v}else u=c;let f=u.pathname||"/",p=l==="/"?f:f.slice(l.length)||"/",h=Om(t,{pathname:p}),g=v5(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:Ar([l,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Ar([l,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r,o);return e&&g?b.createElement(ks.Provider,{value:{location:_n({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:tr.Pop}},g):g}function f5(){let t=w5(),e=s5(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},e),r?b.createElement("pre",{style:n},r):null,null)}const h5=b.createElement(f5,null);class p5 extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?b.createElement(Ao.Provider,{value:this.props.routeContext},b.createElement(f0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function g5(t){let{routeContext:e,match:r,children:o}=t,n=b.useContext(xc);return n&&n.static&&n.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(Ao.Provider,{value:e},o)}function v5(t,e,r,o){var n;if(e===void 0&&(e=[]),r===void 0&&(r=null),o===void 0&&(o=null),t==null){var i;if((i=r)!=null&&i.errors)t=r.matches;else return null}let s=t,a=(n=r)==null?void 0:n.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));u>=0||Te(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(r&&o&&o.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,f)=>{let p,h=!1,g=null,v=null;r&&(p=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||h5,l&&(c<0&&f===0?(h=!0,v=null):c===f&&(h=!0,v=d.route.hydrateFallbackElement||null)));let w=e.concat(s.slice(0,f+1)),m=()=>{let y;return p?y=g:h?y=v:d.route.Component?y=b.createElement(d.route.Component,null):d.route.element?y=d.route.element:y=u,b.createElement(g5,{match:d,routeContext:{outlet:u,matches:w,isDataRoute:r!=null},children:y})};return r&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?b.createElement(p5,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:m(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):m()},null)}var g0=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(g0||{}),Vi=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Vi||{});function m5(t){let e=b.useContext(xc);return e||Te(!1),e}function b5(t){let e=b.useContext(l5);return e||Te(!1),e}function y5(t){let e=b.useContext(Ao);return e||Te(!1),e}function v0(t){let e=y5(),r=e.matches[e.matches.length-1];return r.route.id||Te(!1),r.route.id}function w5(){var t;let e=b.useContext(f0),r=b5(Vi.UseRouteError),o=v0(Vi.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[o]}function k5(){let{router:t}=m5(g0.UseNavigateStable),e=v0(Vi.UseNavigateStable),r=b.useRef(!1);return h0(()=>{r.current=!0}),b.useCallback(function(n,i){i===void 0&&(i={}),r.current&&(typeof n=="number"?t.navigate(n):t.navigate(n,_n({fromRouteId:e},i)))},[t,e])}function $l(t){Te(!1)}function x5(t){let{basename:e="/",children:r=null,location:o,navigationType:n=tr.Pop,navigator:i,static:s=!1,future:a}=t;xs()&&Te(!1);let l=e.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:i,static:s,future:_n({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof o=="string"&&(o=$o(o));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:h="default"}=o,g=b.useMemo(()=>{let v=u0(u,l);return v==null?null:{location:{pathname:v,search:d,hash:f,state:p,key:h},navigationType:n}},[l,u,d,f,p,h,n]);return g==null?null:b.createElement(ws.Provider,{value:c},b.createElement(ks.Provider,{children:r,value:g}))}function C5(t){let{children:e,location:r}=t;return u5(Al(e),r)}new Promise(()=>{});function Al(t,e){e===void 0&&(e=[]);let r=[];return b.Children.forEach(t,(o,n)=>{if(!b.isValidElement(o))return;let i=[...e,n];if(o.type===b.Fragment){r.push.apply(r,Al(o.props.children,i));return}o.type!==$l&&Te(!1),!o.props.index||!o.props.children||Te(!1);let s={id:o.props.id||i.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(s.children=Al(o.props.children,i)),r.push(s)}),r}/** + * React Router DOM v6.21.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const S5="startTransition",_d=Rr[S5];function _5(t){let{basename:e,children:r,future:o,window:n}=t,i=b.useRef();i.current==null&&(i.current=Lm({window:n,v5Compat:!0}));let s=i.current,[a,l]=b.useState({action:s.action,location:s.location}),{v7_startTransition:c}=o||{},u=b.useCallback(d=>{c&&_d?_d(()=>l(d)):l(d)},[l,c]);return b.useLayoutEffect(()=>s.listen(u),[s,u]),b.createElement(x5,{basename:e,children:r,location:a.location,navigationType:a.action,navigator:s,future:o})}var Bd;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Bd||(Bd={}));var Pd;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Pd||(Pd={}));const B5=new Set(["children","wcType"]);class P5 extends b.Component{get element(){return this._element}getTag(){let e;return typeof this.props.wcType=="function"?e=this.props.wcType.name.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase():typeof this.props.wcType=="string"&&(e=this.props.wcType),e}render(){const e=this.getTag();if(!e)throw'"wcType" must be set!';const r={};for(const o of Object.keys(this.props))o&&this.props[o]===!0&&(r[o]=!0);return et.createElement(e,Object.assign(Object.assign({},r),{ref:o=>this.setRef(o)}),this.props.children)}setRef(e){e?(e!==this._element&&this.cleanUp(),this._element=e,this.syncProps(this.props)):this.cleanUp(),this.props.innerRef&&(typeof this.props.innerRef=="function"?this.props.innerRef(e):this.props.innerRef.current=e)}cleanUp(){if(this._element){for(const e in this.props)this.props.hasOwnProperty(e)&&this.isEventProp(e,this.props[e])&&this.removeEventListener(e,this.props[e]);this._element=null}}componentDidUpdate(e){const r={};for(const o in this.props)this.props.hasOwnProperty(o)&&(!e[o]||e[o]!==this.props[o])&&(r[o]=this.props[o],e[o]&&this.isEventProp(o,e[o])&&this.removeEventListener(o,e[o]));for(const o in e)e.hasOwnProperty(o)&&!this.props[o]&&this.isEventProp(o,e[o])&&this.removeEventListener(o,e[o]);this.syncProps(r)}syncProps(e){if(this._element)for(const r in e)B5.has(r)||(this.isEventProp(r,e[r])&&this.addEventListener(r,e[r]),this._element[r]=e[r])}isEventProp(e,r){return e&&typeof r=="function"}addEventListener(e,r){let o=e;o.match(/^on[A-Z]/gm)&&(o=o.substring(2).toLowerCase()),this._element.addEventListener(o,r)}removeEventListener(e,r){let o=e;o.match(/^on[A-Z]/gm)&&(o=o.substring(2).toLowerCase()),this._element.removeEventListener(o,r)}}class F5 extends P5{constructor(e){super(e),this.handleTemplateRendered=r=>{if(!this._templates)return;const o=r.detail.templateType,n=r.detail.context,i=r.detail.element;let s=this._templates[o];s&&(s=et.cloneElement(s,{dataContext:n}),kv.render(s,i))}}getTag(){let e=super.getTag();const r=`${uo.prefix}-`;return e.startsWith(r)||(e=r+e),e}render(){const e=this.getTag();if(!e)throw new Error('"wcType" must be set!');this.processTemplates(this.props.children);const r=[];if(this._templates){for(const o in this._templates)if(Object.prototype.hasOwnProperty.call(this._templates,o)){const n=et.createElement("template",{key:o,"data-type":o},null);r.push(n)}}return et.createElement(e,{ref:o=>this.setRef(o)},r)}setRef(e){e&&e.addEventListener("templateRendered",this.handleTemplateRendered),super.setRef(e)}cleanUp(){this.element&&(this.element.removeEventListener("templateRendered",this.handleTemplateRendered),super.cleanUp())}processTemplates(e){if(!e)return;const r={};et.Children.forEach(e,o=>{var n;const i=o,s=(n=i==null?void 0:i.props)===null||n===void 0?void 0:n.template;s?r[s]=i:r.default=i}),this._templates=r}}const Cc=(t,e)=>{e();const r=(n,i)=>et.createElement(F5,Object.assign({wcType:t,innerRef:i},n));return et.forwardRef(r)},ar=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();ar.trustedTypes===void 0&&(ar.trustedTypes={createPolicy:(t,e)=>e});const m0={configurable:!1,enumerable:!1,writable:!1};ar.FAST===void 0&&Reflect.defineProperty(ar,"FAST",Object.assign({value:Object.create(null)},m0));const Bn=ar.FAST;if(Bn.getById===void 0){const t=Object.create(null);Reflect.defineProperty(Bn,"getById",Object.assign({value(e,r){let o=t[e];return o===void 0&&(o=r?t[e]=r():null),o}},m0))}const hn=Object.freeze([]);function b0(){const t=new WeakMap;return function(e){let r=t.get(e);if(r===void 0){let o=Reflect.getPrototypeOf(e);for(;r===void 0&&o!==null;)r=t.get(o),o=Reflect.getPrototypeOf(o);r=r===void 0?[]:r.slice(0),t.set(e,r)}return r}}const Ta=ar.FAST.getById(1,()=>{const t=[],e=[];function r(){if(e.length)throw e.shift()}function o(s){try{s.call()}catch(a){e.push(a),setTimeout(r,0)}}function n(){let a=0;for(;a1024){for(let l=0,c=t.length-a;lt});let Ea=y0;const pn=`fast-${Math.random().toString(36).substring(2,8)}`,w0=`${pn}{`,Sc=`}${pn}`,Q=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(Ea!==y0)throw new Error("The HTML policy can only be set once.");Ea=t},createHTML(t){return Ea.createHTML(t)},isMarker(t){return t&&t.nodeType===8&&t.data.startsWith(pn)},extractDirectiveIndexFromMarker(t){return parseInt(t.data.replace(`${pn}:`,""))},createInterpolationPlaceholder(t){return`${w0}${t}${Sc}`},createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder(t){return``},queueUpdate:Ta.enqueue,processUpdates:Ta.process,nextUpdate(){return new Promise(Ta.enqueue)},setAttribute(t,e,r){r==null?t.removeAttribute(e):t.setAttribute(e,r)},setBooleanAttribute(t,e,r){r?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;e!==null;e=t.firstChild)t.removeChild(e)},createTemplateWalker(t){return document.createTreeWalker(t,133,null,!1)}});class Nl{constructor(e,r){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=r}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const r=this.spillover;if(r===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else r.indexOf(e)===-1&&r.push(e)}unsubscribe(e){const r=this.spillover;if(r===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const o=r.indexOf(e);o!==-1&&r.splice(o,1)}}notify(e){const r=this.spillover,o=this.source;if(r===void 0){const n=this.sub1,i=this.sub2;n!==void 0&&n.handleChange(o,e),i!==void 0&&i.handleChange(o,e)}else for(let n=0,i=r.length;n{const t=/(:|&&|\|\||if)/,e=new WeakMap,r=Q.queueUpdate;let o,n=c=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function i(c){let u=c.$fastController||e.get(c);return u===void 0&&(Array.isArray(c)?u=n(c):e.set(c,u=new k0(c))),u}const s=b0();class a{constructor(u){this.name=u,this.field=`_${u}`,this.callback=`${u}Changed`}getValue(u){return o!==void 0&&o.watch(u,this.name),u[this.field]}setValue(u,d){const f=this.field,p=u[f];if(p!==d){u[f]=d;const h=u[this.callback];typeof h=="function"&&h.call(u,p,d),i(u).notify(this.name)}}}class l extends Nl{constructor(u,d,f=!1){super(u,d),this.binding=u,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(u,d){this.needsRefresh&&this.last!==null&&this.disconnect();const f=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const p=this.binding(u,d);return o=f,p}disconnect(){if(this.last!==null){let u=this.first;for(;u!==void 0;)u.notifier.unsubscribe(this,u.propertyName),u=u.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(u,d){const f=this.last,p=i(u),h=f===null?this.first:{};if(h.propertySource=u,h.propertyName=d,h.notifier=p,p.subscribe(this,d),f!==null){if(!this.needsRefresh){let g;o=void 0,g=f.propertySource[f.propertyName],o=this,u===g&&(this.needsRefresh=!0)}f.next=h}this.last=h}handleChange(){this.needsQueue&&(this.needsQueue=!1,r(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let u=this.first;return{next:()=>{const d=u;return d===void 0?{value:void 0,done:!0}:(u=u.next,{value:d,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){n=c},getNotifier:i,track(c,u){o!==void 0&&o.watch(c,u)},trackVolatile(){o!==void 0&&(o.needsRefresh=!0)},notify(c,u){i(c).notify(u)},defineProperty(c,u){typeof u=="string"&&(u=new a(u)),s(c).push(u),Reflect.defineProperty(c,u.name,{enumerable:!0,get:function(){return u.getValue(this)},set:function(d){u.setValue(this,d)}})},getAccessors:s,binding(c,u,d=this.isVolatileBinding(c)){return new l(c,u,d)},isVolatileBinding(c){return t.test(c.toString())}})});function re(t,e){ie.defineProperty(t,e)}const Fd=Bn.getById(3,()=>{let t=null;return{get(){return t},set(e){t=e}}});class Pn{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return Fd.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){Fd.set(e)}}ie.defineProperty(Pn.prototype,"index");ie.defineProperty(Pn.prototype,"length");const gn=Object.seal(new Pn);class _c{constructor(){this.targetIndex=0}}class x0 extends _c{constructor(){super(...arguments),this.createPlaceholder=Q.createInterpolationPlaceholder}}class C0 extends _c{constructor(e,r,o){super(),this.name=e,this.behavior=r,this.options=o}createPlaceholder(e){return Q.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function T5(t,e){this.source=t,this.context=e,this.bindingObserver===null&&(this.bindingObserver=ie.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function E5(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function $5(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function A5(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function N5(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function L5(t){Q.setAttribute(this.target,this.targetName,t)}function R5(t){Q.setBooleanAttribute(this.target,this.targetName,t)}function D5(t){if(t==null&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;e===void 0?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function O5(t){this.target[this.targetName]=t}function I5(t){const e=this.classVersions||Object.create(null),r=this.target;let o=this.version||0;if(t!=null&&t.length){const n=t.split(/\s+/);for(let i=0,s=n.length;iQ.createHTML(r(o,n))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=R5;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=E5,this.unbind=N5;break;default:this.cleanedTargetName=e,e==="class"&&(this.updateTarget=I5);break}}targetAtContent(){this.updateTarget=D5,this.unbind=A5}createBehavior(e){return new M5(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class M5{constructor(e,r,o,n,i,s,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=r,this.isBindingVolatile=o,this.bind=n,this.unbind=i,this.updateTarget=s,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){Pn.setEvent(e);const r=this.binding(this.source,this.context);Pn.setEvent(null),r!==!0&&e.preventDefault()}}let $a=null;class Pc{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){$a=this}static borrow(e){const r=$a||new Pc;return r.directives=e,r.reset(),$a=null,r}}function z5(t){if(t.length===1)return t[0];let e;const r=t.length,o=t.map(s=>typeof s=="string"?()=>s:(e=s.targetName||e,s.binding)),n=(s,a)=>{let l="";for(let c=0;ca),c.targetName=s.name):c=z5(l),c!==null&&(e.removeAttributeNode(s),n--,i--,t.addFactory(c))}}function H5(t,e,r){const o=S0(t,e.textContent);if(o!==null){let n=e;for(let i=0,s=o.length;i0}const r=this.fragment.cloneNode(!0),o=this.viewBehaviorFactories,n=new Array(this.behaviorCount),i=Q.createTemplateWalker(r);let s=0,a=this.targetOffset,l=i.nextNode();for(let c=o.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function rt(t,...e){const r=[];let o="";for(let n=0,i=t.length-1;nl}if(typeof a=="function"&&(a=new Bc(a)),a instanceof x0){const l=U5.exec(s);l!==null&&(a.targetName=l[2])}a instanceof _c?(o+=a.createPlaceholder(r.length),r.push(a)):o+=a}return o+=t[t.length-1],new Ed(o,r)}class Ue{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}}Ue.create=(()=>{if(Q.supportsAdoptedStyleSheets){const t=new Map;return e=>new W5(e,t)}return t=>new X5(t)})();function Fc(t){return t.map(e=>e instanceof Ue?Fc(e.styles):[e]).reduce((e,r)=>e.concat(r),[])}function _0(t){return t.map(e=>e instanceof Ue?e.behaviors:null).reduce((e,r)=>r===null?e:(e===null&&(e=[]),e.concat(r)),null)}const B0=Symbol("prependToAdoptedStyleSheets");function P0(t){const e=[],r=[];return t.forEach(o=>(o[B0]?e:r).push(o)),{prepend:e,append:r}}let F0=(t,e)=>{const{prepend:r,append:o}=P0(e);t.adoptedStyleSheets=[...r,...t.adoptedStyleSheets,...o]},T0=(t,e)=>{t.adoptedStyleSheets=t.adoptedStyleSheets.filter(r=>e.indexOf(r)===-1)};if(Q.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),F0=(t,e)=>{const{prepend:r,append:o}=P0(e);t.adoptedStyleSheets.splice(0,0,...r),t.adoptedStyleSheets.push(...o)},T0=(t,e)=>{for(const r of e){const o=t.adoptedStyleSheets.indexOf(r);o!==-1&&t.adoptedStyleSheets.splice(o,1)}}}catch{}class W5 extends Ue{constructor(e,r){super(),this.styles=e,this.styleSheetCache=r,this._styleSheets=void 0,this.behaviors=_0(e)}get styleSheets(){if(this._styleSheets===void 0){const e=this.styles,r=this.styleSheetCache;this._styleSheets=Fc(e).map(o=>{if(o instanceof CSSStyleSheet)return o;let n=r.get(o);return n===void 0&&(n=new CSSStyleSheet,n.replaceSync(o),r.set(o,n)),n})}return this._styleSheets}addStylesTo(e){F0(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){T0(e,this.styleSheets),super.removeStylesFrom(e)}}let Z5=0;function G5(){return`fast-style-class-${++Z5}`}class X5 extends Ue{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=_0(e),this.styleSheets=Fc(e),this.styleClass=G5()}addStylesTo(e){const r=this.styleSheets,o=this.styleClass;e=this.normalizeTarget(e);for(let n=0;n{o.add(e);const n=e[this.fieldName];switch(r){case"reflect":const i=this.converter;Q.setAttribute(e,this.attribute,i!==void 0?i.toView(n):n);break;case"boolean":Q.setBooleanAttribute(e,this.attribute,n);break}o.delete(e)})}static collect(e,...r){const o=[];r.push(Hi.locate(e));for(let n=0,i=r.length;n1&&(r.property=i),Hi.locate(n.constructor).push(r)}if(arguments.length>1){r={},o(t,e);return}return r=t===void 0?{}:t,o}const $d={mode:"open"},Ad={},Ll=Bn.getById(4,()=>{const t=new Map;return Object.freeze({register(e){return t.has(e.type)?!1:(t.set(e.type,e),!0)},getByType(e){return t.get(e)}})});class Ss{constructor(e,r=e.definition){typeof r=="string"&&(r={name:r}),this.type=e,this.name=r.name,this.template=r.template;const o=ji.collect(e,r.attributes),n=new Array(o.length),i={},s={};for(let a=0,l=o.length;a0){const i=this.boundObservables=Object.create(null);for(let s=0,a=n.length;s(typeof i=="string"?this.css+=i:n.push(i),n),[]);o.length&&(this.styles=Ue.create(o))}createBehavior(){return this}createCSS(){return this.css}bind(e){this.styles&&e.$fastController.addStyles(this.styles),this.behaviors.length&&e.$fastController.addBehaviors(this.behaviors)}unbind(e){this.styles&&e.$fastController.removeStyles(this.styles),this.behaviors.length&&e.$fastController.removeBehaviors(this.behaviors)}}function vt(t,...e){const{styles:r,behaviors:o}=A0(t,e);return new J5(r,o)}class Q5{constructor(e,r){this.target=e,this.propertyName=r}bind(e){e[this.propertyName]=this.target}unbind(){}}function xt(t){return new C0("fast-ref",Q5,t)}const N0=t=>typeof t=="function",Y5=()=>null;function Ld(t){return t===void 0?Y5:N0(t)?t:()=>t}function L0(t,e,r){const o=N0(t)?t:()=>t,n=Ld(e),i=Ld(r);return(s,a)=>o(s,a)?n(s,a):i(s,a)}function ZB(t){return t?function(e,r,o){return e.nodeType===1&&e.matches(t)}:function(e,r,o){return e.nodeType===1}}class e2{constructor(e,r){this.target=e,this.options=r,this.source=null}bind(e){const r=this.options.property;this.shouldUpdate=ie.getAccessors(e).some(o=>o.name===r),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(hn),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return this.options.filter!==void 0&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}class t2 extends e2{constructor(e,r){super(e,r)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function $c(t){return typeof t=="string"&&(t={property:t}),new C0("fast-slotted",t2,t)}class Ac{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const R0=(t,e)=>rt` + e.end?"end":void 0} + > + + ${e.end||""} + + +`,D0=(t,e)=>rt` + + + ${e.start||""} + + +`,GB=rt` + + + +`,XB=rt` + + + +`;/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function L(t,e,r,o){var n=arguments.length,i=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(i=(n<3?s(i):n>3?s(e,r,i):s(e,r))||i);return n>3&&i&&Object.defineProperty(e,r,i),i}const La=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(r){Reflect.defineMetadata(t,e,r)}},Reflect.defineMetadata=function(t,e,r){let o=La.get(r);o===void 0&&La.set(r,o=new Map),o.set(t,e)},Reflect.getOwnMetadata=function(t,e){const r=La.get(e);if(r!==void 0)return r.get(t)});class r2{constructor(e,r){this.container=e,this.key=r}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,I0(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,r){const{container:o,key:n}=this;return this.container=this.key=void 0,o.registerResolver(n,new dt(n,e,r))}}function Yo(t){const e=t.slice(),r=Object.keys(t),o=r.length;let n;for(let i=0;inull,responsibleForOwnerRequests:!1,defaultResolver:o2.singleton})}),Rd=new Map;function Dd(t){return e=>Reflect.getOwnMetadata(t,e)}let Od=null;const ge=Object.freeze({createContainer(t){return new vn(null,Object.assign({},Ra.default,t))},findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:ge.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(O0,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||ge.getOrCreateDOMContainer()},getOrCreateDOMContainer(t,e){return t?t.$$container$$||new vn(t,Object.assign({},Ra.default,e,{parentLocator:ge.findParentContainer})):Od||(Od=new vn(null,Object.assign({},Ra.default,e,{parentLocator:()=>null})))},getDesignParamtypes:Dd("design:paramtypes"),getAnnotationParamtypes:Dd("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return e===void 0&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=Rd.get(t);if(e===void 0){const r=t.inject;if(r===void 0){const o=ge.getDesignParamtypes(t),n=ge.getAnnotationParamtypes(t);if(o===void 0)if(n===void 0){const i=Object.getPrototypeOf(t);typeof i=="function"&&i!==Function.prototype?e=Yo(ge.getDependencies(i)):e=[]}else e=Yo(n);else if(n===void 0)e=Yo(o);else{e=Yo(o);let i=n.length,s;for(let c=0;c{const u=ge.findResponsibleContainer(this).get(r),d=this[n];u!==d&&(this[n]=i,a.notify(e))};a.subscribe({handleChange:l},"isConnected")}return i}})},createInterface(t,e){const r=typeof t=="function"?t:e,o=typeof t=="string"?t:t&&"friendlyName"in t&&t.friendlyName||Vd,n=typeof t=="string"?!1:t&&"respectConnection"in t&&t.respectConnection||!1,i=function(s,a,l){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${i.friendlyName}'`);if(a)ge.defineProperty(s,a,i,n);else{const c=ge.getOrCreateAnnotationParamTypes(s);c[l]=i}};return i.$isInterface=!0,i.friendlyName=o??"(anonymous)",r!=null&&(i.register=function(s,a){return r(new r2(s,a??i))}),i.toString=function(){return`InterfaceSymbol<${i.friendlyName}>`},i},inject(...t){return function(e,r,o){if(typeof o=="number"){const n=ge.getOrCreateAnnotationParamTypes(e),i=t[0];i!==void 0&&(n[o]=i)}else if(r)ge.defineProperty(e,r,t[0]);else{const n=o?ge.getOrCreateAnnotationParamTypes(o.value):ge.getOrCreateAnnotationParamTypes(e);let i;for(let s=0;s{o.composedPath()[0]!==this.owner&&(o.detail.container=this,o.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...r){return this.context=e,this.register(...r),this.context=null,this}register(...e){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let r,o,n,i,s;const a=this.context;for(let l=0,c=e.length;lthis}))}jitRegister(e,r){if(typeof e!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(d2.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(Pi(e)){const o=e.register(r);if(!(o instanceof Object)||o.resolve==null){const n=r.resolvers.get(e);if(n!=null)return n;throw new Error("A valid resolver was not returned from the static register method")}return o}else{if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{const o=this.config.defaultResolver(e,r);return r.resolvers.set(e,o),o}}}}const Oa=new WeakMap;function I0(t){return function(e,r,o){if(Oa.has(o))return Oa.get(o);const n=t(e,r,o);return Oa.set(o,n),n}}const Fn=Object.freeze({instance(t,e){return new dt(t,0,e)},singleton(t,e){return new dt(t,1,e)},transient(t,e){return new dt(t,2,e)},callback(t,e){return new dt(t,3,e)},cachedCallback(t,e){return new dt(t,3,I0(e))},aliasTo(t,e){return new dt(e,5,t)}});function li(t){if(t==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function zd(t,e,r){if(t instanceof dt&&t.strategy===4){const o=t.state;let n=o.length;const i=new Array(n);for(;n--;)i[n]=o[n].resolve(e,r);return i}return[t.resolve(e,r)]}const Vd="(anonymous)";function Hd(t){return typeof t=="object"&&t!==null||typeof t=="function"}const f2=function(){const t=new WeakMap;let e=!1,r="",o=0;return function(n){return e=t.get(n),e===void 0&&(r=n.toString(),o=r.length,e=o>=29&&o<=100&&r.charCodeAt(o-1)===125&&r.charCodeAt(o-2)<=32&&r.charCodeAt(o-3)===93&&r.charCodeAt(o-4)===101&&r.charCodeAt(o-5)===100&&r.charCodeAt(o-6)===111&&r.charCodeAt(o-7)===99&&r.charCodeAt(o-8)===32&&r.charCodeAt(o-9)===101&&r.charCodeAt(o-10)===118&&r.charCodeAt(o-11)===105&&r.charCodeAt(o-12)===116&&r.charCodeAt(o-13)===97&&r.charCodeAt(o-14)===110&&r.charCodeAt(o-15)===88,t.set(n,e)),e}}(),ci={};function M0(t){switch(typeof t){case"number":return t>=0&&(t|0)===t;case"string":{const e=ci[t];if(e!==void 0)return e;const r=t.length;if(r===0)return ci[t]=!1;let o=0;for(let n=0;n1||o<48||o>57)return ci[t]=!1;return ci[t]=!0}default:return!1}}function jd(t){return`${t.toLowerCase()}:presentation`}const ui=new Map,z0=Object.freeze({define(t,e,r){const o=jd(t);ui.get(o)===void 0?ui.set(o,e):ui.set(o,!1),r.register(Fn.instance(o,e))},forTag(t,e){const r=jd(t),o=ui.get(r);return o===!1?ge.findResponsibleContainer(e).get(r):o||null}});class h2{constructor(e,r){this.template=e||null,this.styles=r===void 0?null:Array.isArray(r)?Ue.create(r):r instanceof Ue?r:Ue.create([r])}applyTo(e){const r=e.$fastController;r.template===null&&(r.template=this.template),r.styles===null&&(r.styles=this.styles)}}class it extends _s{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=z0.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(r={})=>new p2(this===it?class extends it{}:this,e,r)}}L([re],it.prototype,"template",void 0);L([re],it.prototype,"styles",void 0);function en(t,e,r){return typeof t=="function"?t(e,r):t}class p2{constructor(e,r,o){this.type=e,this.elementDefinition=r,this.overrideDefinition=o,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,r){const o=this.definition,n=this.overrideDefinition,s=`${o.prefix||r.elementPrefix}-${o.baseName}`;r.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{const l=new h2(en(o.template,a,o),en(o.styles,a,o));a.definePresentation(l);let c=en(o.shadowOptions,a,o);a.shadowRootMode&&(c?n.shadowOptions||(c.mode=a.shadowRootMode):c!==null&&(c={mode:a.shadowRootMode})),a.defineElement({elementOptions:en(o.elementOptions,a,o),shadowOptions:c,attributes:en(o.attributes,a,o)})}})}}function hr(t,...e){const r=Hi.locate(t);e.forEach(o=>{Object.getOwnPropertyNames(o.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(o.prototype,i))}),Hi.locate(o).forEach(i=>r.push(i))})}function g2(t,e){let r=t.length;for(;r--;)if(e(t[r],r,t))return r;return-1}function v2(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function V0(...t){return t.every(e=>e instanceof HTMLElement)}function KB(t,e){return!t||!e||!V0(t)?void 0:Array.from(t.querySelectorAll(e)).filter(o=>o.offsetParent!==null)}function m2(){const t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}let wr;function b2(){if(typeof wr=="boolean")return wr;if(!v2())return wr=!1,wr;const t=document.createElement("style"),e=m2();e!==null&&t.setAttribute("nonce",e),document.head.appendChild(t);try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),wr=!0}catch{wr=!1}finally{document.head.removeChild(t)}return wr}var qd;(function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"})(qd||(qd={}));const Nc="ArrowDown",y2="ArrowLeft",w2="ArrowRight",Lc="ArrowUp",H0="Enter",j0="Escape",q0="Home",U0="End",JB="F2",QB="PageDown",YB="PageUp",W0=" ",Z0="Tab",eP={ArrowDown:Nc,ArrowLeft:y2,ArrowRight:w2,ArrowUp:Lc};var Rl;(function(t){t.ltr="ltr",t.rtl="rtl"})(Rl||(Rl={}));function tP(t,e,r){return Math.min(Math.max(r,t),e)}function di(t,e,r=0){return[e,r]=[e,r].sort((o,n)=>o-n),e<=t&&trt` + +`,Ud="form-associated-proxy",Wd="ElementInternals",Zd=Wd in window&&"setFormValue"in window[Wd].prototype,Gd=new WeakMap;function Rc(t){const e=class extends t{constructor(...r){super(...r),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return Zd}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const r=this.proxy.labels,o=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),n=r?o.concat(Array.from(r)):o;return Object.freeze(n)}else return hn}valueChanged(r,o){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(r,o){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(r,o){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),Q.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(r,o){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(r,o){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),Q.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!Zd)return null;let r=Gd.get(this);return r||(r=this.attachInternals(),Gd.set(this,r)),r}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(r=>this.proxy.removeEventListener(r,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(r,o,n){this.elementInternals?this.elementInternals.setValidity(r,o,n):typeof o=="string"&&this.proxy.setCustomValidity(o)}formDisabledCallback(r){this.disabled=r}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var r;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(o=>this.proxy.addEventListener(o,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",Ud),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Ud)),(r=this.shadowRoot)===null||r===void 0||r.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var r;this.removeChild(this.proxy),(r=this.shadowRoot)===null||r===void 0||r.removeChild(this.proxySlot)}validate(r){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,r)}setFormValue(r,o){this.elementInternals&&this.elementInternals.setFormValue(r,o||r)}_keypressHandler(r){switch(r.key){case H0:if(this.form instanceof HTMLFormElement){const o=this.form.querySelector("[type=submit]");o==null||o.click()}break}}stopPropagation(r){r.stopPropagation()}};return z({mode:"boolean"})(e.prototype,"disabled"),z({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),z({attribute:"current-value"})(e.prototype,"currentValue"),z(e.prototype,"name"),z({mode:"boolean"})(e.prototype,"required"),re(e.prototype,"value"),e}function rP(t){class e extends Rc(t){}class r extends e{constructor(...n){super(n),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(n,i){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),n!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(n,i){this.checked=this.currentChecked}updateForm(){const n=this.checked?this.value:null;this.setFormValue(n,n)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return z({attribute:"checked",mode:"boolean"})(r.prototype,"checkedAttribute"),z({attribute:"current-checked",converter:E0})(r.prototype,"currentChecked"),re(r.prototype,"defaultChecked"),re(r.prototype,"checked"),r}class S2 extends it{}class _2 extends Rc(S2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let lt=class extends _2{constructor(){super(...arguments),this.handleClick=e=>{var r;this.disabled&&((r=this.defaultSlottedContent)===null||r===void 0?void 0:r.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const e=this.proxy.isConnected;e||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;(e=this.form)===null||e===void 0||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((e=this.$fastController.definition.shadowOptions)===null||e===void 0)&&e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,r){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),r==="submit"&&this.addEventListener("click",this.handleSubmission),e==="submit"&&this.removeEventListener("click",this.handleSubmission),r==="reset"&&this.addEventListener("click",this.handleFormReset),e==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const r=Array.from((e=this.control)===null||e===void 0?void 0:e.children);r&&r.forEach(o=>{o.addEventListener("click",this.handleClick)})}disconnectedCallback(){var e;super.disconnectedCallback();const r=Array.from((e=this.control)===null||e===void 0?void 0:e.children);r&&r.forEach(o=>{o.removeEventListener("click",this.handleClick)})}};L([z({mode:"boolean"})],lt.prototype,"autofocus",void 0);L([z({attribute:"form"})],lt.prototype,"formId",void 0);L([z],lt.prototype,"formaction",void 0);L([z],lt.prototype,"formenctype",void 0);L([z],lt.prototype,"formmethod",void 0);L([z({mode:"boolean"})],lt.prototype,"formnovalidate",void 0);L([z],lt.prototype,"formtarget",void 0);L([z],lt.prototype,"type",void 0);L([re],lt.prototype,"defaultSlottedContent",void 0);class Bs{}L([z({attribute:"aria-expanded"})],Bs.prototype,"ariaExpanded",void 0);L([z({attribute:"aria-pressed"})],Bs.prototype,"ariaPressed",void 0);hr(Bs,be);hr(lt,Ac,Bs);const B2=(t,e)=>rt` + +`;let G0=class extends it{};function X0(t){return V0(t)&&(t.getAttribute("role")==="option"||t instanceof HTMLOptionElement)}class Wt extends it{constructor(e,r,o,n){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,e&&(this.textContent=e),r&&(this.initialValue=r),o&&(this.defaultSelected=o),n&&(this.selected=n),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(e,r){if(typeof r=="boolean"){this.ariaChecked=r?"true":"false";return}this.ariaChecked=null}contentChanged(e,r){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(e,r){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(e,r){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var e;return(e=this.value)!==null&&e!==void 0?e:this.text}get text(){var e,r;return(r=(e=this.textContent)===null||e===void 0?void 0:e.replace(/\s+/g," ").trim())!==null&&r!==void 0?r:""}set value(e){const r=`${e??""}`;this._value=r,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=r),ie.notify(this,"value")}get value(){var e;return ie.track(this,"value"),(e=this._value)!==null&&e!==void 0?e:this.text}get form(){return this.proxy?this.proxy.form:null}}L([re],Wt.prototype,"checked",void 0);L([re],Wt.prototype,"content",void 0);L([re],Wt.prototype,"defaultSelected",void 0);L([z({mode:"boolean"})],Wt.prototype,"disabled",void 0);L([z({attribute:"selected",mode:"boolean"})],Wt.prototype,"selectedAttribute",void 0);L([re],Wt.prototype,"selected",void 0);L([z({attribute:"value",mode:"fromView"})],Wt.prototype,"initialValue",void 0);class No{}L([re],No.prototype,"ariaChecked",void 0);L([re],No.prototype,"ariaPosInSet",void 0);L([re],No.prototype,"ariaSelected",void 0);L([re],No.prototype,"ariaSetSize",void 0);hr(No,be);hr(Wt,Ac,No);let $t=class Fi extends it{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var e;return(e=this.selectedOptions[0])!==null&&e!==void 0?e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(e=>e.disabled)}get length(){var e,r;return(r=(e=this.options)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}get options(){return ie.track(this,"options"),this._options}set options(e){this._options=e,ie.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(e){this.typeaheadExpired=e}clickHandler(e){const r=e.target.closest("option,[role=option]");if(r&&!r.disabled)return this.selectedIndex=this.options.indexOf(r),!0}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(document.activeElement)&&e!==null&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:"nearest"})}))}focusinHandler(e){!this.shouldSkipFocus&&e.target===e.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`^${e}`,"gi");return this.options.filter(o=>o.text.trim().match(r))}getSelectableIndex(e=this.selectedIndex,r){const o=e>r?-1:e!s&&!a.disabled&&l!s&&!a.disabled&&l>n?a:s,i);break}}return this.options.indexOf(i)}handleChange(e,r){switch(r){case"selected":{Fi.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions();break}}}handleTypeAhead(e){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,Fi.TYPE_AHEAD_TIMEOUT_MS),!(e.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${e}`)}keydownHandler(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;const r=e.key;switch(r){case q0:{e.shiftKey||(e.preventDefault(),this.selectFirstOption());break}case Nc:{e.shiftKey||(e.preventDefault(),this.selectNextOption());break}case Lc:{e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break}case U0:{e.preventDefault(),this.selectLastOption();break}case Z0:return this.focusAndScrollOptionIntoView(),!0;case H0:case j0:return!0;case W0:if(this.typeaheadExpired)return!0;default:return r.length===1&&this.handleTypeAhead(`${r}`),!0}}mousedownHandler(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(e,r){this.ariaMultiSelectable=r?"true":null}selectedIndexChanged(e,r){var o;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((o=this.options[this.selectedIndex])===null||o===void 0)&&o.disabled&&typeof e=="number"){const n=this.getSelectableIndex(e,r),i=n>-1?n:e;this.selectedIndex=i,r===i&&this.selectedIndexChanged(r,i);return}this.setSelectedOptions()}selectedOptionsChanged(e,r){var o;const n=r.filter(Fi.slottedOptionFilter);(o=this.options)===null||o===void 0||o.forEach(i=>{const s=ie.getNotifier(i);s.unsubscribe(this,"selected"),i.selected=n.includes(i),s.subscribe(this,"selected")})}selectFirstOption(){var e,r;this.disabled||(this.selectedIndex=(r=(e=this.options)===null||e===void 0?void 0:e.findIndex(o=>!o.disabled))!==null&&r!==void 0?r:-1)}selectLastOption(){this.disabled||(this.selectedIndex=g2(this.options,e=>!e.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var e,r;this.selectedIndex=(r=(e=this.options)===null||e===void 0?void 0:e.findIndex(o=>o.defaultSelected))!==null&&r!==void 0?r:-1}setSelectedOptions(){var e,r,o;!((e=this.options)===null||e===void 0)&&e.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(o=(r=this.firstSelectedOption)===null||r===void 0?void 0:r.id)!==null&&o!==void 0?o:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(e,r){this.options=r.reduce((n,i)=>(X0(i)&&n.push(i),n),[]);const o=`${this.options.length}`;this.options.forEach((n,i)=>{n.id||(n.id=x2("option-")),n.ariaPosInSet=`${i+1}`,n.ariaSetSize=o}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(e,r){if(this.$fastController.isConnected){const o=this.getTypeaheadMatches();if(o.length){const n=this.options.indexOf(o[0]);n>-1&&(this.selectedIndex=n)}this.typeaheadExpired=!1}}};$t.slottedOptionFilter=t=>X0(t)&&!t.hidden;$t.TYPE_AHEAD_TIMEOUT_MS=1e3;L([z({mode:"boolean"})],$t.prototype,"disabled",void 0);L([re],$t.prototype,"selectedIndex",void 0);L([re],$t.prototype,"selectedOptions",void 0);L([re],$t.prototype,"slottedOptions",void 0);L([re],$t.prototype,"typeaheadBuffer",void 0);class Lo{}L([re],Lo.prototype,"ariaActiveDescendant",void 0);L([re],Lo.prototype,"ariaDisabled",void 0);L([re],Lo.prototype,"ariaExpanded",void 0);L([re],Lo.prototype,"ariaMultiSelectable",void 0);hr(Lo,be);hr($t,Lo);function qi(t){const e=t.parentElement;if(e)return e;{const r=t.getRootNode();if(r.host instanceof HTMLElement)return r.host}return null}function P2(t,e){let r=e;for(;r!==null;){if(r===t)return!0;r=qi(r)}return!1}const Ot=document.createElement("div");function F2(t){return t instanceof _s}class Dc{setProperty(e,r){Q.queueUpdate(()=>this.target.setProperty(e,r))}removeProperty(e){Q.queueUpdate(()=>this.target.removeProperty(e))}}class T2 extends Dc{constructor(e){super();const r=new CSSStyleSheet;r[B0]=!0,this.target=r.cssRules[r.insertRule(":host{}")].style,e.$fastController.addStyles(Ue.create([r]))}}class E2 extends Dc{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class $2 extends Dc{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const r=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[r].style}}}class K0{constructor(e){this.store=new Map,this.target=null;const r=e.$fastController;this.style=document.createElement("style"),r.addStyles(this.style),ie.getNotifier(r).subscribe(this,"isConnected"),this.handleChange(r,"isConnected")}targetChanged(){if(this.target!==null)for(const[e,r]of this.store.entries())this.target.setProperty(e,r)}setProperty(e,r){this.store.set(e,r),Q.queueUpdate(()=>{this.target!==null&&this.target.setProperty(e,r)})}removeProperty(e){this.store.delete(e),Q.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(e)})}handleChange(e,r){const{sheet:o}=this.style;if(o){const n=o.insertRule(":host{}",o.cssRules.length);this.target=o.cssRules[n].style}else this.target=null}}L([re],K0.prototype,"target",void 0);class A2{constructor(e){this.target=e.style}setProperty(e,r){Q.queueUpdate(()=>this.target.setProperty(e,r))}removeProperty(e){Q.queueUpdate(()=>this.target.removeProperty(e))}}class Ee{setProperty(e,r){Ee.properties[e]=r;for(const o of Ee.roots.values())io.getOrCreate(Ee.normalizeRoot(o)).setProperty(e,r)}removeProperty(e){delete Ee.properties[e];for(const r of Ee.roots.values())io.getOrCreate(Ee.normalizeRoot(r)).removeProperty(e)}static registerRoot(e){const{roots:r}=Ee;if(!r.has(e)){r.add(e);const o=io.getOrCreate(this.normalizeRoot(e));for(const n in Ee.properties)o.setProperty(n,Ee.properties[n])}}static unregisterRoot(e){const{roots:r}=Ee;if(r.has(e)){r.delete(e);const o=io.getOrCreate(Ee.normalizeRoot(e));for(const n in Ee.properties)o.removeProperty(n)}}static normalizeRoot(e){return e===Ot?document:e}}Ee.roots=new Set;Ee.properties={};const Ia=new WeakMap,N2=Q.supportsAdoptedStyleSheets?T2:K0,io=Object.freeze({getOrCreate(t){if(Ia.has(t))return Ia.get(t);let e;return t===Ot?e=new Ee:t instanceof Document?e=Q.supportsAdoptedStyleSheets?new E2:new $2:F2(t)?e=new N2(t):e=new A2(t),Ia.set(t,e),e}});class Ve extends Ec{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,e.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=Ve.uniqueId(),Ve.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new Ve({name:typeof e=="string"?e:e.name,cssCustomPropertyName:typeof e=="string"?e:e.cssCustomPropertyName===void 0?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return typeof e.cssCustomProperty=="string"}static isDerivedDesignTokenValue(e){return typeof e=="function"}static getTokenById(e){return Ve.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const r=Ce.getOrCreate(e).get(this);if(r!==void 0)return r;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,r){return this._appliedTo.add(e),r instanceof Ve&&(r=this.alias(r)),Ce.getOrCreate(e).set(this,r),this}deleteValueFor(e){return this._appliedTo.delete(e),Ce.existsFor(e)&&Ce.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(Ot,e),this}subscribe(e,r){const o=this.getOrCreateSubscriberSet(r);r&&!Ce.existsFor(r)&&Ce.getOrCreate(r),o.has(e)||o.add(e)}unsubscribe(e,r){const o=this.subscribers.get(r||this);o&&o.has(e)&&o.delete(e)}notify(e){const r=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach(o=>o.handleChange(r)),this.subscribers.has(e)&&this.subscribers.get(e).forEach(o=>o.handleChange(r))}alias(e){return r=>e.getValueFor(r)}}Ve.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})();Ve.tokensById=new Map;class L2{startReflection(e,r){e.subscribe(this,r),this.handleChange({token:e,target:r})}stopReflection(e,r){e.unsubscribe(this,r),this.remove(e,r)}handleChange(e){const{token:r,target:o}=e;this.add(r,o)}add(e,r){io.getOrCreate(r).setProperty(e.cssCustomProperty,this.resolveCSSValue(Ce.getOrCreate(r).get(e)))}remove(e,r){io.getOrCreate(r).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&typeof e.createCSS=="function"?e.createCSS():e}}class R2{constructor(e,r,o){this.source=e,this.token=r,this.node=o,this.dependencies=new Set,this.observer=ie.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,gn))}}class D2{constructor(){this.values=new Map}set(e,r){this.values.get(e)!==r&&(this.values.set(e,r),ie.getNotifier(this).notify(e.id))}get(e){return ie.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const tn=new WeakMap,rn=new WeakMap;class Ce{constructor(e){this.target=e,this.store=new D2,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(r,o)=>{const n=Ve.getTokenById(o);n&&(n.notify(this.target),this.updateCSSTokenReflection(r,n))}},tn.set(e,this),ie.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof _s?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return tn.get(e)||new Ce(e)}static existsFor(e){return tn.has(e)}static findParent(e){if(Ot!==e.target){let r=qi(e.target);for(;r!==null;){if(tn.has(r))return tn.get(r);r=qi(r)}return Ce.getOrCreate(Ot)}return null}static findClosestAssignedNode(e,r){let o=r;do{if(o.has(e))return o;o=o.parent?o.parent:o.target!==Ot?Ce.getOrCreate(Ot):null}while(o!==null);return null}get parent(){return rn.get(this)||null}updateCSSTokenReflection(e,r){if(Ve.isCSSDesignToken(r)){const o=this.parent,n=this.isReflecting(r);if(o){const i=o.get(r),s=e.get(r);i!==s&&!n?this.reflectToCSS(r):i===s&&n&&this.stopReflectToCSS(r)}else n||this.reflectToCSS(r)}}has(e){return this.assignedValues.has(e)}get(e){const r=this.store.get(e);if(r!==void 0)return r;const o=this.getRaw(e);if(o!==void 0)return this.hydrate(e,o),this.get(e)}getRaw(e){var r;return this.assignedValues.has(e)?this.assignedValues.get(e):(r=Ce.findClosestAssignedNode(e,this))===null||r===void 0?void 0:r.getRaw(e)}set(e,r){Ve.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,r),Ve.isDerivedDesignTokenValue(r)?this.setupBindingObserver(e,r):this.store.set(e,r)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);const r=this.getRaw(e);r?this.hydrate(e,r):this.store.delete(e)}bind(){const e=Ce.findParent(this);e&&e.appendChild(this);for(const r of this.assignedValues.keys())r.notify(this.target)}unbind(){this.parent&&rn.get(this).removeChild(this)}appendChild(e){e.parent&&rn.get(e).removeChild(e);const r=this.children.filter(o=>e.contains(o));rn.set(e,this),this.children.push(e),r.forEach(o=>e.appendChild(o)),ie.getNotifier(this.store).subscribe(e);for(const[o,n]of this.store.all())e.hydrate(o,this.bindingObservers.has(o)?this.getRaw(o):n)}removeChild(e){const r=this.children.indexOf(e);return r!==-1&&this.children.splice(r,1),ie.getNotifier(this.store).unsubscribe(e),e.parent===this?rn.delete(e):!1}contains(e){return P2(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),Ce.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),Ce.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,r){const o=Ve.getTokenById(r);o&&(this.hydrate(o,this.getRaw(o)),this.updateCSSTokenReflection(this.store,o))}hydrate(e,r){if(!this.has(e)){const o=this.bindingObservers.get(e);Ve.isDerivedDesignTokenValue(r)?o?o.source!==r&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,r)):this.setupBindingObserver(e,r):(o&&this.tearDownBindingObserver(e),this.store.set(e,r))}}setupBindingObserver(e,r){const o=new R2(r,e,this);return this.bindingObservers.set(e,o),o}tearDownBindingObserver(e){return this.bindingObservers.has(e)?(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0):!1}}Ce.cssCustomPropertyReflector=new L2;L([re],Ce.prototype,"children",void 0);function O2(t){return Ve.from(t)}const le=Object.freeze({create:O2,notifyConnection(t){return!t.isConnected||!Ce.existsFor(t)?!1:(Ce.getOrCreate(t).bind(),!0)},notifyDisconnection(t){return t.isConnected||!Ce.existsFor(t)?!1:(Ce.getOrCreate(t).unbind(),!0)},registerRoot(t=Ot){Ee.registerRoot(t)},unregisterRoot(t=Ot){Ee.unregisterRoot(t)}}),Ma=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),za=new Map,Ti=new Map;let ho=null;const on=ge.createInterface(t=>t.cachedCallback(e=>(ho===null&&(ho=new Q0(null,e)),ho))),J0=Object.freeze({tagFor(t){return Ti.get(t)},responsibleFor(t){const e=t.$$designSystem$$;return e||ge.findResponsibleContainer(t).get(on)},getOrCreate(t){if(!t)return ho===null&&(ho=ge.getOrCreateDOMContainer().get(on)),ho;const e=t.$$designSystem$$;if(e)return e;const r=ge.getOrCreateDOMContainer(t);if(r.has(on,!1))return r.get(on);{const o=new Q0(t,r);return r.register(Fn.instance(on,o)),o}}});function I2(t,e,r){return typeof t=="string"?{name:t,type:e,callback:r}:t}class Q0{constructor(e,r){this.owner=e,this.container=r,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>Ma.definitionCallbackOnly,e!==null&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){const r=this.container,o=[],n=this.disambiguate,i=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(a,l,c){const u=I2(a,l,c),{name:d,callback:f,baseClass:p}=u;let{type:h}=u,g=d,v=za.get(g),w=!0;for(;v;){const m=n(g,h,v);switch(m){case Ma.ignoreDuplicate:return;case Ma.definitionCallbackOnly:w=!1,v=void 0;break;default:g=m,v=za.get(g);break}}w&&((Ti.has(h)||h===it)&&(h=class extends h{}),za.set(g,h),Ti.set(h,g),p&&Ti.set(p,g)),o.push(new M2(r,g,h,i,f,w))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&le.registerRoot(this.designTokenRoot)),r.registerWithContext(s,...e);for(const a of o)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}}class M2{constructor(e,r,o,n,i,s){this.container=e,this.name=r,this.type=o,this.shadowRootMode=n,this.callback=i,this.willDefine=s,this.definition=null}definePresentation(e){z0.define(this.name,e,this.container)}defineElement(e){this.definition=new Ss(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return J0.tagFor(e)}}class Ps extends $t{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var e;return(e=this.options)===null||e===void 0?void 0:e.filter(r=>r.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(e,r){var o,n;this.ariaActiveDescendant=(n=(o=this.options[r])===null||o===void 0?void 0:o.id)!==null&&n!==void 0?n:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const e=this.activeOption;e&&(e.checked=!0)}checkFirstOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((r,o)=>{r.checked=di(o,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((r,o)=>{r.checked=di(o,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((r,o)=>{r.checked=di(o,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex{r.checked=di(o,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(e){var r;if(!this.multiple)return super.clickHandler(e);const o=(r=e.target)===null||r===void 0?void 0:r.closest("[role=option]");if(!(!o||o.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(o),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(e){if(!this.multiple)return super.focusinHandler(e);!this.shouldSkipFocus&&e.target===e.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(e){this.multiple&&this.uncheckAllOptions()}keydownHandler(e){if(!this.multiple)return super.keydownHandler(e);if(this.disabled)return!0;const{key:r,shiftKey:o}=e;switch(this.shouldSkipFocus=!1,r){case q0:{this.checkFirstOption(o);return}case Nc:{this.checkNextOption(o);return}case Lc:{this.checkPreviousOption(o);return}case U0:{this.checkLastOption(o);return}case Z0:return this.focusAndScrollOptionIntoView(),!0;case j0:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case W0:if(e.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return r.length===1&&this.handleTypeAhead(`${r}`),!0}}mousedownHandler(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return super.mousedownHandler(e)}multipleChanged(e,r){var o;this.ariaMultiSelectable=r?"true":null,(o=this.options)===null||o===void 0||o.forEach(n=>{n.checked=r?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(e=>e.selected),this.focusAndScrollOptionIntoView())}sizeChanged(e,r){var o;const n=Math.max(0,parseInt((o=r==null?void 0:r.toFixed())!==null&&o!==void 0?o:"",10));n!==r&&Q.queueUpdate(()=>{this.size=n})}toggleSelectedForAllCheckedOptions(){const e=this.checkedOptions.filter(o=>!o.disabled),r=!e.every(o=>o.selected);e.forEach(o=>o.selected=r),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(e,r){if(!this.multiple){super.typeaheadBufferChanged(e,r);return}if(this.$fastController.isConnected){const o=this.getTypeaheadMatches(),n=this.options.indexOf(o[0]);n>-1&&(this.activeIndex=n,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(e=!1){this.options.forEach(r=>r.checked=this.multiple?!1:void 0),e||(this.rangeStartIndex=-1)}}L([re],Ps.prototype,"activeIndex",void 0);L([z({mode:"boolean"})],Ps.prototype,"multiple",void 0);L([z({converter:Gr})],Ps.prototype,"size",void 0);const z2=(t,e)=>rt` + +`,Xd=44,V2=(t,e)=>rt` + +`;class Ro extends it{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const e=typeof this.min=="number"?this.min:0,r=typeof this.max=="number"?this.max:100,o=typeof this.value=="number"?this.value:0,n=r-e;this.percentComplete=n===0?0:Math.fround((o-e)/n*100)}}L([z({converter:Gr})],Ro.prototype,"value",void 0);L([z({converter:Gr})],Ro.prototype,"min",void 0);L([z({converter:Gr})],Ro.prototype,"max",void 0);L([z({mode:"boolean"})],Ro.prototype,"paused",void 0);L([re],Ro.prototype,"percentComplete",void 0);function H2(t,e,r){return t.nodeType!==Node.TEXT_NODE?!0:typeof t.nodeValue=="string"&&!!t.nodeValue.trim().length}class j2 extends it{}class q2 extends Rc(j2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let ct=class extends q2{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&Q.queueUpdate(()=>{this.focus()})}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus(),this.handleChange()}handleChange(){this.$emit("change")}};L([z({attribute:"readonly",mode:"boolean"})],ct.prototype,"readOnly",void 0);L([z({mode:"boolean"})],ct.prototype,"autofocus",void 0);L([z],ct.prototype,"placeholder",void 0);L([z],ct.prototype,"list",void 0);L([z({converter:Gr})],ct.prototype,"maxlength",void 0);L([z({converter:Gr})],ct.prototype,"minlength",void 0);L([z],ct.prototype,"pattern",void 0);L([z({converter:Gr})],ct.prototype,"size",void 0);L([z({mode:"boolean"})],ct.prototype,"spellcheck",void 0);L([re],ct.prototype,"defaultSlottedNodes",void 0);class Y0{}hr(Y0,be);hr(ct,Ac,Y0);const U2=(t,e)=>rt` + +`;class Wn extends it{constructor(){super(...arguments),this.shape="rect"}}L([z],Wn.prototype,"fill",void 0);L([z],Wn.prototype,"shape",void 0);L([z],Wn.prototype,"pattern",void 0);L([z({mode:"boolean"})],Wn.prototype,"shimmer",void 0);class W2{constructor(e){this.listenerCache=new WeakMap,this.query=e}bind(e){const{query:r}=this,o=this.constructListener(e);o.bind(r)(),r.addListener(o),this.listenerCache.set(e,o)}unbind(e){const r=this.listenerCache.get(e);r&&(this.query.removeListener(r),this.listenerCache.delete(e))}}class Zn extends W2{constructor(e,r){super(e),this.styles=r}static with(e){return r=>new Zn(e,r)}constructListener(e){let r=!1;const o=this.styles;return function(){const{matches:i}=this;i&&!r?(e.$fastController.addStyles(o),r=i):!i&&r&&(e.$fastController.removeStyles(o),r=i)}}unbind(e){super.unbind(e),e.$fastController.removeStyles(this.styles)}}const Zt=Zn.with(window.matchMedia("(forced-colors)"));Zn.with(window.matchMedia("(prefers-color-scheme: dark)"));Zn.with(window.matchMedia("(prefers-color-scheme: light)"));class Z2{constructor(e,r,o){this.propertyName=e,this.value=r,this.styles=o}bind(e){ie.getNotifier(e).subscribe(this,this.propertyName),this.handleChange(e,this.propertyName)}unbind(e){ie.getNotifier(e).unsubscribe(this,this.propertyName),e.$fastController.removeStyles(this.styles)}handleChange(e,r){e[r]===this.value?e.$fastController.addStyles(this.styles):e.$fastController.removeStyles(this.styles)}}const e1="not-allowed",G2=":host([hidden]){display:none}";function Mr(t){return`${G2}:host{display:${t}}`}const zr=b2()?"focus-visible":"focus";function Sr(t,e,r){return isNaN(t)||t<=e?e:t>=r?r:t}function Va(t,e,r){return isNaN(t)||t<=e?0:t>=r?1:t/(r-e)}function kr(t,e,r){return isNaN(t)?e:e+t*(r-e)}function X2(t){const e=Math.round(Sr(t,0,255)).toString(16);return e.length===1?"0"+e:e}function fi(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:e+t*(r-e)}function qe(t,e){const r=Math.pow(10,e);return Math.round(t*r)/r}class Tn{constructor(e,r,o){this.h=e,this.s=r,this.l=o}static fromObject(e){return e&&!isNaN(e.h)&&!isNaN(e.s)&&!isNaN(e.l)?new Tn(e.h,e.s,e.l):null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(e){return new Tn(qe(this.h,e),qe(this.s,e),qe(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class $e{constructor(e,r,o){this.l=e,this.a=r,this.b=o}static fromObject(e){return e&&!isNaN(e.l)&&!isNaN(e.a)&&!isNaN(e.b)?new $e(e.l,e.a,e.b):null}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(e){return new $e(qe(this.l,e),qe(this.a,e),qe(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}}$e.epsilon=216/24389;$e.kappa=24389/27;class Se{constructor(e,r,o,n){this.r=e,this.g=r,this.b=o,this.a=typeof n=="number"&&!isNaN(n)?n:1}static fromObject(e){return e&&!isNaN(e.r)&&!isNaN(e.g)&&!isNaN(e.b)?new Se(e.r,e.g,e.b,e.a):null}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(kr(this.r,0,255))},${Math.round(kr(this.g,0,255))},${Math.round(kr(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(kr(this.r,0,255))},${Math.round(kr(this.g,0,255))},${Math.round(kr(this.b,0,255))},${Sr(this.a,0,1)})`}roundToPrecision(e){return new Se(qe(this.r,e),qe(this.g,e),qe(this.b,e),qe(this.a,e))}clamp(){return new Se(Sr(this.r,0,1),Sr(this.g,0,1),Sr(this.b,0,1),Sr(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return X2(kr(e,0,255))}}class tt{constructor(e,r,o){this.x=e,this.y=r,this.z=o}static fromObject(e){return e&&!isNaN(e.x)&&!isNaN(e.y)&&!isNaN(e.z)?new tt(e.x,e.y,e.z):null}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(e){return new tt(qe(this.x,e),qe(this.y,e),qe(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}}tt.whitePoint=new tt(.95047,1,1.08883);function K2(t){return t.r*.2126+t.g*.7152+t.b*.0722}function t1(t){function e(r){return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return K2(new Se(e(t.r),e(t.g),e(t.b),1))}function Ha(t,e,r){return r-e===0?0:(t-e)/(r-e)}function ja(t,e,r){const o=Ha(t.r,e.r,r.r),n=Ha(t.g,e.g,r.g),i=Ha(t.b,e.b,r.b);return(o+n+i)/3}function J2(t,e,r=null){let o=0,n=r;return n!==null?o=ja(t,e,n):(n=new Se(0,0,0,1),o=ja(t,e,n),o<=0&&(n=new Se(1,1,1,1),o=ja(t,e,n))),o=Math.round(o*1e3)/1e3,new Se(n.r,n.g,n.b,o)}function Kd(t){const e=Math.max(t.r,t.g,t.b),r=Math.min(t.r,t.g,t.b),o=e-r;let n=0;o!==0&&(e===t.r?n=60*((t.g-t.b)/o%6):e===t.g?n=60*((t.b-t.r)/o+2):n=60*((t.r-t.g)/o+4)),n<0&&(n+=360);const i=(e+r)/2;let s=0;return o!==0&&(s=o/(1-Math.abs(2*i-1))),new Tn(n,s,i)}function Q2(t,e=1){const r=(1-Math.abs(2*t.l-1))*t.s,o=r*(1-Math.abs(t.h/60%2-1)),n=t.l-r/2;let i=0,s=0,a=0;return t.h<60?(i=r,s=o,a=0):t.h<120?(i=o,s=r,a=0):t.h<180?(i=0,s=r,a=o):t.h<240?(i=0,s=o,a=r):t.h<300?(i=o,s=0,a=r):t.h<360&&(i=r,s=0,a=o),new Se(i+n,s+n,a+n,e)}function Y2(t){const e=(t.l+16)/116,r=e+t.a/500,o=e-t.b/200,n=Math.pow(r,3),i=Math.pow(e,3),s=Math.pow(o,3);let a=0;n>$e.epsilon?a=n:a=(116*r-16)/$e.kappa;let l=0;t.l>$e.epsilon*$e.kappa?l=i:l=t.l/$e.kappa;let c=0;return s>$e.epsilon?c=s:c=(116*o-16)/$e.kappa,a=tt.whitePoint.x*a,l=tt.whitePoint.y*l,c=tt.whitePoint.z*c,new tt(a,l,c)}function eb(t){function e(l){return l>$e.epsilon?Math.pow(l,1/3):($e.kappa*l+16)/116}const r=e(t.x/tt.whitePoint.x),o=e(t.y/tt.whitePoint.y),n=e(t.z/tt.whitePoint.z),i=116*o-16,s=500*(r-o),a=200*(o-n);return new $e(i,s,a)}function tb(t){function e(l){return l<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)}const r=e(t.r),o=e(t.g),n=e(t.b),i=r*.4124564+o*.3575761+n*.1804375,s=r*.2126729+o*.7151522+n*.072175,a=r*.0193339+o*.119192+n*.9503041;return new tt(i,s,a)}function rb(t,e=1){function r(s){return s<=.0031308?s*12.92:1.055*Math.pow(s,1/2.4)-.055}const o=r(t.x*3.2404542-t.y*1.5371385-t.z*.4985314),n=r(t.x*-.969266+t.y*1.8760108+t.z*.041556),i=r(t.x*.0556434-t.y*.2040259+t.z*1.0572252);return new Se(o,n,i,e)}function ob(t){return eb(tb(t))}function qa(t,e=1){return rb(Y2(t),e)}var Jd;(function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"})(Jd||(Jd={}));function nb(t,e){if(e.a>=1)return e;if(e.a<=0)return new Se(t.r,t.g,t.b,1);const r=e.a*e.r+(1-e.a)*t.r,o=e.a*e.g+(1-e.a)*t.g,n=e.a*e.b+(1-e.a)*t.b;return new Se(r,o,n,1)}function hi(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new Se(fi(t,e.r,r.r),fi(t,e.g,r.g),fi(t,e.b,r.b),fi(t,e.a,r.a))}var Qd;(function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"})(Qd||(Qd={}));const ib=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function he(t){const e=ib.exec(t);if(e===null)return null;let r=e[1];if(r.length===3){const n=r.charAt(0),i=r.charAt(1),s=r.charAt(2);r=n.concat(n,i,i,s,s)}const o=parseInt(r,16);return isNaN(o)?null:new Se(Va((o&16711680)>>>16,0,255),Va((o&65280)>>>8,0,255),Va(o&255,0,255),1)}function Ui(t,e){const r=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(r.relativeLuminance+.05)/(o.relativeLuminance+.05)}const ee=Object.freeze({create(t,e,r){return new Wi(t,e,r)},from(t){return new Wi(t.r,t.g,t.b)}});function sb(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const r in e)if(typeof e[r]!=typeof t[r])return!1;return!0}class Wi extends Se{constructor(e,r,o){super(e,r,o,1),this.toColorString=this.toStringHexRGB,this.contrast=Ui.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=t1(this)}static fromObject(e){return new Wi(e.r,e.g,e.b)}}function Dl(t,e,r=0,o=t.length-1){if(o===r)return t[r];const n=Math.floor((o-r)/2)+r;return e(t[n])?Dl(t,e,r,n):Dl(t,e,n+1,o)}const ab=(-.1+Math.sqrt(.21))/2;function Gn(t){return t.relativeLuminance<=ab}function Xr(t){return Gn(t)?-1:1}const Yd={stepContrast:1.03,stepContrastRamp:.03,preserveSource:!1};function lb(t,e,r){return typeof t=="number"?En.from(ee.create(t,e,r)):En.from(t)}function cb(t,e){return sb(t)?St.from(t,e):St.from(ee.create(t.r,t.g,t.b),e)}const En=Object.freeze({create:lb,from:cb});class St{constructor(e,r){this.closestIndexCache=new Map,this.source=e,this.swatches=r,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(e,r,o,n){o===void 0&&(o=this.closestIndexOf(e));let i=this.swatches;const s=this.lastIndex;let a=o;n===void 0&&(n=Xr(e));const l=c=>Ui(e,c)>=r;return n===-1&&(i=this.reversedSwatches,a=s-a),Dl(i,l,a,s)}get(e){return this.swatches[e]||this.swatches[Sr(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance))return this.closestIndexCache.get(e.relativeLuminance);let r=this.swatches.indexOf(e);if(r!==-1)return this.closestIndexCache.set(e.relativeLuminance,r),r;const o=this.swatches.reduce((n,i)=>Math.abs(i.relativeLuminance-e.relativeLuminance).5?(r-.5)/.5:2*r}static createHighResolutionPalette(e){const r=[],o=ob(Se.fromObject(e).roundToPrecision(4)),n=qa(new $e(0,o.a,o.b)).clamp().roundToPrecision(4),i=qa(new $e(50,o.a,o.b)).clamp().roundToPrecision(4),s=qa(new $e(100,o.a,o.b)).clamp().roundToPrecision(4),a=new Se(0,0,0),l=new Se(1,1,1),c=s.equalValue(l)?0:14,u=n.equalValue(a)?0:14;for(let d=100+c;d>=0-u;d-=.5){let f;if(d<0){const p=d/u+1;f=hi(p,a,n)}else if(d<=50)f=hi(St.ramp(d),n,i);else if(d<=100)f=hi(St.ramp(d),i,s);else{const p=(d-100)/c;f=hi(p,s,l)}f=St.saturationBump(i,f).roundToPrecision(4),r.push(ee.from(f))}return new St(e,r)}static adjustEnd(e,r,o,n){const i=n===-1?r.swatches:r.reversedSwatches,s=c=>{const u=r.closestIndexOf(c);return n===1?r.lastIndex-u:u};n===1&&o.reverse();const a=e(o[o.length-2]);if(qe(Ui(o[o.length-1],o[o.length-2]),2){const l=r.stepContrast+r.stepContrast*(1-a.relativeLuminance)*r.stepContrastRamp;return qe(l,2)},i=[];let s=r.preserveSource?e:o.swatches[0];i.push(s);do{const a=n(s);s=o.colorContrast(s,a,void 0,1),i.push(s)}while(s.relativeLuminance>0);if(r.preserveSource){s=e;do{const a=n(s);s=o.colorContrast(s,a,void 0,-1),i.unshift(s)}while(s.relativeLuminance<1)}return this.adjustEnd(n,o,i,-1),r.preserveSource&&this.adjustEnd(n,o,i,1),i}static from(e,r){const o=r===void 0?Yd:Object.assign(Object.assign({},Yd),r);return new St(e,Object.freeze(St.createColorPaletteByContrast(e,o)))}}const Zi=ee.create(1,1,1),Oc=ee.create(0,0,0),ub=ee.create(.5,.5,.5),Ua=he("#0078D4"),db=ee.create(Ua.r,Ua.g,Ua.b);function r1(t,e,r,o,n){const i=u=>u.contrast(Zi)>=n?Zi:Oc,s=i(t),a=i(e),l=s.relativeLuminance===a.relativeLuminance?s:i(r),c=i(o);return{rest:s,hover:a,active:l,focus:c}}class Fs{constructor(e,r,o,n){this.toColorString=()=>this.cssGradient,this.contrast=Ui.bind(null,this),this.createCSS=this.toColorString,this.color=new Se(e,r,o),this.cssGradient=n,this.relativeLuminance=t1(this.color),this.r=e,this.g=r,this.b=o}static fromObject(e,r){return new Fs(e.r,e.g,e.b,r)}}const fb=new Se(0,0,0),hb=new Se(1,1,1);function o1(t,e,r,o,n,i,s,a,l=10,c=!1){const u=t.closestIndexOf(e);a===void 0&&(a=Xr(e));function d(y){if(c){const C=t.closestIndexOf(e),x=t.get(C),_=y.relativeLuminance{const r=t.getValueFor(e),o=Fb.getValueFor(e);if(r.endsWith("px")){const n=Number.parseFloat(r.replace("px",""));if(n<=12)return`"wght" ${o}, "opsz" 8`;if(n>24)return`"wght" ${o}, "opsz" 36`}return`"wght" ${o}, "opsz" 10.5`}}const s1=S("type-ramp-base-font-size").withDefault("14px"),Tb=S("type-ramp-base-line-height").withDefault("20px"),Eb=S("type-ramp-base-font-variations").withDefault(Xt(s1)),a1=S("type-ramp-minus-1-font-size").withDefault("12px"),$b=S("type-ramp-minus-1-line-height").withDefault("16px"),Ab=S("type-ramp-minus-1-font-variations").withDefault(Xt(a1)),l1=S("type-ramp-minus-2-font-size").withDefault("10px"),Nb=S("type-ramp-minus-2-line-height").withDefault("14px"),Lb=S("type-ramp-minus-2-font-variations").withDefault(Xt(l1)),c1=S("type-ramp-plus-1-font-size").withDefault("16px"),Rb=S("type-ramp-plus-1-line-height").withDefault("22px"),Db=S("type-ramp-plus-1-font-variations").withDefault(Xt(c1)),u1=S("type-ramp-plus-2-font-size").withDefault("20px"),Ob=S("type-ramp-plus-2-line-height").withDefault("26px"),Ib=S("type-ramp-plus-2-font-variations").withDefault(Xt(u1)),d1=S("type-ramp-plus-3-font-size").withDefault("24px"),Mb=S("type-ramp-plus-3-line-height").withDefault("32px"),zb=S("type-ramp-plus-3-font-variations").withDefault(Xt(d1)),f1=S("type-ramp-plus-4-font-size").withDefault("28px"),Vb=S("type-ramp-plus-4-line-height").withDefault("36px"),Hb=S("type-ramp-plus-4-font-variations").withDefault(Xt(f1)),h1=S("type-ramp-plus-5-font-size").withDefault("32px"),jb=S("type-ramp-plus-5-line-height").withDefault("40px"),qb=S("type-ramp-plus-5-font-variations").withDefault(Xt(h1)),p1=S("type-ramp-plus-6-font-size").withDefault("40px"),Ub=S("type-ramp-plus-6-line-height").withDefault("52px"),Wb=S("type-ramp-plus-6-font-variations").withDefault(Xt(p1)),Kr=S("base-layer-luminance").withDefault(Tr.LightMode),ef=A("accent-fill-rest-delta").withDefault(0),tf=A("accent-fill-hover-delta").withDefault(-2),rf=A("accent-fill-active-delta").withDefault(-5),of=A("accent-fill-focus-delta").withDefault(0),Zb=A("accent-foreground-rest-delta").withDefault(0),Gb=A("accent-foreground-hover-delta").withDefault(3),Xb=A("accent-foreground-active-delta").withDefault(-8),Kb=A("accent-foreground-focus-delta").withDefault(0),Jb=A("neutral-fill-rest-delta").withDefault(-1),Qb=A("neutral-fill-hover-delta").withDefault(1),Yb=A("neutral-fill-active-delta").withDefault(0),ey=A("neutral-fill-focus-delta").withDefault(0),ty=A("neutral-fill-input-rest-delta").withDefault(-1),ry=A("neutral-fill-input-hover-delta").withDefault(1),oy=A("neutral-fill-input-active-delta").withDefault(0),ny=A("neutral-fill-input-focus-delta").withDefault(-2),pi=A("neutral-fill-input-alt-rest-delta").withDefault(2),nf=A("neutral-fill-input-alt-hover-delta").withDefault(4),sf=A("neutral-fill-input-alt-active-delta").withDefault(6),af=A("neutral-fill-input-alt-focus-delta").withDefault(2),jr=A("neutral-fill-layer-rest-delta").withDefault(-2),iy=A("neutral-fill-layer-hover-delta").withDefault(-3),sy=A("neutral-fill-layer-active-delta").withDefault(-3),gi=A("neutral-fill-layer-alt-rest-delta").withDefault(-1),ay=A("neutral-fill-secondary-rest-delta").withDefault(3),ly=A("neutral-fill-secondary-hover-delta").withDefault(2),cy=A("neutral-fill-secondary-active-delta").withDefault(1),uy=A("neutral-fill-secondary-focus-delta").withDefault(3),dy=A("neutral-fill-stealth-rest-delta").withDefault(0),fy=A("neutral-fill-stealth-hover-delta").withDefault(3),hy=A("neutral-fill-stealth-active-delta").withDefault(2),py=A("neutral-fill-stealth-focus-delta").withDefault(0),gy=A("neutral-fill-strong-rest-delta").withDefault(0),vy=A("neutral-fill-strong-hover-delta").withDefault(8),my=A("neutral-fill-strong-active-delta").withDefault(-5),by=A("neutral-fill-strong-focus-delta").withDefault(0),yy=A("neutral-stroke-rest-delta").withDefault(8),wy=A("neutral-stroke-hover-delta").withDefault(12),ky=A("neutral-stroke-active-delta").withDefault(6),xy=A("neutral-stroke-focus-delta").withDefault(8),g1=A("neutral-stroke-control-rest-delta").withDefault(3),v1=A("neutral-stroke-control-hover-delta").withDefault(5),m1=A("neutral-stroke-control-active-delta").withDefault(5),b1=A("neutral-stroke-control-focus-delta").withDefault(5),Cy=A("neutral-stroke-divider-rest-delta").withDefault(4),lf=A("neutral-stroke-layer-rest-delta").withDefault(3),Sy=A("neutral-stroke-layer-hover-delta").withDefault(3),_y=A("neutral-stroke-layer-active-delta").withDefault(3),By=A("neutral-stroke-strong-hover-delta").withDefault(0),Py=A("neutral-stroke-strong-active-delta").withDefault(0),Fy=A("neutral-stroke-strong-focus-delta").withDefault(0),y1=S("neutral-base-color").withDefault(ub),ce=A("neutral-palette").withDefault(t=>En.from(y1.getValueFor(t))),w1=S("accent-base-color").withDefault(db),zc=A("accent-palette").withDefault(t=>En.from(w1.getValueFor(t))),Ty=A("neutral-layer-card-container-recipe").withDefault({evaluate:t=>n1(ce.getValueFor(t),Kr.getValueFor(t),jr.getValueFor(t))});S("neutral-layer-card-container").withDefault(t=>Ty.getValueFor(t).evaluate(t));const Ey=A("neutral-layer-floating-recipe").withDefault({evaluate:t=>xb(ce.getValueFor(t),Kr.getValueFor(t),jr.getValueFor(t))}),lP=S("neutral-layer-floating").withDefault(t=>Ey.getValueFor(t).evaluate(t)),$y=A("neutral-layer-1-recipe").withDefault({evaluate:t=>kb(ce.getValueFor(t),Kr.getValueFor(t))}),Ay=S("neutral-layer-1").withDefault(t=>$y.getValueFor(t).evaluate(t)),Ny=A("neutral-layer-2-recipe").withDefault({evaluate:t=>n1(ce.getValueFor(t),Kr.getValueFor(t),jr.getValueFor(t))});S("neutral-layer-2").withDefault(t=>Ny.getValueFor(t).evaluate(t));const Ly=A("neutral-layer-3-recipe").withDefault({evaluate:t=>Cb(ce.getValueFor(t),Kr.getValueFor(t),jr.getValueFor(t))});S("neutral-layer-3").withDefault(t=>Ly.getValueFor(t).evaluate(t));const Ry=A("neutral-layer-4-recipe").withDefault({evaluate:t=>Sb(ce.getValueFor(t),Kr.getValueFor(t),jr.getValueFor(t))});S("neutral-layer-4").withDefault(t=>Ry.getValueFor(t).evaluate(t));const se=S("fill-color").withDefault(t=>Ay.getValueFor(t));var Gi;(function(t){t[t.normal=4.5]="normal",t[t.large=3]="large"})(Gi||(Gi={}));const Ts=A("accent-fill-recipe").withDefault({evaluate:(t,e)=>vb(zc.getValueFor(t),e||se.getValueFor(t),5,ef.getValueFor(t),tf.getValueFor(t),rf.getValueFor(t),of.getValueFor(t),void 0,8,ef.getValueFor(t),tf.getValueFor(t),rf.getValueFor(t),of.getValueFor(t),void 0)}),Pt=S("accent-fill-rest").withDefault(t=>Ts.getValueFor(t).evaluate(t).rest),qr=S("accent-fill-hover").withDefault(t=>Ts.getValueFor(t).evaluate(t).hover),Ur=S("accent-fill-active").withDefault(t=>Ts.getValueFor(t).evaluate(t).active),Kn=S("accent-fill-focus").withDefault(t=>Ts.getValueFor(t).evaluate(t).focus),Es=A("foreground-on-accent-recipe").withDefault({evaluate:t=>r1(Pt.getValueFor(t),qr.getValueFor(t),Ur.getValueFor(t),Kn.getValueFor(t),Gi.normal)}),k1=S("foreground-on-accent-rest").withDefault(t=>Es.getValueFor(t).evaluate(t).rest),x1=S("foreground-on-accent-hover").withDefault(t=>Es.getValueFor(t).evaluate(t).hover),C1=S("foreground-on-accent-active").withDefault(t=>Es.getValueFor(t).evaluate(t).active),Dy=S("foreground-on-accent-focus").withDefault(t=>Es.getValueFor(t).evaluate(t).focus),$s=A("accent-foreground-recipe").withDefault({evaluate:(t,e)=>yo(zc.getValueFor(t),e||se.getValueFor(t),9.5,Zb.getValueFor(t),Gb.getValueFor(t),Xb.getValueFor(t),Kb.getValueFor(t))}),S1=S("accent-foreground-rest").withDefault(t=>$s.getValueFor(t).evaluate(t).rest),_1=S("accent-foreground-hover").withDefault(t=>$s.getValueFor(t).evaluate(t).hover),B1=S("accent-foreground-active").withDefault(t=>$s.getValueFor(t).evaluate(t).active),Oy=S("accent-foreground-focus").withDefault(t=>$s.getValueFor(t).evaluate(t).focus),As=A("accent-stroke-control-recipe").withDefault({evaluate:(t,e)=>o1(ce.getValueFor(t),e||se.getValueFor(t),-3,-3,-3,-3,10,1,void 0,!0)}),P1=S("accent-stroke-control-rest").withDefault(t=>As.getValueFor(t).evaluate(t,Pt.getValueFor(t)).rest),F1=S("accent-stroke-control-hover").withDefault(t=>As.getValueFor(t).evaluate(t,qr.getValueFor(t)).hover),T1=S("accent-stroke-control-active").withDefault(t=>As.getValueFor(t).evaluate(t,Ur.getValueFor(t)).active),Iy=S("accent-stroke-control-focus").withDefault(t=>As.getValueFor(t).evaluate(t,Kn.getValueFor(t)).focus),Ns=A("neutral-fill-recipe").withDefault({evaluate:(t,e)=>Ic(ce.getValueFor(t),e||se.getValueFor(t),Jb.getValueFor(t),Qb.getValueFor(t),Yb.getValueFor(t),ey.getValueFor(t),void 0,2,3,1,2,void 0)}),vi=S("neutral-fill-rest").withDefault(t=>Ns.getValueFor(t).evaluate(t).rest),cf=S("neutral-fill-hover").withDefault(t=>Ns.getValueFor(t).evaluate(t).hover),uf=S("neutral-fill-active").withDefault(t=>Ns.getValueFor(t).evaluate(t).active);S("neutral-fill-focus").withDefault(t=>Ns.getValueFor(t).evaluate(t).focus);const pr=A("neutral-fill-input-recipe").withDefault({evaluate:(t,e)=>Ic(ce.getValueFor(t),e||se.getValueFor(t),ty.getValueFor(t),ry.getValueFor(t),oy.getValueFor(t),ny.getValueFor(t),void 0,2,3,1,0,void 0)}),mi=S("neutral-fill-input-rest").withDefault(t=>pr.getValueFor(t).evaluate(t).rest),df=S("neutral-fill-input-hover").withDefault(t=>pr.getValueFor(t).evaluate(t).hover);S("neutral-fill-input-active").withDefault(t=>pr.getValueFor(t).evaluate(t).active);const ff=S("neutral-fill-input-focus").withDefault(t=>pr.getValueFor(t).evaluate(t).focus),Ls=A("neutral-fill-input-alt-recipe").withDefault({evaluate:(t,e)=>Ic(ce.getValueFor(t),e||se.getValueFor(t),pi.getValueFor(t),nf.getValueFor(t),sf.getValueFor(t),af.getValueFor(t),1,pi.getValueFor(t),pi.getValueFor(t)-nf.getValueFor(t),pi.getValueFor(t)-sf.getValueFor(t),af.getValueFor(t),1)}),cP=S("neutral-fill-input-alt-rest").withDefault(t=>Ls.getValueFor(t).evaluate(t).rest),uP=S("neutral-fill-input-alt-hover").withDefault(t=>Ls.getValueFor(t).evaluate(t).hover),dP=S("neutral-fill-input-alt-active").withDefault(t=>Ls.getValueFor(t).evaluate(t).active),fP=S("neutral-fill-input-alt-focus").withDefault(t=>Ls.getValueFor(t).evaluate(t).focus),Rs=A("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>lr(ce.getValueFor(t),e||se.getValueFor(t),jr.getValueFor(t),iy.getValueFor(t),sy.getValueFor(t),jr.getValueFor(t),1)}),hP=S("neutral-fill-layer-rest").withDefault(t=>Rs.getValueFor(t).evaluate(t).rest);S("neutral-fill-layer-hover").withDefault(t=>Rs.getValueFor(t).evaluate(t).hover);S("neutral-fill-layer-active").withDefault(t=>Rs.getValueFor(t).evaluate(t).active);const My=A("neutral-fill-layer-alt-recipe").withDefault({evaluate:(t,e)=>lr(ce.getValueFor(t),e||se.getValueFor(t),gi.getValueFor(t),gi.getValueFor(t),gi.getValueFor(t),gi.getValueFor(t))}),pP=S("neutral-fill-layer-alt-rest").withDefault(t=>My.getValueFor(t).evaluate(t).rest),Oo=A("neutral-fill-secondary-recipe").withDefault({evaluate:(t,e)=>lr(ce.getValueFor(t),e||se.getValueFor(t),ay.getValueFor(t),ly.getValueFor(t),cy.getValueFor(t),uy.getValueFor(t))}),Xi=S("neutral-fill-secondary-rest").withDefault(t=>Oo.getValueFor(t).evaluate(t).rest),E1=S("neutral-fill-secondary-hover").withDefault(t=>Oo.getValueFor(t).evaluate(t).hover),gP=S("neutral-fill-secondary-active").withDefault(t=>Oo.getValueFor(t).evaluate(t).active),zy=S("neutral-fill-secondary-focus").withDefault(t=>Oo.getValueFor(t).evaluate(t).focus),Io=A("neutral-fill-stealth-recipe").withDefault({evaluate:(t,e)=>lr(ce.getValueFor(t),e||se.getValueFor(t),dy.getValueFor(t),fy.getValueFor(t),hy.getValueFor(t),py.getValueFor(t))}),Ki=S("neutral-fill-stealth-rest").withDefault(t=>Io.getValueFor(t).evaluate(t).rest),$1=S("neutral-fill-stealth-hover").withDefault(t=>Io.getValueFor(t).evaluate(t).hover),A1=S("neutral-fill-stealth-active").withDefault(t=>Io.getValueFor(t).evaluate(t).active),vP=S("neutral-fill-stealth-focus").withDefault(t=>Io.getValueFor(t).evaluate(t).focus),Ds=A("neutral-fill-strong-recipe").withDefault({evaluate:(t,e)=>yo(ce.getValueFor(t),e||se.getValueFor(t),4.5,gy.getValueFor(t),vy.getValueFor(t),my.getValueFor(t),by.getValueFor(t))}),mP=S("neutral-fill-strong-rest").withDefault(t=>Ds.getValueFor(t).evaluate(t).rest),bP=S("neutral-fill-strong-hover").withDefault(t=>Ds.getValueFor(t).evaluate(t).hover),yP=S("neutral-fill-strong-active").withDefault(t=>Ds.getValueFor(t).evaluate(t).active);S("neutral-fill-strong-focus").withDefault(t=>Ds.getValueFor(t).evaluate(t).focus);const Os=A("neutral-foreground-recipe").withDefault({evaluate:(t,e)=>yo(ce.getValueFor(t),e||se.getValueFor(t),16,0,-19,-30,0)}),$n=S("neutral-foreground-rest").withDefault(t=>Os.getValueFor(t).evaluate(t).rest),wP=S("neutral-foreground-hover").withDefault(t=>Os.getValueFor(t).evaluate(t).hover),kP=S("neutral-foreground-active").withDefault(t=>Os.getValueFor(t).evaluate(t).active);S("neutral-foreground-focus").withDefault(t=>Os.getValueFor(t).evaluate(t).focus);const Jn=A("neutral-foreground-hint-recipe").withDefault({evaluate:(t,e)=>gb(ce.getValueFor(t),e||se.getValueFor(t),4.5)}),hf=S("neutral-foreground-hint").withDefault(t=>Jn.getValueFor(t).evaluate(t)),Is=A("neutral-stroke-recipe").withDefault({evaluate:(t,e)=>lr(ce.getValueFor(t),e||se.getValueFor(t),yy.getValueFor(t),wy.getValueFor(t),ky.getValueFor(t),xy.getValueFor(t))}),An=S("neutral-stroke-rest").withDefault(t=>Is.getValueFor(t).evaluate(t).rest),Vy=S("neutral-stroke-hover").withDefault(t=>Is.getValueFor(t).evaluate(t).hover),Hy=S("neutral-stroke-active").withDefault(t=>Is.getValueFor(t).evaluate(t).active);S("neutral-stroke-focus").withDefault(t=>Is.getValueFor(t).evaluate(t).focus);const Ms=A("neutral-stroke-control-recipe").withDefault({evaluate:(t,e)=>o1(ce.getValueFor(t),e||se.getValueFor(t),g1.getValueFor(t),v1.getValueFor(t),m1.getValueFor(t),b1.getValueFor(t),5)}),jy=S("neutral-stroke-control-rest").withDefault(t=>Ms.getValueFor(t).evaluate(t).rest),qy=S("neutral-stroke-control-hover").withDefault(t=>Ms.getValueFor(t).evaluate(t).hover),Uy=S("neutral-stroke-control-active").withDefault(t=>Ms.getValueFor(t).evaluate(t).active);S("neutral-stroke-control-focus").withDefault(t=>Ms.getValueFor(t).evaluate(t).focus);const Wy=A("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>mb(ce.getValueFor(t),e||se.getValueFor(t),Cy.getValueFor(t))}),xP=S("neutral-stroke-divider-rest").withDefault(t=>Wy.getValueFor(t).evaluate(t)),zs=A("neutral-stroke-input-recipe").withDefault({evaluate:(t,e)=>pb(ce.getValueFor(t),e||se.getValueFor(t),g1.getValueFor(t),v1.getValueFor(t),m1.getValueFor(t),b1.getValueFor(t),20,Do.getValueFor(t)+"px")}),pf=S("neutral-stroke-input-rest").withDefault(t=>zs.getValueFor(t).evaluate(t).rest),Zy=S("neutral-stroke-input-hover").withDefault(t=>zs.getValueFor(t).evaluate(t).hover);S("neutral-stroke-input-active").withDefault(t=>zs.getValueFor(t).evaluate(t).active);S("neutral-stroke-input-focus").withDefault(t=>zs.getValueFor(t).evaluate(t).focus);const Vc=A("neutral-stroke-layer-recipe").withDefault({evaluate:(t,e)=>lr(ce.getValueFor(t),e||se.getValueFor(t),lf.getValueFor(t),Sy.getValueFor(t),_y.getValueFor(t),lf.getValueFor(t))}),Gy=S("neutral-stroke-layer-rest").withDefault(t=>Vc.getValueFor(t).evaluate(t).rest);S("neutral-stroke-layer-hover").withDefault(t=>Vc.getValueFor(t).evaluate(t).hover);S("neutral-stroke-layer-active").withDefault(t=>Vc.getValueFor(t).evaluate(t).active);const Vs=A("neutral-stroke-strong-recipe").withDefault({evaluate:(t,e)=>yo(ce.getValueFor(t),e||se.getValueFor(t),5.5,0,By.getValueFor(t),Py.getValueFor(t),Fy.getValueFor(t))}),CP=S("neutral-stroke-strong-rest").withDefault(t=>Vs.getValueFor(t).evaluate(t).rest),SP=S("neutral-stroke-strong-hover").withDefault(t=>Vs.getValueFor(t).evaluate(t).hover),_P=S("neutral-stroke-strong-active").withDefault(t=>Vs.getValueFor(t).evaluate(t).active);S("neutral-stroke-strong-focus").withDefault(t=>Vs.getValueFor(t).evaluate(t).focus);const Xy=A("focus-stroke-outer-recipe").withDefault({evaluate:t=>bb(ce.getValueFor(t),se.getValueFor(t))}),Hc=S("focus-stroke-outer").withDefault(t=>Xy.getValueFor(t).evaluate(t)),Ky=A("focus-stroke-inner-recipe").withDefault({evaluate:t=>yb(zc.getValueFor(t),se.getValueFor(t),Hc.getValueFor(t))}),Jy=S("focus-stroke-inner").withDefault(t=>Ky.getValueFor(t).evaluate(t)),Hs=A("foreground-on-accent-large-recipe").withDefault({evaluate:t=>r1(Pt.getValueFor(t),qr.getValueFor(t),Ur.getValueFor(t),Kn.getValueFor(t),Gi.large)});S("foreground-on-accent-rest-large").withDefault(t=>Hs.getValueFor(t).evaluate(t).rest);S("foreground-on-accent-hover-large").withDefault(t=>Hs.getValueFor(t).evaluate(t,qr.getValueFor(t)).hover);S("foreground-on-accent-active-large").withDefault(t=>Hs.getValueFor(t).evaluate(t,Ur.getValueFor(t)).active);S("foreground-on-accent-focus-large").withDefault(t=>Hs.getValueFor(t).evaluate(t,Kn.getValueFor(t)).focus);const Qy=S("neutral-fill-inverse-rest-delta").withDefault(0),Yy=S("neutral-fill-inverse-hover-delta").withDefault(-3),e3=S("neutral-fill-inverse-active-delta").withDefault(7),t3=S("neutral-fill-inverse-focus-delta").withDefault(0);function r3(t,e,r,o,n,i){const s=Xr(e),a=t.closestIndexOf(t.colorContrast(e,14)),l=a+s*Math.abs(r-o),c=s===1?rs*o;let u,d;return c?(u=a,d=l):(u=l,d=a),{rest:t.get(u),hover:t.get(d),active:t.get(u+s*n),focus:t.get(u+s*i)}}const js=A("neutral-fill-inverse-recipe").withDefault({evaluate:(t,e)=>r3(ce.getValueFor(t),e||se.getValueFor(t),Qy.getValueFor(t),Yy.getValueFor(t),e3.getValueFor(t),t3.getValueFor(t))});S("neutral-fill-inverse-rest").withDefault(t=>js.getValueFor(t).evaluate(t).rest);S("neutral-fill-inverse-hover").withDefault(t=>js.getValueFor(t).evaluate(t).hover);S("neutral-fill-inverse-active").withDefault(t=>js.getValueFor(t).evaluate(t).active);S("neutral-fill-inverse-focus").withDefault(t=>js.getValueFor(t).evaluate(t).focus);const Ji=vt` + font-family: ${Gt}; + font-size: ${s1}; + line-height: ${Tb}; + font-weight: initial; + font-variation-settings: ${Eb}; +`,BP=vt` + font-family: ${Gt}; + font-size: ${a1}; + line-height: ${$b}; + font-weight: initial; + font-variation-settings: ${Ab}; +`;vt` + font-family: ${Gt}; + font-size: ${l1}; + line-height: ${Nb}; + font-weight: initial; + font-variation-settings: ${Lb}; +`;vt` + font-family: ${Gt}; + font-size: ${c1}; + line-height: ${Rb}; + font-weight: initial; + font-variation-settings: ${Db}; +`;vt` + font-family: ${Gt}; + font-size: ${u1}; + line-height: ${Ob}; + font-weight: initial; + font-variation-settings: ${Ib}; +`;vt` + font-family: ${Gt}; + font-size: ${d1}; + line-height: ${Mb}; + font-weight: initial; + font-variation-settings: ${zb}; +`;vt` + font-family: ${Gt}; + font-size: ${f1}; + line-height: ${Vb}; + font-weight: initial; + font-variation-settings: ${Hb}; +`;vt` + font-family: ${Gt}; + font-size: ${h1}; + line-height: ${jb}; + font-weight: initial; + font-variation-settings: ${qb}; +`;vt` + font-family: ${Gt}; + font-size: ${p1}; + line-height: ${Ub}; + font-weight: initial; + font-variation-settings: ${Wb}; +`;const jc=vt` + outline: calc(${Hr} * 1px) solid ${Hc}; + outline-offset: calc(${Hr} * -1px); +`,PP=vt` + outline: calc(${Hr} * 1px) solid ${Hc}; + outline-offset: calc(${Do} * 1px); +`,ko=vt`(${Bb} + ${Mc}) * ${wo}`,Jr=le.create({name:"elevation-shadow",cssCustomPropertyName:null}).withDefault({evaluate:(t,e,r)=>{let o=.12,n=.14;e>16&&(o=.2,n=.24);const i=`0 0 2px rgba(0, 0, 0, ${o})`,s=`0 calc(${e} * 0.5px) calc((${e} * 1px)) rgba(0, 0, 0, ${n})`;return`${i}, ${s}`}}),o3=le.create("elevation-shadow-card-rest-size").withDefault(4),n3=le.create("elevation-shadow-card-hover-size").withDefault(8),i3=le.create("elevation-shadow-card-active-size").withDefault(0),s3=le.create("elevation-shadow-card-focus-size").withDefault(8),a3=le.create("elevation-shadow-card-rest").withDefault(t=>Jr.getValueFor(t).evaluate(t,o3.getValueFor(t)));le.create("elevation-shadow-card-hover").withDefault(t=>Jr.getValueFor(t).evaluate(t,n3.getValueFor(t)));le.create("elevation-shadow-card-active").withDefault(t=>Jr.getValueFor(t).evaluate(t,i3.getValueFor(t)));le.create("elevation-shadow-card-focus").withDefault(t=>Jr.getValueFor(t).evaluate(t,s3.getValueFor(t)));const l3=le.create("elevation-shadow-tooltip-size").withDefault(16),FP=le.create("elevation-shadow-tooltip").withDefault(t=>Jr.getValueFor(t).evaluate(t,l3.getValueFor(t))),c3=le.create("elevation-shadow-flyout-size").withDefault(32),TP=le.create("elevation-shadow-flyout").withDefault(t=>Jr.getValueFor(t).evaluate(t,c3.getValueFor(t))),u3=le.create("elevation-shadow-dialog-size").withDefault(128),EP=le.create("elevation-shadow-dialog").withDefault(t=>Jr.getValueFor(t).evaluate(t,u3.getValueFor(t))),d3=(t,e,r,o="[disabled]")=>de` + ${Mr("inline-flex")} + + :host { + position: relative; + box-sizing: border-box; + ${Ji} + height: calc(${ko} * 1px); + min-width: calc(${ko} * 1px); + color: ${$n}; + border-radius: calc(${Vr} * 1px); + fill: currentcolor; + } + + .control { + border: calc(${Do} * 1px) solid transparent; + flex-grow: 1; + box-sizing: border-box; + display: inline-flex; + justify-content: center; + align-items: center; + padding: 0 calc((10 + (${wo} * 2 * ${Mc})) * 1px); + white-space: nowrap; + outline: none; + text-decoration: none; + color: inherit; + border-radius: inherit; + fill: inherit; + font-family: inherit; + } + + .control, + .end, + .start { + font: inherit; + } + + .control.icon-only { + padding: 0; + line-height: 0; + } + + .control:${zr} { + ${jc} + } + + .control::-moz-focus-inner { + border: 0; + } + + .content { + pointer-events: none; + } + + .start, + .end { + display: flex; + pointer-events: none; + } + + .start { + margin-inline-end: 11px; + } + + .end { + margin-inline-start: 11px; + } + `,f3=(t,e,r,o="[disabled]")=>de` + .control { + background: padding-box linear-gradient(${vi}, ${vi}), + border-box ${jy}; + } + + :host(${r}:hover) .control { + background: padding-box linear-gradient(${cf}, ${cf}), + border-box ${qy}; + } + + :host(${r}:active) .control { + background: padding-box linear-gradient(${uf}, ${uf}), + border-box ${Uy}; + } + + :host(${o}) .control { + background: padding-box linear-gradient(${vi}, ${vi}), + border-box ${An}; + } + `.withBehaviors(Zt(de` + .control { + background: ${R.ButtonFace}; + border-color: ${R.ButtonText}; + color: ${R.ButtonText}; + } + + :host(${r}:hover) .control, + :host(${r}:active) .control { + forced-color-adjust: none; + background: ${R.HighlightText}; + border-color: ${R.Highlight}; + color: ${R.Highlight}; + } + + :host(${o}) .control { + background: transparent; + border-color: ${R.GrayText}; + color: ${R.GrayText}; + } + + .control:${zr} { + outline-color: ${R.CanvasText}; + } + + :host([href]) .control { + background: transparent; + border-color: ${R.LinkText}; + color: ${R.LinkText}; + } + + :host([href]:hover) .control, + :host([href]:active) .control { + background: transparent; + border-color: ${R.CanvasText}; + color: ${R.CanvasText}; + } + `)),h3=(t,e,r,o="[disabled]")=>de` + .control { + background: padding-box linear-gradient(${Pt}, ${Pt}), + border-box ${P1}; + color: ${k1}; + } + + :host(${r}:hover) .control { + background: padding-box linear-gradient(${qr}, ${qr}), + border-box ${F1}; + color: ${x1}; + } + + :host(${r}:active) .control { + background: padding-box linear-gradient(${Ur}, ${Ur}), + border-box ${T1}; + color: ${C1}; + } + + :host(${o}) .control { + background: ${Pt}; + } + + .control:${zr} { + box-shadow: 0 0 0 calc(${Hr} * 1px) ${Jy} inset !important; + } + `.withBehaviors(Zt(de` + .control { + forced-color-adjust: none; + background: ${R.Highlight}; + color: ${R.HighlightText}; + } + + :host(${r}:hover) .control, + :host(${r}:active) .control { + background: ${R.HighlightText}; + border-color: ${R.Highlight}; + color: ${R.Highlight}; + } + + :host(${o}) .control { + background: transparent; + border-color: ${R.GrayText}; + color: ${R.GrayText}; + } + + .control:${zr} { + outline-color: ${R.CanvasText}; + box-shadow: 0 0 0 calc(${Hr} * 1px) ${R.HighlightText} inset !important; + } + + :host([href]) .control { + background: ${R.LinkText}; + color: ${R.HighlightText}; + } + + :host([href]:hover) .control, + :host([href]:active) .control { + background: ${R.ButtonFace}; + border-color: ${R.LinkText}; + color: ${R.LinkText}; + } + `));const p3=(t,e,r,o="[disabled]")=>de` + :host { + color: ${S1}; + } + + .control { + background: ${Ki}; + } + + :host(${r}:hover) .control { + background: ${$1}; + color: ${_1}; + } + + :host(${r}:active) .control { + background: ${A1}; + color: ${B1}; + } + + :host(${o}) .control { + background: ${Ki}; + } + `.withBehaviors(Zt(de` + :host { + color: ${R.ButtonText}; + } + + .control { + forced-color-adjust: none; + background: transparent; + } + + :host(${r}:hover) .control, + :host(${r}:active) .control { + background: transparent; + border-color: ${R.ButtonText}; + color: ${R.ButtonText}; + } + + :host(${o}) .control { + background: transparent; + color: ${R.GrayText}; + } + + .control:${zr} { + outline-color: ${R.CanvasText}; + } + + :host([href]) .control { + color: ${R.LinkText}; + } + + :host([href]:hover) .control, + :host([href]:active) .control { + border-color: ${R.LinkText}; + color: ${R.LinkText}; + } + `)),g3=(t,e,r,o="[disabled]")=>de` + .control { + background: transparent !important; + border-color: ${An}; + } + + :host(${r}:hover) .control { + border-color: ${Vy}; + } + + :host(${r}:active) .control { + border-color: ${Hy}; + } + + :host(${o}) .control { + background: transparent !important; + border-color: ${An}; + } + `.withBehaviors(Zt(de` + .control { + border-color: ${R.ButtonText}; + color: ${R.ButtonText}; + } + + :host(${r}:hover) .control, + :host(${r}:active) .control { + background: ${R.HighlightText}; + border-color: ${R.Highlight}; + color: ${R.Highlight}; + } + + :host(${o}) .control { + border-color: ${R.GrayText}; + color: ${R.GrayText}; + } + + .control:${zr} { + outline-color: ${R.CanvasText}; + } + + :host([href]) .control { + border-color: ${R.LinkText}; + color: ${R.LinkText}; + } + + :host([href]:hover) .control, + :host([href]:active) .control { + border-color: ${R.CanvasText}; + color: ${R.CanvasText}; + } + `)),v3=(t,e,r,o="[disabled]")=>de` + .control { + background: ${Ki}; + } + + :host(${r}:hover) .control { + background: ${$1}; + } + + :host(${r}:active) .control { + background: ${A1}; + } + + :host(${o}) .control { + background: ${Ki}; + } + `.withBehaviors(Zt(de` + .control { + forced-color-adjust: none; + background: transparent; + color: ${R.ButtonText}; + } + + :host(${r}:hover) .control, + :host(${r}:active) .control { + background: transparent; + border-color: ${R.ButtonText}; + color: ${R.ButtonText}; + } + + :host(${o}) .control { + background: transparent; + color: ${R.GrayText}; + } + + .control:${zr} { + outline-color: ${R.CanvasText}; + } + + :host([href]) .control { + color: ${R.LinkText}; + } + + :host([href]:hover) .control, + :host([href]:active) .control { + background: transparent; + border-color: ${R.LinkText}; + color: ${R.LinkText}; + } + `)),m3=le.create("input-placeholder-rest").withDefault(t=>{const e=pr.getValueFor(t);return Jn.getValueFor(t).evaluate(t,e.evaluate(t).rest)}),b3=le.create("input-placeholder-hover").withDefault(t=>{const e=pr.getValueFor(t);return Jn.getValueFor(t).evaluate(t,e.evaluate(t).hover)}),y3=le.create("input-filled-placeholder-rest").withDefault(t=>{const e=Oo.getValueFor(t);return Jn.getValueFor(t).evaluate(t,e.evaluate(t).rest)}),w3=le.create("input-filled-placeholder-hover").withDefault(t=>{const e=Oo.getValueFor(t);return Jn.getValueFor(t).evaluate(t,e.evaluate(t).hover)}),k3=(t,e,r)=>de` + :host { + ${Ji} + color: ${$n}; + fill: currentcolor; + user-select: none; + position: relative; + } + + ${r} { + box-sizing: border-box; + position: relative; + color: inherit; + border: calc(${Do} * 1px) solid transparent; + border-radius: calc(${Vr} * 1px); + height: calc(${ko} * 1px); + font-family: inherit; + font-size: inherit; + line-height: inherit; + } + + .control { + width: 100%; + outline: none; + } + + .label { + display: block; + color: ${$n}; + cursor: pointer; + ${Ji} + margin-bottom: 4px; + } + + .label__hidden { + display: none; + visibility: hidden; + } + + :host([disabled]) ${r}, + :host([readonly]) ${r}, + :host([disabled]) .label, + :host([readonly]) .label, + :host([disabled]) .control, + :host([readonly]) .control { + cursor: ${e1}; + } + + :host([disabled]) { + opacity: ${i1}; + } +`,x3=(t,e,r)=>de` + @media (forced-colors: none) { + :host(:not([disabled]):active)::after { + left: 50%; + width: 40%; + transform: translateX(-50%); + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + } + + :host(:not([disabled]):focus-within)::after { + left: 0; + width: 100%; + transform: none; + } + + :host(:not([disabled]):active)::after, + :host(:not([disabled]):focus-within:not(:active))::after { + content: ''; + position: absolute; + height: calc(${Hr} * 1px); + bottom: 0; + border-bottom: calc(${Hr} * 1px) solid ${Pt}; + border-bottom-left-radius: calc(${Vr} * 1px); + border-bottom-right-radius: calc(${Vr} * 1px); + z-index: 2; + transition: all 300ms cubic-bezier(0.1, 0.9, 0.2, 1); + } + } +`,C3=(t,e,r,o=":not([disabled]):not(:focus-within)")=>de` + ${r} { + background: padding-box linear-gradient(${mi}, ${mi}), + border-box ${pf}; + } + + :host(${o}:hover) ${r} { + background: padding-box linear-gradient(${df}, ${df}), + border-box ${Zy}; + } + + :host(:not([disabled]):focus-within) ${r} { + background: padding-box linear-gradient(${ff}, ${ff}), + border-box ${pf}; + } + + :host([disabled]) ${r} { + background: padding-box linear-gradient(${mi}, ${mi}), + border-box ${An}; + } + + .control::placeholder { + color: ${m3}; + } + + :host(${o}:hover) .control::placeholder { + color: ${b3}; + } +`,S3=(t,e,r,o=":not([disabled]):not(:focus-within)")=>de` + ${r} { + background: ${Xi}; + } + + :host(${o}:hover) ${r} { + background: ${E1}; + } + + :host(:not([disabled]):focus-within) ${r} { + background: ${zy}; + } + + :host([disabled]) ${r} { + background: ${Xi}; + } + + .control::placeholder { + color: ${y3}; + } + + :host(${o}:hover) .control::placeholder { + color: ${w3}; + } +`,_3=(t,e,r,o=":not([disabled]):not(:focus-within)")=>de` + :host { + color: ${R.ButtonText}; + } + + ${r} { + background: ${R.ButtonFace}; + border-color: ${R.ButtonText}; + } + + :host(${o}:hover) ${r}, + :host(:not([disabled]):focus-within) ${r} { + border-color: ${R.Highlight}; + } + + :host([disabled]) ${r} { + opacity: 1; + background: ${R.ButtonFace}; + border-color: ${R.GrayText}; + } + + .control::placeholder, + :host(${o}:hover) .control::placeholder { + color: ${R.CanvasText}; + } + + :host(:not([disabled]):focus) ${r} { + ${jc} + outline-color: ${R.Highlight}; + } + + :host([disabled]) { + opacity: 1; + color: ${R.GrayText}; + } + + :host([disabled]) ::placeholder, + :host([disabled]) ::-webkit-input-placeholder { + color: ${R.GrayText}; + } +`;function _r(t,e){return new Z2("appearance",t,e)}const xr=":not([disabled])",Qt="[disabled]",B3=(t,e)=>de` + :host(${xr}) .control { + cursor: pointer; + } + + :host(${Qt}) .control { + cursor: ${e1}; + } + + @media (forced-colors: none) { + :host(${Qt}) .control { + opacity: ${i1}; + } + } + + ${d3(t,e,xr,Qt)} + `.withBehaviors(_r("neutral",f3(t,e,xr,Qt)),_r("accent",h3(t,e,xr,Qt)),_r("lightweight",p3(t,e,xr,Qt)),_r("outline",g3(t,e,xr,Qt)),_r("stealth",v3(t,e,xr,Qt)));class N1 extends lt{appearanceChanged(e,r){e!==r&&(this.classList.add(r),this.classList.remove(e))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const e=this.defaultSlottedContent.filter(r=>r.nodeType===Node.ELEMENT_NODE);e.length===1&&e[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}hs([z],N1.prototype,"appearance",void 0);const P3=N1.compose({baseName:"button",baseClass:lt,template:C2,styles:B3,shadowOptions:{delegatesFocus:!0}}),F3=(t,e)=>de` + ${Mr("block")} :host { + display: block; + contain: content; + height: var(--card-height, 100%); + width: var(--card-width, 100%); + box-sizing: border-box; + background: ${se}; + color: ${$n}; + border: calc(${Do} * 1px) solid ${Gy}; + border-radius: calc(${Pb} * 1px); + box-shadow: ${a3}; + } + + :host { + content-visibility: auto; + } + `.withBehaviors(Zt(de` + :host { + background: ${R.Canvas}; + color: ${R.CanvasText}; + } + `));class qc extends G0{cardFillColorChanged(e,r){if(r){const o=he(r);o!==null&&(this.neutralPaletteSource=r,se.setValueFor(this,ee.create(o.r,o.g,o.b)))}}neutralPaletteSourceChanged(e,r){if(r){const o=he(r),n=ee.create(o.r,o.g,o.b);ce.setValueFor(this,En.create(n))}}handleChange(e,r){this.cardFillColor||se.setValueFor(this,o=>Rs.getValueFor(o).evaluate(o,se.getValueFor(e)).rest)}connectedCallback(){super.connectedCallback();const e=qi(this);if(e){const r=ie.getNotifier(e);r.subscribe(this,"fillColor"),r.subscribe(this,"neutralPalette"),this.handleChange(e,"fillColor")}}}hs([z({attribute:"card-fill-color",mode:"fromView"})],qc.prototype,"cardFillColor",void 0);hs([z({attribute:"neutral-palette-source",mode:"fromView"})],qc.prototype,"neutralPaletteSource",void 0);const T3=qc.compose({baseName:"card",baseClass:G0,template:B2,styles:F3}),E3=(t,e)=>de` + ${Mr("inline-flex")} :host { + border: calc(${Do} * 1px) solid ${An}; + border-radius: calc(${Vr} * 1px); + box-sizing: border-box; + flex-direction: column; + padding: calc(${wo} * 1px) 0; + } + + ::slotted(${t.tagFor(Wt)}) { + margin: 0 calc(${wo} * 1px); + } + + :host(:focus-within:not([disabled])) { + ${jc} + } + `;class $3 extends $t{}const A3=$3.compose({baseName:"listbox",template:z2,styles:E3}),N3=(t,e)=>de` + ${Mr("flex")} :host { + align-items: center; + height: calc(${ko} * 1px); + width: calc(${ko} * 1px); + } + + .progress { + height: 100%; + width: 100%; + } + + .background { + fill: none; + stroke-width: 2px; + } + + .determinate { + stroke: ${Pt}; + fill: none; + stroke-width: 2px; + stroke-linecap: round; + transform-origin: 50% 50%; + transform: rotate(-90deg); + transition: all 0.2s ease-in-out; + } + + .indeterminate-indicator-1 { + stroke: ${Pt}; + fill: none; + stroke-width: 2px; + stroke-linecap: round; + transform-origin: 50% 50%; + transform: rotate(-90deg); + transition: all 0.2s ease-in-out; + animation: spin-infinite 2s linear infinite; + } + + :host(.paused) .indeterminate-indicator-1 { + animation: none; + stroke: ${hf}; + } + + :host(.paused) .determinate { + stroke: ${hf}; + } + + @keyframes spin-infinite { + 0% { + stroke-dasharray: 0.01px 43.97px; + transform: rotate(0deg); + } + 50% { + stroke-dasharray: 21.99px 21.99px; + transform: rotate(450deg); + } + 100% { + stroke-dasharray: 0.01px 43.97px; + transform: rotate(1080deg); + } + } + `.withBehaviors(Zt(de` + .background { + stroke: ${R.Field}; + } + .determinate, + .indeterminate-indicator-1 { + stroke: ${R.ButtonText}; + } + :host(.paused) .determinate, + :host(.paused) .indeterminate-indicator-1 { + stroke: ${R.GrayText}; + } + `));class L3 extends Ro{}const R3=L3.compose({baseName:"progress-ring",template:V2,styles:N3,indeterminateIndicator:` + + + + + `}),D3=(t,e)=>rt` + +`,bi=".root",O3=le.create("clear-button-hover").withDefault(t=>{const e=Io.getValueFor(t),r=pr.getValueFor(t);return e.evaluate(t,r.evaluate(t).focus).hover}),I3=le.create("clear-button-active").withDefault(t=>{const e=Io.getValueFor(t),r=pr.getValueFor(t);return e.evaluate(t,r.evaluate(t).focus).active}),M3=(t,e)=>de` + ${Mr("inline-block")} + + ${k3(t,e,bi)} + + ${x3()} + + .root { + display: flex; + flex-direction: row; + } + .control { + -webkit-appearance: none; + color: inherit; + background: transparent; + border: 0; + height: calc(100% - 4px); + margin-top: auto; + margin-bottom: auto; + padding: 0 calc(${wo} * 2px + 1px); + font-family: inherit; + font-size: inherit; + line-height: inherit; + } + .clear-button { + display: inline-flex; + align-items: center; + margin: 1px; + height: calc(100% - 2px); + opacity: 0; + background: transparent; + color: ${$n}; + fill: currentcolor; + border: none; + border-radius: calc(${Vr} * 1px); + min-width: calc(${ko} * 1px); + ${Ji} + outline: none; + padding: 0 calc((10 + (${wo} * 2 * ${Mc})) * 1px); + } + .clear-button:hover { + background: ${O3}; + } + .clear-button:active { + background: ${I3}; + } + :host(:hover:not([disabled], [readOnly])) .clear-button, + :host(:active:not([disabled], [readOnly])) .clear-button, + :host(:focus-within:not([disabled], [readOnly])) .clear-button { + opacity: 1; + } + :host(:hover:not([disabled], [readOnly])) .clear-button__hidden, + :host(:active:not([disabled], [readOnly])) .clear-button__hidden, + :host(:focus-within:not([disabled], [readOnly])) .clear-button__hidden { + opacity: 0; + } + .control::-webkit-search-cancel-button { + -webkit-appearance: none; + } + .input-wrapper { + display: flex; + position: relative; + width: 100%; + } + .start, + .end { + display: flex; + margin: 1px; + align-items: center; + } + .start { + display: flex; + margin-inline-start: 11px; + } + ::slotted([slot="end"]) { + height: 100% + } + .clear-button__hidden { + opacity: 0; + } + .end { + margin-inline-end: 11px; + } + ::slotted(${t.tagFor(lt)}) { + margin-inline-end: 1px; + } + `.withBehaviors(_r("outline",C3(t,e,bi)),_r("filled",S3(t,e,bi)),Zt(_3(t,e,bi)));class L1 extends ct{constructor(){super(...arguments),this.appearance="outline"}}hs([z],L1.prototype,"appearance",void 0);const z3=L1.compose({baseName:"search",baseClass:ct,template:D3,styles:M3,start:'',shadowOptions:{delegatesFocus:!0}}),V3=(t,e)=>de` + ${Mr("block")} :host { + --skeleton-fill-default: ${Xi}; + overflow: hidden; + width: 100%; + position: relative; + background-color: var(--skeleton-fill, var(--skeleton-fill-default)); + --skeleton-animation-gradient-default: linear-gradient( + 270deg, + var(--skeleton-fill, var(--skeleton-fill-default)) 0%, + ${E1} 51%, + var(--skeleton-fill, var(--skeleton-fill-default)) 100% + ); + --skeleton-animation-timing-default: ease-in-out; + } + + :host(.rect) { + border-radius: calc(${Vr} * 1px); + } + + :host(.circle) { + border-radius: 100%; + overflow: hidden; + } + + object { + position: absolute; + width: 100%; + height: auto; + z-index: 2; + } + + object img { + width: 100%; + height: auto; + } + + ${Mr("block")} span.shimmer { + position: absolute; + width: 100%; + height: 100%; + background-image: var(--skeleton-animation-gradient, var(--skeleton-animation-gradient-default)); + background-size: 0px 0px / 90% 100%; + background-repeat: no-repeat; + background-color: var(--skeleton-animation-fill, ${Xi}); + animation: shimmer 2s infinite; + animation-timing-function: var(--skeleton-animation-timing, var(--skeleton-timing-default)); + animation-direction: normal; + z-index: 1; + } + + ::slotted(svg) { + z-index: 2; + } + + ::slotted(.pattern) { + width: 100%; + height: 100%; + } + + @keyframes shimmer { + 0% { + transform: translateX(-100%); + } + 100% { + transform: translateX(100%); + } + } + `.withBehaviors(Zt(de` + :host{ + background-color: ${R.CanvasText}; + } + `)),H3=Wn.compose({baseName:"skeleton",template:U2,styles:V3});function j3(t){return J0.getOrCreate(t).withPrefix("fluent")}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const q3={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},U3=t=>(...e)=>({_$litDirective$:t,values:e});class W3{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const kt=U3(class extends W3{constructor(t){var e;if(super(t),t.type!==q3.ATTRIBUTE||t.name!=="class"||((e=t.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var o,n;if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in e)e[i]&&!((o=this.nt)!=null&&o.has(i))&&this.st.add(i);return this.render(e)}const r=t.element.classList;for(const i of this.st)i in e||(r.remove(i),this.st.delete(i));for(const i in e){const s=!!e[i];s===this.st.has(i)||(n=this.nt)!=null&&n.has(i)||(s?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return vo}});/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const so=t=>t??Pe,Z3=t=>"personType"in t||"userType"in t,G3=t=>"initials"in t,$P=t=>{const e=new Date,r=new Date(e.getFullYear(),e.getMonth(),e.getDate());if(t>=r)return t.toLocaleString("default",{hour:"numeric",minute:"numeric"});const o=new Date(r);if(o.setDate(e.getDate()-e.getDay()),t>=o)return t.toLocaleString("default",{hour:"numeric",minute:"numeric",weekday:"short"});const n=new Date(o);return n.setDate(o.getDate()-7),t>=n?t.toLocaleString("default",{day:"numeric",month:"numeric",weekday:"short"}):t.toLocaleString("default",{day:"numeric",month:"numeric",year:"numeric"})},R1=(t,e)=>{let r;return function(){const o=()=>t.apply(this,arguments);window.clearTimeout(r),r=window.setTimeout(o,e)}},D1=t=>new Promise((e,r)=>{const o=new FileReader;o.onerror=r,o.onload=()=>{e(o.result)},o.readAsDataURL(t)}),Wa=t=>t.startsWith("[")?t.match(/([a-zA-Z0-9+._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi).toString():t,AP=(t,e=2)=>{if(t===0)return"0 Bytes";const r=1024,o=e<0?0:e,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(t)/Math.log(r));return`${parseFloat((t/Math.pow(r,i)).toFixed(o))} ${n[i]}`},NP=t=>(t&&(t=t==null?void 0:t.replace(//gi,"..."),t=t==null?void 0:t.replace(//gi,""),t=t==null?void 0:t.replace(/<\/c0>/gi,"")),t),LP=t=>t==null?void 0:t.replace(/\.[^/.]+$/,""),RP=t=>new URL(t).pathname.split("/").pop().replace(/-/g," "),DP=t=>t||V.config.response.invalidationPeriod||V.config.defaultInvalidationPeriod,OP=()=>V.config.response.isEnabled&&V.config.isEnabled,$={presence:{name:"presence",stores:{presence:"presence"},version:2},users:{name:"users",stores:{users:"users",usersQuery:"usersQuery",userFilters:"userFilters",cardState:"cardState"},version:4},photos:{name:"photos",stores:{contacts:"contacts",users:"users",groups:"groups",teams:"teams"},version:2},people:{name:"people",stores:{contacts:"contacts",groupPeople:"groupPeople",peopleQuery:"peopleQuery"},version:3},groups:{name:"groups",stores:{groups:"groups",groupsQuery:"groupsQuery"},version:5},get:{name:"responses",stores:{responses:"responses"},version:2},search:{name:"search",stores:{responses:"responses"},version:2},files:{name:"files",stores:{driveFiles:"driveFiles",groupFiles:"groupFiles",siteFiles:"siteFiles",userFiles:"userFiles",insightFiles:"insightFiles",fileQueries:"fileQueries"},version:2},fileLists:{name:"file-lists",stores:{fileLists:"fileLists",insightfileLists:"insightfileLists"},version:2}};var qs=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};const Us=()=>V.config.people.invalidationPeriod||V.config.defaultInvalidationPeriod,It=()=>V.config.people.isEnabled&&V.config.isEnabled,O1=["People.Read","People.Read.All"],X3=["Contacts.Read","Contacts.ReadWrite"],I1=(t,e,r=10,o="any",n="")=>qs(void 0,void 0,void 0,function*(){const i=`${e}:${r}:${o}`;let s;if(It()){const c=$.people,u=$.people.stores.peopleQuery;s=V.getCache(c,u);const d=It()?yield s.getValue(i):null;if(d&&Us()>Date.now()-d.timeCached)return d.results.map(f=>JSON.parse(f))}let a="personType/class eq 'Person'";o!=="any"&&(o==="user"?a+="and personType/subclass eq 'OrganizationUser'":a+="and (personType/subclass eq 'ImplicitContact' or personType/subclass eq 'PersonalContact')"),n!==""&&(a+=` and ${n}`);let l;try{let c=t.api("/me/people").search('"'+e+'"').top(r).filter(a).middlewareOptions(ae(O1));if(o!=="contact"&&(c=c.header("X-PeopleQuery-QuerySources","Mailbox,Directory")),l=yield c.get(),It()&&l){const u={maxResults:r,results:null};u.results=l.value.map(d=>JSON.stringify(d)),yield s.putValue(i,u)}}catch{}return l==null?void 0:l.value}),IP=(t,e="any",r="",o=10)=>qs(void 0,void 0,void 0,function*(){let n;const i=`${r||`*:${e}`}:${o}`;if(It()){n=V.getCache($.people,$.people.stores.peopleQuery);const c=yield n.getValue(i);if(c&&Us()>Date.now()-c.timeCached)return c.results.map(u=>JSON.parse(u))}const s="/me/people";let a="personType/class eq 'Person'";e!=="any"&&(e==="user"?a+="and personType/subclass eq 'OrganizationUser'":a+="and (personType/subclass eq 'ImplicitContact' or personType/subclass eq 'PersonalContact')"),r&&(a+=` and ${r}`);let l;try{let c=t.api(s).middlewareOptions(ae(O1)).top(o).filter(a);e!=="contact"&&(c=c.header("X-PeopleQuery-QuerySources","Mailbox,Directory")),l=yield c.get(),It()&&l&&(yield n.putValue(i,{maxResults:10,results:l.value.map(u=>JSON.stringify(u))}))}catch{}return l?l.value:null}),Nn=t=>{var e,r;const o=t,n=t,i=t;return n!=null&&n.mail?Wa(n.mail):!((e=o.scoredEmailAddresses)===null||e===void 0)&&e.length?Wa(o.scoredEmailAddresses[0].address):!((r=i.emailAddresses)===null||r===void 0)&&r.length?Wa(i.emailAddresses[0].address):null},gf=(t,e)=>qs(void 0,void 0,void 0,function*(){let r;if(It()){r=V.getCache($.people,$.people.stores.contacts);const i=yield r.getValue(e);if(i&&Us()>Date.now()-i.timeCached)return JSON.parse(i.person)}const o=`${e.replace(/#/g,"%2523")}`,n=yield t.api("/me/contacts").filter(`emailAddresses/any(a:a/address eq '${o}')`).middlewareOptions(ae(X3)).get();return It()&&n&&(yield r.putValue(e,{person:JSON.stringify(n.value)})),n?n.value:null}),MP=(t,e,r,o)=>qs(void 0,void 0,void 0,function*(){var n;let i;const s=`${e}${r}`;if(It()){i=V.getCache($.people,$.people.stores.peopleQuery);const c=yield i.getValue(s);if(c&&Us()>Date.now()-c.timeCached)return c.results.map(u=>JSON.parse(u))}let a=t.api(r).version(e);o!=null&&o.length&&(a=a.middlewareOptions(ae(o)));let l=yield a.get();if(l&&Array.isArray(l.value)&&l["@odata.nextLink"]){let c=l;for(;c!=null&&c["@odata.nextLink"];){const d=c["@odata.nextLink"].split(e)[1];c=yield t.api(d).version(e).get(),!((n=c==null?void 0:c.value)===null||n===void 0)&&n.length&&(c.value=l.value.concat(c.value),l=c)}}if(It()&&l){const c={results:null};Array.isArray(l.value)?c.results=l.value.map(u=>JSON.stringify(u)):c.results=[JSON.stringify(l)],yield i.putValue(s,c)}return l==null?void 0:l.value});var cr=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};const Qr=()=>V.config.users.invalidationPeriod||V.config.defaultInvalidationPeriod,_e=()=>V.config.users.isEnabled&&V.config.isEnabled,K3=["User.Read","User.ReadWrite"],M1=(t,e)=>cr(void 0,void 0,void 0,function*(){let r;if(_e()){r=V.getCache($.users,$.users.stores.users);const i=yield r.getValue("me");if(i&&Qr()>Date.now()-i.timeCached){const s=JSON.parse(i.user),a=e?e.filter(l=>!Object.keys(s).includes(l)):null;if(!a||a.length<=1)return s}}let o="me";e&&(o=o+"?$select="+e.toString());const n=yield t.api(o).middlewareOptions(ae(K3)).get();return _e()&&(yield r.putValue("me",{user:JSON.stringify(n)})),n}),Ln=["User.ReadBasic.All","User.Read.All","Directory.Read.All","User.ReadWrite.All","Directory.ReadWrite.All"],z1=(t,e,r)=>cr(void 0,void 0,void 0,function*(){let o;if(_e()){o=V.getCache($.users,$.users.stores.users);const s=yield o.getValue(e);if(s&&Qr()>Date.now()-s.timeCached){const a=s.user?JSON.parse(s.user):null,l=r&&a?r.filter(c=>!Object.keys(a).includes(c)):null;if(!l||l.length<=1)return a}}let n=`/users/${e}`;r&&(n=n+"?$select="+r.toString());let i;try{i=yield t.api(n).middlewareOptions(ae(Ln)).get()}catch{}return _e()&&(yield o.putValue(e,{user:JSON.stringify(i)})),i}),zP=(t,e,r="",o="",n)=>cr(void 0,void 0,void 0,function*(){if(!e||e.length===0)return[];const i=t.createBatch(),s={},a={},l=[];r=r.toLowerCase();let c;_e()&&(c=V.getCache($.users,$.users.stores.users));for(const u of e){s[u]=null;let d=`/users/${u}`,f,p;if(_e()&&(p=yield c.getValue(u)),p!=null&&p.user&&Qr()>Date.now()-p.timeCached)if(f=JSON.parse(p==null?void 0:p.user),r){if(f){const h=f.displayName;(h==null?void 0:h.toLowerCase().includes(r))&&(a[u]=f)}}else f?s[u]=f:(i.get(u,d,Ln),l.push(u));else u!==""&&(u==="me"?s[u]=yield M1(t):(d=`/users/${u}`,o&&(d+=`${d}?$filter=${o}&$count=true`),i.get(u,d,Ln,o?{ConsistencyLevel:"eventual"}:{}),l.push(u)))}try{if(i.hasRequests){const u=yield i.executeAll();for(const d of e){const f=u.get(d);if(f!=null&&f.content){const p=f.content;r?((p==null?void 0:p.displayName.toLowerCase())||"").includes(r)&&(a[d]=p):s[d]=p,_e()&&(yield c.putValue(d,{user:JSON.stringify(p)}))}else{const p=n.find(h=>Object.values(h).includes(d));p&&(s[d]=p)}}}return r&&Object.keys(a).length?Promise.all(Object.values(a)):Promise.all(Object.values(s))}catch{try{return e.filter(d=>l.includes(d)).forEach(d=>{s[d]=z1(t,d)}),_e()&&(yield Promise.all(e.filter(d=>l.includes(d)).map(d=>cr(void 0,void 0,void 0,function*(){return yield c.putValue(d,{user:JSON.stringify(yield s[d])})})))),Promise.all(Object.values(s))}catch{return[]}}}),VP=(t,e,r)=>cr(void 0,void 0,void 0,function*(){var o;const n=["People.Read","People.Read.All"];if(!e||e.length===0)return[];const i=t.createBatch(),s=[];let a,l;_e()&&(l=V.getCache($.users,$.users.stores.usersQuery));for(const c of e)if(_e()&&(a=yield l.getValue(c)),_e()&&(a!=null&&a.results[0])&&Qr()>Date.now()-a.timeCached){const u=JSON.parse(a.results[0]);s.push(u)}else i.get(c,`/me/people?$search="${c}"`,n,{"X-PeopleQuery-QuerySources":"Mailbox,Directory"});if(i.hasRequests)try{const c=yield i.executeAll();for(const u of e){const d=c.get(u);if(!((o=d==null?void 0:d.content)===null||o===void 0)&&o.value&&d.content.value.length>0)s.push(d.content.value[0]),_e()&&(yield l.putValue(u,{maxResults:1,results:[JSON.stringify(d.content.value[0])]}));else{const f=r.find(p=>Object.values(p).includes(u));f&&s.push(f)}}return s}catch{try{return Promise.all(e.filter(u=>u&&u!=="").map(u=>cr(void 0,void 0,void 0,function*(){const d=yield I1(t,u,1);if(d!=null&&d.length)return _e()&&(yield l.putValue(u,{maxResults:1,results:[JSON.stringify(d[0])]})),d[0]})))}catch{return[]}}return s}),V1=(t,e,r=10,o="")=>cr(void 0,void 0,void 0,function*(){const n=Ln,i={maxResults:r,results:null},s=`${e}:${r}:${o}`;let a;if(_e()){a=V.getCache($.users,$.users.stores.usersQuery);const d=yield a.getValue(s);if(d&&Qr()>Date.now()-d.timeCached)return d.results.map(f=>JSON.parse(f))}const l=`${e.replace(/#/g,"%2523")}`,c=t.api("users").search(`"displayName:${l}" OR "mail:${l}" OR "userPrincipalName:${l}"`).header("ConsistencyLevel","eventual").count(!0);let u;o!==""&&c.filter(o);try{u=yield c.top(r).middlewareOptions(ae(n)).get()}catch{}return _e()&&u&&(i.results=u.value.map(d=>JSON.stringify(d)),yield a.putValue(e,i)),u?u.value:null}),HP=(t,e,r,o=10,n="person",i=!1,s="",a="")=>cr(void 0,void 0,void 0,function*(){const l=["GroupMember.Read.All","Group.Read.All","Directory.Read.All","GroupMember.ReadWrite.All","Group.ReadWrite.All"],c={maxResults:o,results:null};let u;const d=`${r||"*"}:*:${o}:${n}:${i}:${s}`;if(_e()){u=V.getCache($.users,$.users.stores.usersQuery);const v=yield u.getValue(d);if(v&&Qr()>Date.now()-v.timeCached)return v.results.map(w=>JSON.parse(w))}let f="",p=`/groups/${r}/${i?"transitiveMembers":"members"}`;n==="person"?p+="/microsoft.graph.user":n==="group"&&(p+="/microsoft.graph.group"),s&&(f+=s),a&&(f+=a);const h=t.api(p).top(o).filter(f);(s||e)&&h.header("ConsistencyLevel","eventual").count(!0);const g=yield h.middlewareOptions(ae(l)).get();return _e()&&g&&(c.results=g.value.map(v=>JSON.stringify(v)),yield u.putValue(d,c)),g?g.value:null});var Yr=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};const Ws=()=>V.config.photos.invalidationPeriod||V.config.defaultInvalidationPeriod,Mt=()=>V.config.photos.isEnabled&&V.config.isEnabled,Uc=["User.ReadBasic.All","User.Read.All","User.ReadWrite.All"],J3=["User.Read","User.ReadWrite",...Uc],Zs=(t,e,r)=>Yr(void 0,void 0,void 0,function*(){try{const o=yield t.api(`${e}/photo/$value`).responseType(Ph.RAW).middlewareOptions(ae(r)).get();if(o.status===404)return{eTag:null,photo:null};if(!o.ok)return null;const n=o["@odata.mediaEtag"],i=yield D1(yield o.blob());return{eTag:n,photo:i}}catch{return null}}),vf=(t,e)=>Yr(void 0,void 0,void 0,function*(){let r,o;if(Mt()&&(r=V.getCache($.photos,$.photos.stores.contacts),o=yield r.getValue(e),o&&Ws()>Date.now()-o.timeCached))return o.photo;const n=["Contacts.Read","Contacts.ReadWrite"];return o=yield Zs(t,`me/contacts/${e}`,n),Mt()&&o&&(yield r.putValue(e,o)),o?o.photo:null}),Za=(t,e)=>Yr(void 0,void 0,void 0,function*(){let r,o;if(Mt()){if(r=V.getCache($.photos,$.photos.stores.users),o=yield r.getValue(e),o&&Ws()>Date.now()-o.timeCached)return o.photo;if(o)try{const n=yield t.api(`users/${e}/photo`).get();n&&(n["@odata.mediaEtag"]!==o.eTag||n["@odata.mediaEtag"]===null&&o.eTag===null)&&(o=null)}catch{return null}}return o=o||(yield Zs(t,`users/${e}`,Uc)),Mt()&&o&&(yield r.putValue(e,o)),o?o.photo:null}),mf=(t,e,r=!0)=>Yr(void 0,void 0,void 0,function*(){if("personType"in e&&e.personType.subclass!=="OrganizationUser"){if(e.personType.subclass==="PersonalContact"&&r){const n=Nn(e),i=yield gf(t,n);if(i!=null&&i.length&&i[0].id)return yield vf(t,i[0].id)}return null}if(e.userPrincipalName||e.id){const n=e.userPrincipalName||e.id;return yield Za(t,n)}if(e.id){const n=yield Za(t,e.id);if(n)return n}const o=Nn(e);if(o){const n=yield V1(t,o,1);if(n!=null&&n.length)return yield Za(t,n[0].id);if(r){const i=yield gf(t,o);if(i!=null&&i.length)return yield vf(t,i[0].id)}}return null}),Q3=(t,e)=>Yr(void 0,void 0,void 0,function*(){let r,o;const n=e.id;if(Mt()){if(o=V.getCache($.photos,$.photos.stores.groups),r=yield o.getValue(n),r&&Ws()>Date.now()-r.timeCached)return r.photo;if(r)try{const s=yield t.api(`groups/${n}/photo`).get();s&&(s["@odata.mediaEtag"]!==r.eTag||s["@odata.mediaEtag"]===null&&r.eTag===null)&&(r=null)}catch{return null}}const i=["Group.Read.All","Group.ReadWrite.All"];return r=r||(yield Zs(t,`groups/${n}`,i)),Mt()&&r&&(yield o.putValue(n,r)),r?r.photo:null}),Y3=(t,e)=>Yr(void 0,void 0,void 0,function*(){return yield V.getCache($.photos,e).getValue(t)}),yi=(t,e,r)=>Yr(void 0,void 0,void 0,function*(){yield V.getCache($.photos,e).putValue(t,r)});var H1=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};const j1=()=>V.config.presence.invalidationPeriod||V.config.defaultInvalidationPeriod,ao=()=>V.config.presence.isEnabled&&V.config.isEnabled,q1=(t,e)=>H1(void 0,void 0,void 0,function*(){let r;if(ao()){r=V.getCache($.presence,$.presence.stores.presence);const s=yield r.getValue(e||"me");if(s&&j1()>Date.now()-s.timeCached)return JSON.parse(s.presence)}const o=e?["presence.read.all"]:["presence.read","presence.read.all"],n=e?`/users/${e}/presence`:"/me/presence",i=yield t.api(n).middlewareOptions(ae(o)).get();return ao()&&(yield r.putValue(e||"me",{presence:JSON.stringify(i)})),i}),jP=(t,e)=>H1(void 0,void 0,void 0,function*(){if(!e||e.length===0)return{};const r={},o=[],n=["presence.read.all"];let i;ao()&&(i=V.getCache($.presence,$.presence.stores.presence));for(const s of e)if(s!=null&&s.id){const a=s.id;r[a]=null;let l;ao()&&(l=yield i.getValue(a)),ao()&&l&&j1()>Date.now()-l.timeCached?r[a]=JSON.parse(l.presence):o.push(a)}try{if(o.length>0){const s=yield t.api("/communications/getPresencesByUserId").middlewareOptions(ae(n)).post({ids:o});for(const a of s.value)r[a.id]=a,ao()&&(yield i.putValue(a.id,{presence:JSON.stringify(a)}))}return r}catch{try{const a=yield Promise.all(e.filter(l=>(l==null?void 0:l.id)&&!r[l.id]&&"personType"in l&&l.personType.subclass==="OrganizationUser").map(l=>q1(t,l.id)));for(const l of a)r[l.id]=l;return r}catch{return null}}}),e4=t=>{const e=t;return e.statusCode&&"code"in e&&"body"in e&&e.date&&"message"in e&&"name"in e&&"requestId"in e};var t4=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};const U1=(t,e,r)=>t4(void 0,void 0,void 0,function*(){const o=["User.ReadBasic.All","User.Read.All","Directory.Read.All","User.ReadWrite.All","Directory.ReadWrite.All"],n=["User.Read","User.ReadWrite",...o],i=e?o:n,s=e?Uc:J3;let a,l=null,c,u;const d=e?`users/${e}`:"me",f=d+(r?`?$select=${r.toString()}`:"");if(_e()&&(u=yield V.getCache($.users,$.users.stores.users).getValue(e||"me"),u&&Qr()>Date.now()-u.timeCached?(l=u.user?JSON.parse(u.user):null,l!==null&&r&&r.filter(g=>!Object.keys(l).includes(g)).length>=1&&(l=null,u=null)):u=null),Mt()){if(c=yield Y3(e||"me",$.photos.stores.users),c&&Ws()>Date.now()-c.timeCached)a=c.photo;else if(c)try{const p=yield t.api(`${d}/photo`).get();p!=null&&p["@odata.mediaEtag"]&&p["@odata.mediaEtag"]===c.eTag?(yield yi(e||"me",$.photos.stores.users,c),a=c.photo):c=null}catch(p){e4(p)&&(p.code==="ErrorItemNotFound"||p.code==="ImageNotFound")&&(yield yi(e||"me",$.photos.stores.users,{eTag:null,photo:null}))}}if(!c&&!u){let p;const h=t.createBatch();e?(h.get("user",`/users/${e}${r?"?$select="+r.toString():""}`,i),h.get("photo",`users/${e}/photo/$value`,s)):(h.get("user","me",i),h.get("photo","me/photo/$value",s));const g=yield h.executeAll(),v=g.get("photo");v&&(p=v.headers.ETag,a=v.content);const w=g.get("user");w&&(l=w.content),_e()&&(yield V.getCache($.users,$.users.stores.users).putValue(e||"me",{user:JSON.stringify(l)})),Mt()&&(yield yi(e||"me",$.photos.stores.users,{eTag:p,photo:a}))}else if(c){if(!u)try{const p=yield t.api(f).middlewareOptions(ae(i)).get();p&&(_e()&&(yield V.getCache($.users,$.users.stores.users).putValue(e||"me",{user:JSON.stringify(p)})),l=p)}catch{}}else try{const p=yield Zs(t,d,s);p&&(Mt()&&(yield yi(e||"me",$.photos.stores.users,{eTag:p.eTag,photo:p.photo})),a=p.photo)}catch{}return l&&(l.personImage=a),l}),r4=["image","oneline","twolines","threelines","fourlines"],o4=t=>typeof t=="string"&&r4.includes(t),n4=(t,e="twolines")=>o4(t)?t:e,i4=j3(),Wc=(...t)=>{if(t!=null&&t.length)for(const e of t)i4.register(e())};var N;(function(t){t[t.ArrowDown=0]="ArrowDown",t[t.TeamSeparator=1]="TeamSeparator",t[t.Search=2]="Search",t[t.SkypeArrow=3]="SkypeArrow",t[t.SmallEmail=4]="SmallEmail",t[t.SmallEmailHovered=5]="SmallEmailHovered",t[t.SmallChat=6]="SmallChat",t[t.SmallChatHovered=7]="SmallChatHovered",t[t.Video=8]="Video",t[t.VideoHovered=9]="VideoHovered",t[t.ExpandDown=10]="ExpandDown",t[t.Overview=11]="Overview",t[t.Send=12]="Send",t[t.Contact=13]="Contact",t[t.Copy=14]="Copy",t[t.Phone=15]="Phone",t[t.CellPhone=16]="CellPhone",t[t.Chat=17]="Chat",t[t.Call=18]="Call",t[t.CallHovered=19]="CallHovered",t[t.Confirmation=20]="Confirmation",t[t.Department=21]="Department",t[t.Dot=22]="Dot",t[t.Email=23]="Email",t[t.OfficeLocation=24]="OfficeLocation",t[t.Person=25]="Person",t[t.Messages=26]="Messages",t[t.Organization=27]="Organization",t[t.ExpandRight=28]="ExpandRight",t[t.Profile=29]="Profile",t[t.Birthday=30]="Birthday",t[t.File=31]="File",t[t.Files=32]="Files",t[t.Back=33]="Back",t[t.Close=34]="Close",t[t.Upload=35]="Upload",t[t.FileCloud=36]="FileCloud",t[t.DragFile=37]="DragFile",t[t.Cancel=38]="Cancel",t[t.CheckMark=39]="CheckMark",t[t.Radio=40]="Radio",t[t.Success=41]="Success",t[t.Fail=42]="Fail",t[t.SelectAccount=43]="SelectAccount",t[t.News=44]="News",t[t.DoubleBookmark=45]="DoubleBookmark",t[t.ChevronLeft=46]="ChevronLeft",t[t.ChevronRight=47]="ChevronRight",t[t.Event=48]="Event",t[t.BookOpen=49]="BookOpen",t[t.FileOuter=50]="FileOuter",t[t.BookQuestion=51]="BookQuestion",t[t.Globe=52]="Globe",t[t.Delete=53]="Delete",t[t.Add=54]="Add",t[t.Calendar=55]="Calendar",t[t.Planner=56]="Planner",t[t.Milestone=57]="Milestone",t[t.PersonAdd=58]="PersonAdd",t[t.PresenceAvailable=59]="PresenceAvailable",t[t.PresenceOofAvailable=60]="PresenceOofAvailable",t[t.PresenceBusy=61]="PresenceBusy",t[t.PresenceOofBusy=62]="PresenceOofBusy",t[t.PresenceDnd=63]="PresenceDnd",t[t.PresenceOofDnd=64]="PresenceOofDnd",t[t.PresenceAway=65]="PresenceAway",t[t.PresenceOofAway=66]="PresenceOofAway",t[t.PresenceOffline=67]="PresenceOffline",t[t.PresenceStatusUnknown=68]="PresenceStatusUnknown"})(N||(N={}));const Me=(t,e)=>{switch(t){case N.ArrowDown:return P` + + + + `;case N.TeamSeparator:return P` + + + + `;case N.Search:return P` + + + `;case N.SkypeArrow:return P` + + + + `;case N.SmallEmail:return P` + + + + + `;case N.SmallChat:return P` + + + + + `;case N.Video:return P` + + + + + `;case N.ExpandDown:return P` + + + + `;case N.Overview:return P` + + + + `;case N.Send:return P` + + + + `;case N.Contact:return P` + + + + `;case N.Call:return P` + + + + + `;case N.Confirmation:return P` + + + + `;case N.Copy:return P` + + + + `;case N.Phone:return P` + + + + `;case N.CellPhone:return P` + + + + `;case N.Chat:return P` + + + + `;case N.Department:return P` + + + + `;case N.Dot:return P` + + + + `;case N.Email:return P` + + + + `;case N.OfficeLocation:return P` + + Location icon + + + `;case N.Birthday:return P` + + + + `;case N.Person:return P` + + + + `;case N.Messages:return P` + + + + `;case N.Organization:return P` + + + + `;case N.ExpandRight:return P` + + + + `;case N.Profile:return P` + + + + `;case N.File:return P` + + + + + + `;case N.Files:return P` + + + + `;case N.Back:return P` + + + + `;case N.Close:return P` + + + + `;case N.Upload:return P` + + + + `;case N.FileCloud:return P` + + + + `;case N.DragFile:return P` + + + + `;case N.Cancel:return P` + + + + `;case N.Success:return P` + + + + + `;case N.CheckMark:return P` + + + + + `;case N.Radio:return P` + + + + + + `;case N.Fail:return P` + + + + + `;case N.SelectAccount:return P` + + + + `;case N.News:return P` + + `;case N.DoubleBookmark:return P` + + `;case N.ChevronLeft:return P` + `;case N.ChevronRight:return P` + `;case N.Delete:return P` + + + + `;case N.Add:return P` + + + `;case N.Calendar:return P` + + + + `;case N.Planner:return P` + + + `;case N.Milestone:return P` + + + `;case N.PersonAdd:return P` + + + + + `;case N.Event:return P` + + `;case N.BookOpen:return P` + + `;case N.FileOuter:return P` + + `;case N.BookQuestion:return P` + + `;case N.Globe:return P` + + `;case N.PresenceAvailable:return P` + `;case N.PresenceOofAvailable:return P` + `;case N.PresenceBusy:return P` + `;case N.PresenceOofBusy:return P` + + `;case N.PresenceDnd:return P` + `;case N.PresenceOofDnd:return P` + `;case N.PresenceAway:return P` + `;case N.PresenceOofAway:return P` + `;case N.PresenceOffline:return P` + `;case N.PresenceStatusUnknown:return P` + `}},W1=()=>window.getWindowSegments!==void 0,s4=()=>W1()?window:null,a4=[ps` +.root .scout-top{position:fixed;top:0;left:0}.root .scout-bottom{position:fixed;bottom:0;right:0}.root .flyout{display:none;position:fixed;z-index:9999999;opacity:0;box-shadow:var(--mgt-flyout-box-shadow,var(--elevation-shadow-card-rest));border-radius:8px}.root .flyout.small{overflow:hidden auto}.root.visible .flyout{display:inline-block;animation-name:fade-in;animation-duration:.3s;animation-timing-function:cubic-bezier(0.1,0.9,0.2,1);animation-fill-mode:both;transition:top .3s ease,bottom .3s ease,left .3s ease}.root.visible .flyout.small{overflow:hidden auto}@keyframes fade-in{from{opacity:0;margin-top:-10px;margin-bottom:-10px}to{opacity:1;margin-top:0;margin-bottom:0}} +`];var Zc=function(t,e,r,o){var n=arguments.length,i=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(i=(n<3?s(i):n>3?s(e,r,i):s(e,r))||i);return n>3&&i&&Object.defineProperty(e,r,i),i},Qi=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const Z1=()=>bs("flyout",Gs);class Gs extends Un{static get styles(){return a4}get isOpen(){return this._isOpen}set isOpen(e){const r=this._isOpen;r!==e&&(this._isOpen=e,window.requestAnimationFrame(()=>{this.setupWindowEvents(this.isOpen);const o=this._flyout;!this.isOpen&&o&&(o.style.width=null,o.style.setProperty("--mgt-flyout-set-width",null),o.style.setProperty("--mgt-flyout-set-height",null),o.style.maxHeight=null,o.style.top=null,o.style.left=null,o.style.bottom=null)}),this.requestUpdate("isOpen",r),this.dispatchEvent(new Event(e?"opened":"closed")))}get _edgePadding(){return 24}get _flyout(){return this.renderRoot.querySelector(".flyout")}get _anchor(){return this.renderRoot.querySelector(".anchor")}get _topScout(){return this.renderRoot.querySelector(".scout-top")}get _bottomScout(){return this.renderRoot.querySelector(".scout-bottom")}constructor(){super(),this._renderedOnce=!1,this._isOpen=!1,this._smallView=!1,this.handleWindowEvent=e=>{const r=this._flyout;if(r)if(e.composedPath){const o=e.composedPath();if(o.includes(r)||e.type==="pointerdown"&&o.includes(this))return}else{let o=e.target;for(;o;)if(o=o.parentElement,o===r||e.type==="pointerdown"&&o===this)return}this.close()},this.handleResize=()=>{this.close()},this.handleKeyUp=e=>{e.key==="Escape"&&this.close()},this.handleFlyoutWheel=e=>{e.preventDefault()},this.avoidHidingAnchor=!0,this.addEventListener("expanded",()=>{window.requestAnimationFrame(()=>{this.updateFlyout()})})}open(){this.isOpen=!0}close(){this.isOpen=!1}disconnectedCallback(){this.setupWindowEvents(!1),super.disconnectedCallback()}updated(e){super.updated(e),window.requestAnimationFrame(()=>{this.updateFlyout()})}render(){const e={root:!0,visible:this.isOpen},r=this.renderAnchor();let o=null;if(this._windowHeight=window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight,this._windowHeight<250&&(this._smallView=!0),this.isOpen||this._renderedOnce){this._renderedOnce=!0;const n=kt({flyout:!0,small:this._smallView});o=P` +
+ ${this.renderFlyout()} +
+ `}return P` +
+
+ ${r} +
+
+
+ ${o} +
+ `}renderAnchor(){return P` + + `}renderFlyout(){return P` + + `}updateFlyout(e=!0){if(!this.isOpen)return;const r=this._anchor,o=this._flyout;if(o&&r){const n=window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth;this._windowHeight=window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight;let i=0,s,a=0,l,c;const u=o.getBoundingClientRect(),d=r.getBoundingClientRect(),f=this._topScout.getBoundingClientRect(),p=this._bottomScout.getBoundingClientRect(),h={height:this._windowHeight,left:0,top:0,width:n};if(W1()){const m=s4().getWindowSegments();let y;const C=d.left+d.width/2,x=d.top+d.height/2;for(const _ of m)if(C>=_.left&&x>=_.top){y=_;break}y&&(h.left=y.left,h.top=y.top,h.width=y.width,h.height=y.height)}u.width+2*this._edgePadding>h.width?u.width>h.width?(c=h.width,i=0):i=(h.width-u.width)/2:d.left+u.width+this._edgePadding>h.width?i=d.left-(d.left+u.width+this._edgePadding-h.width):d.leftg?(s=h.height-d.top,l=v):(a=d.bottom,l=g):(s=h.height-d.top,l=v):(a=d.bottom,l=g):u.height+2*this._edgePadding>h.height?u.height>=h.height?(l=h.height,a=0):a=(h.height-u.height)/2:d.top+d.height+u.height+this._edgePadding>h.height?a=h.height-u.height-this._edgePadding:a=Math.max(d.top+d.height,this._edgePadding),(f.top!==0||f.left!==0)&&(i-=f.left,typeof s<"u"?s+=p.top-this._windowHeight:a-=f.top),this.direction==="rtl"?i>100&&this.offsetLeft>100&&(o.style.left=`${h.width-i+u.left-u.width-30}px`):o.style.left=`${i+h.left}px`,typeof s<"u"?(o.style.top="unset",o.style.bottom=`${s}px`):(o.style.bottom="unset",o.style.top=`${a+h.top}px`),c&&(o.style.width=`${c}px`,o.style.setProperty("--mgt-flyout-set-width",`${c}px`),window.requestAnimationFrame(()=>this.updateFlyout())),l&&!e?(o.style.maxHeight=`${l}px`,o.style.setProperty("--mgt-flyout-set-height",`${l}px`)):(o.style.maxHeight=null,o.style.setProperty("--mgt-flyout-set-height","unset")),e&&window.requestAnimationFrame(()=>this.updateFlyout(!1))}}setupWindowEvents(e){e&&this.isLightDismiss?(window.addEventListener("wheel",this.handleWindowEvent),window.addEventListener("pointerdown",this.handleWindowEvent),window.addEventListener("resize",this.handleResize),window.addEventListener("keyup",this.handleKeyUp)):(window.removeEventListener("wheel",this.handleWindowEvent),window.removeEventListener("pointerdown",this.handleWindowEvent),window.removeEventListener("resize",this.handleResize),window.removeEventListener("keyup",this.handleKeyUp))}}Zc([Y({attribute:"light-dismiss",type:Boolean}),Qi("design:type",Boolean)],Gs.prototype,"isLightDismiss",void 0);Zc([Y({attribute:null,type:Boolean}),Qi("design:type",Boolean)],Gs.prototype,"avoidHidingAnchor",void 0);Zc([Y({attribute:"isOpen",type:Boolean}),Qi("design:type",Boolean),Qi("design:paramtypes",[Boolean])],Gs.prototype,"isOpen",null);const l4=["none","hover","click"],c4=t=>typeof t=="string"&&l4.includes(t),u4=(t,e="none")=>c4(t)?t:e,d4=[ps` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{font-size:var(--default-font-size)}:host .flyout [slot=anchor]{display:flex;cursor:pointer}:host .flyout [slot=anchor].vertical{flex-direction:column;justify-content:center;align-items:center;margin-inline-start:0}:host .person-root{display:flex;flex-direction:row;align-items:center;background-color:var(--person-background-color,transparent);border-radius:var(--person-border-radius,4px)}:host .person-root.small .avatar-wrapper{min-width:var(--person-avatar-size,24px);width:var(--person-avatar-size,24px);height:var(--person-avatar-size,24px)}:host .person-root.small .contact-icon,:host .person-root.small .initials{font-size:calc(var(--person-avatar-size, 24px) * .4)}:host .person-root.small .presence-wrapper svg{width:calc(var(--person-avatar-size,24px) * .28);height:calc(var(--person-avatar-size,24px) * .28)}:host .person-root.noline .avatar-wrapper,:host .person-root.oneline .avatar-wrapper{min-width:var(--person-avatar-size,24px);width:var(--person-avatar-size,24px);height:var(--person-avatar-size,24px)}:host .person-root.noline .avatar-wrapper .contact-icon,:host .person-root.noline .avatar-wrapper .initials,:host .person-root.oneline .avatar-wrapper .contact-icon,:host .person-root.oneline .avatar-wrapper .initials{font-size:calc(var(--person-avatar-size, 24px) * .4)}:host .person-root.noline .avatar-wrapper .presence-wrapper svg,:host .person-root.oneline .avatar-wrapper .presence-wrapper svg{width:calc(var(--person-avatar-size,24px) * .28);height:calc(var(--person-avatar-size,24px) * .28)}:host .person-root.noline .presence-basic,:host .person-root.oneline .presence-basic{border-width:1px;position:relative;bottom:calc(var(--person-avatar-size,24px) * .12 - 4px)}:host .person-root.twolines .avatar-wrapper{min-width:var(--person-avatar-size,40px);width:var(--person-avatar-size,40px);height:var(--person-avatar-size,40px)}:host .person-root.twolines .avatar-wrapper .contact-icon,:host .person-root.twolines .avatar-wrapper .initials{font-size:calc(var(--person-avatar-size, 40px) * .4)}:host .person-root.twolines .avatar-wrapper .presence-wrapper svg{width:calc(var(--person-avatar-size,40px) * .28);height:calc(var(--person-avatar-size,40px) * .28)}:host .person-root.large .avatar-wrapper,:host .person-root.threelines .avatar-wrapper{min-width:var(--person-avatar-size,56px);width:var(--person-avatar-size,56px);height:var(--person-avatar-size,56px)}:host .person-root.large .avatar-wrapper .contact-icon,:host .person-root.large .avatar-wrapper .initials,:host .person-root.threelines .avatar-wrapper .contact-icon,:host .person-root.threelines .avatar-wrapper .initials{font-size:calc(var(--person-avatar-size, 56px) * .4)}:host .person-root.large .avatar-wrapper .presence-wrapper svg,:host .person-root.threelines .avatar-wrapper .presence-wrapper svg{width:calc(var(--person-avatar-size,56px) * .28);height:calc(var(--person-avatar-size,56px) * .28)}:host .person-root.fourlines .avatar-wrapper,:host .person-root.vertical .avatar-wrapper{min-width:var(--person-avatar-size,72px);width:var(--person-avatar-size,72px);height:var(--person-avatar-size,72px)}:host .person-root.fourlines .avatar-wrapper .contact-icon,:host .person-root.fourlines .avatar-wrapper .initials,:host .person-root.vertical .avatar-wrapper .contact-icon,:host .person-root.vertical .avatar-wrapper .initials{font-size:calc(var(--person-avatar-size, 72px) * .4)}:host .person-root.fourlines .avatar-wrapper .presence-wrapper svg,:host .person-root.vertical .avatar-wrapper .presence-wrapper svg{width:calc(var(--person-avatar-size,72px) * .28);height:calc(var(--person-avatar-size,72px) * .28)}:host .person-root.vertical{flex-direction:column;justify-content:center;align-items:center}:host .person-root .avatar-wrapper{min-width:var(--person-avatar-size,24px);width:var(--person-avatar-size,24px);height:var(--person-avatar-size,24px);position:relative;box-sizing:border-box}:host .person-root .avatar-wrapper .contact-icon,:host .person-root .avatar-wrapper .initials,:host .person-root .avatar-wrapper .shimmer,:host .person-root .avatar-wrapper img{height:100%;width:100%;border:var(--person-avatar-border,none);border-radius:var(--person-avatar-border-radius,50%);margin-block-start:var(--person-avatar-top-spacing,0);object-fit:cover;object-position:center top}:host .person-root .avatar-wrapper .contact-icon,:host .person-root .avatar-wrapper .initials,:host .person-root .avatar-wrapper .shimmer{display:flex;justify-content:center;align-items:center;font-size:calc(var(--person-avatar-size, 24px) * .4);font-weight:400;background:var(--person-initials-background-color,var(--neutral-fill-secondary-rest));color:var(--person-initials-text-color,var(--neutral-fill-strong-hover))}:host .person-root .avatar-wrapper .presence-wrapper{bottom:var(--person-presence-wrapper-bottom,0);right:0;position:absolute;border-radius:50%;background-color:var(--neutral-layer-1);border:1px solid var(--neutral-layer-1)}:host .person-root .avatar-wrapper .presence-wrapper svg{display:flex;width:calc(var(--person-avatar-size,24px) * .28);height:calc(var(--person-avatar-size,24px) * .28)}:host .person-root .details-wrapper{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:var(--person-details-wrapper-width,168px);margin-inline-start:var(--person-details-left-spacing,12px);margin-block-end:var(--person-details-bottom-spacing,0)}:host .person-root .details-wrapper .shimmer.text{width:200px;height:16px;margin:2px 0}:host .person-root .details-wrapper.vertical{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;margin-inline-start:0}:host .person-root .details-wrapper .line1{font-size:var(--person-line1-font-size, ms-font-size-14);font-weight:var(--person-line1-font-weight,600);color:var(--person-line1-text-color,var(--neutral-foreground-rest));text-transform:var(--person-line1-text-transform,inherit);line-height:var(--person-line1-text-line-height, 20px)}:host .person-root .details-wrapper .line2{font-size:var(--person-line2-font-size, var(--email-font-size, ms-font-size-12));font-weight:var(--person-line2-font-weight,400);color:var(--person-line2-text-color,var(--secondary-text-color));text-transform:var(--person-line2-text-transform,inherit);line-height:var(--person-line2-text-line-height, 16px)}:host .person-root .details-wrapper .line3{font-size:var(--person-line3-font-size, var(--email-font-size, ms-font-size-12));font-weight:var(--person-line3-font-weight,400);color:var(--person-line3-text-color,var(--secondary-text-color));text-transform:var(--person-line3-text-transform,inherit);line-height:var(--person-line3-text-line-height, 16px)}:host .person-root .details-wrapper .line4{font-size:var(--person-line4-font-size, var(--email-font-size, ms-font-size-12));font-weight:var(--person-line4-font-weight,400);color:var(--person-line4-text-color,var(--secondary-text-color));text-transform:var(--person-line4-text-transform,inherit);line-height:var(--person-line4-text-line-height, 16px)}@media (forced-colors:active) and (prefers-color-scheme:dark){:host svg,:host svg>path{fill:rgb(255,255,255);fill-rule:nonzero;clip-rule:nonzero}}[dir=rtl] .presence-wrapper{right:unset!important;left:0} +`],f4=["photo","initials"],h4=t=>typeof t=="string"&&f4.includes(t),p4=(t,e="photo")=>h4(t)?t:e,g4={Available:"Available",Away:"Away",BeRightBack:"Be right back",Busy:"Busy",DoNotDisturb:"Do not disturb",InACall:"In a call",InAConferenceCall:"In a conference call",Inactive:"Inactive",InAMeeting:"In a meeting",Offline:"Offline",OffWork:"Off work",OutOfOffice:"Out of office",PresenceUnknown:"Presence unknown",Presenting:"Presenting",UrgentInterruptionsOnly:"Urgent interruptions only"},v4=Object.assign(Object.assign({},g4),{photoFor:"Photo for",emailAddress:"Email address"});class er{}er.sections={files:!0,mailMessages:!0,organization:{showWorksWith:!0},profile:!0};er.useContactApis=!0;er.isSendMessageVisible=!0;var j=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};const qP=t=>Array.isArray(t.nextExpectedRanges),UP=()=>j(void 0,void 0,void 0,function*(){yield V.getCache($.fileLists,$.fileLists.stores.fileLists).clearStore()}),G1=()=>V.config.files.invalidationPeriod||V.config.defaultInvalidationPeriod,Br=()=>V.config.files.isEnabled&&V.config.isEnabled,m4=()=>V.config.fileLists.invalidationPeriod||V.config.defaultInvalidationPeriod,Qn=()=>V.config.fileLists.isEnabled&&V.config.isEnabled,Xs=["Files.Read","Files.ReadWrite","Files.Read.All","Files.ReadWrite.All","Group.Read.All","Group.ReadWrite.All","Sites.Read.All","Sites.ReadWrite.All"],Wr=["Sites.Read.All","Sites.ReadWrite.All"],Ks=["Files.ReadWrite","Files.ReadWrite.All","Sites.ReadWrite.All"],Qe=(t,e,r=$.files.stores.fileQueries,o=Xs)=>j(void 0,void 0,void 0,function*(){const n=V.getCache($.files,r),i=yield w4(n,e);if(i)return i;let s;try{s=yield t.api(e).middlewareOptions(ae(o)).get(),Br()&&(yield n.putValue(e,{file:JSON.stringify(s)}))}catch{}return s||null}),WP=(t,e,r)=>j(void 0,void 0,void 0,function*(){const o=`/drives/${e}/items/${r}`;return Qe(t,o,$.files.stores.driveFiles)}),ZP=(t,e,r)=>j(void 0,void 0,void 0,function*(){const o=`/drives/${e}/root:/${r}`;return Qe(t,o,$.files.stores.driveFiles)}),GP=(t,e,r)=>j(void 0,void 0,void 0,function*(){const o=`/groups/${e}/drive/items/${r}`;return Qe(t,o,$.files.stores.groupFiles)}),XP=(t,e,r)=>j(void 0,void 0,void 0,function*(){const o=`/groups/${e}/drive/root:/${r}`;return Qe(t,o,$.files.stores.groupFiles)}),KP=(t,e)=>j(void 0,void 0,void 0,function*(){const r=`/me/drive/items/${e}`;return Qe(t,r,$.files.stores.userFiles)}),JP=(t,e)=>j(void 0,void 0,void 0,function*(){const r=`/me/drive/root:/${e}`;return Qe(t,r,$.files.stores.userFiles)}),QP=(t,e,r)=>j(void 0,void 0,void 0,function*(){const o=`/sites/${e}/drive/items/${r}`;return Qe(t,o,$.files.stores.siteFiles)}),YP=(t,e,r)=>j(void 0,void 0,void 0,function*(){const o=`/sites/${e}/drive/root:/${r}`;return Qe(t,o,$.files.stores.siteFiles)}),eF=(t,e,r,o)=>j(void 0,void 0,void 0,function*(){const n=`/sites/${e}/lists/${r}/items/${o}/driveItem`;return Qe(t,n,$.files.stores.siteFiles)}),tF=(t,e,r)=>j(void 0,void 0,void 0,function*(){const o=`/users/${e}/drive/items/${r}`;return Qe(t,o,$.files.stores.userFiles)}),rF=(t,e,r)=>j(void 0,void 0,void 0,function*(){const o=`/users/${e}/drive/root:/${r}`;return Qe(t,o,$.files.stores.userFiles)}),oF=(t,e,r)=>j(void 0,void 0,void 0,function*(){const o=`/me/insights/${e}/${r}/resource`;return Qe(t,o,$.files.stores.insightFiles,Wr)}),nF=(t,e,r,o)=>j(void 0,void 0,void 0,function*(){const n=`/users/${e}/insights/${r}/${o}/resource`;return Qe(t,n,$.files.stores.insightFiles,Wr)}),mt=(t,e,r,o)=>j(void 0,void 0,void 0,function*(){let n;const i=V.getCache($.fileLists,r),s=`${e}:${o}`,a=yield Gc(i,r,s);if(a)return n=y4(t,a.files,a.nextLink),n;let l;try{if(l=t.api(e).middlewareOptions(ae(Xs)),o&&l.top(o),n=yield b4(t,l),Qn()){const c=n.nextLink;yield i.putValue(s,{files:n.value.map(u=>JSON.stringify(u)),nextLink:c})}}catch{}return n||null}),iF=(t,e)=>j(void 0,void 0,void 0,function*(){const r="/me/drive/root/children",o=$.fileLists.stores.fileLists;return mt(t,r,o,e)}),sF=(t,e,r,o)=>j(void 0,void 0,void 0,function*(){const n=`/drives/${e}/items/${r}/children`,i=$.fileLists.stores.fileLists;return mt(t,n,i,o)}),aF=(t,e,r,o)=>j(void 0,void 0,void 0,function*(){const n=`/drives/${e}/root:/${r}:/children`,i=$.fileLists.stores.fileLists;return mt(t,n,i,o)}),lF=(t,e,r,o)=>j(void 0,void 0,void 0,function*(){const n=`/groups/${e}/drive/items/${r}/children`,i=$.fileLists.stores.fileLists;return mt(t,n,i,o)}),cF=(t,e,r,o)=>j(void 0,void 0,void 0,function*(){const n=`/groups/${e}/drive/root:/${r}:/children`,i=$.fileLists.stores.fileLists;return mt(t,n,i,o)}),uF=(t,e,r)=>j(void 0,void 0,void 0,function*(){const o=`/me/drive/items/${e}/children`,n=$.fileLists.stores.fileLists;return mt(t,o,n,r)}),dF=(t,e,r)=>j(void 0,void 0,void 0,function*(){const o=`/me/drive/root:/${e}:/children`,n=$.fileLists.stores.fileLists;return mt(t,o,n,r)}),fF=(t,e,r,o)=>j(void 0,void 0,void 0,function*(){const n=`/sites/${e}/drive/items/${r}/children`,i=$.fileLists.stores.fileLists;return mt(t,n,i,o)}),hF=(t,e,r,o)=>j(void 0,void 0,void 0,function*(){const n=`/sites/${e}/drive/root:/${r}:/children`,i=$.fileLists.stores.fileLists;return mt(t,n,i,o)}),pF=(t,e,r,o)=>j(void 0,void 0,void 0,function*(){const n=`/users/${e}/drive/items/${r}/children`,i=$.fileLists.stores.fileLists;return mt(t,n,i,o)}),gF=(t,e,r,o)=>j(void 0,void 0,void 0,function*(){const n=`/users/${e}/drive/root:/${r}:/children`,i=$.fileLists.stores.fileLists;return mt(t,n,i,o)}),vF=(t,e,r)=>j(void 0,void 0,void 0,function*(){const o=$.fileLists.stores.fileLists;return mt(t,e,o,r)}),mF=(t,e)=>j(void 0,void 0,void 0,function*(){const r=`/me/insights/${e}`,o=$.fileLists.stores.insightfileLists,n=V.getCache($.fileLists,o),i=yield Gc(n,o,r);if(i)return i.files.map(l=>JSON.parse(l));let s;try{s=yield t.api(r).filter("resourceReference/type eq 'microsoft.graph.driveItem'").middlewareOptions(ae(Wr)).get()}catch{}const a=yield X1(t,s,Wr);return Qn()&&(yield n.putValue(r,{files:a.map(l=>JSON.stringify(l))})),a||null}),bF=(t,e,r)=>j(void 0,void 0,void 0,function*(){let o,n;r==="shared"?(o="/me/insights/shared",n=`((lastshared/sharedby/id eq '${e}') and (resourceReference/type eq 'microsoft.graph.driveItem'))`):(o=`/users/${e}/insights/${r}`,n="resourceReference/type eq 'microsoft.graph.driveItem'");const i=`${o}?$filter=${n}`,s=$.fileLists.stores.insightfileLists,a=V.getCache($.fileLists,s),l=yield Gc(a,s,i);if(l)return l.files.map(d=>JSON.parse(d));let c;try{c=yield t.api(o).filter(n).middlewareOptions(ae(Wr)).get()}catch{}const u=yield X1(t,c,Wr);return Qn()&&(yield a.putValue(o,{files:u.map(d=>JSON.stringify(d))})),u||null}),yF=(t,e)=>j(void 0,void 0,void 0,function*(){if(!e||e.length===0)return[];const r=t.createBatch(),o=[];let n,i;Br()&&(n=V.getCache($.files,$.files.stores.fileQueries));for(const s of e)Br()&&(i=yield n.getValue(s)),Br()&&i&&G1()>Date.now()-i.timeCached?o.push(JSON.parse(i.file)):s!==""&&r.get(s,s,Xs);try{const s=yield r.executeAll();for(const a of e){const l=s.get(a);l!=null&&l.content&&(o.push(l.content),Br()&&(yield n.putValue(a,{file:JSON.stringify(l.content)})))}return o}catch{try{return Promise.all(e.filter(a=>a&&a!=="").map(a=>j(void 0,void 0,void 0,function*(){const l=yield Qe(t,a);if(l)return Br()&&(yield n.putValue(a,{file:JSON.stringify(l)})),l})))}catch{return[]}}}),X1=(t,e,r)=>j(void 0,void 0,void 0,function*(){if(!e)return[];const o=e.value,n=t.createBatch(),i=[];for(const s of o){const a=s.resourceReference.id;a!==""&&n.get(a,a,r)}try{const s=yield n.executeAll();for(const a of o){const l=s.get(a.resourceReference.id);l!=null&&l.content&&i.push(l.content)}return i}catch{try{return Promise.all(o.filter(a=>!!a.resourceReference.id).map(a=>j(void 0,void 0,void 0,function*(){return yield t.api(a.resourceReference.id).middlewareOptions(ae(r)).get()})))}catch{return[]}}}),b4=(t,e)=>j(void 0,void 0,void 0,function*(){return Cn.create(t,e)}),y4=(t,e,r)=>Cn.createFromValue(t,e.map(o=>JSON.parse(o)),r),w4=(t,e)=>j(void 0,void 0,void 0,function*(){if(Br()){const r=yield t.getValue(e);if(r&&G1()>Date.now()-r.timeCached)return JSON.parse(r.file)}return null}),Gc=(t,e,r)=>j(void 0,void 0,void 0,function*(){if(t||(t=V.getCache($.fileLists,e)),Qn()){const o=yield t.getValue(r);if(o&&m4()>Date.now()-o.timeCached)return o}return null}),wF=t=>j(void 0,void 0,void 0,function*(){const e=t.nextLink;if(t.hasNext&&(yield t.next()),Qn()){const r=V.getCache($.fileLists,$.fileLists.stores.fileLists),i=/(graph.microsoft.com\/(v1.0|beta))(.*?)(?=\?)/gi.exec(e)[3];yield r.putValue(i,{files:t.value.map(s=>JSON.stringify(s)),nextLink:e})}}),kF=(t,e,r)=>j(void 0,void 0,void 0,function*(){try{const o=yield t.api(e).responseType(Ph.RAW).middlewareOptions(ae(r)).get();if(o.status===404)return{eTag:null,thumbnail:null};if(!o.ok)return null;const n=o.headers.get("eTag"),i=yield D1(yield o.blob());return{eTag:n,thumbnail:i}}catch{return null}}),xF=(t,e)=>j(void 0,void 0,void 0,function*(){try{return(yield t.api(e).middlewareOptions(ae(Xs)).get())||null}catch{}return null}),CF=(t,e,r)=>j(void 0,void 0,void 0,function*(){try{const o={item:{"@microsoft.graph.conflictBehavior":r||"rename"}};let n;try{n=yield t.api(e).middlewareOptions(ae(Ks)).post(JSON.stringify(o))}catch{}return n||null}catch{return null}}),SF=(t,e,r,o,n)=>j(void 0,void 0,void 0,function*(){try{const i={"Content-Length":r,"Content-Range":o};let s;try{s=yield t.client.api(e).middlewareOptions(ae(Ks)).headers(i).put(n)}catch{}return s||null}catch{return null}}),_F=(t,e,r)=>j(void 0,void 0,void 0,function*(){try{let o;try{o=yield t.client.api(e).middlewareOptions(ae(Ks)).put(r)}catch{}return o||null}catch{return null}}),BF=(t,e)=>j(void 0,void 0,void 0,function*(){try{yield t.client.api(e).middlewareOptions(ae(Ks)).delete()}catch{return null}});var Js=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};const Ga="businessPhones,companyName,department,displayName,givenName,jobTitle,mail,mobilePhone,officeLocation,preferredLanguage,surname,userPrincipalName,id,accountEnabled",Rn={directReports:"directReports",files:"files",messages:"messages",people:"people",person:"person"},k4=()=>V.config.users.invalidationPeriod||V.config.defaultInvalidationPeriod,x4=(t,e,r)=>Js(void 0,void 0,void 0,function*(){var o;const n=(e==null?void 0:e.id)||(e==null?void 0:e.userPrincipalName),i=Nn(e),s=V.getCache($.users,$.users.stores.cardState),a=yield s.getValue(n);if(a&&k4()>Date.now()-a.timeCached)return a;const l="classification"in e||"personType"in e&&(e.personType.subclass==="PersonalContact"||e.personType.class==="Group"),c=t.createBatch();l||er.sections.organization&&(C4(c,n),er.sections.organization.showWorksWith&&_4(c,n)),er.sections.mailMessages&&i&&P4(c,i),er.sections.files&&F4(c,r?null:i);let u;const d={};try{u=yield c.executeAll()}catch{}if(u)for(const[f,p]of u)d[f]=((o=p.content)===null||o===void 0?void 0:o.value)||p.content;if(!l&&er.sections.profile)try{const f=yield E4(t,n);f&&(d.profile=f)}catch{}return d.directReports&&d.directReports.length>0&&(d.directReports=d.directReports.filter(f=>f.accountEnabled)),yield s.putValue(n,d),d}),C4=(t,e)=>{const r=`manager($levels=max;$select=${Ga})`;t.get(Rn.person,`users/${e}?$expand=${r}&$select=${Ga}&$count=true`,Ln,{ConsistencyLevel:"eventual"}),t.get(Rn.directReports,`users/${e}/directReports?$select=${Ga}`)},S4=["People.Read.All"],_4=(t,e)=>{t.get(Rn.people,`users/${e}/people?$filter=personType/class eq 'Person'`,S4)},B4=["Mail.ReadBasic","Mail.Read","Mail.ReadWrite"],P4=(t,e)=>{t.get(Rn.messages,`me/messages?$search="from:${e}"`,B4)},F4=(t,e)=>{let r;e?r=`me/insights/shared?$filter=lastshared/sharedby/address eq '${e}'`:r="me/insights/used",t.get(Rn.files,r,Wr)},T4=["User.Read.All","User.ReadWrite.All"],E4=(t,e)=>Js(void 0,void 0,void 0,function*(){return yield t.api(`/users/${e}/profile`).version("beta").middlewareOptions(ae(T4)).get()}),$4=["Chat.Create","Chat.ReadWrite"],PF=(t,e,r)=>Js(void 0,void 0,void 0,function*(){const o={chatType:"oneOnOne",members:[{"@odata.type":"#microsoft.graph.aadUserConversationMember",roles:["owner"],"user@odata.bind":`https://graph.microsoft.com/v1.0/users('${r}')`},{"@odata.type":"#microsoft.graph.aadUserConversationMember",roles:["owner"],"user@odata.bind":`https://graph.microsoft.com/v1.0/users('${e}')`}]};return yield t.api("/chats").header("Cache-Control","no-store").middlewareOptions(ae($4)).post(o)}),A4=["ChatMessage.Send","Chat.ReadWrite"],FF=(t,e,r)=>Js(void 0,void 0,void 0,function*(){return yield t.api(`/chats/${e}/messages`).header("Cache-Control","no-store").middlewareOptions(ae(A4)).post(r)});var fe=function(t,e,r,o){var n=arguments.length,i=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(i=(n<3?s(i):n>3?s(e,r,i):s(e,r))||i);return n>3&&i&&Object.defineProperty(e,r,i),i},G=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)},bf=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};const N4=["businessPhones","displayName","givenName","jobTitle","department","mail","mobilePhone","officeLocation","preferredLanguage","surname","userPrincipalName","id","userType"],K1=()=>{Wc(H3),bs("person",K),Z1()};class K extends vs{static get styles(){return d4}get strings(){return v4}get personQuery(){return this._personQuery}set personQuery(e){e!==this._personQuery&&(this._personQuery=e,this._personDetails=null,this.personDetailsInternal=null)}get fallbackDetails(){return this._fallbackDetails}set fallbackDetails(e){e!==this._fallbackDetails&&(this._fallbackDetails=e,this.personDetailsInternal)}get userId(){return this._userId}set userId(e){e!==this._userId&&(this._userId=e,this.personDetailsInternal=null,this._personDetails=null)}get usage(){return this._usage}set usage(e){e!==this._usage&&(this._usage=e)}get personDetailsInternal(){return this._personDetailsInternal}set personDetailsInternal(e){this._personDetailsInternal!==e&&(this._personDetailsInternal=e,this._fetchedImage=null,this._fetchedPresence=null)}get personDetails(){return this._personDetails}set personDetails(e){this._personDetails!==e&&(this._personDetails=e,this._fetchedImage=null,this._fetchedPresence=null)}get personImage(){return this._personImage||this._fetchedImage}set personImage(e){e!==this._personImage&&(this._isInvalidImageSrc=!e,this._personImage=e)}get personPresence(){return this._personPresence||this._fetchedPresence}set personPresence(e){e!==this._personPresence&&(this._personPresence=e)}static get requiredScopes(){const e=["user.readbasic.all","user.read","people.read","presence.read.all","presence.read"];return K.config.useContactApis&&e.push("contacts.read"),e}get flyout(){return this.renderRoot.querySelector(".flyout")}constructor(){super(),this.avatarType="photo",this.personCardInteraction="none",this.view="image",this._hasLoadedPersonCard=!1,this._mouseLeaveTimeout=-1,this._mouseEnterTimeout=-1,this.renderContent=()=>{const e=this.personDetails||this.personDetailsInternal||this.fallbackDetails,r=this.getImage(),o=this.personPresence||this._fetchedPresence;if(!e&&!r)return this.renderNoData();!(e!=null&&e.personImage)&&r&&(e.personImage=r);let n=this.renderTemplate("default",{person:e,personImage:r,personPresence:o});if(!n){const a=this.renderDetails(e,o),l=this.renderAvatar(e,r,o);n=P` + ${l} + ${a} + `}this.personCardInteraction!=="none"&&(n=this.renderFlyout(n,e,r,o));const s=kt({"person-root":!0,small:!this.isThreeLines()&&!this.isFourLines()&&!this.isLargeAvatar(),large:this.avatarSize!=="auto"&&this.isLargeAvatar(),noline:this.isNoLine(),oneline:this.isOneLine(),twolines:this.isTwoLines(),threelines:this.isThreeLines(),fourlines:this.isFourLines(),vertical:this.isVertical()});return P` +
+ ${n} +
+ `},this.renderLoading=()=>{const e=kt({"person-root":!0,small:!this.isThreeLines()&&!this.isFourLines()&&!this.isLargeAvatar(),large:this.avatarSize!=="auto"&&this.isLargeAvatar(),noline:this.isNoLine(),oneline:this.isOneLine(),twolines:this.isTwoLines(),threelines:this.isThreeLines(),fourlines:this.isFourLines(),vertical:this.isVertical()}),r=kt({"details-wrapper":!0,vertical:this.isVertical()});return this.renderTemplate("loading",null)||P` +
+
+ +
+
+ ${this.renderLoadingLines()} +
+
`},this.renderLoadingLines=()=>{const e=[];return this.isNoLine()||(this.isOneLine()&&e.push(this.renderLoadingLine(1)),this.isTwoLines()&&(e.push(this.renderLoadingLine(1)),e.push(this.renderLoadingLine(2))),this.isThreeLines()&&(e.push(this.renderLoadingLine(1)),e.push(this.renderLoadingLine(2)),e.push(this.renderLoadingLine(3))),this.isFourLines()&&(e.push(this.renderLoadingLine(1)),e.push(this.renderLoadingLine(2)),e.push(this.renderLoadingLine(3)),e.push(this.renderLoadingLine(4)))),e},this.renderLoadingLine=e=>{const r=`line${e}`;return P` +
+ +
+ `},this.handleMouseClick=e=>{const r=e.target;this.personCardInteraction==="click"&&r.tagName!==`${uo.prefix}-PERSON-CARD`.toUpperCase()&&this.showPersonCard()},this.handleKeyDown=e=>{const r=this.renderRoot.querySelector(".person-root");if(e){if(e.key==="Enter"){this.showPersonCard();const o=this.flyout;o!=null&&o.isOpen&&(this._keyBoardFocus=R1(()=>{const n=o.querySelector(".mgt-person-card");n.setAttribute("tabindex","0"),n.focus()},500),this._keyBoardFocus()),r.blur()}this.personCardInteraction!=="none"&&e.key==="Escape"&&r&&(this.hidePersonCard(),r.focus())}},this.handleMouseEnter=()=>{clearTimeout(this._mouseEnterTimeout),clearTimeout(this._mouseLeaveTimeout),this.personCardInteraction==="hover"&&(this._mouseEnterTimeout=window.setTimeout(this.showPersonCard,500))},this.handleMouseLeave=()=>{clearTimeout(this._mouseEnterTimeout),clearTimeout(this._mouseLeaveTimeout),this._mouseLeaveTimeout=window.setTimeout(this.hidePersonCard,500)},this.hidePersonCard=()=>{const e=this.flyout;e&&e.close();const r=this.querySelector(".mgt-person-card")||this.renderRoot.querySelector(".mgt-person-card");r&&(r.isExpanded=!1,r.clearHistory())},this.loadPersonCardResources=()=>bf(this,void 0,void 0,function*(){if(this.personCardInteraction!=="none"&&!this._hasLoadedPersonCard){const{registerMgtPersonCardComponent:e}=yield fr(()=>import("./mgt-person-card-Cbp5qkpX.js"),__vite__mapDeps([0,1,2,3,4,5,6]));customElements.get(i0("person-card"))||e(),this._hasLoadedPersonCard=!0}}),this.showPersonCard=()=>{this._personCardShouldRender||(this._personCardShouldRender=!0,this.loadPersonCardResources());const e=this.flyout;e&&e.open()},this.personCardInteraction="none",this.line1Property="displayName",this.line2Property="jobTitle",this.line3Property="department",this.line4Property="email",this.view="image",this.avatarSize="auto",this.disableImageFetch=!1,this._isInvalidImageSrc=!1,this.avatarType="photo",this.verticalLayout=!1}clearState(){this._personImage="",this._personDetailsInternal=null,this._fetchedImage=null,this._fetchedPresence=null}renderNoData(){const e=this.renderTemplate("no-data",null);if(e)return e;const r={"avatar-icon":!0,vertical:this.isVertical(),small:!this.isLargeAvatar(),noline:this.isNoLine(),oneline:this.isOneLine(),twolines:this.isTwoLines(),threelines:this.isThreeLines(),fourlines:this.isFourLines()};return P` + + `}renderPersonIcon(){return Me(N.Person)}renderImage(e,r){var o;const n=`${this.strings.photoFor} ${e.displayName}`,i=r&&!this._isInvalidImageSrc&&this.avatarType==="photo",s=this.avatarType==="photo"&&this.view==="image",a=(o=(e==null?void 0:e.displayName)||`${this.strings.emailAddress} ${Nn(e)}`)!==null&&o!==void 0?o:void 0,l=P`${n}this._isInvalidImageSrc=!0} />`,c=e?this.getInitials(e):"",u=c==null?void 0:c.length,d=kt({initials:u&&!i,"contact-icon":!u}),f=P`${this.renderPersonIcon()}`,p=P` + + ${u?c:f} + +`;return i?this.fireCustomEvent("person-image-rendered"):this.fireCustomEvent("person-icon-rendered"),i?l:p}renderPresence(e){var r;if(!this.showPresence||!e)return P``;let o;const{activity:n,availability:i}=e;switch(i){case"Available":case"AvailableIdle":switch(n){case"OutOfOffice":o=Me(N.PresenceOofAvailable);break;case"Available":default:o=Me(N.PresenceAvailable);break}break;case"Busy":case"BusyIdle":switch(n){case"OutOfOffice":case"OnACall":o=Me(N.PresenceOofBusy);break;case"Busy":case"InACall":case"InAMeeting":case"InAConferenceCall":default:o=Me(N.PresenceBusy);break}break;case"DoNotDisturb":switch(n){case"OutOfOffice":o=Me(N.PresenceOofDnd);break;case"Presenting":case"Focusing":case"UrgentInterruptionsOnly":default:o=Me(N.PresenceDnd);break}break;case"Away":switch(n){case"OutOfOffice":o=Me(N.PresenceOofAway);break;case"AwayLastSeenTime":default:o=Me(N.PresenceAway);break}break;case"BeRightBack":switch(n){default:o=Me(N.PresenceAway);break}break;case"Offline":switch(n){case"Offline":o=Me(N.PresenceOffline);break;case"OutOfOffice":case"OffWork":o=Me(N.PresenceOofAway);break;default:o=Me(N.PresenceStatusUnknown);break}break;default:o=Me(N.PresenceStatusUnknown);break}const s=kt({"presence-wrapper":!0,noline:this.isNoLine(),oneline:this.isOneLine()}),a=(r=this.strings[n])!==null&&r!==void 0?r:Fe;return P` + + ${o} + + `}renderAvatar(e,r,o){const n=this.renderImage(e,r),i=this.renderPresence(o);return P` +
+ ${n} + ${i} +
+ `}handleLine1Clicked(){this.fireCustomEvent("line1clicked",this.personDetailsInternal)}handleLine2Clicked(){this.fireCustomEvent("line2clicked",this.personDetailsInternal)}handleLine3Clicked(){this.fireCustomEvent("line3clicked",this.personDetailsInternal)}handleLine4Clicked(){this.fireCustomEvent("line4clicked",this.personDetailsInternal)}renderDetails(e,r){if(!e||this.view==="image")return P``;const o=e;r&&(o.presenceActivity=r==null?void 0:r.activity,o.presenceAvailability=r==null?void 0:r.availability);const n=[],i=this.getTextFromProperty(o,this.line1Property);if(this.hasTemplate("line1")){const a=this.renderTemplate("line1",{person:o});n.push(P` +
this.handleLine1Clicked()} role="presentation" aria-label="${i}">${a}
+ `)}else i&&n.push(P` +
this.handleLine1Clicked()} role="presentation" aria-label="${i}">${i}
+ `);if(this.view!=="oneline"){const a=this.getTextFromProperty(o,this.line2Property);if(this.hasTemplate("line2")){const l=this.renderTemplate("line2",{person:o});n.push(P` +
this.handleLine2Clicked()} role="presentation" aria-label="${a}">${l}
+ `)}else a&&n.push(P` +
this.handleLine2Clicked()} role="presentation" aria-label="${a}">${a}
+ `)}if(this.view==="threelines"||this.view==="fourlines"){const a=this.getTextFromProperty(o,this.line3Property);if(this.hasTemplate("line3")){const l=this.renderTemplate("line3",{person:o});n.push(P` +
this.handleLine3Clicked()} role="presentation" aria-label="${a}">${l}
+ `)}else a&&n.push(P` +
this.handleLine3Clicked()} role="presentation" aria-label="${a}">${a}
+ `)}if(this.view==="fourlines"){const a=this.getTextFromProperty(o,this.line4Property);if(this.hasTemplate("line4")){const l=this.renderTemplate("line4",{person:o});n.push(P` +
this.handleLine4Clicked()} role="presentation" aria-label="${a}">${l}
+ `)}else a&&n.push(P` +
this.handleLine4Clicked()} role="presentation" aria-label="${a}">${a}
+ `)}const s=kt({"details-wrapper":!0,vertical:this.isVertical()});return P` +
+ ${n} +
+ `}renderFlyout(e,r,o,n){const i=this._personCardShouldRender&&this._hasLoadedPersonCard?P` +
+ ${this.renderFlyoutContent(r,o,n)} +
`:P``,s=kt({small:!this.isThreeLines()&&!this.isFourLines()&&!this.isLargeAvatar(),large:this.avatarSize!=="auto"&&this.isLargeAvatar(),noline:this.isNoLine(),oneline:this.isOneLine(),twolines:this.isTwoLines(),threelines:this.isThreeLines(),fourlines:this.isFourLines(),vertical:this.isVertical()});return no` + +
${e}
+ ${i} +
`}renderFlyoutContent(e,r,o){return this.fireCustomEvent("flyout-content-rendered"),this.renderTemplate("person-card",{person:e,personImage:r})||no` + + `}args(){return[this.providerState,this.verticalLayout,this.view,this.fallbackDetails,this.line1Property,this.line2Property,this.line3Property,this.line4Property,this.fetchImage,this.avatarType,this.userId,this.personQuery,this.disableImageFetch,this.showPresence,this.personPresence,this.personDetails]}loadState(){return bf(this,void 0,void 0,function*(){const e=U.globalProvider;if(!e||e.state===je.Loading)return;if(e&&e.state===je.SignedOut){this.personDetailsInternal=null;return}const r=e.graph.forComponent(this);(this.verticalLayout&&this.view!=="fourlines"||this.fallbackDetails)&&(this.line2Property="email");let o=[...N4,this.line1Property,this.line2Property,this.line3Property,this.line4Property];o=o.filter(s=>s!=="email");let n=this.personDetailsInternal||this.personDetails;if(n){if(!n.personImage&&this.fetchImage&&this.avatarType==="photo"&&!this.personImage&&!this._fetchedImage){let s;"groupTypes"in n?s=yield Q3(r,n):s=yield mf(r,n,K.config.useContactApis),s&&(n.personImage=s,this._fetchedImage=s)}}else if(this.userId||this.personQuery==="me"){let s;this.avatarType==="photo"&&!this.disableImageFetch?s=yield U1(r,this.userId,o):this.personQuery==="me"?s=yield M1(r,o):s=yield z1(r,this.userId,o),this.personDetailsInternal=s,this.personDetails=s,this._fetchedImage=this.getImage()}else if(this.personQuery){let s=yield I1(r,this.personQuery,1);if((!s||s.length===0)&&(s=(yield V1(r,this.personQuery,1))||[]),s!=null&&s.length&&(this.personDetailsInternal=s[0],this.personDetails=s[0],this.avatarType==="photo"&&!this.disableImageFetch)){const a=yield mf(r,s[0],K.config.useContactApis);a&&(this.personDetailsInternal.personImage=a,this.personDetails.personImage=a,this._fetchedImage=a)}}n=this.personDetailsInternal||this.personDetails||this.fallbackDetails,this.personCardInteraction!=="none"&&x4(r,n,this.personQuery==="me");const i={activity:"Offline",availability:"Offline",id:null};if(this.showPresence&&!this.personPresence&&!this._fetchedPresence)try{if(n){const s=this.personQuery!=="me"?n==null?void 0:n.id:null;this._fetchedPresence=yield q1(r,s)}else this._fetchedPresence=i}catch{this._fetchedPresence=i}})}getInitials(e){var r,o,n,i,s,a;if(e||(e=this.personDetailsInternal),G3(e))return e.initials;let l="";if(Z3(e)&&(l+=(n=(o=(r=e.givenName)===null||r===void 0?void 0:r[0])===null||o===void 0?void 0:o.toUpperCase())!==null&&n!==void 0?n:"",l+=(a=(s=(i=e.surname)===null||i===void 0?void 0:i[0])===null||s===void 0?void 0:s.toUpperCase())!==null&&a!==void 0?a:""),!l&&e.displayName){const c=e.displayName.split(/\s+/);for(let u=0;u<2&&up4(t,"photo")}),G("design:type",String)],K.prototype,"avatarType",void 0);fe([Y({attribute:"person-presence",type:Object}),G("design:type",Object),G("design:paramtypes",[Object])],K.prototype,"personPresence",null);fe([Y({attribute:"person-card",converter:t=>u4(t)}),G("design:type",String)],K.prototype,"personCardInteraction",void 0);fe([Y({attribute:"line1-property"}),G("design:type",String)],K.prototype,"line1Property",void 0);fe([Y({attribute:"line2-property"}),G("design:type",String)],K.prototype,"line2Property",void 0);fe([Y({attribute:"line3-property"}),G("design:type",String)],K.prototype,"line3Property",void 0);fe([Y({attribute:"line4-property"}),G("design:type",String)],K.prototype,"line4Property",void 0);fe([Y({converter:t=>n4(t,"image")}),G("design:type",String)],K.prototype,"view",void 0);fe([at(),G("design:type",String)],K.prototype,"_fetchedImage",void 0);fe([at(),G("design:type",Object)],K.prototype,"_fetchedPresence",void 0);fe([at(),G("design:type",Boolean)],K.prototype,"_isInvalidImageSrc",void 0);fe([at(),G("design:type",Boolean)],K.prototype,"_personCardShouldRender",void 0);fe([at(),G("design:type",Object)],K.prototype,"_hasLoadedPersonCard",void 0);const L4=[ps` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host .signed-in-person{--person-background-color:$signed-in-background-color;padding:var(--login-button-padding,10px 16px)}:host .account{padding:0;margin:7px 0}:host .account,:host .person,:host .signed-in-person{--person-avatar-size:var(--login-person-avatar-size, 40px)}:host fluent-button.signed-in{height:auto;min-width:auto}:host fluent-button.signed-in::part(control){width:100%;height:100%;padding:var(--login-button-padding,0);background:var(--login-signed-in-background,transparent);word-spacing:inherit;text-indent:inherit;letter-spacing:inherit}:host fluent-button.signed-in::part(control):focus-within,:host fluent-button.signed-in::part(control):hover{background:var(--login-signed-in-hover-background,var(--neutral-fill-stealth-hover));--secondary-text-color:var(--secondary-text-hover-color)}:host fluent-button.signed-out::part(control){color:var(--login-signed-out-button-text-color,var(--neutral-fill-foreground-rest));background:var(--login-signed-out-button-background,padding-box linear-gradient(var(--neutral-fill-rest),var(--neutral-fill-rest)),border-box var(--neutral-stroke-control-rest))}:host fluent-button.signed-out::part(control):focus-within,:host fluent-button.signed-out::part(control):hover{background:var(--login-signed-out-button-hover-background,var(--neutral-fill-stealth-hover))}:host fluent-button.small::part(control):hover{background:0 0}:host fluent-button:focus-visible{outline-style:var(--focus-ring-style,auto)}:host fluent-card{--fill-color:var(--login-popup-background-color, var(--neutral-layer-1));padding:var(--login-popup-padding,16px)}:host .login-root .small .signed-in-person{padding:0;background:0 0}:host .login-root .small .signed-in-person:focus-within,:host .login-root .small .signed-in-person:hover{background:0 0}:host .login-root .account-list{padding:calc(var(--design-unit) * 1px) 0;margin:0}:host .login-root .account-item{height:auto;min-width:auto;margin-top:4px;background:var(--login-popup-background-color,var(--neutral-layer-1));list-style-type:none;cursor:pointer}:host .login-root .account-item:hover{background:var(--login-account-item-hover-bg-color,var(--neutral-fill-stealth-hover));--person-background-color:$login-account-item-hover-bg-color}:host .login-root .flyout .flyout-command{color:var(--login-flyout-command-text-color,var(--accent-foreground-rest))}:host .login-root .flyout .popup-content .commands{display:flex;align-items:flex-end;justify-content:flex-end}:host .login-root .flyout .popup-content .commands fluent-button::part(control){color:var(--login-command-button-text-color,var(--neutral-fill-foreground-rest));background:var(--login-command-button-background-color,var(--neutral-fill-stealth-rest));word-spacing:inherit;text-indent:inherit;letter-spacing:inherit}:host .login-root .flyout .popup-content .commands fluent-button::part(control):hover{background:var(--login-command-button-hover-background-color,var(--neutral-fill-stealth-hover))}:host .login-root .flyout .popup-content .content .main-profile{margin-bottom:56px;margin-top:27px}:host .login-root .flyout .popup-content .add-account{padding-top:16px}:host .login-root .flyout .popup-content .add-account fluent-button::part(control){color:var(--login-add-account-button-text-color,var(--neutral-fill-foreground-rest));background:var(--login-add-account-button-background-color,var(--neutral-fill-stealth-rest));word-spacing:inherit;text-indent:inherit;letter-spacing:inherit}:host .login-root .flyout .popup-content .add-account fluent-button::part(control):hover{background:var(--login-add-account-button-hover-background-color,var(--neutral-fill-stealth-hover))} +`],R4={signInLinkSubtitle:"Sign In",signOutLinkSubtitle:"Sign Out",signInWithADifferentAccount:"Sign in with a different account"};var Yn=function(t,e,r,o){var n=arguments.length,i=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(i=(n<3?s(i):n>3?s(e,r,i):s(e,r))||i);return n>3&&i&&Object.defineProperty(e,r,i),i},ei=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)},Xa=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(u){try{c(o.next(u))}catch(d){s(d)}}function l(u){try{c(o.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):n(u.value).then(a,l)}c((o=o.apply(t,e||[])).next())})};const D4=()=>{Wc(A3,R3,P3,T3),Z1(),K1(),bs("login",Mo)};class Mo extends vs{static get styles(){return L4}get strings(){return R4}get flyout(){return this.renderRoot.querySelector(".flyout")}static get requiredScopes(){return[...new Set(["user.read",...K.requiredScopes])]}get _userDetailsKey(){return"-userDetails"}constructor(){super(),this.showPresence=!1,this.loginView="full",this._arrowKeyLocation=-1,this.logout=()=>Xa(this,void 0,void 0,function*(){if(!this.fireCustomEvent("logoutInitiated"))return;const e=U.globalProvider;if(e!=null&&e.logout){if(yield e.logout(),this.userDetails=null,e.isMultiAccountSupportedAndEnabled){const r=e.getActiveAccount();localStorage.removeItem((r==null?void 0:r.id)+this._userDetailsKey)}this.hideFlyout(),this.fireCustomEvent("logoutCompleted")}}),this.renderContent=()=>P` + `,this.flyoutOpened=()=>{this._isFlyoutOpen=!0},this.flyoutClosed=()=>{this._isFlyoutOpen=!1},this.onUserKeyDown=e=>{if(!this.flyout.isOpen)return;const r=this.renderRoot.querySelector(".popup-content"),o=r.querySelectorAll("ul, fluent-button"),n=r.querySelector("#signout-button")||o[0],i=r.querySelector("#signin-different-account-button")||o[o.length-1];if(e.key==="Tab"&&e.shiftKey&&n===e.target&&(e.preventDefault(),i==null||i.focus()),e.key==="Tab"&&!e.shiftKey&&i===e.target&&(e.preventDefault(),n==null||n.focus()),e.key==="Escape"){const a=this.renderRoot.querySelector("#login-button");a==null||a.focus()}const s=this.renderRoot.querySelector("fluent-card");e.shiftKey&&e.key==="Tab"&&e.target===s&&this.hideFlyout()},this.handleAccountListKeyDown=e=>{const r=this.renderRoot.querySelector("ul.account-list");let o;const n=r==null?void 0:r.children;for(const a of n){const l=a;l.setAttribute("tabindex","-1"),l.blur()}const i=r.childElementCount,s=e.key;if(s==="ArrowDown")this._arrowKeyLocation=(this._arrowKeyLocation+1+i)%i;else if(s==="ArrowUp")this._arrowKeyLocation=(this._arrowKeyLocation-1+i)%i;else if(s==="Tab"||s==="Escape"){this._arrowKeyLocation=-1,r.blur(),s==="Escape"&&(e.preventDefault(),e.stopPropagation());return}this._arrowKeyLocation>-1&&(o=n[this._arrowKeyLocation],o.setAttribute("tabindex","1"),o.focus())},this.onClick=()=>{this.userDetails&&this.flyout.isOpen?this.hideFlyout():this.userDetails?this.showFlyout():this.login()},this._isFlyoutOpen=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e=>e.stopPropagation())}login(){return Xa(this,void 0,void 0,function*(){const e=U.globalProvider;(this.userDetails||!this.fireCustomEvent("loginInitiated"))&&!e.isMultiAccountSupportedAndEnabled||e!=null&&e.login&&(yield e.login(),e.state===je.SignedIn?this.fireCustomEvent("loginCompleted"):this.fireCustomEvent("loginFailed"))})}args(){return[this.providerState]}loadState(){return Xa(this,void 0,void 0,function*(){const e=U.globalProvider;e&&!this.userDetails&&(e.state===je.SignedIn?(this.userDetails=yield U1(e.graph.forComponent(this)),this.userDetails.personImage&&(this._image=this.userDetails.personImage),e.isMultiAccountSupportedAndEnabled&&localStorage.setItem(U.globalProvider.getActiveAccount().id+this._userDetailsKey,JSON.stringify(this.userDetails)),this.fireCustomEvent("loginCompleted")):this.userDetails=null)})}renderButton(){var e;const r=((e=U.globalProvider)===null||e===void 0?void 0:e.state)===je.SignedIn,o=kt({"signed-in":r&&!!this.userDetails,"signed-out":!r,small:this.loginView==="avatar"}),n=r?"stealth":"neutral",i=r&&this.userDetails,s=i?this.renderSignedInButtonContent(this.userDetails,this._image):this.renderSignedOutButtonContent(),a=i?this._isFlyoutOpen:void 0;return P` + + ${s} + `}renderFlyout(){return no` + + + ${this.renderFlyoutContent()} + + `}renderFlyoutContent(){if(this.userDetails)return P` + + `}get hasMultipleAccounts(){var e,r,o,n;return((e=U.globalProvider)===null||e===void 0?void 0:e.isMultiAccountSupportedAndEnabled)&&((n=(o=(r=U.globalProvider)===null||r===void 0?void 0:r.getAllAccounts)===null||o===void 0?void 0:o.call(r))===null||n===void 0?void 0:n.length)>1}get usesVerticalPersonCard(){return this.loginView==="full"||this.hasMultipleAccounts}renderFlyoutPersonDetails(e,r){return this.renderTemplate("flyout-person-details",{personDetails:e,personImage:r})||no` + + `}renderFlyoutCommands(){return this.renderTemplate("flyout-commands",{handleSignOut:()=>this.logout()})||P` + + ${this.strings.signOutLinkSubtitle} + `}renderButtonContent(){return this.userDetails?this.renderSignedInButtonContent(this.userDetails,this._image):this.renderSignedOutButtonContent()}renderAddAccountContent(){if(U.globalProvider.isMultiAccountSupportedAndEnabled)return P` + `}parsePersonDisplayConfiguration(){const e={view:"twolines",avatarSize:"small"};switch(this.loginView){case"avatar":e.view="image",e.avatarSize="small";break;case"compact":e.view="oneline",e.avatarSize="small";break;case"full":default:e.view="twolines",e.avatarSize="auto";break}return e}renderSignedInButtonContent(e,r){const o=this.renderTemplate("signed-in-button-content",{personDetails:e,personImage:r}),n=this.parsePersonDisplayConfiguration();return o||no` + `}renderAccounts(){if(U.globalProvider.state===je.SignedIn&&U.globalProvider.isMultiAccountSupportedAndEnabled){const e=U.globalProvider,r=e.getAllAccounts();if((r==null?void 0:r.length)>1)return P` +
+ +
+ `}}setActiveAccount(e){U.globalProvider.setActiveAccount(e)}clearState(){this.userDetails=null,this._image=null}renderSignedOutButtonContent(){return this.renderTemplate("signed-out-button-content",null)||P` + ${this.strings.signInLinkSubtitle}`}showFlyout(){const e=this.flyout;e&&e.open()}hideFlyout(){const e=this.flyout;e&&e.close()}}Yn([Y({attribute:"user-details",type:Object}),ei("design:type",Object)],Mo.prototype,"userDetails",void 0);Yn([Y({attribute:"show-presence",type:Boolean}),ei("design:type",Object)],Mo.prototype,"showPresence",void 0);Yn([Y({attribute:"login-view",type:String}),ei("design:type",String)],Mo.prototype,"loginView",void 0);Yn([at(),ei("design:type",Boolean)],Mo.prototype,"_isFlyoutOpen",void 0);Yn([at(),ei("design:type",Object)],Mo.prototype,"_arrowKeyLocation",void 0);const Ka={placeholder:"Search",title:"Search"},O4=[ps` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host fluent-search{width:100%} +`];var Xc=function(t,e,r,o){var n=arguments.length,i=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(i=(n<3?s(i):n>3?s(e,r,i):s(e,r))||i);return n>3&&i&&Object.defineProperty(e,r,i),i},Yi=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const I4=()=>{Wc(z3),bs("search-box",Qs)};class Qs extends Un{static get styles(){return O4}get strings(){return Ka}get searchTerm(){return this._searchTerm}set searchTerm(e){this._searchTerm=e,this.fireSearchTermChanged()}constructor(){super(),this._searchTerm="",this.renderContent=()=>{var e;return P` + + `},this.onInputChanged=e=>{this.searchTerm=e.target.value},this.debounceDelay=300}fireSearchTermChanged(){this.debouncedSearchTermChanged||(this.debouncedSearchTermChanged=R1(()=>{this.fireCustomEvent("searchTermChanged",this.searchTerm)},this.debounceDelay)),this.debouncedSearchTermChanged()}}Xc([Y({attribute:"placeholder",type:String}),Yi("design:type",String)],Qs.prototype,"placeholder",void 0);Xc([Y({attribute:"search-term",type:String}),Yi("design:type",Object),Yi("design:paramtypes",[Object])],Qs.prototype,"searchTerm",null);Xc([Y({attribute:"debounce-delay",type:Number,reflect:!0}),Yi("design:type",Number)],Qs.prototype,"debounceDelay",void 0);const J1="#717171",yf=le.create("secondary-text-color").withDefault(J1),Q1="#1a1a1a",wf=le.create("secondary-text-hover-color").withDefault(Q1),M4=(t,e=document.body)=>{const r=V4(t);z4(r,e)},z4=(t,e=document.body)=>{var r;w1.setValueFor(e,ee.from(he(t.accentBaseColor))),y1.setValueFor(e,ee.from(he(t.neutralBaseColor))),Kr.setValueFor(e,t.baseLayerLuminance),(r=t.designTokenOverrides)===null||r===void 0||r.call(t,e)},V4=t=>{switch(t){case"contrast":return{accentBaseColor:"#7f85f5",neutralBaseColor:"#adadad",baseLayerLuminance:Tr.DarkMode};case"default":return{accentBaseColor:"#5b5fc7",neutralBaseColor:"#616161",baseLayerLuminance:Tr.LightMode};case"dark":return{accentBaseColor:"#479ef5",neutralBaseColor:"#adadad",baseLayerLuminance:Tr.DarkMode,designTokenOverrides:e=>{Pt.setValueFor(e,ee.from(he("#115ea3"))),qr.setValueFor(e,ee.from(he("#0f6cbd"))),Ur.setValueFor(e,ee.from(he("#0c3b5e"))),Kn.setValueFor(e,ee.from(he("#0f548c"))),S1.setValueFor(e,ee.from(he("#479EF5"))),_1.setValueFor(e,ee.from(he("#62abf5"))),B1.setValueFor(e,ee.from(he("#2886de"))),Oy.setValueFor(e,ee.from(he("#479ef5"))),P1.setValueFor(e,ee.from(he("#115ea3"))),F1.setValueFor(e,ee.from(he("#0f6cbd"))),T1.setValueFor(e,ee.from(he("#0c3b5e"))),Iy.setValueFor(e,ee.from(he("#0f548c"))),C1.setValueFor(e,ee.from(he("#ffffff"))),k1.setValueFor(e,ee.from(he("#ffffff"))),x1.setValueFor(e,ee.from(he("#ffffff"))),Dy.setValueFor(e,ee.from(he("#ffffff"))),yf.setValueFor(e,"#8e8e8e"),wf.setValueFor(e,"#ffffff")}};case"light":default:return{accentBaseColor:"#0f6cbd",neutralBaseColor:"#616161",baseLayerLuminance:Tr.LightMode,designTokenOverrides:e=>{yf.setValueFor(e,J1),wf.setValueFor(e,Q1)}}}},H4=Cc("person",K1),j4=Cc("login",D4),q4=Cc("search-box",I4),Y1=()=>{const[t,e]=b.useState(!1);return b.useEffect(()=>{const r=()=>{e(Nm())};return U.onProviderUpdated(r),r(),()=>{U.removeProviderUpdatedListener(r)}},[e]),[t]};function U4(t){return Array.isArray(t)?t:[t]}const Ja=typeof window>"u"?global:window,Qa="@griffel/";function W4(t,e){return Ja[Symbol.for(Qa+t)]||(Ja[Symbol.for(Qa+t)]=e),Ja[Symbol.for(Qa+t)]}const Ol=W4("DEFINITION_LOOKUP_TABLE",{}),mn="data-make-styles-bucket",Z4="data-priority",Il="f",Ml=7,Kc="___",G4=Kc.length+Ml,X4=0,K4=1,J4={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},zl="DO_NOT_USE_DIRECTLY: @griffel/reset-value";function Q4(t,e,r,o){const n=[];if(o[mn]=e,o[Z4]=String(r),t)for(const s in o)t.setAttribute(s,o[s]);function i(s){return t!=null&&t.sheet?t.sheet.insertRule(s,t.sheet.cssRules.length):n.push(s)}return{elementAttributes:o,insertRule:i,element:t,bucketName:e,cssRules(){return t!=null&&t.sheet?Array.from(t.sheet.cssRules).map(s=>s.cssText):n}}}const Y4=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],kf=Y4.reduce((t,e,r)=>(t[e]=r,t),{});function ew(t,e,r){return(t==="m"?t+e:t)+r}function tw(t,e,r,o,n={}){var i,s;const a=t==="m",l=(i=n.m)!=null?i:"0",c=(s=n.p)!=null?s:0,u=ew(t,l,c);if(!o.stylesheets[u]){const d=e&&e.createElement("style"),f=Q4(d,t,c,Object.assign({},o.styleElementAttributes,a&&{media:l}));o.stylesheets[u]=f,e&&d&&e.head.insertBefore(d,ow(e,r,t,o,n))}return o.stylesheets[u]}function rw(t,e,r){var o,n;const i=e+((o=r.m)!=null?o:""),s=t.getAttribute(mn)+((n=t.media)!=null?n:"");return i===s}function ow(t,e,r,o,n={}){var i,s;const a=kf[r],l=(i=n.m)!=null?i:"",c=(s=n.p)!=null?s:0;let u=g=>a-kf[g.getAttribute(mn)],d=t.head.querySelectorAll(`[${mn}]`);if(r==="m"){const g=t.head.querySelectorAll(`[${mn}="${r}"]`);g.length&&(d=g,u=v=>o.compareMediaQueries(l,v.media))}const f=g=>rw(g,r,n)?c-Number(g.getAttribute("data-priority")):u(g),p=d.length;let h=p-1;for(;h>=0;){const g=d.item(h);if(f(g)>0)return g.nextSibling;h--}return p>0?d.item(0):e?e.nextSibling:null}function xf(t,e){try{t.insertRule(e)}catch{}}function xo(t){for(var e=0,r,o=0,n=t.length;n>=4;++o,n-=4)r=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(n){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function nw(t){const e=t.length;if(e===Ml)return t;for(let r=e;r0&&(e+=f.slice(0,p)),r+=h,o[d]=h}}}if(r==="")return e.slice(0,-1);const n=Cf[r];if(n!==void 0)return e+n;const i=[];for(let d=0;dte?1:0;function aw(t=typeof document>"u"?void 0:document,e={}){const{unstable_filterCSSRule:r,insertionPoint:o,styleElementAttributes:n,compareMediaQueries:i=sw}=e,s={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(n),compareMediaQueries:i,id:`d${iw++}`,insertCSSRules(a){for(const l in a){const c=a[l];for(let u=0,d=c.length;u{const t={};return function(r,o){t[r.id]===void 0&&(r.insertCSSRules(o),t[r.id]=!0)}};function rp(t){return t.reduce(function(e,r){var o=r[0],n=r[1];return e[o]=n,e[n]=o,e},{})}function lw(t){return typeof t=="boolean"}function cw(t){return typeof t=="function"}function nn(t){return typeof t=="number"}function uw(t){return t===null||typeof t>"u"}function dw(t){return t&&typeof t=="object"}function fw(t){return typeof t=="string"}function Ei(t,e){return t.indexOf(e)!==-1}function hw(t){return parseFloat(t)===0?t:t[0]==="-"?t.slice(1):"-"+t}function wi(t,e,r,o){return e+hw(r)+o}function pw(t){var e=t.indexOf(".");if(e===-1)t=100-parseFloat(t)+"%";else{var r=t.length-e-2;t=100-parseFloat(t),t=t.toFixed(r)+"%"}return t}function op(t){return t.replace(/ +/g," ").split(" ").map(function(e){return e.trim()}).filter(Boolean).reduce(function(e,r){var o=e.list,n=e.state,i=(r.match(/\(/g)||[]).length,s=(r.match(/\)/g)||[]).length;return n.parensDepth>0?o[o.length-1]=o[o.length-1]+" "+r:o.push(r),n.parensDepth+=i-s,{list:o,state:n}},{list:[],state:{parensDepth:0}}).list}function Sf(t){var e=op(t);if(e.length<=3||e.length>4)return t;var r=e[0],o=e[1],n=e[2],i=e[3];return[r,i,n,o].join(" ")}function gw(t){return!lw(t)&&!uw(t)}function vw(t){for(var e=[],r=0,o=0,n=!1;o0?He(zo,--st):0,Co--,me===10&&(Co=1,ta--),me}function pt(){return me=st2||ts(me)>3?"":" "}function Dw(t){for(;pt();)switch(ts(me)){case 0:Er(mp(st-1),t);break;case 2:Er(Ai(me),t);break;default:Er(ea(me),t)}return t}function Ow(t,e){for(;--e&&pt()&&!(me<48||me>102||me>57&&me<65||me>70&&me<97););return oa(t,$i()+(e<6&&Nr()==32&&pt()==32))}function Hl(t){for(;pt();)switch(me){case t:return st;case 34:case 39:t!==34&&t!==39&&Hl(me);break;case 40:t===41&&Hl(t);break;case 92:pt();break}return st}function Iw(t,e){for(;pt()&&t+me!==57;)if(t+me===84&&Nr()===47)break;return"/*"+oa(e,st-1)+"*"+ea(t===47?t:pt())}function mp(t){for(;!ts(Nr());)pt();return oa(t,st)}function bp(t){return vp(Ni("",null,null,null,[""],t=gp(t),0,[0],t))}function Ni(t,e,r,o,n,i,s,a,l){for(var c=0,u=0,d=s,f=0,p=0,h=0,g=1,v=1,w=1,m=0,y="",C=n,x=i,_=o,B=y;v;)switch(h=m,m=pt()){case 40:if(h!=108&&He(B,d-1)==58){fp(B+=Je(Ai(m),"&","&\f"),"&\f",cp(c?a[c-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:B+=Ai(m);break;case 9:case 10:case 13:case 32:B+=Rw(h);break;case 92:B+=Ow($i()-1,7);continue;case 47:switch(Nr()){case 42:case 47:Er(Mw(Iw(pt(),$i()),e,r,l),l);break;default:B+="/"}break;case 123*g:a[c++]=_t(B)*w;case 125*g:case 59:case 0:switch(m){case 0:case 125:v=0;case 59+u:w==-1&&(B=Je(B,/\f/g,"")),p>0&&_t(B)-d&&Er(p>32?Pf(B+";",o,r,d-1,l):Pf(Je(B," ","")+";",o,r,d-2,l),l);break;case 59:B+=";";default:if(Er(_=Bf(B,e,r,c,u,n,a,y,C=[],x=[],d,i),i),m===123)if(u===0)Ni(B,e,_,_,C,i,d,a,x);else switch(f===99&&He(B,3)===110?100:f){case 100:case 108:case 109:case 115:Ni(t,_,_,o&&Er(Bf(t,_,_,0,0,n,a,y,n,C=[],d,x),x),n,x,d,a,o?C:x);break;default:Ni(B,_,_,_,[""],x,0,a,x)}}c=u=p=0,g=w=1,y=B="",d=s;break;case 58:d=1+_t(B),p=h;default:if(g<1){if(m==123)--g;else if(m==125&&g++==0&&Nw()==125)continue}switch(B+=ea(m),m*g){case 38:w=u>0?1:(B+="\f",-1);break;case 44:a[c++]=(_t(B)-1)*w,w=1;break;case 64:Nr()===45&&(B+=Ai(pt())),f=Nr(),u=d=_t(y=B+=mp($i())),m++;break;case 45:h===45&&_t(B)==2&&(g=0)}}return i}function Bf(t,e,r,o,n,i,s,a,l,c,u,d){for(var f=n-1,p=n===0?i:[""],h=hp(p),g=0,v=0,w=0;g0?p[m]+" "+y:Je(y,/&\f/g,p[m])))&&(l[w++]=C);return ra(t,e,r,n===0?Ys:a,l,c,u,d)}function Mw(t,e,r,o){return ra(t,e,r,ap,ea(Aw()),Dn(t,2,-2),0,o)}function Pf(t,e,r,o,n){return ra(t,e,r,Qc,Dn(t,0,o),Dn(t,o+1,-1),o,n)}function So(t,e){for(var r="",o=0;o{switch(t.type){case Ys:if(typeof t.props=="string")return;t.props=t.props.map(e=>e.indexOf(":global(")===-1?e:Lw(e).reduce((r,o,n,i)=>{if(o==="")return r;if(o===":"&&i[n+1]==="global"){const s=i[n+2].slice(1,-1)+" ";return r.unshift(s),i[n+1]="",i[n+2]="",r}return r.push(o),r},[]).join(""))}};function xp(t,e,r){switch(Ew(t,e)){case 5103:return yt+"print-"+t+t;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return yt+t+t;case 4215:if(He(t,9)===102||He(t,e+1)===116)return yt+t+t;break;case 4789:return bn+t+t;case 5349:case 4246:case 6968:return yt+t+bn+t+t;case 6187:if(!dp(t,/grab/))return Je(Je(Je(t,/(zoom-|grab)/,yt+"$1"),/(image-set)/,yt+"$1"),t,"")+t;case 5495:case 3959:return Je(t,/(image-set\([^]*)/,yt+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return Je(t,/(.+)-inline(.+)/,yt+"$1$2")+t;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(_t(t)-1-e>6)switch(He(t,e+1)){case 102:if(He(t,e+3)===108)return Je(t,/(.+:)(.+)-([^]+)/,"$1"+yt+"$2-$3$1"+bn+(He(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~fp(t,"stretch")?xp(Je(t,"stretch","fill-available"),e)+t:t}break}return t}function Cp(t,e,r,o){if(t.length>-1&&!t.return)switch(t.type){case Qc:t.return=xp(t.value,t.length);return;case Ys:if(t.length)return $w(t.props,function(n){switch(dp(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return So([el(t,{props:[Je(n,/:(read-\w+)/,":"+bn+"$1")]})],o);case"::placeholder":return So([el(t,{props:[Je(n,/:(plac\w+)/,":"+yt+"input-$1")]}),el(t,{props:[Je(n,/:(plac\w+)/,":"+bn+"$1")]})],o)}return""})}}function Vw(t){switch(t.type){case"@container":case _w:case Pw:case lp:return!0}return!1}const Hw=t=>{Vw(t)&&Array.isArray(t.children)&&t.children.sort((e,r)=>e.props[0]>r.props[0]?1:-1)};function jw(t,e){const r=[];return So(bp(t),wp([zw,Hw,Cp,yp,kp(o=>r.push(o))])),r}const qw=/,( *[^ &])/g;function Uw(t){return"&"+sp(t.replace(qw,",&$1"))}function Ff(t,e,r){let o=e;return r.length>0&&(o=r.reduceRight((n,i)=>`${Uw(i)} { ${n} }`,e)),`${t}{${o}}`}function Tf(t,e){const{className:r,selectors:o,property:n,rtlClassName:i,rtlProperty:s,rtlValue:a,value:l}=t,{container:c,layer:u,media:d,supports:f}=e,p=`.${r}`,h=Array.isArray(l)?`${l.map(v=>`${lo(n)}: ${v}`).join(";")};`:`${lo(n)}: ${l};`;let g=Ff(p,h,o);if(s&&i){const v=`.${i}`,w=Array.isArray(a)?`${a.map(m=>`${lo(s)}: ${m}`).join(";")};`:`${lo(s)}: ${a};`;g+=Ff(v,w,o)}return d&&(g=`@media ${d} { ${g} }`),u&&(g=`@layer ${u} { ${g} }`),f&&(g=`@supports ${f} { ${g} }`),c&&(g=`@container ${c} { ${g} }`),jw(g)}function Ww(t){let e="";for(const r in t){const o=t[r];if(typeof o=="string"||typeof o=="number"){e+=lo(r)+":"+o+";";continue}if(Array.isArray(o))for(const n of o)e+=lo(r)+":"+n+";"}return e}function Ef(t){let e="";for(const r in t)e+=`${r}{${Ww(t[r])}}`;return e}function $f(t,e){const r=`@keyframes ${t} {${e}}`,o=[];return So(bp(r),wp([yp,Cp,kp(n=>o.push(n))])),o}const Zw={animation:[-1,["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimeline","animationTimingFunction"]],animationRange:[-1,["animationRangeEnd","animationRangeStart"]],background:[-2,["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"]],backgroundPosition:[-1,["backgroundPositionX","backgroundPositionY"]],border:[-2,["borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderTop","borderTopColor","borderTopStyle","borderTopWidth"]],borderBottom:[-1,["borderBottomColor","borderBottomStyle","borderBottomWidth"]],borderImage:[-1,["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"]],borderLeft:[-1,["borderLeftColor","borderLeftStyle","borderLeftWidth"]],borderRadius:[-1,["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"]],borderRight:[-1,["borderRightColor","borderRightStyle","borderRightWidth"]],borderTop:[-1,["borderTopColor","borderTopStyle","borderTopWidth"]],caret:[-1,["caretColor","caretShape"]],columnRule:[-1,["columnRuleColor","columnRuleStyle","columnRuleWidth"]],columns:[-1,["columnCount","columnWidth"]],containIntrinsicSize:[-1,["containIntrinsicHeight","containIntrinsicWidth"]],container:[-1,["containerName","containerType"]],flex:[-1,["flexBasis","flexGrow","flexShrink"]],flexFlow:[-1,["flexDirection","flexWrap"]],font:[-1,["fontFamily","fontSize","fontStretch","fontStyle","fontVariant","fontWeight","lineHeight"]],gap:[-1,["columnGap","rowGap"]],grid:[-1,["columnGap","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumnGap","gridRowGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","rowGap"]],gridArea:[-1,["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"]],gridColumn:[-1,["gridColumnEnd","gridColumnStart"]],gridRow:[-1,["gridRowEnd","gridRowStart"]],gridTemplate:[-1,["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"]],inset:[-1,["bottom","left","right","top"]],insetBlock:[-1,["insetBlockEnd","insetBlockStart"]],insetInline:[-1,["insetInlineEnd","insetInlineStart"]],listStyle:[-1,["listStyleImage","listStylePosition","listStyleType"]],margin:[-1,["marginBottom","marginLeft","marginRight","marginTop"]],marginBlock:[-1,["marginBlockEnd","marginBlockStart"]],marginInline:[-1,["marginInlineEnd","marginInlineStart"]],mask:[-1,["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize"]],maskBorder:[-1,["maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth"]],offset:[-1,["offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate"]],outline:[-1,["outlineColor","outlineStyle","outlineWidth"]],overflow:[-1,["overflowX","overflowY"]],overscrollBehavior:[-1,["overscrollBehaviorX","overscrollBehaviorY"]],padding:[-1,["paddingBottom","paddingLeft","paddingRight","paddingTop"]],paddingBlock:[-1,["paddingBlockEnd","paddingBlockStart"]],paddingInline:[-1,["paddingInlineEnd","paddingInlineStart"]],placeContent:[-1,["alignContent","justifyContent"]],placeItems:[-1,["alignItems","justifyItems"]],placeSelf:[-1,["alignSelf","justifySelf"]],scrollMargin:[-1,["scrollMarginBottom","scrollMarginLeft","scrollMarginRight","scrollMarginTop"]],scrollMarginBlock:[-1,["scrollMarginBlockEnd","scrollMarginBlockStart"]],scrollMarginInline:[-1,["scrollMarginInlineEnd","scrollMarginInlineStart"]],scrollPadding:[-1,["scrollPaddingBottom","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop"]],scrollPaddingBlock:[-1,["scrollPaddingBlockEnd","scrollPaddingBlockStart"]],scrollPaddingInline:[-1,["scrollPaddingInlineEnd","scrollPaddingInlineStart"]],scrollTimeline:[-1,["scrollTimelineAxis","scrollTimelineName"]],textDecoration:[-1,["textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness"]],textEmphasis:[-1,["textEmphasisColor","textEmphasisStyle"]],transition:[-1,["transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"]],viewTimeline:[-1,["viewTimelineAxis","viewTimelineName"]]};function Af(t,e){return t.length===0?e:`${t} and ${e}`}function Gw(t){return t.substr(0,6)==="@media"}function Xw(t){return t.substr(0,6)==="@layer"}const Kw=/^(:|\[|>|&)/;function Jw(t){return Kw.test(t)}function Qw(t){return t.substr(0,9)==="@supports"}function Yw(t){return t.substring(0,10)==="@container"}function e6(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}const Nf={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function Lf(t,e){if(e.media)return"m";if(e.layer||e.supports)return"t";if(e.container)return"c";if(t.length>0){const r=t[0].trim();if(r.charCodeAt(0)===58)return Nf[r.slice(4,8)]||Nf[r.slice(3,5)]||"d"}return"d"}function ki(t,e){return t&&e+t}function Sp(t){return ki(t.container,"c")+ki(t.media,"m")+ki(t.layer,"l")+ki(t.supports,"s")}function tl(t,e,r){const o=t+Sp(r)+e,n=xo(o),i=n.charCodeAt(0);return i>=48&&i<=57?String.fromCharCode(i+17)+n.slice(1):n}function xi({property:t,selector:e,salt:r,value:o},n){return Il+xo(r+e+Sp(n)+t+o.trim())}function t6(t){return t===zl}function rl(t){return t.replace(/>\s+/g,">")}function r6(t,e){const r=JSON.stringify(e,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${t}": ${r.split(` +`).map((o,n)=>" ".repeat(n===0?0:6)+o).join(` +`)}`," ".repeat(4)+""," ".repeat(2)+"",t.indexOf("&")}function Rf(t){return Zw[t]}function Df(t){var e;return(e=t==null?void 0:t[0])!=null?e:0}function ol(t,e,r,o){t[e]=o?[r,o]:r}function Of(t,e){return e.length>0?[t,Object.fromEntries(e)]:t}function nl(t,e,r,o,n,i){var s;const a=[];i!==0&&a.push(["p",i]),e==="m"&&n&&a.push(["m",n]),(s=t[e])!=null||(t[e]=[]),r&&t[e].push(Of(r,a)),o&&t[e].push(Of(o,a))}function Lt(t,e="",r=[],o={container:"",layer:"",media:"",supports:""},n={},i={},s){for(const a in t){if(J4.hasOwnProperty(a)){t[a];continue}const l=t[a];if(l!=null){if(t6(l)){const c=rl(r.join("")),u=tl(c,a,o);ol(n,u,0,void 0);continue}if(typeof l=="string"||typeof l=="number"){const c=rl(r.join("")),u=Rf(a);if(u){const C=u[1],x=Object.fromEntries(C.map(_=>[_,zl]));Lt(x,e,r,o,n,i)}const d=tl(c,a,o),f=xi({value:l.toString(),salt:e,selector:c,property:a},o),p=s&&{key:a,value:s}||Vl(a,l),h=p.key!==a||p.value!==l,g=h?xi({value:p.value.toString(),property:p.key,salt:e,selector:c},o):void 0,v=h?{rtlClassName:g,rtlProperty:p.key,rtlValue:p.value}:void 0,w=Lf(r,o),[m,y]=Tf(Object.assign({className:f,selectors:r,property:a,value:l},v),o);ol(n,d,f,g),nl(i,w,m,y,o.media,Df(u))}else if(a==="animationName"){const c=Array.isArray(l)?l:[l],u=[],d=[];for(const f of c){const p=Ef(f),h=Ef(ip(f)),g=Il+xo(p);let v;const w=$f(g,p);let m=[];p===h?v=g:(v=Il+xo(h),m=$f(v,h));for(let y=0;y[B,zl]));Lt(_,e,r,o,n,i)}const d=tl(c,a,o),f=xi({value:l.map(x=>(x??"").toString()).join(";"),salt:e,selector:c,property:a},o),p=l.map(x=>Vl(a,x));if(!!p.some(x=>x.key!==p[0].key))continue;const g=p[0].key!==a||p.some((x,_)=>x.value!==l[_]),v=g?xi({value:p.map(x=>{var _;return((_=x==null?void 0:x.value)!=null?_:"").toString()}).join(";"),salt:e,property:p[0].key,selector:c},o):void 0,w=g?{rtlClassName:v,rtlProperty:p[0].key,rtlValue:p.map(x=>x.value)}:void 0,m=Lf(r,o),[y,C]=Tf(Object.assign({className:f,selectors:r,property:a,value:l},w),o);ol(n,d,f,v),nl(i,m,y,C,o.media,Df(u))}else if(e6(l))if(Jw(a))Lt(l,e,r.concat(sp(a)),o,n,i);else if(Gw(a)){const c=Af(o.media,a.slice(6).trim());Lt(l,e,r,Object.assign({},o,{media:c}),n,i)}else if(Xw(a)){const c=(o.layer?`${o.layer}.`:"")+a.slice(6).trim();Lt(l,e,r,Object.assign({},o,{layer:c}),n,i)}else if(Qw(a)){const c=Af(o.supports,a.slice(9).trim());Lt(l,e,r,Object.assign({},o,{supports:c}),n,i)}else if(Yw(a)){const c=a.slice(10).trim();Lt(l,e,r,Object.assign({},o,{container:c}),n,i)}else r6(a,l)}}return[n,i]}function o6(t,e=""){const r={},o={};for(const n in t){const i=t[n],[s,a]=Lt(i,e);r[n]=s,Object.keys(a).forEach(l=>{o[l]=(o[l]||[]).concat(a[l])})}return[r,o]}function n6(t,e=Jc){const r=e();let o=null,n=null,i=null,s=null;function a(l){const{dir:c,renderer:u}=l;o===null&&([o,n]=o6(t));const d=c==="ltr";return d?i===null&&(i=es(o,c)):s===null&&(s=es(o,c)),r(u,n),d?i:s}return a}function _p(t,e,r=Jc){const o=r();let n=null,i=null;function s(a){const{dir:l,renderer:c}=a,u=l==="ltr";return u?n===null&&(n=es(t,l)):i===null&&(i=es(t,l)),o(c,e),u?n:i}return s}function i6(t,e,r,o=Jc){const n=o();function i(s){const{dir:a,renderer:l}=s,c=a==="ltr"?t:e||t;return n(l,Array.isArray(r)?{r}:r),c}return i}const s6=["Top","Right","Bottom","Left"];function ti(t,e,...r){const[o,n=o,i=o,s=n]=r,a=[o,n,i,s],l={};for(let c=0;ctypeof t=="string"&&/(\d+(\w+|%))/.test(t),Ci=t=>typeof t=="number"&&!Number.isNaN(t),g6=t=>t==="initial",If=t=>t==="auto",v6=t=>t==="none",m6=["content","fit-content","max-content","min-content"],il=t=>m6.some(e=>t===e)||p6(t);function b6(...t){const e=t.length===1,r=t.length===2,o=t.length===3;if(e){const[n]=t;if(g6(n))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(If(n))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(v6(n))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(Ci(n))return{flexGrow:n,flexShrink:1,flexBasis:0};if(il(n))return{flexGrow:1,flexShrink:1,flexBasis:n}}if(r){const[n,i]=t;if(Ci(i))return{flexGrow:n,flexShrink:i,flexBasis:0};if(il(i))return{flexGrow:n,flexShrink:1,flexBasis:i}}if(o){const[n,i,s]=t;if(Ci(n)&&Ci(i)&&(If(s)||il(s)))return{flexGrow:n,flexShrink:i,flexBasis:s}}return{}}function y6(t,e=t){return{columnGap:t,rowGap:e}}const w6=/var\(.*\)/gi;function k6(t){return t===void 0||typeof t=="number"||typeof t=="string"&&!w6.test(t)}const x6=/^[a-zA-Z0-9\-_\\#;]+$/,C6=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function sl(t){return t!==void 0&&typeof t=="string"&&x6.test(t)&&!C6.test(t)}function S6(...t){if(t.some(i=>!k6(i)))return{};const e=t[0]!==void 0?t[0]:"auto",r=t[1]!==void 0?t[1]:sl(e)?e:"auto",o=t[2]!==void 0?t[2]:sl(e)?e:"auto",n=t[3]!==void 0?t[3]:sl(r)?r:"auto";return{gridRowStart:e,gridColumnStart:r,gridRowEnd:o,gridColumnEnd:n}}function _6(...t){return ti("margin","",...t)}function B6(t,e=t){return{marginBlockStart:t,marginBlockEnd:e}}function P6(t,e=t){return{marginInlineStart:t,marginInlineEnd:e}}function F6(...t){return ti("padding","",...t)}function T6(t,e=t){return{paddingBlockStart:t,paddingBlockEnd:e}}function E6(t,e=t){return{paddingInlineStart:t,paddingInlineEnd:e}}function $6(t,e=t){return{overflowX:t,overflowY:e}}function A6(...t){const[e,r=e,o=e,n=r]=t;return{top:e,right:r,bottom:o,left:n}}function N6(t,e,r){return Object.assign({outlineWidth:t},e&&{outlineStyle:e},r&&{outlineColor:r})}function L6(...t){return D6(t)?{transitionDelay:t[0],transitionDuration:t[0],transitionProperty:t[0],transitionTimingFunction:t[0]}:O6(t).reduce((r,[o,n="0s",i="0s",s="ease"],a)=>(a===0?(r.transitionProperty=o,r.transitionDuration=n,r.transitionDelay=i,r.transitionTimingFunction=s):(r.transitionProperty+=`, ${o}`,r.transitionDuration+=`, ${n}`,r.transitionDelay+=`, ${i}`,r.transitionTimingFunction+=`, ${s}`),r),{})}const R6=["-moz-initial","inherit","initial","revert","unset"];function D6(t){return t.length===1&&R6.includes(t[0])}function O6(t){return t.length===1&&Array.isArray(t[0])?t[0]:[t]}function I6(t,...e){if(e.length===0)return z6(t)?{textDecorationStyle:t}:{textDecorationLine:t};const[r,o,n]=e;return Object.assign({textDecorationLine:t},r&&{textDecorationStyle:r},o&&{textDecorationColor:o},n&&{textDecorationThickness:n})}const M6=["dashed","dotted","double","solid","wavy"];function z6(t){return M6.includes(t)}const co={border:l6,borderLeft:c6,borderBottom:u6,borderRight:d6,borderTop:f6,borderColor:Ul,borderStyle:ql,borderRadius:h6,borderWidth:jl,flex:b6,gap:y6,gridArea:S6,margin:_6,marginBlock:B6,marginInline:P6,padding:F6,paddingBlock:T6,paddingInline:E6,overflow:$6,inset:A6,outline:N6,transition:L6,textDecoration:I6};function V6(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const Mf=Rr.useInsertionEffect?Rr.useInsertionEffect:void 0,Yc=()=>{const t={};return function(r,o){if(Mf&&V6()){Mf(()=>{r.insertCSSRules(o)},[r,o]);return}t[r.id]===void 0&&(r.insertCSSRules(o),t[r.id]=!0)}},H6=b.createContext(aw());function oi(){return b.useContext(H6)}const Bp=b.createContext("ltr"),j6=({children:t,dir:e})=>b.createElement(Bp.Provider,{value:e},t);function eu(){return b.useContext(Bp)}function na(t){const e=n6(t,Yc);return function(){const o=eu(),n=oi();return e({dir:o,renderer:n})}}function oe(t,e){const r=_p(t,e,Yc);return function(){const n=eu(),i=oi();return r({dir:n,renderer:i})}}function eo(t,e,r){const o=i6(t,e,r,Yc);return function(){const i=eu(),s=oi();return o({dir:i,renderer:s})}}function q6(t,e){if(e){const r=Object.keys(e).reduce((o,n)=>`${o}--${n}: ${e[n]}; `,"");return`${t} { ${r} }`}return`${t} {}`}const Pp=Symbol.for("fui.slotRenderFunction"),ia=Symbol.for("fui.slotElementType");function Re(t,e){const{defaultProps:r,elementType:o}=e,n=U6(t),i={...r,...n,[ia]:o};return n&&typeof n.children=="function"&&(i[Pp]=n.children,i.children=r==null?void 0:r.children),i}function ht(t,e){if(!(t===null||t===void 0&&!e.renderByDefault))return Re(t,e)}function U6(t){return typeof t=="string"||typeof t=="number"||Array.isArray(t)||b.isValidElement(t)?{children:t}:t}function zf(t){return!!(t!=null&&t.hasOwnProperty(ia))}const ue=(...t)=>{const e={};for(const r of t){const o=Array.isArray(r)?r:Object.keys(r);for(const n of o)e[n]=1}return e},W6=ue(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),Z6=ue(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),G6=ue(["itemID","itemProp","itemRef","itemScope","itemType"]),Be=ue(Z6,W6,G6),X6=ue(Be,["form"]),Fp=ue(Be,["height","loop","muted","preload","src","width"]),K6=ue(Fp,["poster"]),J6=ue(Be,["start"]),Q6=ue(Be,["value"]),Y6=ue(Be,["download","href","hrefLang","media","rel","target","type"]),e7=ue(Be,["dateTime"]),sa=ue(Be,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),t7=ue(sa,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),r7=ue(sa,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),o7=ue(sa,["form","multiple","required"]),n7=ue(Be,["selected","value"]),i7=ue(Be,["cellPadding","cellSpacing"]),s7=Be,a7=ue(Be,["colSpan","rowSpan","scope"]),l7=ue(Be,["colSpan","headers","rowSpan","scope"]),c7=ue(Be,["span"]),u7=ue(Be,["span"]),d7=ue(Be,["disabled","form"]),f7=ue(Be,["acceptCharset","action","encType","encType","method","noValidate","target"]),h7=ue(Be,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),p7=ue(Be,["alt","crossOrigin","height","src","srcSet","useMap","width"]),g7=ue(Be,["open","onCancel","onClose"]);function v7(t,e,r){const o=Array.isArray(e),n={},i=Object.keys(t);for(const s of i)(!o&&e[s]||o&&e.indexOf(s)>=0||s.indexOf("data-")===0||s.indexOf("aria-")===0)&&(!r||(r==null?void 0:r.indexOf(s))===-1)&&(n[s]=t[s]);return n}const m7={label:X6,audio:Fp,video:K6,ol:J6,li:Q6,a:Y6,button:sa,input:t7,textarea:r7,select:o7,option:n7,table:i7,tr:s7,th:a7,td:l7,colGroup:c7,col:u7,fieldset:d7,form:f7,iframe:h7,img:p7,time:e7,dialog:g7};function Tp(t,e,r){const o=t&&m7[t]||Be;return o.as=1,v7(e,o,r)}const TF=({primarySlotTagName:t,props:e,excludedPropNames:r})=>({root:{style:e.style,className:e.className},primary:Tp(t,e,[...r||[],"style","className"])}),At=(t,e,r)=>{var o;return Tp((o=e.as)!==null&&o!==void 0?o:t,e,r)};function b7(t,e){const r=b.useRef(void 0),o=b.useCallback((i,s)=>(r.current!==void 0&&e(r.current),r.current=t(i,s),r.current),[e,t]),n=b.useCallback(()=>{r.current!==void 0&&(e(r.current),r.current=void 0)},[e]);return b.useEffect(()=>n,[n]),[o,n]}const Ep=b.createContext(void 0),y7=Ep.Provider,$p=b.createContext(void 0),w7="",k7=$p.Provider;function x7(){var t;return(t=b.useContext($p))!==null&&t!==void 0?t:w7}const C7=b.createContext(void 0),S7=C7.Provider,Ap=b.createContext(void 0),_7={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},B7=Ap.Provider;function bt(){var t;return(t=b.useContext(Ap))!==null&&t!==void 0?t:_7}const Np=b.createContext(void 0),P7=Np.Provider;function F7(){var t;return(t=b.useContext(Np))!==null&&t!==void 0?t:{}}const tu=b.createContext(void 0),T7=()=>{},E7=tu.Provider,gr=t=>{var e,r;return(r=(e=b.useContext(tu))===null||e===void 0?void 0:e[t])!==null&&r!==void 0?r:T7},Lp=b.createContext(void 0);Lp.Provider;function $7(){return b.useContext(Lp)}function A7(t){return typeof t=="function"}const Vo=t=>{const[e,r]=b.useState(()=>t.defaultState===void 0?t.initialState:N7(t.defaultState)?t.defaultState():t.defaultState),o=b.useRef(t.state);b.useEffect(()=>{o.current=t.state},[t.state]);const n=b.useCallback(i=>{A7(i)&&i(o.current)},[]);return L7(t.state)?[t.state,n]:[e,r]};function N7(t){return typeof t=="function"}const L7=t=>{const[e]=b.useState(()=>t!==void 0);return e};function Rp(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const R7={current:0},D7=b.createContext(void 0);function O7(){var t;return(t=b.useContext(D7))!==null&&t!==void 0?t:R7}const ru=Rp()?b.useLayoutEffect:b.useEffect,q=t=>{const e=b.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return ru(()=>{e.current=t},[t]),b.useCallback((...r)=>{const o=e.current;return o(...r)},[e])},Dp=b.createContext(void 0);Dp.Provider;function I7(){return b.useContext(Dp)||""}function aa(t="fui-",e){const r=O7(),o=I7(),n=Rr.useId;if(n){const i=n(),s=b.useMemo(()=>i.replace(/:/g,""),[i]);return e||`${o}${t}${s}`}return b.useMemo(()=>e||`${o}${t}${++r.current}`,[o,t,e,r])}function Ct(...t){const e=b.useCallback(r=>{e.current=r;for(const o of t)typeof o=="function"?o(r):o&&(o.current=r)},[...t]);return e}const Op=(t,e)=>!!(t!=null&&t.contains(e)),Ip=t=>{const{targetDocument:e}=bt(),r=e==null?void 0:e.defaultView,{refs:o,callback:n,element:i,disabled:s,disabledFocusOnIframe:a,contains:l=Op}=t,c=b.useRef(void 0);z7({element:i,disabled:a||s,callback:n,refs:o,contains:l});const u=b.useRef(!1),d=q(p=>{if(u.current){u.current=!1;return}const h=p.composedPath()[0];o.every(v=>!l(v.current||null,h))&&!s&&n(p)}),f=q(p=>{u.current=o.some(h=>l(h.current||null,p.target))});b.useEffect(()=>{if(s)return;let p=M7(r);const h=g=>{if(g===p){p=void 0;return}d(g)};return i==null||i.addEventListener("click",h,!0),i==null||i.addEventListener("touchstart",h,!0),i==null||i.addEventListener("contextmenu",h,!0),i==null||i.addEventListener("mousedown",f,!0),c.current=r==null?void 0:r.setTimeout(()=>{p=void 0},1),()=>{i==null||i.removeEventListener("click",h,!0),i==null||i.removeEventListener("touchstart",h,!0),i==null||i.removeEventListener("contextmenu",h,!0),i==null||i.removeEventListener("mousedown",f,!0),r==null||r.clearTimeout(c.current),p=void 0}},[d,i,s,f,r])},M7=t=>{if(t){var e,r;if(typeof t.window=="object"&&t.window===t)return t.event;var o;return(o=(r=t.ownerDocument)===null||r===void 0||(e=r.defaultView)===null||e===void 0?void 0:e.event)!==null&&o!==void 0?o:void 0}},al="fuiframefocus",z7=t=>{const{disabled:e,element:r,callback:o,contains:n=Op,pollDuration:i=1e3,refs:s}=t,a=b.useRef(),l=q(c=>{s.every(d=>!n(d.current||null,c.target))&&!e&&o(c)});b.useEffect(()=>{if(!e)return r==null||r.addEventListener(al,l,!0),()=>{r==null||r.removeEventListener(al,l,!0)}},[r,e,l]),b.useEffect(()=>{var c;if(!e)return a.current=r==null||(c=r.defaultView)===null||c===void 0?void 0:c.setInterval(()=>{const u=r==null?void 0:r.activeElement;if((u==null?void 0:u.tagName)==="IFRAME"||(u==null?void 0:u.tagName)==="WEBVIEW"){const d=new CustomEvent(al,{bubbles:!0});u.dispatchEvent(d)}},i),()=>{var u;r==null||(u=r.defaultView)===null||u===void 0||u.clearTimeout(a.current)}},[r,e,i])},Mp=t=>{const{refs:e,callback:r,element:o,disabled:n,contains:i}=t,s=q(a=>{const l=i||((d,f)=>!!(d!=null&&d.contains(f))),c=a.composedPath()[0];e.every(d=>!l(d.current||null,c))&&!n&&r(a)});b.useEffect(()=>{if(!n)return o==null||o.addEventListener("wheel",s),o==null||o.addEventListener("touchmove",s),()=>{o==null||o.removeEventListener("wheel",s),o==null||o.removeEventListener("touchmove",s)}},[s,o,n])},V7=t=>-1,H7=t=>{};function ou(){const{targetDocument:t}=bt(),e=t==null?void 0:t.defaultView,r=e?e.setTimeout:V7,o=e?e.clearTimeout:H7;return b7(r,o)}function Le(t,e){return(...r)=>{t==null||t(...r),e==null||e(...r)}}function On(t,e){var r;const o=t;var n;return!!(!(o==null||(r=o.ownerDocument)===null||r===void 0)&&r.defaultView&&o instanceof o.ownerDocument.defaultView[(n=void 0)!==null&&n!==void 0?n:"HTMLElement"])}function zp(t){return!!t.type.isFluentTriggerComponent}function Vp(t,e){return typeof t=="function"?t(e):t?Hp(t,e):t||null}function Hp(t,e){if(!b.isValidElement(t)||t.type===b.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(zp(t)){const r=Hp(t.props.children,e);return b.cloneElement(t,void 0,r)}else return b.cloneElement(t,e)}function nu(t){return b.isValidElement(t)?zp(t)?nu(t.props.children):t:null}function j7(t){return t&&!!t._virtual}function q7(t){return j7(t)&&t._virtual.parent||null}function jp(t,e={}){if(!t)return null;if(!e.skipVirtual){const o=q7(t);if(o)return o}const r=t.parentNode;return r&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r.host:r}function _o(t,e){if(!t||!e)return!1;if(t===e)return!0;{const r=new WeakSet;for(;e;){const o=jp(e,{skipVirtual:r.has(e)});if(r.add(e),o===t)return!0;e=o}}return!1}function Vf(t,e){if(!t)return;const r=t;r._virtual||(r._virtual={}),r._virtual.parent=e}function U7(t,e){return{...e,[ia]:t}}function qp(t,e){return function(o,n,i,s,a){return zf(n)?e(U7(o,n),null,i,s,a):zf(o)?e(o,n,i,s,a):t(o,n,i,s,a)}}function Up(t){const{as:e,[ia]:r,[Pp]:o,...n}=t,i=n,s=typeof r=="string"?e??r:r;return typeof s!="string"&&e&&(i.as=e),{elementType:s,props:i,renderFunction:o}}const Lr=xv,W7=(t,e,r)=>{const{elementType:o,renderFunction:n,props:i}=Up(t),s={...i,...e};return n?Lr.jsx(b.Fragment,{children:n(o,s)},r):Lr.jsx(o,s,r)},Z7=(t,e,r)=>{const{elementType:o,renderFunction:n,props:i}=Up(t),s={...i,...e};return n?Lr.jsx(b.Fragment,{children:n(o,{...s,children:Lr.jsxs(b.Fragment,{children:s.children},void 0)})},r):Lr.jsxs(o,s,r)},W=qp(Lr.jsx,W7),vr=qp(Lr.jsxs,Z7),Wl=b.createContext(void 0),G7={},X7=Wl.Provider,K7=()=>b.useContext(Wl)?b.useContext(Wl):G7,J7=(t,e)=>W(B7,{value:e.provider,children:W(y7,{value:e.theme,children:W(k7,{value:e.themeClassName,children:W(E7,{value:e.customStyleHooks_unstable,children:W(S7,{value:e.tooltip,children:W(j6,{dir:e.textDirection,children:W(X7,{value:e.iconDirection,children:W(P7,{value:e.overrides_unstable,children:vr(t.root,{children:[Rp()?null:W("style",{dangerouslySetInnerHTML:{__html:t.serverStyleProps.cssRule},...t.serverStyleProps.attributes}),t.root.children]})})})})})})})})});var Q7=typeof WeakRef<"u",Hf=class{constructor(t){Q7&&typeof t=="object"?this._weakRef=new WeakRef(t):this._instance=t}deref(){var t,e;let r;return this._weakRef?(r=(t=this._weakRef)==null?void 0:t.deref(),r||delete this._weakRef):(r=this._instance,(e=r==null?void 0:r.isDisposed)!=null&&e.call(r)&&delete this._instance),r}},Ht="keyborg:focusin",In="keyborg:focusout";function Y7(t){const e=t.HTMLElement,r=e.prototype.focus;let o=!1;return e.prototype.focus=function(){o=!0},t.document.createElement("button").focus(),e.prototype.focus=r,o}var ll=!1;function Tt(t){const e=t.focus;e.__keyborgNativeFocus?e.__keyborgNativeFocus.call(t):t.focus()}function e9(t){const e=t;ll||(ll=Y7(e));const r=e.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;e.HTMLElement.prototype.focus=l;const o=new Set,n=u=>{const d=u.target;if(!d)return;const f=new CustomEvent(In,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:u}});d.dispatchEvent(f)},i=u=>{const d=u.target;if(!d)return;let f=u.composedPath()[0];const p=new Set;for(;f;)f.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(p.add(f),f=f.host):f=f.parentNode;for(const h of o){const g=h.deref();(!g||!p.has(g))&&(o.delete(h),g&&(g.removeEventListener("focusin",i,!0),g.removeEventListener("focusout",n,!0)))}s(d,u.relatedTarget||void 0)},s=(u,d,f)=>{var p;const h=u.shadowRoot;if(h){for(const w of o)if(w.deref()===h)return;h.addEventListener("focusin",i,!0),h.addEventListener("focusout",n,!0),o.add(new Hf(h));return}const g={relatedTarget:d,originalEvent:f},v=new CustomEvent(Ht,{cancelable:!0,bubbles:!0,composed:!0,detail:g});v.details=g,(ll||a.lastFocusedProgrammatically)&&(g.isFocusedProgrammatically=u===((p=a.lastFocusedProgrammatically)==null?void 0:p.deref()),a.lastFocusedProgrammatically=void 0),u.dispatchEvent(v)},a=e.__keyborgData={focusInHandler:i,focusOutHandler:n,shadowTargets:o};e.document.addEventListener("focusin",e.__keyborgData.focusInHandler,!0),e.document.addEventListener("focusout",e.__keyborgData.focusOutHandler,!0);function l(){const u=e.__keyborgData;return u&&(u.lastFocusedProgrammatically=new Hf(this)),r.apply(this,arguments)}let c=e.document.activeElement;for(;c&&c.shadowRoot;)s(c),c=c.shadowRoot.activeElement;l.__keyborgNativeFocus=r}function t9(t){const e=t,r=e.HTMLElement.prototype,o=r.focus.__keyborgNativeFocus,n=e.__keyborgData;if(n){e.document.removeEventListener("focusin",n.focusInHandler,!0),e.document.removeEventListener("focusout",n.focusOutHandler,!0);for(const i of n.shadowTargets){const s=i.deref();s&&(s.removeEventListener("focusin",n.focusInHandler,!0),s.removeEventListener("focusout",n.focusOutHandler,!0))}n.shadowTargets.clear(),delete e.__keyborgData}o&&(r.focus=o)}var r9=500,Wp=0,o9=class{constructor(t,e){this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=o=>{if(this._isMouseOrTouchUsedTimer||this.isNavigatingWithKeyboard)return;const n=o.detail;n.relatedTarget&&(n.isFocusedProgrammatically||n.isFocusedProgrammatically===void 0||(this.isNavigatingWithKeyboard=!0))},this._onMouseDown=o=>{o.buttons===0||o.clientX===0&&o.clientY===0&&o.screenX===0&&o.screenY===0||this._onMouseOrTouch()},this._onMouseOrTouch=()=>{const o=this._win;o&&(this._isMouseOrTouchUsedTimer&&o.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=o.setTimeout(()=>{delete this._isMouseOrTouchUsedTimer},1e3)),this.isNavigatingWithKeyboard=!1},this._onKeyDown=o=>{this.isNavigatingWithKeyboard?this._shouldDismissKeyboardNavigation(o)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(o)&&(this.isNavigatingWithKeyboard=!0)},this.id="c"+ ++Wp,this._win=t;const r=t.document;if(e){const o=e.triggerKeys,n=e.dismissKeys;o!=null&&o.length&&(this._triggerKeys=new Set(o)),n!=null&&n.length&&(this._dismissKeys=new Set(n))}r.addEventListener(Ht,this._onFocusIn,!0),r.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("keydown",this._onKeyDown,!0),r.addEventListener("touchstart",this._onMouseOrTouch,!0),r.addEventListener("touchend",this._onMouseOrTouch,!0),r.addEventListener("touchcancel",this._onMouseOrTouch,!0),e9(t)}get isNavigatingWithKeyboard(){return this._isNavigatingWithKeyboard_DO_NOT_USE}set isNavigatingWithKeyboard(t){this._isNavigatingWithKeyboard_DO_NOT_USE!==t&&(this._isNavigatingWithKeyboard_DO_NOT_USE=t,this.update())}dispose(){const t=this._win;if(t){this._isMouseOrTouchUsedTimer&&(t.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=void 0),this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),t9(t);const e=t.document;e.removeEventListener(Ht,this._onFocusIn,!0),e.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),e.removeEventListener("touchstart",this._onMouseOrTouch,!0),e.removeEventListener("touchend",this._onMouseOrTouch,!0),e.removeEventListener("touchcancel",this._onMouseOrTouch,!0),delete this._win}}isDisposed(){return!!this._win}update(){var t,e;const r=(e=(t=this._win)==null?void 0:t.__keyborg)==null?void 0:e.refs;if(r)for(const o of Object.keys(r))iu.update(r[o],this.isNavigatingWithKeyboard)}_shouldTriggerKeyboardNavigation(t){var e;if(t.key==="Tab")return!0;const r=(e=this._win)==null?void 0:e.document.activeElement,o=!this._triggerKeys||this._triggerKeys.has(t.keyCode),n=r&&(r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.isContentEditable);return o&&!n}_shouldDismissKeyboardNavigation(t){var e;return(e=this._dismissKeys)==null?void 0:e.has(t.keyCode)}_scheduleDismiss(){const t=this._win;if(t){this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const e=t.document.activeElement;this._dismissTimer=t.setTimeout(()=>{this._dismissTimer=void 0;const r=t.document.activeElement;e&&r&&e===r&&(this.isNavigatingWithKeyboard=!1)},r9)}}},iu=class Zp{constructor(e,r){this._cb=[],this._id="k"+ ++Wp,this._win=e;const o=e.__keyborg;o?(this._core=o.core,o.refs[this._id]=this):(this._core=new o9(e,r),e.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(e,r){return new Zp(e,r)}static dispose(e){e.dispose()}static update(e,r){e._cb.forEach(o=>o(r))}dispose(){var e;const r=(e=this._win)==null?void 0:e.__keyborg;r!=null&&r.refs[this._id]&&(delete r.refs[this._id],Object.keys(r.refs).length===0&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){var e;return!!((e=this._core)!=null&&e.isNavigatingWithKeyboard)}subscribe(e){this._cb.push(e)}unsubscribe(e){const r=this._cb.indexOf(e);r>=0&&this._cb.splice(r,1)}setVal(e){this._core&&(this._core.isNavigatingWithKeyboard=e)}};function Gp(t,e){return iu.create(t,e)}function Xp(t){iu.dispose(t)}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + *//*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const zt="data-tabster",Kp="data-tabster-dummy",su=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", "),Ft={EscapeGroupper:1,Restorer:2,Deloser:3},n9={Any:0,Accessible:1,Focusable:2},i9={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},s9={Auto:0,Manual:1},Rt={Invisible:0,PartiallyVisible:1,Visible:2},Mn={Source:0,Target:1},Cr={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},ye={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},Jp={Unlimited:0,Limited:1,LimitedTrapFocus:2},Zl={Enter:1,Escape:2},Qp={Auto:0,Inside:1,Outside:2};var Bt=Object.freeze({__proto__:null,TabsterAttributeName:zt,TabsterDummyInputAttributeName:Kp,FocusableSelector:su,AsyncFocusSources:Ft,ObservedElementAccesibilities:n9,RestoreFocusOrders:i9,DeloserStrategies:s9,Visibilities:Rt,RestorerTypes:Mn,MoverDirections:Cr,MoverKeys:ye,GroupperTabbabilities:Jp,GroupperMoveFocusActions:Zl,SysDummyInputsPositions:Qp});/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function We(t,e){var r;return(r=t.storageEntry(e))===null||r===void 0?void 0:r.tabster}function Yp(t,e,r){var o,n;const i=r||t._noop?void 0:e.getAttribute(zt);let s=t.storageEntry(e),a;if(i)if(i!==((o=s==null?void 0:s.attr)===null||o===void 0?void 0:o.string))try{const d=JSON.parse(i);if(typeof d!="object")throw new Error(`Value is not a JSON object, got '${i}'.`);a={string:i,object:d}}catch{}else return;else if(!s)return;s||(s=t.storageEntry(e,!0)),s.tabster||(s.tabster={});const l=s.tabster||{},c=((n=s.attr)===null||n===void 0?void 0:n.object)||{},u=(a==null?void 0:a.object)||{};for(const d of Object.keys(c))if(!u[d]){if(d==="root"){const f=l[d];f&&t.root.onRoot(f,!0)}switch(d){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const f=l[d];f&&(f.dispose(),delete l[d]);break;case"observed":delete l[d],t.observedElement&&t.observedElement.onObservedElementUpdate(e);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete l[d];break}}for(const d of Object.keys(u)){const f=u.sys;switch(d){case"deloser":l.deloser?l.deloser.setProps(u.deloser):t.deloser&&(l.deloser=t.deloser.createDeloser(e,u.deloser));break;case"root":l.root?l.root.setProps(u.root):l.root=t.root.createRoot(e,u.root,f),t.root.onRoot(l.root);break;case"modalizer":l.modalizer?l.modalizer.setProps(u.modalizer):t.modalizer&&(l.modalizer=t.modalizer.createModalizer(e,u.modalizer,f));break;case"restorer":l.restorer?l.restorer.setProps(u.restorer):t.restorer&&u.restorer&&(l.restorer=t.restorer.createRestorer(e,u.restorer));break;case"focusable":l.focusable=u.focusable;break;case"groupper":l.groupper?l.groupper.setProps(u.groupper):t.groupper&&(l.groupper=t.groupper.createGroupper(e,u.groupper,f));break;case"mover":l.mover?l.mover.setProps(u.mover):t.mover&&(l.mover=t.mover.createMover(e,u.mover,f));break;case"observed":t.observedElement&&(l.observed=u.observed,t.observedElement.onObservedElementUpdate(e));break;case"uncontrolled":l.uncontrolled=u.uncontrolled;break;case"outline":t.outline&&(l.outline=u.outline);break;case"sys":l.sys=u.sys;break;default:console.error(`Unknown key '${d}' in data-tabster attribute value.`)}}a?s.attr=a:(Object.keys(l).length===0&&(delete s.tabster,delete s.attr),t.storageEntry(e,!1))}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const eg="tabster:focusin",tg="tabster:focusout",rg="tabster:movefocus",og="tabster:deloser:focus-lost",ng="tabster:deloser:restore-focus",ig="tabster:modalizer:active",sg="tabster:modalizer:inactive",a9="tabster:modalizer:focusin",l9="tabster:modalizer:focusout",ag="tabster:mover:state",rs="tabster:mover:movefocus",os="tabster:mover:memorized-element",ns="tabster:groupper:movefocus",is="tabster:restorer:restore-focus",lg="tabster:root:focus",cg="tabster:root:blur",c9=typeof CustomEvent<"u"?CustomEvent:function(){};class Ze extends c9{constructor(e,r){super(e,{bubbles:!0,cancelable:!0,composed:!0,detail:r}),this.details=r}}class ug extends Ze{constructor(e){super(eg,e)}}class dg extends Ze{constructor(e){super(tg,e)}}class Vt extends Ze{constructor(e){super(rg,e)}}class Gl extends Ze{constructor(e){super(ag,e)}}class u9 extends Ze{constructor(e){super(rs,e)}}class d9 extends Ze{constructor(e){super(os,e)}}class f9 extends Ze{constructor(e){super(ns,e)}}class fg extends Ze{constructor(e){super(ig,e)}}class hg extends Ze{constructor(e){super(sg,e)}}class h9 extends Ze{constructor(e){super(og,e)}}class p9 extends Ze{constructor(){super(ng)}}class Xl extends Ze{constructor(){super(is)}}class pg extends Ze{constructor(e){super(lg,e)}}class gg extends Ze{constructor(e){super(cg,e)}}var EF=Object.freeze({__proto__:null,TabsterFocusInEventName:eg,TabsterFocusOutEventName:tg,TabsterMoveFocusEventName:rg,DeloserFocusLostEventName:og,DeloserRestoreFocusEventName:ng,ModalizerActiveEventName:ig,ModalizerInactiveEventName:sg,ModalizerFocusInEventName:a9,ModalizerFocusOutEventName:l9,MoverStateEventName:ag,MoverMoveFocusEventName:rs,MoverMemorizedElementEventName:os,GroupperMoveFocusEventName:ns,RestorerRestoreFocusEventName:is,RootFocusEventName:lg,RootBlurEventName:cg,TabsterCustomEvent:Ze,TabsterFocusInEvent:ug,TabsterFocusOutEvent:dg,TabsterMoveFocusEvent:Vt,MoverStateEvent:Gl,MoverMoveFocusEvent:u9,MoverMemorizedElementEvent:d9,GroupperMoveFocusEvent:f9,ModalizerActiveEvent:fg,ModalizerInactiveEvent:hg,DeloserFocusLostEvent:h9,DeloserRestoreFocusEvent:p9,RestorerRestoreFocusEvent:Xl,RootFocusEvent:pg,RootBlurEvent:gg});/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const g9=t=>new MutationObserver(t),v9=(t,e,r,o)=>t.createTreeWalker(e,r,o),m9=t=>t?t.parentNode:null,b9=t=>t?t.parentElement:null,y9=(t,e)=>!!(e&&(t!=null&&t.contains(e))),w9=t=>t.activeElement,k9=(t,e)=>t.querySelector(e),x9=(t,e)=>Array.prototype.slice.call(t.querySelectorAll(e),0),C9=(t,e)=>t.getElementById(e),S9=t=>(t==null?void 0:t.firstChild)||null,_9=t=>(t==null?void 0:t.lastChild)||null,B9=t=>(t==null?void 0:t.nextSibling)||null,P9=t=>(t==null?void 0:t.previousSibling)||null,F9=t=>(t==null?void 0:t.firstElementChild)||null,T9=t=>(t==null?void 0:t.lastElementChild)||null,E9=t=>(t==null?void 0:t.nextElementSibling)||null,$9=t=>(t==null?void 0:t.previousElementSibling)||null,A9=(t,e)=>t.appendChild(e),N9=(t,e,r)=>t.insertBefore(e,r),L9=t=>{var e;return((e=t.ownerDocument)===null||e===void 0?void 0:e.getSelection())||null},R9=(t,e)=>t.ownerDocument.getElementsByName(e),F={createMutationObserver:g9,createTreeWalker:v9,getParentNode:m9,getParentElement:b9,nodeContains:y9,getActiveElement:w9,querySelector:k9,querySelectorAll:x9,getElementById:C9,getFirstChild:S9,getLastChild:_9,getNextSibling:B9,getPreviousSibling:P9,getFirstElementChild:F9,getLastElementChild:T9,getNextElementSibling:E9,getPreviousElementSibling:$9,appendChild:A9,insertBefore:N9,getSelection:L9,getElementsByName:R9};function D9(t){for(const e of Object.keys(t))F[e]=t[e]}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */let Kl;const jf=typeof DOMRect<"u"?DOMRect:class{constructor(t,e,r,o){this.left=t||0,this.top=e||0,this.right=(t||0)+(r||0),this.bottom=(e||0)+(o||0)}};let O9=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),Kl=!1}catch{Kl=!0}const cl=100;function Kt(t){const e=t();let r=e.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:e.Promise||void 0,WeakRef:e.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},e.__tabsterInstanceContext=r),r}function I9(t){const e=t.__tabsterInstanceContext;e&&(e.elementByUId={},delete e.WeakRef,e.containerBoundingRectCache={},e.containerBoundingRectCacheTimer&&t.clearTimeout(e.containerBoundingRectCacheTimer),e.fakeWeakRefsTimer&&t.clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefs=[],delete t.__tabsterInstanceContext)}function M9(t){const e=t.__tabsterInstanceContext;return new((e==null?void 0:e.basics.WeakMap)||WeakMap)}function z9(t){return!!t.querySelector(su)}class vg{constructor(e){this._target=e}deref(){return this._target}static cleanup(e,r){return e._target?r||!lu(e._target.ownerDocument,e._target)?(delete e._target,!0):!1:!0}}class ot{constructor(e,r,o){const n=Kt(e);let i;n.WeakRef?i=new n.WeakRef(r):(i=new vg(r),n.fakeWeakRefs.push(i)),this._ref=i,this._data=o}get(){const e=this._ref;let r;return e&&(r=e.deref(),r||delete this._ref),r}getData(){return this._data}}function mg(t,e){const r=Kt(t);r.fakeWeakRefs=r.fakeWeakRefs.filter(o=>!vg.cleanup(o,e))}function bg(t){const e=Kt(t);e.fakeWeakRefsStarted||(e.fakeWeakRefsStarted=!0,e.WeakRef=W9(e)),e.fakeWeakRefsTimer||(e.fakeWeakRefsTimer=t().setTimeout(()=>{e.fakeWeakRefsTimer=void 0,mg(t),bg(t)},2*60*1e3))}function V9(t){const e=Kt(t);e.fakeWeakRefsStarted=!1,e.fakeWeakRefsTimer&&(t().clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefsTimer=void 0,e.fakeWeakRefs=[])}function au(t,e,r){if(e.nodeType!==Node.ELEMENT_NODE)return;const o=Kl?r:{acceptNode:r};return F.createTreeWalker(t,e,NodeFilter.SHOW_ELEMENT,o,!1)}function yg(t,e){let r=e.__tabsterCacheId;const o=Kt(t),n=r?o.containerBoundingRectCache[r]:void 0;if(n)return n.rect;const i=e.ownerDocument&&e.ownerDocument.documentElement;if(!i)return new jf;let s=0,a=0,l=i.clientWidth,c=i.clientHeight;if(e!==i){const d=e.getBoundingClientRect();s=Math.max(s,d.left),a=Math.max(a,d.top),l=Math.min(l,d.right),c=Math.min(c,d.bottom)}const u=new jf(s{o.containerBoundingRectCacheTimer=void 0;for(const d of Object.keys(o.containerBoundingRectCache))delete o.containerBoundingRectCache[d].element.__tabsterCacheId;o.containerBoundingRectCache={}},50)),u}function qf(t,e,r){const o=wg(e);if(!o)return!1;const n=yg(t,o),i=e.getBoundingClientRect(),s=i.height*(1-r),a=Math.max(0,n.top-i.top),l=Math.max(0,i.bottom-n.bottom),c=a+l;return c===0||c<=s}function H9(t,e,r){const o=wg(e);if(o){const n=yg(t,o),i=e.getBoundingClientRect();r?o.scrollTop+=i.top-n.top:o.scrollTop+=i.bottom-n.bottom}}function wg(t){const e=t.ownerDocument;if(e){for(let r=F.getParentElement(t);r;r=F.getParentElement(r))if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return e.documentElement}return null}function j9(t){t.__shouldIgnoreFocus=!0}function kg(t){return!!t.__shouldIgnoreFocus}function q9(t){const e=new Uint32Array(4);if(t.crypto&&t.crypto.getRandomValues)t.crypto.getRandomValues(e);else if(t.msCrypto&&t.msCrypto.getRandomValues)t.msCrypto.getRandomValues(e);else for(let o=0;o{if(this._fixedTarget){const f=this._fixedTarget.get();f&&Tt(f);return}const d=this.input;if(this.onFocusIn&&d){const f=u.relatedTarget;this.onFocusIn(this,this._isBackward(!0,d,f),f)}},this._focusOut=u=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const d=this.input;if(this.onFocusOut&&d){const f=u.relatedTarget;this.onFocusOut(this,this._isBackward(!1,d,f),f)}};const a=e(),l=a.document.createElement("i");l.tabIndex=0,l.setAttribute("role","none"),l.setAttribute(Kp,""),l.setAttribute("aria-hidden","true");const c=l.style;c.position="fixed",c.width=c.height="1px",c.opacity="0.001",c.zIndex="-1",c.setProperty("content-visibility","hidden"),j9(l),this.input=l,this.isFirst=o.isFirst,this.isOutside=r,this._isPhantom=(s=o.isPhantom)!==null&&s!==void 0?s:!1,this._fixedTarget=i,l.addEventListener("focusin",this._focusIn),l.addEventListener("focusout",this._focusOut),l.__tabsterDummyContainer=n,this._isPhantom&&(this._disposeTimer=a.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(a.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var e;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(e=F.getParentNode(r))===null||e===void 0||e.removeChild(r))}setTopLeft(e,r){var o;const n=(o=this.input)===null||o===void 0?void 0:o.style;n&&(n.top=`${e}px`,n.left=`${r}px`)}_isBackward(e,r,o){return e&&!o?!this.isFirst:!!(o&&r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)}}const la={Root:1,Modalizer:2,Mover:3,Groupper:4};class Bo{constructor(e,r,o,n,i,s){this._element=r,this._instance=new X9(e,r,this,o,n,i,s)}_setHandlers(e,r){this._onFocusIn=e,this._onFocusOut=r}moveOut(e){var r;(r=this._instance)===null||r===void 0||r.moveOut(e)}moveOutWithDefaultAction(e,r){var o;(o=this._instance)===null||o===void 0||o.moveOutWithDefaultAction(e,r)}getHandler(e){return e?this._onFocusIn:this._onFocusOut}setTabbable(e){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,e)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(e,r,o,n,i){const a=new ss(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(a){let l,c;if(r.tagName==="BODY")l=r,c=o&&n||!o&&!n?F.getFirstElementChild(r):null;else{o&&(!n||n&&!e.focusable.isFocusable(r,!1,!0,!0))?(l=r,c=n?r.firstElementChild:null):(l=F.getParentElement(r),c=o&&n||!o&&!n?r:F.getNextElementSibling(r));let u,d;do u=o&&n||!o&&!n?F.getPreviousElementSibling(c):c,d=Po(u),d===r?c=o&&n||!o&&!n?u:F.getNextElementSibling(u):d=null;while(d)}l!=null&&l.dispatchEvent(new Vt({by:"root",owner:l,next:null,relatedEvent:i}))&&(F.insertBefore(l,a,c),Tt(a))}}static addPhantomDummyWithTarget(e,r,o,n){const s=new ss(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new ot(e.getWindow,n)).input;if(s){let a,l;z9(r)&&!o?(a=r,l=F.getFirstElementChild(r)):(a=F.getParentElement(r),l=o?r:F.getNextElementSibling(r)),a&&F.insertBefore(a,s,l)}}}class G9{constructor(e){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var o;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(o=this._win)===null||o===void 0?void 0:o.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const n of this._dummyElements){const i=n.get();if(i){const s=this._dummyCallbacks.get(i);if(s){const a=F.getParentNode(i);(!a||this._changedParents.has(a))&&s()}}}this._changedParents=new WeakSet},cl)))},this._win=e}add(e,r){!this._dummyCallbacks.has(e)&&this._win&&(this._dummyElements.push(new ot(this._win,e)),this._dummyCallbacks.set(e,r),this.domChanged=this._domChanged)}remove(e){this._dummyElements=this._dummyElements.filter(r=>{const o=r.get();return o&&o!==e}),this._dummyCallbacks.delete(e),this._dummyElements.length===0&&delete this.domChanged}dispose(){var e;const r=(e=this._win)===null||e===void 0?void 0:e.call(this);this._updateTimer&&(r==null||r.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r==null||r.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(e){this._win&&(this._updateQueue.add(e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var e;this._updateTimer||(this._updateTimer=(e=this._win)===null||e===void 0?void 0:e.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+cl<=Date.now()){const r=new Map,o=[];for(const n of this._updateQueue)o.push(n(r));this._updateQueue.clear();for(const n of o)n();r.clear()}else this._scheduledUpdatePositions()},cl))}}class X9{constructor(e,r,o,n,i,s,a){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(p,h,g)=>{this._onFocus(!0,p,h,g)},this._onFocusOut=(p,h,g)=>{this._onFocus(!1,p,h,g)},this.moveOut=p=>{var h;const g=this._firstDummy,v=this._lastDummy;if(g&&v){this._ensurePosition();const w=g.input,m=v.input,y=(h=this._element)===null||h===void 0?void 0:h.get();if(w&&m&&y){let C;p?(w.tabIndex=0,C=w):(m.tabIndex=0,C=m),C&&Tt(C)}}},this.moveOutWithDefaultAction=(p,h)=>{var g;const v=this._firstDummy,w=this._lastDummy;if(v&&w){this._ensurePosition();const m=v.input,y=w.input,C=(g=this._element)===null||g===void 0?void 0:g.get();if(m&&y&&C){let x;p?!v.isOutside&&this._tabster.focusable.isFocusable(C,!0,!0,!0)?x=C:(v.useDefaultAction=!0,m.tabIndex=0,x=m):(w.useDefaultAction=!0,y.tabIndex=0,x=y),x&&C.dispatchEvent(new Vt({by:"root",owner:C,next:null,relatedEvent:h}))&&Tt(x)}}},this.setTabbable=(p,h)=>{var g,v;for(const m of this._wrappers)if(m.manager===p){m.tabbable=h;break}const w=this._getCurrent();if(w){const m=w.tabbable?0:-1;let y=(g=this._firstDummy)===null||g===void 0?void 0:g.input;y&&(y.tabIndex=m),y=(v=this._lastDummy)===null||v===void 0?void 0:v.input,y&&(y.tabIndex=m)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=p=>{var h,g;const v=((h=this._firstDummy)===null||h===void 0?void 0:h.input)||((g=this._lastDummy)===null||g===void 0?void 0:g.input),w=this._transformElements,m=new Set;let y=0,C=0;const x=this._getWindow();for(let _=v;_&&_.nodeType===Node.ELEMENT_NODE;_=F.getParentElement(_)){let B=p.get(_);if(B===void 0){const E=x.getComputedStyle(_).transform;E&&E!=="none"&&(B={scrollTop:_.scrollTop,scrollLeft:_.scrollLeft}),p.set(_,B||null)}B&&(m.add(_),w.has(_)||_.addEventListener("scroll",this._addTransformOffsets),y+=B.scrollTop,C+=B.scrollLeft)}for(const _ of w)m.has(_)||_.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=m,()=>{var _,B;(_=this._firstDummy)===null||_===void 0||_.setTopLeft(y,C),(B=this._lastDummy)===null||B===void 0||B.setTopLeft(y,C)}};const l=r.get();if(!l)throw new Error("No element");this._tabster=e,this._getWindow=e.getWindow,this._callForDefaultAction=a;const c=l.__tabsterDummy;if((c||this)._wrappers.push({manager:o,priority:n,tabbable:!0}),c)return c;l.__tabsterDummy=this;const u=i==null?void 0:i.dummyInputsPosition,d=l.tagName;this._isOutside=u?u===Qp.Outside:(s||d==="UL"||d==="OL"||d==="TABLE")&&!(d==="LI"||d==="TD"||d==="TH"),this._firstDummy=new ss(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new ss(this._getWindow,this._isOutside,{isFirst:!1},r);const f=this._firstDummy.input;f&&e._dummyObserver.add(f,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(e,r){var o,n,i,s;if((this._wrappers=this._wrappers.filter(l=>l.manager!==e&&!r)).length===0){delete((o=this._element)===null||o===void 0?void 0:o.get()).__tabsterDummy;for(const u of this._transformElements)u.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const l=this._getWindow();this._addTimer&&(l.clearTimeout(this._addTimer),delete this._addTimer);const c=(n=this._firstDummy)===null||n===void 0?void 0:n.input;c&&this._tabster._dummyObserver.remove(c),(i=this._firstDummy)===null||i===void 0||i.dispose(),(s=this._lastDummy)===null||s===void 0||s.dispose()}}_onFocus(e,r,o,n){var i;const s=this._getCurrent();s&&(!r.useDefaultAction||this._callForDefaultAction)&&((i=s.manager.getHandler(e))===null||i===void 0||i(r,o,n))}_getCurrent(){return this._wrappers.sort((e,r)=>e.tabbable!==r.tabbable?e.tabbable?-1:1:e.priority-r.priority),this._wrappers[0]}_ensurePosition(){var e,r,o;const n=(e=this._element)===null||e===void 0?void 0:e.get(),i=(r=this._firstDummy)===null||r===void 0?void 0:r.input,s=(o=this._lastDummy)===null||o===void 0?void 0:o.input;if(!(!n||!i||!s))if(this._isOutside){const a=F.getParentNode(n);if(a){const l=F.getNextSibling(n);l!==s&&F.insertBefore(a,s,l),F.getPreviousElementSibling(n)!==i&&F.insertBefore(a,i,n)}}else{F.getLastElementChild(n)!==s&&F.appendChild(n,s);const a=F.getFirstElementChild(n);a&&a!==i&&a.parentNode&&F.insertBefore(a.parentNode,i,a)}}}function Cg(t){let e=null;for(let r=F.getLastElementChild(t);r;r=F.getLastElementChild(r))e=r;return e||void 0}function K9(t,e){let r=t,o=null;for(;r&&!o;)o=e?F.getPreviousElementSibling(r):F.getNextElementSibling(r),r=F.getParentElement(r);return o||void 0}function ul(t,e,r,o){const n=t.storageEntry(e,!0);let i=!1;if(!n.aug){if(o===void 0)return i;n.aug={}}if(o===void 0){if(r in n.aug){const s=n.aug[r];delete n.aug[r],s===null?e.removeAttribute(r):e.setAttribute(r,s),i=!0}}else{let s;r in n.aug||(s=e.getAttribute(r)),s!==void 0&&s!==o&&(n.aug[r]=s,o===null?e.removeAttribute(r):e.setAttribute(r,o),i=!0)}return o===void 0&&Object.keys(n.aug).length===0&&(delete n.aug,t.storageEntry(e,!1)),i}function J9(t){var e,r;const o=t.ownerDocument,n=(e=o.defaultView)===null||e===void 0?void 0:e.getComputedStyle(t);return t.offsetParent===null&&o.body!==t&&(n==null?void 0:n.position)!=="fixed"||(n==null?void 0:n.visibility)==="hidden"||(n==null?void 0:n.position)==="fixed"&&(n.display==="none"||((r=t.parentElement)===null||r===void 0?void 0:r.offsetParent)===null&&o.body!==t.parentElement)}function Jl(t){return t.tagName==="INPUT"&&!!t.name&&t.type==="radio"}function Q9(t){if(!Jl(t))return;const e=t.name;let r=Array.from(F.getElementsByName(t,e)),o;return r=r.filter(n=>Jl(n)?(n.checked&&(o=n),!0):!1),{name:e,buttons:new Set(r),checked:o}}function Po(t){var e;return((e=t==null?void 0:t.__tabsterDummyContainer)===null||e===void 0?void 0:e.get())||null}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function ca(t,e){const r=JSON.stringify(t);return e===!0?r:{[zt]:r}}function Y9(t,e){for(const r of Object.keys(e)){const o=e[r];o?t[r]=o:delete t[r]}}function e8(t,e,r){let o;{const n=t.getAttribute(zt);if(n)try{o=JSON.parse(n)}catch{}}o||(o={}),Y9(o,e),Object.keys(o).length>0?t.setAttribute(zt,ca(o,!0)):t.removeAttribute(zt)}class Wf extends Bo{constructor(e,r,o,n){super(e,r,la.Root,n,void 0,!0),this._onDummyInputFocus=i=>{var s;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const a=this._element.get();if(a){this._setFocused(!0);const l=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:a,ignoreAccessibility:!0});if(l){Tt(l);return}}(s=i.input)===null||s===void 0||s.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=e,this._setFocused=o}}class t8 extends ni{constructor(e,r,o,n,i){super(e,r,n),this._isFocused=!1,this._setFocused=c=>{var u;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===c)return;const d=this._element.get();d&&(c?(this._isFocused=!0,(u=this._dummyManager)===null||u===void 0||u.setTabbable(!1),d.dispatchEvent(new pg({element:d}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var f;delete this._setFocusedTimer,this._isFocused=!1,(f=this._dummyManager)===null||f===void 0||f.setTabbable(!0),d.dispatchEvent(new gg({element:d}))},0))},this._onFocusIn=c=>{const u=this._tabster.getParent,d=this._element.get();let f=c.composedPath()[0];do{if(f===d){this._setFocused(!0);return}f=f&&u(f)}while(f)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=o;const s=e.getWindow;this.uid=Li(s,r),this._sys=i,(e.controlTab||e.rootDummyInputs)&&this.addDummyInputs();const l=s().document;l.addEventListener(Ht,this._onFocusIn),l.addEventListener(In,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new Wf(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var e;this._onDispose(this);const r=this._tabster.getWindow(),o=r.document;o.removeEventListener(Ht,this._onFocusIn),o.removeEventListener(In,this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(e=this._dummyManager)===null||e===void 0||e.dispose(),this._remove()}moveOutWithDefaultAction(e,r){const o=this._dummyManager;if(o)o.moveOutWithDefaultAction(e,r);else{const n=this.getElement();n&&Wf.moveWithPhantomDummy(this._tabster,n,!0,e,r)}}_add(){}_remove(){}}class ne{constructor(e,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var o;const n=this._win().document,i=n.body;if(i){this._autoRootUnwait(n);const s=this._autoRoot;if(s)return e8(i,{root:s}),Yp(this._tabster,i),(o=We(this._tabster,i))===null||o===void 0?void 0:o.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,n.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=o=>{delete this._roots[o.id]},this._tabster=e,this._win=e.getWindow,this._autoRoot=r,e.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(e){e.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const e=this._win();this._autoRootUnwait(e.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(e,r,o){const n=new t8(this._tabster,e,this._onRootDispose,r,o);return this._roots[n.id]=n,this._forceDummy&&n.addDummyInputs(),n}addDummyInputs(){this._forceDummy=!0;const e=this._roots;for(const r of Object.keys(e))e[r].addDummyInputs()}static getRootByUId(e,r){const o=e().__tabsterInstance;return o&&o.root.rootById[r]}static getTabsterContext(e,r,o){o===void 0&&(o={});var n,i,s,a;if(!r.ownerDocument)return;const{checkRtl:l,referenceElement:c}=o,u=e.getParent;e.drainInitQueue();let d,f,p,h,g=!1,v,w,m,y,C=c||r;const x={};for(;C&&(!d||l);){const B=We(e,C);if(l&&m===void 0){const M=C.dir;M&&(m=M.toLowerCase()==="rtl")}if(!B){C=u(C);continue}const E=C.tagName;(B.uncontrolled||E==="IFRAME"||E==="WEBVIEW")&&(y=C),!h&&(!((n=B.focusable)===null||n===void 0)&&n.excludeFromMover)&&!p&&(g=!0);const I=B.modalizer,H=B.groupper,Oe=B.mover;!f&&I&&(f=I),!p&&H&&(!f||I)&&(f?(!H.isActive()&&H.getProps().tabbability&&f.userId!==((i=e.modalizer)===null||i===void 0?void 0:i.activeId)&&(f=void 0,p=H),w=H):p=H),!h&&Oe&&(!f||I)&&(!H||C!==r)&&C.contains(r)&&(h=Oe,v=!!p&&p!==H),B.root&&(d=B.root),!((s=B.focusable)===null||s===void 0)&&s.ignoreKeydown&&Object.assign(x,B.focusable.ignoreKeydown),C=u(C)}if(!d){const B=e.root;B._autoRoot&&!((a=r.ownerDocument)===null||a===void 0)&&a.body&&(d=B._autoRootCreate())}return p&&!h&&(v=!0),d?{root:d,modalizer:f,groupper:p,mover:h,groupperBeforeMover:v,modalizerInGroupper:w,rtl:l?!!m:void 0,uncontrolled:y,excludedFromMover:g,ignoreKeydown:B=>!!x[B.key]}:void 0}static getRoot(e,r){var o;const n=e.getParent;for(let i=r;i;i=n(i)){const s=(o=We(e,i))===null||o===void 0?void 0:o.root;if(s)return s}}onRoot(e,r){r?delete this.rootById[e.uid]:this.rootById[e.uid]=e}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class Sg{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(e){const r=this._callbacks;r.indexOf(e)<0&&r.push(e)}subscribeFirst(e){const r=this._callbacks,o=r.indexOf(e);o>=0&&r.splice(o,1),r.unshift(e)}unsubscribe(e){const r=this._callbacks.indexOf(e);r>=0&&this._callbacks.splice(r,1)}setVal(e,r){this._val!==e&&(this._val=e,this._callCallbacks(e,r))}getVal(){return this._val}trigger(e,r){this._callCallbacks(e,r)}_callCallbacks(e,r){this._callbacks.forEach(o=>o(e,r))}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class r8{constructor(e){this._tabster=e}dispose(){}getProps(e){const r=We(this._tabster,e);return r&&r.focusable||{}}isFocusable(e,r,o,n){return xg(e,su)&&(r||e.tabIndex!==-1)?(o||this.isVisible(e))&&(n||this.isAccessible(e)):!1}isVisible(e){if(!e.ownerDocument||e.nodeType!==Node.ELEMENT_NODE||J9(e))return!1;const r=e.ownerDocument.body.getBoundingClientRect();return!(r.width===0&&r.height===0)}isAccessible(e){var r;for(let o=e;o;o=F.getParentElement(o)){const n=We(this._tabster,o);if(this._isHidden(o)||!((r=n==null?void 0:n.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(o))return!1}return!0}_isDisabled(e){return e.hasAttribute("disabled")}_isHidden(e){var r;const o=e.getAttribute("aria-hidden");return!!(o&&o.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(e)))}findFirst(e,r){return this.findElement({...e},r)}findLast(e,r){return this.findElement({isBackward:!0,...e},r)}findNext(e,r){return this.findElement({...e},r)}findPrev(e,r){return this.findElement({...e,isBackward:!0},r)}findDefault(e,r){return this.findElement({...e,acceptCondition:o=>this.isFocusable(o,e.includeProgrammaticallyFocusable)&&!!this.getProps(o).isDefault},r)||null}findAll(e){return this._findElements(!0,e)||[]}findElement(e,r){const o=this._findElements(!1,e,r);return o&&o[0]}_findElements(e,r,o){var n,i,s;const{container:a,currentElement:l=null,includeProgrammaticallyFocusable:c,useActiveModalizer:u,ignoreAccessibility:d,modalizerId:f,isBackward:p,onElement:h}=r;o||(o={});const g=[];let{acceptCondition:v}=r;const w=!!v;if(!a)return null;v||(v=x=>this.isFocusable(x,c,!1,d));const m={container:a,modalizerUserId:f===void 0&&u?(n=this._tabster.modalizer)===null||n===void 0?void 0:n.activeId:f||((s=(i=ne.getTabsterContext(this._tabster,a))===null||i===void 0?void 0:i.modalizer)===null||s===void 0?void 0:s.userId),from:l||a,isBackward:p,isFindAll:e,acceptCondition:v,hasCustomCondition:w,includeProgrammaticallyFocusable:c,ignoreAccessibility:d,cachedGrouppers:{},cachedRadioGroups:{}},y=au(a.ownerDocument,a,x=>this._acceptElement(x,m));if(!y)return null;const C=x=>{var _,B;const E=(_=m.foundElement)!==null&&_!==void 0?_:m.foundBackward;return E&&g.push(E),e?E&&(m.found=!1,delete m.foundElement,delete m.foundBackward,delete m.fromCtx,m.from=E,h&&!h(E))?!1:!!(E||x):(E&&o&&(o.uncontrolled=(B=ne.getTabsterContext(this._tabster,E))===null||B===void 0?void 0:B.uncontrolled),!!(x&&!E))};if(l||(o.outOfDOMOrder=!0),l&&F.nodeContains(a,l))y.currentNode=l;else if(p){const x=Cg(a);if(!x)return null;if(this._acceptElement(x,m)===NodeFilter.FILTER_ACCEPT&&!C(!0))return m.skippedFocusable&&(o.outOfDOMOrder=!0),g;y.currentNode=x}do p?y.previousNode():y.nextNode();while(C());return m.skippedFocusable&&(o.outOfDOMOrder=!0),g.length?g:null}_acceptElement(e,r){var o,n,i;if(r.found)return NodeFilter.FILTER_ACCEPT;const s=r.foundBackward;if(s&&(e===s||!F.nodeContains(s,e)))return r.found=!0,r.foundElement=s,NodeFilter.FILTER_ACCEPT;const a=r.container;if(e===a)return NodeFilter.FILTER_SKIP;if(!F.nodeContains(a,e)||Po(e)||F.nodeContains(r.rejectElementsFrom,e))return NodeFilter.FILTER_REJECT;const l=r.currentCtx=ne.getTabsterContext(this._tabster,e);if(!l)return NodeFilter.FILTER_SKIP;if(kg(e))return this.isFocusable(e,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(e.tagName==="IFRAME"||e.tagName==="WEBVIEW"))return((o=l.modalizer)===null||o===void 0?void 0:o.userId)===((n=this._tabster.modalizer)===null||n===void 0?void 0:n.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=e,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(e))return this.isFocusable(e,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let c,u=r.fromCtx;u||(u=r.fromCtx=ne.getTabsterContext(this._tabster,r.from));const d=u==null?void 0:u.mover;let f=l.groupper,p=l.mover;if(c=(i=this._tabster.modalizer)===null||i===void 0?void 0:i.acceptElement(e,r),c!==void 0&&(r.skippedFocusable=!0),c===void 0&&(f||p||d)){const h=f==null?void 0:f.getElement(),g=d==null?void 0:d.getElement();let v=p==null?void 0:p.getElement();v&&F.nodeContains(g,v)&&F.nodeContains(a,g)&&(!h||!p||F.nodeContains(g,h))&&(p=d,v=g),h&&(h===a||!F.nodeContains(a,h))&&(f=void 0),v&&!F.nodeContains(a,v)&&(p=void 0),f&&p&&(v&&h&&!F.nodeContains(h,v)?p=void 0:f=void 0),f&&(c=f.acceptElement(e,r)),p&&(c=p.acceptElement(e,r))}if(c===void 0&&(c=r.acceptCondition(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,c===NodeFilter.FILTER_SKIP&&this.isFocusable(e,!1,!0,!0)&&(r.skippedFocusable=!0)),c===NodeFilter.FILTER_ACCEPT&&!r.found){if(!r.isFindAll&&Jl(e)&&!e.checked){const h=e.name;let g=r.cachedRadioGroups[h];if(g||(g=Q9(e),g&&(r.cachedRadioGroups[h]=g)),g!=null&&g.checked&&g.checked!==e)return NodeFilter.FILTER_SKIP}r.isBackward?(r.foundBackward=e,c=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=e)}return c}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const we={Tab:"Tab",Enter:"Enter",Escape:"Escape",Space:" ",PageUp:"PageUp",PageDown:"PageDown",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"};/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function o8(t,e){var r;const o=t.getParent;let n=e;do{const i=(r=We(t,n))===null||r===void 0?void 0:r.uncontrolled;if(i&&t.uncontrolled.isUncontrolledCompletely(n,!!i.completely))return n;n=o(n)}while(n)}const Zf={[Ft.Restorer]:0,[Ft.Deloser]:1,[Ft.EscapeGroupper]:2};class ke extends Sg{constructor(e,r){super(),this._init=()=>{const o=this._win(),n=o.document;n.addEventListener(Ht,this._onFocusIn,!0),n.addEventListener(In,this._onFocusOut,!0),o.addEventListener("keydown",this._onKeyDown,!0);const i=F.getActiveElement(n);i&&i!==n.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=o=>{const n=o.composedPath()[0];n&&this._setFocusedElement(n,o.detail.relatedTarget,o.detail.isFocusedProgrammatically)},this._onFocusOut=o=>{var n;this._setFocusedElement(void 0,(n=o.detail)===null||n===void 0?void 0:n.originalEvent.relatedTarget)},this._validateFocusedElement=o=>{},this._onKeyDown=o=>{if(o.key!==we.Tab||o.ctrlKey)return;const n=this.getVal();if(!n||!n.ownerDocument||n.contentEditable==="true")return;const i=this._tabster,s=i.controlTab,a=ne.getTabsterContext(i,n);if(!a||a.ignoreKeydown(o))return;const l=o.shiftKey,c=ke.findNextTabbable(i,a,void 0,n,void 0,l,!0),u=a.root.getElement();if(!u)return;const d=c==null?void 0:c.element,f=o8(i,n);if(d){const p=c.uncontrolled;if(a.uncontrolled||F.nodeContains(p,n)){if(!c.outOfDOMOrder&&p===a.uncontrolled||f&&!F.nodeContains(f,d))return;Bo.addPhantomDummyWithTarget(i,n,l,d);return}if(p||d.tagName==="IFRAME"){u.dispatchEvent(new Vt({by:"root",owner:u,next:d,relatedEvent:o}))&&Bo.moveWithPhantomDummy(this._tabster,p??d,!1,l,o);return}(s||c!=null&&c.outOfDOMOrder)&&u.dispatchEvent(new Vt({by:"root",owner:u,next:d,relatedEvent:o}))&&(o.preventDefault(),o.stopImmediatePropagation(),Tt(d))}else!f&&u.dispatchEvent(new Vt({by:"root",owner:u,next:null,relatedEvent:o}))&&a.root.moveOutWithDefaultAction(l,o)},this._onChanged=(o,n)=>{var i,s;if(o)o.dispatchEvent(new ug(n));else{const a=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(a){const l={...n},c=ne.getTabsterContext(this._tabster,a),u=(s=c==null?void 0:c.modalizer)===null||s===void 0?void 0:s.userId;u&&(l.modalizerId=u),a.dispatchEvent(new dg(l))}}},this._tabster=e,this._win=r,e.queueInit(this._init)}dispose(){super.dispose();const e=this._win(),r=e.document;r.removeEventListener(Ht,this._onFocusIn,!0),r.removeEventListener(In,this._onFocusOut,!0),e.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const o=this._asyncFocus;o&&(e.clearTimeout(o.timeout),delete this._asyncFocus),delete ke._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(e,r){var o,n;let i=ke._lastResetElement,s=i&&i.get();s&&F.nodeContains(r,s)&&delete ke._lastResetElement,s=(n=(o=e._nextVal)===null||o===void 0?void 0:o.element)===null||n===void 0?void 0:n.get(),s&&F.nodeContains(r,s)&&delete e._nextVal,i=e._lastVal,s=i&&i.get(),s&&F.nodeContains(r,s)&&delete e._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var e;let r=(e=this._lastVal)===null||e===void 0?void 0:e.get();return(!r||r&&!lu(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(e,r,o){return this._tabster.focusable.isFocusable(e,r,!1,o)?(e.focus(),!0):!1}focusDefault(e){const r=this._tabster.focusable.findDefault({container:e});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(e,r){var o;const{container:n,ignoreAccessibility:i}=r;let s;if(n){const a=ne.getTabsterContext(this._tabster,n);a&&(s=(o=ke.findNextTabbable(this._tabster,a,n,void 0,void 0,!e,i))===null||o===void 0?void 0:o.element)}return s&&!F.nodeContains(n,s)&&(s=void 0),s||void 0}_focusFirstOrLast(e,r){const o=this.getFirstOrLastTabbable(e,r);return o?(this.focus(o,!1,!0),!0):!1}focusFirst(e){return this._focusFirstOrLast(!0,e)}focusLast(e){return this._focusFirstOrLast(!1,e)}resetFocus(e){if(!this._tabster.focusable.isVisible(e))return!1;if(this._tabster.focusable.isFocusable(e,!0,!0,!0))this.focus(e);else{const r=e.getAttribute("tabindex"),o=e.getAttribute("aria-hidden");e.tabIndex=-1,e.setAttribute("aria-hidden","true"),ke._lastResetElement=new ot(this._win,e),this.focus(e,!0,!0),this._setOrRemoveAttribute(e,"tabindex",r),this._setOrRemoveAttribute(e,"aria-hidden",o)}return!0}requestAsyncFocus(e,r,o){const n=this._tabster.getWindow(),i=this._asyncFocus;if(i){if(Zf[e]>Zf[i.source])return;n.clearTimeout(i.timeout)}this._asyncFocus={source:e,callback:r,timeout:n.setTimeout(()=>{this._asyncFocus=void 0,r()},o)}}cancelAsyncFocus(e){const r=this._asyncFocus;(r==null?void 0:r.source)===e&&(this._tabster.getWindow().clearTimeout(r.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(e,r,o){o===null?e.removeAttribute(r):e.setAttribute(r,o)}_setFocusedElement(e,r,o){var n,i;if(this._tabster._noop)return;const s={relatedTarget:r};if(e){const l=(n=ke._lastResetElement)===null||n===void 0?void 0:n.get();if(ke._lastResetElement=void 0,l===e||kg(e))return;s.isFocusedProgrammatically=o;const c=ne.getTabsterContext(this._tabster,e),u=(i=c==null?void 0:c.modalizer)===null||i===void 0?void 0:i.userId;u&&(s.modalizerId=u)}const a=this._nextVal={element:e?new ot(this._win,e):void 0,detail:s};e&&e!==this._val&&this._validateFocusedElement(e),this._nextVal===a&&this.setVal(e,s),this._nextVal=void 0}setVal(e,r){super.setVal(e,r),e&&(this._lastVal=new ot(this._win,e))}static findNextTabbable(e,r,o,n,i,s,a){const l=o||r.root.getElement();if(!l)return null;let c=null;const u=ke._isTabbingTimer,d=e.getWindow();u&&d.clearTimeout(u),ke.isTabbing=!0,ke._isTabbingTimer=d.setTimeout(()=>{delete ke._isTabbingTimer,ke.isTabbing=!1},0);const f=r.modalizer,p=r.groupper,h=r.mover,g=v=>{if(c=v.findNextTabbable(n,i,s,a),n&&!(c!=null&&c.element)){const w=v!==f&&F.getParentElement(v.getElement());if(w){const m=ne.getTabsterContext(e,n,{referenceElement:w});if(m){const y=v.getElement(),C=s?y:y&&Cg(y)||y;C&&(c=ke.findNextTabbable(e,m,o,C,w,s,a),c&&(c.outOfDOMOrder=!0))}}}};if(p&&h)g(r.groupperBeforeMover?p:h);else if(p)g(p);else if(h)g(h);else if(f)g(f);else{const v={container:l,currentElement:n,referenceElement:i,ignoreAccessibility:a,useActiveModalizer:!0},w={};c={element:e.focusable[s?"findPrev":"findNext"](v,w),outOfDOMOrder:w.outOfDOMOrder,uncontrolled:w.uncontrolled}}return c}}ke.isTabbing=!1;/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class n8 extends Bo{constructor(e,r,o,n){super(o,e,la.Groupper,n,!0),this._setHandlers((i,s,a)=>{var l,c;const u=e.get(),d=i.input;if(u&&d){const f=ne.getTabsterContext(o,d);if(f){let p;p=(l=r.findNextTabbable(a||void 0,void 0,s,!0))===null||l===void 0?void 0:l.element,p||(p=(c=ke.findNextTabbable(o,f,void 0,i.isOutside?d:K9(u,!s),void 0,s,!0))===null||c===void 0?void 0:c.element),p&&Tt(p)}}})}}class i8 extends ni{constructor(e,r,o,n,i){super(e,r,n),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=o,e.controlTab||(this.dummyManager=new n8(this._element,this,e,i))}dispose(){var e;this._onDispose(this),this._element.get(),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(e,r,o,n){const i=this.getElement();if(!i)return null;const s=Po(e)===i;if(!this._shouldTabInside&&e&&F.nodeContains(i,e)&&!s)return{element:void 0,outOfDOMOrder:!0};const a=this.getFirst(!0);if(!e||!F.nodeContains(i,e)||s)return{element:a,outOfDOMOrder:!0};const l=this._tabster;let c=null,u=!1,d;if(this._shouldTabInside&&a){const f={container:i,currentElement:e,referenceElement:r,ignoreAccessibility:n,useActiveModalizer:!0},p={};c=l.focusable[o?"findPrev":"findNext"](f,p),u=!!p.outOfDOMOrder,!c&&this._props.tabbability===Jp.LimitedTrapFocus&&(c=l.focusable[o?"findLast":"findFirst"]({container:i,ignoreAccessibility:n,useActiveModalizer:!0},p),u=!0),d=p.uncontrolled}return{element:c,uncontrolled:d,outOfDOMOrder:u}}makeTabbable(e){this._shouldTabInside=e||!this._props.tabbability}isActive(e){var r;const o=this.getElement()||null;let n=!0;for(let s=F.getParentElement(o);s;s=F.getParentElement(s)){const a=(r=We(this._tabster,s))===null||r===void 0?void 0:r.groupper;a&&(a._shouldTabInside||(n=!1))}let i=n?this._props.tabbability?this._shouldTabInside:!1:void 0;if(i&&e){const s=this._tabster.focusedElement.getFocusedElement();s&&(i=s!==this.getFirst(!0))}return i}getFirst(e){var r;const o=this.getElement();let n;if(o){if(e&&this._tabster.focusable.isFocusable(o))return o;n=(r=this._first)===null||r===void 0?void 0:r.get(),n||(n=this._tabster.focusable.findFirst({container:o,useActiveModalizer:!0})||void 0,n&&this.setFirst(n))}return n}setFirst(e){e?this._first=new ot(this._tabster.getWindow,e):delete this._first}acceptElement(e,r){const o=r.cachedGrouppers,n=F.getParentElement(this.getElement()),i=n&&ne.getTabsterContext(this._tabster,n),s=i==null?void 0:i.groupper,a=i!=null&&i.groupperBeforeMover?s:void 0;let l;const c=f=>{let p=o[f.id],h;return p?h=p.isActive:(h=this.isActive(!0),p=o[f.id]={isActive:h}),h};if(a&&(l=a.getElement(),!c(a)&&l&&r.container!==l&&F.nodeContains(r.container,l)))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const u=c(this),d=this.getElement();if(d&&u!==!0){if(d===e&&s&&(l||(l=s.getElement()),l&&!c(s)&&F.nodeContains(r.container,l)&&l!==r.container)||d!==e&&F.nodeContains(d,e))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const f=o[this.id];let p;if("first"in f?p=f.first:p=f.first=this.getFirst(!0),p&&r.acceptCondition(p))return r.rejectElementsFrom=d,r.skippedFocusable=!0,p!==r.from?(r.found=!0,r.foundElement=p,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class s8{constructor(e,r){this._current={},this._grouppers={},this._init=()=>{const o=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus);const n=o.document,i=F.getActiveElement(n);i&&this._onFocus(i),n.addEventListener("mousedown",this._onMouseDown,!0),o.addEventListener("keydown",this._onKeyDown,!0),o.addEventListener(ns,this._onMoveFocus)},this._onGroupperDispose=o=>{delete this._grouppers[o.id]},this._onFocus=o=>{o&&this._updateCurrent(o,!0,!0)},this._onMouseDown=o=>{o.target&&this._updateCurrent(o.target,!0)},this._onKeyDown=o=>{if(o.key!==we.Enter&&o.key!==we.Escape||o.ctrlKey||o.altKey||o.shiftKey||o.metaKey)return;const n=this._tabster.focusedElement.getFocusedElement();n&&this.handleKeyPress(n,o)},this._onMoveFocus=o=>{var n;const i=o.composedPath()[0],s=(n=o.detail)===null||n===void 0?void 0:n.action;i&&s!==void 0&&!o.defaultPrevented&&(s===Zl.Enter?this._enterGroupper(i):this._escapeGroupper(i),o.stopImmediatePropagation())},this._tabster=e,this._win=r,e.queueInit(this._init)}dispose(){const e=this._win();this._tabster.focusedElement.cancelAsyncFocus(Ft.EscapeGroupper),this._current={},this._updateTimer&&(e.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),e.document.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),e.removeEventListener(ns,this._onMoveFocus),Object.keys(this._grouppers).forEach(r=>{this._grouppers[r]&&(this._grouppers[r].dispose(),delete this._grouppers[r])})}createGroupper(e,r,o){const n=new i8(this._tabster,e,this._onGroupperDispose,r,o);this._grouppers[n.id]=n;const i=this._tabster.focusedElement.getFocusedElement();return i&&F.nodeContains(e,i)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,i===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(i,!0,!0)},0)),n}forgetCurrentGrouppers(){this._current={}}_updateCurrent(e,r,o){var n;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const i={};let s=!0;for(let a=e;a;a=F.getParentElement(a)){const l=(n=We(this._tabster,a))===null||n===void 0?void 0:n.groupper;if(l){if(i[l.id]=!0,s&&o&&a!==e&&(s=!1),r||!s){this._current[l.id]=l;const c=l.isActive()||e!==a&&(!l.getProps().delegated||l.getFirst(!1)!==e);l.makeTabbable(c)}s=!1}}for(const a of Object.keys(this._current)){const l=this._current[a];l.id in i||(l.makeTabbable(!1),l.setFirst(void 0),delete this._current[a])}}_enterGroupper(e,r){const o=this._tabster,n=ne.getTabsterContext(o,e),i=(n==null?void 0:n.groupper)||(n==null?void 0:n.modalizerInGroupper),s=i==null?void 0:i.getElement();if(i&&s&&(e===s||i.getProps().delegated&&e===i.getFirst(!1))){const a=o.focusable.findNext({container:s,currentElement:e,useActiveModalizer:!0});if(a&&(!r||r&&s.dispatchEvent(new Vt({by:"groupper",owner:s,next:a,relatedEvent:r}))))return r&&(r.preventDefault(),r.stopImmediatePropagation()),a.focus(),a}return null}_escapeGroupper(e,r,o){var n;const i=this._tabster,s=ne.getTabsterContext(i,e),a=s==null?void 0:s.modalizerInGroupper;let l=(s==null?void 0:s.groupper)||a;const c=l==null?void 0:l.getElement();if(l&&c&&F.nodeContains(c,e)){let u;if(e!==c||o)u=l.getFirst(!0);else{const d=F.getParentElement(c),f=d?ne.getTabsterContext(i,d):void 0;l=f==null?void 0:f.groupper,u=l==null?void 0:l.getFirst(!0)}if(u&&(!r||r&&c.dispatchEvent(new Vt({by:"groupper",owner:c,next:u,relatedEvent:r}))))return l&&(l.makeTabbable(!1),a&&((n=i.modalizer)===null||n===void 0||n.setActive(void 0))),u.focus(),u}return null}moveFocus(e,r){return r===Zl.Enter?this._enterGroupper(e):this._escapeGroupper(e)}handleKeyPress(e,r,o){const n=this._tabster,i=ne.getTabsterContext(n,e);if(i&&(i!=null&&i.groupper||i!=null&&i.modalizerInGroupper)){if(n.focusedElement.cancelAsyncFocus(Ft.EscapeGroupper),i.ignoreKeydown(r))return;if(r.key===we.Enter)this._enterGroupper(e,r);else if(r.key===we.Escape){const s=n.focusedElement.getFocusedElement();n.focusedElement.requestAsyncFocus(Ft.EscapeGroupper,()=>{s!==n.focusedElement.getFocusedElement()&&(o&&!s||!o)||this._escapeGroupper(e,r,o)},0)}}}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class a8 extends Sg{constructor(e){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=Gp(e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Xp(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(e){var r;(r=this._keyborg)===null||r===void 0||r.setVal(e)}isNavigatingWithKeyboard(){var e;return!!(!((e=this._keyborg)===null||e===void 0)&&e.isNavigatingWithKeyboard())}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */let l8=0;const dl="aria-hidden";class c8 extends Bo{constructor(e,r,o){super(r,e,la.Modalizer,o),this._setHandlers((n,i)=>{var s,a;const l=e.get(),c=l&&((s=ne.getRoot(r,l))===null||s===void 0?void 0:s.getElement()),u=n.input;let d;if(c&&u){const f=Po(u),p=ne.getTabsterContext(r,f||u);p&&(d=(a=ke.findNextTabbable(r,p,c,u,void 0,i,!0))===null||a===void 0?void 0:a.element),d&&Tt(d)}})}}class u8 extends ni{constructor(e,r,o,n,i,s){super(e,r,n),this._wasFocused=0,this.userId=n.id,this._onDispose=o,this._activeElements=s,e.controlTab||(this.dummyManager=new c8(this._element,e,i))}makeActive(e){if(this._isActive!==e){this._isActive=e;const r=this.getElement();if(r){const o=this._activeElements,n=o.map(i=>i.get()).indexOf(r);e?n<0&&o.push(new ot(this._tabster.getWindow,r)):n>=0&&o.splice(n,1)}this._dispatchEvent(e)}}focused(e){return e||(this._wasFocused=++l8),this._wasFocused}setProps(e){e.id&&(this.userId=e.id),this._props={...e}}dispose(){var e;this.makeActive(!1),this._onDispose(this),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(e){return F.nodeContains(this.getElement(),e)}findNextTabbable(e,r,o,n){var i,s;if(!this.getElement())return null;const l=this._tabster;let c=null,u=!1,d;const f=e&&((i=ne.getRoot(l,e))===null||i===void 0?void 0:i.getElement());if(f){const p={container:f,currentElement:e,referenceElement:r,ignoreAccessibility:n,useActiveModalizer:!0},h={};c=l.focusable[o?"findPrev":"findNext"](p,h),!c&&this._props.isTrapped&&(!((s=l.modalizer)===null||s===void 0)&&s.activeId)?(c=l.focusable[o?"findLast":"findFirst"]({container:f,ignoreAccessibility:n,useActiveModalizer:!0},h),u=!0):u=!!h.outOfDOMOrder,d=h.uncontrolled}return{element:c,uncontrolled:d,outOfDOMOrder:u}}_dispatchEvent(e,r){const o=this.getElement();let n=!1;if(o){const i=r?this._activeElements.map(s=>s.get()):[o];for(const s of i)if(s){const a={id:this.userId,element:o},l=e?new fg(a):new hg(a);s.dispatchEvent(l),l.defaultPrevented&&(n=!0)}}return n}_remove(){}}class d8{constructor(e,r,o){this._onModalizerDispose=i=>{const s=i.id,a=i.userId,l=this._parts[a];delete this._modalizers[s],l&&(delete l[s],Object.keys(l).length===0&&(delete this._parts[a],this.activeId===a&&this.setActive(void 0)))},this._onKeyDown=i=>{var s;if(i.key!==we.Escape)return;const a=this._tabster,l=a.focusedElement.getFocusedElement();if(l){const c=ne.getTabsterContext(a,l),u=c==null?void 0:c.modalizer;if(c&&!c.groupper&&(u!=null&&u.isActive())&&!c.ignoreKeydown(i)){const d=u.userId;if(d){const f=this._parts[d];if(f){const p=Object.keys(f).map(h=>{var g;const v=f[h],w=v.getElement();let m;return w&&(m=(g=We(this._tabster,w))===null||g===void 0?void 0:g.groupper),v&&w&&m?{el:w,focusedSince:v.focused(!0)}:{focusedSince:0}}).filter(h=>h.focusedSince>0).sort((h,g)=>h.focusedSince>g.focusedSince?-1:h.focusedSince{var a,l;const c=i&&ne.getTabsterContext(this._tabster,i);if(!c||!i)return;const u=this._augMap;for(let f=i;f;f=F.getParentElement(f))u.has(f)&&(u.delete(f),ul(this._tabster,f,dl));const d=c.modalizer;if((l=d||((a=We(this._tabster,i))===null||a===void 0?void 0:a.modalizer))===null||l===void 0||l.focused(),(d==null?void 0:d.userId)===this.activeId){this.currentIsOthersAccessible=d==null?void 0:d.getProps().isOthersAccessible;return}if(s.isFocusedProgrammatically||this.currentIsOthersAccessible||d!=null&&d.getProps().isAlwaysAccessible)this.setActive(d);else{const f=this._win();f.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=f.setTimeout(()=>this._restoreModalizerFocus(i),100)}},this._tabster=e,this._win=e.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=r,this._accessibleCheck=o,this.activeElements=[],e.controlTab||e.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),e.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const e=this._win();e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(r=>{this._modalizers[r]&&(this._modalizers[r].dispose(),delete this._modalizers[r])}),e.clearTimeout(this._restoreModalizerFocusTimer),e.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(e,r,o){var n;const i=new u8(this._tabster,e,this._onModalizerDispose,r,o,this.activeElements),s=i.id,a=r.id;this._modalizers[s]=i;let l=this._parts[a];return l||(l=this._parts[a]={}),l[s]=i,F.nodeContains(e,(n=this._tabster.focusedElement.getFocusedElement())!==null&&n!==void 0?n:null)&&(a!==this.activeId?this.setActive(i):i.makeActive(!0)),i}isAugmented(e){return this._augMap.has(e)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(e){const r=e==null?void 0:e.userId,o=this.activeId;if(o!==r){if(this.activeId=r,o){const n=this._parts[o];if(n)for(const i of Object.keys(n))n[i].makeActive(!1)}if(r){const n=this._parts[r];if(n)for(const i of Object.keys(n))n[i].makeActive(!0)}this.currentIsOthersAccessible=e==null?void 0:e.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(e,r,o){const n=ne.getTabsterContext(this._tabster,e),i=n==null?void 0:n.modalizer;if(i){this.setActive(i);const s=i.getProps(),a=i.getElement();if(a){if(r===void 0&&(r=s.isNoFocusFirst),!r&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:a})||(o===void 0&&(o=s.isNoFocusDefault),!o&&this._tabster.focusedElement.focusDefault(a)))return!0;this._tabster.focusedElement.resetFocus(a)}}return!1}acceptElement(e,r){var o;const n=r.modalizerUserId,i=(o=r.currentCtx)===null||o===void 0?void 0:o.modalizer;if(n)for(const a of this.activeElements){const l=a.get();if(l&&(F.nodeContains(e,l)||l===e))return NodeFilter.FILTER_SKIP}const s=n===(i==null?void 0:i.userId)||!n&&(i!=null&&i.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return s!==void 0&&(r.skippedFocusable=!0),s}_hiddenUpdate(){var e;const r=this._tabster,o=r.getWindow().document.body,n=this.activeId,i=this._parts,s=[],a=[],l=this._alwaysAccessibleSelector,c=l?Array.from(F.querySelectorAll(o,l)):[],u=[];for(const w of Object.keys(i)){const m=i[w];for(const y of Object.keys(m)){const C=m[y],x=C.getElement(),B=C.getProps().isAlwaysAccessible;x&&(w===n?(u.push(x),this.currentIsOthersAccessible||s.push(x)):B?c.push(x):a.push(x))}}const d=this._augMap,f=s.length>0?[...s,...c]:void 0,p=[],h=new WeakMap,g=(w,m)=>{var y;const C=w.tagName;if(C==="SCRIPT"||C==="STYLE")return;let x=!1;d.has(w)?m?x=!0:(d.delete(w),ul(r,w,dl)):m&&!(!((y=this._accessibleCheck)===null||y===void 0)&&y.call(this,w,u))&&ul(r,w,dl,"true")&&(d.set(w,!0),x=!0),x&&(p.push(new ot(r.getWindow,w)),h.set(w,!0))},v=w=>{var m;for(let y=F.getFirstElementChild(w);y;y=F.getNextElementSibling(y)){let C=!1,x=!1,_=!1;if(f){const B=r.getParent(y);for(const E of f){if(y===E){C=!0;break}if(F.nodeContains(y,E)){x=!0;break}else F.nodeContains(E,B)&&(_=!0)}x||!((m=y.__tabsterElementFlags)===null||m===void 0)&&m.noDirectAriaHidden?v(y):!C&&!_&&g(y,!0)}else g(y,!1)}};f||c.forEach(w=>g(w,!1)),a.forEach(w=>g(w,!0)),o&&v(o),(e=this._aug)===null||e===void 0||e.map(w=>w.get()).forEach(w=>{w&&!h.get(w)&&g(w,!1)}),this._aug=p,this._augMap=h}_restoreModalizerFocus(e){const r=e==null?void 0:e.ownerDocument;if(!e||!r)return;const o=ne.getTabsterContext(this._tabster,e),n=o==null?void 0:o.modalizer,i=this.activeId;if(!n&&!i||n&&i===n.userId)return;const s=o==null?void 0:o.root.getElement();if(s){let a=this._tabster.focusable.findFirst({container:s,useActiveModalizer:!0});if(a){if(e.compareDocumentPosition(a)&document.DOCUMENT_POSITION_PRECEDING&&(a=this._tabster.focusable.findLast({container:s,useActiveModalizer:!0}),!a))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(a);return}}e.blur()}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const f8=["input","textarea","*[contenteditable]"].join(", ");class h8 extends Bo{constructor(e,r,o,n){super(r,e,la.Mover,n),this._onFocusDummyInput=i=>{var s,a;const l=this._element.get(),c=i.input;if(l&&c){const u=ne.getTabsterContext(this._tabster,l);let d;u&&(d=(s=ke.findNextTabbable(this._tabster,u,void 0,c,void 0,!i.isFirst,!0))===null||s===void 0?void 0:s.element);const f=(a=this._getMemorized())===null||a===void 0?void 0:a.get();f&&(d=f),d&&Tt(d)}},this._tabster=r,this._getMemorized=o,this._setHandlers(this._onFocusDummyInput)}}const fl=1,Gf=2,Xf=3;class p8 extends ni{constructor(e,r,o,n,i){var s;super(e,r,n),this._visible={},this._onIntersection=l=>{for(const c of l){const u=c.target,d=Li(this._win,u);let f,p=this._fullyVisible;if(c.intersectionRatio>=.25?(f=c.intersectionRatio>=.75?Rt.Visible:Rt.PartiallyVisible,f===Rt.Visible&&(p=d)):f=Rt.Invisible,this._visible[d]!==f){f===void 0?(delete this._visible[d],p===d&&delete this._fullyVisible):(this._visible[d]=f,this._fullyVisible=p);const h=this.getState(u);h&&u.dispatchEvent(new Gl(h))}}},this._win=e.getWindow,this.visibilityTolerance=(s=n.visibilityTolerance)!==null&&s!==void 0?s:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=o;const a=()=>n.memorizeCurrent?this._current:void 0;e.controlTab||(this.dummyManager=new h8(this._element,e,a,i))}dispose(){var e;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const r=this._win();this._setCurrentTimer&&(r.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(r.clearTimeout(this._updateTimer),delete this._updateTimer),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager}setCurrent(e){e?this._current=new ot(this._win,e):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var r;delete this._setCurrentTimer;const o=[];this._current!==this._prevCurrent&&(o.push(this._current),o.push(this._prevCurrent),this._prevCurrent=this._current);for(const n of o){const i=n==null?void 0:n.get();if(i&&((r=this._allElements)===null||r===void 0?void 0:r.get(i))===this){const s=this._props;if(i&&(s.visibilityAware!==void 0||s.trackState)){const a=this.getState(i);a&&i.dispatchEvent(new Gl(a))}}}}))}getCurrent(){var e;return((e=this._current)===null||e===void 0?void 0:e.get())||null}findNextTabbable(e,r,o,n){const i=this.getElement(),s=i&&Po(e)===i;if(!i)return null;let a=null,l=!1,c;if(this._props.tabbable||s||e&&!F.nodeContains(i,e)){const u={currentElement:e,referenceElement:r,container:i,ignoreAccessibility:n,useActiveModalizer:!0},d={};a=this._tabster.focusable[o?"findPrev":"findNext"](u,d),l=!!d.outOfDOMOrder,c=d.uncontrolled}return{element:a,uncontrolled:c,outOfDOMOrder:l}}acceptElement(e,r){var o,n;if(!ke.isTabbing)return!((o=r.currentCtx)===null||o===void 0)&&o.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:i,visibilityAware:s,hasDefault:a=!0}=this._props,l=this.getElement();if(l&&(i||s||a)&&(!F.nodeContains(l,r.from)||Po(r.from)===l)){let c;if(i){const u=(n=this._current)===null||n===void 0?void 0:n.get();u&&r.acceptCondition(u)&&(c=u)}if(!c&&a&&(c=this._tabster.focusable.findDefault({container:l,useActiveModalizer:!0})),!c&&s&&(c=this._tabster.focusable.findElement({container:l,useActiveModalizer:!0,isBackward:r.isBackward,acceptCondition:u=>{var d;const f=Li(this._win,u),p=this._visible[f];return l!==u&&!!(!((d=this._allElements)===null||d===void 0)&&d.get(u))&&r.acceptCondition(u)&&(p===Rt.Visible||p===Rt.PartiallyVisible&&(s===Rt.PartiallyVisible||!this._fullyVisible))}})),c)return r.found=!0,r.foundElement=c,r.rejectElementsFrom=l,r.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const e=this.getElement();if(this._unobserve||!e||typeof MutationObserver>"u")return;const r=this._win(),o=this._allElements=new WeakMap,n=this._tabster.focusable;let i=this._updateQueue=[];const s=F.createMutationObserver(p=>{for(const h of p){const g=h.target,v=h.removedNodes,w=h.addedNodes;if(h.type==="attributes")h.attributeName==="tabindex"&&i.push({element:g,type:Gf});else{for(let m=0;m{var g,v;const w=o.get(p);w&&h&&((g=this._intersectionObserver)===null||g===void 0||g.unobserve(p),o.delete(p)),!w&&!h&&(o.set(p,this),(v=this._intersectionObserver)===null||v===void 0||v.observe(p))},l=p=>{const h=n.isFocusable(p);o.get(p)?h||a(p,!0):h&&a(p)},c=p=>{const{mover:h}=f(p);if(h&&h!==this)if(h.getElement()===p&&n.isFocusable(p))a(p);else return;const g=au(r.document,p,v=>{const{mover:w,groupper:m}=f(v);if(w&&w!==this)return NodeFilter.FILTER_REJECT;const y=m==null?void 0:m.getFirst(!0);return m&&m.getElement()!==v&&y&&y!==v?NodeFilter.FILTER_REJECT:(n.isFocusable(v)&&a(v),NodeFilter.FILTER_SKIP)});if(g)for(g.currentNode=p;g.nextNode(););},u=p=>{o.get(p)&&a(p,!0);for(let g=F.getFirstElementChild(p);g;g=F.getNextElementSibling(g))u(g)},d=()=>{!this._updateTimer&&i.length&&(this._updateTimer=r.setTimeout(()=>{delete this._updateTimer;for(const{element:p,type:h}of i)switch(h){case Gf:l(p);break;case fl:c(p);break;case Xf:u(p);break}i=this._updateQueue=[]},0))},f=p=>{const h={};for(let g=p;g;g=F.getParentElement(g)){const v=We(this._tabster,g);if(v&&(v.groupper&&!h.groupper&&(h.groupper=v.groupper),v.mover)){h.mover=v.mover;break}}return h};i.push({element:e,type:fl}),d(),s.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{s.disconnect()}}getState(e){const r=Li(this._win,e);if(r in this._visible){const o=this._visible[r]||Rt.Invisible;return{isCurrent:this._current?this._current.get()===e:void 0,visibility:o}}}}function g8(t,e,r,o,n,i,s,a){const l=r{const o=this._win();o.addEventListener("keydown",this._onKeyDown,!0),o.addEventListener(rs,this._onMoveFocus),o.addEventListener(os,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=o=>{delete this._movers[o.id]},this._onFocus=o=>{var n;let i=o,s=o;for(let a=F.getParentElement(o);a;a=F.getParentElement(a)){const l=(n=We(this._tabster,a))===null||n===void 0?void 0:n.mover;l&&(l.setCurrent(s),i=void 0),!i&&this._tabster.focusable.isFocusable(a)&&(i=s=a)}},this._onKeyDown=async o=>{var n;if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(n=this._ignoredInputResolve)===null||n===void 0||n.call(this,!1),o.ctrlKey||o.altKey||o.shiftKey||o.metaKey)return;const i=o.key;let s;if(i===we.ArrowDown?s=ye.ArrowDown:i===we.ArrowRight?s=ye.ArrowRight:i===we.ArrowUp?s=ye.ArrowUp:i===we.ArrowLeft?s=ye.ArrowLeft:i===we.PageDown?s=ye.PageDown:i===we.PageUp?s=ye.PageUp:i===we.Home?s=ye.Home:i===we.End&&(s=ye.End),!s)return;const a=this._tabster.focusedElement.getFocusedElement();!a||await this._isIgnoredInput(a,i)||this._moveFocus(a,s,o)},this._onMoveFocus=o=>{var n;const i=o.composedPath()[0],s=(n=o.detail)===null||n===void 0?void 0:n.key;i&&s!==void 0&&!o.defaultPrevented&&(this._moveFocus(i,s),o.stopImmediatePropagation())},this._onMemorizedElement=o=>{var n;const i=o.composedPath()[0];let s=(n=o.detail)===null||n===void 0?void 0:n.memorizedElement;if(i){const a=ne.getTabsterContext(this._tabster,i),l=a==null?void 0:a.mover;l&&(s&&!F.nodeContains(l.getElement(),s)&&(s=void 0),l.setCurrent(s),o.stopImmediatePropagation())}},this._tabster=e,this._win=r,this._movers={},e.queueInit(this._init)}dispose(){var e;const r=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(e=this._ignoredInputResolve)===null||e===void 0||e.call(this,!1),this._ignoredInputTimer&&(r.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),r.removeEventListener("keydown",this._onKeyDown,!0),r.removeEventListener(rs,this._onMoveFocus),r.removeEventListener(os,this._onMemorizedElement),Object.keys(this._movers).forEach(o=>{this._movers[o]&&(this._movers[o].dispose(),delete this._movers[o])})}createMover(e,r,o){const n=new p8(this._tabster,e,this._onMoverDispose,r,o);return this._movers[n.id]=n,n}moveFocus(e,r){return this._moveFocus(e,r)}_moveFocus(e,r,o){var n,i;const s=this._tabster,a=ne.getTabsterContext(s,e,{checkRtl:!0});if(!a||!a.mover||a.excludedFromMover||o&&a.ignoreKeydown(o))return null;const l=a.mover,c=l.getElement();if(a.groupperBeforeMover){const E=a.groupper;if(E&&!E.isActive(!0)){for(let I=F.getParentElement(E.getElement());I&&I!==c;I=F.getParentElement(I))if(!((i=(n=We(s,I))===null||n===void 0?void 0:n.groupper)===null||i===void 0)&&i.isActive(!0))return null}else return null}if(!c)return null;const u=s.focusable,d=l.getProps(),f=d.direction||Cr.Both,p=f===Cr.Both,h=p||f===Cr.Vertical,g=p||f===Cr.Horizontal,v=f===Cr.GridLinear,w=v||f===Cr.Grid,m=d.cyclic;let y,C,x,_=0,B=0;if(w&&(x=e.getBoundingClientRect(),_=Math.ceil(x.left),B=Math.floor(x.right)),a.rtl&&(r===ye.ArrowRight?r=ye.ArrowLeft:r===ye.ArrowLeft&&(r=ye.ArrowRight)),r===ye.ArrowDown&&h||r===ye.ArrowRight&&(g||w))if(y=u.findNext({currentElement:e,container:c,useActiveModalizer:!0}),y&&w){const E=Math.ceil(y.getBoundingClientRect().left);!v&&B>E&&(y=void 0)}else!y&&m&&(y=u.findFirst({container:c,useActiveModalizer:!0}));else if(r===ye.ArrowUp&&h||r===ye.ArrowLeft&&(g||w))if(y=u.findPrev({currentElement:e,container:c,useActiveModalizer:!0}),y&&w){const E=Math.floor(y.getBoundingClientRect().right);!v&&E>_&&(y=void 0)}else!y&&m&&(y=u.findLast({container:c,useActiveModalizer:!0}));else if(r===ye.Home)w?u.findElement({container:c,currentElement:e,useActiveModalizer:!0,isBackward:!0,acceptCondition:E=>{var I;if(!u.isFocusable(E))return!1;const H=Math.ceil((I=E.getBoundingClientRect().left)!==null&&I!==void 0?I:0);return E!==e&&_<=H?!0:(y=E,!1)}}):y=u.findFirst({container:c,useActiveModalizer:!0});else if(r===ye.End)w?u.findElement({container:c,currentElement:e,useActiveModalizer:!0,acceptCondition:E=>{var I;if(!u.isFocusable(E))return!1;const H=Math.ceil((I=E.getBoundingClientRect().left)!==null&&I!==void 0?I:0);return E!==e&&_>=H?!0:(y=E,!1)}}):y=u.findLast({container:c,useActiveModalizer:!0});else if(r===ye.PageUp){if(u.findElement({currentElement:e,container:c,useActiveModalizer:!0,isBackward:!0,acceptCondition:E=>u.isFocusable(E)?qf(this._win,E,l.visibilityTolerance)?(y=E,!1):!0:!1}),w&&y){const E=Math.ceil(y.getBoundingClientRect().left);u.findElement({currentElement:y,container:c,useActiveModalizer:!0,acceptCondition:I=>{if(!u.isFocusable(I))return!1;const H=Math.ceil(I.getBoundingClientRect().left);return _=H?!0:(y=I,!1)}})}C=!1}else if(r===ye.PageDown){if(u.findElement({currentElement:e,container:c,useActiveModalizer:!0,acceptCondition:E=>u.isFocusable(E)?qf(this._win,E,l.visibilityTolerance)?(y=E,!1):!0:!1}),w&&y){const E=Math.ceil(y.getBoundingClientRect().left);u.findElement({currentElement:y,container:c,useActiveModalizer:!0,isBackward:!0,acceptCondition:I=>{if(!u.isFocusable(I))return!1;const H=Math.ceil(I.getBoundingClientRect().left);return _>H||E<=H?!0:(y=I,!1)}})}C=!0}else if(w){const E=r===ye.ArrowUp,I=_,H=Math.ceil(x.top),Oe=B,M=Math.floor(x.bottom);let Ge,Ae,Ie=0;u.findAll({container:c,currentElement:e,isBackward:E,onElement:Xe=>{const Ke=Xe.getBoundingClientRect(),Wo=Math.ceil(Ke.left),Iu=Math.ceil(Ke.top),va=Math.floor(Ke.right),Mu=Math.floor(Ke.bottom);if(E&&HIu)return!0;const ma=Math.ceil(Math.min(Oe,va))-Math.floor(Math.max(I,Wo)),zu=Math.ceil(Math.min(Oe-I,va-Wo));if(ma>0&&zu>=ma){const Zo=ma/zu;Zo>Ie&&(Ge=Xe,Ie=Zo)}else if(Ie===0){const Zo=g8(I,H,Oe,M,Wo,Iu,va,Mu);(Ae===void 0||Zo0)return!1;return!0}}),y=Ge}return y&&(!o||o&&c.dispatchEvent(new Vt({by:"mover",owner:c,next:y,relatedEvent:o})))?(C!==void 0&&H9(this._win,y,C),o&&(o.preventDefault(),o.stopImmediatePropagation()),Tt(y),y):null}async _isIgnoredInput(e,r){if(e.getAttribute("aria-expanded")==="true"&&e.hasAttribute("aria-activedescendant"))return!0;if(xg(e,f8)){let o=0,n=0,i=0,s;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"){const a=e.type;if(i=(e.value||"").length,a==="email"||a==="number"){if(i){const c=F.getSelection(e);if(c){const u=c.toString().length,d=r===we.ArrowLeft||r===we.ArrowUp;if(c.modify("extend",d?"backward":"forward","character"),u!==c.toString().length)return c.modify("extend",d?"forward":"backward","character"),!0;i=0}}}else{const c=e.selectionStart;if(c===null)return a==="hidden";o=c||0,n=e.selectionEnd||0}}else e.contentEditable==="true"&&(s=new(U9(this._win))(a=>{this._ignoredInputResolve=p=>{delete this._ignoredInputResolve,a(p)};const l=this._win();this._ignoredInputTimer&&l.clearTimeout(this._ignoredInputTimer);const{anchorNode:c,focusNode:u,anchorOffset:d,focusOffset:f}=F.getSelection(e)||{};this._ignoredInputTimer=l.setTimeout(()=>{var p,h,g;delete this._ignoredInputTimer;const{anchorNode:v,focusNode:w,anchorOffset:m,focusOffset:y}=F.getSelection(e)||{};if(v!==c||w!==u||m!==d||y!==f){(p=this._ignoredInputResolve)===null||p===void 0||p.call(this,!1);return}if(o=m||0,n=y||0,i=((h=e.textContent)===null||h===void 0?void 0:h.length)||0,v&&w&&F.nodeContains(e,v)&&F.nodeContains(e,w)&&v!==e){let C=!1;const x=_=>{if(_===v)C=!0;else if(_===w)return!0;const B=_.textContent;if(B&&!F.getFirstChild(_)){const I=B.length;C?w!==v&&(n+=I):(o+=I,n+=I)}let E=!1;for(let I=F.getFirstChild(_);I&&!E;I=I.nextSibling)E=x(I);return E};x(e)}(g=this._ignoredInputResolve)===null||g===void 0||g.call(this,!0)},0)}));if(s&&!await s||o!==n||o>0&&(r===we.ArrowLeft||r===we.ArrowUp||r===we.Home)||o"u")return()=>{};const n=e.getWindow;let i;const s=u=>{var d,f,p,h,g;const v=new Set;for(const w of u){const m=w.target,y=w.removedNodes,C=w.addedNodes;if(w.type==="attributes")w.attributeName===zt&&(v.has(m)||r(e,m));else{for(let x=0;xl(p,d));if(f)for(;f.nextNode(););}function l(u,d){var f;if(!u.getAttribute)return NodeFilter.FILTER_SKIP;const p=u.__tabsterElementUID;return p&&i&&(d?delete i[p]:(f=i[p])!==null&&f!==void 0||(i[p]=new ot(n,u))),(We(e,u)||u.hasAttribute(zt))&&r(e,u,d),NodeFilter.FILTER_SKIP}const c=F.createMutationObserver(s);return o&&a(n().document.body),c.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[zt]}),()=>{c.disconnect()}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class b8{constructor(e){this._isUncontrolledCompletely=e}isUncontrolledCompletely(e,r){var o;const n=(o=this._isUncontrolledCompletely)===null||o===void 0?void 0:o.call(this,e,r);return n===void 0?r:n}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const y8=10;class w8 extends ni{constructor(e,r,o){var n;if(super(e,r,o),this._hasFocus=!1,this._onFocusOut=i=>{var s;const a=(s=this._element)===null||s===void 0?void 0:s.get();a&&i.relatedTarget===null&&a.dispatchEvent(new Xl),a&&!F.nodeContains(a,i.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===Mn.Source){const i=(n=this._element)===null||n===void 0?void 0:n.get();i==null||i.addEventListener("focusout",this._onFocusOut),i==null||i.addEventListener("focusin",this._onFocusIn),this._hasFocus=F.nodeContains(i,i&&F.getActiveElement(i.ownerDocument))}}dispose(){var e;if(this._props.type===Mn.Source){const r=(e=this._element)===null||e===void 0?void 0:e.get();r==null||r.removeEventListener("focusout",this._onFocusOut),r==null||r.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new Xl)}}}class k8{constructor(e){this._history=[],this._onRestoreFocus=r=>{this._focusedElementState.cancelAsyncFocus(Ft.Restorer);const o=r.composedPath()[0];o&&this._focusedElementState.requestAsyncFocus(Ft.Restorer,()=>this._restoreFocus(o),0)},this._onFocusIn=r=>{var o;if(!r)return;const n=We(this._tabster,r);((o=n==null?void 0:n.restorer)===null||o===void 0?void 0:o.getProps().type)===Mn.Target&&this._addToHistory(r)},this._restoreFocus=r=>{var o;const n=this._getWindow().document;if(F.getActiveElement(n)!==n.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&F.nodeContains(n.body,r))return;let i=this._history.pop();for(;i&&!F.nodeContains(n.body,F.getParentElement(i.get()));)i=this._history.pop();(o=i==null?void 0:i.get())===null||o===void 0||o.focus()},this._tabster=e,this._getWindow=e.getWindow,this._getWindow().addEventListener(is,this._onRestoreFocus),this._keyboardNavState=e.keyboardNavigation,this._focusedElementState=e.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const e=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(Ft.Restorer),e.removeEventListener(is,this._onRestoreFocus)}_addToHistory(e){var r;((r=this._history[this._history.length-1])===null||r===void 0?void 0:r.get())!==e&&(this._history.length>y8&&this._history.shift(),this._history.push(new ot(this._getWindow,e)))}createRestorer(e,r){const o=new w8(this._tabster,e,r);return r.type===Mn.Target&&F.getActiveElement(e.ownerDocument)===e&&this._addToHistory(e),o}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class x8{constructor(e){this.keyboardNavigation=e.keyboardNavigation,this.focusedElement=e.focusedElement,this.focusable=e.focusable,this.root=e.root,this.uncontrolled=e.uncontrolled,this.core=e}}class C8{constructor(e,r){var o,n;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="7.3.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=M9(e),this._win=e;const i=this.getWindow;r!=null&&r.DOMAPI&&D9({...r.DOMAPI}),this.keyboardNavigation=new a8(i),this.focusedElement=new ke(this,i),this.focusable=new r8(this),this.root=new ne(this,r==null?void 0:r.autoRoot),this.uncontrolled=new b8((r==null?void 0:r.checkUncontrolledCompletely)||(r==null?void 0:r.checkUncontrolledTrappingFocus)),this.controlTab=(o=r==null?void 0:r.controlTab)!==null&&o!==void 0?o:!0,this.rootDummyInputs=!!(r!=null&&r.rootDummyInputs),this._dummyObserver=new G9(i),this.getParent=(n=r==null?void 0:r.getParent)!==null&&n!==void 0?n:F.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const a=i().document;this._unobserve=m8(a,this,Yp,s)}}},bg(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(e){var r;e&&(this.getParent=(r=e.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(e,r){const o=new x8(this);return e||this._wrappers.add(o),this._mergeProps(r),o}disposeTabster(e,r){r?this._wrappers.clear():this._wrappers.delete(e),this._wrappers.size===0&&this.dispose()}dispose(){var e,r,o,n,i,s,a,l;this.internal.stopObserver();const c=this._win;c==null||c.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],c&&this._forgetMemorizedTimer&&(c.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(e=this.outline)===null||e===void 0||e.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(o=this.deloser)===null||o===void 0||o.dispose(),(n=this.groupper)===null||n===void 0||n.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(s=this.modalizer)===null||s===void 0||s.dispose(),(a=this.observedElement)===null||a===void 0||a.dispose(),(l=this.restorer)===null||l===void 0||l.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),V9(this.getWindow),Uf(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),c&&(I9(c),delete c.__tabsterInstance,delete this._win)}storageEntry(e,r){const o=this._storage;let n=o.get(e);return n?r===!1&&Object.keys(n).length===0&&o.delete(e):r===!0&&(n={},o.set(e,n)),n}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let e=this._forgetMemorizedElements.shift();e;e=this._forgetMemorizedElements.shift())Uf(this.getWindow,e),ke.forgetMemorized(this.focusedElement,e)},0),mg(this.getWindow,!0)))}queueInit(e){var r;this._win&&(this._initQueue.push(e),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const e=this._initQueue;this._initQueue=[],e.forEach(r=>r())}}function S8(t,e){let r=F8(t);return r?r.createTabster(!1,e):(r=new C8(t,e),t.__tabsterInstance=r,r.createTabster())}function $F(t){const e=t.core;return e.groupper||(e.groupper=new s8(e,e.getWindow)),e.groupper}function _8(t){const e=t.core;return e.mover||(e.mover=new v8(e,e.getWindow)),e.mover}function B8(t,e,r){const o=t.core;return o.modalizer||(o.modalizer=new d8(o,e,r)),o.modalizer}function cu(t){const e=t.core;return e.restorer||(e.restorer=new k8(e)),e.restorer}function P8(t,e){t.core.disposeTabster(t,e)}function F8(t){return t.__tabsterInstance}const Ho=()=>{const{targetDocument:t}=bt(),e=(t==null?void 0:t.defaultView)||void 0,r=e==null?void 0:e.__tabsterShadowDOMAPI,o=b.useMemo(()=>e?S8(e,{autoRoot:{},controlTab:!1,getParent:jp,checkUncontrolledTrappingFocus:n=>{var i;return!!(!((i=n.firstElementChild)===null||i===void 0)&&i.hasAttribute("data-is-focus-trap-zone-bumper"))},DOMAPI:r}):null,[e,r]);return ru(()=>()=>{o&&P8(o)},[o]),o},Ql=t=>{Ho();const e=ca(t,!0);return b.useMemo(()=>({[Bt.TabsterAttributeName]:e}),[e])},_g=(t={})=>{const{circular:e,axis:r,memorizeCurrent:o=!0,tabbable:n,ignoreDefaultKeydown:i,unstable_hasDefault:s}=t,a=Ho();return a&&_8(a),Ql({mover:{cyclic:!!e,direction:T8(r??"vertical"),memorizeCurrent:o,tabbable:n,hasDefault:s},...i&&{focusable:{ignoreKeydown:i}}})};function T8(t){switch(t){case"horizontal":return Bt.MoverDirections.Horizontal;case"grid":return Bt.MoverDirections.Grid;case"grid-linear":return Bt.MoverDirections.GridLinear;case"both":return Bt.MoverDirections.Both;case"vertical":default:return Bt.MoverDirections.Vertical}}const ua=()=>{const t=Ho(),{targetDocument:e}=bt(),r=b.useCallback((a,l)=>(t==null?void 0:t.focusable.findAll({container:a,acceptCondition:l}))||[],[t]),o=b.useCallback(a=>t==null?void 0:t.focusable.findFirst({container:a}),[t]),n=b.useCallback(a=>t==null?void 0:t.focusable.findLast({container:a}),[t]),i=b.useCallback((a,l={})=>{if(!t||!e)return null;const{container:c=e.body}=l;return t.focusable.findNext({currentElement:a,container:c})},[t,e]),s=b.useCallback((a,l={})=>{if(!t||!e)return null;const{container:c=e.body}=l;return t.focusable.findPrev({currentElement:a,container:c})},[t,e]);return{findAllFocusable:r,findFirstFocusable:o,findLastFocusable:n,findNextFocusable:i,findPrevFocusable:s}},Kf="data-fui-focus-visible",AF="data-fui-focus-within";function E8(t,e){if(Bg(t))return()=>{};const r={current:void 0},o=Gp(e);function n(l){o.isNavigatingWithKeyboard()&&On(l)&&(r.current=l,l.setAttribute(Kf,""))}function i(){r.current&&(r.current.removeAttribute(Kf),r.current=void 0)}o.subscribe(l=>{l||i()});const s=l=>{i();const c=l.composedPath()[0];n(c)},a=l=>{(!l.relatedTarget||On(l.relatedTarget)&&!t.contains(l.relatedTarget))&&i()};return t.addEventListener(Ht,s),t.addEventListener("focusout",a),t.focusVisible=!0,t.contains(e.document.activeElement)&&n(e.document.activeElement),()=>{i(),t.removeEventListener(Ht,s),t.removeEventListener("focusout",a),delete t.focusVisible,Xp(o)}}function Bg(t){return t?t.focusVisible?!0:Bg(t==null?void 0:t.parentElement):!1}function Pg(t={}){const e=bt(),r=b.useRef(null);var o;const n=(o=t.targetDocument)!==null&&o!==void 0?o:e.targetDocument;return b.useEffect(()=>{if(n!=null&&n.defaultView&&r.current)return E8(r.current,n.defaultView)},[r,n]),r}const Fg=(t={})=>{const{trapFocus:e,alwaysFocusable:r,legacyTrapFocus:o}=t,n=Ho();n&&(B8(n),cu(n));const i=aa("modal-",t.id),s=Ql({restorer:{type:Bt.RestorerTypes.Source},...e&&{modalizer:{id:i,isOthersAccessible:!e,isAlwaysAccessible:r,isTrapped:o&&e}}}),a=Ql({restorer:{type:Bt.RestorerTypes.Target}});return{modalAttributes:s,triggerAttributes:a}};function $8(){const t=Ho();return t&&cu(t),ca({restorer:{type:Bt.RestorerTypes.Target}})}function A8(){const t=Ho();return t&&cu(t),ca({restorer:{type:Bt.RestorerTypes.Source}})}const k={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},pe={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},De={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},Tg={5:"rgba(26, 26, 26, 0.05)",10:"rgba(26, 26, 26, 0.1)",20:"rgba(26, 26, 26, 0.2)",30:"rgba(26, 26, 26, 0.3)",40:"rgba(26, 26, 26, 0.4)",50:"rgba(26, 26, 26, 0.5)",60:"rgba(26, 26, 26, 0.6)",70:"rgba(26, 26, 26, 0.7)",80:"rgba(26, 26, 26, 0.8)",90:"rgba(26, 26, 26, 0.9)"},Eg={5:"rgba(31, 31, 31, 0.05)",10:"rgba(31, 31, 31, 0.1)",20:"rgba(31, 31, 31, 0.2)",30:"rgba(31, 31, 31, 0.3)",40:"rgba(31, 31, 31, 0.4)",50:"rgba(31, 31, 31, 0.5)",60:"rgba(31, 31, 31, 0.6)",70:"rgba(31, 31, 31, 0.7)",80:"rgba(31, 31, 31, 0.8)",90:"rgba(31, 31, 31, 0.9)"},as={5:"rgba(36, 36, 36, 0.05)",10:"rgba(36, 36, 36, 0.1)",20:"rgba(36, 36, 36, 0.2)",30:"rgba(36, 36, 36, 0.3)",40:"rgba(36, 36, 36, 0.4)",50:"rgba(36, 36, 36, 0.5)",60:"rgba(36, 36, 36, 0.6)",70:"rgba(36, 36, 36, 0.7)",80:"rgba(36, 36, 36, 0.8)",90:"rgba(36, 36, 36, 0.9)"},D="#ffffff",po="#000000",N8={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},$g={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},L8={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},R8={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},D8={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},O8={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},I8={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},M8={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},z8={shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},V8={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},H8={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},j8={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},q8={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},U8={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},W8={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},Ag={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},Z8={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},G8={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},X8={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},K8={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},J8={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},Q8={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},Y8={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},ek={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},tk={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},rk={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},ok={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},nk={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},ik={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},sk={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},ak={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},lk={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},ck={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},uk={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},dk={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},fk={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},J={red:L8,green:Ag,darkOrange:R8,yellow:z8,berry:nk,lightGreen:W8,marigold:M8},sr={darkRed:N8,cranberry:$g,pumpkin:D8,peach:I8,gold:V8,brass:H8,brown:j8,forest:q8,seafoam:U8,darkGreen:Z8,lightTeal:G8,teal:X8,steel:K8,blue:J8,royalBlue:Q8,cornflower:Y8,navy:ek,lavender:tk,purple:rk,grape:ok,lilac:ik,pink:sk,magenta:ak,plum:lk,beige:ck,mink:uk,platinum:dk,anchor:fk},X={cranberry:$g,green:Ag,orange:O8},Ng=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],Lg=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],Ye={success:"green",warning:"orange",danger:"cranberry"},ii=Ng.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorPalette${r}Background1`]:J[e].tint60,[`colorPalette${r}Background2`]:J[e].tint40,[`colorPalette${r}Background3`]:J[e].primary,[`colorPalette${r}Foreground1`]:J[e].shade10,[`colorPalette${r}Foreground2`]:J[e].shade30,[`colorPalette${r}Foreground3`]:J[e].primary,[`colorPalette${r}BorderActive`]:J[e].primary,[`colorPalette${r}Border1`]:J[e].tint40,[`colorPalette${r}Border2`]:J[e].primary};return Object.assign(t,o)},{});ii.colorPaletteYellowForeground1=J.yellow.shade30;ii.colorPaletteRedForegroundInverted=J.red.tint20;ii.colorPaletteGreenForegroundInverted=J.green.tint20;ii.colorPaletteYellowForegroundInverted=J.yellow.tint40;const hk=Lg.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorPalette${r}Background2`]:sr[e].tint40,[`colorPalette${r}Foreground2`]:sr[e].shade30,[`colorPalette${r}BorderActive`]:sr[e].primary};return Object.assign(t,o)},{}),pk={...ii,...hk},jo=Object.entries(Ye).reduce((t,[e,r])=>{const o=e.slice(0,1).toUpperCase()+e.slice(1),n={[`colorStatus${o}Background1`]:X[r].tint60,[`colorStatus${o}Background2`]:X[r].tint40,[`colorStatus${o}Background3`]:X[r].primary,[`colorStatus${o}Foreground1`]:X[r].shade10,[`colorStatus${o}Foreground2`]:X[r].shade30,[`colorStatus${o}Foreground3`]:X[r].primary,[`colorStatus${o}ForegroundInverted`]:X[r].tint30,[`colorStatus${o}BorderActive`]:X[r].primary,[`colorStatus${o}Border1`]:X[r].tint40,[`colorStatus${o}Border2`]:X[r].primary};return Object.assign(t,n)},{});jo.colorStatusDangerBackground3Hover=X[Ye.danger].shade10;jo.colorStatusDangerBackground3Pressed=X[Ye.danger].shade20;jo.colorStatusWarningForeground1=X[Ye.warning].shade20;jo.colorStatusWarningForeground3=X[Ye.warning].shade20;jo.colorStatusWarningBorder2=X[Ye.warning].shade20;const gk=t=>({colorNeutralForeground1:k[14],colorNeutralForeground1Hover:k[14],colorNeutralForeground1Pressed:k[14],colorNeutralForeground1Selected:k[14],colorNeutralForeground2:k[26],colorNeutralForeground2Hover:k[14],colorNeutralForeground2Pressed:k[14],colorNeutralForeground2Selected:k[14],colorNeutralForeground2BrandHover:t[80],colorNeutralForeground2BrandPressed:t[70],colorNeutralForeground2BrandSelected:t[80],colorNeutralForeground3:k[38],colorNeutralForeground3Hover:k[26],colorNeutralForeground3Pressed:k[26],colorNeutralForeground3Selected:k[26],colorNeutralForeground3BrandHover:t[80],colorNeutralForeground3BrandPressed:t[70],colorNeutralForeground3BrandSelected:t[80],colorNeutralForeground4:k[44],colorNeutralForegroundDisabled:k[74],colorNeutralForegroundInvertedDisabled:pe[40],colorBrandForegroundLink:t[70],colorBrandForegroundLinkHover:t[60],colorBrandForegroundLinkPressed:t[40],colorBrandForegroundLinkSelected:t[70],colorNeutralForeground2Link:k[26],colorNeutralForeground2LinkHover:k[14],colorNeutralForeground2LinkPressed:k[14],colorNeutralForeground2LinkSelected:k[14],colorCompoundBrandForeground1:t[80],colorCompoundBrandForeground1Hover:t[70],colorCompoundBrandForeground1Pressed:t[60],colorBrandForeground1:t[80],colorBrandForeground2:t[70],colorBrandForeground2Hover:t[60],colorBrandForeground2Pressed:t[30],colorNeutralForeground1Static:k[14],colorNeutralForegroundStaticInverted:D,colorNeutralForegroundInverted:D,colorNeutralForegroundInvertedHover:D,colorNeutralForegroundInvertedPressed:D,colorNeutralForegroundInvertedSelected:D,colorNeutralForegroundInverted2:D,colorNeutralForegroundOnBrand:D,colorNeutralForegroundInvertedLink:D,colorNeutralForegroundInvertedLinkHover:D,colorNeutralForegroundInvertedLinkPressed:D,colorNeutralForegroundInvertedLinkSelected:D,colorBrandForegroundInverted:t[100],colorBrandForegroundInvertedHover:t[110],colorBrandForegroundInvertedPressed:t[100],colorBrandForegroundOnLight:t[80],colorBrandForegroundOnLightHover:t[70],colorBrandForegroundOnLightPressed:t[50],colorBrandForegroundOnLightSelected:t[60],colorNeutralBackground1:D,colorNeutralBackground1Hover:k[96],colorNeutralBackground1Pressed:k[88],colorNeutralBackground1Selected:k[92],colorNeutralBackground2:k[98],colorNeutralBackground2Hover:k[94],colorNeutralBackground2Pressed:k[86],colorNeutralBackground2Selected:k[90],colorNeutralBackground3:k[96],colorNeutralBackground3Hover:k[92],colorNeutralBackground3Pressed:k[84],colorNeutralBackground3Selected:k[88],colorNeutralBackground4:k[94],colorNeutralBackground4Hover:k[98],colorNeutralBackground4Pressed:k[96],colorNeutralBackground4Selected:D,colorNeutralBackground5:k[92],colorNeutralBackground5Hover:k[96],colorNeutralBackground5Pressed:k[94],colorNeutralBackground5Selected:k[98],colorNeutralBackground6:k[90],colorNeutralBackgroundInverted:k[16],colorNeutralBackgroundStatic:k[20],colorNeutralBackgroundAlpha:pe[50],colorNeutralBackgroundAlpha2:pe[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:k[96],colorSubtleBackgroundPressed:k[88],colorSubtleBackgroundSelected:k[92],colorSubtleBackgroundLightAlphaHover:pe[70],colorSubtleBackgroundLightAlphaPressed:pe[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:De[10],colorSubtleBackgroundInvertedPressed:De[30],colorSubtleBackgroundInvertedSelected:De[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:k[94],colorNeutralBackgroundInvertedDisabled:pe[10],colorNeutralStencil1:k[90],colorNeutralStencil2:k[98],colorNeutralStencil1Alpha:De[10],colorNeutralStencil2Alpha:De[5],colorBackgroundOverlay:De[40],colorScrollbarOverlay:De[50],colorBrandBackground:t[80],colorBrandBackgroundHover:t[70],colorBrandBackgroundPressed:t[40],colorBrandBackgroundSelected:t[60],colorCompoundBrandBackground:t[80],colorCompoundBrandBackgroundHover:t[70],colorCompoundBrandBackgroundPressed:t[60],colorBrandBackgroundStatic:t[80],colorBrandBackground2:t[160],colorBrandBackground2Hover:t[150],colorBrandBackground2Pressed:t[130],colorBrandBackground3Static:t[60],colorBrandBackground4Static:t[40],colorBrandBackgroundInverted:D,colorBrandBackgroundInvertedHover:t[160],colorBrandBackgroundInvertedPressed:t[140],colorBrandBackgroundInvertedSelected:t[150],colorNeutralCardBackground:k[98],colorNeutralCardBackgroundHover:D,colorNeutralCardBackgroundPressed:k[96],colorNeutralCardBackgroundSelected:k[92],colorNeutralCardBackgroundDisabled:k[94],colorNeutralStrokeAccessible:k[38],colorNeutralStrokeAccessibleHover:k[34],colorNeutralStrokeAccessiblePressed:k[30],colorNeutralStrokeAccessibleSelected:t[80],colorNeutralStroke1:k[82],colorNeutralStroke1Hover:k[78],colorNeutralStroke1Pressed:k[70],colorNeutralStroke1Selected:k[74],colorNeutralStroke2:k[88],colorNeutralStroke3:k[94],colorNeutralStrokeSubtle:k[88],colorNeutralStrokeOnBrand:D,colorNeutralStrokeOnBrand2:D,colorNeutralStrokeOnBrand2Hover:D,colorNeutralStrokeOnBrand2Pressed:D,colorNeutralStrokeOnBrand2Selected:D,colorBrandStroke1:t[80],colorBrandStroke2:t[140],colorBrandStroke2Hover:t[120],colorBrandStroke2Pressed:t[80],colorBrandStroke2Contrast:t[140],colorCompoundBrandStroke:t[80],colorCompoundBrandStrokeHover:t[70],colorCompoundBrandStrokePressed:t[60],colorNeutralStrokeDisabled:k[88],colorNeutralStrokeInvertedDisabled:pe[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:De[5],colorNeutralStrokeAlpha2:pe[20],colorStrokeFocus1:D,colorStrokeFocus2:po,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),uu={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},du={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},fu={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},hu={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},pu={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},gu={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},vu={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},xe={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},mu={spacingHorizontalNone:xe.none,spacingHorizontalXXS:xe.xxs,spacingHorizontalXS:xe.xs,spacingHorizontalSNudge:xe.sNudge,spacingHorizontalS:xe.s,spacingHorizontalMNudge:xe.mNudge,spacingHorizontalM:xe.m,spacingHorizontalL:xe.l,spacingHorizontalXL:xe.xl,spacingHorizontalXXL:xe.xxl,spacingHorizontalXXXL:xe.xxxl},bu={spacingVerticalNone:xe.none,spacingVerticalXXS:xe.xxs,spacingVerticalXS:xe.xs,spacingVerticalSNudge:xe.sNudge,spacingVerticalS:xe.s,spacingVerticalMNudge:xe.mNudge,spacingVerticalM:xe.m,spacingVerticalL:xe.l,spacingVerticalXL:xe.xl,spacingVerticalXXL:xe.xxl,spacingVerticalXXXL:xe.xxxl},yu={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},ut={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackground3Static:"var(--colorBrandBackground3Static)",colorBrandBackground4Static:"var(--colorBrandBackground4Static)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralCardBackground:"var(--colorNeutralCardBackground)",colorNeutralCardBackgroundHover:"var(--colorNeutralCardBackgroundHover)",colorNeutralCardBackgroundPressed:"var(--colorNeutralCardBackgroundPressed)",colorNeutralCardBackgroundSelected:"var(--colorNeutralCardBackgroundSelected)",colorNeutralCardBackgroundDisabled:"var(--colorNeutralCardBackgroundDisabled)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerBackground3Hover:"var(--colorStatusDangerBackground3Hover)",colorStatusDangerBackground3Pressed:"var(--colorStatusDangerBackground3Pressed)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function Fo(t,e,r=""){return{[`shadow2${r}`]:`0 0 2px ${t}, 0 1px 2px ${e}`,[`shadow4${r}`]:`0 0 2px ${t}, 0 2px 4px ${e}`,[`shadow8${r}`]:`0 0 2px ${t}, 0 4px 8px ${e}`,[`shadow16${r}`]:`0 0 2px ${t}, 0 8px 16px ${e}`,[`shadow28${r}`]:`0 0 8px ${t}, 0 14px 28px ${e}`,[`shadow64${r}`]:`0 0 8px ${t}, 0 32px 64px ${e}`}}const Rg=t=>{const e=gk(t);return{...uu,...hu,...pu,...vu,...gu,...yu,...mu,...bu,...fu,...du,...e,...pk,...jo,...Fo(e.colorNeutralShadowAmbient,e.colorNeutralShadowKey),...Fo(e.colorBrandShadowAmbient,e.colorBrandShadowKey,"Brand")}},Dg={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},Og={10:"#2b2b40",20:"#2f2f4a",30:"#333357",40:"#383966",50:"#3d3e78",60:"#444791",70:"#4f52b2",80:"#5b5fc7",90:"#7579eb",100:"#7f85f5",110:"#9299f7",120:"#aab1fa",130:"#b6bcfa",140:"#c5cbfa",150:"#dce0fa",160:"#e8ebfa"},vk=Rg(Og),Nt=Ng.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorPalette${r}Background1`]:J[e].shade40,[`colorPalette${r}Background2`]:J[e].shade30,[`colorPalette${r}Background3`]:J[e].primary,[`colorPalette${r}Foreground1`]:J[e].tint30,[`colorPalette${r}Foreground2`]:J[e].tint40,[`colorPalette${r}Foreground3`]:J[e].tint20,[`colorPalette${r}BorderActive`]:J[e].tint30,[`colorPalette${r}Border1`]:J[e].primary,[`colorPalette${r}Border2`]:J[e].tint20};return Object.assign(t,o)},{});Nt.colorPaletteRedForeground3=J.red.tint30;Nt.colorPaletteRedBorder2=J.red.tint30;Nt.colorPaletteGreenForeground3=J.green.tint40;Nt.colorPaletteGreenBorder2=J.green.tint40;Nt.colorPaletteDarkOrangeForeground3=J.darkOrange.tint30;Nt.colorPaletteDarkOrangeBorder2=J.darkOrange.tint30;Nt.colorPaletteRedForegroundInverted=J.red.primary;Nt.colorPaletteGreenForegroundInverted=J.green.primary;Nt.colorPaletteYellowForegroundInverted=J.yellow.shade30;const wu=Lg.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorPalette${r}Background2`]:sr[e].shade30,[`colorPalette${r}Foreground2`]:sr[e].tint40,[`colorPalette${r}BorderActive`]:sr[e].tint30};return Object.assign(t,o)},{});wu.colorPaletteDarkRedBackground2=sr.darkRed.shade20;wu.colorPalettePlumBackground2=sr.plum.shade20;const Ig={...Nt,...wu},Jt=Object.entries(Ye).reduce((t,[e,r])=>{const o=e.slice(0,1).toUpperCase()+e.slice(1),n={[`colorStatus${o}Background1`]:X[r].shade40,[`colorStatus${o}Background2`]:X[r].shade30,[`colorStatus${o}Background3`]:X[r].primary,[`colorStatus${o}Foreground1`]:X[r].tint30,[`colorStatus${o}Foreground2`]:X[r].tint40,[`colorStatus${o}Foreground3`]:X[r].tint20,[`colorStatus${o}BorderActive`]:X[r].tint30,[`colorStatus${o}ForegroundInverted`]:X[r].shade10,[`colorStatus${o}Border1`]:X[r].primary,[`colorStatus${o}Border2`]:X[r].tint20};return Object.assign(t,n)},{});Jt.colorStatusDangerBackground3Hover=X[Ye.danger].shade10;Jt.colorStatusDangerBackground3Pressed=X[Ye.danger].shade20;Jt.colorStatusDangerForeground3=X[Ye.danger].tint40;Jt.colorStatusDangerBorder2=X[Ye.danger].tint30;Jt.colorStatusSuccessForeground3=X[Ye.success].tint40;Jt.colorStatusSuccessBorder2=X[Ye.success].tint40;Jt.colorStatusWarningForegroundInverted=X[Ye.warning].shade20;const mk=t=>({colorNeutralForeground1:D,colorNeutralForeground1Hover:D,colorNeutralForeground1Pressed:D,colorNeutralForeground1Selected:D,colorNeutralForeground2:k[84],colorNeutralForeground2Hover:D,colorNeutralForeground2Pressed:D,colorNeutralForeground2Selected:D,colorNeutralForeground2BrandHover:t[100],colorNeutralForeground2BrandPressed:t[90],colorNeutralForeground2BrandSelected:t[100],colorNeutralForeground3:k[68],colorNeutralForeground3Hover:k[84],colorNeutralForeground3Pressed:k[84],colorNeutralForeground3Selected:k[84],colorNeutralForeground3BrandHover:t[100],colorNeutralForeground3BrandPressed:t[90],colorNeutralForeground3BrandSelected:t[100],colorNeutralForeground4:k[60],colorNeutralForegroundDisabled:k[36],colorNeutralForegroundInvertedDisabled:pe[40],colorBrandForegroundLink:t[100],colorBrandForegroundLinkHover:t[110],colorBrandForegroundLinkPressed:t[90],colorBrandForegroundLinkSelected:t[100],colorNeutralForeground2Link:k[84],colorNeutralForeground2LinkHover:D,colorNeutralForeground2LinkPressed:D,colorNeutralForeground2LinkSelected:D,colorCompoundBrandForeground1:t[100],colorCompoundBrandForeground1Hover:t[110],colorCompoundBrandForeground1Pressed:t[90],colorBrandForeground1:t[100],colorBrandForeground2:t[120],colorBrandForeground2Hover:t[130],colorBrandForeground2Pressed:t[160],colorNeutralForeground1Static:k[14],colorNeutralForegroundStaticInverted:D,colorNeutralForegroundInverted:k[14],colorNeutralForegroundInvertedHover:k[14],colorNeutralForegroundInvertedPressed:k[14],colorNeutralForegroundInvertedSelected:k[14],colorNeutralForegroundInverted2:k[14],colorNeutralForegroundOnBrand:D,colorNeutralForegroundInvertedLink:D,colorNeutralForegroundInvertedLinkHover:D,colorNeutralForegroundInvertedLinkPressed:D,colorNeutralForegroundInvertedLinkSelected:D,colorBrandForegroundInverted:t[80],colorBrandForegroundInvertedHover:t[70],colorBrandForegroundInvertedPressed:t[60],colorBrandForegroundOnLight:t[80],colorBrandForegroundOnLightHover:t[70],colorBrandForegroundOnLightPressed:t[50],colorBrandForegroundOnLightSelected:t[60],colorNeutralBackground1:k[16],colorNeutralBackground1Hover:k[24],colorNeutralBackground1Pressed:k[12],colorNeutralBackground1Selected:k[22],colorNeutralBackground2:k[14],colorNeutralBackground2Hover:k[22],colorNeutralBackground2Pressed:k[10],colorNeutralBackground2Selected:k[20],colorNeutralBackground3:k[12],colorNeutralBackground3Hover:k[20],colorNeutralBackground3Pressed:k[8],colorNeutralBackground3Selected:k[18],colorNeutralBackground4:k[8],colorNeutralBackground4Hover:k[16],colorNeutralBackground4Pressed:k[4],colorNeutralBackground4Selected:k[14],colorNeutralBackground5:k[4],colorNeutralBackground5Hover:k[12],colorNeutralBackground5Pressed:po,colorNeutralBackground5Selected:k[10],colorNeutralBackground6:k[20],colorNeutralBackgroundInverted:D,colorNeutralBackgroundStatic:k[24],colorNeutralBackgroundAlpha:Tg[50],colorNeutralBackgroundAlpha2:Eg[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:k[22],colorSubtleBackgroundPressed:k[18],colorSubtleBackgroundSelected:k[20],colorSubtleBackgroundLightAlphaHover:as[80],colorSubtleBackgroundLightAlphaPressed:as[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:De[10],colorSubtleBackgroundInvertedPressed:De[30],colorSubtleBackgroundInvertedSelected:De[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:k[8],colorNeutralBackgroundInvertedDisabled:pe[10],colorNeutralStencil1:k[34],colorNeutralStencil2:k[20],colorNeutralStencil1Alpha:pe[10],colorNeutralStencil2Alpha:pe[5],colorBackgroundOverlay:De[50],colorScrollbarOverlay:pe[60],colorBrandBackground:t[70],colorBrandBackgroundHover:t[80],colorBrandBackgroundPressed:t[40],colorBrandBackgroundSelected:t[60],colorCompoundBrandBackground:t[100],colorCompoundBrandBackgroundHover:t[110],colorCompoundBrandBackgroundPressed:t[90],colorBrandBackgroundStatic:t[80],colorBrandBackground2:t[20],colorBrandBackground2Hover:t[40],colorBrandBackground2Pressed:t[10],colorBrandBackground3Static:t[60],colorBrandBackground4Static:t[40],colorBrandBackgroundInverted:D,colorBrandBackgroundInvertedHover:t[160],colorBrandBackgroundInvertedPressed:t[140],colorBrandBackgroundInvertedSelected:t[150],colorNeutralCardBackground:k[20],colorNeutralCardBackgroundHover:k[24],colorNeutralCardBackgroundPressed:k[18],colorNeutralCardBackgroundSelected:k[22],colorNeutralCardBackgroundDisabled:k[8],colorNeutralStrokeAccessible:k[68],colorNeutralStrokeAccessibleHover:k[74],colorNeutralStrokeAccessiblePressed:k[70],colorNeutralStrokeAccessibleSelected:t[100],colorNeutralStroke1:k[40],colorNeutralStroke1Hover:k[46],colorNeutralStroke1Pressed:k[42],colorNeutralStroke1Selected:k[44],colorNeutralStroke2:k[32],colorNeutralStroke3:k[24],colorNeutralStrokeSubtle:k[4],colorNeutralStrokeOnBrand:k[16],colorNeutralStrokeOnBrand2:D,colorNeutralStrokeOnBrand2Hover:D,colorNeutralStrokeOnBrand2Pressed:D,colorNeutralStrokeOnBrand2Selected:D,colorBrandStroke1:t[100],colorBrandStroke2:t[50],colorBrandStroke2Hover:t[50],colorBrandStroke2Pressed:t[30],colorBrandStroke2Contrast:t[50],colorCompoundBrandStroke:t[90],colorCompoundBrandStrokeHover:t[100],colorCompoundBrandStrokePressed:t[80],colorNeutralStrokeDisabled:k[26],colorNeutralStrokeInvertedDisabled:pe[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:pe[10],colorNeutralStrokeAlpha2:pe[20],colorStrokeFocus1:po,colorStrokeFocus2:D,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),bk=t=>{const e=mk(t);return{...uu,...hu,...pu,...vu,...gu,...yu,...mu,...bu,...fu,...du,...e,...Ig,...Jt,...Fo(e.colorNeutralShadowAmbient,e.colorNeutralShadowKey),...Fo(e.colorBrandShadowAmbient,e.colorBrandShadowKey,"Brand")}},yk=bk(Og),Mg=Rg(Dg),wk=t=>({colorNeutralForeground1:D,colorNeutralForeground1Hover:D,colorNeutralForeground1Pressed:D,colorNeutralForeground1Selected:D,colorNeutralForeground2:k[84],colorNeutralForeground2Hover:D,colorNeutralForeground2Pressed:D,colorNeutralForeground2Selected:D,colorNeutralForeground2BrandHover:t[100],colorNeutralForeground2BrandPressed:t[90],colorNeutralForeground2BrandSelected:t[100],colorNeutralForeground3:k[68],colorNeutralForeground3Hover:k[84],colorNeutralForeground3Pressed:k[84],colorNeutralForeground3Selected:k[84],colorNeutralForeground3BrandHover:t[100],colorNeutralForeground3BrandPressed:t[90],colorNeutralForeground3BrandSelected:t[100],colorNeutralForeground4:k[60],colorNeutralForegroundDisabled:k[36],colorNeutralForegroundInvertedDisabled:pe[40],colorBrandForegroundLink:t[100],colorBrandForegroundLinkHover:t[110],colorBrandForegroundLinkPressed:t[90],colorBrandForegroundLinkSelected:t[100],colorNeutralForeground2Link:k[84],colorNeutralForeground2LinkHover:D,colorNeutralForeground2LinkPressed:D,colorNeutralForeground2LinkSelected:D,colorCompoundBrandForeground1:t[100],colorCompoundBrandForeground1Hover:t[110],colorCompoundBrandForeground1Pressed:t[90],colorBrandForeground1:t[100],colorBrandForeground2:t[110],colorBrandForeground2Hover:t[130],colorBrandForeground2Pressed:t[160],colorNeutralForeground1Static:k[14],colorNeutralForegroundStaticInverted:D,colorNeutralForegroundInverted:k[14],colorNeutralForegroundInvertedHover:k[14],colorNeutralForegroundInvertedPressed:k[14],colorNeutralForegroundInvertedSelected:k[14],colorNeutralForegroundInverted2:k[14],colorNeutralForegroundOnBrand:D,colorNeutralForegroundInvertedLink:D,colorNeutralForegroundInvertedLinkHover:D,colorNeutralForegroundInvertedLinkPressed:D,colorNeutralForegroundInvertedLinkSelected:D,colorBrandForegroundInverted:t[80],colorBrandForegroundInvertedHover:t[70],colorBrandForegroundInvertedPressed:t[60],colorBrandForegroundOnLight:t[80],colorBrandForegroundOnLightHover:t[70],colorBrandForegroundOnLightPressed:t[50],colorBrandForegroundOnLightSelected:t[60],colorNeutralBackground1:k[16],colorNeutralBackground1Hover:k[24],colorNeutralBackground1Pressed:k[12],colorNeutralBackground1Selected:k[22],colorNeutralBackground2:k[12],colorNeutralBackground2Hover:k[20],colorNeutralBackground2Pressed:k[8],colorNeutralBackground2Selected:k[18],colorNeutralBackground3:k[8],colorNeutralBackground3Hover:k[16],colorNeutralBackground3Pressed:k[4],colorNeutralBackground3Selected:k[14],colorNeutralBackground4:k[4],colorNeutralBackground4Hover:k[12],colorNeutralBackground4Pressed:po,colorNeutralBackground4Selected:k[10],colorNeutralBackground5:po,colorNeutralBackground5Hover:k[8],colorNeutralBackground5Pressed:k[2],colorNeutralBackground5Selected:k[6],colorNeutralBackground6:k[20],colorNeutralBackgroundInverted:D,colorNeutralBackgroundStatic:k[24],colorNeutralBackgroundAlpha:Tg[50],colorNeutralBackgroundAlpha2:Eg[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:k[22],colorSubtleBackgroundPressed:k[18],colorSubtleBackgroundSelected:k[20],colorSubtleBackgroundLightAlphaHover:as[80],colorSubtleBackgroundLightAlphaPressed:as[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:De[10],colorSubtleBackgroundInvertedPressed:De[30],colorSubtleBackgroundInvertedSelected:De[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:k[8],colorNeutralBackgroundInvertedDisabled:pe[10],colorNeutralStencil1:k[34],colorNeutralStencil2:k[20],colorNeutralStencil1Alpha:pe[10],colorNeutralStencil2Alpha:pe[5],colorBackgroundOverlay:De[50],colorScrollbarOverlay:pe[60],colorBrandBackground:t[70],colorBrandBackgroundHover:t[80],colorBrandBackgroundPressed:t[40],colorBrandBackgroundSelected:t[60],colorCompoundBrandBackground:t[100],colorCompoundBrandBackgroundHover:t[110],colorCompoundBrandBackgroundPressed:t[90],colorBrandBackgroundStatic:t[80],colorBrandBackground2:t[20],colorBrandBackground2Hover:t[40],colorBrandBackground2Pressed:t[10],colorBrandBackground3Static:t[60],colorBrandBackground4Static:t[40],colorBrandBackgroundInverted:D,colorBrandBackgroundInvertedHover:t[160],colorBrandBackgroundInvertedPressed:t[140],colorBrandBackgroundInvertedSelected:t[150],colorNeutralCardBackground:k[20],colorNeutralCardBackgroundHover:k[24],colorNeutralCardBackgroundPressed:k[18],colorNeutralCardBackgroundSelected:k[22],colorNeutralCardBackgroundDisabled:k[8],colorNeutralStrokeAccessible:k[68],colorNeutralStrokeAccessibleHover:k[74],colorNeutralStrokeAccessiblePressed:k[70],colorNeutralStrokeAccessibleSelected:t[100],colorNeutralStroke1:k[40],colorNeutralStroke1Hover:k[46],colorNeutralStroke1Pressed:k[42],colorNeutralStroke1Selected:k[44],colorNeutralStroke2:k[32],colorNeutralStroke3:k[24],colorNeutralStrokeSubtle:k[4],colorNeutralStrokeOnBrand:k[16],colorNeutralStrokeOnBrand2:D,colorNeutralStrokeOnBrand2Hover:D,colorNeutralStrokeOnBrand2Pressed:D,colorNeutralStrokeOnBrand2Selected:D,colorBrandStroke1:t[100],colorBrandStroke2:t[50],colorBrandStroke2Hover:t[50],colorBrandStroke2Pressed:t[30],colorBrandStroke2Contrast:t[50],colorCompoundBrandStroke:t[100],colorCompoundBrandStrokeHover:t[110],colorCompoundBrandStrokePressed:t[90],colorNeutralStrokeDisabled:k[26],colorNeutralStrokeInvertedDisabled:pe[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:pe[10],colorNeutralStrokeAlpha2:pe[20],colorStrokeFocus1:po,colorStrokeFocus2:D,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),kk=t=>{const e=wk(t);return{...uu,...hu,...pu,...vu,...gu,...yu,...mu,...bu,...fu,...du,...e,...Ig,...Jt,...Fo(e.colorNeutralShadowAmbient,e.colorNeutralShadowKey),...Fo(e.colorBrandShadowAmbient,e.colorBrandShadowKey,"Brand")}},xk=kk(Dg),zg={root:"fui-FluentProvider"},Ck=_p({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),Sk=t=>{const e=oi(),r=Ck({dir:t.dir,renderer:e});return t.root.className=Z(zg.root,t.themeClassName,r.root,t.root.className),t},_k=b.useInsertionEffect?b.useInsertionEffect:ru,Bk=(t,e)=>{if(!t)return;const r=t.createElement("style");return Object.keys(e).forEach(o=>{r.setAttribute(o,e[o])}),t.head.appendChild(r),r},Pk=(t,e)=>{const r=t.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(e,0))},Fk=t=>{const{targetDocument:e,theme:r,rendererAttributes:o}=t,n=b.useRef(),i=aa(zg.root),s=o,a=b.useMemo(()=>q6(`.${i}`,r),[r,i]);return Tk(e,i),_k(()=>{const l=e==null?void 0:e.getElementById(i);return l?n.current=l:(n.current=Bk(e,{...s,id:i}),n.current&&Pk(n.current,a)),()=>{var c;(c=n.current)===null||c===void 0||c.remove()}},[i,e,a,s]),{styleTagId:i,rule:a}};function Tk(t,e){b.useState(()=>{if(!t)return;const r=t.getElementById(e);r&&t.head.append(r)})}const Ek={},$k={},Ak=(t,e)=>{const r=bt(),o=Nk(),n=F7(),i=b.useContext(tu)||Ek,{applyStylesToPortals:s=!0,customStyleHooks_unstable:a,dir:l=r.dir,targetDocument:c=r.targetDocument,theme:u,overrides_unstable:d={}}=t,f=hl(o,u),p=hl(n,d),h=hl(i,a),g=oi();var v;const{styleTagId:w,rule:m}=Fk({theme:f,targetDocument:c,rendererAttributes:(v=g.styleElementAttributes)!==null&&v!==void 0?v:$k});return{applyStylesToPortals:s,customStyleHooks_unstable:h,dir:l,targetDocument:c,theme:f,overrides_unstable:p,themeClassName:w,components:{root:"div"},root:Re(At("div",{...t,dir:l,ref:Ct(e,Pg({targetDocument:c}))}),{elementType:"div"}),serverStyleProps:{cssRule:m,attributes:{...g.styleElementAttributes,id:w}}}};function hl(t,e){return t&&e?{...t,...e}:t||e}function Nk(){return b.useContext(Ep)}function Lk(t){const{applyStylesToPortals:e,customStyleHooks_unstable:r,dir:o,root:n,targetDocument:i,theme:s,themeClassName:a,overrides_unstable:l}=t,c=b.useMemo(()=>({dir:o,targetDocument:i}),[o,i]),[u]=b.useState(()=>({})),d=b.useMemo(()=>({textDirection:o}),[o]);return{customStyleHooks_unstable:r,overrides_unstable:l,provider:c,textDirection:o,iconDirection:d,tooltip:u,theme:s,themeClassName:e?n.className:a}}const Vg=b.forwardRef((t,e)=>{const r=Ak(t,e);Sk(r);const o=Lk(r);return J7(r,o)});Vg.displayName="FluentProvider";function Rk(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const ku=Rk()?b.useLayoutEffect:b.useEffect,Dk=t=>{const e=b.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return ku(()=>{e.current=t},[t]),b.useCallback((...r)=>{const o=e.current;return o(...r)},[e])},Ok=t=>r=>{const o=b.useRef(r.value),n=b.useRef(0),i=b.useRef();return i.current||(i.current={value:o,version:n,listeners:[]}),ku(()=>{o.current=r.value,n.current+=1,Vu.unstable_runWithPriority(Vu.unstable_NormalPriority,()=>{i.current.listeners.forEach(s=>{s([n.current,r.value])})})},[r.value]),b.createElement(t,{value:i.current},r.children)},da=t=>{const e=b.createContext({value:{current:t},version:{current:-1},listeners:[]});return e.Provider=Ok(e.Provider),delete e.Consumer,e},fa=(t,e)=>{const r=b.useContext(t),{value:{current:o},version:{current:n},listeners:i}=r,s=e(o),[a,l]=b.useState([o,s]),c=d=>{l(f=>{if(!d)return[o,s];if(d[0]<=n)return Object.is(f[1],s)?f:[o,s];try{if(Object.is(f[0],d[1]))return f;const p=e(d[1]);return Object.is(f[1],p)?f:[d[1],p]}catch{}return[f[0],f[1]]})};Object.is(a[1],s)||c(void 0);const u=Dk(c);return ku(()=>(i.push(u),()=>{const d=i.indexOf(u);i.splice(d,1)}),[u,i]),a[1]};function Hg(t){const e=b.useContext(t);return e.version?e.version.current!==-1:!1}const NF="Shift",Ri="Enter",sn=" ",Ik="Tab",Mk="ArrowDown",jg="ArrowLeft",qg="ArrowRight",LF="ArrowUp",RF="End",DF="Home",xu="Escape";function zn(t,e){const{disabled:r,disabledFocusable:o=!1,["aria-disabled"]:n,onClick:i,onKeyDown:s,onKeyUp:a,...l}=e??{},c=typeof n=="string"?n==="true":n,u=r||o||c,d=q(h=>{u?(h.preventDefault(),h.stopPropagation()):i==null||i(h)}),f=q(h=>{if(s==null||s(h),h.isDefaultPrevented())return;const g=h.key;if(u&&(g===Ri||g===sn)){h.preventDefault(),h.stopPropagation();return}if(g===sn){h.preventDefault();return}else g===Ri&&(h.preventDefault(),h.currentTarget.click())}),p=q(h=>{if(a==null||a(h),h.isDefaultPrevented())return;const g=h.key;if(u&&(g===Ri||g===sn)){h.preventDefault(),h.stopPropagation();return}g===sn&&(h.preventDefault(),h.currentTarget.click())});if(t==="button"||t===void 0)return{...l,disabled:r&&!o,"aria-disabled":o?!0:c,onClick:o?void 0:d,onKeyUp:o?void 0:a,onKeyDown:o?void 0:s};{const h={role:"button",tabIndex:r&&!o?void 0:0,...l,onClick:d,onKeyUp:p,onKeyDown:f,"aria-disabled":r||o||c};return t==="a"&&u&&(h.href=void 0),h}}const pl=typeof window>"u"?global:window,gl="@griffel/";function zk(t,e){return pl[Symbol.for(gl+t)]||(pl[Symbol.for(gl+t)]=e),pl[Symbol.for(gl+t)]}const Yl=zk("DEFINITION_LOOKUP_TABLE",{}),Di="data-make-styles-bucket",ec=7,Cu="___",Vk=Cu.length+ec,Hk=0,jk=1;function qk(t){const e=t.length;if(e===ec)return t;for(let r=e;r0&&(e+=u.slice(0,d)),r+=f,o[c]=f}}}if(r==="")return e.slice(0,-1);const n=Qf[r];if(n!==void 0)return e+n;const i=[];for(let c=0;ci.cssText):o}}}const Zk=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],Yf=Zk.reduce((t,e,r)=>(t[e]=r,t),{});function Gk(t,e,r,o,n={}){const i=t==="m",s=i?t+n.m:t;if(!o.stylesheets[s]){const a=e&&e.createElement("style"),l=Wk(a,t,{...o.styleElementAttributes,...i&&{media:n.m}});o.stylesheets[s]=l,e&&a&&e.head.insertBefore(a,Xk(e,r,t,o,n))}return o.stylesheets[s]}function Xk(t,e,r,o,n){const i=Yf[r];let s=u=>i-Yf[u.getAttribute(Di)],a=t.head.querySelectorAll(`[${Di}]`);if(r==="m"&&n){const u=t.head.querySelectorAll(`[${Di}="${r}"]`);u.length&&(a=u,s=d=>o.compareMediaQueries(n.m,d.media))}const l=a.length;let c=l-1;for(;c>=0;){const u=a.item(c);if(s(u)>0)return u.nextSibling;c--}return l>0?a.item(0):e?e.nextSibling:null}function eh(t,e){try{t.insertRule(e)}catch{}}let Kk=0;const Jk=(t,e)=>te?1:0;function Qk(t=typeof document>"u"?void 0:document,e={}){const{unstable_filterCSSRule:r,insertionPoint:o,styleElementAttributes:n,compareMediaQueries:i=Jk}=e,s={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(n),compareMediaQueries:i,id:`d${Kk++}`,insertCSSRules(a){for(const l in a){const c=a[l];for(let u=0,d=c.length;u{const t={};return function(r,o){t[r.id]===void 0&&(r.insertCSSRules(o),t[r.id]=!0)}};function ex(t,e,r=Yk){const o=r();let n=null,i=null;function s(a){const{dir:l,renderer:c}=a,u=l==="ltr";return u?n===null&&(n=Jf(t,l)):i===null&&(i=Jf(t,l)),o(c,e),u?n:i}return s}function tx(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const th=Rr.useInsertionEffect?Rr.useInsertionEffect:void 0,rx=()=>{const t={};return function(r,o){if(th&&tx()){th(()=>{r.insertCSSRules(o)},[r,o]);return}t[r.id]===void 0&&(r.insertCSSRules(o),t[r.id]=!0)}},ox=b.createContext(Qk());function nx(){return b.useContext(ox)}const ix=b.createContext("ltr");function sx(){return b.useContext(ix)}function Zg(t,e){const r=ex(t,e,rx);return function(){const n=sx(),i=nx();return r({dir:n,renderer:i})}}const ax=Zg({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),lx=(t,e)=>{const{title:r,primaryFill:o="currentColor",...n}=t,i={...n,title:void 0,fill:o},s=ax(),a=K7();return i.className=tc(s.root,(e==null?void 0:e.flipInRtl)&&(a==null?void 0:a.textDirection)==="rtl"&&s.rtl,i.className),r&&(i["aria-label"]=r),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},te=(t,e,r,o)=>{const n=e==="1em"?"20":e,i=b.forwardRef((s,a)=>{const l={...lx(s,{flipInRtl:o==null?void 0:o.flipInRtl}),ref:a,width:e,height:e,viewBox:`0 0 ${n} ${n}`,xmlns:"http://www.w3.org/2000/svg"};return b.createElement("svg",l,...r.map(c=>b.createElement("path",{d:c,fill:l.fill})))});return i.displayName=t,i},OF=te("ArrowDownRegular","1em",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),IF=te("ArrowUpRegular","1em",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"]),cx=te("BrightnessHighRegular","1em",["M10 2c.28 0 .5.22.5.5v1a.5.5 0 0 1-1 0v-1c0-.28.22-.5.5-.5Zm0 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0-1a3 3 0 1 1 0-6 3 3 0 0 1 0 6Zm7.5-2.5a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1h1ZM10 16c.28 0 .5.22.5.5v1a.5.5 0 0 1-1 0v-1c0-.28.22-.5.5-.5Zm-6.5-5.5a.5.5 0 0 0 0-1H2.46a.5.5 0 0 0 0 1H3.5Zm.65-6.35c.2-.2.5-.2.7 0l1 1a.5.5 0 1 1-.7.7l-1-1a.5.5 0 0 1 0-.7Zm.7 11.7a.5.5 0 0 1-.7-.7l1-1a.5.5 0 0 1 .7.7l-1 1Zm11-11.7a.5.5 0 0 0-.7 0l-1 1a.5.5 0 0 0 .7.7l1-1a.5.5 0 0 0 0-.7Zm-.7 11.7a.5.5 0 0 0 .7-.7l-1-1a.5.5 0 0 0-.7.7l1 1Z"]),ux=te("CalendarMailRegular","1em",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5V8h-1V6H3v5.5c0 .83.67 1.5 1.5 1.5H5v1h-.5A2.5 2.5 0 0 1 2 11.5v-7Zm11 0c0-.83-.67-1.5-1.5-1.5h-7C3.67 3 3 3.67 3 4.5V5h10v-.5ZM8 9a2 2 0 0 0-2 2v5c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2H8Zm-1 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v.02l-5 2.94-5-2.94V11Zm0 1.18 4.62 2.72c.23.14.53.14.76 0L17 12.18V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-3.82Z"]),dx=te("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),fx=te("ChevronLeftFilled","1em",["M12.27 15.8a.75.75 0 0 1-1.06-.03l-5-5.25a.75.75 0 0 1 0-1.04l5-5.25a.75.75 0 1 1 1.08 1.04L7.8 10l4.5 4.73c.29.3.28.78-.02 1.06Z"]),hx=te("ChevronLeftRegular","1em",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),px=te("ChevronRightFilled","1em",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]),gx=te("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),MF=te("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),vx=te("DocumentRegular","1em",["M6 2a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6ZM5 4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4Zm9.8 3h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7Z"]),zF=te("FeedRegular","1em",["M5.5 7a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM5 10c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 5 10Zm.5 3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3ZM4 17h8.47c.65.02 1.31-.36 1.5-1.18L14.4 14h2.11c.83 0 1.5-.67 1.5-1.5V7.58c0-.98-.75-1.56-1.52-1.58H12V4.5c0-.83-.67-1.5-1.5-1.5h-7C2.67 3 2 3.67 2 4.5V15c0 1.1.9 2 2 2ZM3 4.5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5v10.98c0 .2.03.36.08.52H4a1 1 0 0 1-1-1V4.5ZM16.5 13h-1.87l1.28-5.54c.15-.64 1.09-.53 1.09.12v4.92a.5.5 0 0 1-.5.5ZM12 7h3.01a1.8 1.8 0 0 0-.07.23L13 15.6c-.14.58-1 .48-1-.12V7Z"]),mx=te("GridDotsRegular","1em",["M5.25 4a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm12 12a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM16 11.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM17.25 4a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 17.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM11.25 10a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM10 5.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM5.25 16a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM4 11.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"]),bx=te("HomeRegular","1em",["M9 2.39a1.5 1.5 0 0 1 2 0l5.5 4.94c.32.28.5.69.5 1.12v7.05c0 .83-.67 1.5-1.5 1.5H13a1.5 1.5 0 0 1-1.5-1.5V12a.5.5 0 0 0-.5-.5H9a.5.5 0 0 0-.5.5v3.5c0 .83-.67 1.5-1.5 1.5H4.5A1.5 1.5 0 0 1 3 15.5V8.45c0-.43.18-.84.5-1.12L9 2.39Zm1.33.74a.5.5 0 0 0-.66 0l-5.5 4.94a.5.5 0 0 0-.17.38v7.05c0 .28.22.5.5.5H7a.5.5 0 0 0 .5-.5V12c0-.83.67-1.5 1.5-1.5h2c.83 0 1.5.67 1.5 1.5v3.5c0 .28.22.5.5.5h2.5a.5.5 0 0 0 .5-.5V8.45a.5.5 0 0 0-.17-.38l-5.5-4.94Z"]),yx=te("NavigationRegular","1em",["M2 4.5c0-.28.22-.5.5-.5h15a.5.5 0 0 1 0 1h-15a.5.5 0 0 1-.5-.5Zm0 5c0-.28.22-.5.5-.5h15a.5.5 0 0 1 0 1h-15a.5.5 0 0 1-.5-.5Zm.5 4.5a.5.5 0 0 0 0 1h15a.5.5 0 0 0 0-1h-15Z"]),wx=te("PeopleTeamFilled","1em",["M12.5 4.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Zm5 .5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-13 2a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 9.25C6 8.56 6.56 8 7.25 8h5.5c.69 0 1.25.56 1.25 1.25V14a4 4 0 0 1-8 0V9.25Zm-1 0c0-.46.14-.9.38-1.25H3.25C2.56 8 2 8.56 2 9.25V13a3 3 0 0 0 3.4 2.97C5.14 15.37 5 14.7 5 14V9.25ZM15 14c0 .7-.14 1.37-.4 1.97A3 3 0 0 0 18 13V9.25C18 8.56 17.44 8 16.75 8h-2.13c.24.36.38.79.38 1.25V14Z"]),kx=te("PeopleTeamRegular","1em",["M10 3a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM7.5 4.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0Zm8-.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm-10 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm1-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm.6 12H5a2 2 0 0 1-2-2V9.25c0-.14.11-.25.25-.25h1.76c.04-.37.17-.7.37-1H3.25C2.56 8 2 8.56 2 9.25V13a3 3 0 0 0 3.4 2.97 4.96 4.96 0 0 1-.3-.97Zm9.5.97A3 3 0 0 0 18 13V9.25C18 8.56 17.44 8 16.75 8h-2.13c.2.3.33.63.37 1h1.76c.14 0 .25.11.25.25V13a2 2 0 0 1-2.1 2c-.07.34-.17.66-.3.97ZM7.25 8C6.56 8 6 8.56 6 9.25V14a4 4 0 0 0 8 0V9.25C14 8.56 13.44 8 12.75 8h-5.5ZM7 9.25c0-.14.11-.25.25-.25h5.5c.14 0 .25.11.25.25V14a3 3 0 1 1-6 0V9.25Z"]),xx=te("SearchRegular","1em",["M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),VF=te("SlideSearchRegular","1em",["M5.5 7a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1h-6Zm3.03 3.5a4.5 4.5 0 0 0-.68-1h6.65a.5.5 0 0 1 0 1H8.53Zm.47 2c0 .17 0 .34-.03.5h3.53a.5.5 0 0 0 0-1H8.97c.02.16.03.33.03.5Zm-6-6v1.76c-.36.12-.7.3-1 .5V6.5A2.5 2.5 0 0 1 4.5 4h11A2.5 2.5 0 0 1 18 6.5v7a2.5 2.5 0 0 1-2.5 2.5h-5.38l-1-1h6.38c.83 0 1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5h-11C3.67 5 3 5.67 3 6.5ZM4.5 16c.79 0 1.51-.26 2.1-.7l2.55 2.55a.5.5 0 1 0 .7-.7L7.3 14.6A3.5 3.5 0 1 0 4.5 16Zm0-1a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z"]),HF=te("TagRegular","1em",["M14 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-2.87-5a2 2 0 0 0-1.43.58L3.02 9.25a2 2 0 0 0 0 2.83l4.95 4.95a2 2 0 0 0 2.83 0l6.63-6.63A2 2 0 0 0 18 8.98V4.03a2 2 0 0 0-1.99-2L11.12 2Zm-.72 1.3a1 1 0 0 1 .71-.3l4.9.03a1 1 0 0 1 .99 1v4.95a1 1 0 0 1-.29.7l-6.63 6.64a1 1 0 0 1-1.41 0l-4.95-4.95a1 1 0 0 1 0-1.41l6.68-6.67Z"]),Cx=te("TagMultipleRegular","1em",["M13.5 6.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM9.2 2.59A2 2 0 0 1 10.63 2h4.45a2 2 0 0 1 2 2v4.37a2 2 0 0 1-.59 1.43l-5.82 5.76a2 2 0 0 1-2.82-.01l-4.38-4.39a2 2 0 0 1 0-2.82L9.2 2.59Zm1.42.41a1 1 0 0 0-.7.3L4.15 9.03a1 1 0 0 0 0 1.42l4.39 4.38a1 1 0 0 0 1.4 0l5.83-5.76a1 1 0 0 0 .3-.7V4a1 1 0 0 0-1-1h-4.46ZM3 11.8a2 2 0 0 0 .46 2.11l2.97 2.98a4 4 0 0 0 5.65.02l4.4-4.36a2 2 0 0 0 .6-1.43v-.57l-5 4.96-.15.13-.56.55a3 3 0 0 1-4.23 0l-.5-.5a4.05 4.05 0 0 1-.2-.2l-2.98-2.98A2 2 0 0 1 3 11.8Z"]),Sx=te("TextBulletListSquareRegular","1em",["M6.75 8a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm.75 2.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM6.75 14a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM9 7.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5Zm.5 2.5a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4ZM9 13.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5ZM5.75 3h8.5A2.75 2.75 0 0 1 17 5.75v8.5A2.75 2.75 0 0 1 14.25 17h-8.5A2.75 2.75 0 0 1 3 14.25v-8.5A2.75 2.75 0 0 1 5.75 3ZM4 5.75v8.5c0 .97.78 1.75 1.75 1.75h8.5c.97 0 1.75-.78 1.75-1.75v-8.5C16 4.78 15.22 4 14.25 4h-8.5C4.78 4 4 4.78 4 5.75Z"]),_x=te("WeatherMoonFilled","1em",["M16.36 14a7.98 7.98 0 0 1-13.48.54.6.6 0 0 1 .29-.9c3-1.08 4.61-2.33 5.55-4.11.98-1.88 1.24-3.94.55-6.76a.6.6 0 0 1 .61-.73A7.98 7.98 0 0 1 16.36 14Z"]),Bx=te("Info12Filled","12",["M11 6A5 5 0 1 1 1 6a5 5 0 0 1 10 0Zm-5.5.5V8a.5.5 0 0 0 1 0V6.5a.5.5 0 0 0-1 0ZM6 3.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),Px=te("Info12Regular","12",["M5.5 6.5a.5.5 0 0 1 1 0V8a.5.5 0 0 1-1 0V6.5ZM6 3.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm5-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"]),Fx=te("Info16Filled","16",["M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1Zm0 5.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm.5 1.25a.5.5 0 0 0-1 0v3a.5.5 0 0 0 1 0v-3Z"]),Tx=te("Info16Regular","16",["M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),Ex=te("Info20Filled","20",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),$x=te("Info20Regular","20",["M10.5 8.91a.5.5 0 0 0-1 .09v4.6a.5.5 0 0 0 1-.1V8.91Zm.3-2.16a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0ZM18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM3 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z"]),Ax="fui-Icon-filled",Nx="fui-Icon-regular",Lx=Zg({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),si=(t,e)=>{const r=o=>{const{className:n,filled:i,...s}=o,a=Lx();return b.createElement(b.Fragment,null,b.createElement(t,Object.assign({},s,{className:tc(a.root,i&&a.visible,Ax,n)})),b.createElement(e,Object.assign({},s,{className:tc(a.root,!i&&a.visible,Nx,n)})))};return r.displayName="CompoundIcon",r};function Rx(t){const e=t.clientX,r=t.clientY,o=e+1,n=r+1;function i(){return{left:e,top:r,right:o,bottom:n,x:e,y:r,height:1,width:1}}return{getBoundingClientRect:i}}const rh="data-popper-is-intersecting",oh="data-popper-escaped",nh="data-popper-reference-hidden",Dx="data-popper-placement",rc="fui-positioningend",Ox=["top","right","bottom","left"],Zr=Math.min,ft=Math.max,ls=Math.round,ur=t=>({x:t,y:t}),Ix={left:"right",right:"left",bottom:"top",top:"bottom"},Mx={start:"end",end:"start"};function oc(t,e,r){return ft(t,Zr(e,r))}function jt(t,e){return typeof t=="function"?t(e):t}function qt(t){return t.split("-")[0]}function qo(t){return t.split("-")[1]}function Su(t){return t==="x"?"y":"x"}function _u(t){return t==="y"?"height":"width"}function Uo(t){return["top","bottom"].includes(qt(t))?"y":"x"}function Bu(t){return Su(Uo(t))}function zx(t,e,r){r===void 0&&(r=!1);const o=qo(t),n=Bu(t),i=_u(n);let s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=cs(s)),[s,cs(s)]}function Vx(t){const e=cs(t);return[nc(t),e,nc(e)]}function nc(t){return t.replace(/start|end/g,e=>Mx[e])}function Hx(t,e,r){const o=["left","right"],n=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?n:o:e?o:n;case"left":case"right":return e?i:s;default:return[]}}function jx(t,e,r,o){const n=qo(t);let i=Hx(qt(t),r==="start",o);return n&&(i=i.map(s=>s+"-"+n),e&&(i=i.concat(i.map(nc)))),i}function cs(t){return t.replace(/left|right|bottom|top/g,e=>Ix[e])}function qx(t){return{top:0,right:0,bottom:0,left:0,...t}}function Gg(t){return typeof t!="number"?qx(t):{top:t,right:t,bottom:t,left:t}}function us(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ih(t,e,r){let{reference:o,floating:n}=t;const i=Uo(e),s=Bu(e),a=_u(s),l=qt(e),c=i==="y",u=o.x+o.width/2-n.width/2,d=o.y+o.height/2-n.height/2,f=o[a]/2-n[a]/2;let p;switch(l){case"top":p={x:u,y:o.y-n.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-n.width,y:d};break;default:p={x:o.x,y:o.y}}switch(qo(e)){case"start":p[s]-=f*(r&&c?-1:1);break;case"end":p[s]+=f*(r&&c?-1:1);break}return p}const Ux=async(t,e,r)=>{const{placement:o="bottom",strategy:n="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=ih(c,o,l),f=o,p={},h=0;for(let g=0;g({name:"arrow",options:t,async fn(e){const{x:r,y:o,placement:n,rects:i,platform:s,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=jt(t,e)||{};if(c==null)return{};const d=Gg(u),f={x:r,y:o},p=Bu(n),h=_u(p),g=await s.getDimensions(c),v=p==="y",w=v?"top":"left",m=v?"bottom":"right",y=v?"clientHeight":"clientWidth",C=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let B=_?_[y]:0;(!B||!await(s.isElement==null?void 0:s.isElement(_)))&&(B=a.floating[y]||i.floating[h]);const E=C/2-x/2,I=B/2-g[h]/2-1,H=Zr(d[w],I),Oe=Zr(d[m],I),M=H,Ge=B-g[h]-Oe,Ae=B/2-g[h]/2+E,Ie=oc(M,Ae,Ge),Xe=!l.arrow&&qo(n)!=null&&Ae!=Ie&&i.reference[h]/2-(AeM<=0)){var I,H;const M=(((I=i.flip)==null?void 0:I.index)||0)+1,Ge=x[M];if(Ge)return{data:{index:M,overflows:E},reset:{placement:Ge}};let Ae=(H=E.filter(Ie=>Ie.overflows[0]<=0).sort((Ie,Xe)=>Ie.overflows[1]-Xe.overflows[1])[0])==null?void 0:H.placement;if(!Ae)switch(p){case"bestFit":{var Oe;const Ie=(Oe=E.map(Xe=>[Xe.placement,Xe.overflows.filter(Ke=>Ke>0).reduce((Ke,Wo)=>Ke+Wo,0)]).sort((Xe,Ke)=>Xe[1]-Ke[1])[0])==null?void 0:Oe[0];Ie&&(Ae=Ie);break}case"initialPlacement":Ae=a;break}if(n!==Ae)return{reset:{placement:Ae}}}return{}}}};function sh(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ah(t){return Ox.some(e=>t[e]>=0)}const Gx=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:o="referenceHidden",...n}=jt(t,e);switch(o){case"referenceHidden":{const i=await To(e,{...n,elementContext:"reference"}),s=sh(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ah(s)}}}case"escaped":{const i=await To(e,{...n,altBoundary:!0}),s=sh(i,r.floating);return{data:{escapedOffsets:s,escaped:ah(s)}}}default:return{}}}}};async function Xx(t,e){const{placement:r,platform:o,elements:n}=t,i=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=qt(r),a=qo(r),l=Uo(r)==="y",c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=jt(e,t);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof h=="number"&&(p=a==="end"?h*-1:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const Kx=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;const{x:n,y:i,placement:s,middlewareData:a}=e,l=await Xx(e,t);return s===((r=a.offset)==null?void 0:r.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:s}}}}},Jx=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:n}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:w,y:m}=v;return{x:w,y:m}}},...l}=jt(t,e),c={x:r,y:o},u=await To(e,l),d=Uo(qt(n)),f=Su(d);let p=c[f],h=c[d];if(i){const v=f==="y"?"top":"left",w=f==="y"?"bottom":"right",m=p+u[v],y=p-u[w];p=oc(m,p,y)}if(s){const v=d==="y"?"top":"left",w=d==="y"?"bottom":"right",m=h+u[v],y=h-u[w];h=oc(m,h,y)}const g=a.fn({...e,[f]:p,[d]:h});return{...g,data:{x:g.x-r,y:g.y-o}}}}},Qx=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:o,placement:n,rects:i,middlewareData:s}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=jt(t,e),u={x:r,y:o},d=Uo(n),f=Su(d);let p=u[f],h=u[d];const g=jt(a,e),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const y=f==="y"?"height":"width",C=i.reference[f]-i.floating[y]+v.mainAxis,x=i.reference[f]+i.reference[y]-v.mainAxis;px&&(p=x)}if(c){var w,m;const y=f==="y"?"width":"height",C=["top","left"].includes(qt(n)),x=i.reference[d]-i.floating[y]+(C&&((w=s.offset)==null?void 0:w[d])||0)+(C?0:v.crossAxis),_=i.reference[d]+i.reference[y]+(C?0:((m=s.offset)==null?void 0:m[d])||0)-(C?v.crossAxis:0);h_&&(h=_)}return{[f]:p,[d]:h}}}},Yx=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:o,platform:n,elements:i}=e,{apply:s=()=>{},...a}=jt(t,e),l=await To(e,a),c=qt(r),u=qo(r),d=Uo(r)==="y",{width:f,height:p}=o.floating;let h,g;c==="top"||c==="bottom"?(h=c,g=u===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,h=u==="end"?"top":"bottom");const v=p-l[h],w=f-l[g],m=!e.middlewareData.shift;let y=v,C=w;if(d){const _=f-l.left-l.right;C=u||m?Zr(w,_):_}else{const _=p-l.top-l.bottom;y=u||m?Zr(v,_):_}if(m&&!u){const _=ft(l.left,0),B=ft(l.right,0),E=ft(l.top,0),I=ft(l.bottom,0);d?C=f-2*(_!==0||B!==0?_+B:ft(l.left,l.right)):y=p-2*(E!==0||I!==0?E+I:ft(l.top,l.bottom))}await s({...e,availableWidth:C,availableHeight:y});const x=await n.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function dr(t){return Xg(t)?(t.nodeName||"").toLowerCase():"#document"}function nt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function mr(t){var e;return(e=(Xg(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Xg(t){return t instanceof Node||t instanceof nt(t).Node}function Ut(t){return t instanceof Element||t instanceof nt(t).Element}function Et(t){return t instanceof HTMLElement||t instanceof nt(t).HTMLElement}function lh(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof nt(t).ShadowRoot}function ai(t){const{overflow:e,overflowX:r,overflowY:o,display:n}=gt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(n)}function eC(t){return["table","td","th"].includes(dr(t))}function Pu(t){const e=Fu(),r=gt(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function tC(t){let e=Eo(t);for(;Et(e)&&!ha(e);){if(Pu(e))return e;e=Eo(e)}return null}function Fu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ha(t){return["html","body","#document"].includes(dr(t))}function gt(t){return nt(t).getComputedStyle(t)}function pa(t){return Ut(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Eo(t){if(dr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||lh(t)&&t.host||mr(t);return lh(e)?e.host:e}function Kg(t){const e=Eo(t);return ha(e)?t.ownerDocument?t.ownerDocument.body:t.body:Et(e)&&ai(e)?e:Kg(e)}function ic(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);const n=Kg(t),i=n===((o=t.ownerDocument)==null?void 0:o.body),s=nt(n);return i?e.concat(s,s.visualViewport||[],ai(n)?n:[],s.frameElement&&r?ic(s.frameElement):[]):e.concat(n,ic(n,[],r))}function Jg(t){const e=gt(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const n=Et(t),i=n?t.offsetWidth:r,s=n?t.offsetHeight:o,a=ls(r)!==i||ls(o)!==s;return a&&(r=i,o=s),{width:r,height:o,$:a}}function Qg(t){return Ut(t)?t:t.contextElement}function go(t){const e=Qg(t);if(!Et(e))return ur(1);const r=e.getBoundingClientRect(),{width:o,height:n,$:i}=Jg(e);let s=(i?ls(r.width):r.width)/o,a=(i?ls(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const rC=ur(0);function Yg(t){const e=nt(t);return!Fu()||!e.visualViewport?rC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function oC(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==nt(t)?!1:e}function Vn(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=t.getBoundingClientRect(),i=Qg(t);let s=ur(1);e&&(o?Ut(o)&&(s=go(o)):s=go(t));const a=oC(i,r,o)?Yg(i):ur(0);let l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(i){const f=nt(i),p=o&&Ut(o)?nt(o):o;let h=f.frameElement;for(;h&&o&&p!==f;){const g=go(h),v=h.getBoundingClientRect(),w=gt(h),m=v.left+(h.clientLeft+parseFloat(w.paddingLeft))*g.x,y=v.top+(h.clientTop+parseFloat(w.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=m,c+=y,h=nt(h).frameElement}}return us({width:u,height:d,x:l,y:c})}function nC(t){let{rect:e,offsetParent:r,strategy:o}=t;const n=Et(r),i=mr(r);if(r===i)return e;let s={scrollLeft:0,scrollTop:0},a=ur(1);const l=ur(0);if((n||!n&&o!=="fixed")&&((dr(r)!=="body"||ai(i))&&(s=pa(r)),Et(r))){const c=Vn(r);a=go(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+l.x,y:e.y*a.y-s.scrollTop*a.y+l.y}}function iC(t){return Array.from(t.getClientRects())}function ev(t){return Vn(mr(t)).left+pa(t).scrollLeft}function sC(t){const e=mr(t),r=pa(t),o=t.ownerDocument.body,n=ft(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=ft(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-r.scrollLeft+ev(t);const a=-r.scrollTop;return gt(o).direction==="rtl"&&(s+=ft(e.clientWidth,o.clientWidth)-n),{width:n,height:i,x:s,y:a}}function aC(t,e){const r=nt(t),o=mr(t),n=r.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;const c=Fu();(!c||c&&e==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:i,height:s,x:a,y:l}}function lC(t,e){const r=Vn(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,i=Et(t)?go(t):ur(1),s=t.clientWidth*i.x,a=t.clientHeight*i.y,l=n*i.x,c=o*i.y;return{width:s,height:a,x:l,y:c}}function ch(t,e,r){let o;if(e==="viewport")o=aC(t,r);else if(e==="document")o=sC(mr(t));else if(Ut(e))o=lC(e,r);else{const n=Yg(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return us(o)}function tv(t,e){const r=Eo(t);return r===e||!Ut(r)||ha(r)?!1:gt(r).position==="fixed"||tv(r,e)}function cC(t,e){const r=e.get(t);if(r)return r;let o=ic(t,[],!1).filter(a=>Ut(a)&&dr(a)!=="body"),n=null;const i=gt(t).position==="fixed";let s=i?Eo(t):t;for(;Ut(s)&&!ha(s);){const a=gt(s),l=Pu(s);!l&&a.position==="fixed"&&(n=null),(i?!l&&!n:!l&&a.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||ai(s)&&!l&&tv(t,s))?o=o.filter(u=>u!==s):n=a,s=Eo(s)}return e.set(t,o),o}function uC(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t;const s=[...r==="clippingAncestors"?cC(e,this._c):[].concat(r),o],a=s[0],l=s.reduce((c,u)=>{const d=ch(e,u,n);return c.top=ft(d.top,c.top),c.right=Zr(d.right,c.right),c.bottom=Zr(d.bottom,c.bottom),c.left=ft(d.left,c.left),c},ch(e,a,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function dC(t){const{width:e,height:r}=Jg(t);return{width:e,height:r}}function fC(t,e,r){const o=Et(e),n=mr(e),i=r==="fixed",s=Vn(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=ur(0);if(o||!o&&!i)if((dr(e)!=="body"||ai(n))&&(a=pa(e)),o){const c=Vn(e,!0,i,e);l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}else n&&(l.x=ev(n));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function uh(t,e){return!Et(t)||gt(t).position==="fixed"?null:e?e(t):t.offsetParent}function rv(t,e){const r=nt(t);if(!Et(t))return r;let o=uh(t,e);for(;o&&eC(o)&>(o).position==="static";)o=uh(o,e);return o&&(dr(o)==="html"||dr(o)==="body"&>(o).position==="static"&&!Pu(o))?r:o||tC(t)||r}const hC=async function(t){let{reference:e,floating:r,strategy:o}=t;const n=this.getOffsetParent||rv,i=this.getDimensions;return{reference:fC(e,await n(r),o),floating:{x:0,y:0,...await i(r)}}};function pC(t){return gt(t).direction==="rtl"}const gC={convertOffsetParentRelativeRectToViewportRelativeRect:nC,getDocumentElement:mr,getClippingRect:uC,getOffsetParent:rv,getElementRects:hC,getClientRects:iC,getDimensions:dC,getScale:go,isElement:Ut,isRTL:pC},vC=Jx,mC=Zx,bC=Yx,dh=Gx,yC=Wx,wC=Qx,kC=(t,e,r)=>{const o=new Map,n={platform:gC,...r},i={...n.platform,_c:o};return Ux(t,e,{...n,platform:i})},ov=b.createContext(void 0),xC={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"};ov.Provider;function CC(){var t;return(t=b.useContext(ov))!==null&&t!==void 0?t:xC}function nv(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const ds=nv()?b.useLayoutEffect:b.useEffect,fh=t=>{const e=b.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return ds(()=>{e.current=t},[t]),b.useCallback((...r)=>{const o=e.current;return o(...r)},[e])};function hh(t,e){var r;const o=t;var n;return!!(!(o==null||(r=o.ownerDocument)===null||r===void 0)&&r.defaultView&&o instanceof o.ownerDocument.defaultView[(n=void 0)!==null&&n!==void 0?n:"HTMLElement"])}function iv(t){const e=t.split("-");return{side:e[0],alignment:e[1]}}const SC=t=>t.nodeName==="HTML"?t:t.parentNode||t.host,_C=t=>{var e;return t.nodeType!==1?{}:((e=t.ownerDocument)===null||e===void 0?void 0:e.defaultView).getComputedStyle(t,null)},ga=t=>{const e=t&&SC(t);if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}const{overflow:r,overflowX:o,overflowY:n}=_C(e);return/(auto|scroll|overlay)/.test(r+n+o)?e:ga(e)},BC=t=>{var e;const r=ga(t);return r?r!==((e=r.ownerDocument)===null||e===void 0?void 0:e.body):!1};function Tu(t,e){if(e==="window")return t==null?void 0:t.ownerDocument.documentElement;if(e==="clippingParents")return"clippingAncestors";if(e==="scrollParent"){let r=ga(t);return r.nodeName==="BODY"&&(r=t==null?void 0:t.ownerDocument.documentElement),r}return e}function PC(t,e){return typeof t=="number"||typeof t=="object"&&t!==null?vl(t,e):typeof t=="function"?r=>{const o=t(r);return vl(o,e)}:{mainAxis:e}}const vl=(t,e)=>{if(typeof t=="number")return{mainAxis:t+e};var r;return{...t,mainAxis:((r=t.mainAxis)!==null&&r!==void 0?r:0)+e}};function sv(t,e){if(typeof t=="number")return t;const{start:r,end:o,...n}=t,i=n,s=e?"end":"start",a=e?"start":"end";return t[s]&&(i.left=t[s]),t[a]&&(i.right=t[a]),i}const FC=t=>({above:"top",below:"bottom",before:t?"right":"left",after:t?"left":"right"}),TC=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),EC=(t,e)=>{const r=t==="above"||t==="below",o=e==="top"||e==="bottom";return r&&o||!r&&!o},av=(t,e,r)=>{const o=EC(e,t)?"center":t,n=e&&FC(r)[e],i=o&&TC()[o];return n&&i?`${n}-${i}`:n},$C=()=>({top:"above",bottom:"below",right:"after",left:"before"}),AC=t=>t==="above"||t==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},NC=t=>{const{side:e,alignment:r}=iv(t),o=$C()[e],n=r&&AC(o)[r];return{position:o,alignment:n}},LC={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function Eu(t){return t==null?{}:typeof t=="string"?LC[t]:t}function ml(t,e,r){const o=b.useRef(!0),[n]=b.useState(()=>({value:t,callback:e,facade:{get current(){return n.value},set current(i){const s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}));return ds(()=>{o.current=!1},[]),n.callback=e,n.facade}function RC(t){let e;return()=>(e||(e=new Promise(r=>{Promise.resolve().then(()=>{e=void 0,r(t())})})),e)}function DC(t){const{arrow:e,middlewareData:r}=t;if(!r.arrow||!e)return;const{x:o,y:n}=r.arrow;Object.assign(e.style,{left:`${o}px`,top:`${n}px`})}function OC(t){var e,r,o;const{container:n,placement:i,middlewareData:s,strategy:a,lowPPI:l,coordinates:c,useTransform:u=!0}=t;if(!n)return;n.setAttribute(Dx,i),n.removeAttribute(rh),s.intersectionObserver.intersecting&&n.setAttribute(rh,""),n.removeAttribute(oh),!((e=s.hide)===null||e===void 0)&&e.escaped&&n.setAttribute(oh,""),n.removeAttribute(nh),!((r=s.hide)===null||r===void 0)&&r.referenceHidden&&n.setAttribute(nh,"");const d=((o=n.ownerDocument.defaultView)===null||o===void 0?void 0:o.devicePixelRatio)||1,f=Math.round(c.x*d)/d,p=Math.round(c.y*d)/d;if(Object.assign(n.style,{position:a}),u){Object.assign(n.style,{transform:l?`translate(${f}px, ${p}px)`:`translate3d(${f}px, ${p}px, 0)`});return}Object.assign(n.style,{left:`${f}px`,top:`${p}px`})}const IC=t=>{switch(t){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function MC(){return{name:"coverTarget",fn:t=>{const{placement:e,rects:r,x:o,y:n}=t,i=iv(e).side,s={x:o,y:n};switch(i){case"bottom":s.y-=r.reference.height;break;case"top":s.y+=r.reference.height;break;case"left":s.x+=r.reference.width;break;case"right":s.x-=r.reference.width;break}return s}}}function zC(t){const{hasScrollableElement:e,flipBoundary:r,container:o,fallbackPositions:n=[],isRtl:i}=t,s=n.reduce((a,l)=>{const{position:c,align:u}=Eu(l),d=av(u,c,i);return d&&a.push(d),a},[]);return mC({...e&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:Tu(o,r)},fallbackStrategy:"bestFit",...s.length&&{fallbackPlacements:s}})}function VC(){return{name:"intersectionObserver",fn:async t=>{const e=t.rects.floating,r=await To(t,{altBoundary:!0}),o=r.top0,n=r.bottom0;return{data:{intersecting:o||n}}}}}const HC=t=>({name:"resetMaxSize",fn({middlewareData:e,elements:r}){var o;if(!((o=e.resetMaxSize)===null||o===void 0)&&o.maxSizeAlreadyReset)return{};const{applyMaxWidth:n,applyMaxHeight:i}=t;return n&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function jC(t,e){const{container:r,overflowBoundary:o,overflowBoundaryPadding:n,isRtl:i}=e;return bC({...n&&{padding:sv(n,i)},...o&&{altBoundary:!0,boundary:Tu(r,o)},apply({availableHeight:s,availableWidth:a,elements:l,rects:c}){const u=(p,h,g)=>{if(p&&(l.floating.style.setProperty("box-sizing","border-box"),l.floating.style.setProperty(`max-${h}`,`${g}px`),c.floating[h]>g)){l.floating.style.setProperty(h,`${g}px`);const v=h==="width"?"x":"y";l.floating.style.getPropertyValue(`overflow-${v}`)||l.floating.style.setProperty(`overflow-${v}`,"auto")}},{applyMaxWidth:d,applyMaxHeight:f}=t;u(d,"width",a),u(f,"height",s)}})}function qC(t){return!t||typeof t=="number"||typeof t=="object"?t:({rects:{floating:e,reference:r},placement:o})=>{const{position:n,alignment:i}=NC(o);return t({positionedRect:e,targetRect:r,position:n,alignment:i})}}function UC(t){const e=qC(t);return Kx(e)}function WC(t){const{hasScrollableElement:e,disableTether:r,overflowBoundary:o,container:n,overflowBoundaryPadding:i,isRtl:s}=t;return vC({...e&&{boundary:"clippingAncestors"},...r&&{crossAxis:r==="all",limiter:wC({crossAxis:r!=="all",mainAxis:!1})},...i&&{padding:sv(i,s)},...o&&{altBoundary:!0,boundary:Tu(n,o)}})}const ph="--fui-match-target-size";function ZC(){return{name:"matchTargetSize",fn:async t=>{const{rects:{reference:e,floating:r},elements:{floating:o},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:n=!1}={}}}=t;if(e.width===r.width||n)return{};const{width:i}=e;return o.style.setProperty(ph,`${i}px`),o.style.width||(o.style.width=`var(${ph})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function gh(t){const e=[];let r=t;for(;r;){const o=ga(r);if(t.ownerDocument.body===o){e.push(o);break}if(o.nodeName==="BODY"&&o!==t.ownerDocument.body)break;e.push(o),r=o}return e}function GC(t,e){return new t.ResizeObserver(e)}function XC(t){let e=!1;const{container:r,target:o,arrow:n,strategy:i,middleware:s,placement:a,useTransform:l=!0,disableUpdateOnResize:c=!1}=t,u=r.ownerDocument.defaultView;if(!o||!r||!u)return{updatePosition:()=>{},dispose:()=>{}};const d=c?null:GC(u,w=>{w.every(y=>y.contentRect.width>0&&y.contentRect.height>0)&&g()});let f=!0;const p=new Set;Object.assign(r.style,{position:"fixed",left:0,top:0,margin:0});const h=()=>{e||(f&&(gh(r).forEach(w=>p.add(w)),hh(o)&&gh(o).forEach(w=>p.add(w)),p.forEach(w=>{w.addEventListener("scroll",g,{passive:!0})}),d==null||d.observe(r),hh(o)&&(d==null||d.observe(o)),f=!1),Object.assign(r.style,{position:i}),kC(o,r,{placement:a,middleware:s,strategy:i}).then(({x:w,y:m,middlewareData:y,placement:C})=>{e||(DC({arrow:n,middlewareData:y}),OC({container:r,middlewareData:y,placement:C,coordinates:{x:w,y:m},lowPPI:((u==null?void 0:u.devicePixelRatio)||1)<=1,strategy:i,useTransform:l}),r.dispatchEvent(new CustomEvent(rc)))}).catch(w=>{}))},g=RC(()=>h()),v=()=>{e=!0,u&&(u.removeEventListener("scroll",g),u.removeEventListener("resize",g)),p.forEach(w=>{w.removeEventListener("scroll",g)}),p.clear(),d==null||d.disconnect()};return u&&(u.addEventListener("scroll",g,{passive:!0}),u.addEventListener("resize",g)),g(),{updatePosition:g,dispose:v}}function lv(t){"use no memo";const e=b.useRef(null),r=b.useRef(null),o=b.useRef(null),n=b.useRef(null),i=b.useRef(null),{enabled:s=!0}=t,a=KC(t),l=b.useCallback(()=>{e.current&&e.current.dispose(),e.current=null;var h;const g=(h=o.current)!==null&&h!==void 0?h:r.current;s&&nv()&&g&&n.current&&(e.current=XC({container:n.current,target:g,arrow:i.current,...a(n.current,i.current)}))},[s,a]),c=fh(h=>{o.current=h,l()});b.useImperativeHandle(t.positioningRef,()=>({updatePosition:()=>{var h;return(h=e.current)===null||h===void 0?void 0:h.updatePosition()},setTarget:h=>{t.target,c(h)}}),[t.target,c]),ds(()=>{var h;c((h=t.target)!==null&&h!==void 0?h:null)},[t.target,c]),ds(()=>{l()},[l]);const u=ml(null,h=>{r.current!==h&&(r.current=h,l())}),d=fh(()=>{var h;return(h=t.onPositioningEnd)===null||h===void 0?void 0:h.call(t)}),f=ml(null,h=>{if(n.current!==h){var g;(g=n.current)===null||g===void 0||g.removeEventListener(rc,d),h==null||h.addEventListener(rc,d),n.current=h,l()}}),p=ml(null,h=>{i.current!==h&&(i.current=h,l())});return{targetRef:u,containerRef:f,arrowRef:p}}function KC(t){"use no memo";const{align:e,arrowPadding:r,autoSize:o,coverTarget:n,flipBoundary:i,offset:s,overflowBoundary:a,pinned:l,position:c,unstable_disableTether:u,positionFixed:d,strategy:f,overflowBoundaryPadding:p,fallbackPositions:h,useTransform:g,matchTargetSize:v,disableUpdateOnResize:w=!1}=t,{dir:m,targetDocument:y}=CC(),C=m==="rtl",x=f??d?"fixed":"absolute",_=IC(o);return b.useCallback((B,E)=>{const I=BC(B),H=[_&&HC(_),v&&ZC(),s&&UC(s),n&&MC(),!l&&zC({container:B,flipBoundary:i,hasScrollableElement:I,isRtl:C,fallbackPositions:h}),WC({container:B,hasScrollableElement:I,overflowBoundary:a,disableTether:u,overflowBoundaryPadding:p,isRtl:C}),_&&jC(_,{container:B,overflowBoundary:a,overflowBoundaryPadding:p,isRtl:C}),VC(),E&&yC({element:E,padding:r}),dh({strategy:"referenceHidden"}),dh({strategy:"escaped"}),!1].filter(Boolean);return{placement:av(e,c,C),middleware:H,strategy:x,useTransform:g,disableUpdateOnResize:w}},[e,r,_,n,u,i,C,s,a,l,c,x,p,h,g,v,y,w])}const cv=t=>{const[e,r]=b.useState(t);return[e,n=>{if(n==null){r(void 0);return}let i;n instanceof MouseEvent?i=n:i=n.nativeEvent,i instanceof MouseEvent;const s=Rx(i);r(s)}]},$u=da(void 0),JC={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};$u.Provider;const Ne=t=>fa($u,(e=JC)=>t(e)),QC=(t,e)=>{const r=Ne(m=>m.contentRef),o=Ne(m=>m.openOnHover),n=Ne(m=>m.setOpen),i=Ne(m=>m.mountNode),s=Ne(m=>m.arrowRef),a=Ne(m=>m.size),l=Ne(m=>m.withArrow),c=Ne(m=>m.appearance),u=Ne(m=>m.trapFocus),d=Ne(m=>m.inertTrapFocus),f=Ne(m=>m.inline),{modalAttributes:p}=Fg({trapFocus:u,legacyTrapFocus:!d,alwaysFocusable:!u}),h={inline:f,appearance:c,withArrow:l,size:a,arrowRef:s,mountNode:i,components:{root:"div"},root:Re(At("div",{ref:Ct(e,r),role:u?"dialog":"group","aria-modal":u?!0:void 0,...p,...t}),{elementType:"div"})},{onMouseEnter:g,onMouseLeave:v,onKeyDown:w}=h.root;return h.root.onMouseEnter=m=>{o&&n(m,!0),g==null||g(m)},h.root.onMouseLeave=m=>{o&&n(m,!1),v==null||v(m)},h.root.onKeyDown=m=>{var y;m.key==="Escape"&&(!((y=r.current)===null||y===void 0)&&y.contains(m.target))&&(m.preventDefault(),n(m,!1)),w==null||w(m)},h};function YC(t){return On(t)?{element:t}:typeof t=="object"?t===null?{element:null}:t:{}}var uv=()=>b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,eS=()=>!1,vh=new WeakSet;function tS(t,e){const r=uv();b.useEffect(()=>{if(!vh.has(r)){vh.add(r),t();return}return t()},e)}var mh=new WeakSet;function rS(t,e){return b.useMemo(()=>{const r=uv();return mh.has(r)?t():(mh.add(r),null)},e)}function oS(t,e){var r;const o=eS()&&!1,n=o?rS:b.useMemo,i=o?tS:b.useEffect,[s,a]=(r=n(()=>t(),e))!=null?r:[null,()=>null];return i(()=>a,e),s}const nS=oe({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),bh=Rr.useInsertionEffect,iS=t=>{const{targetDocument:e,dir:r}=bt(),o=$7(),n=Pg(),i=nS(),s=x7(),a=Z(s,i.root,t.className),l=o??(e==null?void 0:e.body),c=oS(()=>{if(l===void 0||t.disabled)return[null,()=>null];const u=l.ownerDocument.createElement("div");return l.appendChild(u),[u,()=>u.remove()]},[l]);return bh?bh(()=>{if(!c)return;const u=a.split(" ").filter(Boolean);return c.classList.add(...u),c.setAttribute("dir",r),c.setAttribute("data-portal-node","true"),n.current=c,()=>{c.classList.remove(...u),c.removeAttribute("dir")}},[a,r,c,n]):b.useMemo(()=>{c&&(c.className=a,c.setAttribute("dir",r),c.setAttribute("data-portal-node","true"),n.current=c)},[a,r,c,n]),c},sS=t=>{const{element:e,className:r}=YC(t.mountNode),o=b.useRef(null),n=iS({disabled:!!e,className:r}),i=e??n,s={children:t.children,mountNode:i,virtualParentRootRef:o};return b.useEffect(()=>{if(!i)return;const a=o.current,l=i.contains(a);if(a&&!l)return Vf(i,a),()=>{Vf(i,void 0)}},[o,i]),s},aS=t=>b.createElement("span",{hidden:!0,ref:t.virtualParentRootRef},t.mountNode&&Cv.createPortal(t.children,t.mountNode)),Au=t=>{const e=sS(t);return aS(e)};Au.displayName="Portal";const lS=t=>{const e=vr(t.root,{children:[t.withArrow&&W("div",{ref:t.arrowRef,className:t.arrowClassName}),t.root.children]});return t.inline?e:W(Au,{mountNode:t.mountNode,children:e})},cS={root:"fui-PopoverSurface"},uS={small:6,medium:8,large:8},dS=oe({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1sy4kr4"},mediumPadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4zyqsv"},largePadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fop8ug2"},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",Bk5zm6e:0,m598lv:0,B4f6apu:0,eqrjj:"f15tymiq",Bqjgrrk:0,qa3bma:0,y0oebl:0,Bcgcnre:"fi8wnwo",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:"f16cagkn",hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",[".f1sy4kr4{padding:12px;}",{p:-1}],[".f4zyqsv{padding:16px;}",{p:-1}],[".fop8ug2{padding:20px;}",{p:-1}],".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",[".f15tymiq::before{border-right:1px solid var(--colorTransparentStroke);}",{p:-1}],[".fi8wnwo::before{border-bottom:1px solid var(--colorTransparentStroke);}",{p:-1}],".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f16cagkn::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),fS=t=>{const e=dS();return t.root.className=Z(cS.root,e.root,t.inline&&e.inline,t.size==="small"&&e.smallPadding,t.size==="medium"&&e.mediumPadding,t.size==="large"&&e.largePadding,t.appearance==="inverted"&&e.inverted,t.appearance==="brand"&&e.brand,t.root.className),t.arrowClassName=Z(e.arrow,t.size==="small"?e.smallArrow:e.mediumLargeArrow),t},sc=b.forwardRef((t,e)=>{const r=QC(t,e);return fS(r),gr("usePopoverSurfaceStyles_unstable")(r),lS(r)});sc.displayName="PopoverSurface";const hS=4,pS=t=>{const[e,r]=cv(),o={size:"medium",contextTarget:e,setContextTarget:r,...t},n=b.Children.toArray(t.children);let i,s;n.length===2?(i=n[0],s=n[1]):n.length===1&&(s=n[0]);const[a,l]=gS(o),[c,u]=ou(),d=q((C,x)=>{if(u(),!(C instanceof Event)&&C.persist&&C.persist(),C.type==="mouseleave"){var _;c(()=>{l(C,x)},(_=t.mouseLeaveDelay)!==null&&_!==void 0?_:500)}else l(C,x)}),f=b.useCallback(C=>{d(C,!a)},[d,a]),p=vS(o),{targetDocument:h}=bt();var g;Ip({contains:_o,element:h,callback:C=>d(C,!1),refs:[p.triggerRef,p.contentRef],disabled:!a,disabledFocusOnIframe:!(!((g=t.closeOnIframeFocus)!==null&&g!==void 0)||g)});const v=o.openOnContext||o.closeOnScroll;Mp({contains:_o,element:h,callback:C=>d(C,!1),refs:[p.triggerRef,p.contentRef],disabled:!a||!v});const{findFirstFocusable:w}=ua();b.useEffect(()=>{if(!t.unstable_disableAutoFocus&&a&&p.contentRef.current){var C;const x=(C=p.contentRef.current.getAttribute("tabIndex"))!==null&&C!==void 0?C:void 0,_=isNaN(x)?w(p.contentRef.current):p.contentRef.current;_==null||_.focus()}},[w,a,p.contentRef,t.unstable_disableAutoFocus]);var m,y;return{...o,...p,inertTrapFocus:(m=t.inertTrapFocus)!==null&&m!==void 0?m:t.legacyTrapFocus===void 0?!1:!t.legacyTrapFocus,popoverTrigger:i,popoverSurface:s,open:a,setOpen:d,toggleOpen:f,setContextTarget:r,contextTarget:e,inline:(y=t.inline)!==null&&y!==void 0?y:!1}};function gS(t){const e=q((s,a)=>{var l;return(l=t.onOpenChange)===null||l===void 0?void 0:l.call(t,s,a)}),[r,o]=Vo({state:t.open,defaultState:t.defaultOpen,initialState:!1});t.open=r!==void 0?r:t.open;const n=t.setContextTarget,i=b.useCallback((s,a)=>{a&&s.type==="contextmenu"&&n(s),a||n(void 0),o(a),e==null||e(s,{open:a})},[o,e,n]);return[r,i]}function vS(t){const e={position:"above",align:"center",arrowPadding:2*hS,target:t.openOnContext?t.contextTarget:void 0,...Eu(t.positioning)};e.coverTarget&&(t.withArrow=!1),t.withArrow&&(e.offset=PC(e.offset,uS[t.size]));const{targetRef:r,containerRef:o,arrowRef:n}=lv(e);return{triggerRef:r,contentRef:o,arrowRef:n}}const mS=t=>{const{appearance:e,arrowRef:r,contentRef:o,inline:n,mountNode:i,open:s,openOnContext:a,openOnHover:l,setOpen:c,size:u,toggleOpen:d,trapFocus:f,triggerRef:p,withArrow:h,inertTrapFocus:g}=t;return b.createElement($u.Provider,{value:{appearance:e,arrowRef:r,contentRef:o,inline:n,mountNode:i,open:s,openOnContext:a,openOnHover:l,setOpen:c,toggleOpen:d,triggerRef:p,size:u,trapFocus:f,inertTrapFocus:g,withArrow:h}},t.popoverTrigger,t.open&&t.popoverSurface)},ac=t=>{const e=pS(t);return mS(e)};ac.displayName="Popover";const bS=t=>{const{children:e,disableButtonEnhancement:r=!1}=t,o=nu(e),n=Ne(y=>y.open),i=Ne(y=>y.setOpen),s=Ne(y=>y.toggleOpen),a=Ne(y=>y.triggerRef),l=Ne(y=>y.openOnHover),c=Ne(y=>y.openOnContext),{triggerAttributes:u}=Fg(),d=y=>{c&&(y.preventDefault(),i(y,!0))},f=y=>{c||s(y)},p=y=>{y.key===xu&&n&&!y.isDefaultPrevented()&&(i(y,!1),y.preventDefault())},h=y=>{l&&i(y,!0)},g=y=>{l&&i(y,!1)},v={...u,"aria-expanded":`${n}`,...o==null?void 0:o.props,onMouseEnter:q(Le(o==null?void 0:o.props.onMouseEnter,h)),onMouseLeave:q(Le(o==null?void 0:o.props.onMouseLeave,g)),onContextMenu:q(Le(o==null?void 0:o.props.onContextMenu,d)),ref:Ct(a,o==null?void 0:o.ref)},w={...v,onClick:q(Le(o==null?void 0:o.props.onClick,f)),onKeyDown:q(Le(o==null?void 0:o.props.onKeyDown,p))},m=zn((o==null?void 0:o.type)==="button"||(o==null?void 0:o.type)==="a"?o.type:"div",w);return{children:Vp(t.children,zn((o==null?void 0:o.type)==="button"||(o==null?void 0:o.type)==="a"?o.type:"div",c?v:r?w:m))}},yS=t=>t.children,Nu=t=>{const e=bS(t);return yS(e)};Nu.displayName="PopoverTrigger";Nu.isFluentTriggerComponent=!0;const dv=b.createContext(void 0),wS={};dv.Provider;const kS=()=>{var t;return(t=b.useContext(dv))!==null&&t!==void 0?t:wS},xS=(t,e)=>{const{size:r}=kS(),{appearance:o="secondary",as:n="button",disabled:i=!1,disabledFocusable:s=!1,icon:a,iconPosition:l="before",shape:c="rounded",size:u=r??"medium"}=t,d=ht(a,{elementType:"span"});return{appearance:o,disabled:i,disabledFocusable:s,iconPosition:l,shape:c,size:u,iconOnly:!!(d!=null&&d.children&&!t.children),components:{root:"button",icon:"span"},root:Re(At(n,zn(t.as,t)),{elementType:"button",defaultProps:{ref:e,type:"button"}}),icon:d}},yh={root:"fui-Button",icon:"fui-Button__icon"},CS=eo("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),SS=eo("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),_S=oe({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},small:{Bf4jedk:"fh7ncta",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fneth5b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4db1ww",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".fh7ncta{min-width:64px;}",[".fneth5b{padding:3px var(--spacingHorizontalS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",[".f4db1ww{padding:8px var(--spacingHorizontalL);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),BS=oe({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),PS=oe({circular:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1062rbf"},rounded:{},square:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fj0ryk1"},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fazmxh"},medium:{},large:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1b6alqh"}},{d:[[".f1062rbf[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fj0ryk1[data-fui-focus-visible]{border-radius:var(--borderRadiusNone);}",{p:-1}],".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",[".fazmxh[data-fui-focus-visible]{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".f1b6alqh[data-fui-focus-visible]{border-radius:var(--borderRadiusLarge);}",{p:-1}]],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),FS=oe({small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fu97m5z",Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f18ktai2",Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1hbd1aw",Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[[".fu97m5z{padding:1px;}",{p:-1}],".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",[".f18ktai2{padding:5px;}",{p:-1}],".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",[".f1hbd1aw{padding:7px;}",{p:-1}],".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),TS=oe({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),ES=t=>{const e=CS(),r=SS(),o=_S(),n=BS(),i=PS(),s=FS(),a=TS(),{appearance:l,disabled:c,disabledFocusable:u,icon:d,iconOnly:f,iconPosition:p,shape:h,size:g}=t;return t.root.className=Z(yh.root,e,l&&o[l],o[g],d&&g==="small"&&o.smallWithIcon,d&&g==="large"&&o.largeWithIcon,o[h],(c||u)&&n.base,(c||u)&&n.highContrast,l&&(c||u)&&n[l],l==="primary"&&i.primary,i[g],i[h],f&&s[g],t.root.className),t.icon&&(t.icon.className=Z(yh.icon,r,!!t.root.children&&a[p],a[g],t.icon.className)),t},$S=t=>{const{icon:e,iconOnly:r}=t;return vr(t.root,{children:[t.icon&&W(t.icon,{}),!r&&t.root.children,(!r||!(e!=null&&e.children))&&t.menuIcon&&W(t.menuIcon,{})]})},AS=({menuIcon:t,...e},r)=>{const o=xS(e,r);var n;return o.root["aria-expanded"]=(n=e["aria-expanded"])!==null&&n!==void 0?n:!1,{...o,iconOnly:!e.children,components:{root:"button",icon:"span",menuIcon:"span"},menuIcon:ht(t,{defaultProps:{children:b.createElement(dx,null)},renderByDefault:!0,elementType:"span"})}},bl={root:"fui-MenuButton",icon:"fui-MenuButton__icon",menuIcon:"fui-MenuButton__menuIcon"},NS=oe({base:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"},outline:{g2u3we:"f1ly1fcm",h3c5rm:["fi8bssc","fj6btzu"],B9xav0g:"f1s9tnsa",zhjwy3:["fj6btzu","fi8bssc"],B4j52fo:"fgx37oo",Bekrc4i:["f130t4y6","f1efpmoh"],Bn0qgzm:"fv51ejd",ibv6hh:["f1efpmoh","f130t4y6"],sj55zd:"f14nttnl"},primary:{De3pzq:"f8w4g0q"},secondary:{De3pzq:"f1nfm20t",g2u3we:"f1ly1fcm",h3c5rm:["fi8bssc","fj6btzu"],B9xav0g:"f1s9tnsa",zhjwy3:["fj6btzu","fi8bssc"],sj55zd:"f14nttnl"},subtle:{De3pzq:"fq5gl1p",sj55zd:"f1eryozh"},transparent:{De3pzq:"f1q9pm1r",sj55zd:"f1qj7y59"}},{d:[".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f1ly1fcm{border-top-color:var(--colorNeutralStroke1Selected);}",".fi8bssc{border-right-color:var(--colorNeutralStroke1Selected);}",".fj6btzu{border-left-color:var(--colorNeutralStroke1Selected);}",".f1s9tnsa{border-bottom-color:var(--colorNeutralStroke1Selected);}",".fgx37oo{border-top-width:var(--strokeWidthThicker);}",".f130t4y6{border-right-width:var(--strokeWidthThicker);}",".f1efpmoh{border-left-width:var(--strokeWidthThicker);}",".fv51ejd{border-bottom-width:var(--strokeWidthThicker);}",".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1eryozh{color:var(--colorNeutralForeground2Selected);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"]}),LS=oe({outline:{sj55zd:"f14nttnl"},primary:{},secondary:{sj55zd:"f14nttnl"},subtle:{sj55zd:"f1qj7y59"},transparent:{sj55zd:"f1qj7y59"},highContrast:{ze5xyy:"fqyhrn0"}},{d:[".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.fqyhrn0:hover{color:Canvas;}}",{m:"(forced-colors: active)"}]]}),RS=oe({base:{Bg96gwp:"fez10in"},small:{Be2twd7:"f1ugzwwg",Bqenvij:"fvblgha",Bg96gwp:"fwrc4pm",a9b677:"frx94fk"},medium:{Be2twd7:"f1ugzwwg",Bqenvij:"fvblgha",Bg96gwp:"fwrc4pm",a9b677:"frx94fk"},large:{Be2twd7:"f4ybsrx",Bqenvij:"fd461yt",Bg96gwp:"faaz57k",a9b677:"fjw5fx7"},notIconOnly:{Frg6f3:["fbyavb5","fm0x6gh"]}},{d:[".fez10in{line-height:0;}",".f1ugzwwg{font-size:12px;}",".fvblgha{height:12px;}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".frx94fk{width:12px;}",".f4ybsrx{font-size:16px;}",".fd461yt{height:16px;}",".faaz57k{line-height:var(--lineHeightBase400);}",".fjw5fx7{width:16px;}",".fbyavb5{margin-left:var(--spacingHorizontalXS);}",".fm0x6gh{margin-right:var(--spacingHorizontalXS);}"]}),DS=t=>{const e=NS(),r=LS(),o=RS();return t.root.className=Z(bl.root,t.root["aria-expanded"]&&e.base,t.root["aria-expanded"]&&e[t.appearance],t.root.className),t.icon&&(t.icon.className=Z(bl.icon,t.root["aria-expanded"]&&r[t.appearance]&&r.highContrast,t.icon.className)),t.menuIcon&&(t.menuIcon.className=Z(bl.menuIcon,o.base,o[t.size],!t.iconOnly&&o.notIconOnly,t.menuIcon.className)),ES({...t,iconPosition:"before"}),t},fv=b.forwardRef((t,e)=>{const r=AS(t,e);return DS(r),gr("useMenuButtonStyles_unstable")(r),$S(r)});fv.displayName="MenuButton";const OS=(t,e)=>{const{disabled:r=!1,required:o=!1,weight:n="regular",size:i="medium"}=t;return{disabled:r,required:ht(o===!0?"*":o||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:n,size:i,components:{root:"label",required:"span"},root:Re(At("label",{ref:e,...t}),{elementType:"label"})}},IS=t=>vr(t.root,{children:[t.root.children,t.required&&W(t.required,{})]}),wh={root:"fui-Label",required:"fui-Label__required"},MS=oe({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},required:{sj55zd:"f1whyuy6",uwmqm3:["fruq291","f7x41pl"]},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),zS=t=>{const e=MS();return t.root.className=Z(wh.root,e.root,t.disabled&&e.disabled,e[t.size],t.weight==="semibold"&&e.semibold,t.root.className),t.required&&(t.required.className=Z(wh.required,e.required,t.disabled&&e.disabled,t.required.className)),t},fs=b.forwardRef((t,e)=>{const r=OS(t,e);return zS(r),gr("useLabelStyles_unstable")(r),IS(r)});fs.displayName="Label";const Lu=da(void 0),VS={open:!1,setOpen:()=>!1,checkedValues:{},onCheckedValueChange:()=>null,isSubmenu:!1,triggerRef:{current:null},menuPopoverRef:{current:null},mountNode:null,triggerId:"",openOnContext:!1,openOnHover:!1,hasIcons:!1,hasCheckmarks:!1,inline:!1,persistOnItemClick:!1},HS=Lu.Provider,ve=t=>fa(Lu,(e=VS)=>t(e)),hv=b.createContext(void 0),jS=!1,qS=hv.Provider,US=()=>{var t;return(t=b.useContext(hv))!==null&&t!==void 0?t:jS},Ru=da(void 0),WS={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},ZS=Ru.Provider,lc=t=>fa(Ru,(e=WS)=>t(e)),Hn="fuimenuenter",GS=t=>{const{refs:e,callback:r,element:o,disabled:n}=t,i=q(s=>{const a=e[0],l=s.target;var c;!_o((c=a.current)!==null&&c!==void 0?c:null,l)&&!n&&r(s)});b.useEffect(()=>{if(o!=null)return n||o.addEventListener(Hn,i),()=>{o.removeEventListener(Hn,i)}},[i,o,n])},XS=(t,e)=>{t.dispatchEvent(new CustomEvent(Hn,{bubbles:!0,detail:{nativeEvent:e}}))};function Du(){const t=ve(r=>r.isSubmenu),e=Hg(Ru);return t||e}const KS=["after","after-bottom","before-top","before","before-bottom","above"],JS=t=>{const e=Du(),{hoverDelay:r=500,inline:o=!1,hasCheckmarks:n=!1,hasIcons:i=!1,closeOnScroll:s=!1,openOnContext:a=!1,persistOnItemClick:l=!1,openOnHover:c=e,defaultCheckedValues:u,mountNode:d=null}=t,f=aa("menu"),[p,h]=cv(),g={position:e?"after":"below",align:e?"top":"start",target:t.openOnContext?p:void 0,fallbackPositions:e?KS:void 0,...Eu(t.positioning)},v=b.Children.toArray(t.children);let w,m;v.length===2?(w=v[0],m=v[1]):v.length===1&&(m=v[0]);const{targetRef:y,containerRef:C}=lv(g),[x,_]=YS({hoverDelay:r,isSubmenu:e,setContextTarget:h,closeOnScroll:s,menuPopoverRef:C,triggerRef:y,open:t.open,defaultOpen:t.defaultOpen,onOpenChange:t.onOpenChange,openOnContext:a}),[B,E]=QS({checkedValues:t.checkedValues,defaultCheckedValues:u,onCheckedValueChange:t.onCheckedValueChange});return{inline:o,hoverDelay:r,triggerId:f,isSubmenu:e,openOnHover:c,contextTarget:p,setContextTarget:h,hasCheckmarks:n,hasIcons:i,closeOnScroll:s,menuTrigger:w,menuPopover:m,mountNode:d,triggerRef:y,menuPopoverRef:C,components:{},openOnContext:a,open:x,setOpen:_,checkedValues:B,onCheckedValueChange:E,persistOnItemClick:l}},QS=t=>{const[e,r]=Vo({state:t.checkedValues,defaultState:t.defaultCheckedValues,initialState:{}}),o=q((n,{name:i,checkedItems:s})=>{var a;(a=t.onCheckedValueChange)===null||a===void 0||a.call(t,n,{name:i,checkedItems:s}),r(l=>({...l,[i]:s}))});return[e,o]},YS=t=>{const{targetDocument:e}=bt(),r=ve(h=>h.setOpen),o=q((h,g)=>{var v;return(v=t.onOpenChange)===null||v===void 0?void 0:v.call(t,h,g)}),n=b.useRef(!1),[i,s]=Vo({state:t.open,defaultState:t.defaultOpen,initialState:!1}),a=q((h,g)=>{const v=h instanceof CustomEvent&&h.type===Hn?h.detail.nativeEvent:h;o==null||o(v,{...g}),g.open&&h.type==="contextmenu"&&t.setContextTarget(h),g.open||t.setContextTarget(void 0),g.bubble&&r(h,{...g}),s(g.open)}),[l,c]=ou(),u=q((h,g)=>{if(c(),!(h instanceof Event)&&h.persist&&h.persist(),h.type==="mouseleave"||h.type==="mouseenter"||h.type==="mousemove"||h.type===Hn){var v;!((v=t.triggerRef.current)===null||v===void 0)&&v.contains(h.target)&&(n.current=h.type==="mouseenter"||h.type==="mousemove"),l(()=>a(h,g),t.hoverDelay)}else a(h,g)});Ip({contains:_o,disabled:!i,element:e,refs:[t.menuPopoverRef,!t.openOnContext&&t.triggerRef].filter(Boolean),callback:h=>u(h,{open:!1,type:"clickOutside",event:h})});const d=t.openOnContext||t.closeOnScroll;Mp({contains:_o,element:e,callback:h=>u(h,{open:!1,type:"scrollOutside",event:h}),refs:[t.menuPopoverRef,!t.openOnContext&&t.triggerRef].filter(Boolean),disabled:!i||!d}),GS({element:e,callback:h=>{n.current||u(h,{open:!1,type:"menuMouseEnter",event:h})},disabled:!i,refs:[t.menuPopoverRef]});const{findFirstFocusable:f}=ua(),p=b.useCallback(()=>{const h=f(t.menuPopoverRef.current);h==null||h.focus()},[f,t.menuPopoverRef]);return b.useEffect(()=>{i&&p()},[i,p]),[i,u]};function e_(t){const{checkedValues:e,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:s,mountNode:a,onCheckedValueChange:l,open:c,openOnContext:u,openOnHover:d,persistOnItemClick:f,setOpen:p,triggerId:h,triggerRef:g}=t;return{menu:{checkedValues:e,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:s,mountNode:a,onCheckedValueChange:l,open:c,openOnContext:u,openOnHover:d,persistOnItemClick:f,setOpen:p,triggerId:h,triggerRef:g}}}const t_=(t,e)=>b.createElement(HS,{value:e.menu},t.menuTrigger,t.open&&t.menuPopover),pv=t=>{const e=JS(t),r=e_(e);return t_(e,r)};pv.displayName="Menu";const r_=(t,e)=>{const r=lc(n=>n.setFocusByFirstCharacter),{onKeyDown:o}=t.root;return t.root.onKeyDown=n=>{var i;o==null||o(n),!(((i=n.key)===null||i===void 0?void 0:i.length)>1)&&e.current&&(r==null||r(n,e.current))},t},o_=si(px,gx),n_=si(fx,hx),i_=(t,e)=>{const r=US(),o=ve(g=>g.persistOnItemClick),{as:n="div",disabled:i=!1,hasSubmenu:s=r,persistOnClick:a=o}=t,l=lc(g=>g.hasIcons),c=lc(g=>g.hasCheckmarks),u=ve(g=>g.setOpen),{dir:d}=bt(),f=b.useRef(null),p=b.useRef(!1),h={hasSubmenu:s,disabled:i,persistOnClick:a,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span"},root:Re(At(n,zn(n,{role:"menuitem",...t,disabled:!1,disabledFocusable:i,ref:Ct(e,f),onKeyDown:q(g=>{var v;(v=t.onKeyDown)===null||v===void 0||v.call(t,g),!g.isDefaultPrevented()&&(g.key===sn||g.key===Ri)&&(p.current=!0)}),onMouseEnter:q(g=>{var v,w;(v=f.current)===null||v===void 0||v.focus(),(w=t.onMouseEnter)===null||w===void 0||w.call(t,g)}),onClick:q(g=>{var v;!s&&!a&&(u(g,{open:!1,keyboard:p.current,bubble:!0,type:"menuItemClick",event:g}),p.current=!1),(v=t.onClick)===null||v===void 0||v.call(t,g)})})),{elementType:"div"}),icon:ht(t.icon,{renderByDefault:l,elementType:"span"}),checkmark:ht(t.checkmark,{renderByDefault:c,elementType:"span"}),submenuIndicator:ht(t.submenuIndicator,{renderByDefault:s,defaultProps:{children:d==="ltr"?b.createElement(o_,null):b.createElement(n_,null)},elementType:"span"}),content:ht(t.content,{renderByDefault:!!t.children,defaultProps:{children:t.children},elementType:"span"}),secondaryContent:ht(t.secondaryContent,{elementType:"span"})};return r_(h,f),h},s_=t=>vr(t.root,{children:[t.checkmark&&W(t.checkmark,{}),t.icon&&W(t.icon,{}),t.content&&W(t.content,{}),t.secondaryContent&&W(t.secondaryContent,{}),t.submenuIndicator&&W(t.submenuIndicator,{})]}),a_=oe({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0"},rootChecked:{Bcdw1i0:"f1022m68"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".f1022m68{visibility:visible;}"]}),l_=t=>{const e=a_();t.checkmark&&(t.checkmark.className=Z(e.root,t.checked&&e.rootChecked,t.checkmark.className))},to={root:"fui-MenuItem",icon:"fui-MenuItem__icon",checkmark:"fui-MenuItem__checkmark",submenuIndicator:"fui-MenuItem__submenuIndicator",content:"fui-MenuItem__content",secondaryContent:"fui-MenuItem__secondaryContent"},c_=eo("r11normc","r1lnj0i0",{r:[".r11normc{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-right:var(--spacingVerticalSNudge);padding-left:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".r11normc:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".r11normc:hover .fui-Icon-filled{display:inline;}",".r11normc:hover .fui-Icon-regular{display:none;}",".r11normc:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".r11normc:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".r11normc:focus{outline-style:none;}",".r11normc:focus-visible{outline-style:none;}",".r11normc[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r11normc[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1lnj0i0{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-left:var(--spacingVerticalSNudge);padding-right:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".r1lnj0i0:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".r1lnj0i0:hover .fui-Icon-filled{display:inline;}",".r1lnj0i0:hover .fui-Icon-regular{display:none;}",".r1lnj0i0:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".r1lnj0i0:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".r1lnj0i0:focus{outline-style:none;}",".r1lnj0i0:focus-visible{outline-style:none;}",".r1lnj0i0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1lnj0i0[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:['@media (forced-colors: active){.r11normc:hover{background-color:Canvas;border-color:Highlight;color:Highlight;}.r11normc:focus{outline-style:none;}.r11normc:focus-visible{outline-style:none;}.r11normc[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}@media (forced-colors: active){.r11normc[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}.r11normc[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}}',"@media (forced-colors: active){.r11normc[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}",'@media (forced-colors: active){.r1lnj0i0:hover{background-color:Canvas;border-color:Highlight;color:Highlight;}.r1lnj0i0:focus{outline-style:none;}.r1lnj0i0:focus-visible{outline-style:none;}.r1lnj0i0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}@media (forced-colors: active){.r1lnj0i0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}.r1lnj0i0[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}}',"@media (forced-colors: active){.r1lnj0i0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),u_=eo("r1ls86vo","rpbc5dr",[".r1ls86vo{padding-left:2px;padding-right:2px;background-color:transparent;flex-grow:1;}",".rpbc5dr{padding-right:2px;padding-left:2px;background-color:transparent;flex-grow:1;}"]),d_=eo("r12mwwux","r1ewgu5j",[".r12mwwux{padding-left:2px;padding-right:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r12mwwux:hover{color:var(--colorNeutralForeground3Hover);}",".r12mwwux:focus{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j{padding-right:2px;padding-left:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r1ewgu5j:hover{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j:focus{color:var(--colorNeutralForeground3Hover);}"]),f_=eo("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),h_=eo("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),p_=oe({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},disabled:{sj55zd:"f1s2aq7o",Bi91k9c:"fvgxktp",Jwef8y:"f1ijtazh",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bg7n49j:"f1q1x1ba",B2d53fq:"fcvwxyo",iro3zm:"f1to34ca",t0hwav:"ft33916",Bbusuzp:"f1dcs8yz",ze5xyy:"f1kc2mi9",Bqrx1nm:"fkavljg",Bctn1xl:"fk56vqo",h5esng:"ff3wi9b",Bh6z0a4:"f1ikwg0d",Bh953qp:"f10l1t5h"}},{d:[".fmnzpld{margin-top:2px;}",".fqerorx{flex-grow:1;}",".f1ozlkrg{border-top-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",'.f1wl9k8s::before{content:"";}',".f1yn80uh::before{width:var(--strokeWidthThin);}",".f68mna0::before{height:24px;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],h:[".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ijtazh:hover{background-color:var(--colorNeutralBackground1);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1q1x1ba:hover .fui-MenuItem__icon{color:var(--colorNeutralForegroundDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1to34ca:hover:active{background-color:var(--colorNeutralBackground1);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkavljg:hover{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk56vqo:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff3wi9b:hover .fui-MenuItem__icon{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ikwg0d:focus{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f10l1t5h:focus{background-color:Canvas;}}",{m:"(forced-colors: active)"}]]}),g_=t=>{const e=p_(),r=c_(),o=u_(),n=d_(),i=f_(),s=h_();return t.root.className=Z(to.root,r,t.disabled&&e.disabled,t.root.className),t.content&&(t.content.className=Z(to.content,o,t.content.className)),t.checkmark&&(t.checkmark.className=Z(to.checkmark,e.checkmark,t.checkmark.className)),t.secondaryContent&&(t.secondaryContent.className=Z(to.secondaryContent,!t.disabled&&n,t.secondaryContent.className)),t.icon&&(t.icon.className=Z(to.icon,i,t.icon.className)),t.submenuIndicator&&(t.submenuIndicator.className=Z(to.submenuIndicator,s,t.submenuIndicator.className)),l_(t),t},gv=b.forwardRef((t,e)=>{const r=i_(t,e);return g_(r),gr("useMenuItemStyles_unstable")(r),s_(r)});gv.displayName="MenuItem";const v_=(t,e)=>{const{findAllFocusable:r}=ua(),o=m_(),n=Hg(Lu),i=_g({circular:!0,ignoreDefaultKeydown:{Tab:n}});b_(t,o,n)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const s=b.useRef(null),a=b.useCallback((g,v)=>{const w=["menuitem","menuitemcheckbox","menuitemradio"];if(!s.current)return;const m=r(s.current,E=>E.hasAttribute("role")&&w.indexOf(E.getAttribute("role"))!==-1);let y=m.indexOf(v)+1;y===m.length&&(y=0);const C=m.map(E=>{var I;return(I=E.textContent)===null||I===void 0?void 0:I.charAt(0).toLowerCase()}),x=g.key.toLowerCase(),_=(E,I)=>{for(let H=E;H-1&&m[B].focus()},[r]);var l;const[c,u]=Vo({state:(l=t.checkedValues)!==null&&l!==void 0?l:n?o.checkedValues:void 0,defaultState:t.defaultCheckedValues,initialState:{}});var d;const f=(d=t.onCheckedValueChange)!==null&&d!==void 0?d:n?o.onCheckedValueChange:void 0,p=q((g,v,w,m)=>{const C=[...(c==null?void 0:c[v])||[]];m?C.splice(C.indexOf(w),1):C.push(w),f==null||f(g,{name:v,checkedItems:C}),u(x=>({...x,[v]:C}))}),h=q((g,v,w)=>{const m=[w];u(y=>({...y,[v]:m})),f==null||f(g,{name:v,checkedItems:m})});return{components:{root:"div"},root:Re(At("div",{ref:Ct(e,s),role:"menu","aria-labelledby":o.triggerId,...i,...t}),{elementType:"div"}),hasIcons:o.hasIcons||!1,hasCheckmarks:o.hasCheckmarks||!1,checkedValues:c,hasMenuContext:n,setFocusByFirstCharacter:a,selectRadio:h,toggleCheckbox:p}},m_=()=>{const t=ve(i=>i.checkedValues),e=ve(i=>i.onCheckedValueChange),r=ve(i=>i.triggerId),o=ve(i=>i.hasIcons),n=ve(i=>i.hasCheckmarks);return{checkedValues:t,onCheckedValueChange:e,triggerId:r,hasIcons:o,hasCheckmarks:n}},b_=(t,e,r)=>{let o=!1;for(const n in e)t[n]&&(o=!0);return r&&o},y_=(t,e)=>W(ZS,{value:e.menuList,children:W(t.root,{})});function w_(t){const{checkedValues:e,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:s}=t;return{menuList:{checkedValues:e,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:s}}}const k_={root:"fui-MenuList"},x_=oe({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:0,Belr9w4:0,rmohyg:"f1t6b6ee"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",[".f1t6b6ee{gap:2px;}",{p:-1}],".f1l02sjl{height:100%;}"]}),C_=t=>{const e=x_();return t.root.className=Z(k_.root,e.root,t.hasMenuContext&&e.hasMenuContext,t.root.className),t},vv=b.forwardRef((t,e)=>{const r=v_(t,e),o=w_(r);return C_(r),gr("useMenuListStyles_unstable")(r),y_(r,o)});vv.displayName="MenuList";const S_=(t,e)=>{const r=ve(x=>x.menuPopoverRef),o=ve(x=>x.setOpen),n=ve(x=>x.open),i=ve(x=>x.openOnHover),s=ve(x=>x.triggerRef),a=Du(),l=b.useRef(!0),c=A8(),[u,d]=ou(),{dir:f}=bt(),p=f==="ltr"?jg:qg,h=b.useCallback(x=>{x&&x.addEventListener("mouseover",_=>{l.current&&(l.current=!1,XS(r.current,_),u(()=>l.current=!0,250))})},[r,u]);b.useEffect(()=>{},[d]);var g;const v=(g=ve(x=>x.inline))!==null&&g!==void 0?g:!1,w=ve(x=>x.mountNode),m=Re(At("div",{role:"presentation",...c,...t,ref:Ct(e,r,h)}),{elementType:"div"}),{onMouseEnter:y,onKeyDown:C}=m;return m.onMouseEnter=q(x=>{(i||a)&&o(x,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:x}),y==null||y(x)}),m.onKeyDown=q(x=>{const _=x.key;if(_===xu||a&&_===p){var B;n&&(!((B=r.current)===null||B===void 0)&&B.contains(x.target))&&!x.isDefaultPrevented()&&(o(x,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:x}),x.preventDefault())}if(_===Ik&&(o(x,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:x}),!a)){var E;(E=s.current)===null||E===void 0||E.focus()}C==null||C(x)}),{inline:v,mountNode:w,components:{root:"div"},root:m}},__={root:"fui-MenuPopover"},B_=oe({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fd3pd8h",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".fl8fusi{min-width:138px;}",".f1kaai3v{max-width:300px;}",".f1p9o1ba{overflow-x:hidden;}",".f1ahpp82{width:max-content;}",".f1hg901r{box-shadow:var(--shadow16);}",[".fd3pd8h{padding:4px;}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),P_=t=>{const e=B_();return t.root.className=Z(__.root,e.root,t.root.className),t},F_=t=>t.inline?W(t.root,{}):W(Au,{mountNode:t.mountNode,children:W(t.root,{})}),mv=b.forwardRef((t,e)=>{const r=S_(t,e);return P_(r),gr("useMenuPopoverStyles_unstable")(r),F_(r)});mv.displayName="MenuPopover";const T_=t=>{const{children:e,disableButtonEnhancement:r=!1}=t,o=ve(M=>M.triggerRef),n=ve(M=>M.menuPopoverRef),i=ve(M=>M.setOpen),s=ve(M=>M.open),a=ve(M=>M.triggerId),l=ve(M=>M.openOnHover),c=ve(M=>M.openOnContext),u=$8(),d=Du(),{findFirstFocusable:f}=ua(),p=b.useCallback(()=>{const M=f(n.current);M==null||M.focus()},[f,n]),h=b.useRef(!1),g=b.useRef(!1),{dir:v}=bt(),w=v==="ltr"?qg:jg,m=nu(e),y=M=>{ro(M)||M.isDefaultPrevented()||c&&(M.preventDefault(),i(M,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:M}))},C=M=>{ro(M)||c||(i(M,{open:!s,keyboard:h.current,type:"menuTriggerClick",event:M}),h.current=!1)},x=M=>{if(ro(M))return;const Ge=M.key;!c&&(d&&Ge===w||!d&&Ge===Mk)&&i(M,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:M}),Ge===xu&&!d&&i(M,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:M}),s&&Ge===w&&d&&p()},_=M=>{ro(M)||l&&g.current&&i(M,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:M})},B=M=>{ro(M)||l&&!g.current&&(i(M,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:M}),g.current=!0)},E=M=>{ro(M)||l&&i(M,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:M})},I={id:a,...u,...m==null?void 0:m.props,ref:Ct(o,m==null?void 0:m.ref),onMouseEnter:q(Le(m==null?void 0:m.props.onMouseEnter,_)),onMouseLeave:q(Le(m==null?void 0:m.props.onMouseLeave,E)),onContextMenu:q(Le(m==null?void 0:m.props.onContextMenu,y)),onMouseMove:q(Le(m==null?void 0:m.props.onMouseMove,B))},H={"aria-haspopup":"menu","aria-expanded":!s&&!d?void 0:s,...I,onClick:q(Le(m==null?void 0:m.props.onClick,C)),onKeyDown:q(Le(m==null?void 0:m.props.onKeyDown,x))},Oe=zn((m==null?void 0:m.type)==="button"||(m==null?void 0:m.type)==="a"?m.type:"div",H);return{isSubmenu:d,children:Vp(e,c?I:r?H:Oe)}},ro=t=>{const e=r=>r.hasAttribute("disabled")||r.hasAttribute("aria-disabled")&&r.getAttribute("aria-disabled")==="true";return On(t.target)&&e(t.target)?!0:On(t.currentTarget)&&e(t.currentTarget)},E_=t=>b.createElement(qS,{value:t.isSubmenu},t.children),Ou=t=>{const e=T_(t);return E_(e)};Ou.displayName="MenuTrigger";Ou.isFluentTriggerComponent=!0;const $_={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},bv=da(void 0),A_=bv.Provider,wt=t=>fa(bv,(e=$_)=>t(e)),N_=(t,e)=>{const{content:r,disabled:o=!1,icon:n,onClick:i,onFocus:s,value:a}=t,l=wt(H=>H.appearance),c=wt(H=>H.reserveSelectedTabSpace),u=wt(H=>H.selectTabOnFocus),d=wt(H=>H.disabled),f=wt(H=>H.selectedValue===a),p=wt(H=>H.onRegister),h=wt(H=>H.onUnregister),g=wt(H=>H.onSelect),v=wt(H=>H.size),w=wt(H=>!!H.vertical),m=d||o,y=b.useRef(null),C=H=>g(H,{value:a}),x=q(Le(i,C)),_=q(Le(s,C));b.useEffect(()=>(p({value:a,ref:y}),()=>{h({value:a,ref:y})}),[p,h,y,a]);const B=ht(n,{elementType:"span"}),E=Re(r,{defaultProps:{children:t.children},elementType:"span"}),I=!!(B!=null&&B.children&&!E.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:Re(At("button",{ref:Ct(e,y),role:"tab",type:"button","aria-selected":m?void 0:`${f}`,...t,disabled:m,onClick:x,onFocus:u?_:s}),{elementType:"button"}),icon:B,iconOnly:I,content:E,contentReservedSpace:ht(r,{renderByDefault:!f&&!I&&c,defaultProps:{children:t.children},elementType:"span"}),appearance:l,disabled:m,selected:f,size:v,value:a,vertical:w}},L_=t=>vr(t.root,{children:[t.icon&&W(t.icon,{}),!t.iconOnly&&W(t.content,{}),t.contentReservedSpace&&W(t.contentReservedSpace,{})]}),kh={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},R_=oe({base:{B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[[".f1gl81tg{overflow:visible;}",{p:-1}],".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),D_=t=>{if(t){var e;const r=((e=t.parentElement)===null||e===void 0?void 0:e.getBoundingClientRect())||{x:0,y:0,width:0,height:0},o=t.getBoundingClientRect();return{x:o.x-r.x,y:o.y-r.y,width:o.width,height:o.height}}},xh=(t,e)=>{var r;const o=e!=null?(r=t[JSON.stringify(e)])===null||r===void 0?void 0:r.ref.current:void 0;return o?D_(o):void 0},O_=t=>{const{disabled:e,selected:r,vertical:o}=t,n=R_(),[i,s]=b.useState(),[a,l]=b.useState({offset:0,scale:1}),c=wt(f=>f.getRegisteredTabs);if(b.useEffect(()=>{i&&l({offset:0,scale:1})},[i]),r){const{previousSelectedValue:f,selectedValue:p,registeredTabs:h}=c();if(f&&i!==f){const g=xh(h,f),v=xh(h,p);if(v&&g){const w=o?g.y-v.y:g.x-v.x,m=o?g.height/v.height:g.width/v.width;l({offset:w,scale:m}),s(f)}}}else i&&s(void 0);if(e)return t;const u=a.offset===0&&a.scale===1;t.root.className=Z(t.root.className,r&&n.base,r&&u&&n.animated,r&&(o?n.vertical:n.horizontal));const d={[kh.offsetVar]:`${a.offset}px`,[kh.scaleVar]:`${a.scale}`};return t.root.style={...d,...t.root.style},t},yl={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},I_={content:"fui-Tab__content--reserved-space"},M_=oe({base:{Bt984gj:"f122n59",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1wmopi4"},smallVertical:{i8kkvl:"f14mj54c",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f12or63q"},mediumHorizontal:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1w08f2p"},mediumVertical:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fymxs25"},largeHorizontal:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ssfvub"},largeVertical:{i8kkvl:"f1rjii52",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fwkd1rq"},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",[".f3bhgqh{border:none;}",{p:-2}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",[".f1wmopi4{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalSNudge);}",{p:-1}],[".f12or63q{padding:var(--spacingVerticalXXS) var(--spacingHorizontalSNudge);}",{p:-1}],".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",[".f1w08f2p{padding:var(--spacingVerticalM) var(--spacingHorizontalMNudge);}",{p:-1}],[".fymxs25{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalMNudge);}",{p:-1}],[".f1ssfvub{padding:var(--spacingVerticalL) var(--spacingHorizontalMNudge);}",{p:-1}],[".fwkd1rq{padding:var(--spacingVerticalS) var(--spacingHorizontalMNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),z_=oe({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}"]}),V_=oe({base:{az7l2e:"fhw179n",vqofr:0,Bv4n3vi:0,Bgqb9hq:0,B0uxbk8:0,Bf3jju6:"fg9j5n4",amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",Bka2azo:0,vzq8l0:0,csmgbd:0,Br4ovkg:0,aelrif:"fceyvr4",y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",[".fg9j5n4:hover::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",[".fceyvr4:active::before{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),H_=oe({base:{Bjyk6c5:"f1rp0jgh",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f3b9emi",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",[".f3b9emi::after{border-radius:var(--borderRadiusCircular);}",{p:-1}],'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),j_=oe({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),q_=oe({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bwptpd"},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1bwptpd{padding:var(--spacingVerticalNone) var(--spacingHorizontalXXS);}",{p:-1}],".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),U_=t=>{const e=M_(),r=z_(),o=V_(),n=H_(),i=j_(),s=q_(),{appearance:a,disabled:l,selected:c,size:u,vertical:d}=t;return t.root.className=Z(yl.root,e.base,d?e.vertical:e.horizontal,u==="small"&&(d?e.smallVertical:e.smallHorizontal),u==="medium"&&(d?e.mediumVertical:e.mediumHorizontal),u==="large"&&(d?e.largeVertical:e.largeHorizontal),r.base,!l&&a==="subtle"&&e.subtle,!l&&a==="transparent"&&e.transparent,!l&&c&&e.selected,l&&e.disabled,o.base,u==="small"&&(d?o.smallVertical:o.smallHorizontal),u==="medium"&&(d?o.mediumVertical:o.mediumHorizontal),u==="large"&&(d?o.largeVertical:o.largeHorizontal),l&&o.disabled,c&&n.base,c&&!l&&n.selected,c&&u==="small"&&(d?n.smallVertical:n.smallHorizontal),c&&u==="medium"&&(d?n.mediumVertical:n.mediumHorizontal),c&&u==="large"&&(d?n.largeVertical:n.largeHorizontal),c&&l&&n.disabled,t.root.className),t.icon&&(t.icon.className=Z(yl.icon,i.base,i[u],c&&i.selected,t.icon.className)),t.contentReservedSpace&&(t.contentReservedSpace.className=Z(I_.content,s.base,u==="large"?s.largeSelected:s.selected,t.icon?s.iconBefore:s.noIconBefore,s.placeholder,t.content.className),t.contentReservedSpaceClassName=t.contentReservedSpace.className),t.content.className=Z(yl.content,s.base,u==="large"&&s.large,c&&(u==="large"?s.largeSelected:s.selected),t.icon?s.iconBefore:s.noIconBefore,t.content.className),O_(t),t},cc=b.forwardRef((t,e)=>{const r=N_(t,e);return U_(r),gr("useTabStyles_unstable")(r),L_(r)});cc.displayName="Tab";const W_=(t,e)=>{const{appearance:r="transparent",reserveSelectedTabSpace:o=!0,disabled:n=!1,onTabSelect:i,selectTabOnFocus:s=!1,size:a="medium",vertical:l=!1}=t,c=b.useRef(null),u=_g({circular:!0,axis:l?"vertical":"horizontal",memorizeCurrent:!0}),[d,f]=Vo({state:t.selectedValue,defaultState:t.defaultSelectedValue,initialState:void 0}),p=b.useRef(void 0),h=b.useRef(void 0);b.useEffect(()=>{h.current=p.current,p.current=d},[d]);const g=q((C,x)=>{f(x.value),i==null||i(C,x)}),v=b.useRef({}),w=q(C=>{v.current[JSON.stringify(C.value)]=C}),m=q(C=>{delete v.current[JSON.stringify(C.value)]}),y=b.useCallback(()=>({selectedValue:p.current,previousSelectedValue:h.current,registeredTabs:v.current}),[]);return{components:{root:"div"},root:Re(At("div",{ref:Ct(e,c),role:"tablist","aria-orientation":l?"vertical":"horizontal",...u,...t}),{elementType:"div"}),appearance:r,reserveSelectedTabSpace:o,disabled:n,selectTabOnFocus:s,selectedValue:d,size:a,vertical:l,onRegister:w,onUnregister:m,onSelect:g,getRegisteredTabs:y}},Z_=(t,e)=>W(t.root,{children:W(A_,{value:e.tabList,children:t.root.children})}),G_={root:"fui-TabList"},X_=oe({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}"]}),K_=t=>{const{vertical:e}=t,r=X_();return t.root.className=Z(G_.root,r.root,e?r.vertical:r.horizontal,t.root.className),t};function J_(t){const{appearance:e,reserveSelectedTabSpace:r,disabled:o,selectTabOnFocus:n,selectedValue:i,onRegister:s,onUnregister:a,onSelect:l,getRegisteredTabs:c,size:u,vertical:d}=t;return{tabList:{appearance:e,reserveSelectedTabSpace:r,disabled:o,selectTabOnFocus:n,selectedValue:i,onSelect:l,onRegister:s,onUnregister:a,getRegisteredTabs:c,size:u,vertical:d}}}const yv=b.forwardRef((t,e)=>{const r=W_(t,e),o=J_(r);return K_(r),gr("useTabListStyles_unstable")(r),Z_(r,o)});yv.displayName="TabList";const Q_=t=>vr(t.root,{children:[W(t.label,{}),t.infoButton&&W(t.infoButton,{})]}),Y_=t=>vr(t.popover,{children:[W(Nu,{children:W(t.root,{})}),W(t.info,{})]}),eB=si(Bx,Px),tB=si(Fx,Tx),rB=si(Ex,$x),oB={small:b.createElement(eB,null),medium:b.createElement(tB,null),large:b.createElement(rB,null)},nB={small:"small",medium:"small",large:"medium"},iB=(t,e)=>{const{size:r="medium",inline:o=!0}=t,n=Ct(e),i={inline:o,size:r,components:{root:"button",popover:ac,info:sc},root:Re(At("button",{children:oB[r],type:"button","aria-label":"information",...t,ref:n}),{elementType:"button"}),popover:Re(t.popover,{defaultProps:{inline:o,positioning:"above-start",size:nB[r],withArrow:!0},elementType:ac}),info:Re(t.info,{defaultProps:{role:"note",tabIndex:-1},elementType:sc})},[s,a]=Vo({state:i.popover.open,defaultState:i.popover.defaultOpen,initialState:!1});i.popover.open=s,i.popover.onOpenChange=Le(i.popover.onOpenChange,(u,d)=>a(d.open));const l=Ct(i.info.ref);i.info.ref=l;const c=u=>{const d=u.relatedTarget;n.current!==d&&!_o(l.current,d)&&a(!1)};return i.root.onBlur=q(Le(i.root.onBlur,c)),i.info.onBlurCapture=q(Le(i.info.onBlurCapture,c)),i},Ch={root:"fui-InfoButton",popover:"fui-InfoButton__popover",info:"fui-InfoButton__info"},sB=oe({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",w71qe1:"f1iuv45f",ha4doy:"fmrv4ls",qhf8xq:"f10pi13n",De3pzq:"f1c21dwh",sj55zd:"fkfq4zb",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f16d74zd",D0sxk3:"f16u1re",t6yez3:"f1rw4040",Jwef8y:"fjxutwb",Bi91k9c:"f139oj5f",eoavqd:"f8491dx",Bk3fhr4:"f1jpd6y0",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",B2d53fq:"f1fg1p5m"},selected:{De3pzq:"f1q9pm1r",sj55zd:"f1qj7y59",D0sxk3:"fgzdkf0",t6yez3:"f15q0o9g",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1cg6951"},highContrast:{Bbusuzp:"fn0tkbb",Bs6v0vm:"f1rp3av6",B46dtvo:"f1u7gwqv",gh1jta:"fl6kagl"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",f6g5ot:0,Boxcth7:0,Bhdgwq3:0,hgwjuy:0,Bshpdp8:0,Bsom6fd:0,Blkhhs4:0,Bonggc9:0,Ddfuxk:0,i03rao:0,kclons:0,clg4pj:0,Bpqj9nj:0,B6dhp37:0,Bf4ptjt:0,Bqtpl0w:0,i4rwgc:"ffwy5si",Dah5zi:0,B1tsrr9:0,qqdqy8:0,Bkh64rk:0,e3fwne:"f3znvyf",J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1kx978o"}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",".f1iuv45f{text-decoration-line:none;}",".fmrv4ls{vertical-align:middle;}",".f10pi13n{position:relative;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1s184ao{margin:0;}",{p:-1}],[".f16d74zd{padding:var(--spacingVerticalXS) var(--spacingHorizontalXS);}",{p:-1}],".f16u1re .fui-Icon-filled{display:none;}",".f1rw4040 .fui-Icon-regular{display:inline-flex;}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}",".fgzdkf0 .fui-Icon-filled{display:inline-flex;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",[".ffwy5si[data-fui-focus-visible]::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f3znvyf[data-fui-focus-visible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",[".f1kx978o{padding:var(--spacingVerticalXXS) var(--spacingVerticalXXS);}",{p:-1}]],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f8491dx:hover{cursor:pointer;}",".f1jpd6y0:hover .fui-Icon-filled{display:inline-flex;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cg6951{color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn0tkbb{color:CanvasText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rp3av6:hover,.f1rp3av6:hover:active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1u7gwqv:hover,.f1u7gwqv:hover:active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fl6kagl:hover,.fl6kagl:hover:active{color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"]}),aB=oe({smallMedium:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),lB=t=>{const{size:e}=t,{open:r}=t.popover,o=sB(),n=aB();return t.info.className=Z(Ch.info,e==="large"?n.large:n.smallMedium,t.info.className),t.root.className=Z(Ch.root,o.base,o.highContrast,o.focusIndicator,r&&o.selected,e==="large"&&o.large,t.root.className),t},uc=b.forwardRef((t,e)=>{const r=iB(t,e);return lB(r),Y_(r)});uc.displayName="InfoButton";const cB=(t,e)=>{const{root:r,label:o,infoButton:n,info:i,size:s,className:a,style:l,...c}=t,u=aa("infolabel-"),[d,f]=b.useState(!1),p=Re(r,{defaultProps:{className:a,style:l},elementType:"span"}),h=Re(o,{defaultProps:{id:u+"__label",ref:e,size:s,...c},elementType:fs}),g=ht(n,{renderByDefault:!!i,defaultProps:{id:u+"__infoButton",size:s,info:i},elementType:uc}),v=Re(g==null?void 0:g.popover,{elementType:"div"});if(v.onOpenChange=q(Le(v.onOpenChange,(E,I)=>{f(I.open)})),g){var w,m;g.popover=v;const E=u+"__info";g.info=ht(g==null?void 0:g.info,{defaultProps:{id:E,"aria-labelledby":E},elementType:"div"});var y;if((y=(w=g)[m="aria-labelledby"])!==null&&y!==void 0||(w[m]=`${h.id} ${g.id}`),d){var C,x,_,B;(B=(x=p)[_="aria-owns"])!==null&&B!==void 0||(x[_]=(C=g.info)===null||C===void 0?void 0:C.id)}}return{size:s,components:{root:"span",label:fs,infoButton:uc},root:p,label:h,infoButton:g}},wl={root:"fui-InfoLabel",label:"fui-InfoLabel__label",infoButton:"fui-InfoLabel__infoButton"},uB=oe({base:{ha4doy:"f12kltsn",Bceei9c:"fpo1scq",sj55zd:"f1ym3bx4"}},{d:[".f12kltsn{vertical-align:top;}",".fpo1scq{cursor:inherit;}",".f1ym3bx4{color:inherit;}"]}),dB=oe({base:{ha4doy:"f12kltsn",B6of3ja:"f1bmzb36",jrapky:"f1nyzk09"},large:{B6of3ja:"fkrn0sh",jrapky:"fmxx68s"}},{d:[".f12kltsn{vertical-align:top;}",".f1bmzb36{margin-top:calc(0px - var(--spacingVerticalXXS));}",".f1nyzk09{margin-bottom:calc(0px - var(--spacingVerticalXXS));}",".fkrn0sh{margin-top:-1px;}",".fmxx68s{margin-bottom:-1px;}"]}),fB=t=>{t.root.className=Z(wl.root,t.root.className);const e=uB();t.label.className=Z(wl.label,e.base,t.label.className);const r=dB();return t.infoButton&&(t.infoButton.className=Z(wl.infoButton,r.base,t.size==="large"&&r.large,t.infoButton.className)),t},wv=b.forwardRef((t,e)=>{const r=cB(t,e);return fB(r),Q_(r)});wv.displayName="InfoLabel";const hB=na({simpleLogin:{"--person-avatar-size-small":"32px"}}),pB=t=>{const e=hB(),{personDetails:r}=t.dataContext;return O.jsx(H4,{userId:r.id,avatarSize:"auto",className:e.simpleLogin})},Sh=[{key:"light",displayName:"Web Light",icon:O.jsx(cx,{})},{key:"dark",displayName:"Web Dark",icon:O.jsx(_x,{})},{key:"teamsLight",displayName:"Teams Light",icon:O.jsx(kx,{})},{key:"teamsDark",displayName:"Teams Dark",icon:O.jsx(wx,{})}],gB=()=>{const[t,e]=b.useState(Sh[0]),r=ys(),o=n=>{switch(e(n),n.key){case"teamsLight":r.setState({...r.state,theme:{key:"light",fluentTheme:vk}});break;case"teamsDark":r.setState({...r.state,theme:{key:"dark",fluentTheme:yk}});break;case"light":r.setState({...r.state,theme:{key:n.key,fluentTheme:Mg}});break;case"dark":r.setState({...r.state,theme:{key:n.key,fluentTheme:xk}});break}};return O.jsxs(pv,{children:[O.jsx(Ou,{children:O.jsx(fv,{icon:t.icon,children:t.displayName})}),O.jsx(mv,{children:O.jsx(vv,{children:Sh.map(n=>O.jsx(gv,{icon:n.icon,onClick:()=>o(n),children:n.displayName},n.key))})})]})},vB=na({root:{"--login-signed-in-hover-background":"transparent"},header:{display:"flex",flexDirection:"row",flexWrap:"nowrap",width:"100%",height:"auto",boxSizing:"border-box",alignItems:"center",backgroundColor:ut.colorNeutralForeground1Static,zIndex:"1",minHeight:"50px"},name:{color:ut.colorNeutralForegroundOnBrand,fontWeight:ut.fontWeightSemibold,fontSize:ut.fontSizeBase400,paddingLeft:"12px"},wafffleIcon:{fontSize:ut.fontSizeBase600,paddingTop:"5px",color:ut.colorNeutralForegroundOnBrand},waffle:{display:"flex",width:"auto",height:"auto",boxSizing:"border-box",flexGrow:"1",alignItems:"center",minWidth:"max-content",paddingLeft:"8px"},waffleLogo:{...co.flex("none")},waffleTitle:{...co.flex("auto"),display:"flex",alignItems:"center"},search:{display:"flex",width:"100%",height:"auto",boxSizing:"border-box",flexGrow:"1",justifyContent:"center"},searchBox:{minWidth:"320px",maxWidth:"468px",paddingRight:"1em",paddingLeft:"1em",width:"100%"},infoIcon:{color:ut.colorNeutralForegroundOnBrand,":hover":{color:ut.colorNeutralForegroundOnBrand,":active":{color:ut.colorNeutralForegroundOnBrand}}},login:{display:"flex",width:"auto",height:"auto",boxSizing:"border-box",flexGrow:"1",alignItems:"center",minWidth:"max-content"},signedOut:{...co.padding("4px","8px")},signedIn:{...co.padding("0px","10px")}}),mB=()=>{const t=vB(),[e]=Y1(),r=ys(),o=r.setState,n=Cs(),i=p0(),s=a=>{!(a.detail===""&&r.state.searchTerm==="*")&&a.detail!==r.state.searchTerm&&(r.setState({...r.state,searchTerm:a.detail===""?"*":a.detail}),a.detail===""?i("/search"):i("/search?q="+a.detail))};return b.useLayoutEffect(()=>{if(n.pathname==="/search"){const a=decodeURI(n.search.replace("?q=",""));o(l=>({...l,searchTerm:a===""?"*":a}))}},[n,o]),O.jsxs("div",{className:t.header,children:[O.jsxs("div",{className:t.waffle,children:[O.jsx("div",{className:t.waffleLogo,children:O.jsx("a",{href:"https://www.office.com/apps?auth=2",target:"_blank",rel:"noreferrer",children:O.jsx(mx,{className:t.wafffleIcon})})}),O.jsxs("div",{className:t.waffleTitle,children:[O.jsxs(fs,{className:t.name,children:["Contoso Dashboard"," "]}),O.jsx(wv,{className:t.infoIcon,size:"medium",info:O.jsxs(O.Fragment,{children:["Using the Graph Toolkit v",dc]})})]})]}),O.jsx("div",{className:t.search,children:O.jsx(q4,{className:t.searchBox,searchTermChanged:s,searchTerm:r.state.searchTerm!=="*"?r.state.searchTerm:""})}),O.jsxs("div",{className:t.login,children:[O.jsx(gB,{}),O.jsx("div",{className:Z(e?t.signedIn:t.signedOut,t.root),children:O.jsx(j4,{children:O.jsx(pB,{template:"signed-in-button-content"})})})]})]})},bB=b.memo(mB),yB=na({tab:{paddingTop:"12px",paddingBottom:"12px"},activeTab:{backgroundColor:ut.colorSubtleBackgroundHover}}),wB=t=>{const e=p0(),r=Cs(),{items:o}=t,[n,i]=b.useState(""),[s,a]=b.useState(!1),l=yB(),c=ys(),u=(d,f)=>{if(f.value==="navigation"){const p=!s;a(p),c.setState({...c.state,sidebar:{...c.state.sidebar,isMinimized:p}})}else e(f.value,{relative:"route"})};return b.useLayoutEffect(()=>{i(r.pathname.substring(1))},[r]),O.jsx(O.Fragment,{children:O.jsxs(yv,{size:"medium",appearance:"subtle",vertical:!0,onTabSelect:u,selectedValue:n,children:[O.jsx(cc,{icon:O.jsx(yx,{}),value:"navigation",className:l.tab}),o.map((d,f)=>O.jsx(cc,{icon:d.icon,value:d.url,className:Z(l.tab,d.url===n&&l.activeTab),children:s?"":d.name},f))]})})},kB=b.lazy(()=>fr(()=>import("./DashboardPage-NUm-gm1t.js"),__vite__mapDeps([7,1,8,9,10,11,3,12,13,5]))),xB=b.lazy(()=>fr(()=>import("./OutlookPage-D0nneFIP.js"),__vite__mapDeps([14,1,8,6,15,3,9,10]))),CB=b.lazy(()=>fr(()=>import("./SearchPage-BdnzkGN-.js"),__vite__mapDeps([16,1,8,4,11]))),SB=b.lazy(()=>fr(()=>import("./HomePage-DGzFPoL9.js"),__vite__mapDeps([17,1,8,15,3]))),_B=b.lazy(()=>fr(()=>import("./FilesPage-TXxll6sC.js"),__vite__mapDeps([18,1,8,3,6,13,5,2,4,12,10]))),BB=b.lazy(()=>fr(()=>import("./TaxonomyPage-CEcnOueD.js"),__vite__mapDeps([19,1,8,10,6,13,9]))),PB=t=>{let e=[];return e.push({name:"Home",url:"",icon:O.jsx(bx,{}),key:"home",requiresLogin:!1,component:O.jsx(b.Suspense,{fallback:"Loading...",children:O.jsx(SB,{})}),exact:!0}),t&&(e.push({name:"Dashboard",url:"dashboard",icon:O.jsx(Sx,{}),key:"dashboard",requiresLogin:!0,component:O.jsx(b.Suspense,{fallback:"Loading...",children:O.jsx(kB,{})}),exact:!0}),e.push({name:"Mail and Calendar",url:"outlook",icon:O.jsx(ux,{}),key:"outlook",requiresLogin:!0,component:O.jsx(b.Suspense,{fallback:"Loading...",children:O.jsx(xB,{})}),exact:!0}),e.push({name:"Files",url:"files",icon:O.jsx(vx,{}),key:"files",requiresLogin:!0,component:O.jsx(b.Suspense,{fallback:"Loading...",children:O.jsx(_B,{})}),exact:!0}),e.push({name:"Taxonomy",url:"taxonomy",icon:O.jsx(Cx,{}),key:"files",requiresLogin:!0,component:O.jsx(b.Suspense,{fallback:"Loading...",children:O.jsx(BB,{})}),exact:!0}),e.push({name:"Search",url:"search",pattern:"/search/:query",icon:O.jsx(xx,{}),key:"search",requiresLogin:!0,component:O.jsx(b.Suspense,{fallback:"Loading...",children:O.jsx(CB,{})}),exact:!1})),e},FB=b.lazy(()=>fr(()=>import("./HomePage-DGzFPoL9.js"),__vite__mapDeps([17,1,8,15,3]))),TB=na({sidebar:{display:"flex",flexDirection:"column",flexWrap:"nowrap",height:"100%",minWidth:"295px",boxSizing:"border-box",backgroundColor:ut.colorNeutralBackground6},main:{backgroundColor:ut.colorNeutralBackground1,display:"flex",flexDirection:"row",width:"auto",height:"calc(100vh - 50px)",boxSizing:"border-box"},minimized:{minWidth:"auto"},page:{display:"flex",flexDirection:"column",flexWrap:"nowrap"},content:{display:"flex",flexDirection:"column",flexWrap:"nowrap",width:"100%",height:"auto",boxSizing:"border-box",...co.margin("10px"),...co.overflow("auto")}}),EB=t=>{const e=TB(),[r,o]=et.useState([]),[n]=Y1(),i=ys();return et.useEffect(()=>{o(PB(n))},[n]),et.useEffect(()=>{M4(i.state.theme.key)},[i]),O.jsx(Vg,{theme:i.state.theme.fluentTheme,children:O.jsx("div",{className:e.page,children:O.jsxs(_5,{basename:"/next/sample/pr/3325",children:[O.jsx(bB,{}),O.jsxs("div",{className:e.main,children:[O.jsx("div",{className:Z(e.sidebar,`${i.state.sidebar.isMinimized?e.minimized:""}`),children:O.jsx(wB,{items:r})}),O.jsx("div",{className:e.content,children:O.jsxs(C5,{children:[r.map(s=>(s.requiresLogin&&n||!s.requiresLogin)&&O.jsx($l,{path:s.url,element:s.component},s.key)),O.jsx($l,{path:"*",element:O.jsx(b.Suspense,{fallback:"Loading...",children:O.jsx(FB,{})})})]})})]})]})})})},$B=t=>{const[e,r]=et.useState({searchTerm:"*",sidebar:{isMinimized:!1},theme:{key:"light",fluentTheme:Mg}});return O.jsx(s0.Provider,{value:{state:e,setState:r},children:O.jsx(EB,{})})},jF=Object.freeze(Object.defineProperty({__proto__:null,default:$B},Symbol.toStringTag,{value:"Module"}));export{P as $,eP as A,Bb as B,Mc as C,Q as D,wo as E,it as F,Ji as G,_c as H,$n as I,Do as J,Vr as K,hf as L,Pt as M,se as N,ie as O,k1 as P,Zt as Q,R,Nl as S,E0 as T,Kr as U,Gn as V,ee as W,ps as X,Y,vs as Z,L as _,q5 as a,$F as a$,Wc as a0,P3 as a1,at as a2,bs as a3,Me as a4,N as a5,kt as a6,Fe as a7,no as a8,so as a9,MP as aA,IP as aB,jP as aC,u4 as aD,ar as aE,xt as aF,xP as aG,Gy as aH,FP as aI,lP as aJ,V as aK,$ as aL,OP as aM,DP as aN,mm as aO,LP as aP,$P as aQ,NP as aR,RP as aS,H3 as aT,VF as aU,ut as aV,ys as aW,bt as aX,b7 as aY,On as aZ,Ho as a_,vr as aa,W as ab,_g as ac,Re as ad,At as ae,q as af,Vo as ag,da as ah,Z as ai,oe as aj,gr as ak,ES as al,xS as am,na as an,zF as ao,H4 as ap,co as aq,yv as ar,cc as as,Cn as at,T3 as au,K1 as av,K as aw,HP as ax,zP as ay,VP as az,z as b,R1 as b$,Ql as b0,Bt as b1,Gp as b2,Ht as b3,Xp as b4,AF as b5,EF as b6,te as b7,TF as b8,aa as b9,R0 as bA,hr as bB,be as bC,Ac as bD,V0 as bE,KB as bF,ko as bG,wP as bH,kP as bI,zr as bJ,PP as bK,Hr as bL,vt as bM,le as bN,Io as bO,Oo as bP,Gt as bQ,Ki as bR,jc as bS,$1 as bT,A1 as bU,i1 as bV,e1 as bW,Xi as bX,Mt as bY,Ws as bZ,Zs as b_,fs as ba,ht as bb,Ct as bc,ru as bd,MF as be,eo as bf,Le as bg,ua as bh,xu as bi,Ri as bj,sn as bk,qg as bl,jg as bm,NF as bn,Mk as bo,LF as bp,Pg as bq,zn as br,IF as bs,OF as bt,fa as bu,DF as bv,RF as bw,C0 as bx,e2 as by,D0 as bz,U0 as c,gF as c$,fm as c0,gx as c1,In as c2,Tt as c3,Cx as c4,HF as c5,Rc as c6,$t as c7,x2 as c8,tP as c9,x4 as cA,Z0 as cB,EP as cC,CP as cD,Ro as cE,Kh as cF,BF as cG,AP as cH,xF as cI,_F as cJ,CF as cK,SF as cL,qP as cM,UP as cN,vF as cO,yF as cP,uF as cQ,dF as cR,mF as cS,iF as cT,sF as cU,aF as cV,lF as cW,cF as cX,fF as cY,hF as cZ,pF as c_,Lo as ca,sP as cb,TP as cc,Pb as cd,_r as ce,f3 as cf,S3 as cg,_3 as ch,v3 as ci,x3 as cj,C3 as ck,vP as cl,E1 as cm,gP as cn,Wt as co,kF as cp,Nn as cq,er as cr,i0 as cs,PF as ct,FF as cu,Z3 as cv,U1 as cw,I1 as cx,mf as cy,q1 as cz,q0 as d,bF as d0,wF as d1,n4 as d2,R3 as d3,rP as d4,W0 as d5,H2 as d6,cP as d7,uP as d8,SP as d9,Un as dA,jF as dB,dP as da,_P as db,fP as dc,qr as dd,Ur as de,k3 as df,VB as dg,U3 as dh,W3 as di,q3 as dj,vo as dk,Qe as dl,KP as dm,JP as dn,tF as dp,rF as dq,nF as dr,WP as ds,ZP as dt,QP as du,YP as dv,eF as dw,GP as dx,XP as dy,oF as dz,hn as e,w2 as f,y2 as g,QB as h,YB as i,Nc as j,H0 as k,Lc as l,rt as m,Gr as n,re as o,j0 as p,JB as q,L0 as r,XB as s,GB as t,$c as u,ZB as v,Cc as w,Rl as x,de as y,Mr as z}; diff --git a/next/sample/pr/3325/assets/DashboardPage-NUm-gm1t.js b/next/sample/pr/3325/assets/DashboardPage-NUm-gm1t.js new file mode 100644 index 0000000000..e175c7260f --- /dev/null +++ b/next/sample/pr/3325/assets/DashboardPage-NUm-gm1t.js @@ -0,0 +1,388 @@ +import{_ as ut,p as z,b as Ne,a as Me,r as oe,j as p,R as re}from"./index-hkJM60Tb.js";import{P as ft}from"./PageHeader-BLfiQIXJ.js";import{e as Pe,O as L,S as pt,D as j,H as mt,a as kt,_ as u,b as m,n as ye,F as Q,k as we,c as Ue,d as Ge,f as me,g as ke,o as k,h as gt,i as vt,j as qe,l as Ke,m as x,p as bt,q as yt,s as wt,r as xt,t as Ct,u as Tt,v as Dt,A as $t,x as Ie,y as q,z as Qe,B as It,C as Rt,E as Re,G as _t,I as Ft,J as le,K as de,L as Bt,M as ce,N as Ot,P as _e,Q as Et,R as he,T as St,U as Lt,V as jt,W as At,X as Ht,Y as W,Z as Vt,$ as g,a0 as We,a1 as Ye,a2 as I,a3 as zt,a4 as J,a5 as X,a6 as ee,a7 as ue,a8 as Nt,a9 as Mt,w as Pt,aa as Ut,ab as K,ac as Gt,ad as Ze,ae as Je,af as ge,ag as qt,ah as Kt,ai as ne,aj as Xe,ak as xe,al as Qt,am as Wt,an as et,ao as Yt,ap as Zt,aq as Jt,ar as Xt,as as Fe}from"./App-c9ixsJC9.js";import{G as es}from"./get-Bki3P7Iw.js";import{e as H,a as V,b as Be,c as Oe,O as tt,g as ts,D as ss,d as as,f as Ee,h as is,i as ns,j as os,k as te,T as se,S as ae}from"./DataGridHeaderCell-Bb_zMzQi.js";import{c as Se}from"./repeat-BYNG0dST.js";import{r as rs}from"./mgt-picker-DJC_Ceuz.js";import{D as ls}from"./index-DlteEK7B.js";import{f as ds,a as cs}from"./index-D1MpQKKC.js";import"./mgt-get-nlun5DqF.js";function $(a,e,t){return{index:a,removed:e,addedCount:t}}const st=0,at=1,ve=2,be=3;function hs(a,e,t,s,i,n){const o=n-i+1,l=t-e+1,r=new Array(o);let h,c;for(let d=0;d0||t>0;){if(e===0){i.push(ve),t--;continue}if(t===0){i.push(be),e--;continue}const n=a[e-1][t-1],o=a[e-1][t],l=a[e][t-1];let r;o=0){a.splice(l,1),l--,o-=r.addedCount-r.removed.length,i.addedCount+=r.addedCount-h;const c=i.removed.length+r.removed.length-h;if(!i.addedCount&&!c)n=!0;else{let d=r.removed;if(i.indexr.index+r.addedCount){const f=i.removed.slice(r.index+r.addedCount-i.index);Le.apply(d,f)}i.removed=d,r.indexs?t=s-a.addedCount:t<0&&(t=s+a.removed.length+t-a.addedCount),t<0&&(t=0),a.index=t,a}class bs extends pt{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(e,"$fastController",{value:this,enumerable:!1})}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){this.splices===void 0?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,j.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,j.queueUpdate(this))}flush(){const e=this.splices,t=this.oldCollection;if(e===void 0&&t===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const s=t===void 0?vs(this.source,e):it(this.source,0,this.source.length,t,0,t.length);this.notify(s)}}function ys(){if(je)return;je=!0,L.setArrayObserverFactory(r=>new bs(r));const a=Array.prototype;if(a.$fastPatch)return;Reflect.defineProperty(a,"$fastPatch",{value:1,enumerable:!1});const e=a.pop,t=a.push,s=a.reverse,i=a.shift,n=a.sort,o=a.splice,l=a.unshift;a.pop=function(){const r=this.length>0,h=e.apply(this,arguments),c=this.$fastController;return c!==void 0&&r&&c.addSplice($(this.length,[h],0)),h},a.push=function(){const r=t.apply(this,arguments),h=this.$fastController;return h!==void 0&&h.addSplice(fe($(this.length-arguments.length,[],arguments.length),this)),r},a.reverse=function(){let r;const h=this.$fastController;h!==void 0&&(h.flush(),r=this.slice());const c=s.apply(this,arguments);return h!==void 0&&h.reset(r),c},a.shift=function(){const r=this.length>0,h=i.apply(this,arguments),c=this.$fastController;return c!==void 0&&r&&c.addSplice($(0,[h],0)),h},a.sort=function(){let r;const h=this.$fastController;h!==void 0&&(h.flush(),r=this.slice());const c=n.apply(this,arguments);return h!==void 0&&h.reset(r),c},a.splice=function(){const r=o.apply(this,arguments),h=this.$fastController;return h!==void 0&&h.addSplice(fe($(+arguments[0],r,arguments.length>2?arguments.length-2:0),this)),r},a.unshift=function(){const r=l.apply(this,arguments),h=this.$fastController;return h!==void 0&&h.addSplice(fe($(0,[],arguments.length),this)),r}}const Ae=Object.freeze({positioning:!1,recycle:!0});function ws(a,e,t,s){a.bind(e[t],s)}function xs(a,e,t,s){const i=Object.create(s);i.index=t,i.length=e.length,a.bind(e[t],i)}class Cs{constructor(e,t,s,i,n,o){this.location=e,this.itemsBinding=t,this.templateBinding=i,this.options=o,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=ws,this.itemsBindingObserver=L.binding(t,this,s),this.templateBindingObserver=L.binding(i,this,n),o.positioning&&(this.bindView=xs)}bind(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}observeItems(e=!1){if(!this.items){this.items=Pe;return}const t=this.itemsObserver,s=this.itemsObserver=L.getNotifier(this.items),i=t!==s;i&&t!==null&&t.unsubscribe(this),(i||e)&&s.subscribe(this)}updateViews(e){const t=this.childContext,s=this.views,i=this.bindView,n=this.items,o=this.template,l=this.options.recycle,r=[];let h=0,c=0;for(let d=0,f=e.length;d0?(w<=ct&&U.length>0?(S=U[w],w++):(S=r[h],h++),c--):S=o.create(),s.splice(B,0,S),i(S,n,B,t),S.insertBefore(ht)}U[w]&&r.push(...U.slice(w))}for(let d=h,f=r.length;de;return new Ce(a,s,Object.assign(Object.assign({},Ae),t))}class Ts{constructor(e){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,e)for(const t in e){const s=e[t];t==="date"?this.date=this.getDateObject(s):this[t]=s}}getDateObject(e){if(typeof e=="string"){const t=e.split(/[/-]/);return t.length<3?new Date:new Date(parseInt(t[2],10),parseInt(t[0],10)-1,parseInt(t[1],10))}else if("day"in e&&"month"in e&&"year"in e){const{day:t,month:s,year:i}=e;return new Date(i,s-1,t)}return e}getDate(e=this.date,t={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},s=this.locale){const i=this.getDateObject(e);if(!i.getTime())return"";const n=Object.assign({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},t);return new Intl.DateTimeFormat(s,n).format(i)}getDay(e=this.date.getDate(),t=this.dayFormat,s=this.locale){return this.getDate({month:1,day:e,year:2020},{day:t},s)}getMonth(e=this.date.getMonth()+1,t=this.monthFormat,s=this.locale){return this.getDate({month:e,day:2,year:2020},{month:t},s)}getYear(e=this.date.getFullYear(),t=this.yearFormat,s=this.locale){return this.getDate({month:2,day:2,year:e},{year:t},s)}getWeekday(e=0,t=this.weekdayFormat,s=this.locale){const i=`1-${e+1}-2017`;return this.getDate(i,{weekday:t},s)}getWeekdays(e=this.weekdayFormat,t=this.locale){return Array(7).fill(null).map((s,i)=>this.getWeekday(i,e,t))}}let C=class extends Q{constructor(){super(...arguments),this.dateFormatter=new Ts,this.readonly=!1,this.locale="en-US",this.month=new Date().getMonth()+1,this.year=new Date().getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(e=this.month,t=this.year){const s=r=>new Date(r.getFullYear(),r.getMonth(),1).getDay(),i=r=>{const h=new Date(r.getFullYear(),r.getMonth()+1,1);return new Date(h.getTime()-this.oneDayInMs).getDate()},n=new Date(t,e-1),o=new Date(t,e),l=new Date(t,e-2);return{length:i(n),month:e,start:s(n),year:t,previous:{length:i(l),month:l.getMonth()+1,start:s(l),year:l.getFullYear()},next:{length:i(o),month:o.getMonth()+1,start:s(o),year:o.getFullYear()}}}getDays(e=this.getMonthInfo(),t=this.minWeeks){t=t>10?10:t;const{start:s,length:i,previous:n,next:o}=e,l=[];let r=1-s;for(;ri?o:e,d=r<1?n.length+r:r>i?r-i:r,f=`${h}-${d}-${c}`,v=this.dateInString(f,this.disabledDates),D=this.dateInString(f,this.selectedDates),w={day:d,month:h,year:c,disabled:v,selected:D},B=l[l.length-1];l.length===0||B.length%7===0?l.push([w]):B.push(w),r++}return l}dateInString(e,t){const s=t.split(",").map(i=>i.trim());return e=typeof e=="string"?e:`${e.getMonth()+1}-${e.getDate()}-${e.getFullYear()}`,s.some(i=>i===e)}getDayClassNames(e,t){const{day:s,month:i,year:n,disabled:o,selected:l}=e,r=t===`${i}-${s}-${n}`,h=this.month!==i;return["day",r&&"today",h&&"inactive",o&&"disabled",l&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const e=this.dateFormatter.getWeekdays().map(t=>({text:t}));if(this.weekdayFormat!=="long"){const t=this.dateFormatter.getWeekdays("long");e.forEach((s,i)=>{s.abbr=t[i]})}return e}handleDateSelect(e,t){e.preventDefault,this.$emit("dateselected",t)}handleKeydown(e,t){return e.key===we&&this.handleDateSelect(e,t),!0}};u([m({mode:"boolean"})],C.prototype,"readonly",void 0);u([m],C.prototype,"locale",void 0);u([m({converter:ye})],C.prototype,"month",void 0);u([m({converter:ye})],C.prototype,"year",void 0);u([m({attribute:"day-format",mode:"fromView"})],C.prototype,"dayFormat",void 0);u([m({attribute:"weekday-format",mode:"fromView"})],C.prototype,"weekdayFormat",void 0);u([m({attribute:"month-format",mode:"fromView"})],C.prototype,"monthFormat",void 0);u([m({attribute:"year-format",mode:"fromView"})],C.prototype,"yearFormat",void 0);u([m({attribute:"min-weeks",converter:ye})],C.prototype,"minWeeks",void 0);u([m({attribute:"disabled-dates"})],C.prototype,"disabledDates",void 0);u([m({attribute:"selected-dates"})],C.prototype,"selectedDates",void 0);const ie={none:"none",default:"default",sticky:"sticky"},O={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},G={default:"default",header:"header",stickyHeader:"sticky-header"};class y extends Q{constructor(){super(...arguments),this.rowType=G.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Ce(e=>e.columnDefinitions,e=>e.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(H,this.handleFocusout),this.addEventListener(V,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(H,this.handleFocusout),this.removeEventListener(V,this.handleKeydown)}handleFocusout(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented)return;let t=0;switch(e.key){case ke:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case me:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case Ge:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case Ue:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===G.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===G.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}u([m({attribute:"grid-template-columns"})],y.prototype,"gridTemplateColumns",void 0);u([m({attribute:"row-type"})],y.prototype,"rowType",void 0);u([k],y.prototype,"rowData",void 0);u([k],y.prototype,"columnDefinitions",void 0);u([k],y.prototype,"cellItemTemplate",void 0);u([k],y.prototype,"headerCellItemTemplate",void 0);u([k],y.prototype,"rowIndex",void 0);u([k],y.prototype,"isActiveRow",void 0);u([k],y.prototype,"activeCellItemTemplate",void 0);u([k],y.prototype,"defaultCellItemTemplate",void 0);u([k],y.prototype,"defaultHeaderCellItemTemplate",void 0);u([k],y.prototype,"cellElements",void 0);class b extends Q{constructor(){super(),this.noTabbing=!1,this.generateHeader=ie.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(e,t,s)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}const i=Math.max(0,Math.min(this.rowElements.length-1,e)),o=this.rowElements[i].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),l=Math.max(0,Math.min(o.length-1,t)),r=o[l];s&&this.scrollHeight!==this.clientHeight&&(i0||i>this.focusRowIndex&&this.scrollTop{e&&e.length&&(e.forEach(s=>{s.addedNodes.forEach(i=>{i.nodeType===1&&i.getAttribute("role")==="row"&&(i.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,j.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let e=this.gridTemplateColumns;if(e===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const t=this.rowElements[0];this.generatedGridTemplateColumns=new Array(t.cellElements.length).fill("1fr").join(" ")}e=this.generatedGridTemplateColumns}this.rowElements.forEach((t,s)=>{const i=t;i.rowIndex=s,i.gridTemplateColumns=e,this.columnDefinitionsStale&&(i.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(e){let t="";return e.forEach(s=>{t=`${t}${t===""?"":" "}1fr`}),t}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=b.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=b.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Ce(e=>e.rowsData,e=>e.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(Be,this.handleFocus),this.addEventListener(V,this.handleKeydown),this.addEventListener(H,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),j.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(Be,this.handleFocus),this.removeEventListener(V,this.handleKeydown),this.removeEventListener(H,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(e){this.isUpdatingFocus=!0;const t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(e){(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(e){if(e.defaultPrevented)return;let t;const s=this.rowElements.length-1,i=this.offsetHeight+this.scrollTop,n=this.rowElements[s];switch(e.key){case Ke:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case qe:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case vt:if(e.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(t=this.focusRowIndex-1,t;t>=0;t--){const o=this.rowElements[t];if(o.offsetTop=s||n.offsetTop+n.offsetHeight<=i){this.focusOnCell(s,this.focusColumnIndex,!1);return}for(t=this.focusRowIndex+1,t;t<=s;t++){const o=this.rowElements[t];if(o.offsetTop+o.offsetHeight>i){let l=0;this.generateHeader===ie.sticky&&this.generatedHeader!==null&&(l=this.generatedHeader.clientHeight),this.scrollTop=o.offsetTop-l;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case Ge:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case Ue:e.ctrlKey&&this.columnDefinitions!==null&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,j.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==ie.none&&this.rowsData.length>0){const e=document.createElement(this.rowElementTag);this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===ie.sticky?G.stickyHeader:G.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(e,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}}b.generateColumns=a=>Object.getOwnPropertyNames(a).map((e,t)=>({columnDataKey:e,gridColumn:`${t}`}));u([m({attribute:"no-tabbing",mode:"boolean"})],b.prototype,"noTabbing",void 0);u([m({attribute:"generate-header"})],b.prototype,"generateHeader",void 0);u([m({attribute:"grid-template-columns"})],b.prototype,"gridTemplateColumns",void 0);u([k],b.prototype,"rowsData",void 0);u([k],b.prototype,"columnDefinitions",void 0);u([k],b.prototype,"rowItemTemplate",void 0);u([k],b.prototype,"cellItemTemplate",void 0);u([k],b.prototype,"headerCellItemTemplate",void 0);u([k],b.prototype,"focusRowIndex",void 0);u([k],b.prototype,"focusColumnIndex",void 0);u([k],b.prototype,"defaultRowItemTemplate",void 0);u([k],b.prototype,"rowElementTag",void 0);u([k],b.prototype,"rowElements",void 0);const Ds=x` + +`,$s=x` + +`;class N extends Q{constructor(){super(...arguments),this.cellType=O.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(e,t){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var e;super.connectedCallback(),this.addEventListener(Oe,this.handleFocusin),this.addEventListener(H,this.handleFocusout),this.addEventListener(V,this.handleKeydown),this.style.gridColumn=`${((e=this.columnDefinition)===null||e===void 0?void 0:e.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Oe,this.handleFocusin),this.removeEventListener(H,this.handleFocusout),this.removeEventListener(V,this.handleKeydown),this.disconnectCellView()}handleFocusin(e){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case O.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){const t=this.columnDefinition.headerCellFocusTargetCallback(this);t!==null&&t.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){const t=this.columnDefinition.cellFocusTargetCallback(this);t!==null&&t.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(e){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(e){if(!(e.defaultPrevented||this.columnDefinition===null||this.cellType===O.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===O.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(e.key){case we:case yt:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case O.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){const t=this.columnDefinition.headerCellFocusTargetCallback(this);t!==null&&t.focus(),e.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){const t=this.columnDefinition.cellFocusTargetCallback(this);t!==null&&t.focus(),e.preventDefault()}break}break;case bt:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case O.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=$s.render(this,this);break;case void 0:case O.rowHeader:case O.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Ds.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}}u([m({attribute:"cell-type"})],N.prototype,"cellType",void 0);u([m({attribute:"grid-column"})],N.prototype,"gridColumn",void 0);u([k],N.prototype,"rowData",void 0);u([k],N.prototype,"columnDefinition",void 0);const Is=x` +
+ + ${a=>a.dateFormatter.getMonth(a.month)} + + ${a=>a.dateFormatter.getYear(a.year)} +
+`,Rs=a=>{const e=a.tagFor(N);return x` + <${e} + class="week-day" + part="week-day" + tabindex="-1" + grid-column="${(t,s)=>s.index+1}" + abbr="${t=>t.abbr}" + > + ${t=>t.text} + + `},_s=(a,e)=>{const t=a.tagFor(N);return x` + <${t} + class="${(s,i)=>i.parentContext.parent.getDayClassNames(s,e)}" + part="day" + tabindex="-1" + role="gridcell" + grid-column="${(s,i)=>i.index+1}" + @click="${(s,i)=>i.parentContext.parent.handleDateSelect(i.event,s)}" + @keydown="${(s,i)=>i.parentContext.parent.handleKeydown(i.event,s)}" + aria-label="${(s,i)=>i.parentContext.parent.dateFormatter.getDate(`${s.month}-${s.day}-${s.year}`,{month:"long",day:"numeric"})}" + > +
+ ${(s,i)=>i.parentContext.parent.dateFormatter.getDay(s.day)} +
+ + + `},Fs=(a,e)=>{const t=a.tagFor(y);return x` + <${t} + class="week" + part="week" + role="row" + role-type="default" + grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr" + > + ${A(s=>s,_s(a,e),{positioning:!0})} + + `},Bs=(a,e)=>{const t=a.tagFor(b),s=a.tagFor(y);return x` + <${t} class="days interact" part="days" generate-header="none"> + <${s} + class="week-days" + part="week-days" + role="row" + row-type="header" + grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr" + > + ${A(i=>i.getWeekdayText(),Rs(a),{positioning:!0})} + + ${A(i=>i.getDays(),Fs(a,e))} + +`},Os=a=>x` +
+
+ ${A(e=>e.getWeekdayText(),x` +
+ ${e=>e.text} +
+ `)} +
+ ${A(e=>e.getDays(),x` +
+ ${A(e=>e,x` +
+
+ ${(e,t)=>t.parentContext.parent.dateFormatter.getDay(e.day)} +
+ +
+ `)} +
+ `)} +
+ `,Es=(a,e)=>{var t;const s=new Date,i=`${s.getMonth()+1}-${s.getDate()}-${s.getFullYear()}`;return x` + + `},Ss=(a,e)=>x` + +`;class E extends Q{constructor(){super(...arguments),this.orientation=tt.horizontal,this.radioChangeHandler=e=>{const t=e.target;t.checked&&(this.slottedRadioButtons.forEach(s=>{s!==t&&(s.checked=!1,this.isInsideFoundationToolbar||s.setAttribute("tabindex","-1"))}),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{const s=e[t];this.isInsideToolbar||(s.setAttribute("tabindex","0"),s.readOnly?this.slottedRadioButtons.forEach(i=>{i!==s&&i.setAttribute("tabindex","-1")}):(s.checked=!0,this.selectedRadio=s)),this.focusedRadio=s,s.focus()},this.moveRightOffGroup=()=>{var e;(e=this.nextElementSibling)===null||e===void 0||e.focus()},this.moveLeftOffGroup=()=>{var e;(e=this.previousElementSibling)===null||e===void 0||e.focus()},this.focusOutHandler=e=>{const t=this.slottedRadioButtons,s=e.target,i=s!==null?t.indexOf(s):0,n=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(n===0&&i===n||n===t.length-1&&n===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach(o=>{o!==this.selectedRadio&&o.setAttribute("tabindex","-1")}))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach(o=>{o!==this.focusedRadio&&o.setAttribute("tabindex","-1")}))),!0},this.clickHandler=e=>{const t=e.target;if(t){const s=this.slottedRadioButtons;t.checked||s.indexOf(t)===0?(t.setAttribute("tabindex","0"),this.selectedRadio=t):(t.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=t}e.preventDefault()},this.shouldMoveOffGroupToTheRight=(e,t,s)=>e===t.length&&this.isInsideToolbar&&s===me,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===ke,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{const t=this.slottedRadioButtons;let s=0;if(s=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(s,t,e.key)){this.moveRightOffGroup();return}else s===t.length&&(s=0);for(;s1;)if(t[s].disabled){if(this.focusedRadio&&s===t.indexOf(this.focusedRadio))break;if(s+1>=t.length){if(this.isInsideToolbar)break;s=0}else s+=1}else{this.moveToRadioByIndex(t,s);break}},this.moveLeft=e=>{const t=this.slottedRadioButtons;let s=0;if(s=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,s=s<0?t.length-1:s,this.shouldMoveOffGroupToTheLeft(t,e.key)){this.moveLeftOffGroup();return}for(;s>=0&&t.length>1;)if(t[s].disabled){if(this.focusedRadio&&s===t.indexOf(this.focusedRadio))break;s-1<0?s=t.length-1:s-=1}else{this.moveToRadioByIndex(t,s);break}},this.keydownHandler=e=>{const t=e.key;if(t in $t&&this.isInsideFoundationToolbar)return!0;switch(t){case we:{this.checkFocusedRadio();break}case me:case qe:{this.direction===Ie.ltr?this.moveRight(e):this.moveLeft(e);break}case ke:case Ke:{this.direction===Ie.ltr?this.moveLeft(e):this.moveRight(e);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(e=>{this.readOnly?e.readOnly=!0:e.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(e=>{this.disabled?e.disabled=!0:e.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.value===this.value&&(e.checked=!0,this.selectedRadio=e)}),this.$emit("change")}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var e;return(e=this.parentToolbar)!==null&&e!==void 0?e:!1}get isInsideFoundationToolbar(){var e;return!!(!((e=this.parentToolbar)===null||e===void 0)&&e.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=ts(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(e=>{e.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const e=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),t=e?e.length:0;if(t>1){const i=e[t-1];i.checked=!0}let s=!1;if(this.slottedRadioButtons.forEach(i=>{this.name!==void 0&&i.setAttribute("name",this.name),this.disabled&&(i.disabled=!0),this.readOnly&&(i.readOnly=!0),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),s=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(o=>o.hasAttribute("checked")),n=i!==null?i.length:0;if(n>0&&!s){const o=i[n-1];o.checked=!0,this.focusedRadio=o,o.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}u([m({attribute:"readonly",mode:"boolean"})],E.prototype,"readOnly",void 0);u([m({attribute:"disabled",mode:"boolean"})],E.prototype,"disabled",void 0);u([m],E.prototype,"name",void 0);u([m],E.prototype,"value",void 0);u([m],E.prototype,"orientation",void 0);u([k],E.prototype,"childItems",void 0);u([k],E.prototype,"slottedRadioButtons",void 0);const Ls=q` +.day.disabled::before { + transform: translate(-50%, 0) rotate(45deg); +} +`,js=q` +.day.disabled::before { + transform: translate(50%, 0) rotate(-45deg); +} +`,As=(a,e)=>q` +${Qe("inline-block")} :host { + --calendar-cell-size: calc((${It} + 2 + ${Rt}) * ${Re} * 1px); + --calendar-gap: 2px; + ${_t} + color: ${Ft}; +} + +.title { + padding: calc(${Re} * 2px); + font-weight: 600; +} + +.days { + text-align: center; +} + +.week-days, +.week { + display: grid; + grid-template-columns: repeat(7, 1fr); + grid-gap: var(--calendar-gap); + border: 0; + padding: 0; +} + +.day, +.week-day { + border: 0; + width: var(--calendar-cell-size); + height: var(--calendar-cell-size); + line-height: var(--calendar-cell-size); + padding: 0; + box-sizing: initial; +} + +.week-day { + font-weight: 600; +} + +.day { + border: calc(${le} * 1px) solid transparent; + border-radius: calc(${de} * 1px); +} + +.interact .day { + cursor: pointer; +} + +.date { + height: 100%; +} + +.inactive .date, +.inactive.disabled::before { + color: ${Bt}; +} + +.disabled::before { + content: ''; + display: inline-block; + width: calc(var(--calendar-cell-size) * .8); + height: calc(${le} * 1px); + background: currentColor; + position: absolute; + margin-top: calc(var(--calendar-cell-size) / 2); + transform-origin: center; + z-index: 1; +} + +.selected { + color: ${ce}; + border: 1px solid ${ce}; + background: ${Ot}; +} + +.selected + .selected { + border-start-start-radius: 0; + border-end-start-radius: 0; + border-inline-start-width: 0; + padding-inline-start: calc(var(--calendar-gap) + (${le} + ${de}) * 1px); + margin-inline-start: calc((${de} * -1px) - var(--calendar-gap)); +} + +.today.disabled::before { + color: ${_e}; +} + +.today .date { + color: ${_e}; + background: ${ce}; + border-radius: 50%; + position: relative; +} +`.withBehaviors(Et(q` + .day.selected { + color: ${he.Highlight}; + } + + .today .date { + background: ${he.Highlight}; + color: ${he.HighlightText}; + } + `),new ls(Ls,js));class nt extends C{constructor(){super(...arguments),this.readonly=!0}}ut([m({converter:St})],nt.prototype,"readonly",void 0);const Hs=nt.compose({baseName:"calendar",template:Es,styles:As,title:Is}),Vs=(a,e)=>q` + ${Qe("flex")} :host { + align-items: flex-start; + flex-direction: column; + } + + .positioning-region { + display: flex; + flex-wrap: wrap; + } + + :host([orientation='vertical']) .positioning-region { + flex-direction: column; + } + + :host([orientation='horizontal']) .positioning-region { + flex-direction: row; + } +`,zs=E.compose({baseName:"radio-group",template:Ss,styles:Vs}),Ns=a=>{const e=Lt.getValueFor(a);return jt(At.create(e,e,e))};var M=function(a,e,t,s){function i(n){return n instanceof t?n:new t(function(o){o(n)})}return new(t||(t=Promise))(function(n,o){function l(c){try{h(s.next(c))}catch(d){o(d)}}function r(c){try{h(s.throw(c))}catch(d){o(d)}}function h(c){c.done?n(c.value):i(c.value).then(l,r)}h((s=s.apply(a,e||[])).next())})};const Te=["Tasks.ReadWrite"],De=["Tasks.Read","Tasks.ReadWrite"],pe=(a,e)=>M(void 0,void 0,void 0,function*(){const t=yield a.api(`/me/todo/lists/${e}/tasks`).header("Cache-Control","no-store").middlewareOptions(z(De)).get();return t==null?void 0:t.value}),Ms=a=>M(void 0,void 0,void 0,function*(){const e=yield a.api("/me/todo/lists").header("Cache-Control","no-store").middlewareOptions(z(De)).get();return e==null?void 0:e.value}),He=(a,e)=>M(void 0,void 0,void 0,function*(){return yield a.api(`/me/todo/lists/${e}`).header("Cache-Control","no-store").middlewareOptions(z(De)).get()}),Ps=(a,e,t)=>M(void 0,void 0,void 0,function*(){return yield a.api(`/me/todo/lists/${e}/tasks`).header("Cache-Control","no-store").middlewareOptions(z(Te)).post(t)}),Us=(a,e,t)=>M(void 0,void 0,void 0,function*(){yield a.api(`/me/todo/lists/${e}/tasks/${t}`).header("Cache-Control","no-store").middlewareOptions(z(Te)).delete()}),Ve=(a,e,t,s)=>M(void 0,void 0,void 0,function*(){return yield a.api(`/me/todo/lists/${e}/tasks/${t}`).header("Cache-Control","no-store").middlewareOptions(z(Te)).patch(s)}),Gs=[Ht` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{display:flex;flex-direction:column;color:var(--color,var(--neutral-foreground-rest))}:host input[type=date]::-webkit-calendar-picker-indicator,:host input[type=date]::-webkit-inner-spin-button{display:none;appearance:none}:host .task-icon{font-family:FabricMDL2Icons;user-select:none}:host .task-icon.divider{vertical-align:initial;margin:0 12px;font-size:16px}:host .header{margin:var(--tasks-header-margin,0 0 12px 0);padding:var(--tasks-title-padding,0);display:flex;align-items:center;justify-content:space-between}:host .header .header__loading{max-width:90px;width:100%;height:20px;background:#f2f2f2}:host .header select{font-size:var(--tasks-plan-title-font-size, 1.1em);padding:var(--tasks-plan-title-padding,5px);border:none;appearance:none;cursor:pointer}:host .header select::-ms-expand{display:none}:host .header .plan-title{font-size:var(--tasks-plan-title-font-size, 1.1em);padding:var(--tasks-plan-title-padding,5px)}:host .header .add-bar{display:flex}:host .header .add-bar .add-bar-item{flex:1 1 auto}:host .header .new-task-due{display:flex}:host .header .new-task-due input{flex:1 1 auto;background-color:var(--task-background-color,var(--neutral-layer-floating))}:host .header .title-cont{flex:1 1 auto;display:flex;align-items:center;height:var(--tasks-new-button-height,34px)}:host .header .new-task-button{flex:0 0 auto;display:flex;justify-content:center;align-items:center;width:var(--tasks-new-button-width,auto);height:var(--tasks-new-button-height,32px);border-radius:2px;padding:0 20px;background:var(--tasks-new-button-background,#0078d4);border:var(--tasks-new-button-border,solid 1px transparent);color:var(--tasks-new-button-color,#fff);user-select:none;cursor:pointer}:host .header .new-task-button span{font-size:14px;font-weight:600;letter-spacing:.1px;line-height:14px}:host .header .new-task-button .task-icon{margin-right:8px}:host .header .new-task-button.hidden{visibility:hidden}:host .header .new-task-button:hover{background:var(--tasks-new-button-hover-background,#106ebe)}:host .header .new-task-button:active{background:var(--tasks-new-button-active-background,#005a9e)}:host .task{position:relative;margin:var(--task-margin,0 0 0 0);padding:var(--task-padding,0 0 0 0);background-color:var(--task-background-color,var(--neutral-layer-floating));border:var(--task-border,var(--neutral-stroke-input-active));border-radius:8px}:host .task .task-content{display:flex}:host .task .task-content .divider{position:absolute;height:2px;left:0;right:0;bottom:0;background-color:var(--task-background-color,var(--neutral-layer-floating))}:host .task .task-content .task-details-container{flex:1;display:grid;grid-template-columns:auto 1fr;-ms-grid-columns:auto 1fr;grid-template-rows:auto auto auto auto;-ms-grid-rows:auto auto auto auto;justify-content:space-between;align-items:flex-start;color:var(--task-detail-color,var(--neutral-foreground-hint));font-size:12px;font-weight:600;white-space:normal;margin-bottom:12px}:host .task .task-content .task-details-container .task-detail{width:100%;height:100%;margin:4px 24px 6px 0;display:flex;justify-content:flex-start;align-items:center}:host .task .task-content .task-details-container .task-title{color:var(--task-color,var(--neutral-foreground-rest));font-size:14px;font-weight:600;grid-row:1;grid-column:1/3;grid-column:1;-ms-grid-column-span:2;margin:22px 0 4px}:host .task .task-content .task-details-container .task-group{min-height:24px;grid-row:2;grid-column:1}:host .task .task-content .task-details-container .task-bucket{min-height:24px;grid-row:2;grid-column:2}:host .task .task-content .task-details-container .task-due{justify-content:flex-end;align-items:flex-start;grid-row:4;grid-column:1/3;grid-column:1;-ms-grid-column-span:2}:host .task .task-content .task-details-container.tablet{grid-template-columns:1fr 0.5fr 1fr 0.5fr;-ms-grid-columns:1fr 0.5fr 1fr 0.5fr;grid-template-rows:auto auto;-ms-grid-rows:auto auto}:host .task .task-content .task-details-container.tablet.no-plan{grid-template-columns:0 1fr 1fr 1fr;-ms-grid-columns:0 1fr 1fr 1fr}:host .task .task-content .task-details-container.tablet .task-detail{margin:4px 24px 6px 0}:host .task .task-content .task-details-container.tablet .task-title{grid-row:1;grid-column:1/5;grid-column:1;-ms-grid-column-span:4}:host .task .task-content .task-details-container.tablet .task-group{grid-row:2;grid-column:1}:host .task .task-content .task-details-container.tablet .task-bucket{grid-row:2;grid-column:2}:host .task .task-content .task-details-container.tablet .task-assignee{grid-row:2;grid-column:3}:host .task .task-content .task-details-container.tablet .task-due{justify-content:flex-start;align-items:center;grid-row:2;grid-column:4}:host .task .task-content .task-details-container.desktop{grid-template-columns:2fr 1fr 0.5fr 1fr 0.5fr;-ms-grid-columns:2fr 1fr 0.5fr 1fr 0.5fr;grid-template-rows:auto;-ms-grid-rows:auto;margin:0}:host .task .task-content .task-details-container.desktop.no-plan{grid-template-columns:2fr 0 1fr 1fr 1fr;-ms-grid-columns:2fr 0 1fr 1fr 1fr}:host .task .task-content .task-details-container.desktop .task-detail{margin:0 24px 0 0}:host .task .task-content .task-details-container.desktop .task-title{padding:0;grid-row:1;grid-column:1}:host .task .task-content .task-details-container.desktop .task-group{min-height:61px;grid-row:1;grid-column:2}:host .task .task-content .task-details-container.desktop .task-bucket{grid-row:1;grid-column:3}:host .task .task-content .task-details-container.desktop .task-assignee{grid-row:1;grid-column:4}:host .task .task-content .task-details-container.desktop .task-due{justify-content:flex-start;align-items:center;grid-row:1;grid-column:5}:host .task .task-content .task-details-container svg{vertical-align:middle;margin-right:4px}:host .task .task-content .task-details-container svg path{fill:var(--task-detail-color,var(--neutral-foreground-hint))}:host .task .task-content .task-details-container select,:host .task .task-content .task-details-container span{vertical-align:middle;color:var(--task-detail-color,var(--neutral-foreground-hint))}:host .task .task-content .task-details-container .task-icon{color:#797775;margin-right:8px}:host .task .task-content .task-details-container .people{color:var(--task-detail-color,var(--neutral-foreground-hint));font-size:16px}:host .task .task-content .task-details-container .person{display:inline-block}:host .task .task-content .task-details-container .picker{background-color:var(--task-background-color,var(--neutral-layer-floating));background-clip:padding-box;width:var(--mgt-flyout-set-width,350px);color:var(--task-detail-color,var(--neutral-foreground-hint))}:host .task .task-content .task-details-container .picker .people-picker{--separator-margin:0px 10px 0px 10px}:host .task .task-content .task-details-container input,:host .task .task-content .task-details-container select{color:var(--task-detail-color,var(--neutral-foreground-hint));font-size:.9em;background-color:var(--task-background-color,var(--neutral-layer-floating))}:host .task .task-check-container{font-family:FabricMDL2Icons;border-radius:50%;color:#fff;cursor:pointer;display:flex;align-items:var(--task-icon-alignment,flex-start);margin:21px 10px 20px 20px;user-select:none}:host .task .task-check-container.complete .task-check{background-color:var(--task-icon-background-completed,#00ad56);border:var(--task-icon-border-completed,solid 1px #fff);color:var(--task-icon-color-completed,#fff)}:host .task .task-check-container.complete .task-content .task-details-container .task-title{text-decoration:line-through;color:var(--task-detail-color,var(--neutral-foreground-hint))}:host .task .task-check-container .task-check{font-family:FabricMDL2Icons;font-size:12px;width:18px;height:18px;border-radius:var(--task-icon-border-radius,50%);border:var(--task-icon-border,solid 1px #797775);color:var(--task-color,var(--neutral-foreground-rest));display:flex;justify-content:center;align-items:center;background-color:var(--task-icon-background,transparent);user-select:none}:host .task .task-check-container .task-check.loading .task-check-content{animation:rotate-icon 2s infinite linear}:host .task .task-options{cursor:pointer;user-select:none;margin:16px 8px 0 0}:host .task.read-only .task-check-container{cursor:default}:host .task.complete{background:var(--task-complete-background,var(--neutral-layer-1));border:var(--task-complete-border,2px dotted inherit)}:host .task.complete .task-content .task-details-container .task-title{text-decoration:line-through;color:var(--task-detail-color,var(--neutral-foreground-hint))}:host .task.new-task{margin:var(--task-new-margin,var(--task-margin,0 0 24px 0));display:flex;flex-direction:row}:host .task.new-task .self-assign{display:none}:host .task.new-task .assign-to{border:0;background:0 0}:host .task.new-task .fake-check-box{width:15px;height:15px;cursor:pointer;margin:0 5px}:host .task.new-task .fake-check-box::after{font-family:FabricMDL2Icons;content:"uE739"}:host .task.new-task .fake-check-box~:checked{font-family:FabricMDL2Icons;content:"uE73A"}:host .task.new-task .task-content{flex:1 1 auto;align-content:center;vertical-align:middle;margin:0 0 0 12px}:host .task.new-task .task-content .task-details-container{display:flex;flex-direction:column;align-items:stretch;margin:0}:host .task.new-task .task-content .task-details-container .task-title{display:flex;height:32px;padding:2px}:host .task.new-task .task-content .task-details-container .task-title input{flex:1;margin:var(--task-new-input-margin,0 24px 0 16px);padding:var(--task-new-input-padding,6px);font-size:var(--task-new-input-font-size, 14px);font-weight:600;border:var(--task-new-border,none);border-bottom:1px solid #e1dfdd;outline:0;border-radius:0;background-color:var(--task-background-color,var(--neutral-layer-floating))}:host .task.new-task .task-content .task-details-container .task-title input:hover{border-bottom:1px solid #106ebe}:host .task.new-task .task-content .task-details-container .task-title input:active{border-bottom:1px solid #005a9e}:host .task.new-task .task-content .task-details-container .task-title input:focus{border-bottom:1px solid #0078d4}:host .task.new-task .task-content .task-details-container .task-details{display:flex;justify-content:stretch;align-items:center;flex-wrap:wrap;margin:14px 0 14px 4px}:host .task.new-task .task-content .task-details-container .task-details .new-task-group{margin:8px 16px}:host .task.new-task .task-content .task-details-container .task-details .new-task-bucket{margin:8px 16px}:host .task.new-task .task-content .task-details-container .task-details .new-task-due{margin:8px 16px}:host .task.new-task .task-content .task-details-container .task-details .new-task-assignee{margin:8px 16px;min-width:80px}:host .task.new-task .task-content .task-details-container .task-details .task-people label{display:flex;align-content:center;align-items:center}:host .task.new-task .task-content .task-details-container .task-details input,:host .task.new-task .task-content .task-details-container .task-details select{font-size:12px;font-weight:600;border:var(--task-new-select-border,none);border-bottom:1px solid #e1dfdd}:host .task.new-task .task-content .task-details-container .task-details input:hover,:host .task.new-task .task-content .task-details-container .task-details select:hover{border-bottom:1px solid #106ebe}:host .task.new-task .task-content .task-details-container .task-details input:active,:host .task.new-task .task-content .task-details-container .task-details select:active{border-bottom:1px solid #005a9e}:host .task.new-task .task-content .task-details-container .task-details input:focus,:host .task.new-task .task-content .task-details-container .task-details select:focus{border-bottom:1px solid #0078d4}:host .task.new-task .task-add-button-container{margin-right:28px}:host .task.new-task .task-add-button-container .task-add,:host .task.new-task .task-add-button-container .task-cancel{justify-content:center;align-items:center;cursor:pointer;flex:0 0 auto;display:flex;width:var(--tasks-new-button-width,100px);height:var(--tasks-new-button-height,32px);border-radius:4px;border:var(--tasks-new-button-border,solid 1px #e5e5e5);font-size:14px;line-height:20px}:host .task.new-task .task-add-button-container .task-add{color:#fff;background:var(--task-new-add-button-background,#0078d4);margin:22px 0 12px auto}:host .task.new-task .task-add-button-container .task-cancel{color:var(--task-new-cancel-button-color,var(--neutral-foreground-rest))}:host .task.new-task .task-add-button-container.disabled .task-add{color:var(--task-new-cancel-button-color,var(--neutral-foreground-rest));background:var(--task-new-add-button-disabled-background,#fff);cursor:default}@keyframes rotate-icon{from{transform:rotate(0)}to{transform:rotate(360deg)}}[dir=rtl] .arrow-options{--arrow-options-left:auto}[dir=rtl] .dot-options{--dot-options-translatex:translateX(60px)}[dir=rtl] .task-details{margin-right:14px!important}[dir=rtl] .task-icon{margin-left:8px}[dir=rtl] .task-detail svg{margin-left:4px}@media (forced-colors:active) and (prefers-color-scheme:dark){:host svg{fill:rgb(255,255,255)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}:host svg path{fill:rgb(255,255,255)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}}@media (forced-colors:active) and (prefers-color-scheme:light){:host svg{fill:rgb(0,0,0)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}:host svg path{fill:rgb(0,0,0)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}}:host{border-radius:8px;width:100%}:host .task,:host.loading-task{margin-block:1px;box-shadow:var(--task-box-shadow,var(--elevation-shadow-card-active));width:100%;display:flex;background-color:var(--task-background-color,var(--neutral-layer-floating))}:host .task.new-task,:host.loading-task.new-task{margin:14px 0 1px;box-shadow:var(--task-box-shadow,var(--elevation-shadow-card-active))}:host .task.complete,:host.loading-task.complete{border:1px solid var(--task-border-completed,var(--neutral-stroke-input-active));background:var(--task-complete-background,var(--neutral-layer-1))}:host .task.complete .task-details .task-due,:host .task.complete .task-details .title,:host.loading-task.complete .task-details .task-due,:host.loading-task.complete .task-details .title{text-decoration:line-through}:host .task.read-only,:host.loading-task.read-only{opacity:1}:host .task:hover,:host.loading-task:hover{background-color:var(--task-background-color-hover,var(--neutral-fill-hover));border-radius:8px}:host .task .task-details,:host.loading-task .task-details{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:2px;line-height:24px;border-radius:4px;width:100%}:host .task .task-details .task>div,:host.loading-task .task-details .task>div{display:flex;align-items:center;width:200px}:host .task .task-details .task-delete,:host.loading-task .task-details .task-delete{display:flex}:host .task .task-details .container,:host.loading-task .task-details .container{display:flex;width:100%}:host .task .task-details .task-due,:host.loading-task .task-details .task-due{min-width:120px;margin-inline-end:12px;height:32px;text-decoration:inherit;display:flex}:host fluent-text-field::part(end),:host fluent-text-field::part(start){margin-inline:unset}:host fluent-text-field::part(control){padding:0;cursor:pointer}:host fluent-text-field::part(root){background:0 0}:host fluent-text-field.new-task{width:100%;height:34px}:host fluent-text-field.new-task div.start .add-icon{display:flex;margin-inline:10px}:host fluent-text-field.new-task div:nth-child(2){display:flex;align-items:center}:host fluent-text-field.new-task div:nth-child(2) .calendar{display:flex;align-items:center}:host fluent-text-field.new-task div:nth-child(2) .calendar svg{fill:var(--task-color,var(--neutral-foreground-rest))}:host fluent-text-field.new-task div:nth-child(2) .calendar .date{margin-inline-start:10px;color:var(--task-color,var(--neutral-foreground-rest));width:auto;cursor:pointer}:host fluent-text-field.new-task div:nth-child(2) .calendar input{flex:1;border:none;border-bottom:1px solid var(--task-color,var(--neutral-foreground-rest));outline:0;border-radius:0}:host fluent-text-field.new-task div:nth-child(2) .calendar input:hover{border-bottom:1px solid var(--task-date-input-hover-color,var(--neutral-layer-1))}:host fluent-text-field.new-task div:nth-child(2) .calendar input:active,:host fluent-text-field.new-task div:nth-child(2) .calendar input:focus{border-bottom:1px solid var(--task-date-input-active-color,var(--accent-fill-rest))}:host fluent-text-field.title{flex-grow:1;display:inline}:host fluent-text-field.date{color:var(--task-detail-color,var(--neutral-foreground-hint))}:host fluent-text-field::after{border-bottom:none}:host fluent-text-field.dark::part(control){color-scheme:dark}:host fluent-button.task-add-icon.neutral,:host fluent-button.task-cancel-icon.neutral,:host fluent-button.task-delete.neutral{fill:var(--task-color,var(--neutral-foreground-rest))}:host fluent-button.task-add-icon.neutral::part(control),:host fluent-button.task-cancel-icon.neutral::part(control),:host fluent-button.task-delete.neutral::part(control){border:none;background:inherit}:host fluent-button.task-add-icon.neutral::part(control) svg,:host fluent-button.task-cancel-icon.neutral::part(control) svg,:host fluent-button.task-delete.neutral::part(control) svg{fill:var(--task-color,var(--neutral-foreground-rest))}:host fluent-checkbox.complete div>svg .filled{display:block}:host fluent-checkbox.complete div>svg .regular{display:none}:host fluent-checkbox.complete div>svg path{fill:var(--task-radio-background-color,var(--accent-fill-rest))}:host fluent-checkbox div>svg .filled{display:none}:host fluent-checkbox div>svg .regular{display:block}:host fluent-checkbox div>svg path{fill:var(--task-background-color,var(--neutral-layer-floating))}:host fluent-checkbox::part(control){margin-inline-start:10px;background:0 0;border-radius:50%}:host fluent-checkbox::part(label){margin-inline-end:unset;width:100%} +`],qs={cancelNewTaskSubtitle:"Cancel",newTaskPlaceholder:"Add a task",newTaskLabel:"New Task Input",editTaskLabel:"Edit Task Input",addTaskButtonSubtitle:"Add",deleteTaskOption:"Delete",editTaskOption:"Edit",dueDate:"Due date",newTaskDateInputLabel:"New Task Date Input",changeTaskDateInputLabel:"Change Task Date Input",newTaskNameInputLabel:"New Task Name Input",cancelAddingTask:"Cancel adding a new task"},Ks={cancelNewTaskSubtitle:"Cancel",newTaskPlaceholder:"Add a task",addTaskButtonSubtitle:"Add",removeTaskSubtitle:"Delete Task"};var Y=function(a,e,t,s){var i=arguments.length,n=i<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(a,e,t,s);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(n=(i<3?o(n):i>3?o(e,t,n):o(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},Z=function(a,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,e)};class P extends Vt{get strings(){return Ks}constructor(){super(),this.renderLoading=()=>this.renderLoadingTask(),this.renderContent=()=>{const e=Ne.globalProvider;if(!e||e.state!==Me.SignedIn)return g``;const t=this.renderPicker(),s=this.renderNewTask(),i=this.renderTasks();return g` + ${t} + ${s} +
+ ${i} +
+ `},this.handleTaskClick=e=>{this.fireCustomEvent("taskClick",{task:e})},this.onResize=()=>{this.mediaQuery!==this._previousMediaQuery&&(this._previousMediaQuery=this.mediaQuery,this.requestUpdate())},We(ds,Ye,Hs),this.clearState(),this._previousMediaQuery=this.mediaQuery}args(){return[this.providerState,this.targetId,this.initialId]}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onResize)}disconnectedCallback(){window.removeEventListener("resize",this.onResize),super.disconnectedCallback()}renderLoadingTask(){return g` +
+
+
+
+
+
+
+ `}clearState(){this.requestUpdate()}dateToInputValue(e){return e?new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().split("T")[0]:null}}Y([W({attribute:"read-only",type:Boolean}),Z("design:type",Boolean)],P.prototype,"readOnly",void 0);Y([W({attribute:"hide-header",type:Boolean}),Z("design:type",Boolean)],P.prototype,"hideHeader",void 0);Y([W({attribute:"hide-options",type:Boolean}),Z("design:type",Boolean)],P.prototype,"hideOptions",void 0);Y([W({attribute:"target-id",type:String}),Z("design:type",String)],P.prototype,"targetId",void 0);Y([W({attribute:"initial-id",type:String}),Z("design:type",String)],P.prototype,"initialId",void 0);var R=function(a,e,t,s){var i=arguments.length,n=i<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(a,e,t,s);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(n=(i<3?o(n):i>3?o(e,t,n):o(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},_=function(a,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,e)},F=function(a,e,t,s){function i(n){return n instanceof t?n:new t(function(o){o(n)})}return new(t||(t=Promise))(function(n,o){function l(c){try{h(s.next(c))}catch(d){o(d)}}function r(c){try{h(s.throw(c))}catch(d){o(d)}}function h(c){c.done?n(c.value):i(c.value).then(l,r)}h((s=s.apply(a,e||[])).next())})};const Qs=()=>{We(cs,zs,Ye),rs(),zt("todo",T)};class T extends P{static get styles(){return Gs}get strings(){return qs}static get requiredScopes(){return["tasks.read","tasks.readwrite"]}constructor(){super(),this._isChangedDueDate=!1,this._isDarkMode=!1,this.onThemeChanged=()=>{this._isDarkMode=Ns(this)},this.renderNewTask=()=>{const e=this._newTaskName?g` + + + `:g` + ${J(X.Add)} + `,t=g` + + ${J(X.Cancel)} + + `,s={dark:this._isDarkMode,date:!0},i=g` + + + `,n=this.readOnly?ue:g` + +
${e}
+ ${this._newTaskName?g` +
+ ${i} + ${t} +
`:g``} +
+ `;return g` + ${this.currentList?g` +
+ ${n} +
+ `:g``} + `},this.handleSelectionChanged=e=>{this.currentList=e.detail,this.loadTasks(this.currentList)},this.renderTaskDetails=e=>{const t={task:e,list:this.currentList};if(this.hasTemplate("task"))return this.renderTemplate("task",t,e.id);let s=null;const i=g` + + ${J(X.Delete)} + `;if(this.hasTemplate("task-details"))s=this.renderTemplate("task-details",t,`task-details-${e.id}`);else{const n={dark:this._isDarkMode,date:!0,"task-due":!0},o=g` + + + `,l=g` + + + ${e.dueDateTime||this._taskBeingUpdated===e?g`${o}`:ue} + ${i} + `;s=g` +
+ ${l} +
+ `}return g`${s}`},this.renderTask=e=>{const t=e.status==="completed",s=ee({complete:t,"read-only":this.readOnly,task:!0}),i=ee({complete:t}),n=g`${J(X.CheckMark)}`;return g` +
+ +
+ ${n} +
+
+ ${this.renderTaskDetails(e)} +
+ `},this.loadState=()=>F(this,void 0,void 0,function*(){const e=Ne.globalProvider;if(!(!e||e.state!==Me.SignedIn)){if(!this._graph){const t=e.graph.forComponent(this);this._graph=t}if(!this.currentList&&!this.initialId){const t=yield Ms(this._graph),s=t==null?void 0:t.find(i=>i.wellknownListName==="defaultList");s&&(yield this.loadTasks(s))}this.targetId?(this.currentList=yield He(this._graph,this.targetId),this._tasks=yield pe(this._graph,this.targetId)):this.initialId&&(this.currentList=yield He(this._graph,this.initialId),this._tasks=yield pe(this._graph,this.initialId))}}),this.addTask=()=>F(this,void 0,void 0,function*(){if(!(this._isNewTaskBeingAdded||!this._newTaskName)){this._isNewTaskBeingAdded=!0;try{yield this.createNewTask()}finally{this.clearNewTaskData(),this._isNewTaskBeingAdded=!1}}}),this.updateTask=e=>F(this,void 0,void 0,function*(){try{if(!this._changedTaskName&&!this._isChangedDueDate)return;yield this.updateTaskItem(e)}finally{this.clearNewTaskData()}}),this.clearNewTaskData=()=>{this._newTaskDueDate=null,this._newTaskName="",this._changedTaskName="",this._isChangedDueDate=!1,this.focusOnTaskInput()},this.focusOnTaskInput=()=>{const e=this.renderRoot.querySelector("#new-task-name-input"),t=e==null?void 0:e.shadowRoot.querySelector("input");t&&t.focus()},this.clearState=()=>{super.clearState(),this.currentList=null,this._tasks=[],this._taskBeingUpdated=null},this.loadTasks=e=>F(this,void 0,void 0,function*(){this.currentList=e,this._tasks=yield pe(this._graph,e.id)}),this.updateTaskStatus=(e,t)=>F(this,void 0,void 0,function*(){e.status=t;const s=this.currentList.id;e=yield Ve(this._graph,s,e.id,e);const i=this._tasks.findIndex(n=>n.id===e.id);this._tasks[i]=e,yield this._task.run()}),this.removeTask=e=>F(this,void 0,void 0,function*(){this._tasks=this._tasks.filter(s=>s.id!==e),this.requestUpdate();const t=this.currentList.id;yield Us(this._graph,t,e),this._tasks=this._tasks.filter(s=>s.id!==e)}),this.handleInput=e=>{e.target.id==="new-task-name-input"&&(this._newTaskName=e.target.value)},this.handleChange=(e,t)=>F(this,void 0,void 0,function*(){var s;e.target.id===t.id&&(e.key==="Enter"&&(yield this.updateTask(t),(s=e.target)===null||s===void 0||s.blur()),this._changedTaskName=e.target.value)}),this.handleKeyDown=e=>F(this,void 0,void 0,function*(){e.key==="Enter"&&e.target.id==="new-task-name-input"&&(yield this.addTask())}),this.updatingTask=(e,t)=>{e.target.id===t.id&&(this._taskBeingUpdated=t),e.target.id===`${t.id}-taskDate-input`&&(this._updatingTaskDate=!0,this._taskBeingUpdated=t)},this.handleBlur=()=>{const e=this._taskBeingUpdated,t=this.renderRoot.querySelectorAll("fluent-text-field");for(const s of t)e&&(s.id===e.id||s.id===`${e.id}-taskDate-input`)&&(this.updateTask(e),s==null||s.blur(),this._taskBeingUpdated=null,this._updatingTaskDate=!1)},this.handleDateChange=e=>{const t=e.target.value;t?this._newTaskDueDate=new Date(t+"T17:00"):this._newTaskDueDate=null},this.handleDateUpdate=e=>{const t=this._taskBeingUpdated;if(t){const s=e.target.value;s?this._newTaskDueDate=new Date(s+"T17:00"):this._newTaskDueDate=null,t.dueDateTime&&this._newTaskDueDate?this._isChangedDueDate=new Date(t.dueDateTime.dateTime)!==this._newTaskDueDate:t.dueDateTime||this._newTaskDueDate?this._isChangedDueDate=!0:this._isChangedDueDate=!1}},this._graph=null,this._newTaskDueDate=null,this._tasks=[],this.addEventListener("selectionChanged",this.handleSelectionChanged),this.addEventListener("blur",this.handleBlur)}connectedCallback(){super.connectedCallback(),window.addEventListener("darkmodechanged",this.onThemeChanged),this.onThemeChanged()}disconnectedCallback(){window.removeEventListener("darkmodechanged",this.onThemeChanged),super.disconnectedCallback()}renderTasks(){let e=this._tasks;e&&this.taskFilter&&(e=e.filter(n=>this.taskFilter(n)));const t=e.filter(n=>n.status==="completed"),s=Se(e.filter(n=>n.status!=="completed"),n=>n.id,n=>this.renderTask(n)),i=Se(t.sort((n,o)=>n.lastModifiedDateTimen.status==="completed"),n=>n.id,n=>this.renderTask(n));return g` + ${s} + ${i} + `}renderPicker(){var e,t;return this.targetId?g`

${(e=this.currentList)===null||e===void 0?void 0:e.displayName}

`:Nt` + + `}createNewTask(){return F(this,void 0,void 0,function*(){const e=this.currentList.id,t={title:this._newTaskName};this._newTaskDueDate&&(t.dueDateTime={dateTime:new Date(this._newTaskDueDate).toLocaleDateString(),timeZone:"UTC"});const s=yield Ps(this._graph,e,t);this._tasks.unshift(s)})}updateTaskItem(e){return F(this,void 0,void 0,function*(){const t=this.currentList.id;let s={};if(this._changedTaskName&&this._changedTaskName!==e.title&&(s={title:this._changedTaskName}),this._updatingTaskDate){if(!this._isChangedDueDate)return;this._newTaskDueDate?s.dueDateTime={dateTime:new Date(this._newTaskDueDate).toLocaleDateString(),timeZone:"UTC"}:(this._isChangedDueDate&&this._newTaskDueDate,s.dueDateTime=null)}if(!Object.keys(s).length)return;const i=yield Ve(this._graph,t,e.id,s),n=this._tasks.findIndex(o=>o.id===i.id);this._tasks[n]=i})}handleTaskCheckClick(e){this.handleTaskClick(e),this.readOnly||(e.status==="completed"?this.updateTaskStatus(e,"notStarted"):this.updateTaskStatus(e,"completed"))}handleTaskCheckKeydown(e,t){e.key==="Enter"&&!this.readOnly&&(this.handleTaskClick(t),t.status==="completed"?this.updateTaskStatus(t,"notStarted"):this.updateTaskStatus(t,"completed"))}}R([I(),_("design:type",Array)],T.prototype,"_tasks",void 0);R([I(),_("design:type",Object)],T.prototype,"_taskBeingUpdated",void 0);R([I(),_("design:type",Boolean)],T.prototype,"_updatingTaskDate",void 0);R([I(),_("design:type",Object)],T.prototype,"_isChangedDueDate",void 0);R([I(),_("design:type",Date)],T.prototype,"_newTaskDueDate",void 0);R([I(),_("design:type",String)],T.prototype,"_newTaskName",void 0);R([I(),_("design:type",String)],T.prototype,"_changedTaskName",void 0);R([I(),_("design:type",Boolean)],T.prototype,"_isNewTaskBeingAdded",void 0);R([I(),_("design:type",Object)],T.prototype,"_graph",void 0);R([I(),_("design:type",Object)],T.prototype,"currentList",void 0);R([I(),_("design:type",Object)],T.prototype,"_isDarkMode",void 0);const Ws=Pt("todo",Qs),Ys=a=>{const{iconOnly:e,iconPosition:t}=a;return Ut(a.root,{children:[t!=="after"&&a.icon&&K(a.icon,{}),!e&&a.root.children,t==="after"&&a.icon&&K(a.icon,{})]})},Zs=(a,e)=>{const{size:t="medium",vertical:s=!1}=a,i=Gt({circular:!0,axis:"both"}),n={size:t,vertical:s,components:{root:"div"},root:Ze(Je("div",{role:"toolbar",ref:e,...s&&{"aria-orientation":"vertical"},...i,...a}),{elementType:"div"})},[o,l]=Js({checkedValues:a.checkedValues,defaultCheckedValues:a.defaultCheckedValues,onCheckedValueChange:a.onCheckedValueChange}),r=ge((c,d,f,v)=>{if(d&&f){const w=[...(o==null?void 0:o[d])||[]];v?w.splice(w.indexOf(f),1):w.push(f),l==null||l(c,{name:d,checkedItems:w})}}),h=ge((c,d,f,v)=>{d&&f&&(l==null||l(c,{name:d,checkedItems:[f]}))});return{...n,handleToggleButton:r,handleRadio:h,checkedValues:o??{}}},Js=a=>{const[e,t]=qt({state:a.checkedValues,defaultState:a.defaultCheckedValues,initialState:{}}),{onCheckedValueChange:s}=a,i=ge((n,{name:o,checkedItems:l})=>{s&&s(n,{name:o,checkedItems:l}),t(r=>r?{...r,[o]:l}:{[o]:l})});return[e,i]},Xs=Kt(void 0),ea=(a,e)=>K(Xs.Provider,{value:e.toolbar,children:K(a.root,{children:a.root.children})}),ta={root:"fui-Toolbar"},sa=Xe({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yqiaad"},vertical:{Beiy3e4:"f1vx9l62",a9b677:"f1acs6jw"},small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fvz760z"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yqiaad"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ms6bdn"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",[".f1yqiaad{padding:4px 8px;}",{p:-1}],".f1vx9l62{flex-direction:column;}",".f1acs6jw{width:fit-content;}",[".fvz760z{padding:0px 4px;}",{p:-1}],[".f1yqiaad{padding:4px 8px;}",{p:-1}],[".f1ms6bdn{padding:4px 20px;}",{p:-1}]]}),aa=a=>{const e=sa(),{vertical:t,size:s}=a;return a.root.className=ne(ta.root,e.root,t&&e.vertical,s==="small"&&!t&&e.small,s==="medium"&&!t&&e.medium,s==="large"&&!t&&e.large,a.root.className),a};function ia(a){const{size:e,handleToggleButton:t,vertical:s,checkedValues:i,handleRadio:n}=a;return{toolbar:{size:e,vertical:s,handleToggleButton:t,handleRadio:n,checkedValues:i}}}const ot=oe.forwardRef((a,e)=>{const t=Zs(a,e),s=ia(t);return aa(t),xe("useToolbarStyles_unstable")(t),ea(t,s)});ot.displayName="Toolbar";const na=Xe({vertical:{Beiy3e4:"f1vx9l62"},verticalIcon:{Be2twd7:"f1rt2boy",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao"}},{d:[".f1vx9l62{flex-direction:column;}",".f1rt2boy{font-size:24px;}",[".f1s184ao{margin:0;}",{p:-1}]]}),oa=a=>{Qt(a);const e=na();a.root.className=ne(a.root.className,a.vertical&&e.vertical),a.icon&&(a.icon.className=ne(a.icon.className,a.vertical&&e.verticalIcon))},ra=(a,e)=>{const{vertical:t=!1,...s}=a,i=Wt({appearance:"subtle",...s},e);return{vertical:t,...i}},rt=oe.forwardRef((a,e)=>{const t=ra(a,e);return oa(t),xe("useToolbarButtonStyles_unstable")(t),Ys(t)});rt.displayName="ToolbarButton";const la=(a,e)=>({components:{root:"div"},root:Ze(Je("div",{ref:e,role:"presentation",...a}),{elementType:"div"})}),da={root:"fui-ToolbarGroup"},ca=a=>(a.root.className=ne(da.root,a.root.className),a),ha=a=>K(a.root,{children:a.root.children}),lt=oe.forwardRef((a,e)=>{const t=la(a,e);return ca(t),xe("useToolbarGroupStyles_unstable")(t),ha(t)});lt.displayName="ToolbarGroup";const ua=et({toolbar:{justifyContent:"space-between"}}),fa=a=>[te({columnId:"name",renderHeaderCell:()=>"Name",renderCell:t=>p.jsx(se,{children:a?p.jsx(ae,{shape:"rectangle",style:{width:"120px"}}):p.jsx(Zt,{userId:t.id,view:"oneline",personCardInteraction:"hover"})})}),te({columnId:"jobTitle",renderHeaderCell:()=>"Job Title",renderCell:t=>p.jsx(se,{children:a?p.jsx(ae,{shape:"rectangle",style:{width:"120px"}}):t.jobTitle})}),te({columnId:"mobilePhone",renderHeaderCell:()=>"Mobile Phone",renderCell:t=>p.jsx(se,{children:a?p.jsx(ae,{shape:"rectangle",style:{width:"120px"}}):t.mobilePhone})}),te({columnId:"officeLocation",renderHeaderCell:()=>"Office Location",renderCell:t=>p.jsx(se,{children:a?p.jsx(ae,{shape:"rectangle",style:{width:"120px"}}):t.officeLocation})})];function pa(a){return p.jsxs(es,{resource:"me/directReports",children:[p.jsx(ze,{template:"default"}),p.jsx(ze,{template:"loading"}),p.jsx(ma,{template:"no-data"})]})}const ze=a=>{const e=ua(),[t]=re.useState(a.dataContext.value),[s]=re.useState(a.dataContext&&!a.dataContext.value),[i,n]=re.useState(null),o=(l,r)=>{const[h]=r.selectedItems,c=t.find(d=>d.id===h);n(c)};return p.jsxs("div",{children:[p.jsx(ot,{className:e.toolbar,children:p.jsx(lt,{role:"presentation",children:p.jsx(rt,{icon:p.jsx(Yt,{}),disabled:!i,as:"a",href:`https://www.office.com/feed?auth=2#/user/${i==null?void 0:i.id}`,target:"_blank",children:"View feed"})})}),p.jsxs(ss,{columns:fa(s),items:s?[...Array(5)]:t,selectionMode:"single",onSelectionChange:o,getRowId:l=>s?Math.random():l.id,children:[p.jsx(as,{children:p.jsx(Ee,{children:({renderHeaderCell:l})=>p.jsx(is,{children:l()})})}),p.jsx(ns,{children:({item:l,rowId:r})=>p.jsx(Ee,{children:({renderCell:h})=>p.jsx(os,{children:h(l)})},r)})]})]})},ma=a=>p.jsx(p.Fragment,{children:"You don't have direct reports"}),ka=et({panels:{...Jt.padding("10px")}}),Ra=()=>{const a=ka(),[e,t]=oe.useState("tasks"),s=(i,n)=>{t(n.value)};return p.jsxs(p.Fragment,{children:[p.jsx(ft,{title:"My Dashboard",description:"This dashboard helps you being productive with your tasks and your incidents."}),p.jsxs("div",{children:[p.jsxs(Xt,{selectedValue:e,onTabSelect:s,children:[p.jsx(Fe,{value:"tasks",children:"My Tasks"}),p.jsx(Fe,{value:"directReports",children:"My Direct Reports"})]}),p.jsxs("div",{className:a.panels,children:[e==="tasks"&&p.jsx(Ws,{}),e==="directReports"&&p.jsx(pa,{})]})]})]})};export{Ra as default}; diff --git a/next/sample/pr/3325/assets/DataGridHeaderCell-Bb_zMzQi.js b/next/sample/pr/3325/assets/DataGridHeaderCell-Bb_zMzQi.js new file mode 100644 index 0000000000..d1d95f3222 --- /dev/null +++ b/next/sample/pr/3325/assets/DataGridHeaderCell-Bb_zMzQi.js @@ -0,0 +1,17 @@ +import{x as ze,aX as F,aY as co,aZ as be,ag as ke,a_ as so,a$ as uo,b0 as He,b1 as H,b2 as fo,b3 as _e,b4 as bo,b5 as Ee,b6 as G,b7 as te,b8 as Ae,b9 as Ce,ba as oe,ad as _,bb as N,af as z,bc as re,bd as ee,be as mo,aa as D,ab as S,ai as p,bf as M,aj as y,ak as T,bg as vo,ae as q,bh as Se,bi as ho,bj as go,bk as Fe,bl as Ge,bm as po,bn as xo,ac as me,bo as wo,bp as yo,bq as ko,br as Co,bs as So,bt as Bo,ah as zo,bu as _o,bv as No,bw as Ro}from"./App-c9ixsJC9.js";import{r as s}from"./index-hkJM60Tb.js";const oa={horizontal:"horizontal",vertical:"vertical"},ta="focus",ra="focusin",na="focusout",aa="keydown",la="resize",ia="scroll",ca=e=>{const o=e.closest("[dir]");return o!==null&&o.dir==="rtl"?ze.rtl:ze.ltr},To=e=>(e(0),0),jo=e=>e;function qo(){const{targetDocument:e}=F(),o=e==null?void 0:e.defaultView,t=o?o.requestAnimationFrame:To,a=o?o.cancelAnimationFrame:jo;return co(t,a)}function Io(e){if(!be(e))return!1;const{tagName:o}=e;switch(o){case"BUTTON":case"A":case"INPUT":case"TEXTAREA":return!0}return e.isContentEditable}function ve(e){return e.type.startsWith("touch")}function he(e){return e.type.startsWith("mouse")||["click","contextmenu","dblclick"].indexOf(e.type)>-1}function Ne(e){return he(e)?{clientX:e.clientX,clientY:e.clientY}:ve(e)?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:0,clientY:0}}function Re(e){return e instanceof Set?e:new Set(e)}function Me(e){const[o,t]=ke({initialState:new Set,defaultState:s.useMemo(()=>e.defaultSelectedItems&&Re(e.defaultSelectedItems),[e.defaultSelectedItems]),state:s.useMemo(()=>e.selectedItems&&Re(e.selectedItems),[e.selectedItems])});return[o,(r,n)=>{var l;(l=e.onSelectionChange)===null||l===void 0||l.call(e,r,{selectedItems:n}),t(n)}]}function Do(e){const[o,t]=Me(e);return[o,{deselectItem:r=>t(r,new Set),selectItem:(r,n)=>t(r,new Set([n])),toggleAllItems:()=>{},toggleItem:(r,n)=>t(r,new Set([n])),clearItems:r=>t(r,new Set),isSelected:r=>{var n;return(n=o.has(r))!==null&&n!==void 0?n:!1}}]}function Ho(e){const[o,t]=Me(e);return[o,{toggleItem:(r,n)=>{const l=new Set(o);o.has(n)?l.delete(n):l.add(n),t(r,l)},selectItem:(r,n)=>{const l=new Set(o);l.add(n),t(r,l)},deselectItem:(r,n)=>{const l=new Set(o);l.delete(n),t(r,l)},clearItems:r=>{t(r,new Set)},isSelected:r=>o.has(r),toggleAllItems:(r,n)=>{const l=n.every(c=>o.has(c)),i=new Set(o);l?i.clear():n.forEach(c=>i.add(c)),t(r,i)}}]}function Eo(e){return e.selectionMode==="multiselect"?Ho(e):Do(e)}const Pe=e=>{const o=so();return o&&uo(o),He({groupper:{tabbability:Ao(e==null?void 0:e.tabBehavior)},focusable:{ignoreKeydown:e==null?void 0:e.ignoreDefaultKeydown}})},Ao=e=>{switch(e){case"unlimited":return H.GroupperTabbabilities.Unlimited;case"limited":return H.GroupperTabbabilities.Limited;case"limited-trap-focus":return H.GroupperTabbabilities.LimitedTrapFocus;default:return}};function Fo(e,o){const t=fo(o);t.subscribe(n=>{n||Te(e)});const a=n=>{t.isNavigatingWithKeyboard()&&je(n.target)&&Go(e)},r=n=>{(!n.relatedTarget||je(n.relatedTarget)&&!e.contains(n.relatedTarget))&&Te(e)};return e.addEventListener(_e,a),e.addEventListener("focusout",r),()=>{e.removeEventListener(_e,a),e.removeEventListener("focusout",r),bo(t)}}function Go(e){e.setAttribute(Ee,"")}function Te(e){e.removeAttribute(Ee)}function je(e){return e?!!(e&&typeof e=="object"&&"classList"in e&&"contains"in e):!1}function ne(){const{targetDocument:e}=F(),o=s.useRef(null);return s.useEffect(()=>{if(e!=null&&e.defaultView&&o.current)return Fo(o.current,e.defaultView)},[o,e]),o}const Mo=(...e)=>{const o=e.map(t=>t[H.TabsterAttributeName]).filter(Boolean);return s.useMemo(()=>{let t=o[0];e.shift();for(const a of o)t=Po(t,a);return{[H.TabsterAttributeName]:t}},o)};function Po(e,o){if(!o)return e;let t={},a={};if(e)try{t=JSON.parse(e)}catch{}if(o)try{a=JSON.parse(o)}catch{}return JSON.stringify({...t,...a})}G.MoverMoveFocusEventName;const Wo=G.MoverMoveFocusEvent,Lo=H.MoverKeys;G.GroupperMoveFocusEventName;const Oo=G.GroupperMoveFocusEvent,Vo=H.GroupperMoveFocusActions;G.MoverMemorizedElementEventName;G.MoverMemorizedElementEvent;const Ko=te("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),$o=te("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),Uo=te("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),Xo=te("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),Yo=s.createContext(void 0),Zo=Yo.Provider,We=s.createContext(void 0);We.Provider;const Jo=()=>s.useContext(We);function Qo(e,o){return et(Jo(),e,o)}function et(e,o,t){if(!e)return o;o={...o};const{generatedControlId:a,hintId:r,labelFor:n,labelId:l,required:i,validationMessageId:c,validationState:u}=e;if(a){var d,h;(h=(d=o).id)!==null&&h!==void 0||(d.id=a)}if(l&&(!(t!=null&&t.supportsLabelFor)||n!==o.id)){var g,b,v;(v=(g=o)[b="aria-labelledby"])!==null&&v!==void 0||(g[b]=l)}if((c||r)&&(o["aria-describedby"]=[c,r,o==null?void 0:o["aria-describedby"]].filter(Boolean).join(" ")),u==="error"){var f,m,w;(w=(f=o)[m="aria-invalid"])!==null&&w!==void 0||(f[m]=!0)}if(i)if(t!=null&&t.supportsRequired){var x,k;(k=(x=o).required)!==null&&k!==void 0||(x.required=!0)}else{var C,R,j;(j=(C=o)[R="aria-required"])!==null&&j!==void 0||(C[R]=!0)}if(t!=null&&t.supportsSize){var K,P;(P=(K=o).size)!==null&&P!==void 0||(K.size=e.size)}return o}const ot=(e,o)=>{e=Qo(e,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:t=!1,required:a,shape:r="square",size:n="medium",labelPosition:l="after",onChange:i}=e,[c,u]=ke({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),d=Ae({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),h=c==="mixed",g=Ce("checkbox-",d.primary.id);let b;h?r==="circular"?b=s.createElement(mo,null):b=n==="large"?s.createElement(Xo,null):s.createElement(Uo,null):c&&(b=n==="large"?s.createElement($o,null):s.createElement(Ko,null));const v={shape:r,checked:c,disabled:t,size:n,labelPosition:l,components:{root:"span",input:"input",indicator:"div",label:oe},root:_(e.root,{defaultProps:{ref:ne(),...d.root},elementType:"span"}),input:_(e.input,{defaultProps:{type:"checkbox",id:g,ref:o,checked:c===!0,...d.primary},elementType:"input"}),label:N(e.label,{defaultProps:{htmlFor:g,disabled:t,required:a,size:"medium"},elementType:oe}),indicator:N(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:b},elementType:"div"})};v.input.onChange=z(m=>{const w=m.currentTarget.indeterminate?"mixed":m.currentTarget.checked;i==null||i(m,{checked:w}),u(w)});const f=re(v.input.ref);return v.input.ref=f,ee(()=>{f.current&&(f.current.indeterminate=h)},[f,h]),v},tt=e=>D(e.root,{children:[S(e.input,{}),e.labelPosition==="before"&&e.label&&S(e.label,{}),S(e.indicator,{}),e.labelPosition==="after"&&e.label&&S(e.label,{})]}),U={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},rt=M("r1q22k1j","r18ze4k2",{r:[".r1q22k1j{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r1q22k1j:focus{outline-style:none;}",".r1q22k1j:focus-visible{outline-style:none;}",".r1q22k1j[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1q22k1j[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r18ze4k2{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r18ze4k2:focus{outline-style:none;}",".r18ze4k2:focus-visible{outline-style:none;}",".r18ze4k2[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r18ze4k2[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1q22k1j[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r18ze4k2[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),nt=y({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",Bbusuzp:"f1dcs8yz",mrqfp9:"fxb3eh3"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxb3eh3{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),at=M("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),lt=y({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),it=M("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),ct=y({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}]]}),st=y({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),dt=e=>{const{checked:o,disabled:t,labelPosition:a,shape:r,size:n}=e,l=rt(),i=nt();e.root.className=p(U.root,l,t?i.disabled:o==="mixed"?i.mixed:o?i.checked:i.unchecked,e.root.className);const c=at(),u=lt();e.input.className=p(U.input,c,n==="large"&&u.large,u[a],e.input.className);const d=it(),h=ct();e.indicator&&(e.indicator.className=p(U.indicator,d,n==="large"&&h.large,r==="circular"&&h.circular,e.indicator.className));const g=st();return e.label&&(e.label.className=p(U.label,g.base,g[n],g[a],e.label.className)),e},ge=s.forwardRef((e,o)=>{const t=ot(e,o);return dt(t),T("useCheckboxStyles_unstable")(t),tt(t)});ge.displayName="Checkbox";const Le=s.createContext(void 0),ut={};Le.Provider;const ft=()=>s.useContext(Le)||ut,bt=e=>D(e.root,{children:[S(e.input,{}),S(e.indicator,{}),e.label&&S(e.label,{})]}),mt=(e,o)=>{const t=ft(),{name:a=t.name,checked:r=t.value!==void 0?t.value===e.value:void 0,defaultChecked:n=t.defaultValue!==void 0?t.defaultValue===e.value:void 0,labelPosition:l=t.layout==="horizontal-stacked"?"below":"after",disabled:i=t.disabled,required:c=t.required,"aria-describedby":u=t["aria-describedby"],onChange:d}=e,h=Ae({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),g=_(e.root,{defaultProps:{ref:ne(),...h.root},elementType:"span"}),b=_(e.input,{defaultProps:{ref:o,type:"radio",id:Ce("radio-",h.primary.id),name:a,checked:r,defaultChecked:n,disabled:i,required:c,"aria-describedby":u,...h.primary},elementType:"input"});b.onChange=vo(b.onChange,m=>d==null?void 0:d(m,{value:m.currentTarget.value}));const v=N(e.label,{defaultProps:{htmlFor:b.id,disabled:b.disabled},elementType:oe}),f=_(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:l,components:{root:"span",input:"input",label:oe,indicator:"div"},root:g,input:b,label:v,indicator:f}},X={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},vt=M("r1siqwd8","rmnplyc",{r:[".r1siqwd8{display:inline-flex;position:relative;}",".r1siqwd8:focus{outline-style:none;}",".r1siqwd8:focus-visible{outline-style:none;}",".r1siqwd8[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1siqwd8[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rmnplyc{display:inline-flex;position:relative;}",".rmnplyc:focus{outline-style:none;}",".rmnplyc:focus-visible{outline-style:none;}",".rmnplyc[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rmnplyc[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1siqwd8[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rmnplyc[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),ht=y({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),gt=M("rg1upok","rzwdzb4",{r:[".rg1upok{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rg1upok:enabled{cursor:pointer;}",".rg1upok:enabled~.fui-Radio__label{cursor:pointer;}",".rg1upok:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rg1upok:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rg1upok:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rg1upok:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rg1upok:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rg1upok:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".rzwdzb4{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rzwdzb4:enabled{cursor:pointer;}",".rzwdzb4:enabled~.fui-Radio__label{cursor:pointer;}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rzwdzb4:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rzwdzb4:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rzwdzb4:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rzwdzb4:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rzwdzb4:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"],s:["@media (forced-colors: active){.rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rg1upok:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rg1upok:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rg1upok:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rzwdzb4:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rzwdzb4:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}"]}),pt=y({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"},defaultIndicator:{Blbys7f:"f9ma1gx"},customIndicator:{Bj53wkj:"f12zxao0"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}",'.f9ma1gx:checked~.fui-Radio__indicator::after{content:"";}',".f12zxao0:not(:checked)~.fui-Radio__indicator>*{opacity:0;}"]}),xt=M("rwtekvw",null,[".rwtekvw{position:relative;width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}",".rwtekvw::after{position:absolute;width:16px;height:16px;border-radius:var(--borderRadiusCircular);transform:scale(0.625);background-color:currentColor;}"]),wt=y({base:{qb2dma:"f7nlbp4",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),yt=e=>{const{labelPosition:o}=e,t=vt(),a=ht();e.root.className=p(X.root,t,o==="below"&&a.vertical,e.root.className);const r=gt(),n=pt();e.input.className=p(X.input,r,o==="below"&&n.below,e.indicator.children?n.customIndicator:n.defaultIndicator,e.input.className);const l=xt();e.indicator.className=p(X.indicator,l,e.indicator.className);const i=wt();return e.label&&(e.label.className=p(X.label,i.base,i[o],e.label.className)),e},pe=s.forwardRef((e,o)=>{const t=mt(e,o);return yt(t),T("useRadioStyles_unstable")(t),bt(t)});pe.displayName="Radio";const Oe=s.createContext(void 0),kt={};Oe.Provider;const Ct=()=>{var e;return(e=s.useContext(Oe))!==null&&e!==void 0?e:kt},St=(e,o)=>{const{animation:t,appearance:a}=Ct(),{animation:r=t??"wave",appearance:n=a??"opaque",size:l=16,shape:i="rectangle"}=e,c=_(q("div",{ref:o,...e}),{elementType:"div"});return{appearance:n,animation:r,size:l,shape:i,components:{root:"div"},root:c}},Bt=e=>S(e.root,{}),zt={root:"fui-SkeletonItem"},_t=y({root:{qhf8xq:"f10pi13n",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Bkjc3bi:"f1qx3921",B8a6bjv:"fj9j8l8",Bpptf2m:"f1b6djjb",Bgh53k4:"f1dsdmen",w3vfg9:"f1cpbl36",vin17d:"f1a27w2r",Ezkn3b:"f452v7t",Gqtpxc:"f4akx1t",B3vm3ge:"f18p5put"},wave:{Bv12yb3:"fj20wtk",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},waveRtl:{Bv12yb3:"f105t0nc",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},pulse:{Bv12yb3:"fnm2mpv",vin17d:"f1iuewzk",De3pzq:"f1gjxg63"},translucent:{Bcmaq0h:["fss7axp","f4160cw"]},translucentPulse:{De3pzq:"f162mh4z"}},{d:[".f10pi13n{position:relative;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1qx3921{background-size:300% 100%;}",".fj9j8l8{background-position-x:center;}",".f1b6djjb{background-position-y:center;}",".f1dsdmen{background-attachment:fixed;}",".f1cpbl36{animation-iteration-count:infinite;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".fj20wtk{animation-name:fma800j;}",`.f101ziu5{background-image:linear-gradient( + to right, + var(--colorNeutralStencil1) 0%, + var(--colorNeutralStencil2) 50%, + var(--colorNeutralStencil1) 100%);}`,`.f152emvt{background-image:linear-gradient( + to left, + var(--colorNeutralStencil1) 0%, + var(--colorNeutralStencil2) 50%, + var(--colorNeutralStencil1) 100%);}`,".f105t0nc{animation-name:fj9wi3p;}",".fnm2mpv{animation-name:f12o7gg6;}",".f1iuewzk{animation-duration:1s;}",".f1gjxg63{background-color:var(--colorNeutralStencil1);}",`.fss7axp{background-image:linear-gradient( + to right, + var(--colorNeutralStencil1Alpha) 0%, + var(--colorNeutralStencil2Alpha) 50%, + var(--colorNeutralStencil1Alpha) 100%);}`,`.f4160cw{background-image:linear-gradient( + to left, + var(--colorNeutralStencil1Alpha) 0%, + var(--colorNeutralStencil2Alpha) 50%, + var(--colorNeutralStencil1Alpha) 100%);}`,".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f4akx1t{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f18p5put{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f9jxvrw{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes fma800j{from{background-position-x:300%;}to{background-position-x:0%;}}","@keyframes fj9wi3p{from{background-position-x:0%;}to{background-position-x:300%;}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),Nt=y({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ff3glw6"}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",[".ff3glw6{border-radius:4px;}",{p:-1}]]}),Rt=y({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),Tt=y({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f5q2cvs"}},{d:[[".f5q2cvs{border-radius:50%;}",{p:-1}]]}),jt=e=>{const{animation:o,appearance:t,size:a,shape:r}=e,{dir:n}=F(),l=_t(),i=Nt(),c=Rt(),u=Tt();return e.root.className=p(zt.root,l.root,o==="wave"&&l.wave,o==="wave"&&n==="rtl"&&l.waveRtl,o==="pulse"&&l.pulse,t==="translucent"&&l.translucent,o==="pulse"&&t==="translucent"&&l.translucentPulse,r==="rectangle"&&i.root,r==="rectangle"&&i[a],r==="square"&&c[a],r==="circle"&&u.root,r==="circle"&&c[a],e.root.className),e},qt=s.forwardRef((e,o)=>{const t=St(e,o);return jt(t),Bt(t)});qt.displayName="SkeletonItem";const W=()=>{},Ve={allRowsSelected:!1,clearRows:W,deselectRow:W,isRowSelected:()=>!1,selectRow:W,selectedRows:new Set,someRowsSelected:!1,toggleAllRows:W,toggleRow:W,selectionMode:"multiselect"};function It(e){return o=>Dt(o,e)}function Dt(e,o){const{items:t,getRowId:a}=e,{selectionMode:r,defaultSelectedItems:n,selectedItems:l,onSelectionChange:i}=o,[c,u]=Eo({selectionMode:r,defaultSelectedItems:n,selectedItems:l,onSelectionChange:i}),d=s.useMemo(()=>{const k=new Set;for(let R=0;R{if(r==="single"){const C=Array.from(c)[0];return d.has(C)}if(c.size{c.has(C)||(k=!1)}),k},[d,c,r]),g=s.useMemo(()=>{if(c.size<=0)return!1;let k=!1;return d.forEach(C=>{c.has(C)&&(k=!0)}),k},[d,c]),b=z(k=>{u.toggleAllItems(k,t.map((C,R)=>{var j;return(j=a==null?void 0:a(C))!==null&&j!==void 0?j:R}))}),v=z((k,C)=>u.toggleItem(k,C)),f=z((k,C)=>u.deselectItem(k,C)),m=z((k,C)=>u.selectItem(k,C)),w=k=>u.isSelected(k),x=z(k=>u.clearItems(k));return{...e,selection:{selectionMode:r,someRowsSelected:g,allRowsSelected:h,selectedRows:c,toggleRow:v,toggleAllRows:b,clearRows:x,deselectRow:f,selectRow:m,isRowSelected:w}}}const xe=()=>{},Ke={getSortDirection:()=>"ascending",setColumnSort:xe,sort:e=>[...e],sortColumn:void 0,sortDirection:"ascending",toggleColumnSort:xe};function Ht(e){return o=>Et(o,e)}function Et(e,o){const{columns:t}=e,{sortState:a,defaultSortState:r,onSortChange:n=xe}=o,[l,i]=ke({initialState:{sortDirection:"ascending",sortColumn:void 0},defaultState:r,state:a}),{sortColumn:c,sortDirection:u}=l,d=z(n),h=s.useCallback((f,m)=>{i(w=>{const x={...w,sortColumn:m};return w.sortColumn===m?x.sortDirection=w.sortDirection==="ascending"?"descending":"ascending":x.sortDirection="ascending",d==null||d(f,x),x})},[d,i]),g=(f,m,w)=>{const x={sortColumn:m,sortDirection:w};d==null||d(f,x),i(x)},b=s.useCallback(f=>f.slice().sort((m,w)=>{const x=t.find(C=>C.columnId===c);if(!(x!=null&&x.compare))return 0;const k=u==="ascending"?1:-1;return x.compare(m.item,w.item)*k}),[t,c,u]);return{...e,sort:{sort:b,sortColumn:c,sortDirection:u,setColumnSort:g,toggleColumnSort:h,getSortDirection:f=>c===f?u:void 0}}}const At=(e,o)=>{const t=z(a=>{var r;(r=e.onClick)===null||r===void 0||r.call(e,a),a.stopPropagation()});return{components:{root:"div"},root:_(q("div",{ref:o,...e,onClick:t}),{elementType:"div"})}},Ft=e=>S(e.root,{}),Gt={root:"fui-TableResizeHandle"},Mt=y({root:{qhf8xq:"f1euv43f",j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk",B5kzvoi:"f1yab3r1",a9b677:"fjw5fx7",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"fg06o1j",Bceei9c:"fc3en1c",abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",B3o57yi:"fezquic",Bj3rh1h:"f19g0ac",B3cna0y:"f1tkae59",Brovlpu:"ftqa4ok",B7zu5sd:"f15pjodv",Bs6t6z0:"ftgrb5f",Fdvyjd:"f2df6js",Biobvvw:"fshsryb",Hdbjpj:"f11ef69",jc51t6:["f12lb1dx","f13tbxeo"],u6d25:"fu4ulse",Bj55yzk:"fw2wsqs",Bkbwdz4:"f1swzn7y"}},{d:[".f1euv43f{position:absolute;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".fjw5fx7{width:16px;}",[".fg06o1j{margin:0 -8px;}",{p:-1}],".fc3en1c{cursor:col-resize;}",".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".fezquic{transition-duration:.2s;}",".f19g0ac{z-index:1;}",'.ftgrb5f:after{content:" ";}',".f2df6js:after{display:block;}",".fshsryb:after{width:1px;}",".f11ef69:after{position:absolute;}",".f12lb1dx:after{left:50%;}",".f13tbxeo:after{right:50%;}",".fu4ulse:after{top:0;}",".fw2wsqs:after{bottom:0;}",".f1swzn7y:after{background-color:var(--colorNeutralStroke1);}"],f:[".f1tkae59:focus{opacity:1;}",".ftqa4ok:focus{outline-style:none;}"],h:[".f15pjodv:hover{opacity:1;}"]}),Pt=e=>{const o=Mt();return e.root.className=p(Gt.root,o.root,e.root.className),e},$e=s.forwardRef((e,o)=>{const t=At(e,o);return Pt(t),T("useTableResizeHandleStyles_unstable")(t),Ft(t)});$e.displayName="TableResizeHandle";function Wt(){const[e,o]=s.useState(0),t=s.useRef(void 0),a=s.useRef(null),{targetDocument:r}=F(),n=s.useCallback(()=>{var i;const c=(i=t.current)===null||i===void 0?void 0:i.getBoundingClientRect().width;o(c||0)},[]),l=s.useCallback(i=>{if(r&&(!i&&a.current&&t.current&&a.current.unobserve(t.current),t.current=void 0,i!=null&&i.parentElement)){var c;t.current=i.parentElement,n(),(c=a.current)===null||c===void 0||c.observe(t.current)}},[r,n]);return s.useEffect(()=>{if(a.current=Lt(r,n),!(!t.current||!a.current))return a.current.observe(t.current),()=>{var i;(i=a.current)===null||i===void 0||i.disconnect()}},[n,r]),{width:e,measureElementRef:l}}function Lt(e,o){var t;return!(e==null||(t=e.defaultView)===null||t===void 0)&&t.ResizeObserver?new e.defaultView.ResizeObserver(o):null}function Ot(e){const o=s.useRef(0),t=s.useRef(0),a=s.useRef(void 0),[r,n]=s.useState(!1),{targetDocument:l}=F(),{getColumnWidth:i,setColumnWidth:c}=e,u=s.useCallback(v=>{const{clientX:f}=Ne(v),m=f-o.current;t.current+=m,a.current&&c(v,{columnId:a.current,width:t.current}),o.current=f},[c]),[d]=qo(),h=s.useCallback(v=>{d(()=>u(v))},[d,u]),g=s.useCallback(v=>{he(v)&&(l==null||l.removeEventListener("mouseup",g),l==null||l.removeEventListener("mousemove",h)),ve(v)&&(l==null||l.removeEventListener("touchend",g),l==null||l.removeEventListener("touchmove",h)),n(!1)},[h,l]);return{getOnMouseDown:s.useCallback(v=>f=>{if(t.current=i(v),o.current=Ne(f).clientX,a.current=v,he(f)){if(f.target!==f.currentTarget||f.button!==0)return;l==null||l.addEventListener("mouseup",g),l==null||l.addEventListener("mousemove",h),n(!0)}ve(f)&&(l==null||l.addEventListener("touchend",g),l==null||l.addEventListener("touchmove",h),n(!0))},[i,h,g,l]),dragging:r}}const Vt=150,Kt=100;function we(e,o=[],t={}){let a=!1;const r=new Map(o.map(l=>[l.columnId,l])),n=e.map(l=>{const i=r.get(l.columnId);if(i){var c;const{idealWidth:v=i.idealWidth,minWidth:f=i.minWidth,padding:m=i.padding}=(c=t[l.columnId])!==null&&c!==void 0?c:{};return v!==i.idealWidth||f!==i.minWidth||m!==i.padding?(a=!0,{...i,idealWidth:v,width:v,minWidth:f,padding:m}):i}var u;const{defaultWidth:d,idealWidth:h=Vt,minWidth:g=Kt,padding:b}=(u=t[l.columnId])!==null&&u!==void 0?u:{};return a=!0,{columnId:l.columnId,width:Math.max(d??h,g),minWidth:g,idealWidth:Math.max(d??h,g),padding:b??16}});if(n.length!==o.length||a){const l=n.find(i=>i.width>i.idealWidth);l&&(l.width=l.idealWidth),a=!0}return a?n:o}function V(e,o){return e.find(t=>t.columnId===o)}function de(e,o){return e[o]}function $t(e){return e.reduce((o,t)=>o+t.width+t.padding,0)}function Ut(e,o){const t=V(e,o);var a;return(a=t==null?void 0:t.width)!==null&&a!==void 0?a:0}function O(e,o,t,a){const r=V(e,o);if(!r||(r==null?void 0:r[t])===a)return e;const n={...r,[t]:a};return e.reduce((i,c)=>c.columnId===n.columnId?[...i,n]:[...i,c],[])}function Y(e,o){let t=e;const a=$t(t);if(a0;){const l=de(t,n),i=Math.min(l.idealWidth-l.width,r);if(t=O(t,l.columnId,"width",l.width+i),r-=i,n===t.length-1&&r!==0){const c=de(t,n);t=O(t,c.columnId,"width",c.width+r)}n++}}else if(a>=o){let r=a-o,n=t.length-1;for(;n>=0&&r>0;){const l=de(t,n);if(l.width>l.minWidth){const i=Math.min(l.width-l.minWidth,r);r-=i,t=O(t,l.columnId,"width",l.width-i)}n--}}return t}const Xt=e=>(o,t)=>{switch(t.type){case"CONTAINER_WIDTH_UPDATED":return{...o,containerWidth:t.containerWidth,columnWidthState:e?Y(o.columnWidthState,t.containerWidth):o.columnWidthState};case"COLUMNS_UPDATED":const a=we(t.columns,o.columnWidthState,o.columnSizingOptions);return{...o,columns:t.columns,columnWidthState:e?Y(a,o.containerWidth):a};case"COLUMN_SIZING_OPTIONS_UPDATED":const r=we(o.columns,o.columnWidthState,t.columnSizingOptions);return{...o,columnSizingOptions:t.columnSizingOptions,columnWidthState:e?Y(r,o.containerWidth):r};case"SET_COLUMN_WIDTH":const{columnId:n,width:l}=t,{containerWidth:i}=o,c=V(o.columnWidthState,n);let u=[...o.columnWidthState];return c?(u=O(u,n,"width",l),u=O(u,n,"idealWidth",l),e&&(u=Y(u,i)),{...o,columnWidthState:u}):o}};function Yt(e,o,t={}){const{onColumnResize:a,columnSizingOptions:r,autoFitColumns:n=!0}=t,l=s.useMemo(()=>Xt(n),[n]),[i,c]=s.useReducer(l,{columns:e,containerWidth:0,columnWidthState:we(e,void 0,r),columnSizingOptions:r});ee(()=>{c({type:"CONTAINER_WIDTH_UPDATED",containerWidth:o})},[o]),ee(()=>{c({type:"COLUMNS_UPDATED",columns:e})},[e]),ee(()=>{c({type:"COLUMN_SIZING_OPTIONS_UPDATED",columnSizingOptions:r})},[r]);const u=z((d,h)=>{let{width:g}=h;const{columnId:b}=h,v=V(i.columnWidthState,b);v&&(g=Math.max(v.minWidth||0,g),a&&a(d,{columnId:b,width:g}),c({type:"SET_COLUMN_WIDTH",columnId:b,width:g}))});return{getColumnById:s.useCallback(d=>V(i.columnWidthState,d),[i.columnWidthState]),getColumns:s.useCallback(()=>i.columnWidthState,[i.columnWidthState]),getColumnWidth:s.useCallback(d=>Ut(i.columnWidthState,d),[i.columnWidthState]),setColumnWidth:u}}const Z=20,Zt=xo,qe=1/4;function Jt(e){const[o,t]=s.useState(),a=s.useRef(),{findPrevFocusable:r}=Se(),n=s.useRef(e);s.useEffect(()=>{n.current=e},[e]);const[l]=s.useState(()=>new Map),i=z(b=>{if(!o)return;const v=n.current.getColumnWidth(o),f=b.getModifierState(Zt),m=()=>{b.preventDefault(),b.stopPropagation()};switch(b.key){case po:m(),n.current.setColumnWidth(b.nativeEvent,{columnId:o,width:v-(f?Z*qe:Z)});return;case Ge:m(),n.current.setColumnWidth(b.nativeEvent,{columnId:o,width:v+(f?Z*qe:Z)});return;case Fe:case go:case ho:var w,x;m(),(x=l.get(o))===null||x===void 0||(w=x.current)===null||w===void 0||w.blur();break}}),c=s.useCallback(b=>{var v,f;t(b),(v=a.current)===null||v===void 0||v.call(a,b,!0);const m=(f=l.get(b))===null||f===void 0?void 0:f.current;m&&(m.setAttribute("tabindex","-1"),m.tabIndex=-1,m.focus())},[l]),u=s.useCallback(()=>{var b,v;if(!o)return;(b=a.current)===null||b===void 0||b.call(a,o,!1);const f=(v=l.get(o))===null||v===void 0?void 0:v.current;if(f){var m;(m=r(f))===null||m===void 0||m.focus(),f.removeAttribute("tabindex")}t(void 0)},[o,r,l]),d=(b,v)=>{a.current=v,o?b&&o!==b?(c(b),t(b)):u():c(b)},h=s.useCallback(b=>{const v=l.get(b)||s.createRef();return l.set(b,v),v},[l]),g=He({focusable:{ignoreKeydown:{ArrowLeft:!0,ArrowRight:!0}}});return{toggleInteractiveMode:d,columnId:o,getKeyboardResizingProps:s.useCallback((b,v)=>({onKeyDown:i,onBlur:u,ref:h(b),role:"separator","aria-label":"Resize column","aria-valuetext":`${v} pixels`,"aria-hidden":b!==o,tabIndex:b===o?0:void 0,...g}),[o,u,h,i,g])}}const Ue={getColumnWidths:()=>[],getOnMouseDown:()=>()=>null,setColumnWidth:()=>null,getTableProps:()=>({}),getTableHeaderCellProps:()=>({style:{},columnId:""}),getTableCellProps:()=>({style:{},columnId:""}),enableKeyboardMode:()=>()=>null};function Qt(e){return o=>er(o,{autoFitColumns:!0,...e})}function Ie(e,o){const t=e.width;return{width:t,minWidth:t,maxWidth:t,...o?{pointerEvents:"none"}:{}}}function er(e,o={}){const{columns:t}=e,{width:a,measureElementRef:r}=Wt(),n=Yt(t,a+((o==null?void 0:o.containerWidthOffset)||0),o),l=Ot(n),{toggleInteractiveMode:i,getKeyboardResizingProps:c}=Jt(n),{autoFitColumns:u}=o,d=s.useCallback((m,w)=>x=>{x.preventDefault(),x.nativeEvent.stopPropagation(),i(m,w)},[i]),{getColumnById:h,setColumnWidth:g,getColumns:b}=n,{getOnMouseDown:v,dragging:f}=l;return{...e,tableRef:r,columnSizing_unstable:{getOnMouseDown:v,setColumnWidth:(m,w)=>g(void 0,{columnId:m,width:w}),getColumnWidths:b,getTableProps:(m={})=>({...m,style:{minWidth:"fit-content",...m.style||{}}}),getTableHeaderCellProps:s.useCallback(m=>{var w;const x=h(m),C=((w=t[t.length-1])===null||w===void 0?void 0:w.columnId)===m&&u?null:s.createElement($e,{onMouseDown:v(m),onTouchStart:v(m),...c(m,(x==null?void 0:x.width)||0)});return x?{style:Ie(x,f),aside:C}:{}},[h,t,f,c,v,u]),getTableCellProps:s.useCallback(m=>{const w=h(m);return w?{style:Ie(w)}:{}},[h]),enableKeyboardMode:d}}}const or=e=>e,tr={selection:Ve,sort:Ke,getRows:()=>[],getRowId:()=>"",items:[],columns:[],columnSizing_unstable:Ue,tableRef:s.createRef()};function rr(e,o=[]){const{items:t,getRowId:a,columns:r}=e,n=s.useCallback((i=or)=>t.map((c,u)=>{var d;return i({item:c,rowId:(d=a==null?void 0:a(c))!==null&&d!==void 0?d:u})}),[t,a]),l={getRowId:a,items:t,columns:r,getRows:n,selection:Ve,sort:Ke,columnSizing_unstable:Ue,tableRef:s.createRef()};return o.reduce((i,c)=>c(i),l)}const nr=()=>0,ar=()=>null,lr=()=>null;function sa(e){const{columnId:o,renderCell:t=ar,renderHeaderCell:a=lr,compare:r=nr}=e;return{columnId:o,renderCell:t,renderHeaderCell:a,compare:r}}function ir(){const e=me({axis:"horizontal"}),o=me({axis:"grid"}),t=Pe({tabBehavior:"limited-trap-focus"}),{findFirstFocusable:a}=Se(),{targetDocument:r}=F(),n=Mo(e,t);return{onTableKeyDown:s.useCallback(i=>{if(!r)return;let c=r.activeElement;if(!c||!i.currentTarget.contains(c))return;const u=c.getAttribute("role");if(i.key===Ge&&u==="row"&&be(c)){var d;(d=a(c))===null||d===void 0||d.focus()}if(u==="row")return;const h=(()=>{let g=be(c)?c:null;for(;g;){const b=g.getAttribute("role");if(b==="cell"||b==="gridcell")return!0;g=g.parentElement}return!1})();(i.key===wo||i.key===yo)&&h&&(c.dispatchEvent(new Oo({action:Vo.Escape})),c=r.activeElement,c&&c.dispatchEvent(new Wo({key:Lo[i.key]})))},[r,a]),tableTabsterAttribute:o,tableRowTabsterAttribute:n}}const Xe=s.createContext(void 0),cr={size:"medium",noNativeElements:!1,sortable:!1},sr=Xe.Provider,I=()=>{var e;return(e=s.useContext(Xe))!==null&&e!==void 0?e:cr},Ye=(e,o)=>{const{noNativeElements:t,size:a}=I();var r;const n=((r=e.as)!==null&&r!==void 0?r:t)?"div":"td";return{components:{root:n},root:_(q(n,{ref:o,role:n==="div"?"cell":void 0,...e}),{elementType:n}),noNativeElements:t,size:a}},dr=e=>S(e.root,{}),ur="fui-TableCell",fr={root:ur},br=y({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"},medium:{Bqenvij:"f1ft4266"},small:{Bqenvij:"fbsu25e"},"extra-small":{Bqenvij:"frvgh55"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}",".f1ft4266{height:44px;}",".fbsu25e{height:34px;}",".frvgh55{height:24px;}"]}),mr=y({root:{mc9l5x:"f22iagw",Bf4jedk:"f10tiqix",Bt984gj:"f122n59",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr"},medium:{sshi5w:"f5pgtk9"},small:{sshi5w:"fcep9tg"},"extra-small":{sshi5w:"f1pha7fy"}},{d:[".f22iagw{display:flex;}",".f10tiqix{min-width:0px;}",".f122n59{align-items:center;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f5pgtk9{min-height:44px;}",".fcep9tg{min-height:34px;}",".f1pha7fy{min-height:24px;}"]}),vr=y({root:{qhf8xq:"f10pi13n",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f3gpkru",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"}},{d:[".f10pi13n{position:relative;}",[".f3gpkru{padding:0px var(--spacingHorizontalS);}",{p:-1}],[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}]]}),hr=e=>{const o=vr(),t={table:br(),flex:mr()};return e.root.className=p(fr.root,o.root,e.noNativeElements?t.flex.root:t.table.root,e.noNativeElements?t.flex[e.size]:t.table[e.size],e.root.className),e},Ze=s.createContext(void 0),gr="",pr=Ze.Provider,Be=()=>s.useContext(Ze)===gr,xr=(e,o)=>{const{noNativeElements:t,size:a}=I();var r;const n=((r=e.as)!==null&&r!==void 0?r:t)?"div":"tr",l=ko(),i=ne(),c=Be();var u;return{components:{root:n},root:_(q(n,{ref:re(o,l,i),role:n==="div"?"row":void 0,...e}),{elementType:n}),size:a,noNativeElements:t,appearance:(u=e.appearance)!==null&&u!==void 0?u:"none",isHeaderRow:c}},wr=44,ue={root:"fui-TableSelectionCell",checkboxIndicator:"fui-TableSelectionCell__checkboxIndicator",radioIndicator:"fui-TableSelectionCell__radioIndicator"},yr=y({root:{mc9l5x:"f15pt5es",a9b677:"fksc0bp"}},{d:[".f15pt5es{display:table-cell;}",".fksc0bp{width:44px;}"]}),kr=y({root:{mc9l5x:"f22iagw",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr",Bf4jedk:"fvrlu0f",B2u0y6b:"f1c71y05",Brf1p80:"f4d9j23"}},{d:[".f22iagw{display:flex;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".fvrlu0f{min-width:44px;}",".f1c71y05{max-width:44px;}",".f4d9j23{justify-content:center;}"]}),Cr=y({root:{fsow6f:"f17mccla",Huce71:"fz5stix",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"},radioIndicator:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bt984gj:"f122n59",Brf1p80:"f4d9j23"},subtle:{abs64n:"fk73vx1",B8a84jv:"f1y7ij6c"},hidden:{abs64n:"fk73vx1"}},{d:[".f17mccla{text-align:center;}",".fz5stix{white-space:nowrap;}",[".f1mk8lai{padding:0;}",{p:-1}],[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fk73vx1{opacity:0;}",".f1y7ij6c[data-fui-focus-within]:focus-within{opacity:1;}"]}),Sr=e=>{const o=Cr(),t={table:yr(),flex:kr()};return e.root.className=p(ue.root,o.root,e.noNativeElements?t.flex.root:t.table.root,e.subtle&&e.checked===!1&&o.subtle,e.hidden&&o.hidden,e.root.className),e.checkboxIndicator&&(e.checkboxIndicator.className=p(ue.checkboxIndicator,e.checkboxIndicator.className)),e.radioIndicator&&(e.radioIndicator.className=p(ue.radioIndicator,o.radioIndicator,e.radioIndicator.className)),e},Br="fui-TableRow",zr={root:Br},_r=y({root:{mc9l5x:"f1u0rzck"}},{d:[".f1u0rzck{display:table-row;}"]}),Nr=y({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),Rr=y({root:{sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bconypa:"f1jazu75",B6guboy:"f1xeqee6",Bfpq7zp:0,g9k6zt:0,Bn4voq9:0,giviqs:"f1dxfoyt",Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f2krc9w"},rootInteractive:{ecr2s2:"f1wfn5kd",lj723h:"f1g4hkjv",B43xm9u:"f15ngxrw",i921ia:"fjbbrdp",Jwef8y:"f1t94bn6",Bi91k9c:"feu1g3u",Bpt6rm4:"f1uorfem",ff6mpl:"fw60kww",ze5xyy:"f4xjyn1",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"]},medium:{B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f1facbz3"},small:{B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f1facbz3"},"extra-small":{Be2twd7:"fy9rknc"},brand:{De3pzq:"f16xkysk",g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],ecr2s2:"f7tkmfy",lj723h:"f1r2dosr",uu68id:0,Bxeuatn:0,felo30:0,Bc736ss:0,Bhz882k:0,n51gp8:0,Eshu5l:0,Bk6ri7n:0,v49c4f:0,Bn1d65q:0,c4eypz:0,v3aym:0,hft9gk:0,Bjwas2f:0,Bk5ld8o:0,gwxt9v:0,B6k8go:"f95l9gw",h6lo6r:0,Beo2b4z:0,w1pwid:0,Btyw6ap:0,Hkxhyr:"fw8kmcu",Brwvgy3:"fd94n53",yadkgm:"f1e0wld5"},neutral:{uu68id:0,Bxeuatn:0,felo30:0,Bc736ss:0,Bhz882k:0,n51gp8:0,Eshu5l:0,Bk6ri7n:0,v49c4f:0,Bn1d65q:0,c4eypz:0,v3aym:0,hft9gk:0,Bjwas2f:0,Bk5ld8o:0,gwxt9v:0,B6k8go:"f95l9gw",h6lo6r:0,Beo2b4z:0,w1pwid:0,Btyw6ap:0,Hkxhyr:"fw8kmcu",Brwvgy3:"fd94n53",yadkgm:"f1e0wld5",De3pzq:"fq5gl1p",sj55zd:"f1cgsbmv",Jwef8y:"f1uqaxdt",ecr2s2:"fa9o754",g2u3we:"frmsihh",h3c5rm:["frttxa5","f11o2r7f"],B9xav0g:"fem5et0",zhjwy3:["f11o2r7f","frttxa5"]},none:{}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}",".f1xeqee6[data-fui-focus-within]:focus-within .fui-TableCellActions{opacity:1;}",[".f1dxfoyt[data-fui-focus-visible]{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f2krc9w[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}],[".f1facbz3{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1cgsbmv{color:var(--colorNeutralForeground1Hover);}",".frmsihh{border-top-color:var(--colorNeutralStrokeOnBrand);}",".frttxa5{border-right-color:var(--colorNeutralStrokeOnBrand);}",".f11o2r7f{border-left-color:var(--colorNeutralStrokeOnBrand);}",".fem5et0{border-bottom-color:var(--colorNeutralStrokeOnBrand);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f15ngxrw:active .fui-TableCellActions{opacity:1;}",".fjbbrdp:active .fui-TableSelectionCell{opacity:1;}",".f7tkmfy:active{background-color:var(--colorBrandBackground2);}",".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".fa9o754:active{background-color:var(--colorSubtleBackgroundSelected);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1uorfem:hover .fui-TableCellActions{opacity:1;}",".fw60kww:hover .fui-TableSelectionCell{opacity:1;}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f95l9gw{border:2px solid transparent;}}",{p:-2,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fw8kmcu{border-radius:var(--borderRadiusMedium);}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd94n53{box-sizing:border-box;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e0wld5:focus-visible{outline-offset:-4px;}}",{m:"(forced-colors: active)"}]]}),Tr=e=>{const o=Rr(),t={table:_r(),flex:Nr()};return e.root.className=p(zr.root,o.root,!e.isHeaderRow&&o.rootInteractive,o[e.size],e.noNativeElements?t.flex.root:t.table.root,o[e.appearance],e.root.className),e},jr=(e,o)=>{const{noNativeElements:t}=I();var a;const r=((a=e.as)!==null&&a!==void 0?a:t)?"div":"tbody";return{components:{root:r},root:_(q(r,{ref:o,role:r==="div"?"rowgroup":void 0,...e}),{elementType:r}),noNativeElements:t}},qr=y({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),Ir=y({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),Dr="fui-TableBody",Hr=e=>{const o={table:qr(),flex:Ir()};return e.root.className=p(Dr,e.noNativeElements?o.flex.root:o.table.root,e.root.className),e},Er=(e,o)=>{var t;const a=((t=e.as)!==null&&t!==void 0?t:e.noNativeElements)?"div":"table";var r,n,l;return{components:{root:a},root:_(q(a,{ref:o,role:a==="div"?"table":void 0,...e}),{elementType:a}),size:(r=e.size)!==null&&r!==void 0?r:"medium",noNativeElements:(n=e.noNativeElements)!==null&&n!==void 0?n:!1,sortable:(l=e.sortable)!==null&&l!==void 0?l:!1}},Ar=(e,o)=>S(sr,{value:o.table,children:S(e.root,{})}),Fr="fui-Table",Gr=y({root:{mc9l5x:"f1w4nmp0",ha4doy:"fmrv4ls",a9b677:"fly5x3f",B73mfa3:"f14m3nip"}},{d:[".f1w4nmp0{display:table;}",".fmrv4ls{vertical-align:middle;}",".fly5x3f{width:100%;}",".f14m3nip{table-layout:fixed;}"]}),Mr=y({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),Pr=y({root:{po53p8:"fgkb47j",De3pzq:"fhovq9v"}},{d:[".fgkb47j{border-collapse:collapse;}",".fhovq9v{background-color:var(--colorSubtleBackground);}"]}),Wr=e=>{const o=Pr(),t={table:Gr(),flex:Mr()};return e.root.className=p(Fr,o.root,e.noNativeElements?t.flex.root:t.table.root,e.root.className),e};function Lr(e){const{size:o,noNativeElements:t,sortable:a}=e;return{table:s.useMemo(()=>({noNativeElements:t,size:o,sortable:a}),[t,o,a])}}const Or=(e,o)=>{const{noNativeElements:t}=I();var a;const r=((a=e.as)!==null&&a!==void 0?a:t)?"div":"thead";return{components:{root:r},root:_(q(r,{ref:o,role:r==="div"?"rowgroup":void 0,...e}),{elementType:r}),noNativeElements:t}},Vr=e=>S(pr,{value:"",children:S(e.root,{})}),Kr="fui-TableHeader",$r=y({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),Ur=y({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),Xr=e=>{const o={table:Ur(),flex:$r()};return e.root.className=p(Kr,e.noNativeElements?o.flex.root:o.table.root,e.root.className),e},Yr={ascending:s.createElement(So,{fontSize:12}),descending:s.createElement(Bo,{fontSize:12})},Zr=(e,o)=>{const{noNativeElements:t,sortable:a}=I(),{sortable:r=a}=e;var n;const l=((n=e.as)!==null&&n!==void 0?n:t)?"div":"th",i=_(e.button,{elementType:"div",defaultProps:{as:"div",...!r&&{role:"presentation",tabIndex:void 0}}});var c;return{components:{root:l,button:"div",sortIcon:"span",aside:"span"},root:_(q(l,{ref:re(o,ne()),role:l==="div"?"columnheader":void 0,"aria-sort":r?(c=e.sortDirection)!==null&&c!==void 0?c:"none":void 0,...e}),{elementType:l}),aside:N(e.aside,{elementType:"span"}),sortIcon:N(e.sortIcon,{renderByDefault:!!e.sortDirection,defaultProps:{children:e.sortDirection?Yr[e.sortDirection]:void 0},elementType:"span"}),button:Co(i.as,i),sortable:r,noNativeElements:t}},Jr=e=>D(e.root,{children:[D(e.button,{children:[e.root.children,e.sortIcon&&S(e.sortIcon,{})]}),e.aside&&S(e.aside,{})]}),J={root:"fui-TableHeaderCell",button:"fui-TableHeaderCell__button",sortIcon:"fui-TableHeaderCell__sortIcon",aside:"fui-TableHeaderCell__aside"},Qr=y({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}"]}),en=y({root:{mc9l5x:"f22iagw",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr",Bf4jedk:"f10tiqix"}},{d:[".f22iagw{display:flex;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f10tiqix{min-width:0px;}"]}),on=y({root:{Bhrd7zp:"figsok6",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f3gpkru",robkg1:0,Bmvh20x:0,B3nxjsc:0,Bmkhcsx:"f14ym4q2",B8osjzx:0,pehzd3:0,Blsv9te:0,u7xebq:0,Bsvwmf7:"f1euou18",qhf8xq:"f10pi13n"},rootInteractive:{Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},resetButton:{B3rzk8w:"fq6nmtn",B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",fsow6f:"fgusgyc"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",mc9l5x:"f22iagw",Bh6795r:0,Bqenvij:"f1l02sjl",Bt984gj:"f122n59",i8kkvl:0,Belr9w4:0,rmohyg:"fkln5zr",sshi5w:"f1nxs5xn",xawz:0,Bnnss6s:0,fkmc3a:"f1izfyrr",oeaueh:"f1s6fcnf"},sortable:{Bceei9c:"f1k6fduh"},sortIcon:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"fclwglc"},resizeHandle:{}},{d:[".figsok6{font-weight:var(--fontWeightRegular);}",[".f3gpkru{padding:0px var(--spacingHorizontalS);}",{p:-1}],[".f14ym4q2[data-fui-focus-within]:focus-within{outline:2px solid var(--colorStrokeFocus2);}",{p:-1}],[".f1euou18[data-fui-focus-within]:focus-within{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f10pi13n{position:relative;}",".fq6nmtn{resize:horizontal;}",".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],[".f3bhgqh{border:none;}",{p:-2}],".fgusgyc{text-align:unset;}",".fly5x3f{width:100%;}",".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1l02sjl{height:100%;}",".f122n59{align-items:center;}",[".fkln5zr{gap:var(--spacingHorizontalXS);}",{p:-1}],".f1nxs5xn{min-height:32px;}",[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f1s6fcnf{outline-style:none;}",".f1k6fduh{cursor:pointer;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),tn=e=>{const o=on(),t={table:Qr(),flex:en()};return e.root.className=p(J.root,o.root,e.sortable&&o.rootInteractive,e.noNativeElements?t.flex.root:t.table.root,e.root.className),e.button.className=p(J.button,o.resetButton,o.button,e.sortable&&o.sortable,e.button.className),e.sortIcon&&(e.sortIcon.className=p(J.sortIcon,o.sortIcon,e.sortIcon.className)),e.aside&&(e.aside.className=p(J.aside,o.resizeHandle,e.aside.className)),e},Je=s.createContext(void 0),rn="",Qe=()=>{var e;return(e=s.useContext(Je))!==null&&e!==void 0?e:rn},nn=Je.Provider,eo=s.createContext(void 0),an="",oo=()=>{var e;return(e=s.useContext(eo))!==null&&e!==void 0?e:an},ln=eo.Provider,cn=(e,o)=>{const t=Ye(e,o),{noNativeElements:a}=I(),{type:r="checkbox",checked:n=!1,subtle:l=!1,hidden:i=!1,invisible:c=!1}=e;return{...t,components:{...t.components,checkboxIndicator:ge,radioIndicator:pe},checkboxIndicator:N(e.checkboxIndicator,{renderByDefault:r==="checkbox"&&!c,defaultProps:{checked:e.checked},elementType:ge}),radioIndicator:N(e.radioIndicator,{renderByDefault:r==="radio"&&!c,defaultProps:{checked:!!n,input:{name:Ce("table-selection-radio")}},elementType:pe}),type:r,checked:n,noNativeElements:a,subtle:l,hidden:c||i}},sn=e=>D(e.root,{children:[e.type==="checkbox"&&e.checkboxIndicator&&S(e.checkboxIndicator,{}),e.type==="radio"&&e.radioIndicator&&S(e.radioIndicator,{})]}),dn={medium:32,small:24,"extra-small":20},un=(e,o)=>{const{size:t}=I();return{components:{root:"div",main:"span",description:"span",content:"div",media:"span"},root:_(q("div",{ref:o,...e}),{elementType:"div"}),appearance:e.appearance,truncate:e.truncate,main:N(e.main,{renderByDefault:!0,elementType:"span"}),media:N(e.media,{elementType:"span"}),description:N(e.description,{elementType:"span"}),content:N(e.content,{renderByDefault:!!e.description||!!e.children,elementType:"div"}),avatarSize:dn[t],size:t}},fn=(e,o)=>D(e.root,{children:[e.media&&S(Zo,{value:o.avatar,children:S(e.media,{})}),e.content&&D(e.content,{children:[e.main&&S(e.main,{children:e.root.children}),e.description&&S(e.description,{})]})]}),L={root:"fui-TableCellLayout",media:"fui-TableCellLayout__media",main:"fui-TableCellLayout__main",description:"fui-TableCellLayout__description",content:"fui-TableCellLayout__content"},bn=y({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",i8kkvl:0,Belr9w4:0,rmohyg:"faqewft",xawz:0,Bh6795r:0,Bnnss6s:0,fkmc3a:"f1izfyrr"},rootTruncate:{B68tc82:"f1p9o1ba"},content:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"},contentTruncate:{B68tc82:"f1p9o1ba"},media:{mc9l5x:"f22iagw",Bt984gj:"f122n59"},mediaExtraSmall:{Be2twd7:"f4ybsrx"},mediaSmallAndMedium:{Be2twd7:"fe5j1ua"},mediaPrimary:{Be2twd7:"f1rt2boy"},mainPrimary:{Bhrd7zp:"fl43uef"},mainTruncate:{B68tc82:"f1p9o1ba",Huce71:"fz5stix",ygn44y:"f1cmbuwj"},description:{sj55zd:"fkfq4zb",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",[".faqewft{gap:var(--spacingHorizontalS);}",{p:-1}],[".f1izfyrr{flex:1 1 0px;}",{p:-1}],".f1p9o1ba{overflow-x:hidden;}",".f1vx9l62{flex-direction:column;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fz5stix{white-space:nowrap;}",".f1cmbuwj{text-overflow:ellipsis;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),mn=e=>{const o=bn(),{truncate:t}=e;e.root.className=p(L.root,o.root,t&&o.rootTruncate,e.root.className);const a=e.appearance==="primary";if(e.media){const r={small:o.mediaSmallAndMedium,medium:o.mediaSmallAndMedium,"extra-small":o.mediaExtraSmall};e.media.className=p(L.media,o.media,r[e.size],a&&o.mediaPrimary,e.media.className)}return e.main&&(e.main.className=p(L.main,t&&o.mainTruncate,a&&o.mainPrimary,e.main.className)),e.description&&(e.description.className=p(L.description,o.description,e.description.className)),e.content&&(e.content.className=p(L.content,o.content,t&&o.contentTruncate,e.content.className)),e};function vn(e){const{avatarSize:o}=e;return{avatar:s.useMemo(()=>({size:o}),[o])}}const hn=s.forwardRef((e,o)=>{const t=un(e,o);return mn(t),T("useTableCellLayoutStyles_unstable")(t),fn(t,vn(t))});hn.displayName="TableCellLayout";const to=zo(void 0),ro={...tr,subtleSelection:!1,selectableRows:!1,selectionAppearance:"brand",focusMode:"none",compositeRowTabsterAttribute:{}},gn=to.Provider,B=e=>_o(to,(o=ro)=>e(o)),pn=(e,o)=>{const{focusMode:t="cell"}=e,a=Qe(),r=B(c=>(c.focusMode==="cell"||c.focusMode==="composite")&&t!=="none"),n=B(c=>c.resizableColumns),l=B(c=>c.columnSizing_unstable.getTableCellProps),i=Pe({tabBehavior:"limited-trap-focus"});return Ye({as:"div",role:"gridcell",...t==="group"&&i,tabIndex:r?0:void 0,...n?l(a):{},...e},o)},xn=e=>dr(e),wn={root:"fui-DataGridCell"},yn=e=>(hr(e),e.root.className=p(wn.root,e.root.className),e),kn=s.forwardRef((e,o)=>{const t=pn(e,o);return yn(t),T("useDataGridCellStyles_unstable")(t),xn(t)});kn.displayName="DataGridCell";const Cn=(e,o)=>{const t=Be(),a=oo(),r=B(u=>u.subtleSelection),n=B(u=>t&&u.selection.selectionMode==="multiselect"?u.selection.allRowsSelected?!0:u.selection.someRowsSelected?"mixed":!1:u.selection.isRowSelected(a)),l=B(u=>u.selection.toggleAllRows),i=B(u=>u.selection.selectionMode==="multiselect"?"checkbox":"radio"),c=z(u=>{var d;t&&l(u),(d=e.onClick)===null||d===void 0||d.call(e,u)});return cn({as:"div",role:"gridcell",checked:n,type:i,invisible:t&&i==="radio","aria-checked":t&&i!=="radio"?n:void 0,"aria-selected":t||n==="mixed"?void 0:n,subtle:r,...e,onClick:c},o)},Sn=e=>sn(e),fe={root:"fui-DataGridSelectionCell",checkboxIndicator:"fui-DataGridSelectionCell__checkboxIndicator",radioIndicator:"fui-DataGridSelectionCell__radioIndicator"},Bn=e=>(Sr(e),e.root.className=p(fe.root,e.root.className),e.checkboxIndicator&&(e.checkboxIndicator.className=p(fe.checkboxIndicator,e.checkboxIndicator.className)),e.radioIndicator&&(e.radioIndicator.className=p(fe.radioIndicator,e.radioIndicator.className)),e),ye=s.forwardRef((e,o)=>{const t=Cn(e,o);return Bn(t),T("useDataGridSelectionCellStyles_unstable")(t),Sn(t)});ye.displayName="DataGridSelectionCell";const zn=(e,o)=>{const t=oo(),a=Be(),r=B(f=>f.columns),n=B(f=>f.selectableRows),l=B(f=>f.selection.isRowSelected(t)),i=B(f=>f.focusMode),c=B(f=>f.compositeRowTabsterAttribute),u=i==="row_unstable"||i==="composite",d=B(f=>!a&&n&&f.selection.isRowSelected(t)?f.selectionAppearance:"none"),h=B(f=>f.selection.toggleRow),g=z(f=>{var m;n&&!a&&h(f,t),(m=e.onClick)===null||m===void 0||m.call(e,f)}),b=z(f=>{var m;n&&!a&&f.key===Fe&&!Io(f.target)&&(f.preventDefault(),h(f,t)),(m=e.onKeyDown)===null||m===void 0||m.call(e,f)}),v=xr({appearance:d,"aria-selected":n?l:void 0,tabIndex:u&&!a?0:void 0,...i==="composite"&&!a&&c,...e,onClick:g,onKeyDown:b,children:null,as:"div"},o);return{...v,components:{...v.components,selectionCell:ye},selectionCell:N(e.selectionCell,{renderByDefault:n,elementType:ye}),renderCell:e.children,columnDefs:r,dataGridContextValue:_n()}};function _n(){const e=s.useRef(ro);return B(o=>(e.current=o,null)),e.current}const Nn=e=>D(e.root,{children:[e.selectionCell&&S(e.selectionCell,{}),e.columnDefs.map(o=>S(nn,{value:o.columnId,children:e.renderCell(o,e.dataGridContextValue)},o.columnId))]}),De={root:"fui-DataGridRow",selectionCell:"fui-DataGridRow__selectionCell"},Rn=e=>(Tr(e),e.root.className=p(De.root,e.root.className),e.selectionCell&&(e.selectionCell.className=p(De.selectionCell,e.selectionCell.className)),e),Tn=s.forwardRef((e,o)=>{const t=zn(e,o);return Rn(t),T("useDataGridRowStyles_unstable")(t),Nn(t)});Tn.displayName="DataGridRow";const jn=(e,o)=>{const{sortable:t}=I(),a=B(i=>i.getRows),r=B(i=>i.sort.sort),n=t?r(a()):a();return{...jr({...e,children:null,as:"div"},o),rows:n,renderRow:e.children}},qn=e=>S(e.root,{children:e.rows.map(o=>S(ln,{value:o.rowId,children:e.renderRow(o)},o.rowId))}),In={root:"fui-DataGridBody"},Dn=e=>(Hr(e),e.root.className=p(In.root,e.root.className),e),Hn=s.forwardRef((e,o)=>{const t=jn(e,o);return Dn(t),T("useDataGridBodyStyles_unstable")(t),qn(t)});Hn.displayName="DataGridBody";const En=(e,o)=>{const{items:t,columns:a,focusMode:r="cell",selectionMode:n,onSortChange:l,onSelectionChange:i,defaultSortState:c,sortState:u,selectedItems:d,defaultSelectedItems:h,subtleSelection:g=!1,selectionAppearance:b="brand",getRowId:v,resizableColumns:f,columnSizingOptions:m,onColumnResize:w,containerWidthOffset:x,resizableColumnsOptions:k={}}=e,C=x??(n?-wr:0),R=me({axis:"grid"}),{onTableKeyDown:j,tableTabsterAttribute:K,tableRowTabsterAttribute:P}=ir();var ae;const le=rr({items:t,columns:a,getRowId:v},[Ht({defaultSortState:c,sortState:u,onSortChange:l}),It({defaultSelectedItems:h,selectedItems:d,onSelectionChange:i,selectionMode:n??"multiselect"}),Qt({onColumnResize:w,columnSizingOptions:m,containerWidthOffset:C,autoFitColumns:(ae=k.autoFitColumns)!==null&&ae!==void 0?ae:!0})]),$=s.useRef(null),{findFirstFocusable:no,findLastFocusable:ao}=Se(),lo=z(E=>{var ie;if((ie=e.onKeyDown)===null||ie===void 0||ie.call(e,E),r==="composite"&&j(E),!(!$.current||!E.ctrlKey||E.defaultPrevented)){if(E.key===No){const A=$.current.querySelector('[role="row"]');if(A){var ce;(ce=no(A))===null||ce===void 0||ce.focus()}}if(E.key===Ro){const A=$.current.querySelectorAll('[role="row"]');if(A.length){var se;const io=A.item(A.length-1);(se=ao(io))===null||se===void 0||se.focus()}}}});return{...Er({role:"grid",as:"div",noNativeElements:!0,...r==="cell"&&R,...r==="composite"&&K,...e,onKeyDown:lo,...f?le.columnSizing_unstable.getTableProps(e):{}},re(o,le.tableRef,$)),focusMode:r,tableState:le,selectableRows:!!n,subtleSelection:g,selectionAppearance:b,resizableColumns:f,compositeRowTabsterAttribute:P}},An=(e,o)=>s.createElement(gn,{value:o.dataGrid},Ar(e,o)),Fn={root:"fui-DataGrid"},Gn=e=>(Wr(e),e.root.className=p(Fn.root,e.root.className),e);function Mn(e){const o=Lr(e),{tableState:t,focusMode:a,selectableRows:r,subtleSelection:n,selectionAppearance:l,resizableColumns:i,compositeRowTabsterAttribute:c}=e;return{...o,dataGrid:{...t,focusMode:a,selectableRows:r,subtleSelection:n,selectionAppearance:l,resizableColumns:i,compositeRowTabsterAttribute:c}}}const Pn=s.forwardRef((e,o)=>{const t=En(e,o);return Gn(t),T("useDataGridStyles_unstable")(t),An(t,Mn(t))});Pn.displayName="DataGrid";const Wn=(e,o)=>Or({...e,as:"div"},o),Ln=e=>Vr(e),On={root:"fui-DataGridHeader"},Vn=e=>(Xr(e),e.root.className=p(On.root,e.root.className),e),Kn=s.forwardRef((e,o)=>{const t=Wn(e,o);return Vn(t),T("useDataGridHeaderStyles_unstable")(t),Ln(t)});Kn.displayName="DataGridHeader";function $n(e){return e.compare.length>0}const Un=(e,o)=>{const t=Qe(),{sortable:a}=I(),r=B(d=>d.sort.toggleColumnSort),n=B(d=>{const h=!!d.columns.find(g=>g.columnId===t&&$n(g));return a?h:!1}),l=B(d=>n?d.sort.getSortDirection(t):void 0),i=B(d=>d.resizableColumns),c=B(d=>d.columnSizing_unstable.getTableHeaderCellProps),u=z(d=>{var h;n&&r(d,t),(h=e.onClick)===null||h===void 0||h.call(e,d)});return Zr({sortable:n,sortDirection:l,as:"div",tabIndex:n?void 0:0,...i?c(t):{},...e,onClick:u},o)},Xn=e=>Jr(e),Q={root:"fui-DataGridHeaderCell",button:"fui-DataGridHeaderCell__button",sortIcon:"fui-DataGridHeaderCell__sortIcon",aside:"fui-DataGridHeaderCell__aside"},Yn=e=>(tn(e),e.root.className=p(Q.root,e.root.className),e.button&&(e.button.className=p(Q.button,e.button.className)),e.sortIcon&&(e.sortIcon.className=p(Q.sortIcon,e.sortIcon.className)),e.aside&&(e.aside.className=p(Q.aside,e.aside.className)),e),Zn=s.forwardRef((e,o)=>{const t=Un(e,o);return Yn(t),T("useDataGridHeaderCellStyles_unstable")(t),Xn(t)});Zn.displayName="DataGridHeaderCell";export{Pn as D,oa as O,qt as S,hn as T,aa as a,ta as b,ra as c,Kn as d,na as e,Tn as f,ca as g,Zn as h,Hn as i,kn as j,sa as k,la as l,ia as m}; diff --git a/next/sample/pr/3325/assets/FilesPage-TXxll6sC.js b/next/sample/pr/3325/assets/FilesPage-TXxll6sC.js new file mode 100644 index 0000000000..11feafe461 --- /dev/null +++ b/next/sample/pr/3325/assets/FilesPage-TXxll6sC.js @@ -0,0 +1,552 @@ +import{p as fe,b as P,a as Z,r as S,j as d}from"./index-hkJM60Tb.js";import{P as me}from"./PageHeader-BLfiQIXJ.js";import{bx as ge,by as ve,m as b,aF as z,bz as H,u as A,bA as j,_ as a,b as g,o as x,bB as B,bC as be,bD as q,F as V,r as I,v as ie,bE as se,k as xe,l as ye,j as we,f as $e,g as ke,c as Ce,d as Se,D as Ie,bF as _e,y as k,z as N,G as K,I as M,bG as y,K as T,bH as Fe,bI as Te,bJ as L,bK as Le,Q as re,R as h,bL as ae,bM as Ee,B as Ae,E as w,C as Be,bN as le,bO as de,bP as Ve,bQ as Ne,bR as Re,J as De,bS as Pe,bT as Me,bU as ze,bV as He,bW as je,bX as qe,M as Ke,X as Ue,bY as X,aK as We,aL as J,bZ as Ge,b_ as Oe,a0 as Ze,a3 as Xe,Z as Je,$ as f,a6 as Qe,a8 as Ye,b$ as et,c0 as Q,a4 as Y,a5 as ee,a2 as ce,au as tt,w as U,an as W,aq as ot,ar as nt,as as F}from"./App-c9ixsJC9.js";import{c as te}from"./repeat-BYNG0dST.js";import{r as it}from"./mgt-spinner-DCTBtyM4.js";import{D as st}from"./index-DlteEK7B.js";import{f as rt}from"./index-D1MpQKKC.js";import{r as at}from"./mgt-file-list-BTjQjdgt.js";import{r as lt}from"./mgt-picker-DJC_Ceuz.js";import"./mgt-file-Dpu464qL.js";import"./mgt-get-nlun5DqF.js";class dt extends ve{constructor(t,e){super(t,e),this.observer=null,e.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function ct(n){return typeof n=="string"&&(n={property:n}),new ge("fast-children",dt,n)}const ht=(n,t)=>b` + + ${H(n,t)} + + + + ${j(n,t)} + +`;let v=class extends V{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{var e;(e=this.control)===null||e===void 0||e.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}};a([g],v.prototype,"download",void 0);a([g],v.prototype,"href",void 0);a([g],v.prototype,"hreflang",void 0);a([g],v.prototype,"ping",void 0);a([g],v.prototype,"referrerpolicy",void 0);a([g],v.prototype,"rel",void 0);a([g],v.prototype,"target",void 0);a([g],v.prototype,"type",void 0);a([x],v.prototype,"defaultSlottedContent",void 0);class R{}a([g({attribute:"aria-expanded"})],R.prototype,"ariaExpanded",void 0);B(R,be);B(v,q,R);const ut=(n,t)=>b` +
+ ${I(e=>e.href&&e.href.length>0,b` + ${ht(n,t)} + `)} + ${I(e=>!e.href,b` + ${H(n,t)} + + ${j(n,t)} + `)} + ${I(e=>e.separator,b` + + `)} +
+`;class _ extends v{constructor(){super(...arguments),this.separator=!0}}a([x],_.prototype,"separator",void 0);B(_,q,R);const pt=(n,t)=>b` + +`;class he extends V{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(this.slottedBreadcrumbItems===void 0||this.slottedBreadcrumbItems.length===0)return;const t=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach(e=>{const o=e===t;this.setItemSeparator(e,o),this.setAriaCurrent(e,o)})}}setItemSeparator(t,e){t instanceof _&&(t.separator=!e)}findChildWithHref(t){var e,o;return t.childElementCount>0?t.querySelector("a[href]"):!((e=t.shadowRoot)===null||e===void 0)&&e.childElementCount?(o=t.shadowRoot)===null||o===void 0?void 0:o.querySelector("a[href]"):null}setAriaCurrent(t,e){const o=this.findChildWithHref(t);o===null&&t.hasAttribute("href")&&t instanceof _?e?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current"):o!==null&&(e?o.setAttribute("aria-current","page"):o.removeAttribute("aria-current"))}}a([x],he.prototype,"slottedBreadcrumbItems",void 0);const ft=(n,t)=>b` + +`;function $(n){return se(n)&&n.getAttribute("role")==="treeitem"}class c extends V{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>$(this.parentElement),this.handleExpandCollapseButtonClick=t=>{!this.disabled&&!t.defaultPrevented&&(this.expanded=!this.expanded)},this.handleFocus=t=>{this.setAttribute("tabindex","0")},this.handleBlur=t=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(o=>{$(o)&&(o.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(e=>$(e));return t?t.length:0}}a([g({mode:"boolean"})],c.prototype,"expanded",void 0);a([g({mode:"boolean"})],c.prototype,"selected",void 0);a([g({mode:"boolean"})],c.prototype,"disabled",void 0);a([x],c.prototype,"focusable",void 0);a([x],c.prototype,"childItems",void 0);a([x],c.prototype,"items",void 0);a([x],c.prototype,"nested",void 0);a([x],c.prototype,"renderCollapsedChildren",void 0);B(c,q);const mt=(n,t)=>b` + +`;class D extends V{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=t=>{if(!(this.slottedTreeItems.length<1)){if(t.target===this){this.currentFocused===null&&(this.currentFocused=this.getValidFocusableItem()),this.currentFocused!==null&&c.focusItem(this.currentFocused);return}this.contains(t.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=t.target)}},this.handleBlur=t=>{t.target instanceof HTMLElement&&(t.relatedTarget===null||!this.contains(t.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=t=>{if(t.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const e=this.getVisibleNodes();switch(t.key){case Se:e.length&&c.focusItem(e[0]);return;case Ce:e.length&&c.focusItem(e[e.length-1]);return;case ke:if(t.target&&this.isFocusableElement(t.target)){const o=t.target;o instanceof c&&o.childItemLength()>0&&o.expanded?o.expanded=!1:o instanceof c&&o.parentElement instanceof c&&c.focusItem(o.parentElement)}return!1;case $e:if(t.target&&this.isFocusableElement(t.target)){const o=t.target;o instanceof c&&o.childItemLength()>0&&!o.expanded?o.expanded=!0:o instanceof c&&o.childItemLength()>0&&this.focusNextNode(1,t.target)}return;case we:t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target);return;case ye:t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target);return;case xe:this.handleClick(t);return}return!0},this.handleSelectedChange=t=>{if(t.defaultPrevented)return;if(!(t.target instanceof Element)||!$(t.target))return!0;const e=t.target;e.selected?(this.currentSelected&&this.currentSelected!==e&&(this.currentSelected.selected=!1),this.currentSelected=e):!e.selected&&this.currentSelected===e&&(this.currentSelected=null)},this.setItems=()=>{const t=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=t,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems(),this.getVisibleNodes().forEach(o=>{$(o)&&(o.nested=this.nested)})},this.isFocusableElement=t=>$(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),Ie.queueUpdate(()=>{this.setItems()})}handleClick(t){if(t.defaultPrevented)return;if(!(t.target instanceof Element)||!$(t.target))return!0;const e=t.target;e.disabled||(e.selected=!e.selected)}focusNextNode(t,e){const o=this.getVisibleNodes();if(!o)return;const s=o[o.indexOf(e)+t];se(s)&&c.focusItem(s)}getValidFocusableItem(){const t=this.getVisibleNodes();let e=t.findIndex(this.isSelectedElement);return e===-1&&(e=t.findIndex(this.isFocusableElement)),e!==-1?t[e]:null}checkForNestedItems(){return this.slottedTreeItems.some(t=>$(t)&&t.querySelector("[role='treeitem']"))}getVisibleNodes(){return _e(this,"[role='treeitem']")||[]}}a([g({attribute:"render-collapsed-nodes"})],D.prototype,"renderCollapsedNodes",void 0);a([x],D.prototype,"currentSelected",void 0);a([x],D.prototype,"slottedTreeItems",void 0);const gt=(n,t)=>k` + ${N("inline-block")} :host { + box-sizing: border-box; + ${K}; + } + + .list { + display: flex; + } +`,vt=he.compose({baseName:"breadcrumb",template:pt,styles:gt}),bt=(n,t)=>k` + ${N("inline-flex")} :host { + background: transparent; + color: ${M}; + fill: currentcolor; + box-sizing: border-box; + ${K}; + min-width: calc(${y} * 1px); + border-radius: calc(${T} * 1px); + } + + .listitem { + display: flex; + align-items: center; + border-radius: inherit; + } + + .control { + position: relative; + align-items: center; + box-sizing: border-box; + color: inherit; + fill: inherit; + cursor: pointer; + display: flex; + outline: none; + text-decoration: none; + white-space: nowrap; + border-radius: inherit; + } + + .control:hover { + color: ${Fe}; + } + + .control:active { + color: ${Te}; + } + + .control:${L} { + ${Le} + } + + :host(:not([href])), + :host([aria-current]) .control { + color: ${M}; + fill: currentcolor; + cursor: default; + } + + .start { + display: flex; + margin-inline-end: 6px; + } + + .end { + display: flex; + margin-inline-start: 6px; + } + + .separator { + display: flex; + } + `.withBehaviors(re(k` + :host(:not([href])), + .start, + .end, + .separator { + background: ${h.ButtonFace}; + color: ${h.ButtonText}; + fill: currentcolor; + } + .separator { + fill: ${h.ButtonText}; + } + :host([href]) { + forced-color-adjust: none; + background: ${h.ButtonFace}; + color: ${h.LinkText}; + } + :host([href]) .control:hover { + background: ${h.LinkText}; + color: ${h.HighlightText}; + fill: currentcolor; + } + .control:${L} { + outline-color: ${h.LinkText}; + } + `)),xt=_.compose({baseName:"breadcrumb-item",template:ut,styles:bt,shadowOptions:{delegatesFocus:!0},separator:` + + + + `}),yt=(n,t)=>k` + :host([hidden]) { + display: none; + } + + ${N("flex")} :host { + flex-direction: column; + align-items: stretch; + min-width: fit-content; + font-size: 0; + } +`,wt=D.compose({baseName:"tree-view",template:mt,styles:yt}),$t=k` + .expand-collapse-button svg { + transform: rotate(0deg); + } + :host(.nested) .expand-collapse-button { + left: var(--expand-collapse-button-nested-width, calc(${y} * -1px)); + } + :host([selected])::after { + left: calc(${ae} * 1px); + } + :host([expanded]) > .positioning-region .expand-collapse-button svg { + transform: rotate(90deg); + } +`,kt=k` + .expand-collapse-button svg { + transform: rotate(180deg); + } + :host(.nested) .expand-collapse-button { + right: var(--expand-collapse-button-nested-width, calc(${y} * -1px)); + } + :host([selected])::after { + right: calc(${ae} * 1px); + } + :host([expanded]) > .positioning-region .expand-collapse-button svg { + transform: rotate(90deg); + } +`,oe=Ee`((${Ae} / 2) * ${w}) + ((${w} * ${Be}) / 2)`,Ct=le.create("tree-item-expand-collapse-hover").withDefault(n=>{const t=de.getValueFor(n);return t.evaluate(n,t.evaluate(n).hover).hover}),St=le.create("tree-item-expand-collapse-selected-hover").withDefault(n=>{const t=Ve.getValueFor(n);return de.getValueFor(n).evaluate(n,t.evaluate(n).rest).hover}),It=(n,t)=>k` + ${N("block")} :host { + contain: content; + position: relative; + outline: none; + color: ${M}; + fill: currentcolor; + cursor: pointer; + font-family: ${Ne}; + --expand-collapse-button-size: calc(${y} * 1px); + --tree-item-nested-width: 0; + } + + .positioning-region { + display: flex; + position: relative; + box-sizing: border-box; + background: ${Re}; + border: calc(${De} * 1px) solid transparent; + border-radius: calc(${T} * 1px); + height: calc((${y} + 1) * 1px); + } + + :host(:${L}) .positioning-region { + ${Pe} + } + + .positioning-region::before { + content: ''; + display: block; + width: var(--tree-item-nested-width); + flex-shrink: 0; + } + + :host(:not([disabled])) .positioning-region:hover { + background: ${Me}; + } + + :host(:not([disabled])) .positioning-region:active { + background: ${ze}; + } + + .content-region { + display: inline-flex; + align-items: center; + white-space: nowrap; + width: 100%; + height: calc(${y} * 1px); + margin-inline-start: calc(${w} * 2px + 8px); + ${K} + } + + .items { + display: none; + ${""} font-size: calc(1em + (${w} + 16) * 1px); + } + + .expand-collapse-button { + background: none; + border: none; + border-radius: calc(${T} * 1px); + ${""} width: calc((${oe} + (${w} * 2)) * 1px); + height: calc((${oe} + (${w} * 2)) * 1px); + padding: 0; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + margin: 0 6px; + } + + .expand-collapse-button svg { + transition: transform 0.1s linear; + pointer-events: none; + } + + .start, + .end { + display: flex; + } + + .start { + ${""} margin-inline-end: calc(${w} * 2px + 2px); + } + + .end { + ${""} margin-inline-start: calc(${w} * 2px + 2px); + } + + :host(.expanded) > .items { + display: block; + } + + :host([disabled]) { + opacity: ${He}; + cursor: ${je}; + } + + :host(.nested) .content-region { + position: relative; + margin-inline-start: var(--expand-collapse-button-size); + } + + :host(.nested) .expand-collapse-button { + position: absolute; + } + + :host(.nested) .expand-collapse-button:hover { + background: ${Ct}; + } + + :host(:not([disabled])[selected]) .positioning-region { + background: ${qe}; + } + + :host(:not([disabled])[selected]) .expand-collapse-button:hover { + background: ${St}; + } + + :host([selected])::after { + content: ''; + display: block; + position: absolute; + top: calc((${y} / 4) * 1px); + width: 3px; + height: calc((${y} / 2) * 1px); + ${""} background: ${Ke}; + border-radius: calc(${T} * 1px); + } + + ::slotted(fluent-tree-item) { + --tree-item-nested-width: 1em; + --expand-collapse-button-nested-width: calc(${y} * -1px); + } + `.withBehaviors(new st($t,kt),re(k` + :host { + color: ${h.ButtonText}; + } + .positioning-region { + border-color: ${h.ButtonFace}; + background: ${h.ButtonFace}; + } + :host(:not([disabled])) .positioning-region:hover, + :host(:not([disabled])) .positioning-region:active, + :host(:not([disabled])[selected]) .positioning-region { + background: ${h.Highlight}; + } + :host .positioning-region:hover .content-region, + :host([selected]) .positioning-region .content-region { + forced-color-adjust: none; + color: ${h.HighlightText}; + } + :host([disabled][selected]) .positioning-region .content-region { + color: ${h.GrayText}; + } + :host([selected])::after { + background: ${h.HighlightText}; + } + :host(:${L}) .positioning-region { + forced-color-adjust: none; + outline-color: ${h.ButtonFace}; + } + :host([disabled]), + :host([disabled]) .content-region, + :host([disabled]) .positioning-region:hover .content-region { + opacity: 1; + color: ${h.GrayText}; + } + :host(.nested) .expand-collapse-button:hover, + :host(:not([disabled])[selected]) .expand-collapse-button:hover { + background: ${h.ButtonFace}; + fill: ${h.ButtonText}; + } + `)),_t=c.compose({baseName:"tree-item",template:ft,styles:It,expandCollapseGlyph:` + + + + `}),Ft=[Ue` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host .container{display:flex;flex-direction:column;position:relative}:host .dropdown{display:none;position:absolute;z-index:1000;top:34px}:host .dropdown.visible{display:flex}:host .dropdown .team-photo{width:24px;position:inherit;border-radius:50%;margin:0 6px}:host .dropdown .team-start-slot{width:max-content}:host .dropdown .team-parent-name{width:auto}:host .loading-text,:host .search-error-text{font-style:normal;font-weight:400;font-size:14px;line-height:20px}:host .message-parent{display:flex;flex-direction:row;gap:5px;padding:5px}:host .message-parent .loading-text{margin:auto}:host fluent-card{background:var(--channel-picker-dropdown-background-color,var(--fill-color));padding:2px;--card-height:auto;--width:var(--card-width)}:host fluent-text-field{width:100%}:host fluent-text-field::part(root){background:padding-box linear-gradient(var(--channel-picker-input-background-color,var(--neutral-fill-input-rest)),var(--channel-picker-input-background-color,var(--neutral-fill-input-rest))),border-box var(--channel-picker-input-border-color,var(--neutral-stroke-input-rest))}:host fluent-text-field::part(root):hover{background:padding-box linear-gradient(var(--channel-picker-input-background-color-hover,var(--neutral-fill-input-hover)),var(--channel-picker-input-background-color-hover,var(--neutral-fill-input-hover))),border-box var(--channel-picker-input-hover-border-color,var(--neutral-stroke-input-hover))}:host fluent-text-field::part(root):focus,:host fluent-text-field::part(root):focus-within{background:padding-box linear-gradient(var(--channel-picker-input-background-color-focus,var(--neutral-fill-input-focus)),var(--channel-picker-input-background-color-focus,var(--neutral-fill-input-focus))),border-box var(--channel-picker-input-focus-border-color,var(--neutral-stroke-input-focus))}:host fluent-text-field::part(control){word-spacing:inherit;text-indent:inherit;letter-spacing:inherit}:host fluent-text-field::part(control)::placeholder{color:var(--channel-picker-input-placeholder-text-color,var(--input-placeholder-rest))}:host fluent-text-field::part(control):hover::placeholder{color:var(--channel-picker-input-placeholder-text-color-hover,var(--input-placeholder-hover))}:host fluent-text-field::part(control):focus-within::placeholder,:host fluent-text-field::part(control):focus::placeholder{color:var(--channel-picker-input-placeholder-text-color-focus,var(--input-placeholder-filled))}:host fluent-text-field .search-icon svg path{fill:var(--channel-picker-search-icon-color,currentColor)}:host fluent-text-field .down-chevron{height:auto;min-width:auto}:host fluent-text-field .down-chevron svg path{fill:var(--channel-picker-down-chevron-color,currentColor)}:host fluent-text-field .up-chevron{height:auto;min-width:auto}:host fluent-text-field .up-chevron svg path{fill:var(--channel-picker-up-chevron-color,currentColor)}:host fluent-text-field .close-icon{height:auto;min-width:auto}:host fluent-text-field .close-icon svg path{fill:var(--channel-picker-close-icon-color,currentColor)}:host fluent-tree-view{min-width:100%;--tree-item-nested-width:2em}:host fluent-tree-item{width:100%;--tree-item-nested-width:2em}:host fluent-tree-item:focus-visible{outline:0}:host fluent-tree-item::part(expand-collapse-button){background:0 0}:host fluent-tree-item::part(content-region),:host fluent-tree-item::part(positioning-region){color:var(--channel-picker-dropdown-item-text-color,currentColor);background:var(--channel-picker-dropdown-background-color,transparent);border:calc(var(--stroke-width) * 2px) solid transparent;height:auto}:host fluent-tree-item::part(content-region):hover,:host fluent-tree-item::part(positioning-region):hover{background:var(--channel-picker-dropdown-item-background-color-hover,var(--neutral-fill-stealth-hover))}:host fluent-tree-item::part(content-region):hover::part(expand-collapse-button),:host fluent-tree-item::part(positioning-region):hover::part(expand-collapse-button){background:var(--channel-picker-dropdown-item-background-color-hover,var(--neutral-fill-stealth-hover))}:host fluent-tree-item fluent-tree-item::part(content-region){height:auto}:host fluent-breadcrumb-item{color:var(--channel-picker-dropdown-item-text-color-selected,var(--neutral-foreground-rest))}:host fluent-breadcrumb-item .team-parent-name{font-weight:700}:host fluent-breadcrumb-item .team-photo{width:19px;position:inherit;border-radius:50%}:host fluent-breadcrumb-item .arrow{margin-left:8px;margin-right:8px}:host fluent-breadcrumb-item .arrow svg{stroke:var(--channel-picker-arrow-fill,var(--neutral-foreground-rest))}[dir=rtl] :host{--direction:rtl}[dir=rtl] .dropdown{text-align:right}[dir=rtl] .arrow{transform:scaleX(-1);filter:fliph;filter:"FlipH";margin-right:0;margin-left:5px}[dir=rtl] .selected-team{padding-left:10px}[dir=rtl] .message-parent .loading-text{right:auto;left:10px;padding-right:8px;text-align:right}@media (forced-colors:active) and (prefers-color-scheme:dark){:host fluent-text-field svg{stroke:rgb(255,255,255)!important}}@media (forced-colors:active) and (prefers-color-scheme:light){:host fluent-text-field svg{stroke:rgb(0,0,0)!important}} +`];var G=function(n,t,e,o){function s(i){return i instanceof e?i:new e(function(r){r(i)})}return new(e||(e=Promise))(function(i,r){function l(p){try{m(o.next(p))}catch(C){r(C)}}function u(p){try{m(o.throw(p))}catch(C){r(C)}}function m(p){p.done?i(p.value):s(p.value).then(l,u)}m((o=o.apply(n,t||[])).next())})};const Tt=["Team.ReadBasic.All","TeamSettings.Read.All","TeamSettings.ReadWrite.All","User.Read.All","User.ReadWrite.All"],Lt=["Channel.ReadBasic.All","ChannelSettings.Read.All","ChannelSettings.ReadWrite.All"],Et=["Team.ReadBasic.All","TeamSettings.Read.All","TeamSettings.ReadWrite.All"],At=n=>G(void 0,void 0,void 0,function*(){const t=Tt,e=yield n.api("/me/joinedTeams").select(["displayName","id","isArchived"]).middlewareOptions(fe(t)).get();return e==null?void 0:e.value}),Bt=(n,t)=>G(void 0,void 0,void 0,function*(){let e,o={};if(X()){e=We.getCache(J.photos,J.photos.stores.teams);for(const s of t)try{const i=yield e.getValue(s);i&&Ge()>Date.now()-i.timeCached&&(o[s]=i)}catch{}if(Object.keys(o).length)return o}o={};for(const s of t)try{const i=yield Oe(n,`/teams/${s}`,Et);X()&&i&&(yield e.putValue(s,i)),o[s]=i}catch{}return o}),Vt=(n,t)=>G(void 0,void 0,void 0,function*(){var e,o;const s=n.createBatch();for(const l of t)s.get(l.id,`teams/${l.id}/channels`,Lt);const i=yield s.executeAll(),r=[];for(const l of t){const u=i.get(l.id);!((o=(e=u==null?void 0:u.content)===null||e===void 0?void 0:e.value)===null||o===void 0)&&o.length&&r.push({item:l,channels:u.content.value.map(m=>({item:m}))})}return r}),Nt={inputPlaceholderText:"Select a channel",noResultsFound:"We didn't find any matches.",loadingMessage:"Loading...",photoFor:"Teams photo for",teamsChannels:"Teams and channels results",closeButtonAriaLabel:"remove the selected channel",downChevronButtonAriaLabel:"Teams show results button",upChevronButtonAriaLabel:"Teams hide results button"};var ue=function(n,t,e,o){var s=arguments.length,i=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,o);else for(var l=n.length-1;l>=0;l--)(r=n[l])&&(i=(s<3?r(i):s>3?r(t,e,i):r(t,e))||i);return s>3&&i&&Object.defineProperty(t,e,i),i},pe=function(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)},ne=function(n,t,e,o){function s(i){return i instanceof e?i:new e(function(r){r(i)})}return new(e||(e=Promise))(function(i,r){function l(p){try{m(o.next(p))}catch(C){r(C)}}function u(p){try{m(o.throw(p))}catch(C){r(C)}}function m(p){p.done?i(p.value):s(p.value).then(l,u)}m((o=o.apply(n,t||[])).next())})};const Rt=()=>{Ze(vt,xt,tt,wt,_t,rt),it(),Xe("teams-channel-picker",O)};class O extends Je{static get styles(){return Ft}get strings(){return Nt}get selectedItem(){return this._selectedItemState?{channel:this._selectedItemState.item,team:this._selectedItemState.parent.item}:null}static get requiredScopes(){return["team.readbasic.all","channel.readbasic.all"]}set items(t){this._items!==t&&(this._items=t,this._treeViewState=t?this.generateTreeViewState(t):[],this.resetFocusState())}get items(){return this._items}get _inputWrapper(){return this.renderRoot.querySelector("fluent-text-field")}get _input(){const t=this._inputWrapper;return t==null?void 0:t.shadowRoot.querySelector("input")}constructor(){super(),this.teamsPhotos={},this._inputValue="",this._treeViewState=[],this._focusList=[],this.renderLoading=()=>this.renderContent(),this.renderContent=()=>{var t;const e={dropdown:!0,visible:this._isDropdownVisible};return this.renderTemplate("default",{teams:(t=this.items)!==null&&t!==void 0?t:[]})||f` +
+ +
${this.renderSelected()}
+
${this.renderChevrons()}${this.renderCloseButton()}
+
+ + ${this.renderDropdown()} + +
`},this.handleInputClick=t=>{t.stopPropagation(),this.gainedFocus()},this.handleInputKeydown=t=>{const e=t.key;["ArrowDown","Enter"].includes(e)?this._isDropdownVisible?this.renderRoot.querySelector("fluent-tree-item").focus():this.gainedFocus():e==="Escape"?this.lostFocus():e==="Tab"&&this.blurPicker()},this.onClickCloseButton=()=>{this.removeSelectedChannel(null)},this.onKeydownCloseButton=t=>{t.key==="Enter"&&this.removeSelectedChannel(null)},this.renderError=()=>this.renderTemplate("error",null,"error")||f` +
+
+ ${this.strings.noResultsFound} +
+
+ `,this.renderLoadingIndicator=()=>this.renderTemplate("loading",null,"loading")||Ye` +
+ +
+ ${this.strings.loadingMessage} +
+
+ `,this.onKeydownTreeView=t=>{t.key==="Escape"&&this.lostFocus()},this.handleTeamTreeItemClick=t=>{t.preventDefault(),t.stopImmediatePropagation();const e=t.target;e&&(e.getAttribute("expanded")?e.removeAttribute("expanded"):e.setAttribute("expanded","true"),e.removeAttribute("selected"),e.getAttribute("id")&&e.setAttribute("selected","true"))},this.handleInputChanged=t=>{const e=t.target;if(this._inputValue!==(e==null?void 0:e.value))this._inputValue=e==null?void 0:e.value;else return;t.key!=="Tab"&&t.key!=="Enter"&&t.key!=="Escape"&&this.gainedFocus(),this.debouncedSearch||(this.debouncedSearch=et(()=>{this.filterList()},400)),this.debouncedSearch()},this.loadTeamsIfNotLoaded=()=>{!this.items&&this._task.status!==Q.PENDING&&this._task.run()},this.handleWindowClick=t=>{t.target!==this&&this.lostFocus()},this.gainedFocus=()=>{const t=this._input;t&&t.focus(),this._isDropdownVisible=!0,this.toggleChevron(),this.resetFocusState(),this.requestUpdate()},this.lostFocus=()=>{this._inputValue="",this._input&&(this._input.value=this._inputValue,this._input.textContent="");const t=this._inputWrapper;t&&(t.value="",t.blur()),this._isDropdownVisible=!1,this.filterList(),this.toggleChevron(),this.requestUpdate(),this._selectedItemState!==void 0&&this.showCloseIcon()},this.handleFocus=()=>{this.gainedFocus()},this.handleUpChevronClick=t=>{t.stopPropagation(),this.lostFocus()},this.handleChevronKeydown=t=>{t.key==="Tab"&&this.blurPicker()},this.handleStartSlotKeydown=t=>{t.key==="Tab"&&t.shiftKey&&this.blurPicker()},this.blurPicker=()=>{const t=this._inputWrapper,e=this._input;t==null||t.blur(),e==null||e.blur()},this._inputValue="",this._treeViewState=[],this._focusList=[],this._isDropdownVisible=!1}connectedCallback(){super.connectedCallback(),window.addEventListener("click",this.handleWindowClick),this.addEventListener("focus",this.loadTeamsIfNotLoaded),this.addEventListener("mouseover",this.loadTeamsIfNotLoaded),this.addEventListener("blur",this.lostFocus);const t=this.renderRoot.ownerDocument;t&&t.documentElement.setAttribute("dir",this.direction)}disconnectedCallback(){window.removeEventListener("click",this.handleWindowClick),this.removeEventListener("focus",this.loadTeamsIfNotLoaded),this.removeEventListener("mouseover",this.loadTeamsIfNotLoaded),this.removeEventListener("blur",this.lostFocus),super.disconnectedCallback()}args(){return[]}selectChannelById(t){return ne(this,void 0,void 0,function*(){const e=P.globalProvider;if(e&&e.state===Z.SignedIn){this.items||(yield this._task.run());for(const o of this._treeViewState)for(const s of o.channels)if(s.item.id===t)return o.isExpanded=!0,this.selectChannel(s),this.markSelectedChannelInDropdown(t),!0}return!1})}markSelectedChannelInDropdown(t){const e=this.renderRoot.querySelector(`[id='${t}']`);e&&(e.setAttribute("selected","true"),e.parentElement&&e.parentElement.setAttribute("expanded","true"))}renderSelected(){var t,e,o,s,i,r;if(!this._selectedItemState)return this.renderSearchIcon();let l;if(this._selectedItemState.parent.channels){const p=(t=this.teamsPhotos[this._selectedItemState.parent.item.id])===null||t===void 0?void 0:t.photo;l=f`${this._selectedItemState.parent.item.displayName}`}const u=(s=(o=(e=this._selectedItemState)===null||e===void 0?void 0:e.parent)===null||o===void 0?void 0:o.item)===null||s===void 0?void 0:s.displayName.trim(),m=(r=(i=this._selectedItemState)===null||i===void 0?void 0:i.item)===null||r===void 0?void 0:r.displayName.trim();return f` + + + ${l} + ${u} + ${Y(ee.TeamSeparator,"#000000")} + + ${m} + `}clearState(){this._inputValue="",this._treeViewState=[],this._focusList=[],this._isDropdownVisible=!1}renderSearchIcon(){return f` +
+ ${Y(ee.Search,"#252424")} +
+ `}renderCloseButton(){return f` + + `}showCloseIcon(){const t=this.renderRoot.querySelector(".down-chevron"),e=this.renderRoot.querySelector(".up-chevron"),o=this.renderRoot.querySelector(".close-icon");t&&(t.style.display="none"),e&&(e.style.display="none"),o&&(o.style.display=null)}renderDownChevron(){return f` + + + + + `}renderUpChevron(){return f` + `}renderChevrons(){return f`${this.renderUpChevron()}${this.renderDownChevron()}`}renderDropdown(){return this._task.status===Q.PENDING||!this._treeViewState?this.renderLoadingIndicator():this._treeViewState?this._treeViewState.length===0&&this._inputValue.length>0?this.renderError():this.renderDropdownList(this._treeViewState):f``}renderDropdownList(t){if(t&&t.length>0){let e=null;return f` + + ${te(t,o=>o==null?void 0:o.item,o=>{var s;return o.channels&&(e=f`${this.strings.photoFor} ${o.item.displayName}`),f` + + ${e}${o.item.displayName} + ${te(o==null?void 0:o.channels,i=>i.item,i=>this.renderItem(i))} + `})} + `}return null}renderItem(t){var e;return f` + this.onUserKeyDown(o,t)} + @click=${()=>this.handleItemClick(t)}> + ${t==null?void 0:t.item.displayName} + `}loadState(){return ne(this,void 0,void 0,function*(){const t=P.globalProvider;let e;if(t&&t.state===Z.SignedIn){const o=t.graph.forComponent(this);e=yield At(o),e=e.filter(i=>!i.isArchived);const s=e.map(i=>i.id);this.teamsPhotos=yield Bt(o,s),this._items=yield Vt(o,e)}this.filterList(),this.resetFocusState()})}clearSelectedItem(){this.removeSelectedChannel()}removeSelectedChannel(t){this.selectChannel(t);const e=this.renderRoot.querySelectorAll("fluent-tree-item");e&&e.forEach(o=>{o.removeAttribute("expanded"),o.removeAttribute("selected")})}handleItemClick(t){t.channels?t.isExpanded=!t.isExpanded:(this.selectChannel(t),this.lostFocus())}onUserKeyDown(t,e){switch(t.code){case"Enter":this.selectChannel(e),this.resetFocusState(),this.lostFocus(),t.preventDefault();break;case"Backspace":this._inputValue.length===0&&this._selectedItemState&&(this.selectChannel(null),this.resetFocusState(),t.preventDefault());break}}filterList(){this.items&&(this._treeViewState=this.generateTreeViewState(this.items,this._inputValue),this.resetFocusState())}generateTreeViewState(t,e="",o=null){const s=[];if(e=e.toLowerCase(),t)for(const i of t){let r;if(e.length===0||i.item.displayName.toLowerCase().includes(e))r={item:i.item,parent:o},i.channels&&(r.channels=this.generateTreeViewState(i.channels,"",r),r.isExpanded=e.length>0);else if(i.channels){const l={item:i.item,parent:o},u=this.generateTreeViewState(i.channels,e,l);u.length>0&&(r=l,r.channels=u,r.isExpanded=!0)}r&&s.push(r)}return s}generateFocusList(t){if(!t||t.length===0)return[];let e=[];for(const o of t)e.push(o),o.channels&&o.isExpanded&&(e=[...e,...this.generateFocusList(o.channels)]);return e}resetFocusState(){this._focusList=this.generateFocusList(this._treeViewState),this.requestUpdate()}selectChannel(t){var e,o;t&&this._selectedItemState!==t?(e=this._input)===null||e===void 0||e.setAttribute("disabled","true"):(o=this._input)===null||o===void 0||o.removeAttribute("disabled"),this._selectedItemState=t,this.lostFocus(),this.fireCustomEvent("selectionChanged",this.selectedItem)}hideCloseIcon(){const t=this.renderRoot.querySelector(".close-icon");t&&(t.style.display="none")}toggleChevron(){const t=this.renderRoot.querySelector(".down-chevron"),e=this.renderRoot.querySelector(".up-chevron");this._isDropdownVisible?(t&&(t.style.display="none"),e&&(e.style.display=null)):(t&&(t.style.display=null,this.hideCloseIcon()),e&&(e.style.display="none")),this.hideCloseIcon()}}ue([ce(),pe("design:type",Object)],O.prototype,"_selectedItemState",void 0);ue([ce(),pe("design:type",Boolean)],O.prototype,"_isDropdownVisible",void 0);const Dt=U("teams-channel-picker",Rt),E=U("file-list",at),Pt=U("picker",lt),Mt=W({fileGrid:{paddingBottom:"10px"}}),zt=()=>{const[n,t]=S.useState(null),e=Mt();return d.jsxs("div",{children:[d.jsx(Dt,{selectionChanged:o=>t(o.detail),className:e.fileGrid}),n&&d.jsx(E,{groupId:n.team.id,itemPath:n.channel.displayName,pageSize:100})]})},Ht=W({picker:{paddingBottom:"10px",display:"block"}}),jt=()=>{const[n,t]=S.useState(null),[e,o]=S.useState(""),[s,i]=S.useState(""),r=Ht(),l=async u=>{if(u.detail.list.template==="documentLibrary"){const m=await P.globalProvider.graph.client.api(`/sites/root/lists/${u.detail.id}/drive`).get();t(u.detail),o(m.id),i("")}else t(null),o(""),i("Please select a document library")};return d.jsxs("div",{children:[d.jsx(Pt,{resource:"/sites/root/lists",placeholder:"Select a list",keyName:"displayName",selectionChanged:l,className:r.picker}),n&&e&&d.jsx(E,{itemPath:"/",driveId:e,pageSize:100}),s&&d.jsx("div",{children:s})]})},qt=W({panels:{...ot.padding("10px")}}),oo=()=>{const n=qt(),[t,e]=S.useState("my"),o=(s,i)=>{e(i.value)};return d.jsxs(d.Fragment,{children:[d.jsx(me,{title:"Files",description:"View your files from accross your OneDrive, channels you are a member of and your SharePoint sites"}),d.jsxs("div",{children:[d.jsxs(nt,{selectedValue:t,onTabSelect:o,children:[d.jsx(F,{value:"my",children:"My Files"}),d.jsx(F,{value:"recent",children:"Recent Files"}),d.jsx(F,{value:"site",children:"Site Files"}),d.jsx(F,{value:"channel",children:"Channel Files"})]}),d.jsxs("div",{className:n.panels,children:[t==="my"&&d.jsx(E,{pageSize:100}),t==="recent"&&d.jsx(E,{insightType:"used",enableFileUpload:!1,pageSize:100}),t==="site"&&d.jsx(jt,{}),t==="channel"&&d.jsx(zt,{})]})]})]})};export{oo as default}; diff --git a/next/sample/pr/3325/assets/HomePage-DGzFPoL9.js b/next/sample/pr/3325/assets/HomePage-DGzFPoL9.js new file mode 100644 index 0000000000..1ea98233af --- /dev/null +++ b/next/sample/pr/3325/assets/HomePage-DGzFPoL9.js @@ -0,0 +1 @@ +import{j as e}from"./index-hkJM60Tb.js";import{P as o}from"./PageHeader-BLfiQIXJ.js";import{w as t}from"./App-c9ixsJC9.js";import{r}from"./mgt-people-BdxEzgIY.js";import"./repeat-BYNG0dST.js";const s=t("people",r),p=["LidiaH","Megan Bowen","Lynne Robbins","JoniS"],g=()=>e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Home",description:"Welcome to Contoso!"}),e.jsx(s,{peopleQueries:p})]});export{g as default}; diff --git a/next/sample/pr/3325/assets/OutlookPage-D0nneFIP.js b/next/sample/pr/3325/assets/OutlookPage-D0nneFIP.js new file mode 100644 index 0000000000..4dc41de6da --- /dev/null +++ b/next/sample/pr/3325/assets/OutlookPage-D0nneFIP.js @@ -0,0 +1,67 @@ +import{p as z,b as L,a as _,j as r,r as E}from"./index-hkJM60Tb.js";import{P as I}from"./PageHeader-BLfiQIXJ.js";import{X as M,at as O,Y as v,a0 as R,a3 as P,Z as A,$ as c,a6 as x,a4 as F,a5 as B,a8 as W,au as H,w as C,an as w,aq as m,ap as Z,ai as D,ar as q,as as S}from"./App-c9ixsJC9.js";import{r as Q}from"./mgt-spinner-DCTBtyM4.js";import{r as G,M as U}from"./mgt-people-BdxEzgIY.js";import{G as j}from"./get-Bki3P7Iw.js";import"./repeat-BYNG0dST.js";import"./mgt-get-nlun5DqF.js";const V=[M` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{--card-height:auto;--card-width:99%;background-color:var(--agenda-background-color,transparent)}:host .header{margin:var(--agenda-header-margin,18px 0 12px 10px);font-size:var(--agenda-header-font-size, 24px);font-style:normal;font-weight:400;line-height:32px;color:var(--agenda-header-color,var(--neutral-foreground-rest));opacity:.9}:host .agenda,:host .group{display:flex;flex-direction:column;row-gap:var(--agenda-event-row-gap,14px)}:host .agenda>.group:first-child>.header,:host .group>.group:first-child>.header{margin-top:0}:host .agenda .event,:host .group .event{background:var(--agenda-event-background-color,var(--fill-color));border:var(--agenda-event-border,solid 2px transparent);box-shadow:var(--agenda-event-box-shadow,var(--elevation-shadow-card-rest));padding:var(--agenda-event-padding,12px);position:relative;display:flex;flex:1 1 auto;content-visibility:visible;contain:none}:host .agenda .event-container,:host .group .event-container{border-radius:calc(var(--layer-corner-radius) * 1px);padding:1px}:host .agenda .event.narrow,:host .group .event.narrow{display:flex;flex-direction:column;inset:0}:host .agenda .event-time-container,:host .group .event-time-container{font-style:normal;font-weight:600;font-size:12px;color:var(--agenda-event-time-color,var(--neutral-foreground-rest));width:112px;height:16px}:host .agenda .event-time-container.narrow,:host .group .event-time-container.narrow{margin-bottom:1px;width:100%}:host .agenda .event-time,:host .group .event-time{font-size:var(--agenda-event-time-font-size, 12px);color:var(--agenda-event-time-color,var(--neutral-foreground-rest));font-weight:600}:host .agenda .event-details-container,:host .group .event-details-container{display:flex;flex-direction:column;position:relative;bottom:8px;top:0;padding-inline-start:32px}:host .agenda .event-details-container.narrow,:host .group .event-details-container.narrow{position:inherit;left:6px;display:flex;flex-direction:column;padding-inline-start:0}:host .agenda .event-subject,:host .group .event-subject{font-style:normal;font-weight:400;font-size:var(--agenda-event-subject-font-size, 20px);line-height:28px;color:var(--agenda-event-subject-color,var(--neutral-foreground-rest));mix-blend-mode:normal;position:inherit;bottom:8px}:host .agenda .event-location-container,:host .group .event-location-container{display:inline-flex;flex-direction:row}:host .agenda .event-location-container .event-location,:host .group .event-location-container .event-location{padding-inline-start:3px;font-style:normal;font-weight:400;font-size:var(--agenda-event-location-font-size, 12px);line-height:16px;color:var(--agenda-event-location-color,var(--neutral-foreground-rest))}:host .agenda .event-location-container .event-location-loading,:host .group .event-location-container .event-location-loading{width:90px;height:10px;margin:2px 0 0 4px}:host .agenda .event-location-container .event-location-icon,:host .group .event-location-container .event-location-icon{display:inline-flex}:host .agenda .event-location-container .event-location-icon svg,:host .group .event-location-container .event-location-icon svg{position:relative;top:2px;width:12px;height:12px}:host .agenda .event-location-container .event-location-icon svg path,:host .group .event-location-container .event-location-icon svg path{stroke:var(--agenda-event-location-color,var(--neutral-foreground-rest))}:host .agenda .event-location-container .event-location-icon-loading,:host .group .event-location-container .event-location-icon-loading{width:14px;height:14px}:host .agenda .event-location-container .event-attendee-loading,:host .group .event-location-container .event-attendee-loading{width:20px;height:20px;border-radius:10px;margin:0 2px 0 0}:host .agenda .event-attendees,:host .group .event-attendees{--list-margin:8px 0 0 0;--person-avatar-size:20px}fluent-card.event.event-loading{--card-height:90px}:host .event-attendees{--color:$agenda-event-attendees-color}:host fluent-tooltip{width:auto;contain:inline-size}[dir=rtl] :host{direction:rtl}[dir=rtl] .event-time-container{direction:ltr;display:flex;justify-content:flex-end}@media (forced-colors:active) and (prefers-color-scheme:dark){:host .agenda .event-location-container .event-location-icon svg path{stroke:rgb(255,255,255)!important}}@media (forced-colors:active) and (prefers-color-scheme:light){:host .agenda .event-location-container .event-location-icon svg path{stroke:rgb(0,0,0)!important}} +`];var N=function(s,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function d(l){try{u(n.next(l))}catch(f){a(f)}}function y(l){try{u(n.throw(l))}catch(f){a(f)}}function u(l){l.done?o(l.value):i(l.value).then(d,y)}u((n=n.apply(s,e||[])).next())})};const k=(s,e,t)=>N(void 0,void 0,void 0,function*(){const n=s.api(e).middlewareOptions(z(t)).orderby("start/dateTime");return O.create(s,n)}),Y=(s,e,t,n)=>N(void 0,void 0,void 0,function*(){const i=`startdatetime=${e.toISOString()}`,o=`enddatetime=${t.toISOString()}`,a=n?`groups/${n}/calendar/calendarview?${i}&${o}`:`me/calendarview?${i}&${o}`;return k(s,a,n?["Group.Read.All","Group.ReadWrite.All"]:["Calendars.ReadBasic","Calendars.Read","Calendars.ReadWrite"])});var g=function(s,e,t,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,n);else for(var d=s.length-1;d>=0;d--)(a=s[d])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},h=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},b=function(s,e,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function d(l){try{u(n.next(l))}catch(f){a(f)}}function y(l){try{u(n.throw(l))}catch(f){a(f)}}function u(l){l.done?o(l.value):i(l.value).then(d,y)}u((n=n.apply(s,e||[])).next())})};const X=()=>{R(H),G(),P("agenda",p)};class p extends A{constructor(){super(...arguments),this.days=3,this.renderContent=()=>{if(!this.events||this.events.length===0)return this.renderNoData();const e=this.showMax&&this.showMax>0?this.events.slice(0,this.showMax):this.events,t=this.renderTemplate("default",{events:e});if(t)return t;const n={agenda:!0,grouped:this.groupByDay};return c` +
+ ${this.groupByDay?this.renderGroups(e):this.renderEvents(e)} +
+ `},this.renderLoading=()=>this.renderTemplate("loading",null)||c` + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
`,this.onResize=()=>{this._isNarrow=this.offsetWidth<600}}static get styles(){return V}static get requiredScopes(){return[...new Set(["calendars.read",...U.requiredScopes])]}connectedCallback(){this._isNarrow=this.offsetWidth<600,super.connectedCallback(),window.addEventListener("resize",this.onResize)}disconnectedCallback(){window.removeEventListener("resize",this.onResize),super.disconnectedCallback()}reload(){return b(this,void 0,void 0,function*(){this.events=yield this.loadEvents()})}clearState(){this.events=null}renderNoData(){return this.renderTemplate("no-data",null)||c``}renderEvent(e){this._isNarrow=this.offsetWidth<600;const t={narrow:this._isNarrow};return c` + +
+
${this.getEventTimeString(e)}
+
+
+ ${this.renderTitle(e)} ${this.renderLocation(e)} ${this.renderAttendees(e)} +
+
${this.renderOther(e)}
+
+ `}renderHeader(e){return this.renderTemplate("header",{header:e},"header-"+e)||c` +
${e}
+ `}renderTitle(e){return c` +
+ ${e.subject} +
`}renderLocation(e){return e.location.displayName?c` +
+
${F(B.OfficeLocation)}
+
${e.location.displayName}
+
+ `:null}renderAttendees(e){return e.attendees.length?W` + t.emailAddress.address)} + > + `:null}renderOther(e){return this.hasTemplate("event-other")?c` + ${this.renderTemplate("event-other",{event:e},e.id+"-other")} + `:null}renderGroups(e){const t={};return e.forEach(n=>{var i;let o=(i=n==null?void 0:n.start)===null||i===void 0?void 0:i.dateTime;n.end.timeZone==="UTC"&&(o+="Z");const a=this.getDateHeaderFromDateTimeString(o);t[a]=t[a]||[],t[a].push(n)}),c` + ${Object.keys(t).map(n=>c` +
${this.renderHeader(n)} ${this.renderEvents(t[n])}
+ `)} + `}renderEvents(e){return c` + ${e.map(t=>c` +
this.eventClicked(t)}> + ${this.renderTemplate("event",{event:t},t.id)||this.renderEvent(t)} +
`)}`}args(){return[this.providerState,this.preferredTimezone,this.eventQuery,this.date,this.groupId,this.days]}loadState(){return b(this,void 0,void 0,function*(){if(this.events)return;const e=yield this.loadEvents();(e==null?void 0:e.length)>0&&(this.events=e)})}eventClicked(e){this.fireCustomEvent("eventClick",e)}getEventTimeString(e){if(e.isAllDay)return"ALL DAY";let t=e.start.dateTime;e.start.timeZone==="UTC"&&(t+="Z");let n=e.end.dateTime;e.end.timeZone==="UTC"&&(n+="Z");const i=this.prettyPrintTimeFromDateTime(new Date(t)),o=this.prettyPrintTimeFromDateTime(new Date(n));return`${i} - ${o}`}loadEvents(){return b(this,void 0,void 0,function*(){const e=L.globalProvider;let t=[];if((e==null?void 0:e.state)===_.SignedIn){const n=e.graph.forComponent(this);if(this.eventQuery)try{const i=this.eventQuery.split("|");let o,a;i.length>1?(a=i[0].trim(),o=i[1].trim()):a=this.eventQuery;const d=yield k(n,a,o?[o]:[]);if(d!=null&&d.value)for(t=d.value;d.hasNext;)yield d.next(),t=d.value}catch{}else{const i=this.date?new Date(this.date):new Date,o=new Date(i.getTime());o.setDate(i.getDate()+this.days);try{const a=yield Y(n,i,o,this.groupId);if(a!=null&&a.value)for(t=a.value;a.hasNext;)yield a.next(),t=a.value}catch{}}}return t})}prettyPrintTimeFromDateTime(e){return e.toLocaleTimeString(navigator.language,{timeStyle:"short",timeZone:this.preferredTimezone})}getDateHeaderFromDateTimeString(e){return new Date(e).toLocaleDateString(navigator.language,{dateStyle:"full",timeZone:this.preferredTimezone})}}g([v({attribute:"date",type:String}),h("design:type",String)],p.prototype,"date",void 0);g([v({attribute:"group-id",type:String}),h("design:type",String)],p.prototype,"groupId",void 0);g([v({attribute:"days",type:Number}),h("design:type",Object)],p.prototype,"days",void 0);g([v({attribute:"event-query",type:String}),h("design:type",String)],p.prototype,"eventQuery",void 0);g([v({attribute:"events",type:Array,hasChanged:(s,e)=>s!==e}),h("design:type",Array)],p.prototype,"events",void 0);g([v({attribute:"show-max",type:Number}),h("design:type",Number)],p.prototype,"showMax",void 0);g([v({attribute:"group-by-day",type:Boolean}),h("design:type",Boolean)],p.prototype,"groupByDay",void 0);g([v({attribute:"preferred-timezone",type:String}),h("design:type",String)],p.prototype,"preferredTimezone",void 0);g([v({attribute:!1}),h("design:type",Boolean)],p.prototype,"_isNarrow",void 0);const J=C("agenda",X),K=C("spinner",Q),ee=w({email:{boxShadow:"var(--box-shadow)",...m.padding("10px"),...m.margin("8px"),":hover":{borderLeftWidth:"4px",borderLeftColor:"var(--input-border-color--hover)",borderLeftStyle:"solid",paddingLeft:"6px"},"& mgt-person":{"--font-size":"12px","--person-avatar-size":"16px"}},link:{color:"var(--color-sub1)",textDecorationLine:"none"},header:{display:"flex",justifyContent:"space-between"},subject:{color:"var(--color-sub1)",fontSize:"14px",...m.gridArea("1 / 1 / auto / 3"),...m.margin("0")},title:{display:"flex",justifyContent:"space-between",marginBottom:"4px",color:"var(--color-sub1)"},date:{fontSize:"12px",paddingLeft:"4px",float:"right"},body:{fontSize:"13px",textOverflow:"ellipsis",wordWrap:"break-word",...m.overflow("hidden"),maxHeight:"2.8em",lineHeight:"1.4em",color:"var(--color-sub2)"},emptyBody:{fontStyle:"italic"}});function T(s){var n,i;const e=ee(),t=s.dataContext;return r.jsx("div",{className:e.email,children:r.jsxs("a",{className:e.link,href:t.webLink,target:"_blank",rel:"noreferrer",children:[r.jsx("div",{className:e.header,children:r.jsx("div",{children:r.jsx(Z,{personQuery:(i=(n=t.sender)==null?void 0:n.emailAddress)==null?void 0:i.address,personCardInteraction:"hover",view:"oneline"})})}),r.jsxs("div",{className:e.title,children:[r.jsx("h3",{className:e.subject,children:t.subject}),r.jsx("span",{className:e.date,children:new Date(t.receivedDateTime).toLocaleDateString()})]}),t!=null&&t.bodyPreview?r.jsx("div",{className:e.body,children:t.bodyPreview}):r.jsx("div",{className:D(e.body,e.emptyBody),children:"..."})]})})}const te=w({root:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 300px)"},message:{paddingLeft:"10px"}}),$=s=>{const e=te();return r.jsxs("div",{className:e.root,children:[r.jsx(K,{}),r.jsx("div",{className:e.message,children:r.jsx("span",{children:s.message||"Loading..."})})]})},ne=w({container:{display:"flex",flexDirection:"row"},panels:{...m.padding("10px")},main:{display:"flex",flexDirection:"column",flexWrap:"nowrap",width:"70%"},side:{display:"flex",flexDirection:"column",flexWrap:"nowrap",width:"30%"}}),pe=()=>{const s=ne(),[e,t]=E.useState("focused"),n=(i,o)=>{t(o.value)};return r.jsxs(r.Fragment,{children:[r.jsx(I,{title:"Mail and Calendar",description:"Stay productive and navigate your emails and your calendar appointments"}),r.jsxs(q,{selectedValue:e,onTabSelect:n,className:s.container,children:[r.jsx(S,{value:"focused",children:"Focused"}),r.jsx(S,{value:"others",children:"Others"})]}),r.jsxs("div",{className:s.container,children:[r.jsxs("div",{className:D(s.panels,s.main),children:[e==="focused"&&r.jsxs(j,{resource:"/me/mailFolders/Inbox/messages?$orderby=InferenceClassification, createdDateTime DESC&filter=InferenceClassification eq 'Focused'",maxPages:3,scopes:["Mail.Read"],children:[r.jsx(T,{template:"value"}),r.jsx($,{template:"loading",message:"Loading your focused inbox..."})]}),e==="others"&&r.jsxs(j,{resource:"/me/mailFolders/Inbox/messages?$orderby=InferenceClassification, createdDateTime DESC&filter=InferenceClassification eq 'Other'",maxPages:3,scopes:["Mail.Read"],children:[r.jsx(T,{template:"value"}),r.jsx($,{template:"loading",message:"Loading your other inbox..."})]})]}),r.jsx("div",{className:s.side,children:r.jsx(J,{groupByDay:!0})})]})]})};export{pe as default}; diff --git a/next/sample/pr/3325/assets/PageHeader-BLfiQIXJ.js b/next/sample/pr/3325/assets/PageHeader-BLfiQIXJ.js new file mode 100644 index 0000000000..af15d9f076 --- /dev/null +++ b/next/sample/pr/3325/assets/PageHeader-BLfiQIXJ.js @@ -0,0 +1 @@ +import{r as p,j as d}from"./index-hkJM60Tb.js";import{ab as s,b9 as h,ad as c,ae as v,ai as b,aj as n,ak as m,an as u}from"./App-c9ixsJC9.js";const w=r=>s(r.root,{children:r.root.children!==void 0&&s(r.wrapper,{children:r.root.children})}),x=(r,e)=>{const{alignContent:f="center",appearance:t="default",inset:a=!1,vertical:l=!1,wrapper:i}=r,o=h("divider-");return{alignContent:f,appearance:t,inset:a,vertical:l,components:{root:"div",wrapper:"div"},root:c(v("div",{role:"separator","aria-orientation":l?"vertical":"horizontal","aria-labelledby":r.children?o:void 0,...r,ref:e}),{elementType:"div"}),wrapper:c(i,{defaultProps:{id:o,children:r.children},elementType:"div"})}},k={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},y=n({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"f11d4kpn",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"f19n0e5",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),B=n({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),j=n({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),q=r=>{const e=y(),f=B(),t=j(),{alignContent:a,appearance:l,inset:i,vertical:o}=r;return r.root.className=b(k.root,e.base,e[a],l&&e[l],!o&&f.base,!o&&i&&f.inset,!o&&f[a],o&&t.base,o&&i&&t.inset,o&&t[a],o&&r.root.children!==void 0&&t.withChildren,r.root.children===void 0&&e.childless,r.root.className),r.wrapper&&(r.wrapper.className=b(k.wrapper,r.wrapper.className)),r},g=p.forwardRef((r,e)=>{const f=x(r,e);return q(f),m("useDividerStyles_unstable")(f),w(f)});g.displayName="Divider";const z=u({divider:{alignItems:"self-start",paddingTop:"20px",marginBottom:"20px"}}),F=r=>{const e=z();return d.jsxs("div",{children:[d.jsx("h1",{children:r.title}),d.jsx("div",{children:r.description}),d.jsx(g,{className:e.divider})]})};export{F as P}; diff --git a/next/sample/pr/3325/assets/SearchPage-BdnzkGN-.js b/next/sample/pr/3325/assets/SearchPage-BdnzkGN-.js new file mode 100644 index 0000000000..7f0141224d --- /dev/null +++ b/next/sample/pr/3325/assets/SearchPage-BdnzkGN-.js @@ -0,0 +1,369 @@ +import{G as xe,b as Pe,a as ze,p as De,j as n,r as U}from"./index-hkJM60Tb.js";import{P as Te}from"./PageHeader-BLfiQIXJ.js";import{aE as ke,F as K,x as Y,D as pe,_ as l,b as p,o as R,m as X,r as Ce,aF as Se,p as $e,y as G,z as Ee,J as M,aG as oe,E as Le,K as Ie,aH as V,N as Q,I as Me,G as Fe,aI as Oe,Q as Ae,aJ as _e,X as je,a0 as Ue,av as qe,a3 as Ve,Z as He,$ as f,aK as ne,aL as O,aM as H,aN as Ne,aO as Be,a7 as E,a4 as k,a5 as D,a8 as A,aP as L,aQ as ae,aR as I,aS as N,Y as z,a2 as We,a1 as Ye,aT as Xe,w as ge,an as fe,aU as Ge,aq as ve,aV as le,ap as Qe,aW as Je,ar as Ke,as as _}from"./App-c9ixsJC9.js";import{r as me}from"./mgt-file-Dpu464qL.js";import{g as J,l as he,m as ce,O as Ze,D as et,d as tt,f as de,h as it,i as st,j as rt,k as B,T as W,S as j}from"./DataGridHeaderCell-Bb_zMzQi.js";const ot="beta";class q extends xe{static fromGraph(e){const t=new q(e.client);return t.setComponent(e.componentName),t}constructor(e,t=ot){super(e,t)}forComponent(e){const t=new q(this.client);return this.setComponent(e),t}}class nt{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(e,t)=>{var i;if(this.intersectionDetector!==null){if(this.observedElements.has(e)){(i=this.observedElements.get(e))===null||i===void 0||i.push(t);return}this.observedElements.set(e,[t]),this.intersectionDetector.observe(e)}},this.cancelRequestPosition=(e,t)=>{const i=this.observedElements.get(e);if(i!==void 0){const r=i.indexOf(t);r!==-1&&i.splice(r,1)}},this.initializeIntersectionDetector=()=>{ke.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=e=>{if(this.intersectionDetector===null)return;const t=[],i=[];e.forEach(r=>{var o;(o=this.intersectionDetector)===null||o===void 0||o.unobserve(r.target);const h=this.observedElements.get(r.target);h!==void 0&&(h.forEach(c=>{let d=t.indexOf(c);d===-1&&(d=t.length,t.push(c),i.push([])),i[d].push(r)}),this.observedElements.delete(r.target))}),t.forEach((r,o)=>{r(i[o])})},this.initializeIntersectionDetector()}}class a extends K{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=Y.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),this.anchorElement!==null&&(this.requestPositionUpdates(),this.resizeDetector!==null&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{this.anchorElement===null||this.pendingPositioningUpdate||(a.intersectionService.requestPosition(this,this.handleIntersection),a.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),this.viewportElement!==null&&a.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,a.intersectionService.cancelRequestPosition(this,this.handleIntersection),this.anchorElement!==null&&a.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),this.viewportElement!==null&&a.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),this.resizeDetector!==null&&this.resizeDetector.disconnect()},this.getViewport=()=>typeof this.viewport!="string"||this.viewport===""?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=e=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(e)&&this.updateLayout())},this.applyIntersectionEntries=e=>{const t=e.find(o=>o.target===this),i=e.find(o=>o.target===this.anchorElement),r=e.find(o=>o.target===this.viewportElement);return t===void 0||r===void 0||i===void 0?!1:!this.regionVisible||this.forceUpdate||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,r.boundingClientRect)||this.isRectDifferent(this.regionRect,t.boundingClientRect)?(this.regionRect=t.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(r.boundingClientRect.x+document.documentElement.scrollLeft,r.boundingClientRect.y+document.documentElement.scrollTop,r.boundingClientRect.width,r.boundingClientRect.height):this.viewportRect=r.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0):!1},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(e,t)=>Math.abs(e.top-t.top)>this.updateThreshold||Math.abs(e.right-t.right)>this.updateThreshold||Math.abs(e.bottom-t.bottom)>this.updateThreshold||Math.abs(e.left-t.left)>this.updateThreshold,this.handleResize=e=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,this.anchorElement===null&&(this.anchorElement=this.getAnchor()),this.viewportElement===null&&(this.viewportElement=this.getViewport()),this.currentDirection=J(this),this.startObservers())},this.updateLayout=()=>{let e,t;if(this.horizontalPositioningMode!=="uncontrolled"){const o=this.getPositioningOptions(this.horizontalInset);if(this.horizontalDefaultPosition==="center")t="center";else if(this.horizontalDefaultPosition!=="unset"){let b=this.horizontalDefaultPosition;if(b==="start"||b==="end"){const $=J(this);if($!==this.currentDirection){this.currentDirection=$,this.initialize();return}this.currentDirection===Y.ltr?b=b==="start"?"left":"right":b=b==="start"?"right":"left"}switch(b){case"left":t=this.horizontalInset?"insetStart":"start";break;case"right":t=this.horizontalInset?"insetEnd":"end";break}}const h=this.horizontalThreshold!==void 0?this.horizontalThreshold:this.regionRect!==void 0?this.regionRect.width:0,c=this.anchorRect!==void 0?this.anchorRect.left:0,d=this.anchorRect!==void 0?this.anchorRect.right:0,g=this.anchorRect!==void 0?this.anchorRect.width:0,v=this.viewportRect!==void 0?this.viewportRect.left:0,u=this.viewportRect!==void 0?this.viewportRect.right:0;(t===void 0||this.horizontalPositioningMode!=="locktodefault"&&this.getAvailableSpace(t,c,d,g,v,u)this.getAvailableSpace(o[1],c,d,g,v,u)?o[0]:o[1])}if(this.verticalPositioningMode!=="uncontrolled"){const o=this.getPositioningOptions(this.verticalInset);if(this.verticalDefaultPosition==="center")e="center";else if(this.verticalDefaultPosition!=="unset")switch(this.verticalDefaultPosition){case"top":e=this.verticalInset?"insetStart":"start";break;case"bottom":e=this.verticalInset?"insetEnd":"end";break}const h=this.verticalThreshold!==void 0?this.verticalThreshold:this.regionRect!==void 0?this.regionRect.height:0,c=this.anchorRect!==void 0?this.anchorRect.top:0,d=this.anchorRect!==void 0?this.anchorRect.bottom:0,g=this.anchorRect!==void 0?this.anchorRect.height:0,v=this.viewportRect!==void 0?this.viewportRect.top:0,u=this.viewportRect!==void 0?this.viewportRect.bottom:0;(e===void 0||this.verticalPositioningMode!=="locktodefault"&&this.getAvailableSpace(e,c,d,g,v,u)this.getAvailableSpace(o[1],c,d,g,v,u)?o[0]:o[1])}const i=this.getNextRegionDimension(t,e),r=this.horizontalPosition!==t||this.verticalPosition!==e;if(this.setHorizontalPosition(t,i),this.setVerticalPosition(e,i),this.updateRegionStyle(),!this.initialLayoutComplete){this.initialLayoutComplete=!0,this.requestPositionUpdates();return}this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),r&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top",this.verticalPosition==="start"),this.classList.toggle("bottom",this.verticalPosition==="end"),this.classList.toggle("inset-top",this.verticalPosition==="insetStart"),this.classList.toggle("inset-bottom",this.verticalPosition==="insetEnd"),this.classList.toggle("vertical-center",this.verticalPosition==="center"),this.classList.toggle("left",this.horizontalPosition==="start"),this.classList.toggle("right",this.horizontalPosition==="end"),this.classList.toggle("inset-left",this.horizontalPosition==="insetStart"),this.classList.toggle("inset-right",this.horizontalPosition==="insetEnd"),this.classList.toggle("horizontal-center",this.horizontalPosition==="center")},this.setHorizontalPosition=(e,t)=>{if(e===void 0||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=this.horizontalViewportLock?this.viewportRect.width:t.width,this.regionWidth=`${i}px`;break;case"content":i=this.regionRect.width,this.regionWidth="unset";break}let r=0;switch(e){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.leftthis.viewportRect.right)?this.translateX=this.translateX-(o-this.viewportRect.left):h>this.viewportRect.right&&!(o{if(e===void 0||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=this.verticalViewportLock?this.viewportRect.height:t.height,this.regionHeight=`${i}px`;break;case"content":i=this.regionRect.height,this.regionHeight="unset";break}let r=0;switch(e){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.topthis.viewportRect.bottom)?this.translateY=this.translateY-(o-this.viewportRect.top):h>this.viewportRect.bottom&&!(oe?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(e,t,i,r,o,h)=>{const c=t-o,d=h-(t+r);switch(e){case"start":return c;case"insetStart":return c+r;case"insetEnd":return d+r;case"end":return d;case"center":return Math.min(c,d)*2+r}},this.getNextRegionDimension=(e,t)=>{const i={height:this.regionRect!==void 0?this.regionRect.height:0,width:this.regionRect!==void 0?this.regionRect.width:0};return e!==void 0&&this.horizontalScaling==="fill"?i.width=this.getAvailableSpace(e,this.anchorRect!==void 0?this.anchorRect.left:0,this.anchorRect!==void 0?this.anchorRect.right:0,this.anchorRect!==void 0?this.anchorRect.width:0,this.viewportRect!==void 0?this.viewportRect.left:0,this.viewportRect!==void 0?this.viewportRect.right:0):this.horizontalScaling==="anchor"&&(i.width=this.anchorRect!==void 0?this.anchorRect.width:0),t!==void 0&&this.verticalScaling==="fill"?i.height=this.getAvailableSpace(t,this.anchorRect!==void 0?this.anchorRect.top:0,this.anchorRect!==void 0?this.anchorRect.bottom:0,this.anchorRect!==void 0?this.anchorRect.height:0,this.viewportRect!==void 0?this.viewportRect.top:0,this.viewportRect!==void 0?this.viewportRect.bottom:0):this.verticalScaling==="anchor"&&(i.height=this.anchorRect!==void 0?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener(he,this.update,{passive:!0}),window.addEventListener(ce,this.update,{passive:!0,capture:!0}),this.resizeDetector!==null&&this.viewportElement!==null&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener(he,this.update),window.removeEventListener(ce,this.update),this.resizeDetector!==null&&this.viewportElement!==null&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(e,t){this.$fastController.isConnected&&this.initialLayoutComplete&&(e==="auto"&&this.stopAutoUpdateEventListeners(),t==="auto"&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),this.autoUpdateMode==="auto"&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),this.autoUpdateMode==="auto"&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){this.resizeDetector!==null&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),this.anchorElement===null&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&this.pendingReset===!1&&(this.setInitialState(),pe.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}a.intersectionService=new nt;l([p],a.prototype,"anchor",void 0);l([p],a.prototype,"viewport",void 0);l([p({attribute:"horizontal-positioning-mode"})],a.prototype,"horizontalPositioningMode",void 0);l([p({attribute:"horizontal-default-position"})],a.prototype,"horizontalDefaultPosition",void 0);l([p({attribute:"horizontal-viewport-lock",mode:"boolean"})],a.prototype,"horizontalViewportLock",void 0);l([p({attribute:"horizontal-inset",mode:"boolean"})],a.prototype,"horizontalInset",void 0);l([p({attribute:"horizontal-threshold"})],a.prototype,"horizontalThreshold",void 0);l([p({attribute:"horizontal-scaling"})],a.prototype,"horizontalScaling",void 0);l([p({attribute:"vertical-positioning-mode"})],a.prototype,"verticalPositioningMode",void 0);l([p({attribute:"vertical-default-position"})],a.prototype,"verticalDefaultPosition",void 0);l([p({attribute:"vertical-viewport-lock",mode:"boolean"})],a.prototype,"verticalViewportLock",void 0);l([p({attribute:"vertical-inset",mode:"boolean"})],a.prototype,"verticalInset",void 0);l([p({attribute:"vertical-threshold"})],a.prototype,"verticalThreshold",void 0);l([p({attribute:"vertical-scaling"})],a.prototype,"verticalScaling",void 0);l([p({attribute:"fixed-placement",mode:"boolean"})],a.prototype,"fixedPlacement",void 0);l([p({attribute:"auto-update-mode"})],a.prototype,"autoUpdateMode",void 0);l([R],a.prototype,"anchorElement",void 0);l([R],a.prototype,"viewportElement",void 0);l([R],a.prototype,"initialLayoutComplete",void 0);const at=(s,e)=>X` + +`,lt={separator:"separator",presentation:"presentation"};class Z extends K{constructor(){super(...arguments),this.role=lt.separator,this.orientation=Ze.horizontal}}l([p],Z.prototype,"role",void 0);l([p],Z.prototype,"orientation",void 0);const ht=(s,e)=>X` + ${Ce(t=>t.tooltipVisible,X` + <${s.tagFor(a)} + fixed-placement="true" + auto-update-mode="${t=>t.autoUpdateMode}" + vertical-positioning-mode="${t=>t.verticalPositioningMode}" + vertical-default-position="${t=>t.verticalDefaultPosition}" + vertical-inset="${t=>t.verticalInset}" + vertical-scaling="${t=>t.verticalScaling}" + horizontal-positioning-mode="${t=>t.horizontalPositioningMode}" + horizontal-default-position="${t=>t.horizontalDefaultPosition}" + horizontal-scaling="${t=>t.horizontalScaling}" + horizontal-inset="${t=>t.horizontalInset}" + vertical-viewport-lock="${t=>t.horizontalViewportLock}" + horizontal-viewport-lock="${t=>t.verticalViewportLock}" + dir="${t=>t.currentDirection}" + ${Se("region")} + > + + + `)} + `,P={top:"top",right:"right",bottom:"bottom",left:"left",start:"start",end:"end",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",topStart:"top-start",topEnd:"top-end",bottomStart:"bottom-start",bottomEnd:"bottom-end"};let m=class extends K{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=Y.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=e=>{this.classList.toggle("top",this.region.verticalPosition==="start"),this.classList.toggle("bottom",this.region.verticalPosition==="end"),this.classList.toggle("inset-top",this.region.verticalPosition==="insetStart"),this.classList.toggle("inset-bottom",this.region.verticalPosition==="insetEnd"),this.classList.toggle("center-vertical",this.region.verticalPosition==="center"),this.classList.toggle("left",this.region.horizontalPosition==="start"),this.classList.toggle("right",this.region.horizontalPosition==="end"),this.classList.toggle("inset-left",this.region.horizontalPosition==="insetStart"),this.classList.toggle("inset-right",this.region.horizontalPosition==="insetEnd"),this.classList.toggle("center-horizontal",this.region.horizontalPosition==="center")},this.handleRegionMouseOver=e=>{this.isRegionHovered=!0},this.handleRegionMouseOut=e=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=e=>{if(this.tooltipVisible){this.isAnchorHoveredFocused=!0;return}this.startShowDelayTimer()},this.handleAnchorMouseOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=e=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout(()=>{this.updateTooltipVisibility()},60))},this.clearHideDelayTimer=()=>{this.hideDelayTimer!==null&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{if(!this.isAnchorHoveredFocused){if(this.delay>1){this.showDelayTimer===null&&(this.showDelayTimer=window.setTimeout(()=>{this.startHover()},this.delay));return}this.startHover()}},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{this.showDelayTimer!==null&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{const e=this.getRootNode();return e instanceof ShadowRoot?e.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&this.tooltipVisible)switch(e.key){case $e:this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss");break}},this.updateTooltipVisibility=()=>{if(this.visible===!1)this.hideTooltip();else if(this.visible===!0){this.showTooltip();return}else{if(this.isAnchorHoveredFocused||this.isRegionHovered){this.showTooltip();return}this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=J(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),pe.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),this.region!==null&&this.region!==void 0&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener("mouseover",this.handleRegionMouseOver),this.region.removeEventListener("mouseout",this.handleRegionMouseOut)),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange),this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(e){if(this.$fastController.isConnected){if(e!=null&&(e.removeEventListener("mouseover",this.handleAnchorMouseOver),e.removeEventListener("mouseout",this.handleAnchorMouseOut),e.removeEventListener("focusin",this.handleAnchorFocusIn),e.removeEventListener("focusout",this.handleAnchorFocusOut)),this.anchorElement!==null&&this.anchorElement!==void 0){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;this.anchorElement.parentElement!==null&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(i=>{i.id===t&&this.startShowDelayTimer()})}this.region!==null&&this.region!==void 0&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){this.region!==null&&this.region!==void 0&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.position){case P.top:case P.bottom:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case P.right:case P.left:case P.start:case P.end:this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;case P.topLeft:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="left";break;case P.topRight:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="right";break;case P.bottomLeft:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="left";break;case P.bottomRight:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="right";break;case P.topStart:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="start";break;case P.topEnd:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="end";break;case P.bottomStart:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="start";break;case P.bottomEnd:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center";break}}};l([p({mode:"boolean"})],m.prototype,"visible",void 0);l([p],m.prototype,"anchor",void 0);l([p],m.prototype,"delay",void 0);l([p],m.prototype,"position",void 0);l([p({attribute:"auto-update-mode"})],m.prototype,"autoUpdateMode",void 0);l([p({attribute:"horizontal-viewport-lock"})],m.prototype,"horizontalViewportLock",void 0);l([p({attribute:"vertical-viewport-lock"})],m.prototype,"verticalViewportLock",void 0);l([R],m.prototype,"anchorElement",void 0);l([R],m.prototype,"viewportElement",void 0);l([R],m.prototype,"verticalPositioningMode",void 0);l([R],m.prototype,"horizontalPositioningMode",void 0);l([R],m.prototype,"horizontalInset",void 0);l([R],m.prototype,"verticalInset",void 0);l([R],m.prototype,"horizontalScaling",void 0);l([R],m.prototype,"verticalScaling",void 0);l([R],m.prototype,"verticalDefaultPosition",void 0);l([R],m.prototype,"horizontalDefaultPosition",void 0);l([R],m.prototype,"tooltipVisible",void 0);l([R],m.prototype,"currentDirection",void 0);const ct=(s,e)=>G` + ${Ee("block")} :host { + box-sizing: content-box; + height: 0; + border: none; + border-top: calc(${M} * 1px) solid ${oe}; + } + + :host([orientation="vertical"]) { + border: none; + height: 100%; + margin: 0 calc(${Le} * 1px); + border-left: calc(${M} * 1px) solid ${oe}; + } + `,dt=Z.compose({baseName:"divider",template:at,styles:ct}),ut=(s,e)=>G` + :host { + position: relative; + contain: layout; + overflow: visible; + height: 0; + width: 0; + z-index: 10000; + } + + .tooltip { + box-sizing: border-box; + border-radius: calc(${Ie} * 1px); + border: calc(${M} * 1px) solid ${V}; + background: ${Q}; + color: ${Me}; + padding: 4px 12px; + height: fit-content; + width: fit-content; + ${Fe} + white-space: nowrap; + box-shadow: ${Oe}; + } + + ${s.tagFor(a)} { + display: flex; + justify-content: center; + align-items: center; + overflow: visible; + flex-direction: row; + } + + ${s.tagFor(a)}.right, + ${s.tagFor(a)}.left { + flex-direction: column; + } + + ${s.tagFor(a)}.top .tooltip::after, + ${s.tagFor(a)}.bottom .tooltip::after, + ${s.tagFor(a)}.left .tooltip::after, + ${s.tagFor(a)}.right .tooltip::after { + content: ''; + width: 12px; + height: 12px; + background: ${Q}; + border-top: calc(${M} * 1px) solid ${V}; + border-left: calc(${M} * 1px) solid ${V}; + position: absolute; + } + + ${s.tagFor(a)}.top .tooltip::after { + transform: translateX(-50%) rotate(225deg); + bottom: 5px; + left: 50%; + } + + ${s.tagFor(a)}.top .tooltip { + margin-bottom: 12px; + } + + ${s.tagFor(a)}.bottom .tooltip::after { + transform: translateX(-50%) rotate(45deg); + top: 5px; + left: 50%; + } + + ${s.tagFor(a)}.bottom .tooltip { + margin-top: 12px; + } + + ${s.tagFor(a)}.left .tooltip::after { + transform: translateY(-50%) rotate(135deg); + top: 50%; + right: 5px; + } + + ${s.tagFor(a)}.left .tooltip { + margin-right: 12px; + } + + ${s.tagFor(a)}.right .tooltip::after { + transform: translateY(-50%) rotate(-45deg); + top: 50%; + left: 5px; + } + + ${s.tagFor(a)}.right .tooltip { + margin-left: 12px; + } + `.withBehaviors(Ae(G` + :host([disabled]) { + opacity: 1; + } + ${s.tagFor(a)}.top .tooltip::after, + ${s.tagFor(a)}.bottom .tooltip::after, + ${s.tagFor(a)}.left .tooltip::after, + ${s.tagFor(a)}.right .tooltip::after { + content: ''; + width: unset; + height: unset; + } + `));class pt extends m{connectedCallback(){super.connectedCallback(),Q.setValueFor(this,_e)}}const gt=pt.compose({baseName:"tooltip",baseClass:m,template:ht,styles:ut}),C={modified:"modified on",back:"Back",next:"Next",pages:"pages",page:"Page"},ft=[je` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}.search-results{scroll-margin:100px}.search-result-grid{font-size:14px;margin:16px 4px;display:grid;grid-template-columns:32px 2fr 0fr;gap:.5rem}.search-result{font-size:14px;margin:16px 4px}.file-icon{--file-type-icon-height:32px}.search-result-info{margin:4px 0;display:inline-flex}.search-result-date{padding-top:3px;color:var(--color,var(--neutral-foreground-rest))}.search-result-date__shimmer{border-radius:4px;margin-top:2%;margin-left:5px;height:10px;width:200px}.search-result-summary{margin:4px 0;color:var(--color,var(--neutral-foreground-rest))}.search-result-thumbnail__shimmer{width:126px;height:72px}.search-result-thumbnail img{height:72px;max-width:126px;width:126px;object-fit:cover}.search-result-url{font-size:14px;font-weight:600;margin:4px 0}.search-result-url a{color:var(--color,var(--neutral-foreground-rest));text-decoration:none}.search-result-url a:hover{text-decoration:underline}.search-result-content__shimmer{border-radius:4px;margin-top:10px;height:10px}.search-result-name{font-size:16px;font-weight:600;margin:4px 0}.search-result-name__shimmer{border-radius:4px;margin-top:10px;height:10px;width:20%}.search-result-name a{color:var(--color,var(--neutral-foreground-rest));text-decoration:none}.search-result-name a:hover{text-decoration:underline}.search-result-author__shimmer{width:24px;height:24px}.search-result-icon{width:30px;height:30px}.search-result-icon__shimmer{width:32px;height:32px}.search-result-icon img{width:100%}.search-result-icon svg,.search-result-icon svg>path{width:100%;height:100%;fill:var(--neutral-foreground-rest);fill-rule:nonzero!important;clip-rule:nonzero!important}.search-results-page-active{border-bottom-style:solid;border-bottom-color:var(--accent-base-color)}.search-results-page svg,.search-results-page svg>path{height:12px;fill:var(--neutral-foreground-rest);fill-rule:nonzero!important;clip-rule:nonzero!important}.search-result-answer{box-shadow:var(--answer-box-shadow,0 3.2px 7.2px rgba(0,0,0,.132),0 .6px 1.8px rgba(0,0,0,.108));border-radius:var(--answer-border-radius,4px);border:var(--answer-border,none);padding:var(--answer-padding,10px)}.search-results-pages{margin:16px 4px} +`];var x=function(s,e,t,i){var r=arguments.length,o=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var c=s.length-1;c>=0;c--)(h=s[c])&&(o=(r<3?h(o):r>3?h(e,t,o):h(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},y=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},vt=function(s,e,t,i){function r(o){return o instanceof t?o:new t(function(h){h(o)})}return new(t||(t=Promise))(function(o,h){function c(v){try{g(i.next(v))}catch(u){h(u)}}function d(v){try{g(i.throw(v))}catch(u){h(u)}}function g(v){v.done?o(v.value):r(v.value).then(c,d)}g((i=i.apply(s,e||[])).next())})};const mt=()=>{Ue(Xe,Ye,gt,dt),me(),qe(),Ve("search-results",w)};class w extends He{static get styles(){return ft}get strings(){return C}get queryString(){return this._queryString}set queryString(e){this._queryString!==e&&(this._queryString=e,this.currentPage=1)}get from(){return(this.currentPage-1)*this.size}get size(){return this._size}set size(e){e>this.maxPageSize?this._size=this.maxPageSize:this._size=e}get searchEndpoint(){return"/search/query"}get maxPageSize(){return 1e3}constructor(){super(),this._size=10,this.entityTypes=["driveItem","listItem","site"],this.scopes=[],this.contentSources=[],this.version="v1.0",this.pagingMax=7,this.enableTopResults=!1,this.cacheEnabled=!1,this.cacheInvalidationPeriod=3e4,this.isRefreshing=!1,this.defaultFields=["webUrl","lastModifiedBy","lastModifiedDateTime","summary","displayName","name"],this.currentPage=1,this.renderContent=()=>{var e,t,i,r,o,h,c,d;let g=null,v=null,u=null;return this.hasTemplate("header")&&(v=this.renderTemplate("header",this.response)),u=this.renderFooter((t=(e=this.response)===null||e===void 0?void 0:e.value[0])===null||t===void 0?void 0:t.hitsContainers[0]),this.response&&this.hasTemplate("default")?g=this.renderTemplate("default",this.response)||f``:!((r=(i=this.response)===null||i===void 0?void 0:i.value[0])===null||r===void 0)&&r.hitsContainers[0]?g=f`${(d=(c=(h=(o=this.response)===null||o===void 0?void 0:o.value[0])===null||h===void 0?void 0:h.hitsContainers[0])===null||c===void 0?void 0:c.hits)===null||d===void 0?void 0:d.map(b=>this.renderResult(b))}`:this.hasTemplate("no-data")?g=this.renderTemplate("no-data",null):g=f``,f` + ${v} +
+ ${g} +
+ ${u}`},this.renderLoading=()=>this.renderTemplate("loading",null)||f` + ${[...Array(this.size)].map(()=>f` +
+
+
+ +
+
+
+ +
+
+
+ +
+
+ +
+
+ + +
+ ${this.fetchThumbnail&&f` +
+ +
+ `} +
+ +
+ `)} + `,this.onFirstPageClick=()=>{this.currentPage=1,this.scrollToFirstResult()},this.onPageBackClick=()=>{this.currentPage--,this.scrollToFirstResult()},this.onPageNextClick=()=>{this.currentPage++,this.scrollToFirstResult()}}args(){return[this.providerState,this.queryString,this.queryTemplate,this.entityTypes,this.contentSources,this.scopes,this.version,this.size,this.fetchThumbnail,this.fields,this.enableTopResults,this.currentPage]}refresh(e=!1){this.isRefreshing=!0,e&&this.clearState(),this._task.run()}clearState(){this.response=null}loadState(){var e,t,i,r,o,h;return vt(this,void 0,void 0,function*(){const c=Pe.globalProvider;if(this.error=null,!(!c||c.state!==ze.SignedIn)){if(this.queryString){try{const d=this.getRequestOptions();let g;const v=JSON.stringify({endpoint:`${this.version}${this.searchEndpoint}`,requestOptions:d});let u=null;if(this.shouldRetrieveCache()){g=ne.getCache(O.search,O.search.stores.responses);const b=H()?yield g.getValue(v):null;b&&Ne(this.cacheInvalidationPeriod)>Date.now()-b.timeCached&&(u=JSON.parse(b.response))}if(!u){const b=c.graph.forComponent(this);let $=b.api(this.searchEndpoint).version(this.version);if(!((e=this.scopes)===null||e===void 0)&&e.length&&($=$.middlewareOptions(De(this.scopes))),u=yield $.post({requests:[d]}),this.fetchThumbnail){const ee=b.createBatch(),te=q.fromGraph(b).createBatch(),we=!((t=u.value)===null||t===void 0)&&t.length&&(!((i=u.value[0].hitsContainers)===null||i===void 0)&&i.length)?(o=(r=u.value[0].hitsContainers[0])===null||r===void 0?void 0:r.hits)!==null&&o!==void 0?o:[]:[];for(const S of we){const T=S.resource;(T.size>0||!((h=T.webUrl)===null||h===void 0)&&h.endsWith(".aspx"))&&(T["@odata.type"]==="#microsoft.graph.driveItem"||T["@odata.type"]==="#microsoft.graph.listItem")&&(T["@odata.type"]==="#microsoft.graph.listItem"?te.get(S.hitId.toString(),`/sites/${T.parentReference.siteId}/pages/${T.id}`):ee.get(S.hitId.toString(),`/drives/${T.parentReference.driveId}/items/${T.id}/thumbnails/0/medium`))}const ie=S=>{if(S&&S.size>0)for(const[T,se]of S){const re=u.value[0].hitsContainers[0].hits[T],Re=re.resource["@odata.type"]==="#microsoft.graph.listItem"?{url:se.content.thumbnailWebUrl}:{url:se.content.url};re.resource.thumbnail=Re}};try{ie(yield ee.executeAll()),ie(yield te.executeAll())}catch{}}this.shouldUpdateCache()&&u&&(g=ne.getCache(O.search,O.search.stores.responses),yield g.putValue(v,{response:JSON.stringify(u)}))}Be(this.response,u)||(this.response=u)}catch(d){this.error=d}this.response&&(this.error=null)}else this.response=null;this.isRefreshing=!1,this.fireCustomEvent("dataChange",{response:this.response,error:this.error})}})}renderResult(e){const t=this.getResourceType(e.resource);if(this.hasTemplate(`result-${t}`))return this.renderTemplate(`result-${t}`,e,e.hitId);switch(e.resource["@odata.type"]){case"#microsoft.graph.driveItem":return this.renderDriveItem(e);case"#microsoft.graph.site":return this.renderSite(e);case"#microsoft.graph.person":return this.renderPerson(e);case"#microsoft.graph.drive":case"#microsoft.graph.list":return this.renderList(e);case"#microsoft.graph.listItem":return this.renderListItem(e);case"#microsoft.graph.search.bookmark":return this.renderBookmark(e);case"#microsoft.graph.search.acronym":return this.renderAcronym(e);case"#microsoft.graph.search.qna":return this.renderQnA(e);default:return this.renderDefault(e)}}renderFooter(e){if(this.pagingRequired(e)){const t=this.getActivePages(e.total);return f` +
+ ${this.renderPreviousPage()} + ${this.renderFirstPage(t)} + ${this.renderAllPages(t)} + ${this.renderNextPage()} +
+ `}}pagingRequired(e){return(e==null?void 0:e.moreResultsAvailable)||this.currentPage*this.size<(e==null?void 0:e.total)}getActivePages(e){const t=()=>{const o=this.currentPage-Math.floor(this.pagingMax/2)-1;return o>=Math.floor(this.pagingMax/2)?o:0},i=[],r=t();if(r+1>this.pagingMax-this.currentPage||this.pagingMax===this.currentPage)for(let o=r+1;of` + + ${t} + `)}`}renderFirstPage(e){return f` + ${e.some(t=>t===1)?E:f` + + 1 + `?f` + + ... + `:E}`}getDotButtonTitle(){return`${C.back} ${Math.ceil(this.pagingMax/2)} ${C.pages}`}renderPreviousPage(){return this.currentPage>1?f` + + ${k(D.ChevronLeft)} + `:E}renderNextPage(){return this.isLastPage()?E:f` + + ${k(D.ChevronRight)} + `}onPageClick(e){this.currentPage=e,this.scrollToFirstResult()}isLastPage(){return this.currentPage===Math.ceil(this.response.value[0].hitsContainers[0].total/this.size)}scrollToFirstResult(){this.renderRoot.querySelector(".search-results").scrollIntoView({block:"start",behavior:"smooth"})}getResourceType(e){return e["@odata.type"].split(".").pop()}renderDriveItem(e){var t,i;const r=e.resource;return A` +
+
+ + +
+
+ +
+
+ + +
+
+   ${C.modified} ${ae(new Date(r.lastModifiedDateTime))} +
+
+
+
+ ${((t=r.thumbnail)===null||t===void 0?void 0:t.url)&&f` +
+ ${r.name} +
`} + +
+ + `}renderSite(e){const t=e.resource;return f` +
+
+ ${this.getResourceIcon(t)} +
+
+ +
+ +
+
+
+
+ + `}renderList(e){const t=e.resource;return A` +
+
+ + +
+ +
+ + `}renderListItem(e){var t,i;const r=e.resource;return A` +
+
+ ${r.webUrl.endsWith(".aspx")?k(D.News):k(D.FileOuter)} +
+
+ +
+
+ + +
+
+   ${C.modified} ${ae(new Date(r.lastModifiedDateTime))} +
+
+
+
+ ${((t=r.thumbnail)===null||t===void 0?void 0:t.url)&&f` +
+ ${L(r.name||N(r.webUrl))} +
`} +
+ + `}renderPerson(e){const t=e.resource;return A` +
+ + +
+ + `}renderBookmark(e){return this.renderAnswer(e,D.DoubleBookmark)}renderAcronym(e){return this.renderAnswer(e,D.BookOpen)}renderQnA(e){return this.renderAnswer(e,D.BookQuestion)}renderAnswer(e,t){const i=e.resource;return f` +
+
+ ${k(t)} +
+
+ +
${i.description}
+
+
+ + `}renderDefault(e){const t=e.resource,i=this.getResourceUrl(t);return f` +
+
+ ${this.getResourceIcon(t)} +
+
+
+ ${i?f` + ${this.getResourceName(t)} + `:f` + ${this.getResourceName(t)} + `} +
+
+
+
+ + `}getResourceUrl(e){return e.webUrl||e.webLink||null}getResourceName(e){return e.displayName||e.subject||L(e.name)}getResultSummary(e){var t;return I(e.summary||((t=e.resource)===null||t===void 0?void 0:t.description)||null)}getResourceIcon(e){switch(e["@odata.type"]){case"#microsoft.graph.site":return k(D.Globe);case"#microsoft.graph.message":return k(D.Email);case"#microsoft.graph.event":return k(D.Event);case"microsoft.graph.chatMessage":return k(D.SmallChat);default:return k(D.FileOuter)}}shouldRetrieveCache(){return H()&&this.cacheEnabled&&!this.isRefreshing}shouldUpdateCache(){return H()&&this.cacheEnabled}getRequestOptions(){const e={entityTypes:this.entityTypes,query:{queryString:this.queryString},from:this.from?this.from:void 0,size:this.size?this.size:void 0,fields:this.getFields(),enableTopResults:this.enableTopResults?this.enableTopResults:void 0};return this.entityTypes.includes("externalItem")&&(e.contentSources=this.contentSources),this.version==="beta"&&(e.query.queryTemplate=this.queryTemplate?this.queryTemplate:void 0),e}getFields(){if(this.fields)return this.defaultFields.concat(this.fields)}}x([z({attribute:"query-string",type:String}),y("design:type",String),y("design:paramtypes",[String])],w.prototype,"queryString",null);x([z({attribute:"query-template",type:String}),y("design:type",String)],w.prototype,"queryTemplate",void 0);x([z({attribute:"entity-types",converter:s=>s.split(",").map(e=>e.trim()),type:String}),y("design:type",Array)],w.prototype,"entityTypes",void 0);x([z({attribute:"scopes",converter:(s,e)=>s?s.toLowerCase().split(","):null}),y("design:type",Array)],w.prototype,"scopes",void 0);x([z({attribute:"content-sources",converter:(s,e)=>s?s.toLowerCase().split(","):null}),y("design:type",Array)],w.prototype,"contentSources",void 0);x([z({attribute:"version",reflect:!0,type:String}),y("design:type",Object)],w.prototype,"version",void 0);x([z({attribute:"size",reflect:!0,type:Number}),y("design:type",Number),y("design:paramtypes",[Object])],w.prototype,"size",null);x([z({attribute:"paging-max",reflect:!0,type:Number}),y("design:type",Object)],w.prototype,"pagingMax",void 0);x([z({attribute:"fetch-thumbnail",type:Boolean}),y("design:type",Boolean)],w.prototype,"fetchThumbnail",void 0);x([z({attribute:"fields",converter:s=>s.split(",").map(e=>e.trim()),type:String}),y("design:type",Array)],w.prototype,"fields",void 0);x([z({attribute:"enable-top-results",reflect:!0,type:Boolean}),y("design:type",Object)],w.prototype,"enableTopResults",void 0);x([z({attribute:"cache-enabled",reflect:!0,type:Boolean}),y("design:type",Object)],w.prototype,"cacheEnabled",void 0);x([z({attribute:"cache-invalidation-period",reflect:!0,type:Number}),y("design:type",Object)],w.prototype,"cacheInvalidationPeriod",void 0);x([We(),y("design:type",Object)],w.prototype,"response",void 0);x([z({attribute:!1}),y("design:type",Object)],w.prototype,"currentPage",void 0);const bt=ge("file",me),F=ge("search-results",mt),yt=s=>n.jsx(n.Fragment,{children:s.searchTerm&&n.jsxs(n.Fragment,{children:[s.searchTerm!=="*"&&n.jsx(F,{entityTypes:["bookmark"],queryString:s.searchTerm,version:"beta",size:1,scopes:["Bookmark.Read.All"],children:n.jsx(wt,{template:"no-data"})}),n.jsx(F,{entityTypes:["driveItem","listItem","site"],queryString:s.searchTerm,scopes:["Files.Read.All","Files.ReadWrite.All","Sites.Read.All"],fetchThumbnail:!0})]})}),wt=s=>n.jsx(n.Fragment,{}),Rt=s=>n.jsx(n.Fragment,{children:n.jsx(F,{entityTypes:["people"],size:20,queryString:s.searchTerm,version:"beta"})}),xt=s=>n.jsx(n.Fragment,{children:s.searchTerm&&n.jsx(F,{entityTypes:["externalItem"],contentSources:["/external/connections/contosoBlogPosts"],queryString:s.searchTerm,scopes:["ExternalItem.Read.All"],version:"beta"})}),be=fe({container:{...ve.gap("16px"),display:"flex",flexDirection:"row",flexWrap:"wrap"},card:{width:"300px",height:"fit-content",maxWidth:"100%"},caption:{color:le.colorNeutralForeground3},noDataSearchTerm:{fontWeight:le.fontWeightSemibold},emptyContainer:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:"calc(100vh - 300px)"},fileContainer:{display:"flex"},fileTitle:{paddingLeft:"10px",alignSelf:"center"},noDataMessage:{paddingLeft:"10px"},noDataIcon:{fontSize:"128px"},row:{cursor:"pointer"}}),ye=30,Pt=s=>n.jsx(n.Fragment,{children:s.searchTerm&&n.jsxs(F,{entityTypes:["driveItem"],queryString:s.searchTerm,fetchThumbnail:!0,queryTemplate:"({searchTerms}) ContentTypeId:0x0101*",version:"beta",fields:["createdBy","lastModifiedDateTime","Title","DefaultEncodingURL"],size:ye,cacheEnabled:!0,children:[n.jsx(ue,{template:"default"}),n.jsx(ue,{template:"loading"}),n.jsx(Dt,{template:"no-data"})]})}),zt=(s,e)=>[B({columnId:"name",renderHeaderCell:()=>"Name",renderCell:i=>n.jsx(W,{children:s?n.jsx(j,{shape:"rectangle",style:{width:"120px"}}):n.jsxs("div",{className:e.fileContainer,children:[n.jsx(bt,{fileDetails:i.resource,view:"image"}),n.jsx("span",{className:e.fileTitle,children:i.resource.listItem.fields.title})]})})}),B({columnId:"modified",renderHeaderCell:()=>"Modified",renderCell:i=>n.jsx(W,{children:s?n.jsx(j,{shape:"rectangle",style:{width:"120px"}}):Tt(new Date(i.resource.lastModifiedDateTime))})}),B({columnId:"owner",renderHeaderCell:()=>"Owner",renderCell:i=>n.jsx(W,{children:s?n.jsxs("div",{style:{display:"grid",alignItems:"center",position:"relative",gridTemplateColumns:"min-content 80%",gap:"10px"},children:[n.jsx(j,{shape:"circle",size:32}),n.jsx(j,{style:{width:"120px"}})]}):n.jsx(Qe,{personQuery:i.resource.createdBy.user.email,view:"oneline",personCardInteraction:"hover"})})})],ue=s=>{var r,o,h;const e=be(),[t]=U.useState((h=(o=(r=s.dataContext.value)==null?void 0:r[0])==null?void 0:o.hitsContainers[0])==null?void 0:h.hits),i=c=>{const d=new URL(c.resource.listItem.fields.defaultEncodingURL);d.searchParams.append("Web","1"),window.open(d.toString(),"_blank")};return n.jsx("div",{children:n.jsxs(et,{columns:zt(s.template==="loading",e),items:s.template==="loading"?[...Array(ye)]:t,children:[n.jsx(tt,{children:n.jsx(de,{children:({renderHeaderCell:c})=>n.jsx(it,{children:c()})})}),n.jsx(st,{children:({item:c,rowId:d})=>n.jsx(de,{className:e.row,onClick:()=>i(c),children:({renderCell:g})=>n.jsx(rt,{children:g(c)})},d)})]})})},Dt=s=>{var i;const e=be(),[t]=U.useState((i=s.dataContext.value[0])==null?void 0:i.searchTerms);return n.jsxs("div",{className:e.emptyContainer,children:[n.jsx("div",{children:n.jsx(Ge,{className:e.noDataIcon})}),n.jsxs("div",{className:e.noDataMessage,children:["We couldn't find any results for ",n.jsx("span",{className:e.noDataSearchTerm,children:t.join(" ")})]})]})},Tt=s=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate());if(s>=t)return s.toLocaleString("default",{hour:"numeric",minute:"numeric"});const i=new Date(t);if(i.setDate(e.getDate()-e.getDay()),s>=i)return s.toLocaleString("default",{hour:"numeric",minute:"numeric",weekday:"short"});const r=new Date(i);return r.setDate(i.getDate()-7),s>=r?s.toLocaleString("default",{day:"numeric",month:"numeric",weekday:"short"}):s.toLocaleString("default",{day:"numeric",month:"numeric",year:"numeric"})},kt=fe({panels:{...ve.padding("10px")},container:{maxWidth:"1028px",width:"100%"}}),Mt=()=>{const s=kt(),e=Je(),[t]=U.useState(new URLSearchParams(window.location.search).get("q")),[i,r]=U.useState("allResults"),o=(h,c)=>{r(c.value)};return n.jsxs(n.Fragment,{children:[n.jsx(Te,{title:"Search",description:"Use this Search Center to test Microsot Graph Toolkit search components capabilities"}),n.jsxs("div",{className:s.container,children:[n.jsxs(Ke,{selectedValue:i,onTabSelect:o,children:[n.jsx(_,{value:"allResults",children:"All Results"}),n.jsx(_,{value:"driveItems",children:"Files"}),n.jsx(_,{value:"externalItems",children:"External Items"}),n.jsx(_,{value:"people",children:"People"})]}),n.jsxs("div",{className:s.panels,children:[i==="allResults"&&n.jsx(yt,{searchTerm:t??e.state.searchTerm}),i==="driveItems"&&n.jsx(Pt,{searchTerm:t??e.state.searchTerm}),i==="externalItems"&&n.jsx(xt,{searchTerm:t??e.state.searchTerm}),i==="people"&&n.jsx(Rt,{searchTerm:t??e.state.searchTerm})]})]})]})};export{Mt as default}; diff --git a/next/sample/pr/3325/assets/TaxonomyPage-CEcnOueD.js b/next/sample/pr/3325/assets/TaxonomyPage-CEcnOueD.js new file mode 100644 index 0000000000..2f2a9cb8c4 --- /dev/null +++ b/next/sample/pr/3325/assets/TaxonomyPage-CEcnOueD.js @@ -0,0 +1,69 @@ +import{r as p,d as Ct,h as Tt,j as E}from"./index-hkJM60Tb.js";import{P as Et}from"./PageHeader-BLfiQIXJ.js";import{X as Bt,a0 as It,a3 as Ft,Z as zt,a8 as me,$ as se,Y as A,a2 as Le,w as Pt,ah as St,bu as Nt,ab as R,ag as Dt,ac as jt,af as ye,ad as X,ae as oe,ai as j,ak as re,aX as At,bb as Pe,c1 as Rt,br as qt,aa as Mt,aj as W,b0 as Ot,b3 as Z,c2 as ce,c3 as K,b2 as We,b4 as He,bj as Lt,bf as Wt,an as Ht,aq as H,aV as Gt,c4 as Ut,c5 as Vt}from"./App-c9ixsJC9.js";import{r as Kt}from"./mgt-get-nlun5DqF.js";import{r as $t}from"./mgt-spinner-DCTBtyM4.js";import{f as Jt,a as Qt}from"./index-DlteEK7B.js";import{G as Ge}from"./get-Bki3P7Iw.js";const Yt={termsetIdRequired:"The termsetId property or termset-id attribute is required",noTermsFound:"No terms found",comboboxPlaceholder:"Select a term",loadingMessage:"Loading..."},Xt=[Bt` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{--max-height:var(--taxonomy-picker-list-max-height, 380px)}:host .picker{background-color:var(--taxonomy-picker-background-color,transparent)}:host fluent-combobox::part(selected-value)::placeholder{color:var(--taxonomy-picker-placeholder-color,var(--input-filled-placeholder-rest))}:host fluent-combobox::part(selected-value):hover::placeholder{color:var(--taxonomy-picker-placeholder-color-hover,var(--secondary-text-hover-color))}[dir=rtl] .picker{direction:rtl} +`];var N=function(o,e,t,r){var i=arguments.length,n=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,r);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},D=function(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)};const Zt=()=>{It(Qt,Jt),$t(),Kt(),Ft("taxonomy-picker",S)};class S extends zt{get strings(){return Yt}static get styles(){return Xt}constructor(){super(),this.version="beta",this.position="below",this.selectedTerm=null,this.cacheEnabled=!1,this.cacheInvalidationPeriod=0,this.renderLoading=()=>this.terms?this.renderContent():this.renderTemplate("loading",null,"loading")||me` +
+ +
+ ${this.strings.loadingMessage} +
+
+ `,this.renderContent=()=>{var e;return this.error?this.renderError():this.noTerms?this.renderNoData():((e=this.terms)===null||e===void 0?void 0:e.length)>0?this.renderTaxonomyPicker():this.renderGet()},this.renderError=()=>this.renderTemplate("error",null,"error")||se`${this.error}`,this.placeholder=this.strings.comboboxPlaceholder,this.noTerms=!1}refresh(e=!1){e&&this.clearState()}clearState(){this.terms=null,this.error=null,this.noTerms=!1}renderNoData(){return this.renderTemplate("no-data",null)||se`${this.strings.noTermsFound}`}renderTaxonomyPicker(){return me` + + ${this.terms.map(e=>this.renderTaxonomyPickerItem(e))} + + `}renderTaxonomyPickerItem(e){const t=this.defaultSelectedTermId&&this.defaultSelectedTermId===e.id;return se` + this.handleClick(r,e)}> ${this.renderTemplate("term",{term:e},e.id)||e.labels[0].name} + `}renderGet(){if(!this.termsetId)return se`${this.strings.termsetIdRequired}`;let e=`/termStore/sets/${this.termsetId}/children`;return this.termId&&(e=`/termStore/sets/${this.termsetId}/terms/${this.termId}/children`),this.siteId&&(e=`/sites/${this.siteId}${e}`),e+="?$select=id,labels,descriptions,properties",me` + + `}firstUpdated(e){super.firstUpdated(e),this.renderRoot.addEventListener("dataChange",r=>this.handleDataChange(r))}handleDataChange(e){const t=e.detail.error?e.detail.error:null;if(t){this.error=t;return}this.locale&&(this.locale=this.locale.toLowerCase());const i=e.detail.response.value.map(n=>{const s=n.labels;if(s&&s.length>0&&this.locale){const l=s.find(a=>a.languageTag.toLowerCase()===this.locale);l&&(n.labels=[l,...s.filter(a=>a.languageTag.toLowerCase()!==this.locale)])}return n});this.terms=i,i.length===0&&(this.noTerms=!0)}handleClick(e,t){this.selectedTerm=t,this.fireCustomEvent("selectionChanged",t)}}N([A({attribute:"term-set-id",type:String}),D("design:type",String)],S.prototype,"termsetId",void 0);N([A({attribute:"term-id",type:String}),D("design:type",String)],S.prototype,"termId",void 0);N([A({attribute:"site-id",type:String}),D("design:type",String)],S.prototype,"siteId",void 0);N([A({attribute:"locale",type:String}),D("design:type",String)],S.prototype,"locale",void 0);N([A({attribute:"version",type:String}),D("design:type",Object)],S.prototype,"version",void 0);N([A({attribute:"placeholder",type:String}),D("design:type",String)],S.prototype,"placeholder",void 0);N([A({attribute:"position",type:String,converter:o=>o==="above"?"above":"below"}),D("design:type",String)],S.prototype,"position",void 0);N([A({attribute:"default-selected-term-id",type:String}),D("design:type",String)],S.prototype,"defaultSelectedTermId",void 0);N([A({attribute:"selected-term",type:Object}),D("design:type",Object)],S.prototype,"selectedTerm",void 0);N([A({attribute:"disabled",type:Boolean}),D("design:type",Boolean)],S.prototype,"disabled",void 0);N([A({attribute:"cache-enabled",type:Boolean}),D("design:type",Object)],S.prototype,"cacheEnabled",void 0);N([A({attribute:"cache-invalidation-period",type:Number}),D("design:type",Object)],S.prototype,"cacheInvalidationPeriod",void 0);N([Le(),D("design:type",Array)],S.prototype,"terms",void 0);N([Le(),D("design:type",Boolean)],S.prototype,"noTerms",void 0);const eo=Pt("taxonomy-picker",Zt);function to(o){return o!==null&&typeof o=="object"&&!Array.isArray(o)&&!p.isValidElement(o)}const Ue=St(void 0),oo={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:ro}=Ue,te=o=>Nt(Ue,(e=oo)=>o(e)),io=(o,e)=>R(o.root,{children:R(ro,{value:e.accordion,children:o.root.children})}),no=(o,e)=>{const{openItems:t,defaultOpenItems:r,multiple:i=!1,collapsible:n=!1,onToggle:s,navigation:l}=o,[a,c]=Dt({state:p.useMemo(()=>lo(t),[t]),defaultState:r&&(()=>so({defaultOpenItems:r,multiple:i})),initialState:[]}),d=jt({circular:l==="circular",tabbable:!0}),u=ye(f=>{const h=ao(f.value,a,i,n);s==null||s(f.event,{value:f.value,openItems:h}),c(h)});return{collapsible:n,multiple:i,navigation:l,openItems:a,requestToggle:u,components:{root:"div"},root:X(oe("div",{...o,...l?d:void 0,ref:e}),{elementType:"div"})}};function so({defaultOpenItems:o,multiple:e}){return o!==void 0?Array.isArray(o)?e?o:[o[0]]:[o]:[]}function ao(o,e,t,r){if(t)if(e.includes(o)){if(e.length>1||r)return e.filter(i=>i!==o)}else return[...e,o].sort();else return e[0]===o&&r?[]:[o];return e}function lo(o){if(o!==void 0)return Array.isArray(o)?o:[o]}function co(o){const{navigation:e,openItems:t,requestToggle:r,multiple:i,collapsible:n}=o;return{accordion:{navigation:e,openItems:t,requestToggle:r,collapsible:n,multiple:i}}}const uo={root:"fui-Accordion"},fo=o=>(o.root.className=j(uo.root,o.root.className),o),we=p.forwardRef((o,e)=>{const t=no(o,e),r=co(t);return fo(t),re("useAccordionStyles_unstable")(t),io(t,r)});we.displayName="Accordion";const ho=(o,e)=>{const{value:t,disabled:r=!1}=o,i=te(l=>l.requestToggle),n=te(l=>l.openItems.includes(t)),s=ye(l=>i({event:l,value:t}));return{open:n,value:t,disabled:r,onHeaderClick:s,components:{root:"div"},root:X(oe("div",{ref:e,...o}),{elementType:"div"})}};function mo(o){const{disabled:e,open:t,value:r,onHeaderClick:i}=o;return{accordionItem:p.useMemo(()=>({disabled:e,open:t,value:r,onHeaderClick:i}),[e,t,r,i])}}const Ve=p.createContext(void 0),po={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:go}=Ve,Ke=()=>{var o;return(o=p.useContext(Ve))!==null&&o!==void 0?o:po},vo=(o,e)=>R(o.root,{children:R(go,{value:e.accordionItem,children:o.root.children})}),bo={root:"fui-AccordionItem"},_o=o=>(o.root.className=j(bo.root,o.root.className),o),ke=p.forwardRef((o,e)=>{const t=ho(o,e),r=mo(t);return _o(t),re("useAccordionItemStyles_unstable")(t),vo(t,r)});ke.displayName="AccordionItem";const yo=(o,e)=>{const{icon:t,button:r,expandIcon:i,inline:n=!1,size:s="medium",expandIconPosition:l="start"}=o,{value:a,disabled:c,open:d}=Ke(),u=te(b=>b.requestToggle),f=te(b=>!b.collapsible&&b.openItems.length===1&&d),{dir:h}=At();let g;l==="end"?g=d?-90:90:g=d?90:h!=="rtl"?0:180;const v=X(r,{elementType:"button",defaultProps:{disabled:c,disabledFocusable:f,"aria-expanded":d,type:"button"}});return v.onClick=ye(b=>{if(to(r)){var y;(y=r.onClick)===null||y===void 0||y.call(r,b)}b.defaultPrevented||u({value:a,event:b})}),{disabled:c,open:d,size:s,inline:n,expandIconPosition:l,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:X(oe("div",{ref:e,...o}),{elementType:"div"}),icon:Pe(t,{elementType:"div"}),expandIcon:Pe(i,{renderByDefault:!0,defaultProps:{children:p.createElement(Rt,{style:{transform:`rotate(${g}deg)`}}),"aria-hidden":!0},elementType:"span"}),button:qt(v.as,v)}},wo=p.createContext(void 0),{Provider:ko}=wo,xo=(o,e)=>R(ko,{value:e.accordionHeader,children:R(o.root,{children:Mt(o.button,{children:[o.expandIconPosition==="start"&&o.expandIcon&&R(o.expandIcon,{}),o.icon&&R(o.icon,{}),o.root.children,o.expandIconPosition==="end"&&o.expandIcon&&R(o.expandIcon,{})]})})}),ae={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},Co=W({resetButton:{B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",Bv0vk6g:"f37px4s",fsow6f:"fgusgyc"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",f6g5ot:0,Boxcth7:0,Bhdgwq3:0,hgwjuy:0,Bshpdp8:0,Bsom6fd:0,Blkhhs4:0,Bonggc9:0,Ddfuxk:0,i03rao:0,kclons:0,clg4pj:0,Bpqj9nj:0,B6dhp37:0,Bf4ptjt:0,Bqtpl0w:0,i4rwgc:"ffwy5si",Dah5zi:0,B1tsrr9:0,qqdqy8:0,Bkh64rk:0,e3fwne:"f3znvyf",J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},root:{sj55zd:"f19n0e5",De3pzq:"f1c21dwh",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},rootDisabled:{Bcmaq0h:"fwrgwhw",sj55zd:"f1s2aq7o"},rootInline:{mc9l5x:"f14t3ns0"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1rmphuq","f26yw9j"],sshi5w:"f5pgtk9",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B7ck84d:"f1ewtqcl"},buttonSmall:{sshi5w:"f1nxs5xn",Be2twd7:"fy9rknc"},buttonLarge:{Bg96gwp:"faaz57k",Be2twd7:"fod5ikn"},buttonExtraLarge:{Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},buttonInline:{mc9l5x:"ftuwxu6"},buttonExpandIconEndNoIcon:{uwmqm3:["f1uw59to","fw5db7e"]},buttonExpandIconEnd:{z189sj:["f11gcy0p","f1ng84yb"]},buttonDisabled:{Bceei9c:"fdrzuqr"},expandIcon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},expandIconStart:{z189sj:["f1vdfbxk","f1f5gg8d"]},expandIconEnd:{Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"flqd7gy",mc9l5x:"f22iagw",Brf1p80:"f9c4gz4",uwmqm3:["f1f5gg8d","f1vdfbxk"]},icon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",z189sj:["f1vdfbxk","f1f5gg8d"],Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"}},{d:[".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".f37px4s{-webkit-appearance:button;}",".fgusgyc{text-align:unset;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",[".ffwy5si[data-fui-focus-visible]::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f3znvyf[data-fui-focus-visible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f1s184ao{margin:0;}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fwrgwhw{background-image:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f14t3ns0{display:inline-block;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",[".f1rmphuq{padding:0 var(--spacingHorizontalM) 0 var(--spacingHorizontalMNudge);}",{p:-1}],[".f26yw9j{padding:0 var(--spacingHorizontalMNudge) 0 var(--spacingHorizontalM);}",{p:-1}],".f5pgtk9{min-height:44px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1ewtqcl{box-sizing:border-box;}",".f1nxs5xn{min-height:32px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".ftuwxu6{display:inline-flex;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fdrzuqr{cursor:not-allowed;}",".f1l02sjl{height:100%;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".flqd7gy{flex-basis:0%;}",".f9c4gz4{justify-content:flex-end;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),To=o=>{const e=Co();return o.root.className=j(ae.root,e.root,o.inline&&e.rootInline,o.disabled&&e.rootDisabled,o.root.className),o.button.className=j(ae.button,e.resetButton,e.button,e.focusIndicator,o.expandIconPosition==="end"&&!o.icon&&e.buttonExpandIconEndNoIcon,o.expandIconPosition==="end"&&e.buttonExpandIconEnd,o.inline&&e.buttonInline,o.size==="small"&&e.buttonSmall,o.size==="large"&&e.buttonLarge,o.size==="extra-large"&&e.buttonExtraLarge,o.disabled&&e.buttonDisabled,o.button.className),o.expandIcon&&(o.expandIcon.className=j(ae.expandIcon,e.expandIcon,o.expandIconPosition==="start"&&e.expandIconStart,o.expandIconPosition==="end"&&e.expandIconEnd,o.expandIcon.className)),o.icon&&(o.icon.className=j(ae.icon,e.icon,o.icon.className)),o};function Eo(o){const{disabled:e,expandIconPosition:t,open:r,size:i}=o;return{accordionHeader:p.useMemo(()=>({disabled:e,expandIconPosition:t,open:r,size:i}),[e,t,r,i])}}const xe=p.forwardRef((o,e)=>{const t=yo(o,e),r=Eo(t);return To(t),re("useAccordionHeaderStyles_unstable")(t),xo(t,r)});xe.displayName="AccordionHeader";const Bo=(o,e)=>{const{open:t}=Ke(),r=Ot({focusable:{excludeFromMover:!0}}),i=te(n=>n.navigation);return{open:t,components:{root:"div"},root:X(oe("div",{ref:e,...o,...i&&r}),{elementType:"div"})}},Io=o=>o.open?R(o.root,{children:o.root.children}):null,Fo={root:"fui-AccordionPanel"},zo=W({root:{jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1axvtxu"}},{d:[[".f1axvtxu{margin:0 var(--spacingHorizontalM);}",{p:-1}]]}),Po=o=>{const e=zo();return o.root.className=j(Fo.root,e.root,o.root.className),o},Ce=p.forwardRef((o,e)=>{const t=Bo(o,e);return Po(t),re("useAccordionPanelStyles_unstable")(t),Io(t)});Ce.displayName="AccordionPanel";const $e=(o,e)=>{const{wrap:t,truncate:r,block:i,italic:n,underline:s,strikethrough:l,size:a,font:c,weight:d,align:u}=o;return{align:u??"start",block:i??!1,font:c??"base",italic:n??!1,size:a??300,strikethrough:l??!1,truncate:r??!1,underline:s??!1,weight:d??"regular",wrap:t??!0,components:{root:"span"},root:X(oe("span",{ref:e,...o}),{elementType:"span"})}},Je=o=>R(o.root,{}),So={root:"fui-Text"},No=W({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),Qe=o=>{const e=No();return o.root.className=j(So.root,e.root,o.wrap===!1&&e.nowrap,o.truncate&&e.truncate,o.block&&e.block,o.italic&&e.italic,o.underline&&e.underline,o.strikethrough&&e.strikethrough,o.underline&&o.strikethrough&&e.strikethroughUnderline,o.size===100&&e.base100,o.size===200&&e.base200,o.size===400&&e.base400,o.size===500&&e.base500,o.size===600&&e.base600,o.size===700&&e.hero700,o.size===800&&e.hero800,o.size===900&&e.hero900,o.size===1e3&&e.hero1000,o.font==="monospace"&&e.monospace,o.font==="numeric"&&e.numeric,o.weight==="medium"&&e.weightMedium,o.weight==="semibold"&&e.weightSemibold,o.weight==="bold"&&e.weightBold,o.align==="center"&&e.alignCenter,o.align==="end"&&e.alignEnd,o.align==="justify"&&e.alignJustify,o.root.className),o},Ye=p.forwardRef((o,e)=>{const t=$e(o,e);return Qe(t),re("useTextStyles_unstable")(t),Je(t)});Ye.displayName="Text";function Do(o){const{useStyles:e,className:t,displayName:r}=o,i=p.forwardRef((n,s)=>{const l=e(),a=$e(n,s);return Qe(a),a.root.className=j(t,a.root.className,l.root,n.className),Je(a)});return i.displayName=r,i}const jo={root:"fui-Caption1"},Ao=W({root:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),Ro=Do({useStyles:Ao,className:jo.root,displayName:"Caption1"}),Xe=Symbol.for("fui.slotRenderFunction"),fe=Symbol.for("fui.slotElementType");function Te(o,e){const{defaultProps:t,elementType:r}=e,i=qo(o),n={...t,...i,[fe]:r};return i&&typeof i.children=="function"&&(n[Xe]=i.children,n.children=t==null?void 0:t.children),n}function Q(o,e){if(!(o===null||o===void 0&&!e.renderByDefault))return Te(o,e)}function qo(o){return typeof o=="string"||typeof o=="number"||Array.isArray(o)||p.isValidElement(o)?{children:o}:o}function Se(o){return!!(o!=null&&o.hasOwnProperty(fe))}const B=(...o)=>{const e={};for(const t of o){const r=Array.isArray(t)?t:Object.keys(t);for(const i of r)e[i]=1}return e},Mo=B(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),Oo=B(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Lo=B(["itemID","itemProp","itemRef","itemScope","itemType"]),I=B(Oo,Mo,Lo),Wo=B(I,["form"]),Ze=B(I,["height","loop","muted","preload","src","width"]),Ho=B(Ze,["poster"]),Go=B(I,["start"]),Uo=B(I,["value"]),Vo=B(I,["download","href","hrefLang","media","rel","target","type"]),Ko=B(I,["dateTime"]),he=B(I,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),$o=B(he,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),Jo=B(he,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),Qo=B(he,["form","multiple","required"]),Yo=B(I,["selected","value"]),Xo=B(I,["cellPadding","cellSpacing"]),Zo=I,er=B(I,["colSpan","rowSpan","scope"]),tr=B(I,["colSpan","headers","rowSpan","scope"]),or=B(I,["span"]),rr=B(I,["span"]),ir=B(I,["disabled","form"]),nr=B(I,["acceptCharset","action","encType","encType","method","noValidate","target"]),sr=B(I,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),ar=B(I,["alt","crossOrigin","height","src","srcSet","useMap","width"]),lr=B(I,["open","onCancel","onClose"]);function cr(o,e,t){const r=Array.isArray(e),i={},n=Object.keys(o);for(const s of n)(!r&&e[s]||r&&e.indexOf(s)>=0||s.indexOf("data-")===0||s.indexOf("aria-")===0)&&!t&&(i[s]=o[s]);return i}const dr={label:Wo,audio:Ze,video:Ho,ol:Go,li:Uo,a:Vo,button:he,input:$o,textarea:Jo,select:Qo,option:Yo,table:Xo,tr:Zo,th:er,td:tr,colGroup:or,col:rr,fieldset:ir,form:nr,iframe:sr,img:ar,time:Ko,dialog:lr};function ur(o,e,t){const r=o&&dr[o]||I;return r.as=1,cr(e,r,t)}const et=(o,e,t)=>{var r;return ur((r=e.as)!==null&&r!==void 0?r:o,e,t)},tt=p.createContext(void 0),fr={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"};tt.Provider;function Ee(){var o;return(o=p.useContext(tt))!==null&&o!==void 0?o:fr}function hr(o){return typeof o=="function"}const mr=o=>{"use no memo";const[e,t]=p.useState(()=>o.defaultState===void 0?o.initialState:pr(o.defaultState)?o.defaultState():o.defaultState),r=p.useRef(o.state);p.useEffect(()=>{r.current=o.state},[o.state]);const i=p.useCallback(n=>{hr(n)&&n(r.current)},[]);return gr(o.state)?[o.state,i]:[e,t]};function pr(o){return typeof o=="function"}const gr=o=>{"use no memo";const[e]=p.useState(()=>o!==void 0);return e};function vr(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const br={current:0},_r=p.createContext(void 0);function yr(){var o;return(o=p.useContext(_r))!==null&&o!==void 0?o:br}const wr=vr()?p.useLayoutEffect:p.useEffect,ot=p.createContext(void 0);ot.Provider;function kr(){return p.useContext(ot)||""}function xr(o="fui-",e){"use no memo";const t=yr(),r=kr(),i=Ct.useId;if(i){const n=i(),s=p.useMemo(()=>n.replace(/:/g,""),[n]);return e||`${r}${o}${s}`}return p.useMemo(()=>e||`${r}${o}${++t.current}`,[r,o,e,t])}function Cr(...o){"use no memo";const e=p.useCallback(t=>{e.current=t;for(const r of o)typeof r=="function"?r(t):r&&(r.current=t)},[...o]);return e}function Ne(o,e){return(...t)=>{o==null||o(...t),e==null||e(...t)}}function Tr(o){return o&&!!o._virtual}function Er(o){return Tr(o)&&o._virtual.parent||null}function Br(o,e={}){if(!o)return null;if(!e.skipVirtual){const r=Er(o);if(r)return r}const t=o.parentNode;return t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const L="data-tabster",Ir="data-tabster-dummy",rt=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", "),Y={EscapeGroupper:1,Restorer:2,Deloser:3},le={Unlimited:0,Limited:1,LimitedTrapFocus:2},De={Enter:1,Escape:2},Fr={Auto:0,Inside:1,Outside:2};/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function M(o,e){var t;return(t=o.storageEntry(e))===null||t===void 0?void 0:t.tabster}function it(o,e,t){var r,i;const n=t||o._noop?void 0:e.getAttribute(L);let s=o.storageEntry(e),l;if(n)if(n!==((r=s==null?void 0:s.attr)===null||r===void 0?void 0:r.string))try{const u=JSON.parse(n);if(typeof u!="object")throw new Error(`Value is not a JSON object, got '${n}'.`);l={string:n,object:u}}catch{}else return;else if(!s)return;s||(s=o.storageEntry(e,!0)),s.tabster||(s.tabster={});const a=s.tabster||{},c=((i=s.attr)===null||i===void 0?void 0:i.object)||{},d=(l==null?void 0:l.object)||{};for(const u of Object.keys(c))if(!d[u]){if(u==="root"){const f=a[u];f&&o.root.onRoot(f,!0)}switch(u){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const f=a[u];f&&(f.dispose(),delete a[u]);break;case"observed":delete a[u],o.observedElement&&o.observedElement.onObservedElementUpdate(e);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete a[u];break}}for(const u of Object.keys(d)){const f=d.sys;switch(u){case"deloser":a.deloser?a.deloser.setProps(d.deloser):o.deloser&&(a.deloser=o.deloser.createDeloser(e,d.deloser));break;case"root":a.root?a.root.setProps(d.root):a.root=o.root.createRoot(e,d.root,f),o.root.onRoot(a.root);break;case"modalizer":a.modalizer?a.modalizer.setProps(d.modalizer):o.modalizer&&(a.modalizer=o.modalizer.createModalizer(e,d.modalizer,f));break;case"restorer":a.restorer?a.restorer.setProps(d.restorer):o.restorer&&d.restorer&&(a.restorer=o.restorer.createRestorer(e,d.restorer));break;case"focusable":a.focusable=d.focusable;break;case"groupper":a.groupper?a.groupper.setProps(d.groupper):o.groupper&&(a.groupper=o.groupper.createGroupper(e,d.groupper,f));break;case"mover":a.mover?a.mover.setProps(d.mover):o.mover&&(a.mover=o.mover.createMover(e,d.mover,f));break;case"observed":o.observedElement&&(a.observed=d.observed,o.observedElement.onObservedElementUpdate(e));break;case"uncontrolled":a.uncontrolled=d.uncontrolled;break;case"outline":o.outline&&(a.outline=d.outline);break;case"sys":a.sys=d.sys;break;default:console.error(`Unknown key '${u}' in data-tabster attribute value.`)}}l?s.attr=l:(Object.keys(a).length===0&&(delete s.tabster,delete s.attr),o.storageEntry(e,!1))}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const zr="tabster:focusin",Pr="tabster:focusout",Sr="tabster:movefocus",je="tabster:groupper:movefocus",Nr="tabster:root:focus",Dr="tabster:root:blur",jr=typeof CustomEvent<"u"?CustomEvent:function(){};class ie extends jr{constructor(e,t){super(e,{bubbles:!0,cancelable:!0,composed:!0,detail:t}),this.details=t}}class Ar extends ie{constructor(e){super(zr,e)}}class Rr extends ie{constructor(e){super(Pr,e)}}class U extends ie{constructor(e){super(Sr,e)}}class qr extends ie{constructor(e){super(Nr,e)}}class Mr extends ie{constructor(e){super(Dr,e)}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const Or=o=>new MutationObserver(o),Lr=(o,e,t,r)=>o.createTreeWalker(e,t,r),Wr=o=>o?o.parentNode:null,Hr=o=>o?o.parentElement:null,Gr=(o,e)=>!!(e&&(o!=null&&o.contains(e))),Ur=o=>o.activeElement,Vr=(o,e)=>o.querySelector(e),Kr=(o,e)=>Array.prototype.slice.call(o.querySelectorAll(e),0),$r=(o,e)=>o.getElementById(e),Jr=o=>(o==null?void 0:o.firstChild)||null,Qr=o=>(o==null?void 0:o.lastChild)||null,Yr=o=>(o==null?void 0:o.nextSibling)||null,Xr=o=>(o==null?void 0:o.previousSibling)||null,Zr=o=>(o==null?void 0:o.firstElementChild)||null,ei=o=>(o==null?void 0:o.lastElementChild)||null,ti=o=>(o==null?void 0:o.nextElementSibling)||null,oi=o=>(o==null?void 0:o.previousElementSibling)||null,ri=(o,e)=>o.appendChild(e),ii=(o,e,t)=>o.insertBefore(e,t),ni=o=>{var e;return((e=o.ownerDocument)===null||e===void 0?void 0:e.getSelection())||null},si=(o,e)=>o.ownerDocument.getElementsByName(e),m={createMutationObserver:Or,createTreeWalker:Lr,getParentNode:Wr,getParentElement:Hr,nodeContains:Gr,getActiveElement:Ur,querySelector:Vr,querySelectorAll:Kr,getElementById:$r,getFirstChild:Jr,getLastChild:Qr,getNextSibling:Yr,getPreviousSibling:Xr,getFirstElementChild:Zr,getLastElementChild:ei,getNextElementSibling:ti,getPreviousElementSibling:oi,appendChild:ri,insertBefore:ii,getSelection:ni,getElementsByName:si};function ai(o){for(const e of Object.keys(o))m[e]=o[e]}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */let ve,li=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),ve=!1}catch{ve=!0}const pe=100;function $(o){const e=o();let t=e.__tabsterInstanceContext;return t||(t={elementByUId:{},basics:{Promise:e.Promise||void 0,WeakRef:e.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},e.__tabsterInstanceContext=t),t}function ci(o){const e=o.__tabsterInstanceContext;e&&(e.elementByUId={},delete e.WeakRef,e.containerBoundingRectCache={},e.containerBoundingRectCacheTimer&&o.clearTimeout(e.containerBoundingRectCacheTimer),e.fakeWeakRefsTimer&&o.clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefs=[],delete o.__tabsterInstanceContext)}function di(o){const e=o.__tabsterInstanceContext;return new((e==null?void 0:e.basics.WeakMap)||WeakMap)}function ui(o){return!!o.querySelector(rt)}class nt{constructor(e){this._target=e}deref(){return this._target}static cleanup(e,t){return e._target?t||!Be(e._target.ownerDocument,e._target)?(delete e._target,!0):!1:!0}}class O{constructor(e,t,r){const i=$(e);let n;i.WeakRef?n=new i.WeakRef(t):(n=new nt(t),i.fakeWeakRefs.push(n)),this._ref=n,this._data=r}get(){const e=this._ref;let t;return e&&(t=e.deref(),t||delete this._ref),t}getData(){return this._data}}function st(o,e){const t=$(o);t.fakeWeakRefs=t.fakeWeakRefs.filter(r=>!nt.cleanup(r,e))}function at(o){const e=$(o);e.fakeWeakRefsStarted||(e.fakeWeakRefsStarted=!0,e.WeakRef=vi(e)),e.fakeWeakRefsTimer||(e.fakeWeakRefsTimer=o().setTimeout(()=>{e.fakeWeakRefsTimer=void 0,st(o),at(o)},2*60*1e3))}function fi(o){const e=$(o);e.fakeWeakRefsStarted=!1,e.fakeWeakRefsTimer&&(o().clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefsTimer=void 0,e.fakeWeakRefs=[])}function lt(o,e,t){if(e.nodeType!==Node.ELEMENT_NODE)return;const r=ve?t:{acceptNode:t};return m.createTreeWalker(o,e,NodeFilter.SHOW_ELEMENT,r,!1)}function hi(o){o.__shouldIgnoreFocus=!0}function ct(o){return!!o.__shouldIgnoreFocus}function mi(o){const e=new Uint32Array(4);if(o.crypto&&o.crypto.getRandomValues)o.crypto.getRandomValues(e);else if(o.msCrypto&&o.msCrypto.getRandomValues)o.msCrypto.getRandomValues(e);else for(let r=0;r{if(this._fixedTarget){const f=this._fixedTarget.get();f&&K(f);return}const u=this.input;if(this.onFocusIn&&u){const f=d.relatedTarget;this.onFocusIn(this,this._isBackward(!0,u,f),f)}},this._focusOut=d=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const u=this.input;if(this.onFocusOut&&u){const f=d.relatedTarget;this.onFocusOut(this,this._isBackward(!1,u,f),f)}};const l=e(),a=l.document.createElement("i");a.tabIndex=0,a.setAttribute("role","none"),a.setAttribute(Ir,""),a.setAttribute("aria-hidden","true");const c=a.style;c.position="fixed",c.width=c.height="1px",c.opacity="0.001",c.zIndex="-1",c.setProperty("content-visibility","hidden"),hi(a),this.input=a,this.isFirst=r.isFirst,this.isOutside=t,this._isPhantom=(s=r.isPhantom)!==null&&s!==void 0?s:!1,this._fixedTarget=n,a.addEventListener("focusin",this._focusIn),a.addEventListener("focusout",this._focusOut),a.__tabsterDummyContainer=i,this._isPhantom&&(this._disposeTimer=l.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(l.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var e;this._clearDisposeTimeout&&this._clearDisposeTimeout();const t=this.input;t&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,t.removeEventListener("focusin",this._focusIn),t.removeEventListener("focusout",this._focusOut),delete t.__tabsterDummyContainer,(e=m.getParentNode(t))===null||e===void 0||e.removeChild(t))}setTopLeft(e,t){var r;const i=(r=this.input)===null||r===void 0?void 0:r.style;i&&(i.top=`${e}px`,i.left=`${t}px`)}_isBackward(e,t,r){return e&&!r?!this.isFirst:!!(r&&t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING)}}const ut={Root:1,Modalizer:2,Mover:3,Groupper:4};class ue{constructor(e,t,r,i,n,s){this._element=t,this._instance=new yi(e,t,this,r,i,n,s)}_setHandlers(e,t){this._onFocusIn=e,this._onFocusOut=t}moveOut(e){var t;(t=this._instance)===null||t===void 0||t.moveOut(e)}moveOutWithDefaultAction(e,t){var r;(r=this._instance)===null||r===void 0||r.moveOutWithDefaultAction(e,t)}getHandler(e){return e?this._onFocusIn:this._onFocusOut}setTabbable(e){var t;(t=this._instance)===null||t===void 0||t.setTabbable(this,e)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(e,t,r,i,n){const l=new de(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(l){let a,c;if(t.tagName==="BODY")a=t,c=r&&i||!r&&!i?m.getFirstElementChild(t):null;else{r&&(!i||i&&!e.focusable.isFocusable(t,!1,!0,!0))?(a=t,c=i?t.firstElementChild:null):(a=m.getParentElement(t),c=r&&i||!r&&!i?t:m.getNextElementSibling(t));let d,u;do d=r&&i||!r&&!i?m.getPreviousElementSibling(c):c,u=Ie(d),u===t?c=r&&i||!r&&!i?d:m.getNextElementSibling(d):u=null;while(u)}a!=null&&a.dispatchEvent(new U({by:"root",owner:a,next:null,relatedEvent:n}))&&(m.insertBefore(a,l,c),K(l))}}static addPhantomDummyWithTarget(e,t,r,i){const s=new de(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new O(e.getWindow,i)).input;if(s){let l,a;ui(t)&&!r?(l=t,a=m.getFirstElementChild(t)):(l=m.getParentElement(t),a=r?t:m.getNextElementSibling(t)),l&&m.insertBefore(l,s,a)}}}class _i{constructor(e){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=t=>{var r;this._changedParents.has(t)||(this._changedParents.add(t),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(r=this._win)===null||r===void 0?void 0:r.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const i of this._dummyElements){const n=i.get();if(n){const s=this._dummyCallbacks.get(n);if(s){const l=m.getParentNode(n);(!l||this._changedParents.has(l))&&s()}}}this._changedParents=new WeakSet},pe)))},this._win=e}add(e,t){!this._dummyCallbacks.has(e)&&this._win&&(this._dummyElements.push(new O(this._win,e)),this._dummyCallbacks.set(e,t),this.domChanged=this._domChanged)}remove(e){this._dummyElements=this._dummyElements.filter(t=>{const r=t.get();return r&&r!==e}),this._dummyCallbacks.delete(e),this._dummyElements.length===0&&delete this.domChanged}dispose(){var e;const t=(e=this._win)===null||e===void 0?void 0:e.call(this);this._updateTimer&&(t==null||t.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(t==null||t.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(e){this._win&&(this._updateQueue.add(e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var e;this._updateTimer||(this._updateTimer=(e=this._win)===null||e===void 0?void 0:e.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+pe<=Date.now()){const t=new Map,r=[];for(const i of this._updateQueue)r.push(i(t));this._updateQueue.clear();for(const i of r)i();t.clear()}else this._scheduledUpdatePositions()},pe))}}class yi{constructor(e,t,r,i,n,s,l){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(h,g,v)=>{this._onFocus(!0,h,g,v)},this._onFocusOut=(h,g,v)=>{this._onFocus(!1,h,g,v)},this.moveOut=h=>{var g;const v=this._firstDummy,b=this._lastDummy;if(v&&b){this._ensurePosition();const y=v.input,_=b.input,C=(g=this._element)===null||g===void 0?void 0:g.get();if(y&&_&&C){let k;h?(y.tabIndex=0,k=y):(_.tabIndex=0,k=_),k&&K(k)}}},this.moveOutWithDefaultAction=(h,g)=>{var v;const b=this._firstDummy,y=this._lastDummy;if(b&&y){this._ensurePosition();const _=b.input,C=y.input,k=(v=this._element)===null||v===void 0?void 0:v.get();if(_&&C&&k){let T;h?!b.isOutside&&this._tabster.focusable.isFocusable(k,!0,!0,!0)?T=k:(b.useDefaultAction=!0,_.tabIndex=0,T=_):(y.useDefaultAction=!0,C.tabIndex=0,T=C),T&&k.dispatchEvent(new U({by:"root",owner:k,next:null,relatedEvent:g}))&&K(T)}}},this.setTabbable=(h,g)=>{var v,b;for(const _ of this._wrappers)if(_.manager===h){_.tabbable=g;break}const y=this._getCurrent();if(y){const _=y.tabbable?0:-1;let C=(v=this._firstDummy)===null||v===void 0?void 0:v.input;C&&(C.tabIndex=_),C=(b=this._lastDummy)===null||b===void 0?void 0:b.input,C&&(C.tabIndex=_)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=h=>{var g,v;const b=((g=this._firstDummy)===null||g===void 0?void 0:g.input)||((v=this._lastDummy)===null||v===void 0?void 0:v.input),y=this._transformElements,_=new Set;let C=0,k=0;const T=this._getWindow();for(let w=b;w&&w.nodeType===Node.ELEMENT_NODE;w=m.getParentElement(w)){let x=h.get(w);if(x===void 0){const F=T.getComputedStyle(w).transform;F&&F!=="none"&&(x={scrollTop:w.scrollTop,scrollLeft:w.scrollLeft}),h.set(w,x||null)}x&&(_.add(w),y.has(w)||w.addEventListener("scroll",this._addTransformOffsets),C+=x.scrollTop,k+=x.scrollLeft)}for(const w of y)_.has(w)||w.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=_,()=>{var w,x;(w=this._firstDummy)===null||w===void 0||w.setTopLeft(C,k),(x=this._lastDummy)===null||x===void 0||x.setTopLeft(C,k)}};const a=t.get();if(!a)throw new Error("No element");this._tabster=e,this._getWindow=e.getWindow,this._callForDefaultAction=l;const c=a.__tabsterDummy;if((c||this)._wrappers.push({manager:r,priority:i,tabbable:!0}),c)return c;a.__tabsterDummy=this;const d=n==null?void 0:n.dummyInputsPosition,u=a.tagName;this._isOutside=d?d===Fr.Outside:(s||u==="UL"||u==="OL"||u==="TABLE")&&!(u==="LI"||u==="TD"||u==="TH"),this._firstDummy=new de(this._getWindow,this._isOutside,{isFirst:!0},t),this._lastDummy=new de(this._getWindow,this._isOutside,{isFirst:!1},t);const f=this._firstDummy.input;f&&e._dummyObserver.add(f,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=t,this._addDummyInputs()}dispose(e,t){var r,i,n,s;if((this._wrappers=this._wrappers.filter(a=>a.manager!==e&&!t)).length===0){delete((r=this._element)===null||r===void 0?void 0:r.get()).__tabsterDummy;for(const d of this._transformElements)d.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const a=this._getWindow();this._addTimer&&(a.clearTimeout(this._addTimer),delete this._addTimer);const c=(i=this._firstDummy)===null||i===void 0?void 0:i.input;c&&this._tabster._dummyObserver.remove(c),(n=this._firstDummy)===null||n===void 0||n.dispose(),(s=this._lastDummy)===null||s===void 0||s.dispose()}}_onFocus(e,t,r,i){var n;const s=this._getCurrent();s&&(!t.useDefaultAction||this._callForDefaultAction)&&((n=s.manager.getHandler(e))===null||n===void 0||n(t,r,i))}_getCurrent(){return this._wrappers.sort((e,t)=>e.tabbable!==t.tabbable?e.tabbable?-1:1:e.priority-t.priority),this._wrappers[0]}_ensurePosition(){var e,t,r;const i=(e=this._element)===null||e===void 0?void 0:e.get(),n=(t=this._firstDummy)===null||t===void 0?void 0:t.input,s=(r=this._lastDummy)===null||r===void 0?void 0:r.input;if(!(!i||!n||!s))if(this._isOutside){const l=m.getParentNode(i);if(l){const a=m.getNextSibling(i);a!==s&&m.insertBefore(l,s,a),m.getPreviousElementSibling(i)!==n&&m.insertBefore(l,n,i)}}else{m.getLastElementChild(i)!==s&&m.appendChild(i,s);const l=m.getFirstElementChild(i);l&&l!==n&&l.parentNode&&m.insertBefore(l.parentNode,n,l)}}}function ft(o){let e=null;for(let t=m.getLastElementChild(o);t;t=m.getLastElementChild(t))e=t;return e||void 0}function wi(o,e){let t=o,r=null;for(;t&&!r;)r=e?m.getPreviousElementSibling(t):m.getNextElementSibling(t),t=m.getParentElement(t);return r||void 0}function ki(o){var e,t;const r=o.ownerDocument,i=(e=r.defaultView)===null||e===void 0?void 0:e.getComputedStyle(o);return o.offsetParent===null&&r.body!==o&&(i==null?void 0:i.position)!=="fixed"||(i==null?void 0:i.visibility)==="hidden"||(i==null?void 0:i.position)==="fixed"&&(i.display==="none"||((t=o.parentElement)===null||t===void 0?void 0:t.offsetParent)===null&&r.body!==o.parentElement)}function be(o){return o.tagName==="INPUT"&&!!o.name&&o.type==="radio"}function xi(o){if(!be(o))return;const e=o.name;let t=Array.from(m.getElementsByName(o,e)),r;return t=t.filter(i=>be(i)?(i.checked&&(r=i),!0):!1),{name:e,buttons:new Set(t),checked:r}}function Ie(o){var e;return((e=o==null?void 0:o.__tabsterDummyContainer)===null||e===void 0?void 0:e.get())||null}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function ht(o,e){return JSON.stringify(o)}function Ci(o,e){for(const t of Object.keys(e)){const r=e[t];r?o[t]=r:delete o[t]}}function Ti(o,e,t){let r;{const i=o.getAttribute(L);if(i)try{r=JSON.parse(i)}catch{}}r||(r={}),Ci(r,e),Object.keys(r).length>0?o.setAttribute(L,ht(r)):o.removeAttribute(L)}class Re extends ue{constructor(e,t,r,i){super(e,t,ut.Root,i,void 0,!0),this._onDummyInputFocus=n=>{var s;if(n.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const l=this._element.get();if(l){this._setFocused(!0);const a=this._tabster.focusedElement.getFirstOrLastTabbable(n.isFirst,{container:l,ignoreAccessibility:!0});if(a){K(a);return}}(s=n.input)===null||s===void 0||s.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=e,this._setFocused=r}}class Ei extends dt{constructor(e,t,r,i,n){super(e,t,i),this._isFocused=!1,this._setFocused=c=>{var d;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===c)return;const u=this._element.get();u&&(c?(this._isFocused=!0,(d=this._dummyManager)===null||d===void 0||d.setTabbable(!1),u.dispatchEvent(new qr({element:u}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var f;delete this._setFocusedTimer,this._isFocused=!1,(f=this._dummyManager)===null||f===void 0||f.setTabbable(!0),u.dispatchEvent(new Mr({element:u}))},0))},this._onFocusIn=c=>{const d=this._tabster.getParent,u=this._element.get();let f=c.composedPath()[0];do{if(f===u){this._setFocused(!0);return}f=f&&d(f)}while(f)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=r;const s=e.getWindow;this.uid=pi(s,t),this._sys=n,(e.controlTab||e.rootDummyInputs)&&this.addDummyInputs();const a=s().document;a.addEventListener(Z,this._onFocusIn),a.addEventListener(ce,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new Re(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var e;this._onDispose(this);const t=this._tabster.getWindow(),r=t.document;r.removeEventListener(Z,this._onFocusIn),r.removeEventListener(ce,this._onFocusOut),this._setFocusedTimer&&(t.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(e=this._dummyManager)===null||e===void 0||e.dispose(),this._remove()}moveOutWithDefaultAction(e,t){const r=this._dummyManager;if(r)r.moveOutWithDefaultAction(e,t);else{const i=this.getElement();i&&Re.moveWithPhantomDummy(this._tabster,i,!0,e,t)}}_add(){}_remove(){}}class P{constructor(e,t){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var r;const i=this._win().document,n=i.body;if(n){this._autoRootUnwait(i);const s=this._autoRoot;if(s)return Ti(n,{root:s}),it(this._tabster,n),(r=M(this._tabster,n))===null||r===void 0?void 0:r.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,i.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=r=>{delete this._roots[r.id]},this._tabster=e,this._win=e.getWindow,this._autoRoot=t,e.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(e){e.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const e=this._win();this._autoRootUnwait(e.document),delete this._autoRoot,Object.keys(this._roots).forEach(t=>{this._roots[t]&&(this._roots[t].dispose(),delete this._roots[t])}),this.rootById={}}createRoot(e,t,r){const i=new Ei(this._tabster,e,this._onRootDispose,t,r);return this._roots[i.id]=i,this._forceDummy&&i.addDummyInputs(),i}addDummyInputs(){this._forceDummy=!0;const e=this._roots;for(const t of Object.keys(e))e[t].addDummyInputs()}static getRootByUId(e,t){const r=e().__tabsterInstance;return r&&r.root.rootById[t]}static getTabsterContext(e,t,r){r===void 0&&(r={});var i,n,s,l;if(!t.ownerDocument)return;const{checkRtl:a,referenceElement:c}=r,d=e.getParent;e.drainInitQueue();let u,f,h,g,v=!1,b,y,_,C,k=c||t;const T={};for(;k&&(!u||a);){const x=M(e,k);if(a&&_===void 0){const ze=k.dir;ze&&(_=ze.toLowerCase()==="rtl")}if(!x){k=d(k);continue}const F=k.tagName;(x.uncontrolled||F==="IFRAME"||F==="WEBVIEW")&&(C=k),!g&&(!((i=x.focusable)===null||i===void 0)&&i.excludeFromMover)&&!h&&(v=!0);const J=x.modalizer,q=x.groupper,ne=x.mover;!f&&J&&(f=J),!h&&q&&(!f||J)&&(f?(!q.isActive()&&q.getProps().tabbability&&f.userId!==((n=e.modalizer)===null||n===void 0?void 0:n.activeId)&&(f=void 0,h=q),y=q):h=q),!g&&ne&&(!f||J)&&(!q||k!==t)&&k.contains(t)&&(g=ne,b=!!h&&h!==q),x.root&&(u=x.root),!((s=x.focusable)===null||s===void 0)&&s.ignoreKeydown&&Object.assign(T,x.focusable.ignoreKeydown),k=d(k)}if(!u){const x=e.root;x._autoRoot&&!((l=t.ownerDocument)===null||l===void 0)&&l.body&&(u=x._autoRootCreate())}return h&&!g&&(b=!0),u?{root:u,modalizer:f,groupper:h,mover:g,groupperBeforeMover:b,modalizerInGroupper:y,rtl:a?!!_:void 0,uncontrolled:C,excludedFromMover:v,ignoreKeydown:x=>!!T[x.key]}:void 0}static getRoot(e,t){var r;const i=e.getParent;for(let n=t;n;n=i(n)){const s=(r=M(e,n))===null||r===void 0?void 0:r.root;if(s)return s}}onRoot(e,t){t?delete this.rootById[e.uid]:this.rootById[e.uid]=e}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class mt{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(e){const t=this._callbacks;t.indexOf(e)<0&&t.push(e)}subscribeFirst(e){const t=this._callbacks,r=t.indexOf(e);r>=0&&t.splice(r,1),t.unshift(e)}unsubscribe(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}setVal(e,t){this._val!==e&&(this._val=e,this._callCallbacks(e,t))}getVal(){return this._val}trigger(e,t){this._callCallbacks(e,t)}_callCallbacks(e,t){this._callbacks.forEach(r=>r(e,t))}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class Bi{constructor(e){this._tabster=e}dispose(){}getProps(e){const t=M(this._tabster,e);return t&&t.focusable||{}}isFocusable(e,t,r,i){return gi(e,rt)&&(t||e.tabIndex!==-1)?(r||this.isVisible(e))&&(i||this.isAccessible(e)):!1}isVisible(e){if(!e.ownerDocument||e.nodeType!==Node.ELEMENT_NODE||ki(e))return!1;const t=e.ownerDocument.body.getBoundingClientRect();return!(t.width===0&&t.height===0)}isAccessible(e){var t;for(let r=e;r;r=m.getParentElement(r)){const i=M(this._tabster,r);if(this._isHidden(r)||!((t=i==null?void 0:i.focusable)===null||t===void 0?void 0:t.ignoreAriaDisabled)&&this._isDisabled(r))return!1}return!0}_isDisabled(e){return e.hasAttribute("disabled")}_isHidden(e){var t;const r=e.getAttribute("aria-hidden");return!!(r&&r.toLowerCase()==="true"&&!(!((t=this._tabster.modalizer)===null||t===void 0)&&t.isAugmented(e)))}findFirst(e,t){return this.findElement({...e},t)}findLast(e,t){return this.findElement({isBackward:!0,...e},t)}findNext(e,t){return this.findElement({...e},t)}findPrev(e,t){return this.findElement({...e,isBackward:!0},t)}findDefault(e,t){return this.findElement({...e,acceptCondition:r=>this.isFocusable(r,e.includeProgrammaticallyFocusable)&&!!this.getProps(r).isDefault},t)||null}findAll(e){return this._findElements(!0,e)||[]}findElement(e,t){const r=this._findElements(!1,e,t);return r&&r[0]}_findElements(e,t,r){var i,n,s;const{container:l,currentElement:a=null,includeProgrammaticallyFocusable:c,useActiveModalizer:d,ignoreAccessibility:u,modalizerId:f,isBackward:h,onElement:g}=t;r||(r={});const v=[];let{acceptCondition:b}=t;const y=!!b;if(!l)return null;b||(b=T=>this.isFocusable(T,c,!1,u));const _={container:l,modalizerUserId:f===void 0&&d?(i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId:f||((s=(n=P.getTabsterContext(this._tabster,l))===null||n===void 0?void 0:n.modalizer)===null||s===void 0?void 0:s.userId),from:a||l,isBackward:h,isFindAll:e,acceptCondition:b,hasCustomCondition:y,includeProgrammaticallyFocusable:c,ignoreAccessibility:u,cachedGrouppers:{},cachedRadioGroups:{}},C=lt(l.ownerDocument,l,T=>this._acceptElement(T,_));if(!C)return null;const k=T=>{var w,x;const F=(w=_.foundElement)!==null&&w!==void 0?w:_.foundBackward;return F&&v.push(F),e?F&&(_.found=!1,delete _.foundElement,delete _.foundBackward,delete _.fromCtx,_.from=F,g&&!g(F))?!1:!!(F||T):(F&&r&&(r.uncontrolled=(x=P.getTabsterContext(this._tabster,F))===null||x===void 0?void 0:x.uncontrolled),!!(T&&!F))};if(a||(r.outOfDOMOrder=!0),a&&m.nodeContains(l,a))C.currentNode=a;else if(h){const T=ft(l);if(!T)return null;if(this._acceptElement(T,_)===NodeFilter.FILTER_ACCEPT&&!k(!0))return _.skippedFocusable&&(r.outOfDOMOrder=!0),v;C.currentNode=T}do h?C.previousNode():C.nextNode();while(k());return _.skippedFocusable&&(r.outOfDOMOrder=!0),v.length?v:null}_acceptElement(e,t){var r,i,n;if(t.found)return NodeFilter.FILTER_ACCEPT;const s=t.foundBackward;if(s&&(e===s||!m.nodeContains(s,e)))return t.found=!0,t.foundElement=s,NodeFilter.FILTER_ACCEPT;const l=t.container;if(e===l)return NodeFilter.FILTER_SKIP;if(!m.nodeContains(l,e)||Ie(e)||m.nodeContains(t.rejectElementsFrom,e))return NodeFilter.FILTER_REJECT;const a=t.currentCtx=P.getTabsterContext(this._tabster,e);if(!a)return NodeFilter.FILTER_SKIP;if(ct(e))return this.isFocusable(e,void 0,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!t.hasCustomCondition&&(e.tagName==="IFRAME"||e.tagName==="WEBVIEW"))return((r=a.modalizer)===null||r===void 0?void 0:r.userId)===((i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId)?(t.found=!0,t.rejectElementsFrom=t.foundElement=e,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!t.ignoreAccessibility&&!this.isAccessible(e))return this.isFocusable(e,!1,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let c,d=t.fromCtx;d||(d=t.fromCtx=P.getTabsterContext(this._tabster,t.from));const u=d==null?void 0:d.mover;let f=a.groupper,h=a.mover;if(c=(n=this._tabster.modalizer)===null||n===void 0?void 0:n.acceptElement(e,t),c!==void 0&&(t.skippedFocusable=!0),c===void 0&&(f||h||u)){const g=f==null?void 0:f.getElement(),v=u==null?void 0:u.getElement();let b=h==null?void 0:h.getElement();b&&m.nodeContains(v,b)&&m.nodeContains(l,v)&&(!g||!h||m.nodeContains(v,g))&&(h=u,b=v),g&&(g===l||!m.nodeContains(l,g))&&(f=void 0),b&&!m.nodeContains(l,b)&&(h=void 0),f&&h&&(b&&g&&!m.nodeContains(g,b)?h=void 0:f=void 0),f&&(c=f.acceptElement(e,t)),h&&(c=h.acceptElement(e,t))}if(c===void 0&&(c=t.acceptCondition(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,c===NodeFilter.FILTER_SKIP&&this.isFocusable(e,!1,!0,!0)&&(t.skippedFocusable=!0)),c===NodeFilter.FILTER_ACCEPT&&!t.found){if(!t.isFindAll&&be(e)&&!e.checked){const g=e.name;let v=t.cachedRadioGroups[g];if(v||(v=xi(e),v&&(t.cachedRadioGroups[g]=v)),v!=null&&v.checked&&v.checked!==e)return NodeFilter.FILTER_SKIP}t.isBackward?(t.foundBackward=e,c=NodeFilter.FILTER_SKIP):(t.found=!0,t.foundElement=e)}return c}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const ee={Tab:"Tab",Enter:"Enter",Escape:"Escape",Space:" ",PageUp:"PageUp",PageDown:"PageDown",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"};/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function Ii(o,e){var t;const r=o.getParent;let i=e;do{const n=(t=M(o,i))===null||t===void 0?void 0:t.uncontrolled;if(n&&o.uncontrolled.isUncontrolledCompletely(i,!!n.completely))return i;i=r(i)}while(i)}const qe={[Y.Restorer]:0,[Y.Deloser]:1,[Y.EscapeGroupper]:2};class z extends mt{constructor(e,t){super(),this._init=()=>{const r=this._win(),i=r.document;i.addEventListener(Z,this._onFocusIn,!0),i.addEventListener(ce,this._onFocusOut,!0),r.addEventListener("keydown",this._onKeyDown,!0);const n=m.getActiveElement(i);n&&n!==i.body&&this._setFocusedElement(n),this.subscribe(this._onChanged)},this._onFocusIn=r=>{const i=r.composedPath()[0];i&&this._setFocusedElement(i,r.detail.relatedTarget,r.detail.isFocusedProgrammatically)},this._onFocusOut=r=>{var i;this._setFocusedElement(void 0,(i=r.detail)===null||i===void 0?void 0:i.originalEvent.relatedTarget)},this._validateFocusedElement=r=>{},this._onKeyDown=r=>{if(r.key!==ee.Tab||r.ctrlKey)return;const i=this.getVal();if(!i||!i.ownerDocument||i.contentEditable==="true")return;const n=this._tabster,s=n.controlTab,l=P.getTabsterContext(n,i);if(!l||l.ignoreKeydown(r))return;const a=r.shiftKey,c=z.findNextTabbable(n,l,void 0,i,void 0,a,!0),d=l.root.getElement();if(!d)return;const u=c==null?void 0:c.element,f=Ii(n,i);if(u){const h=c.uncontrolled;if(l.uncontrolled||m.nodeContains(h,i)){if(!c.outOfDOMOrder&&h===l.uncontrolled||f&&!m.nodeContains(f,u))return;ue.addPhantomDummyWithTarget(n,i,a,u);return}if(h||u.tagName==="IFRAME"){d.dispatchEvent(new U({by:"root",owner:d,next:u,relatedEvent:r}))&&ue.moveWithPhantomDummy(this._tabster,h??u,!1,a,r);return}(s||c!=null&&c.outOfDOMOrder)&&d.dispatchEvent(new U({by:"root",owner:d,next:u,relatedEvent:r}))&&(r.preventDefault(),r.stopImmediatePropagation(),K(u))}else!f&&d.dispatchEvent(new U({by:"root",owner:d,next:null,relatedEvent:r}))&&l.root.moveOutWithDefaultAction(a,r)},this._onChanged=(r,i)=>{var n,s;if(r)r.dispatchEvent(new Ar(i));else{const l=(n=this._lastVal)===null||n===void 0?void 0:n.get();if(l){const a={...i},c=P.getTabsterContext(this._tabster,l),d=(s=c==null?void 0:c.modalizer)===null||s===void 0?void 0:s.userId;d&&(a.modalizerId=d),l.dispatchEvent(new Rr(a))}}},this._tabster=e,this._win=t,e.queueInit(this._init)}dispose(){super.dispose();const e=this._win(),t=e.document;t.removeEventListener(Z,this._onFocusIn,!0),t.removeEventListener(ce,this._onFocusOut,!0),e.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const r=this._asyncFocus;r&&(e.clearTimeout(r.timeout),delete this._asyncFocus),delete z._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(e,t){var r,i;let n=z._lastResetElement,s=n&&n.get();s&&m.nodeContains(t,s)&&delete z._lastResetElement,s=(i=(r=e._nextVal)===null||r===void 0?void 0:r.element)===null||i===void 0?void 0:i.get(),s&&m.nodeContains(t,s)&&delete e._nextVal,n=e._lastVal,s=n&&n.get(),s&&m.nodeContains(t,s)&&delete e._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var e;let t=(e=this._lastVal)===null||e===void 0?void 0:e.get();return(!t||t&&!Be(t.ownerDocument,t))&&(this._lastVal=t=void 0),t}focus(e,t,r){return this._tabster.focusable.isFocusable(e,t,!1,r)?(e.focus(),!0):!1}focusDefault(e){const t=this._tabster.focusable.findDefault({container:e});return t?(this._tabster.focusedElement.focus(t),!0):!1}getFirstOrLastTabbable(e,t){var r;const{container:i,ignoreAccessibility:n}=t;let s;if(i){const l=P.getTabsterContext(this._tabster,i);l&&(s=(r=z.findNextTabbable(this._tabster,l,i,void 0,void 0,!e,n))===null||r===void 0?void 0:r.element)}return s&&!m.nodeContains(i,s)&&(s=void 0),s||void 0}_focusFirstOrLast(e,t){const r=this.getFirstOrLastTabbable(e,t);return r?(this.focus(r,!1,!0),!0):!1}focusFirst(e){return this._focusFirstOrLast(!0,e)}focusLast(e){return this._focusFirstOrLast(!1,e)}resetFocus(e){if(!this._tabster.focusable.isVisible(e))return!1;if(this._tabster.focusable.isFocusable(e,!0,!0,!0))this.focus(e);else{const t=e.getAttribute("tabindex"),r=e.getAttribute("aria-hidden");e.tabIndex=-1,e.setAttribute("aria-hidden","true"),z._lastResetElement=new O(this._win,e),this.focus(e,!0,!0),this._setOrRemoveAttribute(e,"tabindex",t),this._setOrRemoveAttribute(e,"aria-hidden",r)}return!0}requestAsyncFocus(e,t,r){const i=this._tabster.getWindow(),n=this._asyncFocus;if(n){if(qe[e]>qe[n.source])return;i.clearTimeout(n.timeout)}this._asyncFocus={source:e,callback:t,timeout:i.setTimeout(()=>{this._asyncFocus=void 0,t()},r)}}cancelAsyncFocus(e){const t=this._asyncFocus;(t==null?void 0:t.source)===e&&(this._tabster.getWindow().clearTimeout(t.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(e,t,r){r===null?e.removeAttribute(t):e.setAttribute(t,r)}_setFocusedElement(e,t,r){var i,n;if(this._tabster._noop)return;const s={relatedTarget:t};if(e){const a=(i=z._lastResetElement)===null||i===void 0?void 0:i.get();if(z._lastResetElement=void 0,a===e||ct(e))return;s.isFocusedProgrammatically=r;const c=P.getTabsterContext(this._tabster,e),d=(n=c==null?void 0:c.modalizer)===null||n===void 0?void 0:n.userId;d&&(s.modalizerId=d)}const l=this._nextVal={element:e?new O(this._win,e):void 0,detail:s};e&&e!==this._val&&this._validateFocusedElement(e),this._nextVal===l&&this.setVal(e,s),this._nextVal=void 0}setVal(e,t){super.setVal(e,t),e&&(this._lastVal=new O(this._win,e))}static findNextTabbable(e,t,r,i,n,s,l){const a=r||t.root.getElement();if(!a)return null;let c=null;const d=z._isTabbingTimer,u=e.getWindow();d&&u.clearTimeout(d),z.isTabbing=!0,z._isTabbingTimer=u.setTimeout(()=>{delete z._isTabbingTimer,z.isTabbing=!1},0);const f=t.modalizer,h=t.groupper,g=t.mover,v=b=>{if(c=b.findNextTabbable(i,n,s,l),i&&!(c!=null&&c.element)){const y=b!==f&&m.getParentElement(b.getElement());if(y){const _=P.getTabsterContext(e,i,{referenceElement:y});if(_){const C=b.getElement(),k=s?C:C&&ft(C)||C;k&&(c=z.findNextTabbable(e,_,r,k,y,s,l),c&&(c.outOfDOMOrder=!0))}}}};if(h&&g)v(t.groupperBeforeMover?h:g);else if(h)v(h);else if(g)v(g);else if(f)v(f);else{const b={container:a,currentElement:i,referenceElement:n,ignoreAccessibility:l,useActiveModalizer:!0},y={};c={element:e.focusable[s?"findPrev":"findNext"](b,y),outOfDOMOrder:y.outOfDOMOrder,uncontrolled:y.uncontrolled}}return c}}z.isTabbing=!1;/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class Fi extends ue{constructor(e,t,r,i){super(r,e,ut.Groupper,i,!0),this._setHandlers((n,s,l)=>{var a,c;const d=e.get(),u=n.input;if(d&&u){const f=P.getTabsterContext(r,u);if(f){let h;h=(a=t.findNextTabbable(l||void 0,void 0,s,!0))===null||a===void 0?void 0:a.element,h||(h=(c=z.findNextTabbable(r,f,void 0,n.isOutside?u:wi(d,!s),void 0,s,!0))===null||c===void 0?void 0:c.element),h&&K(h)}}})}}class zi extends dt{constructor(e,t,r,i,n){super(e,t,i),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=r,e.controlTab||(this.dummyManager=new Fi(this._element,this,e,n))}dispose(){var e;this._onDispose(this),this._element.get(),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(e,t,r,i){const n=this.getElement();if(!n)return null;const s=Ie(e)===n;if(!this._shouldTabInside&&e&&m.nodeContains(n,e)&&!s)return{element:void 0,outOfDOMOrder:!0};const l=this.getFirst(!0);if(!e||!m.nodeContains(n,e)||s)return{element:l,outOfDOMOrder:!0};const a=this._tabster;let c=null,d=!1,u;if(this._shouldTabInside&&l){const f={container:n,currentElement:e,referenceElement:t,ignoreAccessibility:i,useActiveModalizer:!0},h={};c=a.focusable[r?"findPrev":"findNext"](f,h),d=!!h.outOfDOMOrder,!c&&this._props.tabbability===le.LimitedTrapFocus&&(c=a.focusable[r?"findLast":"findFirst"]({container:n,ignoreAccessibility:i,useActiveModalizer:!0},h),d=!0),u=h.uncontrolled}return{element:c,uncontrolled:u,outOfDOMOrder:d}}makeTabbable(e){this._shouldTabInside=e||!this._props.tabbability}isActive(e){var t;const r=this.getElement()||null;let i=!0;for(let s=m.getParentElement(r);s;s=m.getParentElement(s)){const l=(t=M(this._tabster,s))===null||t===void 0?void 0:t.groupper;l&&(l._shouldTabInside||(i=!1))}let n=i?this._props.tabbability?this._shouldTabInside:!1:void 0;if(n&&e){const s=this._tabster.focusedElement.getFocusedElement();s&&(n=s!==this.getFirst(!0))}return n}getFirst(e){var t;const r=this.getElement();let i;if(r){if(e&&this._tabster.focusable.isFocusable(r))return r;i=(t=this._first)===null||t===void 0?void 0:t.get(),i||(i=this._tabster.focusable.findFirst({container:r,useActiveModalizer:!0})||void 0,i&&this.setFirst(i))}return i}setFirst(e){e?this._first=new O(this._tabster.getWindow,e):delete this._first}acceptElement(e,t){const r=t.cachedGrouppers,i=m.getParentElement(this.getElement()),n=i&&P.getTabsterContext(this._tabster,i),s=n==null?void 0:n.groupper,l=n!=null&&n.groupperBeforeMover?s:void 0;let a;const c=f=>{let h=r[f.id],g;return h?g=h.isActive:(g=this.isActive(!0),h=r[f.id]={isActive:g}),g};if(l&&(a=l.getElement(),!c(l)&&a&&t.container!==a&&m.nodeContains(t.container,a)))return t.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const d=c(this),u=this.getElement();if(u&&d!==!0){if(u===e&&s&&(a||(a=s.getElement()),a&&!c(s)&&m.nodeContains(t.container,a)&&a!==t.container)||u!==e&&m.nodeContains(u,e))return t.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const f=r[this.id];let h;if("first"in f?h=f.first:h=f.first=this.getFirst(!0),h&&t.acceptCondition(h))return t.rejectElementsFrom=u,t.skippedFocusable=!0,h!==t.from?(t.found=!0,t.foundElement=h,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class Pi{constructor(e,t){this._current={},this._grouppers={},this._init=()=>{const r=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus);const i=r.document,n=m.getActiveElement(i);n&&this._onFocus(n),i.addEventListener("mousedown",this._onMouseDown,!0),r.addEventListener("keydown",this._onKeyDown,!0),r.addEventListener(je,this._onMoveFocus)},this._onGroupperDispose=r=>{delete this._grouppers[r.id]},this._onFocus=r=>{r&&this._updateCurrent(r,!0,!0)},this._onMouseDown=r=>{r.target&&this._updateCurrent(r.target,!0)},this._onKeyDown=r=>{if(r.key!==ee.Enter&&r.key!==ee.Escape||r.ctrlKey||r.altKey||r.shiftKey||r.metaKey)return;const i=this._tabster.focusedElement.getFocusedElement();i&&this.handleKeyPress(i,r)},this._onMoveFocus=r=>{var i;const n=r.composedPath()[0],s=(i=r.detail)===null||i===void 0?void 0:i.action;n&&s!==void 0&&!r.defaultPrevented&&(s===De.Enter?this._enterGroupper(n):this._escapeGroupper(n),r.stopImmediatePropagation())},this._tabster=e,this._win=t,e.queueInit(this._init)}dispose(){const e=this._win();this._tabster.focusedElement.cancelAsyncFocus(Y.EscapeGroupper),this._current={},this._updateTimer&&(e.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),e.document.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),e.removeEventListener(je,this._onMoveFocus),Object.keys(this._grouppers).forEach(t=>{this._grouppers[t]&&(this._grouppers[t].dispose(),delete this._grouppers[t])})}createGroupper(e,t,r){const i=new zi(this._tabster,e,this._onGroupperDispose,t,r);this._grouppers[i.id]=i;const n=this._tabster.focusedElement.getFocusedElement();return n&&m.nodeContains(e,n)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,n===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(n,!0,!0)},0)),i}forgetCurrentGrouppers(){this._current={}}_updateCurrent(e,t,r){var i;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const n={};let s=!0;for(let l=e;l;l=m.getParentElement(l)){const a=(i=M(this._tabster,l))===null||i===void 0?void 0:i.groupper;if(a){if(n[a.id]=!0,s&&r&&l!==e&&(s=!1),t||!s){this._current[a.id]=a;const c=a.isActive()||e!==l&&(!a.getProps().delegated||a.getFirst(!1)!==e);a.makeTabbable(c)}s=!1}}for(const l of Object.keys(this._current)){const a=this._current[l];a.id in n||(a.makeTabbable(!1),a.setFirst(void 0),delete this._current[l])}}_enterGroupper(e,t){const r=this._tabster,i=P.getTabsterContext(r,e),n=(i==null?void 0:i.groupper)||(i==null?void 0:i.modalizerInGroupper),s=n==null?void 0:n.getElement();if(n&&s&&(e===s||n.getProps().delegated&&e===n.getFirst(!1))){const l=r.focusable.findNext({container:s,currentElement:e,useActiveModalizer:!0});if(l&&(!t||t&&s.dispatchEvent(new U({by:"groupper",owner:s,next:l,relatedEvent:t}))))return t&&(t.preventDefault(),t.stopImmediatePropagation()),l.focus(),l}return null}_escapeGroupper(e,t,r){var i;const n=this._tabster,s=P.getTabsterContext(n,e),l=s==null?void 0:s.modalizerInGroupper;let a=(s==null?void 0:s.groupper)||l;const c=a==null?void 0:a.getElement();if(a&&c&&m.nodeContains(c,e)){let d;if(e!==c||r)d=a.getFirst(!0);else{const u=m.getParentElement(c),f=u?P.getTabsterContext(n,u):void 0;a=f==null?void 0:f.groupper,d=a==null?void 0:a.getFirst(!0)}if(d&&(!t||t&&c.dispatchEvent(new U({by:"groupper",owner:c,next:d,relatedEvent:t}))))return a&&(a.makeTabbable(!1),l&&((i=n.modalizer)===null||i===void 0||i.setActive(void 0))),d.focus(),d}return null}moveFocus(e,t){return t===De.Enter?this._enterGroupper(e):this._escapeGroupper(e)}handleKeyPress(e,t,r){const i=this._tabster,n=P.getTabsterContext(i,e);if(n&&(n!=null&&n.groupper||n!=null&&n.modalizerInGroupper)){if(i.focusedElement.cancelAsyncFocus(Y.EscapeGroupper),n.ignoreKeydown(t))return;if(t.key===ee.Enter)this._enterGroupper(e,t);else if(t.key===ee.Escape){const s=i.focusedElement.getFocusedElement();i.focusedElement.requestAsyncFocus(Y.EscapeGroupper,()=>{s!==i.focusedElement.getFocusedElement()&&(r&&!s||!r)||this._escapeGroupper(e,t,r)},0)}}}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class Si extends mt{constructor(e){super(),this._onChange=t=>{this.setVal(t,void 0)},this._keyborg=We(e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),He(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(e){var t;(t=this._keyborg)===null||t===void 0||t.setVal(e)}isNavigatingWithKeyboard(){var e;return!!(!((e=this._keyborg)===null||e===void 0)&&e.isNavigatingWithKeyboard())}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function Ni(o,e,t,r){if(typeof MutationObserver>"u")return()=>{};const i=e.getWindow;let n;const s=d=>{var u,f,h,g,v;const b=new Set;for(const y of d){const _=y.target,C=y.removedNodes,k=y.addedNodes;if(y.type==="attributes")y.attributeName===L&&(b.has(_)||t(e,_));else{for(let T=0;Ta(h,u));if(f)for(;f.nextNode(););}function a(d,u){var f;if(!d.getAttribute)return NodeFilter.FILTER_SKIP;const h=d.__tabsterElementUID;return h&&n&&(u?delete n[h]:(f=n[h])!==null&&f!==void 0||(n[h]=new O(i,d))),(M(e,d)||d.hasAttribute(L))&&t(e,d,u),NodeFilter.FILTER_SKIP}const c=m.createMutationObserver(s);return r&&l(i().document.body),c.observe(o,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[L]}),()=>{c.disconnect()}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class Di{constructor(e){this._isUncontrolledCompletely=e}isUncontrolledCompletely(e,t){var r;const i=(r=this._isUncontrolledCompletely)===null||r===void 0?void 0:r.call(this,e,t);return i===void 0?t:i}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class ji{constructor(e){this.keyboardNavigation=e.keyboardNavigation,this.focusedElement=e.focusedElement,this.focusable=e.focusable,this.root=e.root,this.uncontrolled=e.uncontrolled,this.core=e}}class Ai{constructor(e,t){var r,i;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.1.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=di(e),this._win=e;const n=this.getWindow;t!=null&&t.DOMAPI&&ai({...t.DOMAPI}),this.keyboardNavigation=new Si(n),this.focusedElement=new z(this,n),this.focusable=new Bi(this),this.root=new P(this,t==null?void 0:t.autoRoot),this.uncontrolled=new Di((t==null?void 0:t.checkUncontrolledCompletely)||(t==null?void 0:t.checkUncontrolledTrappingFocus)),this.controlTab=(r=t==null?void 0:t.controlTab)!==null&&r!==void 0?r:!0,this.rootDummyInputs=!!(t!=null&&t.rootDummyInputs),this._dummyObserver=new _i(n),this.getParent=(i=t==null?void 0:t.getParent)!==null&&i!==void 0?i:m.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const l=n().document;this._unobserve=Ni(l,this,it,s)}}},at(n),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(e){var t;e&&(this.getParent=(t=e.getParent)!==null&&t!==void 0?t:this.getParent)}createTabster(e,t){const r=new ji(this);return e||this._wrappers.add(r),this._mergeProps(t),r}disposeTabster(e,t){t?this._wrappers.clear():this._wrappers.delete(e),this._wrappers.size===0&&this.dispose()}dispose(){var e,t,r,i,n,s,l,a;this.internal.stopObserver();const c=this._win;c==null||c.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],c&&this._forgetMemorizedTimer&&(c.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(e=this.outline)===null||e===void 0||e.dispose(),(t=this.crossOrigin)===null||t===void 0||t.dispose(),(r=this.deloser)===null||r===void 0||r.dispose(),(i=this.groupper)===null||i===void 0||i.dispose(),(n=this.mover)===null||n===void 0||n.dispose(),(s=this.modalizer)===null||s===void 0||s.dispose(),(l=this.observedElement)===null||l===void 0||l.dispose(),(a=this.restorer)===null||a===void 0||a.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),fi(this.getWindow),Ae(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),c&&(ci(c),delete c.__tabsterInstance,delete this._win)}storageEntry(e,t){const r=this._storage;let i=r.get(e);return i?t===!1&&Object.keys(i).length===0&&r.delete(e):t===!0&&(i={},r.set(e,i)),i}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let e=this._forgetMemorizedElements.shift();e;e=this._forgetMemorizedElements.shift())Ae(this.getWindow,e),z.forgetMemorized(this.focusedElement,e)},0),st(this.getWindow,!0)))}queueInit(e){var t;this._win&&(this._initQueue.push(e),this._initTimer||(this._initTimer=(t=this._win)===null||t===void 0?void 0:t.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const e=this._initQueue;this._initQueue=[],e.forEach(t=>t())}}function Ri(o,e){let t=Oi(o);return t?t.createTabster(!1,e):(t=new Ai(o,e),o.__tabsterInstance=t,t.createTabster())}function qi(o){const e=o.core;return e.groupper||(e.groupper=new Pi(e,e.getWindow)),e.groupper}function Mi(o,e){o.core.disposeTabster(o,e)}function Oi(o){return o.__tabsterInstance}const Fe=()=>{const{targetDocument:o}=Ee(),e=(o==null?void 0:o.defaultView)||void 0,t=e==null?void 0:e.__tabsterShadowDOMAPI,r=p.useMemo(()=>e?Ri(e,{autoRoot:{},controlTab:!1,getParent:Br,checkUncontrolledTrappingFocus:i=>{var n;return!!(!((n=i.firstElementChild)===null||n===void 0)&&n.hasAttribute("data-is-focus-trap-zone-bumper"))},DOMAPI:t}):null,[e,t]);return wr(()=>()=>{r&&Mi(r)},[r]),r},Li=o=>{Fe();const e=ht(o);return p.useMemo(()=>({[L]:e}),[e])},Wi=o=>{const e=Fe();return e&&qi(e),Li({groupper:{tabbability:Hi(o==null?void 0:o.tabBehavior)},focusable:{ignoreKeydown:o==null?void 0:o.ignoreDefaultKeydown}})},Hi=o=>{switch(o){case"unlimited":return le.Unlimited;case"limited":return le.Limited;case"limited-trap-focus":return le.LimitedTrapFocus;default:return}},Gi=()=>{const o=Fe(),{targetDocument:e}=Ee(),t=p.useCallback((l,a)=>(o==null?void 0:o.focusable.findAll({container:l,acceptCondition:a}))||[],[o]),r=p.useCallback(l=>o==null?void 0:o.focusable.findFirst({container:l}),[o]),i=p.useCallback(l=>o==null?void 0:o.focusable.findLast({container:l}),[o]),n=p.useCallback((l,a={})=>{if(!o||!e)return null;const{container:c=e.body}=a;return o.focusable.findNext({currentElement:l,container:c})},[o,e]),s=p.useCallback((l,a={})=>{if(!o||!e)return null;const{container:c=e.body}=a;return o.focusable.findPrev({currentElement:l,container:c})},[o,e]);return{findAllFocusable:t,findFirstFocusable:r,findLastFocusable:i,findNextFocusable:n,findPrevFocusable:s}},pt="data-fui-focus-within";function Ui(o,e){const t=We(e);t.subscribe(n=>{n||Me(o)});const r=n=>{t.isNavigatingWithKeyboard()&&Oe(n.target)&&Vi(o)},i=n=>{(!n.relatedTarget||Oe(n.relatedTarget)&&!o.contains(n.relatedTarget))&&Me(o)};return o.addEventListener(Z,r),o.addEventListener("focusout",i),()=>{o.removeEventListener(Z,r),o.removeEventListener("focusout",i),He(t)}}function Vi(o){o.setAttribute(pt,"")}function Me(o){o.removeAttribute(pt)}function Oe(o){return o?!!(o&&typeof o=="object"&&"classList"in o&&"contains"in o):!1}function Ki(){const{targetDocument:o}=Ee(),e=p.useRef(null);return p.useEffect(()=>{if(o!=null&&o.defaultView&&e.current)return Ui(e.current,o.defaultView)},[e,o]),e}const $i=(o,{referenceLabel:e,referenceId:t},r)=>{const{checkbox:i={},onSelectionChange:n,floatingAction:s,onClick:l,onKeyDown:a}=o,{findAllFocusable:c}=Gi(),d=p.useRef(null),[u,f]=mr({state:o.selected,defaultState:o.defaultSelected,initialState:!1}),h=[o.selected,o.defaultSelected,n].some(w=>typeof w<"u"),[g,v]=p.useState(!1),b=p.useCallback(w=>{if(!r.current)return!1;const x=c(r.current),F=w.target,J=x.some(ne=>ne.contains(F)),q=(d==null?void 0:d.current)===F;return J&&!q},[r,c]),y=p.useCallback(w=>{if(b(w))return;const x=!u;f(x),n&&n(w,{selected:x})},[n,u,f,b]),_=p.useCallback(w=>{[Lt].includes(w.key)&&(w.preventDefault(),y(w))},[y]),C=p.useMemo(()=>{if(!h||s)return;const w={};return t?w["aria-labelledby"]=t:e&&(w["aria-label"]=e),Q(i,{defaultProps:{ref:d,type:"checkbox",checked:u,onChange:x=>y(x),onFocus:()=>v(!0),onBlur:()=>v(!1),...w},elementType:"input"})},[i,s,u,h,y,t,e]),k=p.useMemo(()=>{if(s)return Q(s,{defaultProps:{ref:d},elementType:"div"})},[s]),T=p.useMemo(()=>h?{onClick:Ne(l,y),onKeyDown:Ne(a,_)}:null,[h,y,l,a,_]);return{selected:u,selectable:h,selectFocused:g,selectableCardProps:T,checkboxSlot:C,floatingActionSlot:k}},gt=p.createContext(void 0),_e={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},Ji=gt.Provider,Qi=()=>{var o;return(o=p.useContext(gt))!==null&&o!==void 0?o:_e},Yi={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},Xi=({focusMode:o,...e})=>{const t=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(s=>e[s]),r=o??(t?"no-tab":"off"),n={...Wi({tabBehavior:Yi[r]}),tabIndex:0};return{interactive:t,focusAttributes:r==="off"?null:n}},Zi=(o,e)=>{const{appearance:t="filled",orientation:r="vertical",size:i="medium"}=o,[n,s]=p.useState(_e.selectableA11yProps.referenceId),[l,a]=p.useState(_e.selectableA11yProps.referenceId),c=Ki(),{selectable:d,selected:u,selectableCardProps:f,selectFocused:h,checkboxSlot:g,floatingActionSlot:v}=$i(o,{referenceId:n,referenceLabel:l},c),b=Cr(c,e),{interactive:y,focusAttributes:_}=Xi(o);return{appearance:t,orientation:r,size:i,interactive:y,selectable:d,selectFocused:h,selected:u,selectableA11yProps:{setReferenceId:s,referenceId:n,referenceLabel:l,setReferenceLabel:a},components:{root:"div",floatingAction:"div",checkbox:"input"},root:Te(et("div",{ref:b,role:"group",...d?null:_,...o,...f}),{elementType:"div"}),floatingAction:v,checkbox:g}};function en(o,e){return{...e,[fe]:o}}function vt(o,e){return function(r,i,n,s,l){return Se(i)?e(en(r,i),null,n,s,l):Se(r)?e(r,i,n,s,l):o(r,i,n,s,l)}}function bt(o){const{as:e,[fe]:t,[Xe]:r,...i}=o,n=i,s=typeof t=="string"?e??t:t;return typeof s!="string"&&e&&(n.as=e),{elementType:s,props:n,renderFunction:r}}const V=Tt,tn=(o,e,t)=>{const{elementType:r,renderFunction:i,props:n}=bt(o),s={...n,...e};return i?V.jsx(p.Fragment,{children:i(r,s)},t):V.jsx(r,s,t)},on=(o,e,t)=>{const{elementType:r,renderFunction:i,props:n}=bt(o),s={...n,...e};return i?V.jsx(p.Fragment,{children:i(r,{...s,children:V.jsxs(p.Fragment,{children:s.children},void 0)})},t):V.jsxs(r,s,t)},G=vt(V.jsx,tn),_t=vt(V.jsxs,on),rn=(o,e)=>G(o.root,{children:_t(Ji,{value:e,children:[o.checkbox?G(o.checkbox,{}):null,o.floatingAction?G(o.floatingAction,{}):null,o.root.children]})}),yt={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},nn=W({root:{Bkc6ea2:"fkufhic",Bt984gj:"f122n59"},image:{mc9l5x:"ftuwxu6",t21cq0:["fql5097","f6yss9k"]},header:{mc9l5x:"f22iagw"},description:{mc9l5x:"f22iagw"},action:{Frg6f3:["f6yss9k","fql5097"],B7frvx2:"f1ndzpm5",B06c7xf:["f1fkeggc","f1u45u6i"],B8uq84v:"f16eyofs",snkdo8:["f1u45u6i","f1fkeggc"],Bpf22ct:"f1wkmkig",apjfyd:"f18alut9"}},{d:[".fkufhic{--fui-CardHeader--gap:12px;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".fql5097{margin-right:var(--fui-CardHeader--gap);}",".f6yss9k{margin-left:var(--fui-CardHeader--gap);}",".f22iagw{display:flex;}"],m:[["@media (forced-colors: active){.f1ndzpm5 .fui-Button,.f1ndzpm5 .fui-Link{border-top-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1fkeggc .fui-Button,.f1fkeggc .fui-Link{border-right-color:currentColor;}.f1u45u6i .fui-Button,.f1u45u6i .fui-Link{border-left-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16eyofs .fui-Button,.f16eyofs .fui-Link{border-bottom-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wkmkig .fui-Button,.f1wkmkig .fui-Link{color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18alut9 .fui-Button,.f18alut9 .fui-Link{outline-color:currentColor;}}",{m:"(forced-colors: active)"}]]}),sn=W({root:{mc9l5x:"f13qh94s",t4k1zu:"f8a668j"},image:{Br312pm:"fwpfdsa",Ijaq50:"fldnz9j"},header:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},description:{Br312pm:"fd46tj4",Ijaq50:"faunodf"},action:{Br312pm:"fis13di",Ijaq50:"fldnz9j"}},{d:[".f13qh94s{display:grid;}",".f8a668j{grid-auto-columns:min-content 1fr min-content;}",".fwpfdsa{grid-column-start:1;}",".fldnz9j{grid-row-start:span 2;}",".fd46tj4{grid-column-start:2;}",".f16hsg94{grid-row-start:1;}",".faunodf{grid-row-start:2;}",".fis13di{grid-column-start:3;}"]}),an=W({root:{mc9l5x:"f22iagw"},header:{Bh6795r:"fqerorx"},image:{},description:{},action:{}},{d:[".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}"]}),ln=o=>{"use no memo";const e=nn(),t=sn(),r=an(),i=o.description?t:r,n=s=>{var l;return j(yt[s],e[s],i[s],(l=o[s])===null||l===void 0?void 0:l.className)};return o.root.className=n("root"),o.image&&(o.image.className=n("image")),o.header&&(o.header.className=n("header")),o.description&&(o.description.className=n("description")),o.action&&(o.action.className=n("action")),o},ge={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},cn=Wt("rfxo2k2","rgle7w9",[".rfxo2k2{overflow:hidden;border-radius:var(--fui-Card--border-radius);padding:var(--fui-Card--size);gap:var(--fui-Card--size);display:flex;position:relative;box-sizing:border-box;color:var(--colorNeutralForeground1);}",'.rfxo2k2::after{position:absolute;top:0;left:0;right:0;bottom:0;content:"";pointer-events:none;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-radius:var(--fui-Card--border-radius);}',".rfxo2k2>.fui-CardHeader,.rfxo2k2>.fui-CardFooter{flex-shrink:0;}",".rgle7w9{overflow:hidden;border-radius:var(--fui-Card--border-radius);padding:var(--fui-Card--size);gap:var(--fui-Card--size);display:flex;position:relative;box-sizing:border-box;color:var(--colorNeutralForeground1);}",'.rgle7w9::after{position:absolute;top:0;right:0;left:0;bottom:0;content:"";pointer-events:none;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-radius:var(--fui-Card--border-radius);}',".rgle7w9>.fui-CardHeader,.rgle7w9>.fui-CardFooter{flex-shrink:0;}"]),dn=W({focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",f6g5ot:0,Boxcth7:0,Bhdgwq3:0,hgwjuy:0,Bshpdp8:0,Bsom6fd:0,Blkhhs4:0,Bonggc9:0,Ddfuxk:0,i03rao:0,kclons:0,clg4pj:0,Bpqj9nj:0,B6dhp37:0,Bf4ptjt:0,Bqtpl0w:0,i4rwgc:"fpqizxz",Dah5zi:0,B1tsrr9:0,qqdqy8:0,Bkh64rk:0,e3fwne:"fnd8nzh",J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",Byrf0fs:0,Bsiemmq:0,Bwckmig:0,skfxo0:0,Iidy0u:0,B98u21t:0,Bvwlmkc:0,jo1ztg:0,Ba1iezr:0,Blmvk6g:0,B24cy0v:0,Bil7v7r:0,Br3gin4:0,nr063g:0,ghq09:0,Bbgo44z:0,Bseh09z:"f1i978nd",az1dzo:0,Ba3ybja:0,B6352mv:0,vppk2z:0,Biaj6j7:"f1nh8hsq",B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Binpb3b:"ftrw7vg",qrt8p2:"f18opajm",k6ws3r:["f13002it","fqo182t"],Btcwela:["f18yna97","f1kd6wh7"],Fer9m8:"f4i4759"},orientationVertical:{Beiy3e4:"f1vx9l62",B5nvv7i:["f14k419y","f1fgo9fz"],Baxg94k:["f1fgo9fz","f14k419y"],tn21ii:"fvqmfsm",B0ud6bj:"f3am6yf",Bgdo4j:"f1r5wgso"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},interactive:{rhjd8f:"f1epqm3e"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Bi91k9c:"feu1g3u",Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"fx9teim",Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Bi91k9c:"fnwyq0v",Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"f1luvkty",Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Bi91k9c:"feu1g3u",Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"fx9teim",Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Bi91k9c:"feu1g3u",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"fx9teim",Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",[".fpqizxz[data-fui-focus-visible]::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",{p:-2}],[".fnd8nzh[data-fui-focus-visible]::after{border-radius:var(--fui-Card--border-radius);}",{p:-1}],".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",[".f1i978nd[data-fui-focus-within]:focus-within::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",{p:-2}],[".f1nh8hsq[data-fui-focus-within]:focus-within::after{border-radius:var(--fui-Card--border-radius);}",{p:-1}],".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".ftrw7vg>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".f18opajm>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.f13002it>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.fqo182t>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f18yna97>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1kd6wh7>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f4i4759>.fui-CardHeader:last-of-type,.f4i4759>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".f14k419y>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".f1fgo9fz>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.fvqmfsm>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".f3am6yf>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.f1r5wgso>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".f1epqm3e .fui-Text{color:currentColor;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".fx9teim:hover{color:var(--colorNeutralForeground1Selected);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".f1luvkty:hover{color:var(--colorNeutralForeground2Selected);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),un=o=>{"use no memo";const e=cn(),t=dn(),r={horizontal:t.orientationHorizontal,vertical:t.orientationVertical},i={small:t.sizeSmall,medium:t.sizeMedium,large:t.sizeLarge},n={filled:t.filled,"filled-alternative":t.filledAlternative,outline:t.outline,subtle:t.subtle},s={filled:t.filledInteractiveSelected,"filled-alternative":t.filledAlternativeInteractiveSelected,outline:t.outlineInteractiveSelected,subtle:t.subtleInteractiveSelected},l={filled:t.filledInteractive,"filled-alternative":t.filledAlternativeInteractive,outline:t.outlineInteractive,subtle:t.subtleInteractive},a=o.interactive||o.selectable,c=p.useMemo(()=>o.selectable?o.selectFocused?t.selectableFocused:"":t.focused,[o.selectFocused,o.selectable,t.focused,t.selectableFocused]);return o.root.className=j(ge.root,e,r[o.orientation],i[o.size],n[o.appearance],a&&t.interactive,a&&l[o.appearance],o.selected&&s[o.appearance],c,a&&t.highContrastInteractive,o.selected&&t.highContrastSelected,o.root.className),o.floatingAction&&(o.floatingAction.className=j(ge.floatingAction,t.select,o.floatingAction.className)),o.checkbox&&(o.checkbox.className=j(ge.checkbox,t.hiddenCheckbox,o.checkbox.className)),o};function fn({selectableA11yProps:o}){return{selectableA11yProps:o}}const wt=p.forwardRef((o,e)=>{const t=Zi(o,e),r=fn(t);return un(t),rn(t,r)});wt.displayName="Card";function hn(o){function e(t){return p.isValidElement(t)&&!!t.props.id}return p.Children.toArray(o).find(e)}function mn(o,e,t){return o||(e!=null&&e.props.id?e.props.id:t)}const pn=(o,e)=>{const{image:t,header:r,description:i,action:n}=o,{selectableA11yProps:{referenceId:s,setReferenceId:l}}=Qi(),a=p.useRef(null),c=p.useRef(!1),d=xr(yt.header,s),u=Q(r,{renderByDefault:!0,defaultProps:{ref:a,id:c.current?void 0:s},elementType:"div"});return p.useEffect(()=>{var f;const h=c.current||(f=a.current)===null||f===void 0?void 0:f.id,g=hn(u==null?void 0:u.children);c.current=!!g,l(mn(h,g,d))},[d,r,u,l]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:Te(et("div",{ref:e,...o}),{elementType:"div"}),image:Q(t,{elementType:"div"}),header:u,description:Q(i,{elementType:"div"}),action:Q(n,{elementType:"div"})}},gn=o=>_t(o.root,{children:[o.image&&G(o.image,{}),o.header&&G(o.header,{}),o.description&&G(o.description,{}),o.action&&G(o.action,{})]}),kt=p.forwardRef((o,e)=>{const t=pn(o,e);return ln(t),gn(t)});kt.displayName="CardHeader";const vn=()=>E.jsx(E.Fragment,{children:E.jsx(Ge,{resource:"termStore/groups",version:"beta",scopes:["TermStore.Read.All"],children:E.jsx(bn,{template:"default"})})}),xt=Ht({main:{...H.gap("36px"),display:"flex",flexDirection:"column",flexWrap:"wrap"},title:{...H.margin(0,0,"12px")},description:{...H.margin(0,0,"12px")},card:{width:"480px",maxWidth:"100%",height:"fit-content",...H.margin("12px",0)},caption:{color:Gt.colorNeutralForeground3},icon:{width:"24px",height:"24px"},text:{...H.margin(0)},groupPanel:{...H.margin("12px","24px")},termPanel:{...H.margin("12px","36px")}}),bn=o=>{const e=xt(),[t]=p.useState(o.dataContext.value);return E.jsx(we,{collapsible:!0,children:t.map(r=>E.jsxs(ke,{value:r.id,children:[E.jsx(xe,{icon:E.jsx(Ut,{}),children:r.displayName}),E.jsx(Ce,{className:e.groupPanel,children:E.jsx(Ge,{resource:`termStore/groups/${r.id}/sets`,version:"beta",scopes:["TermStore.Read.All"],children:E.jsx(_n,{template:"default"})})})]},r.id))})},_n=o=>{const e=xt(),[t]=p.useState(o.dataContext.value),[r,i]=p.useState(null);return E.jsx(we,{collapsible:!0,onToggle:()=>i(null),children:t.map(n=>{var s,l,a;return E.jsxs(ke,{value:n.id,children:[E.jsx(xe,{children:n.localizedNames[0].name}),E.jsxs(Ce,{className:e.termPanel,children:[E.jsx(eo,{termsetId:n.id,selectionChanged:c=>i(c.detail)}),r&&E.jsxs(wt,{className:e.card,children:[E.jsx(kt,{image:E.jsx(Vt,{className:e.icon}),header:E.jsx(Ye,{weight:"semibold",children:(s=r.labels)==null?void 0:s[0].name}),description:E.jsx(Ro,{className:e.caption,children:r.id})}),((l=r.descriptions)==null?void 0:l.length)>0&&E.jsx("p",{className:e.text,children:(a=r.descriptions)==null?void 0:a[0].description})]})]})]},n.id)})})},Bn=()=>E.jsxs(E.Fragment,{children:[E.jsx(Et,{title:"Taxonomy Explorer",description:"Use this taxonomy explorer to see all term groups, term sets and terms available"}),E.jsx(vn,{})]});export{Bn as default}; diff --git a/next/sample/pr/3325/assets/get-Bki3P7Iw.js b/next/sample/pr/3325/assets/get-Bki3P7Iw.js new file mode 100644 index 0000000000..4bd23756cf --- /dev/null +++ b/next/sample/pr/3325/assets/get-Bki3P7Iw.js @@ -0,0 +1 @@ +import{w as t}from"./App-c9ixsJC9.js";import{r}from"./mgt-get-nlun5DqF.js";const m=t("get",r);export{m as G}; diff --git a/next/sample/pr/3325/assets/index-D1MpQKKC.js b/next/sample/pr/3325/assets/index-D1MpQKKC.js new file mode 100644 index 0000000000..2f1d32c9a3 --- /dev/null +++ b/next/sample/pr/3325/assets/index-D1MpQKKC.js @@ -0,0 +1,285 @@ +import{m as g,u as x,d4 as S,F as k,d5 as H,_ as i,b as s,o as p,c6 as I,D as w,n as u,bB as f,bC as A,bD as O,bz as L,aF as E,bA as M,d6 as _,y as h,z as v,bG as b,E as r,K as z,J as N,cD as R,d7 as D,G as B,I as m,P as q,d8 as G,d9 as j,da as K,db as J,bJ as y,dc as P,bK as U,M as W,dd as Q,de as V,bW as X,bV as Y,Q as F,R as o,df as Z,cj as ee,ce as $,ck as te,cg as ae,ch as oe}from"./App-c9ixsJC9.js";import{_ as ie}from"./index-hkJM60Tb.js";const le=(t,a)=>g` + +`;class se extends k{}class re extends S(se){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class d extends re{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=a=>{if(!this.readOnly)switch(a.key){case H:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=a=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}i([s({attribute:"readonly",mode:"boolean"})],d.prototype,"readOnly",void 0);i([p],d.prototype,"defaultSlottedNodes",void 0);i([p],d.prototype,"indeterminate",void 0);class ne extends k{}class de extends I(ne){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const ce={email:"email",password:"password",tel:"tel",text:"text",url:"url"};let l=class extends de{constructor(){super(...arguments),this.type=ce.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&w.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};i([s({attribute:"readonly",mode:"boolean"})],l.prototype,"readOnly",void 0);i([s({mode:"boolean"})],l.prototype,"autofocus",void 0);i([s],l.prototype,"placeholder",void 0);i([s],l.prototype,"type",void 0);i([s],l.prototype,"list",void 0);i([s({converter:u})],l.prototype,"maxlength",void 0);i([s({converter:u})],l.prototype,"minlength",void 0);i([s],l.prototype,"pattern",void 0);i([s({converter:u})],l.prototype,"size",void 0);i([s({mode:"boolean"})],l.prototype,"spellcheck",void 0);i([p],l.prototype,"defaultSlottedNodes",void 0);class T{}f(T,A);f(l,O,T);const he=(t,a)=>g` + +`,pe=(t,a)=>h` + ${v("inline-flex")} :host { + align-items: center; + outline: none; + ${""} user-select: none; + } + + .control { + position: relative; + width: calc((${b} / 2 + ${r}) * 1px); + height: calc((${b} / 2 + ${r}) * 1px); + box-sizing: border-box; + border-radius: calc(${z} * 1px); + border: calc(${N} * 1px) solid ${R}; + background: ${D}; + cursor: pointer; + } + + .label__hidden { + display: none; + visibility: hidden; + } + + .label { + ${B} + color: ${m}; + ${""} padding-inline-start: calc(${r} * 2px + 2px); + margin-inline-end: calc(${r} * 2px + 2px); + cursor: pointer; + } + + slot[name='checked-indicator'], + slot[name='indeterminate-indicator'] { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; + fill: ${m}; + opacity: 0; + pointer-events: none; + } + + slot[name='indeterminate-indicator'] { + position: absolute; + top: 0; + } + + :host(.checked) slot[name='checked-indicator'], + :host(.checked) slot[name='indeterminate-indicator'] { + fill: ${q}; + } + + :host(:not(.disabled):hover) .control { + background: ${G}; + border-color: ${j}; + } + + :host(:not(.disabled):active) .control { + background: ${K}; + border-color: ${J}; + } + + :host(:${y}) .control { + background: ${P}; + ${U} + } + + :host(.checked) .control { + background: ${W}; + border-color: transparent; + } + + :host(.checked:not(.disabled):hover) .control { + background: ${Q}; + border-color: transparent; + } + + :host(.checked:not(.disabled):active) .control { + background: ${V}; + border-color: transparent; + } + + :host(.disabled) .label, + :host(.readonly) .label, + :host(.readonly) .control, + :host(.disabled) .control { + cursor: ${X}; + } + + :host(.checked:not(.indeterminate)) slot[name='checked-indicator'], + :host(.indeterminate) slot[name='indeterminate-indicator'] { + opacity: 1; + } + + :host(.disabled) { + opacity: ${Y}; + } + `.withBehaviors(F(h` + .control { + border-color: ${o.FieldText}; + background: ${o.Field}; + } + :host(:not(.disabled):hover) .control, + :host(:not(.disabled):active) .control { + border-color: ${o.Highlight}; + background: ${o.Field}; + } + slot[name='checked-indicator'], + slot[name='indeterminate-indicator'] { + fill: ${o.FieldText}; + } + :host(:${y}) .control { + forced-color-adjust: none; + outline-color: ${o.FieldText}; + background: ${o.Field}; + border-color: ${o.Highlight}; + } + :host(.checked) .control { + background: ${o.Highlight}; + border-color: ${o.Highlight}; + } + :host(.checked:not(.disabled):hover) .control, + :host(.checked:not(.disabled):active) .control { + background: ${o.HighlightText}; + border-color: ${o.Highlight}; + } + :host(.checked) slot[name='checked-indicator'], + :host(.checked) slot[name='indeterminate-indicator'] { + fill: ${o.HighlightText}; + } + :host(.checked:hover ) .control slot[name='checked-indicator'], + :host(.checked:hover ) .control slot[name='indeterminate-indicator'] { + fill: ${o.Highlight}; + } + :host(.disabled) { + opacity: 1; + } + :host(.disabled) .control { + border-color: ${o.GrayText}; + background: ${o.Field}; + } + :host(.disabled) slot[name='checked-indicator'], + :host(.checked.disabled:hover) .control slot[name='checked-indicator'], + :host(.disabled) slot[name='indeterminate-indicator'], + :host(.checked.disabled:hover) .control slot[name='indeterminate-indicator'] { + fill: ${o.GrayText}; + } + `)),$e=d.compose({baseName:"checkbox",template:le,styles:pe,checkedIndicator:` + + + + `,indeterminateIndicator:` + + + + `}),n=".root",ue=(t,a)=>h` + ${v("inline-block")} + + ${Z(t,a,n)} + + ${ee()} + + .root { + display: flex; + flex-direction: row; + } + + .control { + -webkit-appearance: none; + color: inherit; + background: transparent; + border: 0; + height: calc(100% - 4px); + margin-top: auto; + margin-bottom: auto; + padding: 0 calc(${r} * 2px + 1px); + font-family: inherit; + font-size: inherit; + line-height: inherit; + } + + .start, + .end { + display: flex; + margin: auto; + } + + .start { + display: flex; + margin-inline-start: 11px; + } + + .end { + display: flex; + margin-inline-end: 11px; + } + `.withBehaviors($("outline",te(t,a,n)),$("filled",ae(t,a,n)),F(oe(t,a,n)));class C extends l{appearanceChanged(a,e){a!==e&&(this.classList.add(e),this.classList.remove(a))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}ie([s],C.prototype,"appearance",void 0);const ge=C.compose({baseName:"text-field",baseClass:l,template:he,styles:ue,shadowOptions:{delegatesFocus:!0}});export{$e as a,ge as f}; diff --git a/next/sample/pr/3325/assets/index-DlteEK7B.js b/next/sample/pr/3325/assets/index-DlteEK7B.js new file mode 100644 index 0000000000..d6c493786f --- /dev/null +++ b/next/sample/pr/3325/assets/index-DlteEK7B.js @@ -0,0 +1,342 @@ +import{_ as K}from"./index-hkJM60Tb.js";import{c6 as Q,c7 as V,c8 as X,D as Y,O as p,c9 as Z,_ as r,b as h,o as f,bB as R,ca as tt,bD as et,m as T,bz as L,aF as A,bA as D,u as E,cb as g,y as d,z,K as b,I as P,bQ as ot,cc as it,N as M,cd as st,bG as l,E as c,J as n,G as k,bJ as C,bS as N,bW as w,bV as W,ce as F,cf as It,cg as at,Q as j,ch as lt,ci as At,R as s,cj as nt,ck as rt,aJ as ct,bR as dt,bL as $,bT as B,bU as H,M as _,cl as ht,bX as pt,cm as ut,cn as bt,co as ft}from"./App-c9ixsJC9.js";const m={above:"above",below:"below"};class vt extends V{}class xt extends Q(vt){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const u={inline:"inline",list:"list",both:"both",none:"none"};let a=class extends xt{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=X("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===u.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===u.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===u.both}openChanged(){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),Y.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}get options(){return p.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(e){this._options=e,p.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}get value(){return p.track(this,"value"),this._value}set value(e){var t,o,x;const O=`${this._value}`;if(this.$fastController.isConnected&&this.options){const I=this.options.findIndex(J=>J.text.toLowerCase()===e.toLowerCase()),q=(t=this.options[this.selectedIndex])===null||t===void 0?void 0:t.text,G=(o=this.options[I])===null||o===void 0?void 0:o.text;this.selectedIndex=q!==G?I:this.selectedIndex,e=((x=this.firstSelectedOption)===null||x===void 0?void 0:x.text)||e}O!==e&&(this._value=e,super.valueChanged(O,e),p.notify(this,"value"))}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.clearSelectionRange(),this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){(!this.autocomplete||this.autocomplete===u.none)&&(this.filter="");const e=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(!this.filteredOptions.length&&!e&&(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame(()=>{var e;(e=this.firstSelectedOption)===null||e===void 0||e.scrollIntoView({block:"nearest"})}))}focusoutHandler(e){if(this.syncValue(),!this.open)return!0;const t=e.relatedTarget;if(this.isSameNode(t)){this.focus();return}(!this.options||!this.options.includes(t))&&(this.open=!1)}inputHandler(e){if(this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map(t=>t.text).indexOf(this.control.value)),e.inputType.includes("deleteContent")||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&(this.filteredOptions.length?(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection()):this.selectedIndex=-1)}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":{this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();break}case"Escape":{if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break}case"Tab":{if(this.setInputToSelection(),!this.open)return!0;e.preventDefault(),this.open=!1;break}case"ArrowUp":case"ArrowDown":{if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(e),this.isAutocompleteInline&&this.setInlineSelection();break}default:return!0}}keyupHandler(e){switch(e.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":{this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions();break}}}selectedIndexChanged(e,t){if(this.$fastController.isConnected){if(t=Z(-1,this.options.length-1,t),t!==this.selectedIndex){this.selectedIndex=t;return}super.selectedIndexChanged(e,t)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const e=this.options.findIndex(t=>t.getAttribute("selected")!==null||t.selected);this.selectedIndex=e,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}syncValue(){var e;const t=this.selectedIndex>-1?(e=this.firstSelectedOption)===null||e===void 0?void 0:e.text:this.control.value;this.updateValue(this.value!==t)}setPositioning(){const e=this.getBoundingClientRect(),o=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>o?m.above:m.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===m.above?~~e.top:~~o}selectedOptionsChanged(e,t){this.$fastController.isConnected&&this._options.forEach(o=>{o.selected=t.includes(o)})}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.updateValue()}updateValue(e){var t;this.$fastController.isConnected&&(this.value=((t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)||this.control.value,this.control.value=this.value),e&&this.$emit("change")}clearSelectionRange(){const e=this.control.value.length;this.control.setSelectionRange(e,e)}};r([h({attribute:"autocomplete",mode:"fromView"})],a.prototype,"autocomplete",void 0);r([f],a.prototype,"maxHeight",void 0);r([h({attribute:"open",mode:"boolean"})],a.prototype,"open",void 0);r([h],a.prototype,"placeholder",void 0);r([h({attribute:"position"})],a.prototype,"positionAttribute",void 0);r([f],a.prototype,"position",void 0);class v{}r([f],v.prototype,"ariaAutoComplete",void 0);r([f],v.prototype,"ariaControls",void 0);R(v,tt);R(a,et,v);const gt=(i,e)=>T` + +`,$t=(i,e)=>T` + +`;class mt{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e);t&&g.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new yt(this.ltr,this.rtl,e),o=g.getValueFor(e);g.subscribe(t),t.attach(o),this.cache.set(e,t)}}class yt{constructor(e,t,o){this.ltr=e,this.rtl=t,this.source=o,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(this.source))}attach(e){this.attached!==this[e]&&(this.attached!==null&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],this.attached!==null&&this.source.$fastController.addStyles(this.attached))}}const St=(i,e)=>d` + ${z("inline-flex")} + + :host { + border-radius: calc(${b} * 1px); + box-sizing: border-box; + color: ${P}; + fill: currentcolor; + font-family: ${ot}; + position: relative; + user-select: none; + min-width: 250px; + vertical-align: top; + } + + .listbox { + box-shadow: ${it}; + background: ${M}; + border-radius: calc(${st} * 1px); + box-sizing: border-box; + display: inline-flex; + flex-direction: column; + left: 0; + max-height: calc(var(--max-height) - (${l} * 1px)); + padding: calc((${c} - ${n} ) * 1px); + overflow-y: auto; + position: absolute; + width: 100%; + z-index: 1; + margin: 1px 0; + border: calc(${n} * 1px) solid transparent; + } + + .listbox[hidden] { + display: none; + } + + .control { + border: calc(${n} * 1px) solid transparent; + border-radius: calc(${b} * 1px); + height: calc(${l} * 1px); + align-items: center; + box-sizing: border-box; + cursor: pointer; + display: flex; + ${k} + min-height: 100%; + padding: 0 calc(${c} * 2.25px); + width: 100%; + } + + :host(:${C}) { + ${N} + } + + :host([disabled]) .control { + cursor: ${w}; + opacity: ${W}; + user-select: none; + } + + :host([open][position='above']) .listbox { + bottom: calc((${l} + ${c} * 2) * 1px); + } + + :host([open][position='below']) .listbox { + top: calc((${l} + ${c} * 2) * 1px); + } + + .selected-value { + font-family: inherit; + flex: 1 1 auto; + text-align: start; + } + + .indicator { + flex: 0 0 auto; + margin-inline-start: 1em; + } + + slot[name='listbox'] { + display: none; + width: 100%; + } + + :host([open]) slot[name='listbox'] { + display: flex; + position: absolute; + } + + .start { + margin-inline-end: 11px; + } + + .end { + margin-inline-start: 11px; + } + + .start, + .end, + .indicator, + ::slotted(svg) { + display: flex; + } + + ::slotted([role='option']) { + flex: 0 0 auto; + } + `;const y=".control",S=":not([disabled]):not([open])",Ct=(i,e)=>d` + ${St()} + + ${nt()} + + :host(:empty) .listbox { + display: none; + } + + :host([disabled]) *, + :host([disabled]) { + cursor: ${w}; + user-select: none; + } + + :host(:active) .selected-value { + user-select: none; + } + + .selected-value { + -webkit-appearance: none; + background: transparent; + border: none; + color: inherit; + ${k} + height: calc(100% - ${n} * 1px)); + margin: auto 0; + width: 100%; + outline: none; + } + `.withBehaviors(F("outline",rt(i,e,y,S)),F("filled",at(i,e,y,S)),j(lt(i,e,y,S)));class U extends a{appearanceChanged(e,t){e!==t&&(this.classList.add(t),this.classList.remove(e))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline"),this.listbox&&M.setValueFor(this.listbox,ct)}}K([h({mode:"fromView"})],U.prototype,"appearance",void 0);const Bt=U.compose({baseName:"combobox",baseClass:a,shadowOptions:{delegatesFocus:!0},template:gt,styles:Ct,indicator:` + + + + `}),kt=(i,e)=>d` + ${z("inline-flex")} :host { + position: relative; + ${k} + background: ${dt}; + border-radius: calc(${b} * 1px); + border: calc(${n} * 1px) solid transparent; + box-sizing: border-box; + color: ${P}; + cursor: pointer; + fill: currentcolor; + height: calc(${l} * 1px); + overflow: hidden; + align-items: center; + padding: 0 calc(((${c} * 3) - ${n} - 1) * 1px); + user-select: none; + white-space: nowrap; + } + + :host::before { + content: ''; + display: block; + position: absolute; + left: calc((${$} - ${n}) * 1px); + top: calc((${l} / 4) - ${$} * 1px); + width: 3px; + height: calc((${l} / 2) * 1px); + background: transparent; + border-radius: calc(${b} * 1px); + } + + :host(:not([disabled]):hover) { + background: ${B}; + } + + :host(:not([disabled]):active) { + background: ${H}; + } + + :host(:not([disabled]):active)::before { + background: ${_}; + height: calc(((${l} / 2) - 6) * 1px); + } + + :host([aria-selected='true'])::before { + background: ${_}; + } + + :host(:${C}) { + ${N} + background: ${ht}; + } + + :host([aria-selected='true']) { + background: ${pt}; + } + + :host(:not([disabled])[aria-selected='true']:hover) { + background: ${ut}; + } + + :host(:not([disabled])[aria-selected='true']:active) { + background: ${bt}; + } + + :host(:not([disabled]):not([aria-selected='true']):hover) { + background: ${B}; + } + + :host(:not([disabled]):not([aria-selected='true']):active) { + background: ${H}; + } + + :host([disabled]) { + cursor: ${w}; + opacity: ${W}; + } + + .content { + grid-column-start: 2; + justify-self: start; + overflow: hidden; + text-overflow: ellipsis; + } + + .start, + .end, + ::slotted(svg) { + display: flex; + } + + ::slotted([slot='end']) { + margin-inline-start: 1ch; + } + + ::slotted([slot='start']) { + margin-inline-end: 1ch; + } + `.withBehaviors(new mt(null,d` + :host::before { + right: calc((${$} - ${n}) * 1px); + } + `),j(d` + :host { + background: ${s.ButtonFace}; + border-color: ${s.ButtonFace}; + color: ${s.ButtonText}; + } + :host(:not([disabled]):not([aria-selected="true"]):hover), + :host(:not([disabled])[aria-selected="true"]:hover), + :host([aria-selected="true"]) { + forced-color-adjust: none; + background: ${s.Highlight}; + color: ${s.HighlightText}; + } + :host(:not([disabled]):active)::before, + :host([aria-selected='true'])::before { + background: ${s.HighlightText}; + } + :host([disabled]), + :host([disabled]:not([aria-selected='true']):hover) { + background: ${s.Canvas}; + color: ${s.GrayText}; + fill: currentcolor; + opacity: 1; + } + :host(:${C}) { + outline-color: ${s.CanvasText}; + } + `)),Ht=ft.compose({baseName:"option",template:$t,styles:kt});export{mt as D,Bt as a,Ht as f}; diff --git a/next/sample/pr/3325/assets/index-hkJM60Tb.js b/next/sample/pr/3325/assets/index-hkJM60Tb.js new file mode 100644 index 0000000000..a937ffd103 --- /dev/null +++ b/next/sample/pr/3325/assets/index-hkJM60Tb.js @@ -0,0 +1,74 @@ +function zd(r,e){for(var t=0;tn[o]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=t(o);fetch(o.href,i)}})();const Tp="modulepreload",Sp=function(r){return"/"+r},Gu={},Ip=function(e,t,n){let o=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(t.map(c=>{if(c=Sp(c),c in Gu)return;Gu[c]=!0;const u=c.endsWith(".css"),l=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${l}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Tp,u||(d.as="script"),d.crossOrigin="",d.href=c,s&&d.setAttribute("nonce",s),document.head.appendChild(d),u)return new Promise((h,m)=>{d.addEventListener("load",h),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return e().catch(i)})};function Mc(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var jd={exports:{}},ai={};/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var zu=Object.getOwnPropertySymbols,Ap=Object.prototype.hasOwnProperty,kp=Object.prototype.propertyIsEnumerable;function Rp(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function Np(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Qd=Np()?Object.assign:function(r,e){for(var t,n=Rp(r),o,i=1;i"u"||typeof MessageChannel!="function"){var c=null,u=null,l=function(){if(c!==null)try{var P=r.unstable_now();c(!0,P),c=null}catch(Y){throw setTimeout(l,0),Y}};e=function(P){c!==null?setTimeout(e,0,P):(c=P,setTimeout(l,0))},t=function(P,Y){u=setTimeout(P,Y)},n=function(){clearTimeout(u)},r.unstable_shouldYield=function(){return!1},o=r.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var m=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof m!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,E=null,g=-1,f=5,p=0;r.unstable_shouldYield=function(){return r.unstable_now()>=p},o=function(){},r.unstable_forceFrameRate=function(P){0>P||125>>1,Ae=P[ge];if(Ae!==void 0&&0x(kr,W))en!==void 0&&0>x(en,kr)?(P[ge]=en,P[Jn]=W,ge=Jn):(P[ge]=kr,P[Ar]=W,ge=Ar);else if(en!==void 0&&0>x(en,W))P[ge]=en,P[Jn]=W,ge=Jn;else break e}}return Y}return null}function x(P,Y){var W=P.sortIndex-Y.sortIndex;return W!==0?W:P.id-Y.id}var B=[],Ie=[],Ja=1,ct=null,Oe=3,gi=!1,Ir=!1,$n=!1;function Xa(P){for(var Y=k(Ie);Y!==null;){if(Y.callback===null)F(Ie);else if(Y.startTime<=P)F(Ie),Y.sortIndex=Y.expirationTime,L(B,Y);else break;Y=k(Ie)}}function Za(P){if($n=!1,Xa(P),!Ir)if(k(B)!==null)Ir=!0,e(es);else{var Y=k(Ie);Y!==null&&t(Za,Y.startTime-P)}}function es(P,Y){Ir=!1,$n&&($n=!1,n()),gi=!0;var W=Oe;try{for(Xa(Y),ct=k(B);ct!==null&&(!(ct.expirationTime>Y)||P&&!r.unstable_shouldYield());){var ge=ct.callback;if(typeof ge=="function"){ct.callback=null,Oe=ct.priorityLevel;var Ae=ge(ct.expirationTime<=Y);Y=r.unstable_now(),typeof Ae=="function"?ct.callback=Ae:ct===k(B)&&F(B),Xa(Y)}else F(B);ct=k(B)}if(ct!==null)var Ar=!0;else{var kr=k(Ie);kr!==null&&t(Za,kr.startTime-Y),Ar=!1}return Ar}finally{ct=null,Oe=W,gi=!1}}var wp=o;r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(P){P.callback=null},r.unstable_continueExecution=function(){Ir||gi||(Ir=!0,e(es))},r.unstable_getCurrentPriorityLevel=function(){return Oe},r.unstable_getFirstCallbackNode=function(){return k(B)},r.unstable_next=function(P){switch(Oe){case 1:case 2:case 3:var Y=3;break;default:Y=Oe}var W=Oe;Oe=Y;try{return P()}finally{Oe=W}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=wp,r.unstable_runWithPriority=function(P,Y){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var W=Oe;Oe=P;try{return Y()}finally{Oe=W}},r.unstable_scheduleCallback=function(P,Y,W){var ge=r.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0ge?(P.sortIndex=W,L(Ie,P),k(B)===null&&P===k(Ie)&&($n?n():$n=!0,t(Za,W-ge))):(P.sortIndex=Ae,L(B,P),Ir||gi||(Ir=!0,e(es))),P},r.unstable_wrapCallback=function(P){var Y=Oe;return function(){var W=Oe;Oe=Y;try{return P.apply(this,arguments)}finally{Oe=W}}}})(dh);lh.exports=dh;var qp=lh.exports;/** @license React v17.0.2 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Da=Kn,ue=Qd,Se=qp;function R(r){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+r,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Vu=Object.prototype.hasOwnProperty,Wu={},$u={};function Gp(r){return Vu.call($u,r)?!0:Vu.call(Wu,r)?!1:Kp.test(r)?$u[r]=!0:(Wu[r]=!0,!1)}function zp(r,e,t,n){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:t!==null?!t.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function jp(r,e,t,n){if(e===null||typeof e>"u"||zp(r,e,t,n))return!0;if(n)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Ye(r,e,t,n,o,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=t,this.propertyName=r,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){Pe[r]=new Ye(r,0,!1,r,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var e=r[0];Pe[e]=new Ye(e,1,!1,r[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(r){Pe[r]=new Ye(r,2,!1,r.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){Pe[r]=new Ye(r,2,!1,r,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){Pe[r]=new Ye(r,3,!1,r.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(r){Pe[r]=new Ye(r,3,!0,r,null,!1,!1)});["capture","download"].forEach(function(r){Pe[r]=new Ye(r,4,!1,r,null,!1,!1)});["cols","rows","size","span"].forEach(function(r){Pe[r]=new Ye(r,6,!1,r,null,!1,!1)});["rowSpan","start"].forEach(function(r){Pe[r]=new Ye(r,5,!1,r.toLowerCase(),null,!1,!1)});var Hc=/[\-:]([a-z])/g;function Fc(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var e=r.replace(Hc,Fc);Pe[e]=new Ye(e,1,!1,r,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var e=r.replace(Hc,Fc);Pe[e]=new Ye(e,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(r){var e=r.replace(Hc,Fc);Pe[e]=new Ye(e,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(r){Pe[r]=new Ye(r,1,!1,r.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(r){Pe[r]=new Ye(r,1,!1,r.toLowerCase(),null,!0,!0)});function Bc(r,e,t,n){var o=Pe.hasOwnProperty(e)?Pe[e]:null,i=o!==null?o.type===0:n?!1:!(!(2s||o[a]!==i[s])return` +`+o[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{ns=!1,Error.prepareStackTrace=t}return(r=r?r.displayName||r.name:"")?go(r):""}function Qp(r){switch(r.tag){case 5:return go(r.type);case 16:return go("Lazy");case 13:return go("Suspense");case 19:return go("SuspenseList");case 0:case 2:case 15:return r=vi(r.type,!1),r;case 11:return r=vi(r.type.render,!1),r;case 22:return r=vi(r.type._render,!1),r;case 1:return r=vi(r.type,!0),r;default:return""}}function En(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case nr:return"Fragment";case Or:return"Portal";case Eo:return"Profiler";case qc:return"StrictMode";case _o:return"Suspense";case Vi:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Gc:return(r.displayName||"Context")+".Consumer";case Kc:return(r._context.displayName||"Context")+".Provider";case La:var e=r.render;return e=e.displayName||e.name||"",r.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case xa:return En(r.type);case jc:return En(r._render);case zc:e=r._payload,r=r._init;try{return En(r(e))}catch{}}return null}function yr(r){switch(typeof r){case"boolean":case"number":case"object":case"string":case"undefined":return r;default:return""}}function ph(r){var e=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Yp(r){var e=ph(r)?"checked":"value",t=Object.getOwnPropertyDescriptor(r.constructor.prototype,e),n=""+r[e];if(!r.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var o=t.get,i=t.set;return Object.defineProperty(r,e,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(r,e,{enumerable:t.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){r._valueTracker=null,delete r[e]}}}}function yi(r){r._valueTracker||(r._valueTracker=Yp(r))}function gh(r){if(!r)return!1;var e=r._valueTracker;if(!e)return!0;var t=e.getValue(),n="";return r&&(n=ph(r)?r.checked?"true":"false":r.value),r=n,r!==t?(e.setValue(r),!0):!1}function Wi(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function bs(r,e){var t=e.checked;return ue({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??r._wrapperState.initialChecked})}function Xu(r,e){var t=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;t=yr(e.value!=null?e.value:t),r._wrapperState={initialChecked:n,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function mh(r,e){e=e.checked,e!=null&&Bc(r,"checked",e,!1)}function Ps(r,e){mh(r,e);var t=yr(e.value),n=e.type;if(t!=null)n==="number"?(t===0&&r.value===""||r.value!=t)&&(r.value=""+t):r.value!==""+t&&(r.value=""+t);else if(n==="submit"||n==="reset"){r.removeAttribute("value");return}e.hasOwnProperty("value")?Ms(r,e.type,t):e.hasOwnProperty("defaultValue")&&Ms(r,e.type,yr(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(r.defaultChecked=!!e.defaultChecked)}function Zu(r,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+r._wrapperState.initialValue,t||e===r.value||(r.value=e),r.defaultValue=e}t=r.name,t!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,t!==""&&(r.name=t)}function Ms(r,e,t){(e!=="number"||Wi(r.ownerDocument)!==r)&&(t==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+t&&(r.defaultValue=""+t))}function Vp(r){var e="";return Da.Children.forEach(r,function(t){t!=null&&(e+=t)}),e}function Os(r,e){return r=ue({children:void 0},e),(e=Vp(e.children))&&(r.children=e),r}function _n(r,e,t,n){if(r=r.options,e){e={};for(var o=0;o=t.length))throw Error(R(93));t=t[0]}e=t}e==null&&(e=""),t=e}r._wrapperState={initialValue:yr(t)}}function vh(r,e){var t=yr(e.value),n=yr(e.defaultValue);t!=null&&(t=""+t,t!==r.value&&(r.value=t),e.defaultValue==null&&r.defaultValue!==t&&(r.defaultValue=t)),n!=null&&(r.defaultValue=""+n)}function tl(r){var e=r.textContent;e===r._wrapperState.initialValue&&e!==""&&e!==null&&(r.value=e)}var Ds={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function yh(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ls(r,e){return r==null||r==="http://www.w3.org/1999/xhtml"?yh(e):r==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Ci,Ch=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction(function(){return r(e,t,n,o)})}:r}(function(r,e){if(r.namespaceURI!==Ds.svg||"innerHTML"in r)r.innerHTML=e;else{for(Ci=Ci||document.createElement("div"),Ci.innerHTML=""+e.valueOf().toString()+"",e=Ci.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;e.firstChild;)r.appendChild(e.firstChild)}});function zo(r,e){if(e){var t=r.firstChild;if(t&&t===r.lastChild&&t.nodeType===3){t.nodeValue=e;return}}r.textContent=e}var wo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wp=["Webkit","ms","Moz","O"];Object.keys(wo).forEach(function(r){Wp.forEach(function(e){e=e+r.charAt(0).toUpperCase()+r.substring(1),wo[e]=wo[r]})});function Eh(r,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||wo.hasOwnProperty(r)&&wo[r]?(""+e).trim():e+"px"}function _h(r,e){r=r.style;for(var t in e)if(e.hasOwnProperty(t)){var n=t.indexOf("--")===0,o=Eh(t,e[t],n);t==="float"&&(t="cssFloat"),n?r.setProperty(t,o):r[t]=o}}var $p=ue({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xs(r,e){if(e){if($p[r]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(R(137,r));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(R(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(R(61))}if(e.style!=null&&typeof e.style!="object")throw Error(R(62))}}function Hs(r,e){if(r.indexOf("-")===-1)return typeof e.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Vc(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Fs=null,wn=null,Tn=null;function rl(r){if(r=ui(r)){if(typeof Fs!="function")throw Error(R(280));var e=r.stateNode;e&&(e=Ga(e),Fs(r.stateNode,r.type,e))}}function wh(r){wn?Tn?Tn.push(r):Tn=[r]:wn=r}function Th(){if(wn){var r=wn,e=Tn;if(Tn=wn=null,rl(r),e)for(r=0;rn?0:1<t;t++)e.push(r);return e}function Fa(r,e,t){r.pendingLanes|=e;var n=e-1;r.suspendedLanes&=n,r.pingedLanes&=n,r=r.eventTimes,e=31-Cr(e),r[e]=t}var Cr=Math.clz32?Math.clz32:hg,lg=Math.log,dg=Math.LN2;function hg(r){return r===0?32:31-(lg(r)/dg|0)|0}var fg=Se.unstable_UserBlockingPriority,pg=Se.unstable_runWithPriority,Li=!0;function gg(r,e,t,n){Ur||$c();var o=tu,i=Ur;Ur=!0;try{Sh(o,r,e,t,n)}finally{(Ur=i)||Jc()}}function mg(r,e,t,n){pg(fg,tu.bind(null,r,e,t,n))}function tu(r,e,t,n){if(Li){var o;if((o=(e&4)===0)&&0=So),hl=" ",fl=!1;function qh(r,e){switch(r){case"keyup":return Fg.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kh(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var sn=!1;function qg(r,e){switch(r){case"compositionend":return Kh(e);case"keypress":return e.which!==32?null:(fl=!0,hl);case"textInput":return r=e.data,r===hl&&fl?null:r;default:return null}}function Kg(r,e){if(sn)return r==="compositionend"||!au&&qh(r,e)?(r=Fh(),xi=nu=ar=null,sn=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-r};r=n}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=vl(t)}}function Qh(r,e){return r&&e?r===e?!0:r&&r.nodeType===3?!1:e&&e.nodeType===3?Qh(r,e.parentNode):"contains"in r?r.contains(e):r.compareDocumentPosition?!!(r.compareDocumentPosition(e)&16):!1:!1}function Cl(){for(var r=window,e=Wi();e instanceof r.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)r=e.contentWindow;else break;e=Wi(r.document)}return e}function zs(r){var e=r&&r.nodeName&&r.nodeName.toLowerCase();return e&&(e==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||e==="textarea"||r.contentEditable==="true")}var Xg=Vt&&"documentMode"in document&&11>=document.documentMode,cn=null,js=null,Ao=null,Qs=!1;function El(r,e,t){var n=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Qs||cn==null||cn!==Wi(n)||(n=cn,"selectionStart"in n&&zs(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ao&&$o(Ao,n)||(Ao=n,n=Zi(js,"onSelect"),0ln||(r.current=Vs[ln],Vs[ln]=null,ln--)}function pe(r,e){ln++,Vs[ln]=r.current,r.current=e}var Er={},Ge=Tr(Er),et=Tr(!1),zr=Er;function On(r,e){var t=r.type.contextTypes;if(!t)return Er;var n=r.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in t)o[i]=e[i];return n&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=e,r.__reactInternalMemoizedMaskedChildContext=o),o}function tt(r){return r=r.childContextTypes,r!=null}function ra(){se(et),se(Ge)}function Nl(r,e,t){if(Ge.current!==Er)throw Error(R(168));pe(Ge,e),pe(et,t)}function Zh(r,e,t){var n=r.stateNode;if(r=e.childContextTypes,typeof n.getChildContext!="function")return t;n=n.getChildContext();for(var o in n)if(!(o in r))throw Error(R(108,En(e)||"Unknown",o));return ue({},t,n)}function Fi(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Er,zr=Ge.current,pe(Ge,r),pe(et,et.current),!0}function bl(r,e,t){var n=r.stateNode;if(!n)throw Error(R(169));t?(r=Zh(r,e,zr),n.__reactInternalMemoizedMergedChildContext=r,se(et),se(Ge),pe(Ge,r)):se(et),pe(et,t)}var cu=null,qr=null,rm=Se.unstable_runWithPriority,uu=Se.unstable_scheduleCallback,Ws=Se.unstable_cancelCallback,nm=Se.unstable_shouldYield,Pl=Se.unstable_requestPaint,$s=Se.unstable_now,om=Se.unstable_getCurrentPriorityLevel,za=Se.unstable_ImmediatePriority,ef=Se.unstable_UserBlockingPriority,tf=Se.unstable_NormalPriority,rf=Se.unstable_LowPriority,nf=Se.unstable_IdlePriority,ms={},im=Pl!==void 0?Pl:function(){},Ht=null,Bi=null,vs=!1,Ml=$s(),Fe=1e4>Ml?$s:function(){return $s()-Ml};function Un(){switch(om()){case za:return 99;case ef:return 98;case tf:return 97;case rf:return 96;case nf:return 95;default:throw Error(R(332))}}function of(r){switch(r){case 99:return za;case 98:return ef;case 97:return tf;case 96:return rf;case 95:return nf;default:throw Error(R(332))}}function jr(r,e){return r=of(r),rm(r,e)}function Xo(r,e,t){return r=of(r),uu(r,e,t)}function Lt(){if(Bi!==null){var r=Bi;Bi=null,Ws(r)}af()}function af(){if(!vs&&Ht!==null){vs=!0;var r=0;try{var e=Ht;jr(99,function(){for(;rF?(x=k,k=null):x=k.sibling;var B=h(g,k,p[F],C);if(B===null){k===null&&(k=x);break}r&&k&&B.alternate===null&&e(g,k),f=i(B,f,F),L===null?_=B:L.sibling=B,L=B,k=x}if(F===p.length)return t(g,k),_;if(k===null){for(;FF?(x=k,k=null):x=k.sibling;var Ie=h(g,k,B.value,C);if(Ie===null){k===null&&(k=x);break}r&&k&&Ie.alternate===null&&e(g,k),f=i(Ie,f,F),L===null?_=Ie:L.sibling=Ie,L=Ie,k=x}if(B.done)return t(g,k),_;if(k===null){for(;!B.done;F++,B=p.next())B=d(g,B.value,C),B!==null&&(f=i(B,f,F),L===null?_=B:L.sibling=B,L=B);return _}for(k=n(g,k);!B.done;F++,B=p.next())B=m(k,g,F,B.value,C),B!==null&&(r&&B.alternate!==null&&k.delete(B.key===null?F:B.key),f=i(B,f,F),L===null?_=B:L.sibling=B,L=B);return r&&k.forEach(function(Ja){return e(g,Ja)}),_}return function(g,f,p,C){var _=typeof p=="object"&&p!==null&&p.type===nr&&p.key===null;_&&(p=p.props.children);var L=typeof p=="object"&&p!==null;if(L)switch(p.$$typeof){case po:e:{for(L=p.key,_=f;_!==null;){if(_.key===L){switch(_.tag){case 7:if(p.type===nr){t(g,_.sibling),f=o(_,p.props.children),f.return=g,g=f;break e}break;default:if(_.elementType===p.type){t(g,_.sibling),f=o(_,p.props),f.ref=oo(g,_,p),f.return=g,g=f;break e}}t(g,_);break}else e(g,_);_=_.sibling}p.type===nr?(f=Nn(p.props.children,g.mode,C,p.key),f.return=g,g=f):(C=zi(p.type,p.key,p.props,null,g.mode,C),C.ref=oo(g,f,p),C.return=g,g=C)}return a(g);case Or:e:{for(_=p.key;f!==null;){if(f.key===_)if(f.tag===4&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){t(g,f.sibling),f=o(f,p.children||[]),f.return=g,g=f;break e}else{t(g,f);break}else e(g,f);f=f.sibling}f=Ts(p,g.mode,C),f.return=g,g=f}return a(g)}if(typeof p=="string"||typeof p=="number")return p=""+p,f!==null&&f.tag===6?(t(g,f.sibling),f=o(f,p),f.return=g,g=f):(t(g,f),f=ws(p,g.mode,C),f.return=g,g=f),a(g);if(wi(p))return y(g,f,p,C);if(Xn(p))return E(g,f,p,C);if(L&&Ti(g,p),typeof p>"u"&&!_)switch(g.tag){case 1:case 22:case 0:case 11:case 15:throw Error(R(152,En(g.type)||"Component"))}return t(g,f)}}var sa=df(!0),hf=df(!1),li={},Ot=Tr(li),ei=Tr(li),ti=Tr(li);function Lr(r){if(r===li)throw Error(R(174));return r}function Xs(r,e){switch(pe(ti,e),pe(ei,r),pe(Ot,li),r=e.nodeType,r){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ls(null,"");break;default:r=r===8?e.parentNode:e,e=r.namespaceURI||null,r=r.tagName,e=Ls(e,r)}se(Ot),pe(Ot,e)}function Dn(){se(Ot),se(ei),se(ti)}function xl(r){Lr(ti.current);var e=Lr(Ot.current),t=Ls(e,r.type);e!==t&&(pe(ei,r),pe(Ot,t))}function fu(r){ei.current===r&&(se(Ot),se(ei))}var he=Tr(0);function ca(r){for(var e=r;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&64)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break;for(;e.sibling===null;){if(e.return===null||e.return===r)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Bt=null,cr=null,Ut=!1;function ff(r,e){var t=dt(5,null,null,0);t.elementType="DELETED",t.type="DELETED",t.stateNode=e,t.return=r,t.flags=8,r.lastEffect!==null?(r.lastEffect.nextEffect=t,r.lastEffect=t):r.firstEffect=r.lastEffect=t}function Hl(r,e){switch(r.tag){case 5:var t=r.type;return e=e.nodeType!==1||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(r.stateNode=e,!0):!1;case 6:return e=r.pendingProps===""||e.nodeType!==3?null:e,e!==null?(r.stateNode=e,!0):!1;case 13:return!1;default:return!1}}function Zs(r){if(Ut){var e=cr;if(e){var t=e;if(!Hl(r,e)){if(e=Sn(t.nextSibling),!e||!Hl(r,e)){r.flags=r.flags&-1025|2,Ut=!1,Bt=r;return}ff(Bt,t)}Bt=r,cr=Sn(e.firstChild)}else r.flags=r.flags&-1025|2,Ut=!1,Bt=r}}function Fl(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Bt=r}function Si(r){if(r!==Bt)return!1;if(!Ut)return Fl(r),Ut=!0,!1;var e=r.type;if(r.tag!==5||e!=="head"&&e!=="body"&&!Ys(e,r.memoizedProps))for(e=cr;e;)ff(r,e),e=Sn(e.nextSibling);if(Fl(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(R(317));e:{for(r=r.nextSibling,e=0;r;){if(r.nodeType===8){var t=r.data;if(t==="/$"){if(e===0){cr=Sn(r.nextSibling);break e}e--}else t!=="$"&&t!=="$!"&&t!=="$?"||e++}r=r.nextSibling}cr=null}}else cr=Bt?Sn(r.stateNode.nextSibling):null;return!0}function ys(){cr=Bt=null,Ut=!1}var An=[];function pu(){for(var r=0;ri))throw Error(R(301));i+=1,Re=Le=null,e.updateQueue=null,ko.current=lm,r=t(n,o)}while(Ro)}if(ko.current=fa,e=Le!==null&&Le.next!==null,ri=0,Re=Le=me=null,ua=!1,e)throw Error(R(300));return r}function xr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?me.memoizedState=Re=r:Re=Re.next=r,Re}function Zr(){if(Le===null){var r=me.alternate;r=r!==null?r.memoizedState:null}else r=Le.next;var e=Re===null?me.memoizedState:Re.next;if(e!==null)Re=e,Le=r;else{if(r===null)throw Error(R(310));Le=r,r={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},Re===null?me.memoizedState=Re=r:Re=Re.next=r}return Re}function bt(r,e){return typeof e=="function"?e(r):e}function io(r){var e=Zr(),t=e.queue;if(t===null)throw Error(R(311));t.lastRenderedReducer=r;var n=Le,o=n.baseQueue,i=t.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,t.pending=null}if(o!==null){o=o.next,n=n.baseState;var s=a=i=null,c=o;do{var u=c.lane;if((ri&u)===u)s!==null&&(s=s.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),n=c.eagerReducer===r?c.eagerState:r(n,c.action);else{var l={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};s===null?(a=s=l,i=n):s=s.next=l,me.lanes|=u,di|=u}c=c.next}while(c!==null&&c!==o);s===null?i=n:s.next=a,lt(n,e.memoizedState)||(Tt=!0),e.memoizedState=n,e.baseState=i,e.baseQueue=s,t.lastRenderedState=n}return[e.memoizedState,t.dispatch]}function ao(r){var e=Zr(),t=e.queue;if(t===null)throw Error(R(311));t.lastRenderedReducer=r;var n=t.dispatch,o=t.pending,i=e.memoizedState;if(o!==null){t.pending=null;var a=o=o.next;do i=r(i,a.action),a=a.next;while(a!==o);lt(i,e.memoizedState)||(Tt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),t.lastRenderedState=i}return[i,n]}function Bl(r,e,t){var n=e._getVersion;n=n(e._source);var o=e._workInProgressVersionPrimary;if(o!==null?r=o===n:(r=r.mutableReadLanes,(r=(ri&r)===r)&&(e._workInProgressVersionPrimary=n,An.push(e))),r)return t(e._source);throw An.push(e),Error(R(350))}function pf(r,e,t,n){var o=Qe;if(o===null)throw Error(R(349));var i=e._getVersion,a=i(e._source),s=ko.current,c=s.useState(function(){return Bl(o,e,t)}),u=c[1],l=c[0];c=Re;var d=r.memoizedState,h=d.refs,m=h.getSnapshot,y=d.source;d=d.subscribe;var E=me;return r.memoizedState={refs:h,source:e,subscribe:n},s.useEffect(function(){h.getSnapshot=t,h.setSnapshot=u;var g=i(e._source);if(!lt(a,g)){g=t(e._source),lt(l,g)||(u(g),g=pr(E),o.mutableReadLanes|=g&o.pendingLanes),g=o.mutableReadLanes,o.entangledLanes|=g;for(var f=o.entanglements,p=g;0t?98:t,function(){r(!0)}),jr(97<\/script>",r=r.removeChild(r.firstChild)):typeof n.is=="string"?r=a.createElement(t,{is:n.is}):(r=a.createElement(t),t==="select"&&(a=r,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):r=a.createElementNS(r,t),r[sr]=e,r[ta]=n,Tf(r,e,!1,!1),e.stateNode=r,a=Hs(t,n),t){case"dialog":ae("cancel",r),ae("close",r),o=n;break;case"iframe":case"object":case"embed":ae("load",r),o=n;break;case"video":case"audio":for(o=0;ouc&&(e.flags|=64,i=!0,co(n,!1),e.lanes=33554432)}else{if(!i)if(r=ca(a),r!==null){if(e.flags|=64,i=!0,t=r.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),co(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!Ut)return e=e.lastEffect=n.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*Fe()-n.renderingStartTime>uc&&t!==1073741824&&(e.flags|=64,i=!0,co(n,!1),e.lanes=33554432);n.isBackwards?(a.sibling=e.child,e.child=a):(t=n.last,t!==null?t.sibling=a:e.child=a,n.last=a)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.lastEffect=e.lastEffect,n.renderingStartTime=Fe(),t.sibling=null,e=he.current,pe(he,i?e&1|2:e&1),t):null;case 23:case 24:return Su(),r!==null&&r.memoizedState!==null!=(e.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(R(156,e.tag))}function fm(r){switch(r.tag){case 1:tt(r.type)&&ra();var e=r.flags;return e&4096?(r.flags=e&-4097|64,r):null;case 3:if(Dn(),se(et),se(Ge),pu(),e=r.flags,e&64)throw Error(R(285));return r.flags=e&-4097|64,r;case 5:return fu(r),null;case 13:return se(he),e=r.flags,e&4096?(r.flags=e&-4097|64,r):null;case 19:return se(he),null;case 4:return Dn(),null;case 10:return du(r),null;case 23:case 24:return Su(),null;default:return null}}function Eu(r,e){try{var t="",n=e;do t+=Qp(n),n=n.return;while(n);var o=t}catch(i){o=` +Error generating stack: `+i.message+` +`+i.stack}return{value:r,source:e,stack:o}}function oc(r,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var pm=typeof WeakMap=="function"?WeakMap:Map;function Af(r,e,t){t=hr(-1,t),t.tag=3,t.payload={element:null};var n=e.value;return t.callback=function(){ga||(ga=!0,lc=n),oc(r,e)},t}function kf(r,e,t){t=hr(-1,t),t.tag=3;var n=r.type.getDerivedStateFromError;if(typeof n=="function"){var o=e.value;t.payload=function(){return oc(r,e),n(o)}}var i=r.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){typeof n!="function"&&(Pt===null?Pt=new Set([this]):Pt.add(this),oc(r,e));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),t}var gm=typeof WeakSet=="function"?WeakSet:Set;function Zl(r){var e=r.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(t){mr(r,t)}else e.current=null}function mm(r,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(e.flags&256&&r!==null){var t=r.memoizedProps,n=r.memoizedState;r=e.stateNode,e=r.getSnapshotBeforeUpdate(e.elementType===e.type?t:_t(e.type,t),n),r.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&su(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(R(163))}function vm(r,e,t){switch(t.tag){case 0:case 11:case 15:case 22:if(e=t.updateQueue,e=e!==null?e.lastEffect:null,e!==null){r=e=e.next;do{if((r.tag&3)===3){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}if(e=t.updateQueue,e=e!==null?e.lastEffect:null,e!==null){r=e=e.next;do{var o=r;n=o.next,o=o.tag,o&4&&o&1&&(Lf(t,r),Im(t,r)),r=n}while(r!==e)}return;case 1:r=t.stateNode,t.flags&4&&(e===null?r.componentDidMount():(n=t.elementType===t.type?e.memoizedProps:_t(t.type,e.memoizedProps),r.componentDidUpdate(n,e.memoizedState,r.__reactInternalSnapshotBeforeUpdate))),e=t.updateQueue,e!==null&&Ul(t,e,r);return;case 3:if(e=t.updateQueue,e!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Ul(t,e,r)}return;case 5:r=t.stateNode,e===null&&t.flags&4&&Jh(t.type,t.memoizedProps)&&r.focus();return;case 6:return;case 4:return;case 12:return;case 13:t.memoizedState===null&&(t=t.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&Ph(t))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(R(163))}function ed(r,e){for(var t=r;;){if(t.tag===5){var n=t.stateNode;if(e)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=t.stateNode;var o=t.memoizedProps.style;o=o!=null&&o.hasOwnProperty("display")?o.display:null,n.style.display=Eh("display",o)}}else if(t.tag===6)t.stateNode.nodeValue=e?"":t.memoizedProps;else if((t.tag!==23&&t.tag!==24||t.memoizedState===null||t===r)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break;for(;t.sibling===null;){if(t.return===null||t.return===r)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function td(r,e){if(qr&&typeof qr.onCommitFiberUnmount=="function")try{qr.onCommitFiberUnmount(cu,e)}catch{}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(r=e.updateQueue,r!==null&&(r=r.lastEffect,r!==null)){var t=r=r.next;do{var n=t,o=n.destroy;if(n=n.tag,o!==void 0)if(n&4)Lf(e,t);else{n=e;try{o()}catch(i){mr(n,i)}}t=t.next}while(t!==r)}break;case 1:if(Zl(e),r=e.stateNode,typeof r.componentWillUnmount=="function")try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(i){mr(e,i)}break;case 5:Zl(e);break;case 4:Rf(r,e)}}function rd(r){r.alternate=null,r.child=null,r.dependencies=null,r.firstEffect=null,r.lastEffect=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.return=null,r.updateQueue=null}function nd(r){return r.tag===5||r.tag===3||r.tag===4}function od(r){e:{for(var e=r.return;e!==null;){if(nd(e))break e;e=e.return}throw Error(R(160))}var t=e;switch(e=t.stateNode,t.tag){case 5:var n=!1;break;case 3:e=e.containerInfo,n=!0;break;case 4:e=e.containerInfo,n=!0;break;default:throw Error(R(161))}t.flags&16&&(zo(e,""),t.flags&=-17);e:t:for(t=r;;){for(;t.sibling===null;){if(t.return===null||nd(t.return)){t=null;break e}t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2)){t=t.stateNode;break e}}n?ic(r,t,e):ac(r,t,e)}function ic(r,e,t){var n=r.tag,o=n===5||n===6;if(o)r=o?r.stateNode:r.stateNode.instance,e?t.nodeType===8?t.parentNode.insertBefore(r,e):t.insertBefore(r,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(r,t)):(e=t,e.appendChild(r)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=ea));else if(n!==4&&(r=r.child,r!==null))for(ic(r,e,t),r=r.sibling;r!==null;)ic(r,e,t),r=r.sibling}function ac(r,e,t){var n=r.tag,o=n===5||n===6;if(o)r=o?r.stateNode:r.stateNode.instance,e?t.insertBefore(r,e):t.appendChild(r);else if(n!==4&&(r=r.child,r!==null))for(ac(r,e,t),r=r.sibling;r!==null;)ac(r,e,t),r=r.sibling}function Rf(r,e){for(var t=e,n=!1,o,i;;){if(!n){n=t.return;e:for(;;){if(n===null)throw Error(R(160));switch(o=n.stateNode,n.tag){case 5:i=!1;break e;case 3:o=o.containerInfo,i=!0;break e;case 4:o=o.containerInfo,i=!0;break e}n=n.return}n=!0}if(t.tag===5||t.tag===6){e:for(var a=r,s=t,c=s;;)if(td(a,c),c.child!==null&&c.tag!==4)c.child.return=c,c=c.child;else{if(c===s)break e;for(;c.sibling===null;){if(c.return===null||c.return===s)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}i?(a=o,s=t.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):o.removeChild(t.stateNode)}else if(t.tag===4){if(t.child!==null){o=t.stateNode.containerInfo,i=!0,t.child.return=t,t=t.child;continue}}else if(td(r,t),t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return;t=t.return,t.tag===4&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function _s(r,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var t=e.updateQueue;if(t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do(n.tag&3)===3&&(r=n.destroy,n.destroy=void 0,r!==void 0&&r()),n=n.next;while(n!==t)}return;case 1:return;case 5:if(t=e.stateNode,t!=null){n=e.memoizedProps;var o=r!==null?r.memoizedProps:n;r=e.type;var i=e.updateQueue;if(e.updateQueue=null,i!==null){for(t[ta]=n,r==="input"&&n.type==="radio"&&n.name!=null&&mh(t,n),Hs(r,o),e=Hs(r,n),o=0;oo&&(o=a),t&=~i}if(t=o,t=Fe()-t,t=(120>t?120:480>t?480:1080>t?1080:1920>t?1920:3e3>t?3e3:4320>t?4320:1960*Cm(t/1960))-t,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Ne!==5&&(Ne=2),c=Eu(c,s),h=a;do{switch(h.tag){case 3:i=c,h.flags|=4096,e&=-e,h.lanes|=e;var L=Af(h,i,e);Ol(h,L);break e;case 1:i=c;var k=h.type,F=h.stateNode;if(!(h.flags&64)&&(typeof k.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(Pt===null||!Pt.has(F)))){h.flags|=4096,e&=-e,h.lanes|=e;var x=kf(h,i,e);Ol(h,x);break e}}h=h.return}while(h!==null)}Df(t)}catch(B){e=B,_e===t&&t!==null&&(_e=t=t.return);continue}break}while(!0)}function Of(){var r=pa.current;return pa.current=fa,r===null?fa:r}function yo(r,e){var t=Q;Q|=16;var n=Of();Qe===r&&Ke===e||Rn(r,e);do try{_m();break}catch(o){Mf(r,o)}while(!0);if(lu(),Q=t,pa.current=n,_e!==null)throw Error(R(261));return Qe=null,Ke=0,Ne}function _m(){for(;_e!==null;)Uf(_e)}function wm(){for(;_e!==null&&!nm();)Uf(_e)}function Uf(r){var e=xf(r.alternate,r,Qr);r.memoizedProps=r.pendingProps,e===null?Df(r):_e=e,_u.current=null}function Df(r){var e=r;do{var t=e.alternate;if(r=e.return,e.flags&2048){if(t=fm(e),t!==null){t.flags&=2047,_e=t;return}r!==null&&(r.firstEffect=r.lastEffect=null,r.flags|=2048)}else{if(t=hm(t,e,Qr),t!==null){_e=t;return}if(t=e,t.tag!==24&&t.tag!==23||t.memoizedState===null||Qr&1073741824||!(t.mode&4)){for(var n=0,o=t.child;o!==null;)n|=o.lanes|o.childLanes,o=o.sibling;t.childLanes=n}r!==null&&!(r.flags&2048)&&(r.firstEffect===null&&(r.firstEffect=e.firstEffect),e.lastEffect!==null&&(r.lastEffect!==null&&(r.lastEffect.nextEffect=e.firstEffect),r.lastEffect=e.lastEffect),1a&&(s=a,a=L,L=s),s=yl(p,L),i=yl(p,a),s&&i&&(_.rangeCount!==1||_.anchorNode!==s.node||_.anchorOffset!==s.offset||_.focusNode!==i.node||_.focusOffset!==i.offset)&&(C=C.createRange(),C.setStart(s.node,s.offset),_.removeAllRanges(),L>a?(_.addRange(C),_.extend(i.node,i.offset)):(C.setEnd(i.node,i.offset),_.addRange(C)))))),C=[],_=p;_=_.parentNode;)_.nodeType===1&&C.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;pFe()-Tu?Rn(r,0):wu|=t),vt(r,e)}function Rm(r,e){var t=r.stateNode;t!==null&&t.delete(e),e=0,e===0&&(e=r.mode,e&2?e&4?(Ft===0&&(Ft=jn),e=on(62914560&~Ft),e===0&&(e=4194304)):e=Un()===99?1:2:e=1),t=it(),r=Ya(r,e),r!==null&&(Fa(r,e,t),vt(r,t))}var xf;xf=function(r,e,t){var n=e.lanes;if(r!==null)if(r.memoizedProps!==e.pendingProps||et.current)Tt=!0;else if(t&n)Tt=!!(r.flags&16384);else{switch(Tt=!1,e.tag){case 3:Ql(e),ys();break;case 5:xl(e);break;case 1:tt(e.type)&&Fi(e);break;case 4:Xs(e,e.stateNode.containerInfo);break;case 10:n=e.memoizedProps.value;var o=e.type._context;pe(na,o._currentValue),o._currentValue=n;break;case 13:if(e.memoizedState!==null)return t&e.child.childLanes?Yl(r,e,t):(pe(he,he.current&1),e=qt(r,e,t),e!==null?e.sibling:null);pe(he,he.current&1);break;case 19:if(n=(t&e.childLanes)!==0,r.flags&64){if(n)return Xl(r,e,t);e.flags|=64}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),pe(he,he.current),n)break;return null;case 23:case 24:return e.lanes=0,Cs(r,e,t)}return qt(r,e,t)}else Tt=!1;switch(e.lanes=0,e.tag){case 2:if(n=e.type,r!==null&&(r.alternate=null,e.alternate=null,e.flags|=2),r=e.pendingProps,o=On(e,Ge.current),In(e,t),o=mu(null,e,n,r,o,t),e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,tt(n)){var i=!0;Fi(e)}else i=!1;e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hu(e);var a=n.getDerivedStateFromProps;typeof a=="function"&&aa(e,n,a,r),o.updater=ja,e.stateNode=o,o._reactInternals=e,Js(e,n,r,t),e=rc(null,e,n,!0,i,t)}else e.tag=0,Je(null,e,o,t),e=e.child;return e;case 16:o=e.elementType;e:{switch(r!==null&&(r.alternate=null,e.alternate=null,e.flags|=2),r=e.pendingProps,i=o._init,o=i(o._payload),e.type=o,i=e.tag=bm(o),r=_t(o,r),i){case 0:e=tc(null,e,o,r,t);break e;case 1:e=jl(null,e,o,r,t);break e;case 11:e=Gl(null,e,o,r,t);break e;case 14:e=zl(null,e,o,_t(o.type,r),n,t);break e}throw Error(R(306,o,""))}return e;case 0:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:_t(n,o),tc(r,e,n,o,t);case 1:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:_t(n,o),jl(r,e,n,o,t);case 3:if(Ql(e),n=e.updateQueue,r===null||n===null)throw Error(R(282));if(n=e.pendingProps,o=e.memoizedState,o=o!==null?o.element:null,cf(r,e),Zo(e,n,null,t),n=e.memoizedState.element,n===o)ys(),e=qt(r,e,t);else{if(o=e.stateNode,(i=o.hydrate)&&(cr=Sn(e.stateNode.containerInfo.firstChild),Bt=e,i=Ut=!0),i){if(r=o.mutableSourceEagerHydrationData,r!=null)for(o=0;o"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ff)}catch(r){console.error(r)}}Ff(),uh.exports=yt;var xm=uh.exports;const Hm=Mc(xm);var Bf="__global__",cd="__shadow_dom_stylesheet__",Fm={stylesheetKey:Bf,inShadow:!1,window:void 0,__isShadowConfig__:!0},qf=function(r){return r&&Bm(r)?r.__isShadowConfig__===!0:!1};function Bm(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}function qm(r){for(var e=[],t=1;t=0)a(l.split(" "));else{var d=i.argsFromClassName(l);d?a(d):n.indexOf(l)===-1&&n.push(l)}else Array.isArray(l)?a(l):typeof l=="object"&&o.push(l)}}return a(e),{classes:n,objects:o}}function Kf(){return ji===void 0&&(ji=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),ji}var ji;ji=Kf();function Gf(){return{rtl:Kf(),shadowConfig:Fm}}var Be=function(){return Be=Object.assign||function(e){for(var t,n=1,o=arguments.length;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i}function ee(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(l){try{u(n.next(l))}catch(d){a(d)}}function c(l){try{u(n.throw(l))}catch(d){a(d)}}function u(l){l.done?i(l.value):o(l.value).then(s,c)}u((n=n.apply(r,e||[])).next())})}function Km(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n"u"?lo.none:lo.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=(n=t==null?void 0:t.classNameToArgs)!==null&&n!==void 0?n:this._classNameToArgs,this._counter=(o=t==null?void 0:t.counter)!==null&&o!==void 0?o:this._counter,this._keyToClassName=(a=(i=this._config.classNameCache)!==null&&i!==void 0?i:t==null?void 0:t.keyToClassName)!==null&&a!==void 0?a:this._keyToClassName,this._preservedRules=(s=t==null?void 0:t.preservedRules)!==null&&s!==void 0?s:this._preservedRules,this._rules=(c=t==null?void 0:t.rules)!==null&&c!==void 0?c:this._rules}return r.getInstance=function(e){if(rn=Jt[ud],Jt[cd])return Jt[cd].getInstance(e);if(!rn||rn._lastStyleElement&&rn._lastStyleElement.ownerDocument!==document){var t=(Jt==null?void 0:Jt.FabricConfig)||{},n=new r(t.mergeStyles,t.serializedStylesheet);rn=n,Jt[ud]=n}return rn},r.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},r.prototype.setConfig=function(e){this._config=Be(Be({},this._config),e)},r.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter(function(n){return n!==e})}},r.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter(function(n){return n!==e})}},r.prototype.getClassName=function(e){var t=this._config.namespace,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(this._counter++)},r.prototype.cacheClassName=function(e,t,n,o){this._keyToClassName[this._getCacheKey(t)]=e,this._classNameToArgs[e]={args:n,rules:o}},r.prototype.classNameFromKey=function(e){return this._keyToClassName[this._getCacheKey(e)]},r.prototype.getClassNameCache=function(){return this._keyToClassName},r.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},r.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},r.prototype.insertRule=function(e,t,n){n===void 0&&(n=Bf);var o=this._config.injectionMode,i=o!==lo.none?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),i)switch(o){case lo.insertNode:this._insertRuleIntoSheet(i.sheet,e);break;case lo.appendChild:i.appendChild(document.createTextNode(e));break}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach(function(a){return a({key:n,sheet:i?i.sheet:void 0,rule:e})})},r.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},r.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(e){return e()})},r.prototype.resetKeys=function(){this._keyToClassName={}},r.prototype._createStyleElement=function(){var e,t=((e=this._config.window)===null||e===void 0?void 0:e.document)||document,n=t.head,o=t.createElement("style"),i=null;o.setAttribute("data-merge-styles","true");var a=this._config.cspSettings;if(a&&a.nonce&&o.setAttribute("nonce",a.nonce),this._lastStyleElement)i=this._lastStyleElement.nextElementSibling;else{var s=this._findPlaceholderStyleTag();s?i=s.nextElementSibling:i=n.childNodes[0]}return n.insertBefore(o,n.contains(i)?i:null),this._lastStyleElement=o,o},r.prototype._insertRuleIntoSheet=function(e,t){if(!e)return!1;try{return e.insertRule(t,e.cssRules.length),!0}catch{}return!1},r.prototype._getCacheKey=function(e){return e},r.prototype._getStyleElement=function(){var e=this;if(!this._styleElement&&(this._styleElement=this._createStyleElement(),!Gm)){var t=this._config.window||window;t.requestAnimationFrame(function(){e._styleElement=void 0})}return this._styleElement},r.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},r}(),ld={};function zm(r,e){var t=r[e];t.charAt(0)!=="-"&&(r[e]=ld[t]=ld[t]||t.replace(/([A-Z])/g,"-$1").toLowerCase())}var Ri;function jm(){var r;if(!Ri){var e=typeof document<"u"?document:void 0,t=typeof navigator<"u"?navigator:void 0,n=(r=t==null?void 0:t.userAgent)===null||r===void 0?void 0:r.toLowerCase();e?Ri={isWebkit:!!(e&&"WebkitAppearance"in e.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!!(t&&(/rv:11.0/i.test(t.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:Ri={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return Ri}var dd={"user-select":1};function Qm(r,e){var t=jm(),n=r[e];if(dd[n]){var o=r[e+1];dd[n]&&(t.isWebkit&&r.push("-webkit-"+n,o),t.isMoz&&r.push("-moz-"+n,o),t.isMs&&r.push("-ms-"+n,o),t.isOpera&&r.push("-o-"+n,o))}}var Ym=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Vm(r,e){var t=r[e],n=r[e+1];if(typeof n=="number"){var o=Ym.indexOf(t)>-1,i=t.indexOf("--")>-1,a=o||i?"":"px";r[e+1]="".concat(n).concat(a)}}var Ni,Zt="left",er="right",Wm="@noflip",hd=(Ni={},Ni[Zt]=er,Ni[er]=Zt,Ni),fd={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function $m(r,e,t){if(r.rtl){var n=e[t];if(!n)return;var o=e[t+1];if(typeof o=="string"&&o.indexOf(Wm)>=0)e[t+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(Zt)>=0)e[t]=n.replace(Zt,er);else if(n.indexOf(er)>=0)e[t]=n.replace(er,Zt);else if(String(o).indexOf(Zt)>=0)e[t+1]=o.replace(Zt,er);else if(String(o).indexOf(er)>=0)e[t+1]=o.replace(er,Zt);else if(hd[n])e[t]=hd[n];else if(fd[o])e[t+1]=fd[o];else switch(n){case"margin":case"padding":e[t+1]=Xm(o);break;case"box-shadow":e[t+1]=Jm(o,0);break}}}function Jm(r,e){var t=r.split(" "),n=parseInt(t[e],10);return t[0]=t[0].replace(String(n),String(n*-1)),t.join(" ")}function Xm(r){if(typeof r=="string"){var e=r.split(" ");if(e.length===4)return"".concat(e[0]," ").concat(e[3]," ").concat(e[2]," ").concat(e[1])}return r}function Zm(r){for(var e=[],t=0,n=0,o=0;ot&&e.push(r.substring(t,o)),t=o+1);break}return t-1&&e.push([n.index,n.index+n[0].length,n[1].split(",").map(function(o){return":global(".concat(o.trim(),")")}).join(", ")]);return e.reverse().reduce(function(o,i){var a=i[0],s=i[1],c=i[2],u=o.slice(0,a),l=o.slice(s);return u+c+l},r)}function nv(r){return r.indexOf(":global(")>=0||r.indexOf(":")===0}function pd(r,e){return r.indexOf(":global(")>=0?r.replace(zf,"$1"):r.indexOf(":host(")===0?r:r.indexOf(":")===0?e+r:r.indexOf("&")<0?e+" "+r:r}function gd(r,e,t,n,o){e===void 0&&(e={__order:[]}),t.indexOf("@")===0?(t=t+"{"+r,bn([n],e,t,o)):t.indexOf(",")>-1?rv(t).split(",").map(function(i){return i.trim()}).forEach(function(i){return bn([n],e,pd(i,r),o)}):bn([n],e,pd(t,r),o)}function bn(r,e,t,n){e===void 0&&(e={__order:[]}),t===void 0&&(t="&");var o=e[t];o||(o={},e[t]=o,e.__order.push(t));for(var i=0,a=r;i"u")){var e=r;return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:gc}}function hv(r){if(!(!Yf()||typeof document>"u")){var e=r;return e&&e.ownerDocument?e.ownerDocument:document}}var Is="__globalSettings__",Nu="__callbacks__",fv=0,pv=function(){function r(){}return r.getValue=function(e,t){var n=mc();return n[e]===void 0&&(n[e]=typeof t=="function"?t():t),n[e]},r.setValue=function(e,t){var n=mc(),o=n[Nu],i=n[e];if(t!==i){n[e]=t;var a={oldValue:i,value:t,key:e};for(var s in o)o.hasOwnProperty(s)&&o[s](a)}return t},r.addChangeListener=function(e){var t=e.__id__,n=md();t||(t=e.__id__=String(fv++)),n[t]=e},r.removeChangeListener=function(e){var t=md();delete t[e.__id__]},r}();function mc(){var r,e=fi(),t=e||{};return t[Is]||(t[Is]=(r={},r[Nu]={},r)),t[Is]}function md(){var r=mc();return r[Nu]}function gv(r){var e=null;try{var t=fi();e=t?t.sessionStorage.getItem(r):null}catch{}return e}var mv="customizations",vv={settings:{},scopedSettings:{},inCustomizerContext:!1},$t=pv.getValue(mv,{settings:{},scopedSettings:{},inCustomizerContext:!1}),bi=[],vc=function(){function r(){}return r.reset=function(){$t.settings={},$t.scopedSettings={}},r.applySettings=function(e){$t.settings=Be(Be({},$t.settings),e),r._raiseChange()},r.applyScopedSettings=function(e,t){$t.scopedSettings[e]=Be(Be({},$t.scopedSettings[e]),t),r._raiseChange()},r.getSettings=function(e,t,n){n===void 0&&(n=vv);for(var o={},i=t&&n.scopedSettings[t]||{},a=t&&$t.scopedSettings[t]||{},s=0,c=e;s-1;r[n]=i?o:Vf(r[n]||{},o,t)}else r[n]=o}return t.pop(),r}function Ev(r,e,t,n,o){o===void 0&&(o=!1);var i=Be({primaryButtonBorder:"transparent",errorText:n?"#F1707B":"#a4262c",messageText:n?"#F3F2F1":"#323130",messageLink:n?"#6CB8F6":"#005A9E",messageLinkHovered:n?"#82C7FF":"#004578",infoIcon:n?"#C8C6C4":"#605e5c",errorIcon:n?"#F1707B":"#A80000",blockingIcon:n?"#442726":"#FDE7E9",warningIcon:n?"#C8C6C4":"#797775",severeWarningIcon:n?"#FCE100":"#D83B01",successIcon:n?"#92C353":"#107C10",infoBackground:n?"#323130":"#f3f2f1",errorBackground:n?"#442726":"#FDE7E9",blockingBackground:n?"#442726":"#FDE7E9",warningBackground:n?"#433519":"#FFF4CE",severeWarningBackground:n?"#4F2A0F":"#FED9CC",successBackground:n?"#393D1B":"#DFF6DD",warningHighlight:n?"#fff100":"#ffb900",successText:n?"#92c353":"#107C10"},t),a=Wf(r,e,i,n);return _v(a,o)}function Wf(r,e,t,n,o){var i={},a=r||{},s=a.white,c=a.black,u=a.themePrimary,l=a.themeDark,d=a.themeDarker,h=a.themeDarkAlt,m=a.themeLighter,y=a.neutralLight,E=a.neutralLighter,g=a.neutralDark,f=a.neutralQuaternary,p=a.neutralQuaternaryAlt,C=a.neutralPrimary,_=a.neutralSecondary,L=a.neutralSecondaryAlt,k=a.neutralTertiary,F=a.neutralTertiaryAlt,x=a.neutralLighterAlt,B=a.accent;return s&&(i.bodyBackground=s,i.bodyFrameBackground=s,i.accentButtonText=s,i.buttonBackground=s,i.primaryButtonText=s,i.primaryButtonTextHovered=s,i.primaryButtonTextPressed=s,i.inputBackground=s,i.inputForegroundChecked=s,i.listBackground=s,i.menuBackground=s,i.cardStandoutBackground=s),c&&(i.bodyTextChecked=c,i.buttonTextCheckedHovered=c),u&&(i.link=u,i.primaryButtonBackground=u,i.inputBackgroundChecked=u,i.inputIcon=u,i.inputFocusBorderAlt=u,i.menuIcon=u,i.menuHeader=u,i.accentButtonBackground=u),l&&(i.primaryButtonBackgroundPressed=l,i.inputBackgroundCheckedHovered=l,i.inputIconHovered=l),d&&(i.linkHovered=d),h&&(i.primaryButtonBackgroundHovered=h),m&&(i.inputPlaceholderBackgroundChecked=m),y&&(i.bodyBackgroundChecked=y,i.bodyFrameDivider=y,i.bodyDivider=y,i.variantBorder=y,i.buttonBackgroundCheckedHovered=y,i.buttonBackgroundPressed=y,i.listItemBackgroundChecked=y,i.listHeaderBackgroundPressed=y,i.menuItemBackgroundPressed=y,i.menuItemBackgroundChecked=y),E&&(i.bodyBackgroundHovered=E,i.buttonBackgroundHovered=E,i.buttonBackgroundDisabled=E,i.buttonBorderDisabled=E,i.primaryButtonBackgroundDisabled=E,i.disabledBackground=E,i.listItemBackgroundHovered=E,i.listHeaderBackgroundHovered=E,i.menuItemBackgroundHovered=E),f&&(i.primaryButtonTextDisabled=f,i.disabledSubtext=f),p&&(i.listItemBackgroundCheckedHovered=p),k&&(i.disabledBodyText=k,i.variantBorderHovered=(t==null?void 0:t.variantBorderHovered)||k,i.buttonTextDisabled=k,i.inputIconDisabled=k,i.disabledText=k),C&&(i.bodyText=C,i.actionLink=C,i.buttonText=C,i.inputBorderHovered=C,i.inputText=C,i.listText=C,i.menuItemText=C),x&&(i.bodyStandoutBackground=x,i.defaultStateBackground=x),g&&(i.actionLinkHovered=g,i.buttonTextHovered=g,i.buttonTextChecked=g,i.buttonTextPressed=g,i.inputTextHovered=g,i.menuItemTextHovered=g),_&&(i.bodySubtext=_,i.focusBorder=_,i.inputBorder=_,i.smallInputBorder=_,i.inputPlaceholderText=_),L&&(i.buttonBorder=L),F&&(i.disabledBodySubtext=F,i.disabledBorder=F,i.buttonBackgroundChecked=F,i.menuDivider=F),B&&(i.accentButtonBackground=B),e!=null&&e.elevation4&&(i.cardShadow=e.elevation4),!n&&(e!=null&&e.elevation8)?i.cardShadowHovered=e.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),i=Be(Be({},i),t),i}function _v(r,e){var t="";return e===!0&&(t=" /* @deprecated */"),r.listTextColor=r.listText+t,r.menuItemBackgroundChecked+=t,r.warningHighlight+=t,r.warningText=r.messageText+t,r.successText+=t,r}function wv(r,e){var t,n,o;e===void 0&&(e={});var i=yd({},r,e,{semanticColors:Wf(e.palette,e.effects,e.semanticColors,e.isInverted===void 0?r.isInverted:e.isInverted)});if(!((t=e.palette)===null||t===void 0)&&t.themePrimary&&!(!((n=e.palette)===null||n===void 0)&&n.accent)&&(i.palette.accent=e.palette.themePrimary),e.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a"u"?global:window,wd=Mo&&Mo.CSPSettings&&Mo.CSPSettings.nonce,St=Ov();function Ov(){var r=Mo.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return r.runState||(r=fn(fn({},r),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),r.registeredThemableStyles||(r=fn(fn({},r),{registeredThemableStyles:[]})),Mo.__themeState__=r,r}function Uv(r,e){St.loadStyles?St.loadStyles($f(r).styleString,r):Fv(r)}function Dv(r){St.theme=r,Hv()}function Lv(r){xv(St.registeredThemableStyles),St.registeredThemableStyles=[]}function xv(r){r.forEach(function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)})}function Hv(){if(St.theme){for(var r=[],e=0,t=St.registeredThemableStyles;e0&&(Lv(),Uv([].concat.apply([],r)))}}function $f(r){var e=St.theme,t=!1,n=(r||[]).map(function(o){var i=o.theme;if(i){t=!0;var a=e?e[i]:void 0,s=o.defaultValue||"inherit";return e&&!a&&console&&!(i in e)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(i,'". Falling back to "').concat(s,'".')),a||s}else return o.rawString});return{styleString:n.join(""),themable:t}}function Fv(r){if(!(typeof document>"u")){var e=document.getElementsByTagName("head")[0],t=document.createElement("style"),n=$f(r),o=n.styleString,i=n.themable;t.setAttribute("data-load-themed-styles","true"),wd&&t.setAttribute("nonce",wd),t.appendChild(document.createTextNode(o)),St.perf.count++,e.appendChild(t);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:t},document.dispatchEvent(a);var s={styleElement:t,themableStyle:r};i?St.registeredThemableStyles.push(s):St.registeredStyles.push(s)}}var It=bu({}),Bv=[],yc="theme";function Jf(){var r,e,t,n=fi();!((e=n==null?void 0:n.FabricConfig)===null||e===void 0)&&e.legacyTheme?qv(n.FabricConfig.legacyTheme):vc.getSettings([yc]).theme||(!((t=n==null?void 0:n.FabricConfig)===null||t===void 0)&&t.theme&&(It=bu(n.FabricConfig.theme)),vc.applySettings((r={},r[yc]=It,r)))}Jf();function qv(r,e){var t;return e===void 0&&(e=!1),It=bu(r,e),Dv(Be(Be(Be(Be({},It.palette),It.semanticColors),It.effects),Kv(It))),vc.applySettings((t={},t[yc]=It,t)),Bv.forEach(function(n){try{n(It)}catch{}}),It}function Kv(r){for(var e={},t=0,n=Object.keys(r.fonts);t{const a=i.entries();let s=a.next();for(;!s.done;){const c=s.value[1];if(c.dependsOn!==void 0&&c.dependsOn.length>0)return!1;s=a.next()}return!0},n=i=>{const a=i.entries();let s=a.next();const c=s.value[1];if(c.dependsOn!==void 0&&c.dependsOn.length>0)return!1;let u=s;for(s=a.next();!s.done;){const l=s.value[1];if(l.dependsOn===void 0||l.dependsOn.length!==1||l.dependsOn[0]!==u.value[1].id)return!1;u=s,s=a.next()}return!0},o=i=>{const a=i.entries();let s=a.next();const c=s.value[1];let u;if(c.dependsOn===void 0||c.dependsOn.length===0)u=c.id;else if(c.dependsOn.length===1){const l=c.dependsOn[0];if(l!==c.id&&i.has(l))u=l;else return!1}else return!1;for(s=a.next();!s.done;){const l=s.value[1];if((l.dependsOn===void 0||l.dependsOn.length===0)&&u!==l.id||l.dependsOn!==void 0&&l.dependsOn.length!==0&&(l.dependsOn.length===1&&(l.id===u||l.dependsOn[0]!==u)||l.dependsOn.length>1))return!1;s=a.next()}return!0};if(e.size===0){const i=new Error("Empty requests map, Please provide at least one request.");throw i.name="Empty Requests Error",i}return t(e)||n(e)||o(e)}static getRequestData(e){return ee(this,void 0,void 0,function*(){const t={url:""},n=new RegExp("^https?://");t.url=n.test(e.url)?"/"+e.url.split(/.*?\/\/.*?\//)[1]:e.url,t.method=e.method;const o={};return e.headers.forEach((i,a)=>{o[a]=i}),Object.keys(o).length&&(t.headers=o),(e.method===xe.PATCH||e.method===xe.POST||e.method===xe.PUT)&&(t.body=yield or.getRequestBody(e)),t})}static getRequestBody(e){return ee(this,void 0,void 0,function*(){let t=!1,n;try{n=yield e.clone().json(),t=!0}catch{}if(!t)try{if(typeof Blob<"u"){const o=yield e.blob(),i=new FileReader;n=yield new Promise(a=>{i.addEventListener("load",()=>{const s=i.result,u=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$").exec(s);a(u[4])},!1),i.readAsDataURL(o)})}else typeof Buffer<"u"&&(n=(yield e.buffer()).toString("base64"));t=!0}catch{}return n})}constructor(e){if(this.requests=new Map,typeof e<"u"){const t=or.requestLimit;if(e.length>t){const n=new Error(`Maximum requests limit exceeded, Max allowed number of requests are ${t}`);throw n.name="Limit Exceeded Error",n}for(const n of e)this.addRequest(n)}}addRequest(e){const t=or.requestLimit;if(e.id===""){const n=new Error("Id for a request is empty, Please provide an unique id");throw n.name="Empty Id For Request",n}if(this.requests.size===t){const n=new Error(`Maximum requests limit exceeded, Max allowed number of requests are ${t}`);throw n.name="Limit Exceeded Error",n}if(this.requests.has(e.id)){const n=new Error(`Adding request with duplicate id ${e.id}, Make the id of the requests unique`);throw n.name="Duplicate RequestId Error",n}return this.requests.set(e.id,e),e.id}removeRequest(e){const t=this.requests.delete(e),n=this.requests.entries();let o=n.next();for(;!o.done;){const i=o.value[1].dependsOn;if(typeof i<"u"){const a=i.indexOf(e);a!==-1&&i.splice(a,1),i.length===0&&delete o.value[1].dependsOn}o=n.next()}return t}getContent(){return ee(this,void 0,void 0,function*(){const e=[],t={requests:e},n=this.requests.entries();let o=n.next();if(o.done){const i=new Error("No requests added yet, Please add at least one request.");throw i.name="Empty Payload",i}if(!or.validateDependencies(this.requests)){const i=new Error(`Invalid dependency found, Dependency should be: +1. Parallel - no individual request states a dependency in the dependsOn property. +2. Serial - all individual requests depend on the previous individual request. +3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.`);throw i.name="Invalid Dependency",i}for(;!o.done;){const i=o.value[1],a=yield or.getRequestData(i.request);if(a.body!==void 0&&(a.headers===void 0||a.headers["content-type"]===void 0)){const s=new Error(`Content-type header is not mentioned for request #${i.id}, For request having body, Content-type header should be mentioned`);throw s.name="Invalid Content-type header",s}a.id=i.id,i.dependsOn!==void 0&&i.dependsOn.length>0&&(a.dependsOn=i.dependsOn),e.push(a),o=n.next()}return t.requests=e,t})}addDependency(e,t){if(!this.requests.has(e)){const n=new Error(`Dependent ${e} does not exists, Please check the id`);throw n.name="Invalid Dependent",n}if(typeof t<"u"&&!this.requests.has(t)){const n=new Error(`Dependency ${t} does not exists, Please check the id`);throw n.name="Invalid Dependency",n}if(typeof t<"u"){const n=this.requests.get(e);if(n.dependsOn===void 0&&(n.dependsOn=[]),n.dependsOn.indexOf(t)!==-1){const o=new Error(`Dependency ${t} is already added for the request ${e}`);throw o.name="Duplicate Dependency",o}n.dependsOn.push(t)}else{const n=this.requests.entries();let o,i=n.next();for(;!i.done&&i.value[1].id!==e;)o=i,i=n.next();if(typeof o<"u"){const a=o.value[0];if(i.value[1].dependsOn===void 0&&(i.value[1].dependsOn=[]),i.value[1].dependsOn.indexOf(a)!==-1){const s=new Error(`Dependency ${a} is already added for the request ${e}`);throw s.name="Duplicate Dependency",s}i.value[1].dependsOn.push(a)}else{const a=new Error(`Can't add dependency ${t}, There is only a dependent request in the batch`);throw a.name="Invalid Dependency Addition",a}}}removeDependency(e,t){const n=this.requests.get(e);if(typeof n>"u"||n.dependsOn===void 0||n.dependsOn.length===0)return!1;if(typeof t<"u"){const o=n.dependsOn.indexOf(t);return o===-1?!1:(n.dependsOn.splice(o,1),!0)}else return delete n.dependsOn,!0}}or.requestLimit=20;const jv="v1.0",Qv="https://graph.microsoft.com/",Yv=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn","canary.graph.microsoft.com"]);class Yr extends Error{static setGraphClientError(e){let t;return e instanceof Error?t=e:(t=new Yr,t.customError=e),t}constructor(e){super(e),Object.setPrototypeOf(this,Yr.prototype)}}const Vv=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"],Wv=r=>{const e=i=>i.replace(/\/+$/,""),t=i=>i.replace(/^\/+/,""),n=(i,a)=>[e(i),t(a)].join("/");return Array.prototype.slice.call(r).reduce(n)},ks=r=>{const e=r&&r.constructor&&r.constructor.name;if(e==="Buffer"||e==="Blob"||e==="File"||e==="FormData"||typeof r=="string")return r;if(e==="ArrayBuffer")r=Buffer.from(r);else if(e==="Int8Array"||e==="Int16Array"||e==="Int32Array"||e==="Uint8Array"||e==="Uint16Array"||e==="Uint32Array"||e==="Uint8ClampedArray"||e==="Float32Array"||e==="Float64Array"||e==="DataView")r=Buffer.from(r.buffer);else try{r=JSON.stringify(r)}catch{throw new Error("Unable to stringify the content")}return r},Zf=r=>tp(r),ep=(r,e)=>(e.forEach(t=>$v(t)),tp(r,e)),tp=(r,e=Yv)=>{if(r=r.toLowerCase(),r.indexOf("https://")!==-1){r=r.replace("https://","");const t=r.indexOf(":"),n=r.indexOf("/");let o="";if(n!==-1)return t!==-1&&t{if(r.indexOf("/")!==-1)throw new Yr("Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`")};class Vr{constructor(e=[]){this.middlewareOptions=new Map;for(const t of e){const n=t.constructor;this.middlewareOptions.set(n,t)}}getMiddlewareOptions(e){return this.middlewareOptions.get(e)}setMiddlewareOptions(e,t){this.middlewareOptions.set(e,t)}}const Jv=()=>{let r="";for(let e=0;e<32;e++)(e===8||e===12||e===16||e===20)&&(r+="-"),r+=Math.floor(Math.random()*16).toString(16);return r},Mu=(r,e,t)=>{let n=null;if(typeof Request<"u"&&r instanceof Request)n=r.headers.get(t);else if(typeof e<"u"&&e.headers!==void 0)if(typeof Headers<"u"&&e.headers instanceof Headers)n=e.headers.get(t);else if(e.headers instanceof Array){const o=e.headers;for(let i=0,a=o.length;i{if(typeof Request<"u"&&r instanceof Request)r.headers.set(t,n);else if(typeof e<"u")if(e.headers===void 0)e.headers=new Headers({[t]:n});else if(typeof Headers<"u"&&e.headers instanceof Headers)e.headers.set(t,n);else if(e.headers instanceof Array){let o=0;const i=e.headers.length;for(;o{typeof Request<"u"&&r instanceof Request?r.headers.append(t,n):typeof e<"u"&&(e.headers===void 0?e.headers=new Headers({[t]:n}):typeof Headers<"u"&&e.headers instanceof Headers?e.headers.append(t,n):e.headers instanceof Array?e.headers.push([t,n]):e.headers===void 0?e.headers={[t]:n}:e.headers[t]===void 0?e.headers[t]=n:e.headers[t]+=`, ${n}`)},Xv=(r,e)=>ee(void 0,void 0,void 0,function*(){const t=e.headers.get("Content-Type")?yield e.blob():yield Promise.resolve(void 0),{method:n,headers:o,referrer:i,referrerPolicy:a,mode:s,credentials:c,cache:u,redirect:l,integrity:d,keepalive:h,signal:m}=e;return new Request(r,{method:n,headers:o,body:t,referrer:i,referrerPolicy:a,mode:s,credentials:c,cache:u,redirect:l,integrity:d,keepalive:h,signal:m})});class np{constructor(e,t){this.authenticationProvider=e,this.authenticationProviderOptions=t}}var Ln;(function(r){r[r.NONE=0]="NONE",r[r.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",r[r.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",r[r.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"})(Ln||(Ln={}));class vr{constructor(){this.featureUsage=Ln.NONE}static updateFeatureUsageFlag(e,t){let n;e.middlewareControl instanceof Vr?n=e.middlewareControl.getMiddlewareOptions(vr):e.middlewareControl=new Vr,typeof n>"u"&&(n=new vr,e.middlewareControl.setMiddlewareOptions(vr,n)),n.setFeatureUsage(t)}setFeatureUsage(e){this.featureUsage=this.featureUsage|e}getFeatureUsage(){return this.featureUsage.toString(16)}}class xn{constructor(e){this.authenticationProvider=e}execute(e){return ee(this,void 0,void 0,function*(){const t=typeof e.request=="string"?e.request:e.request.url;if(Zf(t)||e.customHosts&&ep(t,e.customHosts)){let n;e.middlewareControl instanceof Vr&&(n=e.middlewareControl.getMiddlewareOptions(np));let o,i;n&&(o=n.authenticationProvider,i=n.authenticationProviderOptions),o||(o=this.authenticationProvider);const s=`Bearer ${yield o.getAccessToken(i)}`;rp(e.request,e.options,xn.AUTHORIZATION_HEADER,s),vr.updateFeatureUsageFlag(e,Ln.AUTHENTICATION_HANDLER_ENABLED)}else e.options.headers&&delete e.options.headers[xn.AUTHORIZATION_HEADER];return yield this.nextMiddleware.execute(e)})}setNext(e){this.nextMiddleware=e}}xn.AUTHORIZATION_HEADER="Authorization";class op{execute(e){return ee(this,void 0,void 0,function*(){e.response=yield fetch(e.request,e.options)})}}class ce{constructor(e=ce.DEFAULT_DELAY,t=ce.DEFAULT_MAX_RETRIES,n=ce.defaultShouldRetry){if(e>ce.MAX_DELAY&&t>ce.MAX_MAX_RETRIES){const o=new Error(`Delay and MaxRetries should not be more than ${ce.MAX_DELAY} and ${ce.MAX_MAX_RETRIES}`);throw o.name="MaxLimitExceeded",o}else if(e>ce.MAX_DELAY){const o=new Error(`Delay should not be more than ${ce.MAX_DELAY}`);throw o.name="MaxLimitExceeded",o}else if(t>ce.MAX_MAX_RETRIES){const o=new Error(`MaxRetries should not be more than ${ce.MAX_MAX_RETRIES}`);throw o.name="MaxLimitExceeded",o}else if(e<0&&t<0){const o=new Error("Delay and MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}else if(e<0){const o=new Error("Delay should not be negative");throw o.name="MinExpectationNotMet",o}else if(t<0){const o=new Error("MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}this.delay=Math.min(e,ce.MAX_DELAY),this.maxRetries=Math.min(t,ce.MAX_MAX_RETRIES),this.shouldRetry=n}getMaxDelay(){return ce.MAX_DELAY}}ce.DEFAULT_DELAY=3;ce.DEFAULT_MAX_RETRIES=3;ce.MAX_DELAY=180;ce.MAX_MAX_RETRIES=10;ce.defaultShouldRetry=()=>!0;class jt{constructor(e=new ce){this.options=e}isRetry(e){return jt.RETRY_STATUS_CODES.indexOf(e.status)!==-1}isBuffered(e,t){const n=typeof e=="string"?t.method:e.method;return!((n===xe.PUT||n===xe.PATCH||n===xe.POST)&&Mu(e,t,"Content-Type")==="application/octet-stream")}getDelay(e,t,n){const o=()=>Number(Math.random().toFixed(3)),i=e.headers!==void 0?e.headers.get(jt.RETRY_AFTER_HEADER):null;let a;return i!==null?Number.isNaN(Number(i))?a=Math.round((new Date(i).getTime()-Date.now())/1e3):a=Number(i):a=t>=2?this.getExponentialBackOffTime(t)+n+o():n+o(),Math.min(a,this.options.getMaxDelay()+o())}getExponentialBackOffTime(e){return Math.round(1/2*(Math.pow(2,e)-1))}sleep(e){return ee(this,void 0,void 0,function*(){const t=e*1e3;return new Promise(n=>setTimeout(n,t))})}getOptions(e){let t;return e.middlewareControl instanceof Vr&&(t=e.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof t>"u"&&(t=Object.assign(new ce,this.options)),t}executeWithRetry(e,t,n){return ee(this,void 0,void 0,function*(){if(yield this.nextMiddleware.execute(e),tht.MAX_MAX_REDIRECTS){const n=new Error(`MaxRedirects should not be more than ${ht.MAX_MAX_REDIRECTS}`);throw n.name="MaxLimitExceeded",n}if(e<0){const n=new Error("MaxRedirects should not be negative");throw n.name="MinExpectationNotMet",n}this.maxRedirects=e,this.shouldRedirect=t}}ht.DEFAULT_MAX_REDIRECTS=5;ht.MAX_MAX_REDIRECTS=20;ht.defaultShouldRedirect=()=>!0;let Vn=class br{constructor(e=new ht){this.options=e}isRedirect(e){return br.REDIRECT_STATUS_CODES.indexOf(e.status)!==-1}hasLocationHeader(e){return e.headers.has(br.LOCATION_HEADER)}getLocationHeader(e){return e.headers.get(br.LOCATION_HEADER)}isRelativeURL(e){return e.indexOf("://")===-1}shouldDropAuthorizationHeader(e,t){const n=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,o=n.exec(e);let i,a;o!==null&&(i=o[0]);const s=n.exec(t);return s!==null&&(a=s[0]),typeof i<"u"&&typeof a<"u"&&i!==a}updateRequestUrl(e,t){return ee(this,void 0,void 0,function*(){t.request=typeof t.request=="string"?e:yield Xv(e,t.request)})}getOptions(e){let t;return e.middlewareControl instanceof Vr&&(t=e.middlewareControl.getMiddlewareOptions(ht)),typeof t>"u"&&(t=Object.assign(new ht,this.options)),t}executeWithRedirect(e,t,n){return ee(this,void 0,void 0,function*(){yield this.nextMiddleware.execute(e);const o=e.response;if(t{e.text().then(i=>{try{const s=new DOMParser().parseFromString(i,t);n(s)}catch(a){o(a)}})}):Promise.resolve(e.body)}static convertResponse(e,t){return ee(this,void 0,void 0,function*(){if(e.status===204)return Promise.resolve();let n;const o=e.headers.get("Content-type");switch(t){case kt.ARRAYBUFFER:n=yield e.arrayBuffer();break;case kt.BLOB:n=yield e.blob();break;case kt.DOCUMENT:n=yield Oo.parseDocumentResponse(e,Cc.TEXT_XML);break;case kt.JSON:n=yield e.json();break;case kt.STREAM:n=yield Promise.resolve(e.body);break;case kt.TEXT:n=yield e.text();break;default:if(o!==null){const i=o.split(";")[0];new RegExp(ya.DOCUMENT).test(i)?n=yield Oo.parseDocumentResponse(e,i):new RegExp(ya.IMAGE).test(i)?n=e.blob():i===va.TEXT_PLAIN?n=yield e.text():i===va.APPLICATION_JSON?n=yield e.json():n=Promise.resolve(e.body)}else n=Promise.resolve(e.body);break}return n})}static getResponse(e,t,n){return ee(this,void 0,void 0,function*(){if(t===kt.RAW)return Promise.resolve(e);{const o=yield Oo.convertResponse(e,t);if(e.ok)if(typeof n=="function")n(null,o);else return o;else throw o}})}}class ey{constructor(e){this.provider=e}getAccessToken(){return ee(this,void 0,void 0,function*(){return new Promise((e,t)=>{this.provider((n,o)=>ee(this,void 0,void 0,function*(){if(o)e(o);else{if(!n){const a="Access token is undefined or empty. Please provide a valid token. For more help - https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CustomAuthenticationProvider.md";n=new Yr(a)}const i=yield Yr.setGraphClientError(n);t(i)}}))})})}}class Uo extends Error{constructor(e=-1,t,n){super(t||n&&n.message),Object.setPrototypeOf(this,Uo.prototype),this.statusCode=e,this.code=null,this.requestId=null,this.date=new Date,this.body=null,this.stack=n?n.stack:this.stack}}class Ca{static constructError(e,t,n){const o=new Uo(t,"",e);return e.name!==void 0&&(o.code=e.name),o.body=e.toString(),o.date=new Date,o.headers=n==null?void 0:n.headers,o}static constructErrorFromResponse(e,t,n){const o=e.error,i=new Uo(t,o.message);return i.code=o.code,o.innerError!==void 0&&(i.requestId=o.innerError["request-id"],i.date=new Date(o.innerError.date)),i.body=JSON.stringify(o),i.headers=n==null?void 0:n.headers,i}static getError(e=null,t=-1,n,o){return ee(this,void 0,void 0,function*(){let i;if(e&&e.error?i=Ca.constructErrorFromResponse(e,t,o):e instanceof Error?i=Ca.constructError(e,t,o):(i=new Uo(t),i.body=e),typeof n=="function")n(i,null);else return i})}}class ty{constructor(e,t,n){this.parsePath=o=>{if(o.indexOf("https://")!==-1){o=o.replace("https://","");const a=o.indexOf("/");a!==-1&&(this.urlComponents.host="https://"+o.substring(0,a),o=o.substring(a+1,o.length));const s=o.indexOf("/");s!==-1&&(this.urlComponents.version=o.substring(0,s),o=o.substring(s+1,o.length))}o.charAt(0)==="/"&&(o=o.substr(1));const i=o.indexOf("?");if(i===-1)this.urlComponents.path=o;else{this.urlComponents.path=o.substr(0,i);const a=o.substring(i+1,o.length).split("&");for(const s of a)this.parseQueryParameter(s)}},this.httpClient=e,this.config=t,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(n)}addCsvQueryParameter(e,t,n){this.urlComponents.oDataQueryParams[e]=this.urlComponents.oDataQueryParams[e]?this.urlComponents.oDataQueryParams[e]+",":"";let o=[];n.length>1&&typeof t=="string"?o=Array.prototype.slice.call(n):typeof t=="string"?o.push(t):o=o.concat(t),this.urlComponents.oDataQueryParams[e]+=o.join(",")}buildFullUrl(){const e=Wv([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path])+this.createQueryString();return this.config.debugLogging&&console.log(e),e}createQueryString(){const e=this.urlComponents,t=[];if(Object.keys(e.oDataQueryParams).length!==0)for(const n in e.oDataQueryParams)Object.prototype.hasOwnProperty.call(e.oDataQueryParams,n)&&t.push(n+"="+e.oDataQueryParams[n]);if(Object.keys(e.otherURLQueryParams).length!==0)for(const n in e.otherURLQueryParams)Object.prototype.hasOwnProperty.call(e.otherURLQueryParams,n)&&t.push(n+"="+e.otherURLQueryParams[n]);if(e.otherURLQueryOptions.length!==0)for(const n of e.otherURLQueryOptions)t.push(n);return t.length>0?"?"+t.join("&"):""}parseQueryParameter(e){if(typeof e=="string")if(e.charAt(0)==="?"&&(e=e.substring(1)),e.indexOf("&")!==-1){const t=e.split("&");for(const n of t)this.parseQueryParamenterString(n)}else this.parseQueryParamenterString(e);else if(e.constructor===Object)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setURLComponentsQueryParamater(t,e[t]);return this}parseQueryParamenterString(e){if(this.isValidQueryKeyValuePair(e)){const t=e.indexOf("="),n=e.substring(0,t),o=e.substring(t+1);this.setURLComponentsQueryParamater(n,o)}else this.urlComponents.otherURLQueryOptions.push(e)}setURLComponentsQueryParamater(e,t){if(Vv.indexOf(e)!==-1){const n=this.urlComponents.oDataQueryParams[e],o=n&&(e==="$expand"||e==="$select"||e==="$orderby");this.urlComponents.oDataQueryParams[e]=o?n+","+t:t}else this.urlComponents.otherURLQueryParams[e]=t}isValidQueryKeyValuePair(e){const t=e.indexOf("=");return!(t===-1||e.indexOf("(")!==-1&&e.indexOf("(")1?this.parseMiddleWareArray(e):this.middleware=e[0]}parseMiddleWareArray(e){e.forEach((t,n)=>{ntypeof process=="object"&&typeof require=="function";class Uu{static createWithAuthenticationProvider(e){const t=new xn(e),n=new jt(new ce),o=new Xe,i=new op;if(t.setNext(n),ry()){const a=new Vn(new ht);n.setNext(a),a.setNext(o)}else n.setNext(o);return o.setNext(i),Uu.createWithMiddleware(t)}static createWithMiddleware(...e){return new ip(...e)}}const ny=()=>{if(typeof Promise>"u"&&typeof fetch>"u"){const r=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw r.name="PolyFillNotAvailable",r}else if(typeof Promise>"u"){const r=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw r.name="PolyFillNotAvailable",r}else if(typeof fetch>"u"){const r=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw r.name="PolyFillNotAvailable",r}return!0};class Ea{static init(e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=n==="authProvider"?new ey(e[n]):e[n]);return Ea.initWithMiddleware(t)}static initWithMiddleware(e){return new Ea(e)}constructor(e){this.config={baseUrl:Qv,debugLogging:!1,defaultVersion:jv},ny();for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(this.config[n]=e[n]);let t;if(e.authProvider!==void 0&&e.middleware!==void 0){const n=new Error;throw n.name="AmbiguityInInitialization",n.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",n}else if(e.authProvider!==void 0)t=Uu.createWithAuthenticationProvider(e.authProvider);else if(e.middleware!==void 0)t=new ip(...[].concat(e.middleware));else{const n=new Error;throw n.name="InvalidMiddlewareChain",n.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",n}this.httpClient=t}api(e){return new ty(this.httpClient,this.config,e)}}var oy=function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(l){try{u(n.next(l))}catch(d){a(d)}}function c(l){try{u(n.throw(l))}catch(d){a(d)}}function u(l){l.done?i(l.value):o(l.value).then(s,c)}u((n=n.apply(r,e||[])).next())})};const iy=r=>oy(void 0,void 0,void 0,function*(){return new Promise(e=>{setTimeout(e,r)})});class _a{constructor(){this.eventHandlers=[]}fire(e){for(const t of this.eventHandlers)t(e)}add(e){this.eventHandlers.push(e)}remove(e){for(let t=0;t{try{const t=new URL(r).origin;if(zv.has(t))return t}catch{return}};class ay{get isMultiAccountSupportedAndEnabled(){return!1}get approvedScopes(){return this._approvedScopes}set approvedScopes(e){this._approvedScopes=e.map(t=>t.toLowerCase())}hasAtLeastOneApprovedScope(e){return e.some(t=>this.approvedScopes.includes(t.toLowerCase().trim()))}hasAllOneApprovedScope(e){return e.some(t=>!this.approvedScopes.includes(t.toLowerCase().trim()))}needsAdditionalScopes(e){const t=[];return e.length&&!this.hasAtLeastOneApprovedScope(e)&&t.push(e[0].trim()),t}set baseURL(e){if(ap(e)){this._baseURL=e;return}else throw new Error(`${e} is not a valid Graph URL endpoint.`)}get baseURL(){return this._baseURL}set customHosts(e){this._customHosts=e}get customHosts(){return this._customHosts}get isMultiAccountSupported(){return this.isMultipleAccountSupported}get state(){return this._state}get isIncrementalConsentDisabled(){return this._isIncrementalConsentDisabled}set isIncrementalConsentDisabled(e){this._isIncrementalConsentDisabled=e}get name(){return"MgtIProvider"}constructor(){this.isMultipleAccountDisabled=!0,this._loginChangedDispatcher=new _a,this._activeAccountChangedDispatcher=new _a,this._baseURL=Pu,this._approvedScopes=[],this._customHosts=void 0,this._isIncrementalConsentDisabled=!1,this.isMultipleAccountSupported=!1,this._state=De.Loading}setState(e){e!==this._state&&(this._state=e,this._loginChangedDispatcher.fire({}))}onStateChanged(e){this._loginChangedDispatcher.add(e)}removeStateChangedHandler(e){this._loginChangedDispatcher.remove(e)}setActiveAccount(e){this.fireActiveAccountChanged()}onActiveAccountChanged(e){this._activeAccountChangedDispatcher.add(e)}removeActiveAccountChangedHandler(e){this._activeAccountChangedDispatcher.remove(e)}fireActiveAccountChanged(){this._activeAccountChangedDispatcher.fire({})}getAccessTokenForScopes(...e){return this.getAccessToken({scopes:e})}}var Hr;(function(r){r[r.Popup=0]="Popup",r[r.Redirect=1]="Redirect"})(Hr||(Hr={}));var De;(function(r){r[r.Loading=0]="Loading",r[r.SignedOut=1]="SignedOut",r[r.SignedIn=2]="SignedIn"})(De||(De={}));var Pi=function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(l){try{u(n.next(l))}catch(d){a(d)}}function c(l){try{u(n.throw(l))}catch(d){a(d)}}function u(l){l.done?i(l.value):o(l.value).then(s,c)}u((n=n.apply(r,e||[])).next())})};class Ce{static get globalProvider(){return this._globalProvider}static set globalProvider(e){e!==this._globalProvider&&(this._globalProvider&&(this._globalProvider.removeStateChangedHandler(this.handleProviderStateChanged),this._globalProvider.isMultiAccountSupportedAndEnabled&&this._globalProvider.removeActiveAccountChangedHandler(this.handleActiveAccountChanged)),e&&(e.onStateChanged(this.handleProviderStateChanged),e.isMultiAccountSupportedAndEnabled&&e.onActiveAccountChanged(this.handleActiveAccountChanged)),this._globalProvider=e,this._eventDispatcher.fire(wa.ProviderChanged))}static onProviderUpdated(e){this._eventDispatcher.add(e)}static removeProviderUpdatedListener(e){this._eventDispatcher.remove(e)}static onActiveAccountChanged(e){this._activeAccountChangedDispatcher.add(e)}static removeActiveAccountChangedListener(e){this._activeAccountChangedDispatcher.remove(e)}static me(){return this.client?(this._mePromise||(this._mePromise=this.getMe()),this._mePromise):(this._mePromise=null,null)}static getMe(){return Pi(this,void 0,void 0,function*(){try{const e=yield this.client.api("me").get();if(e!=null&&e.id)return e}catch{}return null})}static getCacheId(){var e;return Pi(this,void 0,void 0,function*(){if(this._cacheId)return this._cacheId;if(((e=Ce.globalProvider)===null||e===void 0?void 0:e.state)===De.SignedIn&&!this._cacheId&&this.client)try{this._cacheId=yield this.createCacheId()}catch{}return this._cacheId})}static unsetCacheId(){this._cacheId=null,this._mePromise=null}static createCacheId(){return Pi(this,void 0,void 0,function*(){if(Ce.globalProvider.isMultiAccountSupportedAndEnabled){const e=this.createCacheIdWithAccountDetails();if(e)return e}return yield this.createCacheIdWithUserDetails()})}static createCacheIdWithUserDetails(){return Pi(this,void 0,void 0,function*(){const e=yield this.me();return e!=null&&e.id?e.id+"-"+e.userPrincipalName:null})}static createCacheIdWithAccountDetails(){const e=Ce.globalProvider.getActiveAccount();return e.tenantId&&e.id?e.tenantId+e.id:null}static get client(){return Ce.globalProvider&&Ce.globalProvider.state===De.SignedIn?Ce.globalProvider.graph.client:null}}Ce._eventDispatcher=new _a;Ce._activeAccountChangedDispatcher=new _a;Ce.handleProviderStateChanged=()=>{(!Ce.globalProvider||Ce.globalProvider.state!==De.SignedIn)&&(Ce._mePromise=null),Ce._eventDispatcher.fire(wa.ProviderStateChanged)};Ce.handleActiveAccountChanged=()=>{Ce.unsetCacheId(),Ce._activeAccountChangedDispatcher.fire(null)};var wa;(function(r){r[r.ProviderChanged=0]="ProviderChanged",r[r.ProviderStateChanged=1]="ProviderStateChanged"})(wa||(wa={}));const sy=(r,e=Ce.globalProvider)=>{const n={scopes:e.needsAdditionalScopes(r)};return e.isIncrementalConsentDisabled?[]:[new np(void 0,n)]};class cy{constructor(e,t,n,o){this.resource=n.startsWith("/")?n:`/${n}`,this.method=o,this.index=e,this.id=t}}var Id=function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(l){try{u(n.next(l))}catch(d){a(d)}}function c(l){try{u(n.throw(l))}catch(d){a(d)}}function u(l){l.done?i(l.value):o(l.value).then(s,c)}u((n=n.apply(r,e||[])).next())})};class Du{static get baseUrl(){return"https://graph.microsoft.com"}constructor(e){this.graph=e,this.allRequests=[],this.requestsQueue=[],this.scopes=[],this.nextIndex=0,this.retryAfter=0}get hasRequests(){return this.requestsQueue.length>0}get(e,t,n,o){const i=this.nextIndex++,a=new cy(i,e,t,"GET");a.headers=o,this.allRequests.push(a),this.requestsQueue.push(i),n&&(this.scopes=this.scopes.concat(n))}executeNext(){return Id(this,void 0,void 0,function*(){const e=new Map;if(this.retryAfter&&(yield iy(this.retryAfter*1e3),this.retryAfter=0),!this.hasRequests)return e;const t=this.requestsQueue.splice(0,20),n=new or;for(const c of t.map(u=>this.allRequests[u]))n.addRequest({id:c.index.toString(),request:new Request(Du.baseUrl+c.resource,{method:c.method,headers:c.headers})});const o=this.scopes.length?sy(this.scopes):[],i=this.graph.api("$batch").middlewareOptions(o),a=yield n.getContent(),s=yield i.post(a);for(const c of s.responses){const u=new Gv,l=parseInt(c.id,10),d=this.allRequests[l];if(u.id=d.id,u.index=d.index,u.headers=c.headers,c.status!==200){if(c.status===429){this.requestsQueue.unshift(l);const h=c.headers["Retry-After"];this.retryAfter=Math.max(this.retryAfter,parseInt(h,10)||1)}continue}else typeof c.body=="string"?c.headers["Content-Type"].includes("image/jpeg")?u.content="data:image/jpeg;base64,"+c.body:c.headers["Content-Type"].includes("image/pjpeg")?u.content="data:image/pjpeg;base64,"+c.body:c.headers["Content-Type"].includes("image/png")&&(u.content="data:image/png;base64,"+c.body):u.content=c.body;e.set(d.id,u)}return e})}executeAll(){return Id(this,void 0,void 0,function*(){const e=new Map;for(;this.hasRequests;){const t=yield this.executeNext();for(const[n,o]of t)e.set(n,o)}return e})}}class sp{constructor(e){typeof e=="string"?this.componentName=e:this.componentName=e.tagName.toLowerCase()}}const uy=(...r)=>{const e=r[0];let t=e;for(let n=1;n(t._middlewareOptions=t._middlewareOptions.concat(n),t),t=t.middlewareOptions([new sp(this._componentName)])),t}createBatch(){return new Du(this)}setComponent(e){this._componentName=e instanceof Element?cp.normalize(e.tagName):e}}const gy=(r,e,t)=>{const n=[new xn(r),new jt(new ce),new Xe,new dy(hy,r.name),new op],o=r.baseURL?r.baseURL:Pu,i=Ea.initWithMiddleware({middleware:uy(...n),customHosts:r.customHosts?new Set(r.customHosts):null,baseUrl:o}),a=new Lu(i,e);return t?a.forComponent(t):a};/*! @azure/msal-browser v2.38.3 2023-10-27 *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Ec=function(r,e){return Ec=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},Ec(r,e)};function Me(r,e){Ec(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var D=function(){return D=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function xu(){for(var r=[],e=0;e0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]"u"||!e||e.length===0},r.isEmptyObj=function(e){if(e&&!r.isEmpty(e))try{var t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0},r.startsWith=function(e,t){return e.indexOf(t)===0},r.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},r.queryStringToObject=function(e){var t={},n=e.split("&"),o=function(i){return decodeURIComponent(i.replace(/\+/g," "))};return n.forEach(function(i){if(i.trim()){var a=i.split(/=(.+)/g,2),s=a[0],c=a[1];s&&c&&(t[o(s)]=o(c))}}),t},r.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},r.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!r.isEmpty(t)})},r.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},r.matchPattern=function(e,t){var n=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return n.test(t)},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Te;(function(r){r[r.Error=0]="Error",r[r.Warning=1]="Warning",r[r.Info=2]="Info",r[r.Verbose=3]="Verbose",r[r.Trace=4]="Trace"})(Te||(Te={}));var Hu=function(){function r(e,t,n){this.level=Te.Info;var o=function(){},i=e||r.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||o,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:Te.Info,this.correlationId=i.correlationId||v.EMPTY_STRING,this.packageName=t||v.EMPTY_STRING,this.packageVersion=n||v.EMPTY_STRING}return r.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Te.Info}},r.prototype.clone=function(e,t,n){return new r({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},e,t)},r.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var n=new Date().toUTCString(),o;b.isEmpty(t.correlationId)?b.isEmpty(this.correlationId)?o="["+n+"]":o="["+n+"] : ["+this.correlationId+"]":o="["+n+"] : ["+t.correlationId+"]";var i=o+" : "+this.packageName+"@"+this.packageVersion+" : "+Te[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,i,t.containsPii||!1)}},r.prototype.executeCallback=function(e,t,n){this.localCallback&&this.localCallback(e,t,n)},r.prototype.error=function(e,t){this.logMessage(e,{logLevel:Te.Error,containsPii:!1,correlationId:t||v.EMPTY_STRING})},r.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:Te.Error,containsPii:!0,correlationId:t||v.EMPTY_STRING})},r.prototype.warning=function(e,t){this.logMessage(e,{logLevel:Te.Warning,containsPii:!1,correlationId:t||v.EMPTY_STRING})},r.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:Te.Warning,containsPii:!0,correlationId:t||v.EMPTY_STRING})},r.prototype.info=function(e,t){this.logMessage(e,{logLevel:Te.Info,containsPii:!1,correlationId:t||v.EMPTY_STRING})},r.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:Te.Info,containsPii:!0,correlationId:t||v.EMPTY_STRING})},r.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:Te.Verbose,containsPii:!1,correlationId:t||v.EMPTY_STRING})},r.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:Te.Verbose,containsPii:!0,correlationId:t||v.EMPTY_STRING})},r.prototype.trace=function(e,t){this.logMessage(e,{logLevel:Te.Trace,containsPii:!1,correlationId:t||v.EMPTY_STRING})},r.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:Te.Trace,containsPii:!0,correlationId:t||v.EMPTY_STRING})},r.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var up="@azure/msal-common",Fu="13.3.1";/*! @azure/msal-common v13.3.1 2023-10-27 */var ni;(function(r){r[r.None=0]="None",r.AzurePublic="https://login.microsoftonline.com",r.AzurePpe="https://login.windows-ppe.net",r.AzureChina="https://login.chinacloudapi.cn",r.AzureGermany="https://login.microsoftonline.de",r.AzureUsGovernment="https://login.microsoftonline.us"})(ni||(ni={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var G={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}},ie=function(r){rt(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(G.redirectUriNotSet.code,G.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(G.postLogoutUriNotSet.code,G.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(G.claimsRequestParsingError.code,G.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(G.authorityUriInsecure.code,G.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(G.urlParseError.code,G.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(G.urlEmptyError.code,G.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(G.emptyScopesError.code,""+G.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(G.clientIdSingleScopeError.code,G.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(G.invalidPrompt.code,G.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(G.invalidClaimsRequest.code,G.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(G.logoutRequestEmptyError.code,G.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(G.tokenRequestEmptyError.code,G.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(G.invalidCodeChallengeMethod.code,G.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(G.invalidCodeChallengeParams.code,G.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(G.invalidCloudDiscoveryMetadata.code,G.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(G.invalidAuthorityMetadata.code,G.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(G.untrustedAuthority.code,G.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(G.invalidAzureCloudInstance.code,G.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(G.missingSshJwk.code,G.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(G.missingSshKid.code,G.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(G.missingNonceAuthenticationHeader.code,G.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,n){return new e(G.invalidAuthenticationHeader.code,G.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+n)},e.createAuthorityMismatchError=function(){return new e(G.authorityMismatch.code,G.authorityMismatch.desc)},e}(M);/*! @azure/msal-common v13.3.1 2023-10-27 */var He=function(){function r(e){var t=this,n=e?b.trimArrayEntries($a(e)):[],o=n?b.removeEmptyStringsFromArray(n):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(function(i){return t.scopes.add(i)})}return r.fromString=function(e){var t=e||v.EMPTY_STRING,n=t.split(" ");return new r(n)},r.createSearchScopes=function(e){var t=new r(e);return t.containsOnlyOIDCScopes()?t.removeScope(v.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t},r.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw ie.createEmptyScopesArrayError()},r.prototype.containsScope=function(e){var t=this.printScopesLowerCase().split(" "),n=new r(t);return b.isEmpty(e)?!1:n.scopes.has(e.toLowerCase())},r.prototype.containsScopeSet=function(e){var t=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(n){return t.containsScope(n)})},r.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return kd.forEach(function(n){e.containsScope(n)&&(t+=1)}),this.scopes.size===t},r.prototype.appendScope=function(e){b.isEmpty(e)||this.scopes.add(e.trim())},r.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(n){return t.appendScope(n)})}catch(n){throw M.createAppendScopeSetError(n)}},r.prototype.removeScope=function(e){if(b.isEmpty(e))throw M.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},r.prototype.removeOIDCScopes=function(){var e=this;kd.forEach(function(t){e.scopes.delete(t)})},r.prototype.unionScopeSets=function(e){if(!e)throw M.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach(function(n){return t.add(n.toLowerCase())}),this.scopes.forEach(function(n){return t.add(n.toLowerCase())}),t},r.prototype.intersectingScopeSets=function(e){if(!e)throw M.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),n=e.getScopeCount(),o=this.getScopeCount(),i=t.size;return ie+t)throw M.createMaxAgeTranspiredError()},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var $e=function(){function r(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(up,Fu)}return r.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var n=t.reduce(function(i,a){var s=e.getAccount(a);return s&&i.push(s),i},[]);if(n.length<1)return[];var o=n.map(function(i){return e.getAccountInfoFromEntity(i)});return o},r.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},r.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),n=this.getIdToken(t);return n&&(t.idToken=n.secret,t.idTokenClaims=new Dt(n.secret,this.cryptoImpl).claims),t},r.prototype.saveCacheRecord=function(e){return z(this,void 0,void 0,function(){return j(this,function(t){switch(t.label){case 0:if(!e)throw M.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},r.prototype.saveAccessToken=function(e){return z(this,void 0,void 0,function(){var t,n,o,i,a=this;return j(this,function(s){switch(s.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},n=this.getTokenKeys(),o=He.fromString(e.target),i=[],n.accessToken.forEach(function(c){if(a.accessTokenKeyMatchesFilter(c,t,!1)){var u=a.getAccessTokenCredential(c);if(u&&a.credentialMatchesFilter(u,t)){var l=He.fromString(u.target);l.intersectingScopeSets(o)&&i.push(a.removeAccessToken(c))}}}),[4,Promise.all(i)];case 1:return s.sent(),this.setAccessTokenCredential(e),[2]}})})},r.prototype.getAccountsFilteredBy=function(e){var t=this,n=this.getAccountKeys(),o=[];return n.forEach(function(i){if(t.isAccountKey(i,e.homeAccountId,e.realm)){var a=t.getAccount(i);a&&(e.homeAccountId&&!t.matchHomeAccountId(a,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(a,e.localAccountId)||e.username&&!t.matchUsername(a,e.username)||e.environment&&!t.matchEnvironment(a,e.environment)||e.realm&&!t.matchRealm(a,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(a,e.nativeAccountId)||o.push(a))}}),o},r.prototype.isAccountKey=function(e,t,n){return!(e.split(Ee.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||n&&!e.toLowerCase().includes(n.toLowerCase()))},r.prototype.isCredentialKey=function(e){if(e.split(Ee.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(t.indexOf(q.ID_TOKEN.toLowerCase())===-1&&t.indexOf(q.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(q.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(q.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(q.REFRESH_TOKEN.toLowerCase())>-1){var n=""+q.REFRESH_TOKEN+Ee.CACHE_KEY_SEPARATOR+this.clientId+Ee.CACHE_KEY_SEPARATOR,o=""+q.REFRESH_TOKEN+Ee.CACHE_KEY_SEPARATOR+Lo+Ee.CACHE_KEY_SEPARATOR;if(t.indexOf(n.toLowerCase())===-1&&t.indexOf(o.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},r.prototype.credentialMatchesFilter=function(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===q.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===te.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))},r.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},r.prototype.getAppMetadataFilteredByInternal=function(e,t){var n=this,o=this.getKeys(),i={};return o.forEach(function(a){if(n.isAppMetadata(a)){var s=n.getAppMetadata(a);s&&(e&&!n.matchEnvironment(s,e)||t&&!n.matchClientId(s,t)||(i[a]=s))}}),i},r.prototype.getAuthorityMetadataByAlias=function(e){var t=this,n=this.getAuthorityMetadataKeys(),o=null;return n.forEach(function(i){if(!(!t.isAuthorityMetadata(i)||i.indexOf(t.clientId)===-1)){var a=t.getAuthorityMetadata(i);a&&a.aliases.indexOf(e)!==-1&&(o=a)}}),o},r.prototype.removeAllAccounts=function(){return z(this,void 0,void 0,function(){var e,t,n=this;return j(this,function(o){switch(o.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach(function(i){t.push(n.removeAccount(i))}),[4,Promise.all(t)];case 1:return o.sent(),[2]}})})},r.prototype.removeAccount=function(e){return z(this,void 0,void 0,function(){var t;return j(this,function(n){switch(n.label){case 0:if(t=this.getAccount(e),!t)throw M.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return n.sent(),this.removeItem(e),[2]}})})},r.prototype.removeAccountContext=function(e){return z(this,void 0,void 0,function(){var t,n,o,i=this;return j(this,function(a){switch(a.label){case 0:return t=this.getTokenKeys(),n=e.generateAccountId(),o=[],t.idToken.forEach(function(s){s.indexOf(n)===0&&i.removeIdToken(s)}),t.accessToken.forEach(function(s){s.indexOf(n)===0&&o.push(i.removeAccessToken(s))}),t.refreshToken.forEach(function(s){s.indexOf(n)===0&&i.removeRefreshToken(s)}),[4,Promise.all(o)];case 1:return a.sent(),[2]}})})},r.prototype.removeAccessToken=function(e){return z(this,void 0,void 0,function(){var t,n,o;return j(this,function(i){switch(i.label){case 0:if(t=this.getAccessTokenCredential(e),!t)return[2];if(t.credentialType.toLowerCase()!==q.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==te.POP)return[3,4];if(n=t,o=n.keyId,!o)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(o)];case 2:return i.sent(),[3,4];case 3:throw i.sent(),M.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},r.prototype.removeAppMetadata=function(){var e=this,t=this.getKeys();return t.forEach(function(n){e.isAppMetadata(n)&&e.removeItem(n)}),!0},r.prototype.readCacheRecord=function(e,t,n){var o=this.getTokenKeys(),i=this.readAccountFromCache(e),a=this.getIdToken(e,o),s=this.getAccessToken(e,t,o),c=this.getRefreshToken(e,!1,o),u=this.readAppMetadataFromCache(n);return i&&a&&(i.idTokenClaims=new Dt(a.secret,this.cryptoImpl).claims),{account:i,idToken:a,accessToken:s,refreshToken:c,appMetadata:u}},r.prototype.readAccountFromCache=function(e){var t=be.generateAccountCacheKey(e);return this.getAccount(t)},r.prototype.getIdToken=function(e,t){var n=this;this.commonLogger.trace("CacheManager - getIdToken called");var o={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:q.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},i=this.getIdTokensByFilter(o,t),a=i.length;return a<1?(this.commonLogger.info("CacheManager:getIdToken - No token found"),null):a>1?(this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them"),i.forEach(function(s){n.removeIdToken(s.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getIdToken - Returning id token"),i[0])},r.prototype.getIdTokensByFilter=function(e,t){var n=this,o=t&&t.idToken||this.getTokenKeys().idToken,i=[];return o.forEach(function(a){if(n.idTokenKeyMatchesFilter(a,Z({clientId:n.clientId},e))){var s=n.getIdTokenCredential(a);s&&n.credentialMatchesFilter(s,e)&&i.push(s)}}),i},r.prototype.idTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return!(t.clientId&&n.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&n.indexOf(t.homeAccountId.toLowerCase())===-1)},r.prototype.removeIdToken=function(e){this.removeItem(e)},r.prototype.removeRefreshToken=function(e){this.removeItem(e)},r.prototype.getAccessToken=function(e,t,n){var o=this;this.commonLogger.trace("CacheManager - getAccessToken called");var i=He.createSearchScopes(t.scopes),a=t.authenticationScheme||te.BEARER,s=a&&a.toLowerCase()!==te.BEARER.toLowerCase()?q.ACCESS_TOKEN_WITH_AUTH_SCHEME:q.ACCESS_TOKEN,c={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:s,clientId:this.clientId,realm:e.tenantId,target:i,tokenType:a,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},u=n&&n.accessToken||this.getTokenKeys().accessToken,l=[];u.forEach(function(h){if(o.accessTokenKeyMatchesFilter(h,c,!0)){var m=o.getAccessTokenCredential(h);m&&o.credentialMatchesFilter(m,c)&&l.push(m)}});var d=l.length;return d<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):d>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),l.forEach(function(h){o.removeAccessToken(h.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),l[0])},r.prototype.accessTokenKeyMatchesFilter=function(e,t,n){var o=e.toLowerCase();if(t.clientId&&o.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&o.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&o.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&o.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target)for(var i=t.target.asArray(),a=0;a1)throw M.createMultipleMatchingAppMetadataInCacheError();return o[0]},r.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===Lo)},r.prototype.matchHomeAccountId=function(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId},r.prototype.matchLocalAccountId=function(e,t){return typeof e.localAccountId=="string"&&t===e.localAccountId},r.prototype.matchUsername=function(e,t){return typeof e.username=="string"&&t.toLowerCase()===e.username.toLowerCase()},r.prototype.matchUserAssertionHash=function(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)},r.prototype.matchEnvironment=function(e,t){var n=this.getAuthorityMetadataByAlias(t);return!!(n&&n.aliases.indexOf(e.environment)>-1)},r.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},r.prototype.matchClientId=function(e,t){return!!(e.clientId&&t===e.clientId)},r.prototype.matchFamilyId=function(e,t){return!!(e.familyId&&t===e.familyId)},r.prototype.matchRealm=function(e,t){return!!(e.realm&&t===e.realm)},r.prototype.matchNativeAccountId=function(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)},r.prototype.matchTarget=function(e,t){var n=e.credentialType!==q.ACCESS_TOKEN&&e.credentialType!==q.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target)return!1;var o=He.fromString(e.target);return o.containsScopeSet(t)},r.prototype.matchTokenType=function(e,t){return!!(e.tokenType&&e.tokenType===t)},r.prototype.matchKeyId=function(e,t){return!!(e.keyId&&e.keyId===t)},r.prototype.isAppMetadata=function(e){return e.indexOf(wc)!==-1},r.prototype.isAuthorityMetadata=function(e){return e.indexOf(xo.CACHE_KEY)!==-1},r.prototype.generateAuthorityMetadataCacheKey=function(e){return xo.CACHE_KEY+"-"+this.clientId+"-"+e},r.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},r}(),yy=function(r){rt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.setAccount=function(){var t="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.getAccount=function(){var t="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.setIdTokenCredential=function(){var t="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.getIdTokenCredential=function(){var t="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.setAccessTokenCredential=function(){var t="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.getAccessTokenCredential=function(){var t="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.setRefreshTokenCredential=function(){var t="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.getRefreshTokenCredential=function(){var t="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.setAppMetadata=function(){var t="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.getAppMetadata=function(){var t="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.setServerTelemetry=function(){var t="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.getServerTelemetry=function(){var t="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.setAuthorityMetadata=function(){var t="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.getAuthorityMetadata=function(){var t="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.getAuthorityMetadataKeys=function(){var t="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.setThrottlingCache=function(){var t="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.getThrottlingCache=function(){var t="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.removeItem=function(){var t="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.containsKey=function(){var t="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.getKeys=function(){var t="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.getAccountKeys=function(){var t="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.getTokenKeys=function(){var t="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e.prototype.clear=function(){return z(this,void 0,void 0,function(){var t;return j(this,function(n){throw t="Storage interface - clear() has not been implemented for the cacheStorage interface.",H.createUnexpectedError(t)})})},e.prototype.updateCredentialCacheKey=function(){var t="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw H.createUnexpectedError(t)},e}($e);/*! @azure/msal-common v13.3.1 2023-10-27 */var Cy=300,lp={tokenRenewalOffsetSeconds:Cy,preventCorsPreflight:!1},Ey={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Te.Info,correlationId:v.EMPTY_STRING},_y={claimsBasedCachingEnabled:!0},wy={sendGetRequestAsync:function(){return z(this,void 0,void 0,function(){var r;return j(this,function(e){throw r="Network interface - sendGetRequestAsync() has not been implemented",H.createUnexpectedError(r)})})},sendPostRequestAsync:function(){return z(this,void 0,void 0,function(){var r;return j(this,function(e){throw r="Network interface - sendPostRequestAsync() has not been implemented",H.createUnexpectedError(r)})})}},Ty={sku:v.SKU,version:Fu,cpu:v.EMPTY_STRING,os:v.EMPTY_STRING},Sy={clientSecret:v.EMPTY_STRING,clientAssertion:void 0},Iy={azureCloudInstance:ni.None,tenant:""+v.DEFAULT_COMMON_TENANT},Ay={application:{appName:"",appVersion:""}};function ky(r){var e=r.authOptions,t=r.systemOptions,n=r.loggerOptions,o=r.cacheOptions,i=r.storageInterface,a=r.networkInterface,s=r.cryptoInterface,c=r.clientCredentials,u=r.libraryInfo,l=r.telemetry,d=r.serverTelemetryManager,h=r.persistencePlugin,m=r.serializableCache,y=Z(Z({},Ey),n);return{authOptions:Ry(e),systemOptions:Z(Z({},lp),t),loggerOptions:y,cacheOptions:Z(Z({},_y),o),storageInterface:i||new yy(e.clientId,Aa,new Hu(y)),networkInterface:a||wy,cryptoInterface:s||Aa,clientCredentials:c||Sy,libraryInfo:Z(Z({},Ty),u),telemetry:Z(Z({},Ay),l),serverTelemetryManager:d||null,persistencePlugin:h||null,serializableCache:m||null}}function Ry(r){return Z({clientCapabilities:[],azureCloudOptions:Iy,skipAuthorityMetadataCache:!1},r)}/*! @azure/msal-common v13.3.1 2023-10-27 */var Wr=function(r){rt(e,r);function e(t,n,o){var i=r.call(this,t,n,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,e.prototype),i}return e}(H);/*! @azure/msal-common v13.3.1 2023-10-27 */var Ra=function(){function r(){}return r.generateThrottlingStorageKey=function(e){return Ho.THROTTLING_PREFIX+"."+JSON.stringify(e)},r.preProcess=function(e,t){var n,o=r.generateThrottlingStorageKey(t),i=e.getThrottlingCache(o);if(i){if(i.throttleTime=500&&e.status<600},r.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(at.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},r.calculateThrottleTime=function(e){var t=e<=0?0:e,n=Date.now()/1e3;return Math.floor(Math.min(n+(t||Ho.DEFAULT_THROTTLE_TIME_SECONDS),n+Ho.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},r.removeThrottle=function(e,t,n,o){var i={clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:o,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},a=this.generateThrottlingStorageKey(i);e.removeItem(a)},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Ny=function(){function r(e,t){this.networkClient=e,this.cacheManager=t}return r.prototype.sendPostRequest=function(e,t,n){return z(this,void 0,void 0,function(){var o,i;return j(this,function(a){switch(a.label){case 0:Ra.preProcess(this.cacheManager,e),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,n)];case 2:return o=a.sent(),[3,4];case 3:throw i=a.sent(),i instanceof H?i:M.createNetworkError(t,i);case 4:return Ra.postProcess(this.cacheManager,e,o),[2,o]}})})},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ot;(function(r){r.HOME_ACCOUNT_ID="home_account_id",r.UPN="UPN"})(ot||(ot={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var Pr=function(){function r(){}return r.validateRedirectUri=function(e){if(b.isEmpty(e))throw ie.createRedirectUriEmptyError()},r.validatePrompt=function(e){var t=[];for(var n in qe)t.push(qe[n]);if(t.indexOf(e)<0)throw ie.createInvalidPromptError(e)},r.validateClaims=function(e){try{JSON.parse(e)}catch{throw ie.createInvalidClaimsRequestError()}},r.validateCodeChallengeParams=function(e,t){if(b.isEmpty(e)||b.isEmpty(t))throw ie.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},r.validateCodeChallengeMethod=function(e){if([Rd.PLAIN,Rd.S256].indexOf(e)<0)throw ie.createInvalidCodeChallengeMethodError()},r.sanitizeEQParams=function(e,t){return e?(t.forEach(function(n,o){e[o]&&delete e[o]}),Object.fromEntries(Object.entries(e).filter(function(n){var o=n[1];return o!==""}))):{}},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Bo=function(){function r(){this.parameters=new Map}return r.prototype.addResponseTypeCode=function(){this.parameters.set(V.RESPONSE_TYPE,encodeURIComponent(v.CODE_RESPONSE_TYPE))},r.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(V.RESPONSE_TYPE,encodeURIComponent(v.TOKEN_RESPONSE_TYPE+" "+v.ID_TOKEN_RESPONSE_TYPE))},r.prototype.addResponseMode=function(e){this.parameters.set(V.RESPONSE_MODE,encodeURIComponent(e||Ta.QUERY))},r.prototype.addNativeBroker=function(){this.parameters.set(V.NATIVE_BROKER,encodeURIComponent("1"))},r.prototype.addScopes=function(e,t){t===void 0&&(t=!0);var n=t?$a(e||[],pi):e||[],o=new He(n);this.parameters.set(V.SCOPE,encodeURIComponent(o.printScopes()))},r.prototype.addClientId=function(e){this.parameters.set(V.CLIENT_ID,encodeURIComponent(e))},r.prototype.addRedirectUri=function(e){Pr.validateRedirectUri(e),this.parameters.set(V.REDIRECT_URI,encodeURIComponent(e))},r.prototype.addPostLogoutRedirectUri=function(e){Pr.validateRedirectUri(e),this.parameters.set(V.POST_LOGOUT_URI,encodeURIComponent(e))},r.prototype.addIdTokenHint=function(e){this.parameters.set(V.ID_TOKEN_HINT,encodeURIComponent(e))},r.prototype.addDomainHint=function(e){this.parameters.set(Do.DOMAIN_HINT,encodeURIComponent(e))},r.prototype.addLoginHint=function(e){this.parameters.set(Do.LOGIN_HINT,encodeURIComponent(e))},r.prototype.addCcsUpn=function(e){this.parameters.set(at.CCS_HEADER,encodeURIComponent("UPN:"+e))},r.prototype.addCcsOid=function(e){this.parameters.set(at.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},r.prototype.addSid=function(e){this.parameters.set(Do.SID,encodeURIComponent(e))},r.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);Pr.validateClaims(n),this.parameters.set(V.CLAIMS,encodeURIComponent(n))},r.prototype.addCorrelationId=function(e){this.parameters.set(V.CLIENT_REQUEST_ID,encodeURIComponent(e))},r.prototype.addLibraryInfo=function(e){this.parameters.set(V.X_CLIENT_SKU,e.sku),this.parameters.set(V.X_CLIENT_VER,e.version),e.os&&this.parameters.set(V.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(V.X_CLIENT_CPU,e.cpu)},r.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(V.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(V.X_APP_VER,e.appVersion)},r.prototype.addPrompt=function(e){Pr.validatePrompt(e),this.parameters.set(""+V.PROMPT,encodeURIComponent(e))},r.prototype.addState=function(e){b.isEmpty(e)||this.parameters.set(V.STATE,encodeURIComponent(e))},r.prototype.addNonce=function(e){this.parameters.set(V.NONCE,encodeURIComponent(e))},r.prototype.addCodeChallengeParams=function(e,t){if(Pr.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(V.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(V.CODE_CHALLENGE_METHOD,encodeURIComponent(t));else throw ie.createInvalidCodeChallengeParamsError()},r.prototype.addAuthorizationCode=function(e){this.parameters.set(V.CODE,encodeURIComponent(e))},r.prototype.addDeviceCode=function(e){this.parameters.set(V.DEVICE_CODE,encodeURIComponent(e))},r.prototype.addRefreshToken=function(e){this.parameters.set(V.REFRESH_TOKEN,encodeURIComponent(e))},r.prototype.addCodeVerifier=function(e){this.parameters.set(V.CODE_VERIFIER,encodeURIComponent(e))},r.prototype.addClientSecret=function(e){this.parameters.set(V.CLIENT_SECRET,encodeURIComponent(e))},r.prototype.addClientAssertion=function(e){b.isEmpty(e)||this.parameters.set(V.CLIENT_ASSERTION,encodeURIComponent(e))},r.prototype.addClientAssertionType=function(e){b.isEmpty(e)||this.parameters.set(V.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},r.prototype.addOboAssertion=function(e){this.parameters.set(V.OBO_ASSERTION,encodeURIComponent(e))},r.prototype.addRequestTokenUse=function(e){this.parameters.set(V.REQUESTED_TOKEN_USE,encodeURIComponent(e))},r.prototype.addGrantType=function(e){this.parameters.set(V.GRANT_TYPE,encodeURIComponent(e))},r.prototype.addClientInfo=function(){this.parameters.set(vy,"1")},r.prototype.addExtraQueryParameters=function(e){var t=this,n=Pr.sanitizeEQParams(e,this.parameters);Object.keys(n).forEach(function(o){t.parameters.set(o,e[o])})},r.prototype.addClientCapabilitiesToClaims=function(e,t){var n;if(!e)n={};else try{n=JSON.parse(e)}catch{throw ie.createInvalidClaimsRequestError()}return t&&t.length>0&&(n.hasOwnProperty(pn.ACCESS_TOKEN)||(n[pn.ACCESS_TOKEN]={}),n[pn.ACCESS_TOKEN][pn.XMS_CC]={values:t}),JSON.stringify(n)},r.prototype.addUsername=function(e){this.parameters.set(Ia.username,encodeURIComponent(e))},r.prototype.addPassword=function(e){this.parameters.set(Ia.password,encodeURIComponent(e))},r.prototype.addPopToken=function(e){b.isEmpty(e)||(this.parameters.set(V.TOKEN_TYPE,te.POP),this.parameters.set(V.REQ_CNF,encodeURIComponent(e)))},r.prototype.addSshJwk=function(e){b.isEmpty(e)||(this.parameters.set(V.TOKEN_TYPE,te.SSH),this.parameters.set(V.REQ_CNF,encodeURIComponent(e)))},r.prototype.addServerTelemetry=function(e){this.parameters.set(V.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(V.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},r.prototype.addThrottling=function(){this.parameters.set(V.X_MS_LIB_CAPABILITY,Ho.X_MS_LIB_CAPABILITY_VALUE)},r.prototype.addLogoutHint=function(e){this.parameters.set(V.LOGOUT_HINT,encodeURIComponent(e))},r.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,n){e.push(n+"="+t)}),e.join("&")},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Bu=function(){function r(e,t){this.config=ky(e),this.logger=new Hu(this.config.loggerOptions,up,Fu),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new Ny(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return r.prototype.createTokenRequestHeaders=function(e){var t={};if(t[at.CONTENT_TYPE]=v.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case ot.HOME_ACCOUNT_ID:try{var n=mn(e.credential);t[at.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case ot.UPN:t[at.CCS_HEADER]="UPN: "+e.credential;break}return t},r.prototype.executePostToTokenEndpoint=function(e,t,n,o){return z(this,void 0,void 0,function(){var i;return j(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(o,e,{body:t,headers:n})];case 1:return i=a.sent(),this.config.serverTelemetryManager&&i.status<500&&i.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},r.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw M.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},r.prototype.createTokenQueryParameters=function(e){var t=new Bo;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var qu=function(){function r(){}return r.prototype.generateAccountId=function(){return r.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},r.prototype.generateCredentialId=function(){return r.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},r.prototype.generateTarget=function(){return r.generateTargetForCacheKey(this.target)},r.prototype.generateCredentialKey=function(){return r.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},r.prototype.generateType=function(){switch(this.credentialType){case q.ID_TOKEN:return Kt.ID_TOKEN;case q.ACCESS_TOKEN:case q.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Kt.ACCESS_TOKEN;case q.REFRESH_TOKEN:return Kt.REFRESH_TOKEN;default:throw M.createUnexpectedCredentialTypeError()}},r.generateCredentialCacheKey=function(e,t,n,o,i,a,s,c,u){var l=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(n,o,i,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(u),this.generateSchemeForCacheKey(c)];return l.join(Ee.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateAccountIdForCacheKey=function(e,t){var n=[e,t];return n.join(Ee.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateCredentialIdForCacheKey=function(e,t,n,o){var i=e===q.REFRESH_TOKEN&&o||t,a=[e,i,n||v.EMPTY_STRING];return a.join(Ee.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateTargetForCacheKey=function(e){return(e||v.EMPTY_STRING).toLowerCase()},r.generateClaimsHashForCacheKey=function(e){return(e||v.EMPTY_STRING).toLowerCase()},r.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==te.BEARER.toLowerCase()?e.toLowerCase():v.EMPTY_STRING},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Fr=function(r){rt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createIdTokenEntity=function(t,n,o,i,a){var s=new e;return s.credentialType=q.ID_TOKEN,s.homeAccountId=t,s.environment=n,s.clientId=i,s.secret=o,s.realm=a,s},e.isIdTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===q.ID_TOKEN:!1},e}(qu);/*! @azure/msal-common v13.3.1 2023-10-27 */var gt=function(){function r(){}return r.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},r.isTokenExpired=function(e,t){var n=Number(e)||0,o=r.nowSeconds()+t;return o>n},r.wasClockTurnedBack=function(e){var t=Number(e);return t>r.nowSeconds()},r.delay=function(e,t){return new Promise(function(n){return setTimeout(function(){return n(t)},e)})},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Br=function(r){rt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createAccessTokenEntity=function(t,n,o,i,a,s,c,u,l,d,h,m,y,E,g){var f,p,C=new e;C.homeAccountId=t,C.credentialType=q.ACCESS_TOKEN,C.secret=o;var _=gt.nowSeconds();if(C.cachedAt=_.toString(),C.expiresOn=c.toString(),C.extendedExpiresOn=u.toString(),d&&(C.refreshOn=d.toString()),C.environment=n,C.clientId=i,C.realm=a,C.target=s,C.userAssertionHash=m,C.tokenType=b.isEmpty(h)?te.BEARER:h,E&&(C.requestedClaims=E,C.requestedClaimsHash=g),((f=C.tokenType)===null||f===void 0?void 0:f.toLowerCase())!==te.BEARER.toLowerCase())switch(C.credentialType=q.ACCESS_TOKEN_WITH_AUTH_SCHEME,C.tokenType){case te.POP:var L=Dt.extractTokenClaims(o,l);if(!(!((p=L==null?void 0:L.cnf)===null||p===void 0)&&p.kid))throw M.createTokenClaimsRequiredError();C.keyId=L.cnf.kid;break;case te.SSH:C.keyId=y}return C},e.isAccessTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.hasOwnProperty("target")&&(t.credentialType===q.ACCESS_TOKEN||t.credentialType===q.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(qu);/*! @azure/msal-common v13.3.1 2023-10-27 */var vn=function(r){rt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(t,n,o,i,a,s){var c=new e;return c.clientId=i,c.credentialType=q.REFRESH_TOKEN,c.environment=n,c.homeAccountId=t,c.secret=o,c.userAssertionHash=s,a&&(c.familyId=a),c},e.isRefreshTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===q.REFRESH_TOKEN:!1},e}(qu);/*! @azure/msal-common v13.3.1 2023-10-27 */var bd=["interaction_required","consent_required","login_required"],by=["message_only","additional_action","basic_action","user_password_expired","consent_required"],yn={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},ft=function(r){rt(e,r);function e(t,n,o,i,a,s,c){var u=r.call(this,t,n,o)||this;return Object.setPrototypeOf(u,e.prototype),u.timestamp=i||v.EMPTY_STRING,u.traceId=a||v.EMPTY_STRING,u.correlationId=s||v.EMPTY_STRING,u.claims=c||v.EMPTY_STRING,u.name="InteractionRequiredAuthError",u}return e.isInteractionRequiredError=function(t,n,o){var i=!!t&&bd.indexOf(t)>-1,a=!!o&&by.indexOf(o)>-1,s=!!n&&bd.some(function(c){return n.indexOf(c)>-1});return i||s||a},e.createNoTokensFoundError=function(){return new e(yn.noTokensFoundError.code,yn.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(yn.native_account_unavailable.code,yn.native_account_unavailable.desc)},e}(H);/*! @azure/msal-common v13.3.1 2023-10-27 */var qo=function(){function r(e,t,n,o,i){this.account=e||null,this.idToken=t||null,this.accessToken=n||null,this.refreshToken=o||null,this.appMetadata=i||null}return r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Qt=function(){function r(){}return r.setRequestState=function(e,t,n){var o=r.generateLibraryState(e,n);return b.isEmpty(t)?o:""+o+v.RESOURCE_DELIM+t},r.generateLibraryState=function(e,t){if(!e)throw M.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};t&&(n.meta=t);var o=JSON.stringify(n);return e.base64Encode(o)},r.parseRequestState=function(e,t){if(!e)throw M.createNoCryptoObjectError("parseRequestState");if(b.isEmpty(t))throw M.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(v.RESOURCE_DELIM),o=n[0],i=n.length>1?n.slice(1).join(v.RESOURCE_DELIM):v.EMPTY_STRING,a=e.base64Decode(o),s=JSON.parse(a);return{userRequestState:b.isEmpty(i)?v.EMPTY_STRING:i,libraryState:s}}catch(c){throw M.createInvalidStateError(t,c)}},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var $=function(){function r(e){if(this._urlString=e,b.isEmpty(this._urlString))throw ie.createUrlEmptyError();b.isEmpty(this.getHash())&&(this._urlString=r.canonicalizeUri(e))}return Object.defineProperty(r.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),r.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return b.endsWith(t,"?")?t=t.slice(0,-1):b.endsWith(t,"?/")&&(t=t.slice(0,-2)),b.endsWith(t,"/")||(t+="/"),t}return e},r.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw ie.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw ie.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw ie.createInsecureAuthorityUriError(this.urlString)},r.appendQueryString=function(e,t){return b.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},r.removeHashFromUrl=function(e){return r.canonicalizeUri(e.split("#")[0])},r.prototype.replaceTenantPath=function(e){var t=this.getUrlComponents(),n=t.PathSegments;return e&&n.length!==0&&(n[0]===Kr.COMMON||n[0]===Kr.ORGANIZATIONS)&&(n[0]=e),r.constructAuthorityUriFromObject(t)},r.prototype.getHash=function(){return r.parseHash(this.urlString)},r.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw ie.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},o=n.AbsolutePath.split("/");return o=o.filter(function(i){return i&&i.length>0}),n.PathSegments=o,!b.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},r.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(t);if(!n)throw ie.createUrlParseError("Given url string: "+e);return n[2]},r.getAbsoluteUrl=function(e,t){if(e[0]===v.FORWARD_SLASH){var n=new r(t),o=n.getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e},r.parseHash=function(e){var t=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):v.EMPTY_STRING},r.parseQueryString=function(e){var t=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):v.EMPTY_STRING},r.constructAuthorityUriFromObject=function(e){return new r(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},r.getDeserializedHash=function(e){if(b.isEmpty(e))return{};var t=r.parseHash(e),n=b.queryStringToObject(b.isEmpty(t)?e:t);if(!n)throw M.createHashNotDeserializedError(JSON.stringify(n));return n},r.getDeserializedQueryString=function(e){if(b.isEmpty(e))return{};var t=r.parseQueryString(e),n=b.queryStringToObject(b.isEmpty(t)?e:t);if(!n)throw M.createHashNotDeserializedError(JSON.stringify(n));return n},r.hashContainsKnownProperties=function(e){if(b.isEmpty(e)||e.indexOf("=")<0)return!1;var t=r.getDeserializedHash(e);return!!(t.code||t.error_description||t.error||t.state)},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var w;(function(r){r.AcquireTokenByCode="acquireTokenByCode",r.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",r.AcquireTokenSilent="acquireTokenSilent",r.AcquireTokenSilentAsync="acquireTokenSilentAsync",r.AcquireTokenPopup="acquireTokenPopup",r.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",r.CryptoOptsSignJwt="cryptoOptsSignJwt",r.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",r.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",r.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",r.SsoSilent="ssoSilent",r.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",r.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",r.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",r.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",r.BrokerHandhshake="brokerHandshake",r.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",r.AcquireTokenByBroker="acquireTokenByBroker",r.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",r.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",r.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",r.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",r.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",r.AcquireTokenFromCache="acquireTokenFromCache",r.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",r.InitializeBaseRequest="initializeBaseRequest",r.InitializeSilentRequest="initializeSilentRequest",r.InitializeClientApplication="initializeClientApplication",r.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",r.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",r.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",r.SilentHandlerLoadFrame="silentHandlerLoadFrame",r.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",r.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",r.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",r.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",r.GetAuthCodeUrl="getAuthCodeUrl",r.HandleCodeResponseFromServer="handleCodeResponseFromServer",r.HandleCodeResponseFromHash="handleCodeResponseFromHash",r.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",r.AuthClientAcquireToken="authClientAcquireToken",r.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",r.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",r.AuthClientCreateQueryString="authClientCreateQueryString",r.PopTokenGenerateCnf="popTokenGenerateCnf",r.PopTokenGenerateKid="popTokenGenerateKid",r.HandleServerTokenResponse="handleServerTokenResponse",r.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",r.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",r.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",r.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",r.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",r.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",r.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",r.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",r.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",r.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",r.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",r.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",r.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",r.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",r.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",r.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",r.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",r.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"})(w||(w={}));var Na;(function(r){r[r.NotStarted=0]="NotStarted",r[r.InProgress=1]="InProgress",r[r.Completed=2]="Completed"})(Na||(Na={}));var Py=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.1 2023-10-27 */var Sc;(function(r){r.SW="sw",r.UHW="uhw"})(Sc||(Sc={}));var Hn=function(){function r(e,t){this.cryptoUtils=e,this.performanceClient=t}return r.prototype.generateCnf=function(e){var t,n;return z(this,void 0,void 0,function(){var o,i,a;return j(this,function(s){switch(s.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(w.PopTokenGenerateCnf,e.correlationId),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(w.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return o=s.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(o)),a={kid:o.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(a.reqCnfHash=s.sent(),a)]}})})},r.prototype.generateKid=function(e){var t;return z(this,void 0,void 0,function(){var n;return j(this,function(o){switch(o.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(w.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return n=o.sent(),[2,{kid:n,xms_ksl:Sc.SW}]}})})},r.prototype.signPopToken=function(e,t,n){return z(this,void 0,void 0,function(){return j(this,function(o){return[2,this.signPayload(e,t,n)]})})},r.prototype.signPayload=function(e,t,n,o){return z(this,void 0,void 0,function(){var i,a,s,c,u,l;return j(this,function(d){switch(d.label){case 0:return i=n.resourceRequestMethod,a=n.resourceRequestUri,s=n.shrClaims,c=n.shrNonce,u=a?new $(a):void 0,l=u==null?void 0:u.getUrlComponents(),[4,this.cryptoUtils.signJwt(Z({at:e,ts:gt.nowSeconds(),m:i==null?void 0:i.toUpperCase(),u:l==null?void 0:l.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:l==null?void 0:l.AbsolutePath,q:l!=null&&l.QueryString?[[],l.QueryString]:void 0,client_claims:s||void 0},o),t,n.correlationId)];case 1:return[2,d.sent()]}})})},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Ic=function(){function r(){}return r.prototype.generateAppMetadataKey=function(){return r.generateAppMetadataCacheKey(this.environment,this.clientId)},r.generateAppMetadataCacheKey=function(e,t){var n=[wc,e,t];return n.join(Ee.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAppMetadataEntity=function(e,t,n){var o=new r;return o.clientId=e,o.environment=t,n&&(o.familyId=n),o},r.isAppMetadataEntity=function(e,t){return t?e.indexOf(wc)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var My=function(){function r(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(r.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ba=function(){function r(e,t,n,o,i,a,s){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=o,this.serializableCache=i,this.persistencePlugin=a,this.performanceClient=s}return r.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw e.state?M.createStateNotFoundError("Cached State"):M.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw M.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw ft.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new ft(e.error||v.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||v.EMPTY_STRING,e.trace_id||v.EMPTY_STRING,e.correlation_id||v.EMPTY_STRING,e.claims||v.EMPTY_STRING):new Wr(e.error||v.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&ka(e.client_info,n)},r.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(ft.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new ft(e.error,e.error_description,e.suberror,e.timestamp||v.EMPTY_STRING,e.trace_id||v.EMPTY_STRING,e.correlation_id||v.EMPTY_STRING,e.claims||v.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new Wr(e.error,t,e.suberror)}},r.prototype.handleServerTokenResponse=function(e,t,n,o,i,a,s,c,u){var l;return z(this,void 0,void 0,function(){var d,h,m,y,E,g,f;return j(this,function(p){switch(p.label){case 0:if((l=this.performanceClient)===null||l===void 0||l.addQueueMeasurement(w.HandleServerTokenResponse,e.correlation_id),e.id_token){if(d=new Dt(e.id_token||v.EMPTY_STRING,this.cryptoObj),i&&!b.isEmpty(i.nonce)&&d.claims.nonce!==i.nonce)throw M.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(h=d.claims.auth_time,!h)throw M.createAuthTimeNotFoundError();Dt.checkMaxAge(h,o.maxAge)}}this.homeAccountIdentifier=be.generateHomeAccountId(e.client_info||v.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,d),i&&i.state&&(m=Qt.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0,y=this.generateCacheRecord(e,t,n,o,d,a,i),p.label=1;case 1:return p.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),E=new My(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(E)]):[3,3];case 2:p.sent(),p.label=3;case 3:return s&&!c&&y.account&&(g=y.account.generateAccountKey(),f=this.cacheStorage.getAccount(g),!f)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,r.generateAuthenticationResult(this.cryptoObj,t,y,!1,o,d,m,void 0,u)]):[4,this.cacheStorage.saveCacheRecord(y)];case 4:return p.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&E?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(E)]):[3,7];case 6:p.sent(),p.label=7;case 7:return[7];case 8:return[2,r.generateAuthenticationResult(this.cryptoObj,t,y,!1,o,d,m,e,u)]}})})},r.prototype.generateCacheRecord=function(e,t,n,o,i,a,s){var c=t.getPreferredCache();if(b.isEmpty(c))throw M.createInvalidCacheEnvironmentError();var u,l;!b.isEmpty(e.id_token)&&i&&(u=Fr.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||v.EMPTY_STRING,this.clientId,i.claims.tid||v.EMPTY_STRING),l=this.generateAccountEntity(e,i,t,s));var d=null;if(!b.isEmpty(e.access_token)){var h=e.scope?He.fromString(e.scope):new He(o.scopes||[]),m=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,y=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,E=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,g=n+m,f=g+y,p=E&&E>0?n+E:void 0;d=Br.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||v.EMPTY_STRING,this.clientId,i?i.claims.tid||v.EMPTY_STRING:t.tenant,h.printScopes(),g,f,this.cryptoObj,p,e.token_type,a,e.key_id,o.claims,o.requestedClaimsHash)}var C=null;b.isEmpty(e.refresh_token)||(C=vn.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||v.EMPTY_STRING,this.clientId,e.foci,a));var _=null;return b.isEmpty(e.foci)||(_=Ic.createAppMetadataEntity(this.clientId,c,e.foci)),new qo(l,u,d,C,_)},r.prototype.generateAccountEntity=function(e,t,n,o){var i=n.authorityType,a=o?o.cloud_graph_host_name:v.EMPTY_STRING,s=o?o.msgraph_host:v.EMPTY_STRING;if(i===je.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),be.createGenericAccount(this.homeAccountIdentifier,t,n,a,s);if(b.isEmpty(e.client_info)&&n.protocolMode==="AAD")throw M.createClientInfoEmptyError();return e.client_info?be.createAccount(e.client_info,this.homeAccountIdentifier,t,n,a,s):be.createGenericAccount(this.homeAccountIdentifier,t,n,a,s)},r.generateAuthenticationResult=function(e,t,n,o,i,a,s,c,u){var l,d,h;return z(this,void 0,void 0,function(){var m,y,E,g,f,p,C,_,L,k,F;return j(this,function(x){switch(x.label){case 0:if(m=v.EMPTY_STRING,y=[],E=null,f=v.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==te.POP)return[3,2];if(p=new Hn(e),C=n.accessToken,_=C.secret,L=C.keyId,!L)throw M.createKeyIdMissingError();return[4,p.signPopToken(_,L,i)];case 1:return m=x.sent(),[3,3];case 2:m=n.accessToken.secret,x.label=3;case 3:y=He.fromString(n.accessToken.target).asArray(),E=new Date(Number(n.accessToken.expiresOn)*1e3),g=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),x.label=4;case 4:return n.appMetadata&&(f=n.appMetadata.familyId===Lo?Lo:v.EMPTY_STRING),k=(a==null?void 0:a.claims.oid)||(a==null?void 0:a.claims.sub)||v.EMPTY_STRING,F=(a==null?void 0:a.claims.tid)||v.EMPTY_STRING,c!=null&&c.spa_accountid&&n.account&&(n.account.nativeAccountId=c==null?void 0:c.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:k,tenantId:F,scopes:y,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:v.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:m,fromCache:o,expiresOn:E,correlationId:i.correlationId,requestId:u||v.EMPTY_STRING,extExpiresOn:g,familyId:f,tokenType:((l=n.accessToken)===null||l===void 0?void 0:l.tokenType)||v.EMPTY_STRING,state:s?s.userRequestState:v.EMPTY_STRING,cloudGraphHostName:((d=n.account)===null||d===void 0?void 0:d.cloudGraphHostName)||v.EMPTY_STRING,msGraphHost:((h=n.account)===null||h===void 0?void 0:h.msGraphHost)||v.EMPTY_STRING,code:c==null?void 0:c.spa_code,fromNativeBroker:!1}]}})})},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var dp=function(r){rt(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.includeRedirectUri=!0,o}return e.prototype.getAuthCodeUrl=function(t){var n,o;return z(this,void 0,void 0,function(){var i;return j(this,function(a){switch(a.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.GetAuthCodeUrl,t.correlationId),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(w.AuthClientCreateQueryString,t.correlationId),[4,this.createAuthCodeUrlQueryString(t)];case 1:return i=a.sent(),[2,$.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},e.prototype.acquireToken=function(t,n){var o,i,a,s,c,u;return z(this,void 0,void 0,function(){var l,d,h,m,y,E,g=this;return j(this,function(f){switch(f.label){case 0:if(!t||!t.code)throw M.createTokenRequestCannotBeMadeError();return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(w.AuthClientAcquireToken,t.correlationId),l=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement("AuthCodeClientAcquireToken",t.correlationId),this.logger.info("in acquireToken call in auth-code client"),d=gt.nowSeconds(),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(w.AuthClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(this.authority,t)];case 1:return h=f.sent(),m=(s=h.headers)===null||s===void 0?void 0:s[at.X_MS_REQUEST_ID],y=(c=h.headers)===null||c===void 0?void 0:c[at.X_MS_HTTP_VERSION],y&&(l==null||l.addStaticFields({httpVerAuthority:y})),E=new ba(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),E.validateTokenResponse(h.body),(u=this.performanceClient)===null||u===void 0||u.setPreQueueTime(w.HandleServerTokenResponse,t.correlationId),[2,E.handleServerTokenResponse(h.body,this.authority,d,t,n,void 0,void 0,void 0,m).then(function(p){return l==null||l.endMeasurement({success:!0}),p}).catch(function(p){throw g.logger.verbose("Error in fetching token in ACC",t.correlationId),l==null||l.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),p})]}})})},e.prototype.handleFragmentResponse=function(t,n){var o=new ba(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new $(t),a=$.getDeserializedHash(i.getHash());if(o.validateServerAuthorizationCodeResponse(a,n,this.cryptoUtils),!a.code)throw M.createNoAuthCodeInServerResponseError();return Z(Z({},a),{code:a.code})},e.prototype.getLogoutUri=function(t){if(!t)throw ie.createEmptyLogoutRequestError();var n=this.createLogoutUrlQueryString(t);return $.appendQueryString(this.authority.endSessionEndpoint,n)},e.prototype.executeTokenRequest=function(t,n){var o,i;return z(this,void 0,void 0,function(){var a,s,c,u,l,d,h;return j(this,function(m){switch(m.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(w.AuthClientExecuteTokenRequest,n.correlationId),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(w.AuthClientCreateTokenRequestBody,n.correlationId),a=this.createTokenQueryParameters(n),s=$.appendQueryString(t.tokenEndpoint,a),[4,this.createTokenRequestBody(n)];case 1:if(c=m.sent(),u=void 0,n.clientInfo)try{l=ka(n.clientInfo,this.cryptoUtils),u={credential:""+l.uid+Ee.CLIENT_INFO_SEPARATOR+l.utid,type:ot.HOME_ACCOUNT_ID}}catch(y){this.logger.verbose("Could not parse client info for CCS Header: "+y)}return d=this.createTokenRequestHeaders(u||n.ccsCredential),h={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:n.scopes,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},[2,this.executePostToTokenEndpoint(s,c,d,h)]}})})},e.prototype.createTokenRequestBody=function(t){var n,o;return z(this,void 0,void 0,function(){var i,a,s,c,u,l,d,d,h;return j(this,function(m){switch(m.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.AuthClientCreateTokenRequestBody,t.correlationId),i=new Bo,i.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(t.redirectUri):Pr.validateRedirectUri(t.redirectUri),i.addScopes(t.scopes),i.addAuthorizationCode(t.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&i.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(a=this.config.clientCredentials.clientAssertion,i.addClientAssertion(a.assertion),i.addClientAssertionType(a.assertionType)),i.addGrantType(Sa.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),t.authenticationScheme!==te.POP?[3,2]:(s=new Hn(this.cryptoUtils,this.performanceClient),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(w.PopTokenGenerateCnf,t.correlationId),[4,s.generateCnf(t)]);case 1:return c=m.sent(),i.addPopToken(c.reqCnfString),[3,3];case 2:if(t.authenticationScheme===te.SSH)if(t.sshJwk)i.addSshJwk(t.sshJwk);else throw ie.createMissingSshJwkError();m.label=3;case 3:if(u=t.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(u),(!b.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(t.claims,this.config.authOptions.clientCapabilities),l=void 0,t.clientInfo)try{d=ka(t.clientInfo,this.cryptoUtils),l={credential:""+d.uid+Ee.CLIENT_INFO_SEPARATOR+d.utid,type:ot.HOME_ACCOUNT_ID}}catch(y){this.logger.verbose("Could not parse client info for CCS Header: "+y)}else l=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&l)switch(l.type){case ot.HOME_ACCOUNT_ID:try{d=mn(l.credential),i.addCcsOid(d)}catch(y){this.logger.verbose("Could not parse home account ID for CCS Header: "+y)}break;case ot.UPN:i.addCcsUpn(l.credential);break}return t.tokenBodyParameters&&i.addExtraQueryParameters(t.tokenBodyParameters),t.enableSpaAuthorizationCode&&(!t.tokenBodyParameters||!t.tokenBodyParameters[V.RETURN_SPA_CODE])&&i.addExtraQueryParameters((h={},h[V.RETURN_SPA_CODE]="1",h)),[2,i.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){var n;return z(this,void 0,void 0,function(){var o,i,a,s,c,u,u,u,l,d;return j(this,function(h){switch(h.label){case 0:if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.AuthClientCreateQueryString,t.correlationId),o=new Bo,o.addClientId(this.config.authOptions.clientId),i=$a(t.scopes||[],t.extraScopesToConsent||[]),o.addScopes(i),o.addRedirectUri(t.redirectUri),a=t.correlationId||this.config.cryptoInterface.createNewGuid(),o.addCorrelationId(a),o.addResponseMode(t.responseMode),o.addResponseTypeCode(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&o.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&o.addPrompt(t.prompt),t.domainHint&&o.addDomainHint(t.domainHint),t.prompt!==qe.SELECT_ACCOUNT)if(t.sid&&t.prompt===qe.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),o.addSid(t.sid);else if(t.account){if(s=this.extractAccountSid(t.account),c=this.extractLoginHint(t.account),c){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),o.addLoginHint(c);try{u=mn(t.account.homeAccountId),o.addCcsOid(u)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(s&&t.prompt===qe.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),o.addSid(s);try{u=mn(t.account.homeAccountId),o.addCcsOid(u)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(t.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),o.addLoginHint(t.loginHint),o.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),o.addLoginHint(t.account.username);try{u=mn(t.account.homeAccountId),o.addCcsOid(u)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else t.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),o.addLoginHint(t.loginHint),o.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return t.nonce&&o.addNonce(t.nonce),t.state&&o.addState(t.state),(!b.isEmpty(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.extraQueryParameters&&o.addExtraQueryParameters(t.extraQueryParameters),t.nativeBroker?(o.addNativeBroker(),t.authenticationScheme!==te.POP?[3,2]:(l=new Hn(this.cryptoUtils),[4,l.generateCnf(t)])):[3,2];case 1:d=h.sent(),o.addPopToken(d.reqCnfString),h.label=2;case 2:return[2,o.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(t){var n=new Bo;return t.postLogoutRedirectUri&&n.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&n.addCorrelationId(t.correlationId),t.idTokenHint&&n.addIdTokenHint(t.idTokenHint),t.state&&n.addState(t.state),t.logoutHint&&n.addLogoutHint(t.logoutHint),t.extraQueryParameters&&n.addExtraQueryParameters(t.extraQueryParameters),n.createQueryString()},e.prototype.extractAccountSid=function(t){var n;return((n=t.idTokenClaims)===null||n===void 0?void 0:n.sid)||null},e.prototype.extractLoginHint=function(t){var n;return((n=t.idTokenClaims)===null||n===void 0?void 0:n.login_hint)||null},e}(Bu);/*! @azure/msal-common v13.3.1 2023-10-27 */var hp=function(r){rt(e,r);function e(t,n){return r.call(this,t,n)||this}return e.prototype.acquireToken=function(t){var n,o,i,a,s,c,u;return z(this,void 0,void 0,function(){var l,d,h,m,y,E,g=this;return j(this,function(f){switch(f.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.RefreshTokenClientAcquireToken,t.correlationId),l=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(w.RefreshTokenClientAcquireToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",t.correlationId),d=gt.nowSeconds(),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(w.RefreshTokenClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(t,this.authority)];case 1:return h=f.sent(),m=(a=h.headers)===null||a===void 0?void 0:a[at.X_MS_HTTP_VERSION],l==null||l.addStaticFields({refreshTokenSize:((s=h.body.refresh_token)===null||s===void 0?void 0:s.length)||0}),m&&(l==null||l.addStaticFields({httpVerToken:m})),y=(c=h.headers)===null||c===void 0?void 0:c[at.X_MS_REQUEST_ID],E=new ba(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),E.validateTokenResponse(h.body),(u=this.performanceClient)===null||u===void 0||u.setPreQueueTime(w.HandleServerTokenResponse,t.correlationId),[2,E.handleServerTokenResponse(h.body,this.authority,d,t,void 0,void 0,!0,t.forceCache,y).then(function(p){return l==null||l.endMeasurement({success:!0}),p}).catch(function(p){throw g.logger.verbose("Error in fetching refresh token",t.correlationId),l==null||l.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),p})]}})})},e.prototype.acquireTokenByRefreshToken=function(t){var n,o,i,a;return z(this,void 0,void 0,function(){var s,c,u;return j(this,function(l){if(!t)throw ie.createEmptyTokenRequestError();if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),!t.account)throw M.createNoAccountInSilentRequestError();if(s=this.cacheManager.isAppMetadataFOCI(t.account.environment),s)try{return(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(w.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!0)]}catch(d){if(c=d instanceof ft&&d.errorCode===yn.noTokensFoundError.code,u=d instanceof Wr&&d.errorCode===Nd.INVALID_GRANT_ERROR&&d.subError===Nd.CLIENT_MISMATCH_ERROR,c||u)return(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(w.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)];throw d}return(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(w.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,n){var o,i,a;return z(this,void 0,void 0,function(){var s,c,u;return j(this,function(l){if((o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(w.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(w.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",t.correlationId),c=this.cacheManager.getRefreshToken(t.account,n),!c)throw s==null||s.discardMeasurement(),ft.createNoTokensFoundError();return s==null||s.endMeasurement({success:!0}),u=Z(Z({},t),{refreshToken:c.secret,authenticationScheme:t.authenticationScheme||te.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:ot.HOME_ACCOUNT_ID}}),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(w.RefreshTokenClientAcquireToken,t.correlationId),[2,this.acquireToken(u)]})})},e.prototype.executeTokenRequest=function(t,n){var o,i,a;return z(this,void 0,void 0,function(){var s,c,u,l,d,h;return j(this,function(m){switch(m.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(w.RefreshTokenClientExecuteTokenRequest,t.correlationId),s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(w.RefreshTokenClientExecuteTokenRequest,t.correlationId),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(w.RefreshTokenClientCreateTokenRequestBody,t.correlationId),c=this.createTokenQueryParameters(t),u=$.appendQueryString(n.tokenEndpoint,c),[4,this.createTokenRequestBody(t)];case 1:return l=m.sent(),d=this.createTokenRequestHeaders(t.ccsCredential),h={clientId:this.config.authOptions.clientId,authority:n.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(u,l,d,h).then(function(y){return s==null||s.endMeasurement({success:!0}),y}).catch(function(y){throw s==null||s.endMeasurement({success:!1}),y})]}})})},e.prototype.createTokenRequestBody=function(t){var n,o,i;return z(this,void 0,void 0,function(){var a,s,c,u,l,d,h;return j(this,function(m){switch(m.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.RefreshTokenClientCreateTokenRequestBody,t.correlationId),a=t.correlationId,s=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(w.BaseClientCreateTokenRequestHeaders,a),c=new Bo,c.addClientId(this.config.authOptions.clientId),c.addScopes(t.scopes),c.addGrantType(Sa.REFRESH_TOKEN_GRANT),c.addClientInfo(),c.addLibraryInfo(this.config.libraryInfo),c.addApplicationTelemetry(this.config.telemetry.application),c.addThrottling(),this.serverTelemetryManager&&c.addServerTelemetry(this.serverTelemetryManager),c.addCorrelationId(a),c.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&c.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(u=this.config.clientCredentials.clientAssertion,c.addClientAssertion(u.assertion),c.addClientAssertionType(u.assertionType)),t.authenticationScheme!==te.POP?[3,2]:(l=new Hn(this.cryptoUtils,this.performanceClient),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(w.PopTokenGenerateCnf,t.correlationId),[4,l.generateCnf(t)]);case 1:return d=m.sent(),c.addPopToken(d.reqCnfString),[3,3];case 2:if(t.authenticationScheme===te.SSH)if(t.sshJwk)c.addSshJwk(t.sshJwk);else throw s==null||s.endMeasurement({success:!1}),ie.createMissingSshJwkError();m.label=3;case 3:if((!b.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&c.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case ot.HOME_ACCOUNT_ID:try{h=mn(t.ccsCredential.credential),c.addCcsOid(h)}catch(y){this.logger.verbose("Could not parse home account ID for CCS Header: "+y)}break;case ot.UPN:c.addCcsUpn(t.ccsCredential.credential);break}return s==null||s.endMeasurement({success:!0}),[2,c.createQueryString()]}})})},e}(Bu);/*! @azure/msal-common v13.3.1 2023-10-27 */var Oy=function(r){rt(e,r);function e(t,n){return r.call(this,t,n)||this}return e.prototype.acquireToken=function(t){return z(this,void 0,void 0,function(){var n,o;return j(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.acquireCachedToken(t)];case 1:return[2,i.sent()];case 2:if(n=i.sent(),n instanceof M&&n.errorCode===A.tokenRefreshRequired.code)return o=new hp(this.config,this.performanceClient),[2,o.acquireTokenByRefreshToken(t)];throw n;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var n,o,i,a,s;return z(this,void 0,void 0,function(){var c,u;return j(this,function(l){switch(l.label){case 0:if(!t)throw ie.createEmptyTokenRequestError();if(t.forceRefresh)throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(ir.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),M.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!b.isEmptyObj(t.claims))throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(ir.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),M.createRefreshRequiredError();if(!t.account)throw M.createNoAccountInSilentRequestError();if(c=t.authority||this.authority.getPreferredCache(),u=this.cacheManager.readCacheRecord(t.account,t,c),u.accessToken){if(gt.wasClockTurnedBack(u.accessToken.cachedAt)||gt.isTokenExpired(u.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(ir.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),M.createRefreshRequiredError();if(u.accessToken.refreshOn&>.isTokenExpired(u.accessToken.refreshOn,0))throw(s=this.serverTelemetryManager)===null||s===void 0||s.setCacheOutcome(ir.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),M.createRefreshRequiredError()}else throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(ir.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),M.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(u,t)];case 1:return[2,l.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(t,n){return z(this,void 0,void 0,function(){var o,i;return j(this,function(a){switch(a.label){case 0:if(t.idToken&&(o=new Dt(t.idToken.secret,this.config.cryptoInterface)),n.maxAge||n.maxAge===0){if(i=o==null?void 0:o.claims.auth_time,!i)throw M.createAuthTimeNotFoundError();Dt.checkMaxAge(i,n.maxAge)}return[4,ba.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,n,o)];case 1:return[2,a.sent()]}})})},e}(Bu);/*! @azure/msal-common v13.3.1 2023-10-27 */function Uy(r){return r.hasOwnProperty("authorization_endpoint")&&r.hasOwnProperty("token_endpoint")&&r.hasOwnProperty("issuer")&&r.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v13.3.1 2023-10-27 */var fp={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},Pd=fp.endpointMetadata,Md=fp.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.1 2023-10-27 */var oi;(function(r){r.AAD="AAD",r.OIDC="OIDC"})(oi||(oi={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var Ac=function(){function r(){this.expiresAt=gt.nowSeconds()+xo.REFRESH_TIME_SECONDS}return r.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},r.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},r.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},r.prototype.resetExpiresAt=function(){this.expiresAt=gt.nowSeconds()+xo.REFRESH_TIME_SECONDS},r.prototype.isExpired=function(){return this.expiresAt<=gt.nowSeconds()},r.isAuthorityMetadataEntity=function(e,t){return t?e.indexOf(xo.CACHE_KEY)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"):!1},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */function Dy(r){return r.hasOwnProperty("tenant_discovery_endpoint")&&r.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.1 2023-10-27 */function Ly(r){return r.hasOwnProperty("error")&&r.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.1 2023-10-27 */var xy=function(){function r(e,t,n){this.networkInterface=e,this.performanceClient=t,this.correlationId=n}return r.prototype.detectRegion=function(e,t){var n,o,i,a;return z(this,void 0,void 0,function(){var s,c,u,l,d;return j(this,function(h){switch(h.label){case 0:if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.RegionDiscoveryDetectRegion,this.correlationId),s=e,s)return[3,8];c=r.IMDS_OPTIONS,h.label=1;case 1:return h.trys.push([1,6,,7]),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(w.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(v.IMDS_VERSION,c)];case 2:return u=h.sent(),u.status===gn.httpSuccess&&(s=u.body,t.region_source=tr.IMDS),u.status!==gn.httpBadRequest?[3,5]:((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(w.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(c)]);case 3:return l=h.sent(),l?((a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(w.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(l,c)]):(t.region_source=tr.FAILED_AUTO_DETECTION,[2,null]);case 4:d=h.sent(),d.status===gn.httpSuccess&&(s=d.body,t.region_source=tr.IMDS),h.label=5;case 5:return[3,7];case 6:return h.sent(),t.region_source=tr.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=tr.ENVIRONMENT_VARIABLE,h.label=9;case 9:return s||(t.region_source=tr.FAILED_AUTO_DETECTION),[2,s||null]}})})},r.prototype.getRegionFromIMDS=function(e,t){var n;return z(this,void 0,void 0,function(){return j(this,function(o){return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(v.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,v.IMDS_TIMEOUT)]})})},r.prototype.getCurrentVersion=function(e){var t;return z(this,void 0,void 0,function(){var n;return j(this,function(o){switch(o.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(w.RegionDiscoveryGetCurrentVersion,this.correlationId),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(v.IMDS_ENDPOINT+"?format=json",e)];case 2:return n=o.sent(),n.status===gn.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?[2,n.body["newest-versions"][0]]:[2,null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},r.IMDS_OPTIONS={headers:{Metadata:"true"}},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ii=function(){function r(e,t,n,o,i,a,s){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=o,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=a,this.correlationId=s,this.regionDiscovery=new xy(t,this.performanceClient,this.correlationId)}return r.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(v.CIAM_AUTH_URL))return je.Ciam;var t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case v.ADFS:return je.Adfs;case v.DSTS:return je.Dsts}return je.Default},Object.defineProperty(r.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new $(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw M.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw M.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw M.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw M.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw M.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw M.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw M.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),r.prototype.canReplaceTenant=function(e){return e.PathSegments.length===1&&!r.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===je.Default&&this.protocolMode===oi.AAD},r.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},r.prototype.replacePath=function(e){var t=this,n=e,o=new $(this.metadata.canonical_authority),i=o.getUrlComponents(),a=i.PathSegments,s=this.canonicalAuthorityUrlComponents.PathSegments;return s.forEach(function(c,u){var l=a[u];if(u===0&&t.canReplaceTenant(i)){var d=new $(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];l!==d&&(t.logger.verbose("Replacing tenant domain name "+l+" with id "+d),l=d)}c!==l&&(n=n.replace("/"+l+"/","/"+c+"/"))}),this.replaceTenant(n)},Object.defineProperty(r.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===je.Adfs||this.authorityType===je.Dsts||this.protocolMode===oi.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),r.prototype.discoveryComplete=function(){return!!this.metadata},r.prototype.resolveEndpointsAsync=function(){var e,t,n;return z(this,void 0,void 0,function(){var o,i,a,s;return j(this,function(c){switch(c.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(w.AuthorityResolveEndpointsAsync,this.correlationId),o=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),o||(o=new Ac,o.updateCanonicalAuthority(this.canonicalAuthority)),(t=this.performanceClient)===null||t===void 0||t.setPreQueueTime(w.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(o)];case 1:return i=c.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,o.preferred_network),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(w.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(o)];case 2:return a=c.sent(),i!==ut.CACHE&&a!==ut.CACHE&&(o.resetExpiresAt(),o.updateCanonicalAuthority(this.canonicalAuthority)),s=this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache),this.cacheManager.setAuthorityMetadata(s,o),this.metadata=o,[2]}})})},r.prototype.updateEndpointMetadata=function(e){var t,n,o,i,a,s;return z(this,void 0,void 0,function(){var c,u;return j(this,function(l){switch(l.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(w.AuthorityUpdateEndpointMetadata,this.correlationId),c=this.getEndpointMetadataFromConfig(),c?(e.updateEndpointMetadata(c,!1),[2,ut.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,ut.CACHE]:((n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(w.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return c=l.sent(),c?!((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0)&&o.azureRegion?((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(w.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(c)]):[3,3]:[3,4];case 2:c=l.sent(),l.label=3;case 3:return e.updateEndpointMetadata(c,!0),[2,ut.NETWORK];case 4:return u=this.getEndpointMetadataFromHardcodedValues(),u&&!this.authorityOptions.skipAuthorityMetadataCache?!((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0)&&a.azureRegion?((s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(w.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(u)]):[3,6]:[3,7];case 5:u=l.sent(),l.label=6;case 6:return e.updateEndpointMetadata(u,!1),[2,ut.HARDCODED_VALUES];case 7:throw M.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},r.prototype.isAuthoritySameType=function(e){var t=new $(e.canonical_authority),n=t.getUrlComponents().PathSegments;return n.length===this.canonicalAuthorityUrlComponents.PathSegments.length},r.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw ie.createInvalidAuthorityMetadataError()}return null},r.prototype.getEndpointMetadataFromNetwork=function(){var e;return z(this,void 0,void 0,function(){var t,n;return j(this,function(o){switch(o.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(w.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return n=o.sent(),[2,Uy(n.body)?n.body:null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},r.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in Pd?Pd[this.canonicalAuthority]:null},r.prototype.updateMetadataWithRegionalInformation=function(e){var t,n,o,i;return z(this,void 0,void 0,function(){var a,s;return j(this,function(c){switch(c.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(w.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),a=(n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0?void 0:n.azureRegion,a?a!==v.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=Fo.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=a,[2,r.replaceWithRegionalInformation(e,a)]):((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(w.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(s=c.sent(),s)return this.regionDiscoveryMetadata.region_outcome=Fo.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=s,[2,r.replaceWithRegionalInformation(e,s)];this.regionDiscoveryMetadata.region_outcome=Fo.AUTO_DETECTION_REQUESTED_FAILED,c.label=2;case 2:return[2,e]}})})},r.prototype.updateCloudDiscoveryMetadata=function(e){var t,n;return z(this,void 0,void 0,function(){var o,i,a;return j(this,function(s){switch(s.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(w.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||v.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||v.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||v.NOT_APPLICABLE)),o=this.getCloudDiscoveryMetadataFromConfig(),o?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(o,!1),[2,ut.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,ut.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(w.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(o=s.sent(),o)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(o,!0),[2,ut.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),a=this.getCloudDiscoveryMetadataFromHarcodedValues(),a&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(a,!1),[2,ut.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),ie.createUntrustedAuthorityError()}})})},r.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===je.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=r.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),ie.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},r.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var e;return z(this,void 0,void 0,function(){var t,n,o,i,a,s,c,u;return j(this,function(l){switch(l.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(w.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),t=""+v.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",n={},o=null,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,n)];case 2:if(i=l.sent(),a=void 0,s=void 0,Dy(i.body))a=i.body,s=a.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+a.tenant_discovery_endpoint);else if(Ly(i.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+i.status),a=i.body,a.error===v.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+a.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+a.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),s=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=r.getCloudDiscoveryMetadataFromNetworkResponse(s,this.hostnameAndPort),[3,4];case 3:return c=l.sent(),c instanceof H?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata. +Error: `+c.errorCode+` +Error Description: `+c.errorMessage):(u=c,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata. +Error: `+u.name+` +Error Description: `+u.message)),[2,null];case 4:return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,o]}})})},r.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Md?Md[this.canonicalAuthority]:null},r.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter(function(n){return $.getDomainFromUrl(n).toLowerCase()===e.hostnameAndPort});return t.length>0},r.generateAuthority=function(e,t){var n;if(t&&t.azureCloudInstance!==ni.None){var o=t.tenant?t.tenant:v.DEFAULT_COMMON_TENANT;n=t.azureCloudInstance+"/"+o+"/"}return n||e},r.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},r.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var n=0;n-1)return o}return null},r.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw M.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},r.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},r.isPublicCloudAuthority=function(e){return v.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},r.buildRegionalAuthorityString=function(e,t,n){var o=new $(e);o.validateAsUri();var i=o.getUrlComponents(),a=t+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=t+"."+v.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=$.constructAuthorityUriFromObject(Z(Z({},o.getUrlComponents()),{HostNameAndPort:a})).urlString;return n?s+"?"+n:s},r.replaceWithRegionalInformation=function(e,t){return e.authorization_endpoint=r.buildRegionalAuthorityString(e.authorization_endpoint,t),e.token_endpoint=r.buildRegionalAuthorityString(e.token_endpoint,t,v.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=r.buildRegionalAuthorityString(e.end_session_endpoint,t)),e},r.transformCIAMAuthority=function(e){var t=e.endsWith(v.FORWARD_SLASH)?e:""+e+v.FORWARD_SLASH,n=new $(e),o=n.getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(v.CIAM_AUTH_URL)){var i=o.HostNameAndPort.split(".")[0];t=""+t+i+v.AAD_TENANT_DOMAIN_SUFFIX}return t},r.reservedTenantDomains=new Set(["{tenant}","{tenantid}",Kr.COMMON,Kr.CONSUMERS,Kr.ORGANIZATIONS]),r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Pa=function(){function r(){}return r.createDiscoveredInstance=function(e,t,n,o,i,a,s){return z(this,void 0,void 0,function(){var c,u,l;return j(this,function(d){switch(d.label){case 0:a==null||a.addQueueMeasurement(w.AuthorityFactoryCreateDiscoveredInstance,s),c=ii.transformCIAMAuthority(e),u=r.createInstance(c,t,n,o,i,a,s),d.label=1;case 1:return d.trys.push([1,3,,4]),a==null||a.setPreQueueTime(w.AuthorityResolveEndpointsAsync,s),[4,u.resolveEndpointsAsync()];case 2:return d.sent(),[2,u];case 3:throw l=d.sent(),M.createEndpointDiscoveryIncompleteError(l);case 4:return[2]}})})},r.createInstance=function(e,t,n,o,i,a,s){if(b.isEmpty(e))throw ie.createUrlEmptyError();return new ii(e,t,n,o,i,a,s)},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Ma=function(){function r(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return r.isServerTelemetryEntity=function(e,t){var n=e.indexOf(ke.CACHE_KEY)===0,o=!0;return t&&(o=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&o},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Od=function(){function r(){}return r.isThrottlingEntity=function(e,t){var n=!1;e&&(n=e.indexOf(Ho.THROTTLING_PREFIX)===0);var o=!0;return t&&(o=t.hasOwnProperty("throttleTime")),n&&o},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Hy={sendGetRequestAsync:function(){var r="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(H.createUnexpectedError(r))},sendPostRequestAsync:function(){var r="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(H.createUnexpectedError(r))}};/*! @azure/msal-common v13.3.1 2023-10-27 */var Oi={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},Ud=function(r){rt(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,e.prototype),o}return e.createMissingKidError=function(){return new e(Oi.missingKidError.code,Oi.missingKidError.desc)},e.createMissingAlgError=function(){return new e(Oi.missingAlgError.code,Oi.missingAlgError.desc)},e}(H);/*! @azure/msal-common v13.3.1 2023-10-27 */var Fy=function(){function r(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return r.getShrHeaderString=function(e){if(!e.kid)throw Ud.createMissingKidError();if(!e.alg)throw Ud.createMissingAlgError();var t=new r({typ:e.typ||Tc.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)},r}();/*! @azure/msal-common v13.3.1 2023-10-27 */var By=function(){function r(e,t){this.cacheOutcome=ir.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||v.EMPTY_STRING,this.wrapperVer=e.wrapperVer||v.EMPTY_STRING,this.telemetryCacheKey=ke.CACHE_KEY+Ee.CACHE_KEY_SEPARATOR+e.clientId}return r.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+ke.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(ke.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),o=[e,n].join(ke.VALUE_SEPARATOR);return[ke.SCHEMA_VERSION,o,t].join(ke.CATEGORY_SEPARATOR)},r.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*t).join(ke.VALUE_SEPARATOR),o=e.errors.slice(0,t).join(ke.VALUE_SEPARATOR),i=e.errors.length,a=t=ke.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),b.isEmpty(e.subError)?b.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(ke.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},r.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},r.prototype.getLastRequests=function(){var e=new Ma,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},r.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),n=e.errors.length;if(t===n)this.cacheManager.removeItem(this.telemetryCacheKey);else{var o=new Ma;o.failedRequests=e.failedRequests.slice(t*2),o.errors=e.errors.slice(t),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o)}},r.maxErrorsToSend=function(e){var t,n=0,o=0,i=e.errors.length;for(t=0;t "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(I.blockTokenRequestsInHiddenIframeError.code,I.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(I.blockAcquireTokenInPopupsError.code,I.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(I.iframeClosedPrematurelyError.code,I.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(I.silentLogoutUnsupportedError.code,I.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(I.noAccountError.code,I.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(I.silentPromptValueError.code,I.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(I.unableToParseTokenRequestCacheError.code,I.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(I.noTokenRequestCacheError.code,I.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(I.authRequestNotSet.code,I.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(I.noCachedAuthorityError.code,I.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(I.invalidCacheType.code,""+I.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(I.notInBrowserEnvironment.code,I.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(I.databaseNotOpen.code,I.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(I.noNetworkConnectivity.code,I.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,n){return new e(I.postRequestFailed.code,I.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(t,n){return new e(I.getRequestFailed.code,I.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(I.failedToParseNetworkResponse.code,I.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(I.unableToLoadTokenError.code,I.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(I.signingKeyNotFoundInStorage.code,I.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(I.authCodeRequired.code,I.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(I.authCodeOrNativeAccountRequired.code,I.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(I.spaCodeAndNativeAccountPresent.code,I.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(I.databaseUnavailable.code,I.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(I.unableToAcquireTokenFromNativePlatform.code,I.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(I.nativeHandshakeTimeout.code,I.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(I.nativeExtensionNotInstalled.code,I.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(I.nativeConnectionNotEstablished.code,I.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(I.nativeBrokerCalledBeforeInitialize.code,I.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(I.nativePromptNotSupported.code,I.nativePromptNotSupported.desc)},e}(H);/*! @azure/msal-browser v2.38.3 2023-10-27 */var wt={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},Co={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Gt;(function(r){r.HandshakeRequest="Handshake",r.HandshakeResponse="HandshakeResponse",r.GetToken="GetToken",r.Response="Response"})(Gt||(Gt={}));var ve;(function(r){r.LocalStorage="localStorage",r.SessionStorage="sessionStorage",r.MemoryStorage="memoryStorage"})(ve||(ve={}));var Rt;(function(r){r.GET="GET",r.POST="POST"})(Rt||(Rt={}));var J;(function(r){r.AUTHORITY="authority",r.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",r.SESSION_STATE="session.state",r.REQUEST_STATE="request.state",r.NONCE_IDTOKEN="nonce.id_token",r.ORIGIN_URI="request.origin",r.RENEW_STATUS="token.renew.status",r.URL_HASH="urlHash",r.REQUEST_PARAMS="request.params",r.SCOPES="scopes",r.INTERACTION_STATUS_KEY="interaction.status",r.CCS_CREDENTIAL="ccs.credential",r.CORRELATION_ID="request.correlationId",r.NATIVE_REQUEST="request.native",r.REDIRECT_CONTEXT="request.redirect.context"})(J||(J={}));var At;(function(r){r.ACCOUNT_KEYS="msal.account.keys",r.TOKEN_KEYS="msal.token.keys"})(At||(At={}));var Cn;(function(r){r.WRAPPER_SKU="wrapper.sku",r.WRAPPER_VER="wrapper.version"})(Cn||(Cn={}));var oe;(function(r){r[r.acquireTokenRedirect=861]="acquireTokenRedirect",r[r.acquireTokenPopup=862]="acquireTokenPopup",r[r.ssoSilent=863]="ssoSilent",r[r.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",r[r.handleRedirectPromise=865]="handleRedirectPromise",r[r.acquireTokenByCode=866]="acquireTokenByCode",r[r.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",r[r.logout=961]="logout",r[r.logoutPopup=962]="logoutPopup"})(oe||(oe={}));var U;(function(r){r.Redirect="redirect",r.Popup="popup",r.Silent="silent",r.None="none"})(U||(U={}));var Ld;(function(r){r.Startup="startup",r.Login="login",r.Logout="logout",r.AcquireToken="acquireToken",r.SsoSilent="ssoSilent",r.HandleRedirect="handleRedirect",r.None="none"})(Ld||(Ld={}));var xd={scopes:pi},Fn="jwk",Hd;(function(r){r.React="@azure/msal-react",r.Angular="@azure/msal-angular"})(Hd||(Hd={}));var kc="msal.db",Ky=1,Gy=kc+".keys",Ze;(function(r){r[r.Default=0]="Default",r[r.AccessToken=1]="AccessToken",r[r.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",r[r.RefreshToken=3]="RefreshToken",r[r.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",r[r.Skip=5]="Skip"})(Ze||(Ze={}));/*! @azure/msal-browser v2.38.3 2023-10-27 */var We={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},Oa=function(r){Me(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(We.redirectUriNotSet.code,We.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(We.postLogoutUriNotSet.code,We.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(We.storageNotSupportedError.code,We.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(We.noRedirectCallbacksSet.code,We.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(We.stubPcaInstanceCalled.code,We.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(We.inMemRedirectUnavailable.code,We.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(We.entropyNotProvided.code,We.entropyNotProvided.desc)},e}(H);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Fd=function(){function r(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return r.prototype.validateWindowStorage=function(e){if(e!==ve.LocalStorage&&e!==ve.SessionStorage)throw Oa.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw Oa.createStorageNotSupportedError(e)},r.prototype.getItem=function(e){return this.windowStorage.getItem(e)},r.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},r.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},r.prototype.getKeys=function(){return Object.keys(this.windowStorage)},r.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Rc=function(){function r(){this.cache=new Map}return r.prototype.getItem=function(e){return this.cache.get(e)||null},r.prototype.setItem=function(e,t){this.cache.set(e,t)},r.prototype.removeItem=function(e){this.cache.delete(e)},r.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,n){e.push(n)}),e},r.prototype.containsKey=function(e){return this.cache.has(e)},r.prototype.clear=function(){this.cache.clear()},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var gp=function(){function r(){}return r.extractBrowserRequestState=function(e,t){if(b.isEmpty(t))return null;try{var n=Qt.parseRequestState(e,t);return n.libraryState.meta}catch(o){throw M.createInvalidStateError(t,o)}},r.parseServerResponseFromHash=function(e){if(!e)return{};var t=new $(e);return $.getDeserializedHash(t.getHash())},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Nc=function(r){Me(e,r);function e(t,n,o,i){var a=r.call(this,t,o,i)||this;return a.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,a.cacheConfig=n,a.logger=i,a.internalStorage=new Rc,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.temporaryCacheLocation,a.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(a.migrateCacheEntries(),a.createKeyMaps()),a}return e.prototype.setupBrowserStorage=function(t){switch(t){case ve.LocalStorage:case ve.SessionStorage:try{return new Fd(t)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=ve.MemoryStorage,new Rc},e.prototype.setupTemporaryCacheStorage=function(t,n){switch(n){case ve.LocalStorage:case ve.SessionStorage:try{return new Fd(t||ve.SessionStorage)}catch(o){return this.logger.verbose(o),this.internalStorage}case ve.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,n=v.CACHE_PREFIX+"."+ye.ID_TOKEN,o=v.CACHE_PREFIX+"."+ye.CLIENT_INFO,i=v.CACHE_PREFIX+"."+ye.ERROR,a=v.CACHE_PREFIX+"."+ye.ERROR_DESC,s=this.browserStorage.getItem(n),c=this.browserStorage.getItem(o),u=this.browserStorage.getItem(i),l=this.browserStorage.getItem(a),d=[s,c,u,l],h=[ye.ID_TOKEN,ye.CLIENT_INFO,ye.ERROR,ye.ERROR_DESC];h.forEach(function(m,y){return t.migrateCacheEntry(m,d[y])})},e.prototype.migrateCacheEntry=function(t,n){n&&this.setTemporaryCache(t,n,!0)},e.prototype.createKeyMaps=function(){var t=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var n=this.getItem(At.ACCOUNT_KEYS),o=this.getItem(At.TOKEN_KEYS+"."+this.clientId);if(n&&o){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var i=this.browserStorage.getKeys();i.forEach(function(a){if(t.isCredentialKey(a)){var s=t.getItem(a);if(s){var c=t.validateAndParseJson(s);if(c&&c.hasOwnProperty("credentialType"))switch(c.credentialType){case q.ID_TOKEN:if(Fr.isIdTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+a+" found, saving key to token key map");var u=$e.toObject(new Fr,c),l=t.updateCredentialCacheKey(a,u);t.addTokenKey(l,q.ID_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+a);break;case q.ACCESS_TOKEN:case q.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Br.isAccessTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+a+" found, saving key to token key map");var d=$e.toObject(new Br,c),l=t.updateCredentialCacheKey(a,d);t.addTokenKey(l,q.ACCESS_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+a);break;case q.REFRESH_TOKEN:if(vn.isRefreshTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+a+" found, saving key to token key map");var h=$e.toObject(new vn,c),l=t.updateCredentialCacheKey(a,h);t.addTokenKey(l,q.REFRESH_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+a);break}}}if(t.isAccountKey(a)){var s=t.getItem(a);if(s){var m=t.validateAndParseJson(s);m&&be.isAccountEntity(m)&&(t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+a+" found, saving key to account key map"),t.addAccountKeyToMap(a))}}})},e.prototype.validateAndParseJson=function(t){try{var n=JSON.parse(t);return n&&typeof n=="object"?n:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,n){this.browserStorage.setItem(t,n)},e.prototype.getAccount=function(t){this.logger.trace("BrowserCacheManager.getAccount called");var n=this.getItem(t);if(!n)return this.removeAccountKeyFromMap(t),null;var o=this.validateAndParseJson(n);return!o||!be.isAccountEntity(o)?(this.removeAccountKeyFromMap(t),null):$e.toObject(new be,o)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var n=t.generateAccountKey();this.setItem(n,JSON.stringify(t)),this.addAccountKeyToMap(n)},e.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var t=this.getItem(At.ACCOUNT_KEYS);return t?JSON.parse(t):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},e.prototype.addAccountKeyToMap=function(t){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+t);var n=this.getAccountKeys();n.indexOf(t)===-1?(n.push(t),this.setItem(At.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},e.prototype.removeAccountKeyFromMap=function(t){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+t);var n=this.getAccountKeys(),o=n.indexOf(t);o>-1?(n.splice(o,1),this.setItem(At.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},e.prototype.removeAccount=function(t){return T(this,void 0,void 0,function(){return S(this,function(n){return r.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]})})},e.prototype.removeIdToken=function(t){r.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,q.ID_TOKEN)},e.prototype.removeAccessToken=function(t){return T(this,void 0,void 0,function(){return S(this,function(n){return r.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,q.ACCESS_TOKEN),[2]})})},e.prototype.removeRefreshToken=function(t){r.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,q.REFRESH_TOKEN)},e.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var t=this.getItem(At.TOKEN_KEYS+"."+this.clientId);if(t){var n=this.validateAndParseJson(t);if(n&&n.hasOwnProperty("idToken")&&n.hasOwnProperty("accessToken")&&n.hasOwnProperty("refreshToken"))return n;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},e.prototype.addTokenKey=function(t,n){this.logger.trace("BrowserCacheManager addTokenKey called");var o=this.getTokenKeys();switch(n){case q.ID_TOKEN:o.idToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(t));break;case q.ACCESS_TOKEN:o.accessToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),o.accessToken.push(t));break;case q.REFRESH_TOKEN:o.refreshToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(t));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+n),M.createUnexpectedCredentialTypeError()}this.setItem(At.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.removeTokenKey=function(t,n){this.logger.trace("BrowserCacheManager removeTokenKey called");var o=this.getTokenKeys();switch(n){case q.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+t+" from map");var i=o.idToken.indexOf(t);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),o.idToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case q.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+t+" from map");var a=o.accessToken.indexOf(t);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case q.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+t+" from map");var s=o.refreshToken.indexOf(t);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+n),M.createUnexpectedCredentialTypeError()}this.setItem(At.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.getIdTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,q.ID_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!Fr.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,q.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),$e.toObject(new Fr,o))},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,q.ID_TOKEN)},e.prototype.getAccessTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,q.ACCESS_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!Br.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,q.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),$e.toObject(new Br,o))},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,q.ACCESS_TOKEN)},e.prototype.getRefreshTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,q.REFRESH_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!vn.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,q.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),$e.toObject(new vn,o))},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,q.REFRESH_TOKEN)},e.prototype.getAppMetadata=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Ic.isAppMetadataEntity(t,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),$e.toObject(new Ic,o))},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var n=t.generateAppMetadataKey();this.setItem(n,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Ma.isServerTelemetryEntity(t,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),$e.toObject(new Ma,o))},e.prototype.setServerTelemetry=function(t,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(n))},e.prototype.getAuthorityMetadata=function(t){var n=this.internalStorage.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return o&&Ac.isAuthorityMetadataEntity(t,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),$e.toObject(new Ac,o)):null},e.prototype.getAuthorityMetadataKeys=function(){var t=this,n=this.internalStorage.getKeys();return n.filter(function(o){return t.isAuthorityMetadata(o)})},e.prototype.setWrapperMetadata=function(t,n){this.internalStorage.setItem(Cn.WRAPPER_SKU,t),this.internalStorage.setItem(Cn.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var t=this.internalStorage.getItem(Cn.WRAPPER_SKU)||v.EMPTY_STRING,n=this.internalStorage.getItem(Cn.WRAPPER_VER)||v.EMPTY_STRING;return[t,n]},e.prototype.setAuthorityMetadata=function(t,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(n))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(ye.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(t);if(!n){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var o=this.generateCacheKey(ye.ACTIVE_ACCOUNT),i=this.getItem(o);if(!i)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:i})[0]||null;return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(n);return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(t){var n=this.generateCacheKey(ye.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(ye.ACTIVE_ACCOUNT);if(t){this.logger.verbose("setActiveAccount: Active account set");var i={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId};this.browserStorage.setItem(n,JSON.stringify(i)),this.browserStorage.setItem(o,t.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(n),this.browserStorage.removeItem(o)},e.prototype.getAccountInfoByFilter=function(t){var n=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+n.length+" accounts found"),n.filter(function(o){return!(t.username&&t.username.toLowerCase()!==o.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==o.homeAccountId||t.localAccountId&&t.localAccountId!==o.localAccountId||t.tenantId&&t.tenantId!==o.tenantId||t.environment&&t.environment!==o.environment)})},e.prototype.getAccountInfoByHints=function(t,n){var o=this.getAllAccounts().filter(function(i){if(n){var a=i.idTokenClaims&&i.idTokenClaims.sid;return n===a}return t?t===i.username:!1});if(o.length===1)return o[0];if(o.length>1)throw M.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Od.isThrottlingEntity(t,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),$e.toObject(new Od,o))},e.prototype.setThrottlingCache=function(t,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(n))},e.prototype.getTemporaryCache=function(t,n){var o=n?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var i=this.getItemCookie(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}var a=this.temporaryCacheStorage.getItem(o);if(!a){if(this.cacheConfig.cacheLocation===ve.LocalStorage){var s=this.browserStorage.getItem(o);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),s}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),a},e.prototype.setTemporaryCache=function(t,n,o){var i=o?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(i,n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(i,n))},e.prototype.removeItem=function(t){this.browserStorage.removeItem(t),this.temporaryCacheStorage.removeItem(t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(t))},e.prototype.containsKey=function(t){return this.browserStorage.containsKey(t)||this.temporaryCacheStorage.containsKey(t)},e.prototype.getKeys=function(){return xu(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return T(this,void 0,void 0,function(){var t=this;return S(this,function(n){switch(n.label){case 0:return[4,this.removeAllAccounts()];case 1:return n.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(o){(t.browserStorage.containsKey(o)||t.temporaryCacheStorage.containsKey(o))&&(o.indexOf(v.CACHE_PREFIX)!==-1||o.indexOf(t.clientId)!==-1)&&t.removeItem(o)}),this.internalStorage.clear(),[2]}})})},e.prototype.clearTokensAndKeysWithClaims=function(){return T(this,void 0,void 0,function(){var t,n,o=this;return S(this,function(i){switch(i.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),t=this.getTokenKeys(),n=[],t.accessToken.forEach(function(a){var s=o.getAccessTokenCredential(a);s!=null&&s.requestedClaimsHash&&a.includes(s.requestedClaimsHash.toLowerCase())&&n.push(o.removeAccessToken(a))}),[4,Promise.all(n)];case 1:return i.sent(),n.length>0&&this.logger.warning(n.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},e.prototype.setItemCookie=function(t,n,o){var i=encodeURIComponent(t)+"="+encodeURIComponent(n)+";path=/;SameSite=Lax;";if(o){var a=this.getCookieExpirationTime(o);i+="expires="+a+";"}this.cacheConfig.secureCookies&&(i+="Secure;"),document.cookie=i},e.prototype.getItemCookie=function(t){for(var n=encodeURIComponent(t)+"=",o=document.cookie.split(";"),i=0;i=300)&&(t===Rt.POST?a(N.createPostRequestFailedError("Failed with status "+s.status,e)):a(N.createGetRequestFailedError("Failed with status "+s.status,e)));try{var c=JSON.parse(s.responseText),u={headers:o.getHeaderDict(s),body:c,status:s.status};i(u)}catch{a(N.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?t===Rt.POST?a(N.createPostRequestFailedError("Failed with status "+s.status,e)):a(N.createGetRequestFailedError("Failed with status "+s.status,e)):a(N.createNoNetworkConnectivityError())},t===Rt.POST&&n&&n.body)s.send(n.body);else if(t===Rt.GET)s.send();else throw N.createHttpMethodNotImplementedError(t)})},r.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var n=t.headers;Object.keys(n).forEach(function(o){e.setRequestHeader(o,n[o])})}},r.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),n=t.trim().split(/[\r\n]+/),o={};return n.forEach(function(i){var a=i.split(": "),s=a.shift(),c=a.join(": ");s&&c&&(o[s]=c)}),o},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var fe=function(){function r(){}return r.clearHash=function(e){e.location.hash=v.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,v.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},r.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):v.EMPTY_STRING},r.isInIframe=function(){return window.parent!==window},r.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(wt.POPUP_NAME_PREFIX+".")===0},r.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},r.getHomepage=function(){var e=new $(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},r.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new jy:new Qy},r.blockReloadInHiddenIframes=function(){var e=$.hashContainsKnownProperties(window.location.hash);if(e&&r.isInIframe())throw N.createBlockReloadInHiddenIframeError()},r.blockRedirectInIframe=function(e,t){var n=r.isInIframe();if(e===U.Redirect&&n&&!t)throw N.createRedirectInIframeError(n)},r.blockAcquireTokenInPopups=function(){if(r.isInPopup())throw N.createBlockAcquireTokenInPopupsError()},r.blockNonBrowserEnvironment=function(e){if(!e)throw N.createNonBrowserEnvironmentError()},r.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw N.createNativeBrokerCalledBeforeInitialize()},r.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),o=e.indexOf("Edge/"),i=t>0||n>0,a=o>0;return i||a},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var mp=function(){function r(e,t,n,o,i,a,s,c,u){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=c,this.correlationId=u||this.browserCrypto.createNewGuid(),this.logger=o.clone(wt.MSAL_SKU,Ko,this.correlationId),this.performanceClient=s}return r.prototype.clearCacheOnLogout=function(e){return T(this,void 0,void 0,function(){return S(this,function(t){switch(t.label){case 0:if(!e)return[3,5];be.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(be.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},r.prototype.initializeBaseRequest=function(e,t){return T(this,void 0,void 0,function(){var n,o,i,a;return S(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(w.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),n=e.authority||this.config.auth.authority,t?[4,this.validateRequestAuthority(n,t)]:[3,2];case 1:s.sent(),s.label=2;case 2:if(o=xu(e&&e.scopes||[]),i=D(D({},e),{correlationId:this.correlationId,authority:n,scopes:o}),!i.authenticationScheme)i.authenticationScheme=te.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(i.authenticationScheme===te.SSH){if(!e.sshJwk)throw ie.createMissingSshJwkError();if(!e.sshKid)throw ie.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+i.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!b.isEmptyObj(e.claims)?(a=i,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:a.requestedClaimsHash=s.sent(),s.label=4;case 4:return[2,i]}})})},r.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||fe.getCurrentUri();return $.getAbsoluteUrl(t,fe.getCurrentUri())},r.prototype.validateRequestAuthority=function(e,t){return T(this,void 0,void 0,function(){var n;return S(this,function(o){switch(o.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(n=o.sent(),!n.isAlias(t.environment))throw ie.createAuthorityMismatchError();return[2]}})})},r.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new By(n,this.browserStorage)},r.prototype.getDiscoveredAuthority=function(e){return T(this,void 0,void 0,function(){var t;return S(this,function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,Pa.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,Pa.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,n.sent()]}})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Wn=function(r){Me(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(t){return T(this,void 0,void 0,function(){var n,o;return S(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(w.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),this.logger.verbose("initializeAuthorizationRequest called",t.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return n=i.sent(),o=D(D({},t),{redirectUri:t.redirectUri,code:v.EMPTY_STRING,codeVerifier:n.verifier}),t.codeChallenge=n.challenge,t.codeChallengeMethod=v.S256_CODE_CHALLENGE_METHOD,[2,o]}})})},e.prototype.initializeLogoutRequest=function(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);var n=D({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},t);if(t)if(t.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(t.account){var o=this.getLogoutHintFromIdTokenClaims(t.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),n.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!t||t.postLogoutRedirectUri!==null?t&&t.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",n.correlationId),n.postLogoutRedirectUri=$.getAbsoluteUrl(t.postLogoutRedirectUri,fe.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",n.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",n.correlationId),n.postLogoutRedirectUri=$.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,fe.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=$.getAbsoluteUrl(fe.getCurrentUri(),fe.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId),n},e.prototype.getLogoutHintFromIdTokenClaims=function(t){var n=t.idTokenClaims;if(n){if(n.login_hint)return n.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},e.prototype.createAuthCodeClient=function(t,n,o){return T(this,void 0,void 0,function(){var i;return S(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(w.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(w.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,o)];case 1:return i=a.sent(),[2,new dp(i,this.performanceClient)]}})})},e.prototype.getClientConfiguration=function(t,n,o){return T(this,void 0,void 0,function(){var i,a;return S(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(w.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(w.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(n,o)];case 1:return i=s.sent(),a=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:wt.MSAL_SKU,version:Ko,cpu:v.EMPTY_STRING,os:v.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(t,n,o){if(this.logger.verbose("validateAndExtractStateFromHash called",o),!t.state)throw N.createHashDoesNotContainStateError();var i=gp.extractBrowserRequestState(this.browserCrypto,t.state);if(!i)throw N.createUnableToParseStateError();if(i.interactionType!==n)throw N.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),t.state},e.prototype.getDiscoveredAuthority=function(t,n){var o;return T(this,void 0,void 0,function(){var i,a,s,c;return S(this,function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(w.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(w.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=t||this.config.auth.authority,c=ii.generateAuthority(s,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(w.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,Pa.createDiscoveredInstance(c,this.config.system.networkClient,this.browserStorage,a,this.logger,this.performanceClient,this.correlationId).then(function(l){return i.endMeasurement({success:!0}),l}).catch(function(l){throw i.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l})];case 1:return[2,u.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(t,n){return T(this,void 0,void 0,function(){var o,i,a,s,c,u,l;return S(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(w.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(t.redirectUri),i={interactionType:n},a=Qt.setRequestState(this.browserCrypto,t&&t.state||v.EMPTY_STRING,i),this.performanceClient.setPreQueueTime(w.InitializeBaseRequest,this.correlationId),c=[{}],[4,this.initializeBaseRequest(t)];case 1:return s=D.apply(void 0,[D.apply(void 0,c.concat([d.sent()])),{redirectUri:o,state:a,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:Ta.FRAGMENT}]),u=t.account||this.browserStorage.getActiveAccount(),u&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+u.homeAccountId,this.correlationId),s.account=u),b.isEmpty(s.loginHint)&&!u&&(l=this.browserStorage.getLegacyLoginHint(),l&&(s.loginHint=l)),[2,s]}})})},e}(mp);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ku=function(){function r(e,t,n,o,i){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=o,this.performanceClient=i}return r.prototype.handleCodeResponseFromHash=function(e,t,n,o){return T(this,void 0,void 0,function(){var i,a,s;return S(this,function(c){if(this.performanceClient.addQueueMeasurement(w.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),b.isEmpty(e))throw N.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(t),a=this.browserStorage.getTemporaryCache(i),!a)throw M.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(u){throw u instanceof Wr&&u.subError===I.userCancelledError.code?N.createUserCancelledError():u}return this.performanceClient.setPreQueueTime(w.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(s,t,n,o)]})})},r.prototype.handleCodeResponseFromServer=function(e,t,n,o,i){return i===void 0&&(i=!0),T(this,void 0,void 0,function(){var a,s,c,u,l,d;return S(this,function(h){switch(h.label){case 0:if(this.performanceClient.addQueueMeasurement(w.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(t),s=this.browserStorage.getTemporaryCache(a),!s)throw M.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),u=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(w.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,o)]):[3,2];case 1:h.sent(),h.label=2;case 2:return i&&(e.nonce=u||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(l=this.checkCcsCredentials(),l&&(this.authCodeRequest.ccsCredential=l)),this.performanceClient.setPreQueueTime(w.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return d=h.sent(),this.browserStorage.cleanRequestByState(t),[2,d]}})})},r.prototype.updateTokenEndpointAuthority=function(e,t,n){return T(this,void 0,void 0,function(){var o,i;return S(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(w.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),o="https://"+e+"/"+t.tenant+"/",[4,Pa.createDiscoveredInstance(o,n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return i=a.sent(),this.authModule.updateAuthority(i),[2]}})})},r.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(J.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Bd=function(r){Me(e,r);function e(t,n,o,i,a,s){var c=r.call(this,t,n,o,i,s)||this;return c.browserCrypto=a,c}return e.prototype.initiateAuthRequest=function(t,n){return T(this,void 0,void 0,function(){var o,i;return S(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),b.isEmpty(t)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(J.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(J.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),o={apiId:oe.acquireTokenRedirect,timeout:n.redirectTimeout,noHistory:!1},typeof n.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),i=n.onRedirectNavigate(t),i===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,n.navigationClient.navigateExternal(t,o)])));case 1:return a.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,n.navigationClient.navigateExternal(t,o)];case 5:return a.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),N.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,n,o,i){return T(this,void 0,void 0,function(){var a,s,c,u,l,d,h;return S(this,function(m){switch(m.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),b.isEmpty(t))throw N.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw M.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(t,s)}catch(y){throw y instanceof Wr&&y.subError===I.userCancelledError.code?N.createUserCancelledError():y}return u=this.browserStorage.generateNonceKey(s),l=this.browserStorage.getTemporaryCache(u),this.authCodeRequest.code=c.code,c.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(c.cloud_instance_host_name,o,i)]:[3,2];case 1:m.sent(),m.label=2;case 2:return c.nonce=l||void 0,c.state=s,c.client_info?this.authCodeRequest.clientInfo=c.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return h=m.sent(),this.browserStorage.cleanRequestByState(n),[2,h]}})})},e}(Ku);/*! @azure/msal-browser v2.38.3 2023-10-27 */var K;(function(r){r.INITIALIZE_START="msal:initializeStart",r.INITIALIZE_END="msal:initializeEnd",r.ACCOUNT_ADDED="msal:accountAdded",r.ACCOUNT_REMOVED="msal:accountRemoved",r.LOGIN_START="msal:loginStart",r.LOGIN_SUCCESS="msal:loginSuccess",r.LOGIN_FAILURE="msal:loginFailure",r.ACQUIRE_TOKEN_START="msal:acquireTokenStart",r.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",r.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",r.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",r.SSO_SILENT_START="msal:ssoSilentStart",r.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",r.SSO_SILENT_FAILURE="msal:ssoSilentFailure",r.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",r.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",r.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",r.HANDLE_REDIRECT_START="msal:handleRedirectStart",r.HANDLE_REDIRECT_END="msal:handleRedirectEnd",r.POPUP_OPENED="msal:popupOpened",r.LOGOUT_START="msal:logoutStart",r.LOGOUT_SUCCESS="msal:logoutSuccess",r.LOGOUT_FAILURE="msal:logoutFailure",r.LOGOUT_END="msal:logoutEnd",r.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(K||(K={}));/*! @azure/msal-browser v2.38.3 2023-10-27 */var rr;(function(r){r.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",r.USER_CANCEL="USER_CANCEL",r.NO_NETWORK="NO_NETWORK",r.TRANSIENT_ERROR="TRANSIENT_ERROR",r.PERSISTENT_ERROR="PERSISTENT_ERROR",r.DISABLED="DISABLED",r.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(rr||(rr={}));var ho={extensionError:{code:"ContentError"},userSwitch:{code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},tokensNotFoundInCache:{code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"}},Mt=function(r){Me(e,r);function e(t,n,o){var i=r.call(this,t,n)||this;return Object.setPrototypeOf(i,e.prototype),i.name="NativeAuthError",i.ext=o,i}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===rr.PERSISTENT_ERROR||this.ext.status===rr.DISABLED))return!0;switch(this.errorCode){case ho.extensionError.code:return!0;default:return!1}},e.createError=function(t,n,o){if(o&&o.status)switch(o.status){case rr.ACCOUNT_UNAVAILABLE:return ft.createNativeAccountUnavailableError();case rr.USER_INTERACTION_REQUIRED:return new ft(t,n);case rr.USER_CANCEL:return N.createUserCancelledError();case rr.NO_NETWORK:return N.createNoNetworkConnectivityError()}return new e(t,n,o)},e.createUserSwitchError=function(){return new e(ho.userSwitch.code,ho.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(ho.tokensNotFoundInCache.code,ho.tokensNotFoundInCache.desc)},e}(H);/*! @azure/msal-browser v2.38.3 2023-10-27 */var vp=function(r){Me(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s;return S(this,function(c){switch(c.label){case 0:return n=this.performanceClient.startMeasurement(w.SilentCacheClientAcquireToken,t.correlationId),o=this.initializeServerTelemetryManager(oe.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(o,t.authority,t.azureCloudOptions)];case 1:i=c.sent(),this.logger.verbose("Silent auth client created"),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,i.acquireCachedToken(t)];case 3:return a=c.sent(),n.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=c.sent(),s instanceof N&&s.errorCode===I.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n.endMeasurement({errorCode:s instanceof H&&s.errorCode||void 0,subErrorCode:s instanceof H&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,n,o){return T(this,void 0,void 0,function(){var i;return S(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(w.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,o)];case 1:return i=a.sent(),[2,new Oy(i,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,n){return T(this,void 0,void 0,function(){var o;return S(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(w.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(w.InitializeBaseRequest,this.correlationId),o=[D({},t)],[4,this.initializeBaseRequest(t,n)];case 1:return[2,D.apply(void 0,[D.apply(void 0,o.concat([i.sent()])),{account:n,forceRefresh:t.forceRefresh||!1}])]}})})},e}(Wn);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Pn=function(r){Me(e,r);function e(t,n,o,i,a,s,c,u,l,d,h,m){var y=r.call(this,t,n,o,i,a,s,u,l,m)||this;return y.apiId=c,y.accountId=d,y.nativeMessageHandler=l,y.nativeStorageManager=h,y.silentCacheClient=new vp(t,y.nativeStorageManager,o,i,a,s,u,l,m),y}return e.prototype.acquireToken=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,u;return S(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(w.NativeInteractionClientAcquireToken,t.correlationId),o=gt.nowSeconds(),[4,this.initializeNativeRequest(t)];case 1:i=l.sent(),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,i)];case 3:return a=l.sent(),n.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,a];case 4:return l.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:Gt.GetToken,request:i},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return c=l.sent(),u=this.validateNativeResponse(c),[2,this.handleNativeResponse(u,i,o).then(function(d){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw n.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},e.prototype.createSilentCacheRequest=function(t,n){return{authority:t.authority,correlationId:this.correlationId,scopes:He.fromString(t.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,n){return T(this,void 0,void 0,function(){var o,i,a,s;return S(this,function(c){switch(c.label){case 0:if(!t)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),M.createNoAccountFoundError();if(o=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t}),!o)throw M.createNoAccountFoundError();c.label=1;case 1:return c.trys.push([1,3,,4]),i=this.createSilentCacheRequest(n,o),[4,this.silentCacheClient.acquireToken(i)];case 2:return a=c.sent(),[2,a];case 3:throw s=c.sent(),s;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c;return S(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(t)];case 1:n=u.sent(),o={method:Gt.GetToken,request:n},u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(o)];case 3:return i=u.sent(),this.validateNativeResponse(i),[3,5];case 4:if(a=u.sent(),a instanceof Mt&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(J.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:oe.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},c=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri),[4,this.navigationClient.navigateExternal(c,s)];case 6:return u.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return T(this,void 0,void 0,function(){var t,n,o,i,a,s,c,u;return S(this,function(l){switch(l.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(t=this.browserStorage.getCachedNativeRequest(),!t)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];n=t.prompt,o=Ad(t,["prompt"]),n&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(J.NATIVE_REQUEST)),i={method:Gt.GetToken,request:o},a=gt.nowSeconds(),l.label=1;case 1:return l.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return s=l.sent(),this.validateNativeResponse(s),c=this.handleNativeResponse(s,o,a),this.browserStorage.setInteractionInProgress(!1),[2,c];case 3:throw u=l.sent(),this.browserStorage.setInteractionInProgress(!1),u;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(t,n,o){return T(this,void 0,void 0,function(){var i,a,s,c,u,l;return S(this,function(d){switch(d.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),t.account.id!==n.accountId)throw Mt.createUserSwitchError();return[4,this.getDiscoveredAuthority(n.authority)];case 1:return i=d.sent(),a=i.getPreferredCache(),s=this.createIdTokenObj(t),c=this.createHomeAccountIdentifier(t,s),u=this.createAccountEntity(t,c,s,a),[4,this.generateAuthenticationResult(t,n,s,u,i.canonicalAuthority,o)];case 2:return l=d.sent(),this.cacheAccount(u),this.cacheNativeTokens(t,n,c,u,s,l.accessToken,l.tenantId,o),[2,l]}})})},e.prototype.createIdTokenObj=function(t){return new Dt(t.id_token||v.EMPTY_STRING,this.browserCrypto)},e.prototype.createHomeAccountIdentifier=function(t,n){var o=be.generateHomeAccountId(t.client_info||v.EMPTY_STRING,je.Default,this.logger,this.browserCrypto,n);return o},e.prototype.createAccountEntity=function(t,n,o,i){return be.createAccount(t.client_info,n,o,void 0,void 0,void 0,i,t.account.id)},e.prototype.generateScopes=function(t,n){return t.scope?He.fromString(t.scope):He.fromString(n.scope)},e.prototype.generatePopAccessToken=function(t,n){return T(this,void 0,void 0,function(){var o,i;return S(this,function(a){switch(a.label){case 0:if(n.tokenType!==te.POP)return[3,2];if(t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,t.shr];if(o=new Hn(this.browserCrypto),i={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw M.createKeyIdMissingError();return[4,o.signPopToken(t.access_token,n.keyId,i)];case 1:return[2,a.sent()];case 2:return[2,t.access_token]}})})},e.prototype.generateAuthenticationResult=function(t,n,o,i,a,s){return T(this,void 0,void 0,function(){var c,u,l,d,h,m,y,E;return S(this,function(g){switch(g.label){case 0:return c=this.addTelemetryFromNativeResponse(t),u=t.scope?He.fromString(t.scope):He.fromString(n.scope),l=t.account.properties||{},d=l.UID||o.claims.oid||o.claims.sub||v.EMPTY_STRING,h=l.TenantId||o.claims.tid||v.EMPTY_STRING,[4,this.generatePopAccessToken(t,n)];case 1:return m=g.sent(),y=n.tokenType===te.POP?te.POP:te.BEARER,E={authority:a,uniqueId:d,tenantId:h,scopes:u.asArray(),account:i.getAccountInfo(),idToken:t.id_token,idTokenClaims:o.claims,accessToken:m,fromCache:c?this.isResponseFromCache(c):!1,expiresOn:new Date(Number(s+t.expires_in)*1e3),tokenType:y,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0},[2,E]}})})},e.prototype.cacheAccount=function(t){var n=this;this.browserStorage.setAccount(t),this.browserStorage.removeAccountContext(t).catch(function(o){n.logger.error("Error occurred while removing account context from browser storage. "+o)})},e.prototype.cacheNativeTokens=function(t,n,o,i,a,s,c,u){var l=Fr.createIdTokenEntity(o,n.authority,t.id_token||v.EMPTY_STRING,n.clientId,a.claims.tid||v.EMPTY_STRING),d=n.tokenType===te.POP?v.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,h=u+d,m=this.generateScopes(t,n),y=Br.createAccessTokenEntity(o,n.authority,s,n.clientId,a?a.claims.tid||v.EMPTY_STRING:c,m.printScopes(),h,0,this.browserCrypto),E=new qo(i,l,y);this.nativeStorageManager.saveCacheRecord(E)},e.prototype.addTelemetryFromNativeResponse=function(t){var n=this.getMATSFromResponse(t);return n?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:n.broker_version,matsAccountJoinOnStart:n.account_join_on_start,matsAccountJoinOnEnd:n.account_join_on_end,matsDeviceJoin:n.device_join,matsPromptBehavior:n.prompt_behavior,matsApiErrorCode:n.api_error_code,matsUiVisible:n.ui_visible,matsSilentCode:n.silent_code,matsSilentBiSubCode:n.silent_bi_sub_code,matsSilentMessage:n.silent_message,matsSilentStatus:n.silent_status,matsHttpStatus:n.http_status,matsHttpEventCount:n.http_event_count},this.correlationId),n):null},e.prototype.validateNativeResponse=function(t){if(t.hasOwnProperty("access_token")&&t.hasOwnProperty("id_token")&&t.hasOwnProperty("client_info")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scope")&&t.hasOwnProperty("expires_in"))return t;throw Mt.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(t){if(t.properties.MATS)try{return JSON.parse(t.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(t){return typeof t.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!t.is_cached},e.prototype.initializeNativeRequest=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,u,l,d,h,m=this;return S(this,function(y){switch(y.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=t.authority||this.config.auth.authority,t.account?[4,this.validateRequestAuthority(n,t.account)]:[3,2];case 1:y.sent(),y.label=2;case 2:return o=new $(n),o.validateAsUri(),i=t.scopes,a=Ad(t,["scopes"]),s=new He(i||[]),s.appendScopes(pi),c=function(){switch(m.apiId){case oe.ssoSilent:case oe.acquireTokenSilent_silentFlow:return m.logger.trace("initializeNativeRequest: silent request sets prompt to none"),qe.NONE}if(!t.prompt){m.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case qe.NONE:case qe.CONSENT:case qe.LOGIN:return m.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw m.logger.trace("initializeNativeRequest: prompt = "+t.prompt+" is not compatible with native flow"),N.createNativePromptParameterNotSupportedError()}},u=D(D({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:c(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:D(D(D({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:Co.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==te.POP?[3,4]:(l={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},d=new Hn(this.browserCrypto),[4,d.generateCnf(l)]);case 3:h=y.sent(),u.reqCnf=h.reqCnfString,u.keyId=h.kid,y.label=4;case 4:return[2,u]}})})},e}(mp);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Gr=function(){function r(e,t,n,o){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(w.NativeMessageHandlerHandshake)}return r.prototype.sendMessage=function(e){return T(this,void 0,void 0,function(){var t,n=this;return S(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:Co.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise(function(i,a){n.resolvers.set(t.responseId,{resolve:i,reject:a})})]})})},r.createProvider=function(e,t,n){return T(this,void 0,void 0,function(){var o,i;return S(this,function(a){switch(a.label){case 0:e.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),o=new r(e,t,n,Co.PREFERRED_EXTENSION_ID),[4,o.sendHandshakeRequest()];case 2:return a.sent(),[2,o];case 3:return a.sent(),i=new r(e,t,n),[4,i.sendHandshakeRequest()];case 4:return a.sent(),[2,i];case 5:return[2]}})})},r.prototype.sendHandshakeRequest=function(){return T(this,void 0,void 0,function(){var e,t=this;return S(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:Co.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Gt.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(o){t.onChannelMessage(o)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(o,i){t.handshakeResolvers.set(e.responseId,{resolve:o,reject:i}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),i(N.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},r.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(!(!t.channel||t.channel!==Co.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===Gt.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var n=this.handshakeResolvers.get(t.responseId);n&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),n.reject(N.createNativeExtensionNotInstalledError()))}}},r.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,n=this.resolvers.get(t.responseId),o=this.handshakeResolvers.get(t.responseId);try{var i=t.body.method;if(i===Gt.Response){if(!n)return;var a=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(a)),a.status!=="Success")n.reject(Mt.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(Mt.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw H.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(i===Gt.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),o.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(s):o&&o.reject(s)}},r.prototype.getExtensionId=function(){return this.extensionId},r.prototype.getExtensionVersion=function(){return this.extensionVersion},r.isNativeAvailable=function(e,t,n,o){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case te.BEARER:case te.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Yy=function(r){Me(e,r);function e(t,n,o,i,a,s,c,u,l,d){var h=r.call(this,t,n,o,i,a,s,c,l,d)||this;return h.nativeStorage=u,h}return e.prototype.acquireToken=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,u,l,d,h=this;return S(this,function(m){switch(m.label){case 0:return this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,U.Redirect)];case 1:n=m.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||v.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(oe.acquireTokenRedirect),i=function(y){y.persisted&&(h.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),h.browserStorage.cleanRequestByState(n.state),h.eventHandler.emitEvent(K.RESTORE_FROM_BFCACHE,U.Redirect))},m.label=2;case 2:return m.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=m.sent(),this.performanceClient.setPreQueueTime(w.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(o,n.authority,n.azureCloudOptions)];case 4:return s=m.sent(),this.logger.verbose("Auth code client created"),c=new Bd(s,this.browserStorage,a,this.logger,this.browserCrypto,this.performanceClient),[4,s.getAuthCodeUrl(D(D({},n),{nativeBroker:Gr.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 5:return u=m.sent(),l=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+l),window.addEventListener("pageshow",i),[4,c.initiateAuthRequest(u,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:l,onRedirectNavigate:t.onRedirectNavigate})];case 6:return[2,m.sent()];case 7:throw d=m.sent(),d instanceof H&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),o.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(n.state),d;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,u,l,d,h,m,y;return S(this,function(E){switch(E.label){case 0:n=this.initializeServerTelemetryManager(oe.handleRedirectPromise),E.label=1;case 1:if(E.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(o=this.getRedirectResponseHash(t||window.location.hash),!o)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(U.Redirect),[2,null];i=void 0;try{a=$.getDeserializedHash(o),i=this.validateAndExtractStateFromHash(a,U.Redirect),this.logger.verbose("State extracted from hash")}catch(g){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+g),this.browserStorage.cleanRequestByInteractionType(U.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(J.ORIGIN_URI,!0)||v.EMPTY_STRING,c=$.removeHashFromUrl(s),u=$.removeHashFromUrl(window.location.href),c===u&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(o,i,n)]):[3,3];case 2:return l=E.sent(),s.indexOf("#")>-1&&fe.replaceHash(s),[2,l];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(o,i,n)]);case 4:return!fe.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(J.URL_HASH,o,!0),d={apiId:oe.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,!s||s==="null"?(m=fe.getHomepage(),this.browserStorage.setTemporaryCache(J.ORIGIN_URI,m,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(m,d)]):[3,6]):[3,9];case 5:return h=E.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:h=E.sent(),E.label=8;case 8:if(!h)return[2,this.handleHash(o,i,n)];E.label=9;case 9:return[2,null];case 10:throw y=E.sent(),y instanceof H&&y.setCorrelationId(this.correlationId),n.cacheFailedRequest(y),this.browserStorage.cleanRequestByInteractionType(U.Redirect),y;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var n=$.hashContainsKnownProperties(t);if(n)return fe.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),t;var o=this.browserStorage.getTemporaryCache(J.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(J.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},e.prototype.handleHash=function(t,n,o){return T(this,void 0,void 0,function(){var i,a,s,c,u,l,d,h=this;return S(this,function(m){switch(m.label){case 0:if(i=this.browserStorage.getCachedRequest(n,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=$.getDeserializedHash(t),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw N.createNativeConnectionNotEstablishedError();return s=new Pn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.nativeStorage,i.correlationId),c=Qt.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken(D(D({},i),{state:c,prompt:void 0})).finally(function(){h.browserStorage.cleanRequestByState(n)})]}if(u=this.browserStorage.getCachedAuthority(n),!u)throw N.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(w.StandardInteractionClientCreateAuthCodeClient,i.correlationId),[4,this.createAuthCodeClient(o,u)];case 1:return l=m.sent(),this.logger.verbose("Auth code client created"),Ra.removeThrottle(this.browserStorage,this.config.auth.clientId,i),d=new Bd(l,this.browserStorage,i,this.logger,this.browserCrypto,this.performanceClient),[4,d.handleCodeResponseFromHash(t,n,l.authority,this.networkClient)];case 2:return[2,m.sent()]}})})},e.prototype.logout=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,u;return S(this,function(l){switch(l.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(t),o=this.initializeServerTelemetryManager(oe.logout),l.label=1;case 1:return l.trys.push([1,10,,11]),this.eventHandler.emitEvent(K.LOGOUT_START,U.Redirect,t),[4,this.clearCacheOnLogout(n.account)];case 2:return l.sent(),i={apiId:oe.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(w.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(o,t&&t.authority)];case 3:return a=l.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(n),this.eventHandler.emitEvent(K.LOGOUT_SUCCESS,U.Redirect,n),t&&typeof t.onRedirectNavigate=="function"?(c=t.onRedirectNavigate(s),c===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,i)])):[3,7];case 4:return l.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),l.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,i)];case 8:return l.sent(),[2];case 9:return[3,11];case 10:throw u=l.sent(),u instanceof H&&u.setCorrelationId(this.correlationId),o.cacheFailedRequest(u),this.eventHandler.emitEvent(K.LOGOUT_FAILURE,U.Redirect,null,u),this.eventHandler.emitEvent(K.LOGOUT_END,U.Redirect),u;case 11:return this.eventHandler.emitEvent(K.LOGOUT_END,U.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var n=t||window.location.href;return $.getAbsoluteUrl(n,fe.getCurrentUri())},e}(Wn);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Vy=function(r){Me(e,r);function e(t,n,o,i,a,s,c,u,l,d){var h=r.call(this,t,n,o,i,a,s,c,l,d)||this;return h.unloadWindow=h.unloadWindow.bind(h),h.nativeStorage=u,h}return e.prototype.acquireToken=function(t){try{var n=this.generatePopupName(t.scopes||pi,t.authority||this.config.auth.authority),o=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,n,o);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var i=this.openSizedPopup("about:blank",n,o);return this.acquireTokenPopupAsync(t,n,o,i)}catch(a){return Promise.reject(a)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var n=this.initializeLogoutRequest(t),o=this.generateLogoutPopupName(n),i=t&&t.authority,a=t&&t.mainWindowRedirectUri,s=(t==null?void 0:t.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(n,o,s,i,void 0,a);this.logger.verbose("asyncPopup set to false, opening popup");var c=this.openSizedPopup("about:blank",o,s);return this.logoutPopupAsync(n,o,s,i,c,a)}catch(u){return Promise.reject(u)}},e.prototype.acquireTokenPopupAsync=function(t,n,o,i){return T(this,void 0,void 0,function(){var a,s,c,u,l,d,h,m,y,E,g,f,p,C,_,L,k,F=this;return S(this,function(x){switch(x.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(oe.acquireTokenPopup),this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,U.Popup)];case 1:s=x.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||v.EMPTY_STRING,s.account||null),x.label=2;case 2:return x.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=x.sent(),this.performanceClient.setPreQueueTime(w.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return u=x.sent(),this.logger.verbose("Auth code client created"),l=Gr.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),d=void 0,l&&(d=this.performanceClient.startMeasurement(w.FetchAccountIdWithNativeBroker,t.correlationId)),[4,u.getAuthCodeUrl(D(D({},s),{nativeBroker:l}))];case 5:return h=x.sent(),m=new Ku(u,this.browserStorage,c,this.logger,this.performanceClient),y={popup:i,popupName:n,popupWindowAttributes:o},E=this.initiateAuthRequest(h,y),this.eventHandler.emitEvent(K.POPUP_OPENED,U.Popup,{popupWindow:E},null),[4,this.monitorPopupForHash(E)];case 6:if(g=x.sent(),f=$.getDeserializedHash(g),p=this.validateAndExtractStateFromHash(f,U.Popup,s.correlationId),Ra.removeThrottle(this.browserStorage,this.config.auth.clientId,c),f.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw N.createNativeConnectionNotEstablishedError();return C=new Pn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,f.accountId,this.nativeStorage,s.correlationId),_=Qt.parseRequestState(this.browserCrypto,p).userRequestState,[2,C.acquireToken(D(D({},s),{state:_,prompt:void 0})).finally(function(){F.browserStorage.cleanRequestByState(p)})]}return[4,m.handleCodeResponseFromHash(g,p,u.authority,this.networkClient)];case 7:return L=x.sent(),[2,L];case 8:throw k=x.sent(),i&&i.close(),k instanceof H&&k.setCorrelationId(this.correlationId),a.cacheFailedRequest(k),this.browserStorage.cleanRequestByState(s.state),k;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,n,o,i,a,s){return T(this,void 0,void 0,function(){var c,u,l,d,h,m,y;return S(this,function(E){switch(E.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(K.LOGOUT_START,U.Popup,t),c=this.initializeServerTelemetryManager(oe.logoutPopup),E.label=1;case 1:return E.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return E.sent(),this.performanceClient.setPreQueueTime(w.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(c,i)];case 3:return u=E.sent(),this.logger.verbose("Auth code client created"),l=u.getLogoutUri(t),this.eventHandler.emitEvent(K.LOGOUT_SUCCESS,U.Popup,t),d=this.openPopup(l,{popupName:n,popupWindowAttributes:o,popup:a}),this.eventHandler.emitEvent(K.POPUP_OPENED,U.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return E.sent(),s?(h={apiId:oe.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},m=$.getAbsoluteUrl(s,fe.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+m),this.navigationClient.navigateInternal(m,h)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw y=E.sent(),a&&a.close(),y instanceof H&&y.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(K.LOGOUT_FAILURE,U.Popup,null,y),this.eventHandler.emitEvent(K.LOGOUT_END,U.Popup),c.cacheFailedRequest(y),y;case 6:return this.eventHandler.emitEvent(K.LOGOUT_END,U.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,n){if(b.isEmpty(t))throw this.logger.error("Navigate url is empty"),N.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+t),this.openPopup(t,n)},e.prototype.monitorPopupForHash=function(t){var n=this;return new Promise(function(o,i){var a=n.config.system.windowHashTimeout/n.config.system.pollIntervalMilliseconds,s=0;n.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var c=setInterval(function(){if(t.closed){n.logger.error("PopupHandler.monitorPopupForHash - window closed"),n.cleanPopup(),clearInterval(c),i(N.createUserCancelledError());return}var u=v.EMPTY_STRING,l=v.EMPTY_STRING;try{u=t.location.href,l=t.location.hash}catch{}b.isEmpty(u)||u==="about:blank"||(n.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,l?(n.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(c),n.cleanPopup(t),$.hashContainsKnownProperties(l)?(n.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),o(l)):(n.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),n.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+l),i(N.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),i(N.createMonitorPopupTimeoutError())))},n.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(t){var n=this;return new Promise(function(o){n.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var i=setInterval(function(){t.closed&&(n.logger.error("PopupHandler.waitForLogoutPopup - window closed"),n.cleanPopup(),clearInterval(i),o());var a=v.EMPTY_STRING;try{a=t.location.href}catch{}b.isEmpty(a)||a==="about:blank"||(n.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(i),n.cleanPopup(t),o())},n.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(t,n){try{var o=void 0;if(n.popup?(o=n.popup,this.logger.verbosePii("Navigating popup window to: "+t),o.location.assign(t)):typeof n.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+t),o=this.openSizedPopup(t,n.popupName,n.popupWindowAttributes)),!o)throw N.createEmptyWindowCreatedError();return o.focus&&o.focus(),this.currentWindow=o,window.addEventListener("beforeunload",this.unloadWindow),o}catch(i){throw this.logger.error("error opening popup "+i.message),this.browserStorage.setInteractionInProgress(!1),N.createPopupWindowError(i.toString())}},e.prototype.openSizedPopup=function(t,n,o){var i,a,s,c,u=window.screenLeft?window.screenLeft:window.screenX,l=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,m=(i=o.popupSize)===null||i===void 0?void 0:i.width,y=(a=o.popupSize)===null||a===void 0?void 0:a.height,E=(s=o.popupPosition)===null||s===void 0?void 0:s.top,g=(c=o.popupPosition)===null||c===void 0?void 0:c.left;return(!m||m<0||m>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),m=wt.POPUP_WIDTH),(!y||y<0||y>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),y=wt.POPUP_HEIGHT),(!E||E<0||E>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),E=Math.max(0,h/2-wt.POPUP_HEIGHT/2+l)),(!g||g<0||g>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),g=Math.max(0,d/2-wt.POPUP_WIDTH/2+u)),window.open(t,n,"width="+m+", height="+y+", top="+E+", left="+g+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(U.Popup),this.currentWindow&&this.currentWindow.close(),t.preventDefault()},e.prototype.cleanPopup=function(t){t&&t.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(t,n){return wt.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t.join("-")+"."+n+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(t){var n=t.account&&t.account.homeAccountId;return wt.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}(Wn);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Wy=function(){function r(){}return r.prototype.navigateInternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.prototype.navigateExternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(n){setTimeout(function(){n(!0)},t.timeout)})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var $y=6e4,bc=6e3,Jy=3e4,Xy=2e3;function Zy(r,e){var t=r.auth,n=r.cache,o=r.system,i=r.telemetry,a={clientId:v.EMPTY_STRING,authority:""+v.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:v.EMPTY_STRING,authorityMetadata:v.EMPTY_STRING,redirectUri:v.EMPTY_STRING,postLogoutRedirectUri:v.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:oi.AAD,azureCloudOptions:{azureCloudInstance:ni.None,tenant:v.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:ve.SessionStorage,temporaryCacheLocation:ve.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(n&&n.cacheLocation===ve.LocalStorage),claimsBasedCachingEnabled:!0},c={loggerCallback:function(){},logLevel:Te.Info,piiLoggingEnabled:!1},u=D(D({},lp),{loggerOptions:c,networkClient:e?fe.getBrowserNetworkClient():Hy,navigationClient:new Wy,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||$y,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||bc,navigateFrameWait:e&&fe.detectIEOrEdge()?500:0,redirectNavigationTimeout:Jy,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||Xy,pollIntervalMilliseconds:wt.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),l=D(D({},o),{loggerOptions:(o==null?void 0:o.loggerOptions)||c}),d={application:{appName:v.EMPTY_STRING,appVersion:v.EMPTY_STRING}},h={auth:D(D({},a),t),cache:D(D({},s),n),system:D(D({},u),l),telemetry:D(D({},d),i)};return h}/*! @azure/msal-browser v2.38.3 2023-10-27 */var yp=function(r){Me(e,r);function e(t,n,o,i,a,s){var c=r.call(this,t,n,o,i,s)||this;return c.navigateFrameWait=a.navigateFrameWait,c.pollIntervalMilliseconds=a.pollIntervalMilliseconds,c}return e.prototype.initiateAuthRequest=function(t){return T(this,void 0,void 0,function(){return S(this,function(n){switch(n.label){case 0:if(this.performanceClient.addQueueMeasurement(w.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),b.isEmpty(t))throw this.logger.info("Navigate url is empty"),N.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(w.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(t)]):[3,2];case 1:return[2,n.sent()];case 2:return[2,this.loadFrameSync(t)]}})})},e.prototype.monitorIframeForHash=function(t,n){var o=this;return this.performanceClient.addQueueMeasurement(w.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(i,a){nc){o.removeHiddenIframe(t),clearInterval(u),a(N.createMonitorIframeTimeoutError());return}var l=v.EMPTY_STRING,d=t.contentWindow;try{l=d?d.location.href:v.EMPTY_STRING}catch{}if(!b.isEmpty(l)){var h=d?d.location.hash:v.EMPTY_STRING;if($.hashContainsKnownProperties(h)){o.removeHiddenIframe(t),clearInterval(u),i(h);return}}},o.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var n=this;return this.performanceClient.addQueueMeasurement(w.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(o,i){var a=n.createHiddenIframe();setTimeout(function(){if(!a){i("Unable to load iframe");return}a.src=t,o(a)},n.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var n=this.createHiddenIframe();return n.src=t,n},e.prototype.createHiddenIframe=function(){var t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(t),t},e.prototype.removeHiddenIframe=function(t){document.body===t.parentNode&&document.body.removeChild(t)},e}(Ku);/*! @azure/msal-browser v2.38.3 2023-10-27 */var eC=function(r){Me(e,r);function e(t,n,o,i,a,s,c,u,l,d,h){var m=r.call(this,t,n,o,i,a,s,u,d,h)||this;return m.apiId=c,m.nativeStorage=l,m}return e.prototype.acquireToken=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s;return S(this,function(c){switch(c.label){case 0:if(this.performanceClient.addQueueMeasurement(w.SilentIframeClientAcquireToken,t.correlationId),this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(w.SilentIframeClientAcquireToken,t.correlationId),b.isEmpty(t.loginHint)&&b.isEmpty(t.sid)&&(!t.account||b.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==qe.NONE&&t.prompt!==qe.NO_SESSION)throw n.endMeasurement({success:!1}),N.createSilentPromptValueError(t.prompt);return this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(D(D({},t),{prompt:t.prompt||qe.NONE}),U.Silent)];case 1:o=c.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||v.EMPTY_STRING,o.account||null),i=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(w.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(i,o.authority,o.azureCloudOptions)];case 3:return a=c.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(w.SilentIframeClientTokenHelper,t.correlationId),[4,this.silentTokenHelper(a,o).then(function(u){return n.endMeasurement({success:!0,fromCache:!1,requestId:u.requestId}),u})];case 4:return[2,c.sent()];case 5:throw s=c.sent(),s instanceof H&&s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(o.state),n.endMeasurement({errorCode:s instanceof H&&s.errorCode||void 0,subErrorCode:s instanceof H&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,n){return T(this,void 0,void 0,function(){var o,i,a,s,c,u,l,d,h,m=this;return S(this,function(y){switch(y.label){case 0:return this.performanceClient.addQueueMeasurement(w.SilentIframeClientTokenHelper,n.correlationId),this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 1:return o=y.sent(),this.performanceClient.setPreQueueTime(w.GetAuthCodeUrl,n.correlationId),[4,t.getAuthCodeUrl(D(D({},n),{nativeBroker:Gr.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return i=y.sent(),a=new yp(t,this.browserStorage,o,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(w.SilentHandlerInitiateAuthRequest,n.correlationId),[4,a.initiateAuthRequest(i)];case 3:return s=y.sent(),this.performanceClient.setPreQueueTime(w.SilentHandlerMonitorIframeForHash,n.correlationId),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=y.sent(),u=$.getDeserializedHash(c),l=this.validateAndExtractStateFromHash(u,U.Silent,o.correlationId),u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw N.createNativeConnectionNotEstablishedError();return d=new Pn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,u.accountId,this.browserStorage,this.correlationId),h=Qt.parseRequestState(this.browserCrypto,l).userRequestState,[2,d.acquireToken(D(D({},n),{state:h,prompt:n.prompt||qe.NONE})).finally(function(){m.browserStorage.cleanRequestByState(l)})]}return this.performanceClient.setPreQueueTime(w.HandleCodeResponseFromHash,n.correlationId),[2,a.handleCodeResponseFromHash(c,l,t.authority,this.networkClient)]}})})},e}(Wn);/*! @azure/msal-browser v2.38.3 2023-10-27 */var tC=function(r){Me(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c=this;return S(this,function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(w.SilentRefreshClientAcquireToken,t.correlationId),this.performanceClient.setPreQueueTime(w.InitializeBaseRequest,t.correlationId),o=[D({},t)],[4,this.initializeBaseRequest(t,t.account)];case 1:return n=D.apply(void 0,o.concat([u.sent()])),i=this.performanceClient.startMeasurement(w.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(oe.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,n.authority,n.azureCloudOptions)];case 2:return s=u.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(w.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),[2,s.acquireTokenByRefreshToken(n).then(function(l){return i.endMeasurement({success:!0,fromCache:l.fromCache,requestId:l.requestId}),l}).catch(function(l){throw l instanceof H&&l.setCorrelationId(c.correlationId),a.cacheFailedRequest(l),i.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l})]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,n,o){return T(this,void 0,void 0,function(){var i;return S(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(w.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,o)];case 1:return i=a.sent(),[2,new hp(i,this.performanceClient)]}})})},e}(Wn);/*! @azure/msal-browser v2.38.3 2023-10-27 */var rC=function(){function r(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return r.prototype.addEventCallback=function(e){if(typeof window<"u"){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},r.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},r.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},r.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},r.prototype.emitEvent=function(e,t,n,o){var i=this;if(typeof window<"u"){var a={eventType:e,interactionType:t||null,payload:n||null,error:o||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(s,c){i.logger.verbose("Emitting event to callback "+c+": "+e),s.apply(null,[a])})}},r.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var n=JSON.parse(t);if(typeof n!="object"||!be.isAccountEntity(n))return;var o=$e.toObject(new be,n),i=o.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(K.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(K.ACCOUNT_REMOVED,void 0,i))}catch{return}},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ue=function(){function r(){}return r.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Cp=function(){function r(e){this.cryptoObj=e}return r.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,Ue.decimalToHex(e[0])+Ue.decimalToHex(e[1])+Ue.decimalToHex(e[2])+Ue.decimalToHex(e[3])+"-"+Ue.decimalToHex(e[4])+Ue.decimalToHex(e[5])+"-"+Ue.decimalToHex(e[6])+Ue.decimalToHex(e[7])+"-"+Ue.decimalToHex(e[8])+Ue.decimalToHex(e[9])+"-"+Ue.decimalToHex(e[10])+Ue.decimalToHex(e[11])+Ue.decimalToHex(e[12])+Ue.decimalToHex(e[13])+Ue.decimalToHex(e[14])+Ue.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",o=0,i=v.EMPTY_STRING,a=0;a<36;a++)t[a]!=="-"&&t[a]!=="4"&&(o=Math.random()*16|0),t[a]==="x"?i+=n[o]:t[a]==="y"?(o&=3,o|=8,i+=n[o]):i+=t[a];return i}},r.prototype.isGuid=function(e){var t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return t.test(e)},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Yt=function(){function r(){}return r.stringToUtf8Arr=function(e){for(var t,n=0,o=e.length,i=0;i>>6),a[s++]=128+(t&63)):t<65536?(a[s++]=224+(t>>>12),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):t<2097152?(a[s++]=240+(t>>>18),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):t<67108864?(a[s++]=248+(t>>>24),a[s++]=128+(t>>>18&63),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):(a[s++]=252+(t>>>30),a[s++]=128+(t>>>24&63),a[s++]=128+(t>>>18&63),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63));return a},r.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),o=0;o251&&n<254&&i+5247&&n<252&&i+4239&&n<248&&i+3223&&n<240&&i+2191&&n<224&&i+1>>o&24),(o===2||e.length-s===1)&&(n+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(a&63)),a=0);return t===0?n:n.substring(0,n.length-t)+(t===1?"=":"==")},r.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var nC=function(){function r(){}return r.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(t);return Yt.utf8ArrToString(n)},r.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,v.EMPTY_STRING),o=n.length,i=t?Math.ceil((o*3+1>>>2)/t)*t:o*3+1>>>2,a=new Uint8Array(i),s=void 0,c=void 0,u=0,l=0,d=0;d>>(16>>>s&24)&255;u=0}return a},r.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var oC=32,iC=function(){function r(e){this.base64Encode=new Ep,this.cryptoObj=e}return r.prototype.generateCodes=function(){return T(this,void 0,void 0,function(){var e,t;return S(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=n.sent(),[2,{verifier:e,challenge:t}]}})})},r.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(oC);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(n){throw N.createPkceNotGeneratedError(n)}},r.prototype.generateCodeChallengeFromVerifier=function(e){return T(this,void 0,void 0,function(){var t,n;return S(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=o.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw n=o.sent(),N.createPkceNotGeneratedError(n);case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var aC=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,window.crypto.subtle.generateKey(e,t,n)]})})},r.prototype.exportKey=function(e){return T(this,void 0,void 0,function(){return S(this,function(t){return[2,window.crypto.subtle.exportKey(Fn,e)]})})},r.prototype.importKey=function(e,t,n,o){return T(this,void 0,void 0,function(){return S(this,function(i){return[2,window.crypto.subtle.importKey(Fn,e,t,n,o)]})})},r.prototype.sign=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,window.crypto.subtle.sign(e,t,n)]})})},r.prototype.digest=function(e,t){return T(this,void 0,void 0,function(){return S(this,function(n){return[2,window.crypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var sC=function(){function r(){}return r.prototype.initPrng=function(e){return window.msrCrypto.initPrng(xu(e))},r.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]})})},r.prototype.exportKey=function(e){return T(this,void 0,void 0,function(){return S(this,function(t){return[2,window.msrCrypto.subtle.exportKey(Fn,e)]})})},r.prototype.importKey=function(e,t,n,o){return T(this,void 0,void 0,function(){return S(this,function(i){return[2,window.msrCrypto.subtle.importKey(Fn,e,t,n,o)]})})},r.prototype.sign=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,window.msrCrypto.subtle.sign(e,t,n)]})})},r.prototype.digest=function(e,t){return T(this,void 0,void 0,function(){return S(this,function(n){return[2,window.msrCrypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var cC=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.generateKey(e,t,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},r.prototype.exportKey=function(e){return T(this,void 0,void 0,function(){return S(this,function(t){return[2,new Promise(function(n,o){var i=window.msCrypto.subtle.exportKey(Fn,e);i.addEventListener("complete",function(a){var s=a.target.result,c=Yt.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,v.EMPTY_STRING).replace(/\n/g,v.EMPTY_STRING).replace(/\t/g,v.EMPTY_STRING).split(" ").join(v.EMPTY_STRING).replace("\0",v.EMPTY_STRING);try{n(JSON.parse(c))}catch(u){o(u)}}),i.addEventListener("error",function(a){o(a)})})]})})},r.prototype.importKey=function(e,t,n,o){return T(this,void 0,void 0,function(){var i,a;return S(this,function(s){return i=Yt.getSortedObjectString(e),a=Yt.stringToArrayBuffer(i),[2,new Promise(function(c,u){var l=window.msCrypto.subtle.importKey(Fn,a,t,n,o);l.addEventListener("complete",function(d){c(d.target.result)}),l.addEventListener("error",function(d){u(d)})})]})})},r.prototype.sign=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.sign(e,t,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},r.prototype.digest=function(e,t){return T(this,void 0,void 0,function(){return S(this,function(n){return[2,new Promise(function(o,i){var a=window.msCrypto.subtle.digest(e,t.buffer);a.addEventListener("complete",function(s){o(s.target.result)}),a.addEventListener("error",function(s){i(s)})})]})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var uC="RSASSA-PKCS1-v1_5",qd="SHA-256",lC=2048,dC=new Uint8Array([1,0,1]),_p=function(){function r(e,t){var n,o;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new aC;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new cC;else if(this.hasMsrCrypto()&&(!((n=this.cryptoOptions)===null||n===void 0)&&n.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new sC;else throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),N.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((o=this.cryptoOptions)===null||o===void 0)&&o.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),Oa.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:uC,hash:qd,modulusLength:lC,publicExponent:dC}}return r.prototype.hasIECrypto=function(){return"msCrypto"in window},r.prototype.hasBrowserCrypto=function(){return"crypto"in window},r.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},r.prototype.sha256Digest=function(e){return T(this,void 0,void 0,function(){var t;return S(this,function(n){return t=Yt.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:qd},t)]})})},r.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},r.prototype.generateKeyPair=function(e,t){return T(this,void 0,void 0,function(){return S(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},r.prototype.exportJwk=function(e){return T(this,void 0,void 0,function(){return S(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},r.prototype.importJwk=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]})})},r.prototype.sign=function(e,t){return T(this,void 0,void 0,function(){return S(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var hC=function(){function r(){this.dbName=kc,this.version=Ky,this.tableName=Gy,this.dbOpen=!1}return r.prototype.open=function(){return T(this,void 0,void 0,function(){var e=this;return S(this,function(t){return[2,new Promise(function(n,o){var i=window.indexedDB.open(e.dbName,e.version);i.addEventListener("upgradeneeded",function(a){var s=a;s.target.result.createObjectStore(e.tableName)}),i.addEventListener("success",function(a){var s=a;e.db=s.target.result,e.dbOpen=!0,n()}),i.addEventListener("error",function(){return o(N.createDatabaseUnavailableError())})})]})})},r.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},r.prototype.validateDbIsOpen=function(){return T(this,void 0,void 0,function(){return S(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},r.prototype.getItem=function(e){return T(this,void 0,void 0,function(){var t=this;return S(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!t.db)return i(N.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly"),s=a.objectStore(t.tableName),c=s.get(e);c.addEventListener("success",function(u){var l=u;t.closeConnection(),o(l.target.result)}),c.addEventListener("error",function(u){t.closeConnection(),i(u)})})]}})})},r.prototype.setItem=function(e,t){return T(this,void 0,void 0,function(){var n=this;return S(this,function(o){switch(o.label){case 0:return[4,this.validateDbIsOpen()];case 1:return o.sent(),[2,new Promise(function(i,a){if(!n.db)return a(N.createDatabaseNotOpenError());var s=n.db.transaction([n.tableName],"readwrite"),c=s.objectStore(n.tableName),u=c.put(t,e);u.addEventListener("success",function(){n.closeConnection(),i()}),u.addEventListener("error",function(l){n.closeConnection(),a(l)})})]}})})},r.prototype.removeItem=function(e){return T(this,void 0,void 0,function(){var t=this;return S(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!t.db)return i(N.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readwrite"),s=a.objectStore(t.tableName),c=s.delete(e);c.addEventListener("success",function(){t.closeConnection(),o()}),c.addEventListener("error",function(u){t.closeConnection(),i(u)})})]}})})},r.prototype.getKeys=function(){return T(this,void 0,void 0,function(){var e=this;return S(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(n,o){if(!e.db)return o(N.createDatabaseNotOpenError());var i=e.db.transaction([e.tableName],"readonly"),a=i.objectStore(e.tableName),s=a.getAllKeys();s.addEventListener("success",function(c){var u=c;e.closeConnection(),n(u.target.result)}),s.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},r.prototype.containsKey=function(e){return T(this,void 0,void 0,function(){var t=this;return S(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!t.db)return i(N.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly"),s=a.objectStore(t.tableName),c=s.count(e);c.addEventListener("success",function(u){var l=u;t.closeConnection(),o(l.target.result===1)}),c.addEventListener("error",function(u){t.closeConnection(),i(u)})})]}})})},r.prototype.deleteDatabase=function(){return T(this,void 0,void 0,function(){return S(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,n){var o=window.indexedDB.deleteDatabase(kc);o.addEventListener("success",function(){return t(!0)}),o.addEventListener("blocked",function(){return t(!0)}),o.addEventListener("error",function(){return n(!1)})})]})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Kd=function(){function r(e,t){this.inMemoryCache=new Rc,this.indexedDBCache=new hC,this.logger=e,this.storeName=t}return r.prototype.handleDatabaseAccessError=function(e){if(e instanceof N&&e.errorCode===I.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e},r.prototype.getItem=function(e){return T(this,void 0,void 0,function(){var t,n;return S(this,function(o){switch(o.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},r.prototype.setItem=function(e,t){return T(this,void 0,void 0,function(){var n;return S(this,function(o){switch(o.label){case 0:this.inMemoryCache.setItem(e,t),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},r.prototype.removeItem=function(e){return T(this,void 0,void 0,function(){var t;return S(this,function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},r.prototype.getKeys=function(){return T(this,void 0,void 0,function(){var e,t;return S(this,function(n){switch(n.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},r.prototype.containsKey=function(e){return T(this,void 0,void 0,function(){var t,n;return S(this,function(o){switch(o.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},r.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},r.prototype.clearPersistent=function(){return T(this,void 0,void 0,function(){var e,t;return S(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=n.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=n.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ua;(function(r){r.asymmetricKeys="asymmetricKeys",r.symmetricKeys="symmetricKeys"})(Ua||(Ua={}));var fC=function(){function r(e){this.logger=e,this.asymmetricKeys=new Kd(this.logger,Ua.asymmetricKeys),this.symmetricKeys=new Kd(this.logger,Ua.symmetricKeys)}return r.prototype.clear=function(){return T(this,void 0,void 0,function(){var e;return S(this,function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return t.sent(),[2,!0];case 3:return e=t.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var pC=function(){function r(e,t,n){this.logger=e,this.browserCrypto=new _p(this.logger,n),this.b64Encode=new Ep,this.b64Decode=new nC,this.guidGenerator=new Cp(this.browserCrypto),this.pkceGenerator=new iC(this.browserCrypto),this.cache=new fC(this.logger),this.performanceClient=t}return r.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},r.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},r.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},r.prototype.generatePkceCodes=function(){return T(this,void 0,void 0,function(){return S(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},r.prototype.getPublicKeyThumbprint=function(e){var t;return T(this,void 0,void 0,function(){var n,o,i,a,s,c,u,l;return S(this,function(d){switch(d.label){case 0:return n=(t=this.performanceClient)===null||t===void 0?void 0:t.startMeasurement(w.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(r.EXTRACTABLE,r.POP_KEY_USAGES)];case 1:return o=d.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=d.sent(),a={e:i.e,kty:i.kty,n:i.n},s=Yt.getSortedObjectString(a),[4,this.hashString(s)];case 3:return c=d.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return u=d.sent(),[4,this.browserCrypto.importJwk(u,!1,["sign"])];case 5:return l=d.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:l,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return d.sent(),n&&n.endMeasurement({success:!0}),[2,c]}})})},r.prototype.removeTokenBindingKey=function(e){return T(this,void 0,void 0,function(){var t;return S(this,function(n){switch(n.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return n.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=n.sent(),[2,!t]}})})},r.prototype.clearKeystore=function(){return T(this,void 0,void 0,function(){return S(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},r.prototype.signJwt=function(e,t,n){var o;return T(this,void 0,void 0,function(){var i,a,s,c,u,l,d,h,m,y,E,g,f;return S(this,function(p){switch(p.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(w.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(a=p.sent(),!a)throw N.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=p.sent(),c=Yt.getSortedObjectString(s),u=this.b64Encode.urlEncode(JSON.stringify({kid:t})),l=Fy.getShrHeaderString({kid:u,alg:s.alg}),d=this.b64Encode.urlEncode(l),e.cnf={jwk:JSON.parse(c)},h=this.b64Encode.urlEncode(JSON.stringify(e)),m=d+"."+h,y=Yt.stringToArrayBuffer(m),[4,this.browserCrypto.sign(a.privateKey,y)];case 3:return E=p.sent(),g=this.b64Encode.urlEncodeArr(new Uint8Array(E)),f=m+"."+g,i&&i.endMeasurement({success:!0}),[2,f]}})})},r.prototype.hashString=function(e){return T(this,void 0,void 0,function(){var t,n;return S(this,function(o){switch(o.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=o.sent(),n=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(n)]}})})},r.POP_KEY_USAGES=["sign","verify"],r.EXTRACTABLE=!0,r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Gd=function(){function r(e,t){this.correlationId=t,this.measureName=r.makeMeasureName(e,t),this.startMark=r.makeStartMark(e,t),this.endMark=r.makeEndMark(e,t)}return r.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},r.makeStartMark=function(e,t){return"msal.start."+e+"."+t},r.makeEndMark=function(e,t){return"msal.end."+e+"."+t},r.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},r.flushMeasurements=function(e,t){if(r.supportsBrowserPerformance())try{t.forEach(function(n){var o=r.makeMeasureName(n.name,e),i=window.performance.getEntriesByName(o,"measure");i.length>0&&(window.performance.clearMeasures(o),window.performance.clearMarks(r.makeStartMark(o,e)),window.performance.clearMarks(r.makeEndMark(o,e)))})}catch{}},r.prototype.startMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},r.prototype.endMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},r.prototype.flushMeasurement=function(){if(r.supportsBrowserPerformance())try{var e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){var t=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),t}}catch{}return null},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var gC=function(r){Me(e,r);function e(t,n,o,i,a,s,c){var u=r.call(this,t,n,o,i,a,s)||this;return u.browserCrypto=new _p(u.logger,c),u.guidGenerator=new Cp(u.browserCrypto),u}return e.prototype.startPerformanceMeasuremeant=function(t,n){return new Gd(t,n)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var t;return((t=document.visibilityState)===null||t===void 0?void 0:t.toString())||null},e.prototype.deleteIncompleteSubMeasurements=function(t){var n=this.eventsByCorrelationId.get(t.event.correlationId),o=n&&n.eventId===t.event.eventId,i=[];o&&(n!=null&&n.incompleteSubMeasurements)&&n.incompleteSubMeasurements.forEach(function(a){i.push(D({},a))}),i.length>0&&Gd.flushMeasurements(t.event.correlationId,i)},e.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},e.prototype.startMeasurement=function(t,n){var o=this,i=this.getPageVisibility(),a=r.prototype.startMeasurement.call(this,t,n);return D(D({},a),{endMeasurement:function(s){var c=a.endMeasurement(D({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},s));return o.deleteIncompleteSubMeasurements(a),c},discardMeasurement:function(){a.discardMeasurement(),o.deleteIncompleteSubMeasurements(a),a.measurement.flushMeasurement()}})},e.prototype.setPreQueueTime=function(t,n){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+t);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to set telemetry queue time");return}var o=this.preQueueTimeByCorrelationId.get(n);o&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+o.name+" found",n),this.addQueueMeasurement(o.name,n,void 0,!0)),this.preQueueTimeByCorrelationId.set(n,{name:t,time:window.performance.now()})},e.prototype.addQueueMeasurement=function(t,n,o,i){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");return}var a=r.prototype.getPreQueueTime.call(this,t,n);if(a){var s=window.performance.now(),c=o||r.prototype.calculateQueuedTime.call(this,a,s);return r.prototype.addQueueMeasurement.call(this,t,n,c,i)}},e}(pp);/*! @azure/msal-browser v2.38.3 2023-10-27 */var mC=function(){function r(e,t,n,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=n,this.cryptoObj=o}return r.prototype.loadExternalTokens=function(e,t,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw N.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new Dt(t.id_token,this.cryptoObj),i,a;if(e.account){var s=this.loadAccount(o,e.account.environment,void 0,void 0,e.account.homeAccountId);i=new qo(s,this.loadIdToken(o,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,s.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,t,s.homeAccountId,e.account.environment))}else if(e.authority){var c=ii.generateAuthority(e.authority,e.azureCloudOptions),u={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new ii(c,this.config.system.networkClient,this.storage,u,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(o,a.hostnameAndPort,n.clientInfo,a.authorityType);i=new qo(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,t,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,a.hostnameAndPort))}else if(t.client_info){this.logger.trace("TokenCache - homeAccountId from response");var s=this.loadAccount(o,a.hostnameAndPort,t.client_info,a.authorityType);i=new qo(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,t,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,a.hostnameAndPort))}else throw N.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw N.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,o,i,a)},r.prototype.loadAccount=function(e,t,n,o,i){var a;if(i?a=i:o!==void 0&&n&&(a=be.generateHomeAccountId(n,o,this.logger,this.cryptoObj,e)),!a)throw N.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?be.createAccount(n,a,e,void 0,void 0,void 0,t):be.createGenericAccount(a,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadIdToken=function(e,t,n,o){var i=Fr.createIdTokenEntity(t,n,e.rawToken,this.config.auth.clientId,o);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadAccessToken=function(e,t,n,o,i,a){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw N.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw N.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new He(e.scopes).printScopes(),c=a.expiresOn||t.expires_in+new Date().getTime()/1e3,u=a.extendedExpiresOn,l=Br.createAccessTokenEntity(n,o,t.access_token,this.config.auth.clientId,i,s,c,u,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(l),l;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadRefreshToken=function(e,t,n,o){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var i=vn.createRefreshTokenEntity(n,o,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.generateAuthenticationResult=function(e,t,n,o){var i,a,s,c=v.EMPTY_STRING,u=[],l=null,d;n!=null&&n.accessToken&&(c=n.accessToken.secret,u=He.fromString(n.accessToken.target).asArray(),l=new Date(Number(n.accessToken.expiresOn)*1e3),d=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var h=(t==null?void 0:t.claims.oid)||(t==null?void 0:t.claims.sub)||v.EMPTY_STRING,m=(t==null?void 0:t.claims.tid)||v.EMPTY_STRING;return{authority:o?o.canonicalAuthority:v.EMPTY_STRING,uniqueId:h,tenantId:m,scopes:u,account:n!=null&&n.account?n.account.getAccountInfo():null,idToken:t?t.rawToken:v.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:l,correlationId:e.correlationId||v.EMPTY_STRING,requestId:v.EMPTY_STRING,extExpiresOn:d,familyId:v.EMPTY_STRING,tokenType:((i=n==null?void 0:n.accessToken)===null||i===void 0?void 0:i.tokenType)||v.EMPTY_STRING,state:v.EMPTY_STRING,cloudGraphHostName:((a=n==null?void 0:n.account)===null||a===void 0?void 0:a.cloudGraphHostName)||v.EMPTY_STRING,msGraphHost:((s=n==null?void 0:n.account)===null||s===void 0?void 0:s.msGraphHost)||v.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var vC=function(r){Me(e,r);function e(t){var n=r.call(this,t)||this;return n.includeRedirectUri=!1,n}return e}(dp);/*! @azure/msal-browser v2.38.3 2023-10-27 */var yC=function(r){Me(e,r);function e(t,n,o,i,a,s,c,u,l,d){var h=r.call(this,t,n,o,i,a,s,u,l,d)||this;return h.apiId=c,h}return e.prototype.acquireToken=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,u;return S(this,function(l){switch(l.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!t.code)throw N.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,U.Silent)];case 1:n=l.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||v.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,4,,5]),i=D(D({},n),{code:t.code}),this.performanceClient.setPreQueueTime(w.StandardInteractionClientGetClientConfiguration,t.correlationId),[4,this.getClientConfiguration(o,n.authority)];case 3:return a=l.sent(),s=new vC(a),this.logger.verbose("Auth code client created"),c=new yp(s,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),[2,c.handleCodeResponseFromServer({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},n.state,s.authority,this.networkClient,!1)];case 4:throw u=l.sent(),u instanceof H&&u.setCorrelationId(this.correlationId),o.cacheFailedRequest(u),this.browserStorage.cleanRequestByState(n.state),u;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e}(Wn);/*! @azure/msal-browser v2.38.3 2023-10-27 */var CC=function(){function r(e){this.isBrowserEnvironment=typeof window<"u",this.config=Zy(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Hu(this.config.system.loggerOptions,Rs,Ko),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new gC(this.config.auth.clientId,this.config.auth.authority,this.logger,Rs,Ko,this.config.telemetry.application,this.config.system.cryptoOptions):new qy(this.config.auth.clientId,this.config.auth.authority,this.logger,Rs,Ko,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new pC(this.logger,this.performanceClient,this.config.system.cryptoOptions):Aa,this.eventHandler=new rC(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Nc(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):zy(this.config.auth.clientId,this.logger);var t={cacheLocation:ve.MemoryStorage,temporaryCacheLocation:ve.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new Nc(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new mC(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return r.prototype.initialize=function(){return T(this,void 0,void 0,function(){var e,t,n,o,i;return S(this,function(a){switch(a.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(w.InitializeClientApplication),this.eventHandler.emitEvent(K.INITIALIZE_START),!e)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),n=this,[4,Gr.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=a.sent(),[3,4];case 3:return o=a.sent(),this.logger.verbose(o),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),i=this.performanceClient.startMeasurement(w.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:a.sent(),i.endMeasurement({success:!0}),a.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(K.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},r.prototype.handleRedirectPromise=function(e){return T(this,void 0,void 0,function(){var t,n,o,i,a,s,c,u,l=this;return S(this,function(d){return this.logger.verbose("handleRedirectPromise called"),fe.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||v.EMPTY_STRING,o=this.redirectResponse.get(n),typeof o>"u"?(this.eventHandler.emitEvent(K.HANDLE_REDIRECT_START,U.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),a=void 0,i&&Gr.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new Pn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId),a=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),c=this.browserStorage.getTemporaryCache(J.CORRELATION_ID,!0)||v.EMPTY_STRING,u=this.createRedirectClient(c),a=u.handleRedirectPromise(e)),o=a.then(function(h){if(h){var m=t.length0?l.eventHandler.emitEvent(K.ACQUIRE_TOKEN_FAILURE,U.Redirect,null,h):l.eventHandler.emitEvent(K.LOGIN_FAILURE,U.Redirect,null,h),l.eventHandler.emitEvent(K.HANDLE_REDIRECT_END,U.Redirect),h}),this.redirectResponse.set(n,o)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,o]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},r.prototype.acquireTokenRedirect=function(e){return T(this,void 0,void 0,function(){var t,n,o,i,a,s=this;return S(this,function(c){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(U.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(K.ACQUIRE_TOKEN_START,U.Redirect,e):this.eventHandler.emitEvent(K.LOGIN_START,U.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new Pn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),o=i.acquireTokenRedirect(e).catch(function(u){if(u instanceof Mt&&u.isFatal()){s.nativeExtensionProvider=void 0;var l=s.createRedirectClient(e.correlationId);return l.acquireToken(e)}else if(u instanceof ft){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var l=s.createRedirectClient(e.correlationId);return l.acquireToken(e)}throw s.browserStorage.setInteractionInProgress(!1),u})):(a=this.createRedirectClient(e.correlationId),o=a.acquireToken(e)),[2,o.catch(function(u){throw n?s.eventHandler.emitEvent(K.ACQUIRE_TOKEN_FAILURE,U.Redirect,null,u):s.eventHandler.emitEvent(K.LOGIN_FAILURE,U.Redirect,null,u),u})]})})},r.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(w.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(U.Popup)}catch(c){return Promise.reject(c)}var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(K.ACQUIRE_TOKEN_START,U.Popup,e):this.eventHandler.emitEvent(K.LOGIN_START,U.Popup,e);var a;if(this.canUseNative(e))a=this.acquireTokenNative(e,oe.acquireTokenPopup).then(function(c){return t.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,requestId:c.requestId}),c}).catch(function(c){if(c instanceof Mt&&c.isFatal()){t.nativeExtensionProvider=void 0;var u=t.createPopupClient(e.correlationId);return u.acquireToken(e)}else if(c instanceof ft){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var u=t.createPopupClient(e.correlationId);return u.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),c});else{var s=this.createPopupClient(e.correlationId);a=s.acquireToken(e)}return a.then(function(c){var u=i.length0?t.eventHandler.emitEvent(K.ACQUIRE_TOKEN_FAILURE,U.Popup,null,c):t.eventHandler.emitEvent(K.LOGIN_FAILURE,U.Popup,null,c),o.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),Promise.reject(c)})},r.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},r.prototype.ssoSilent=function(e){var t;return T(this,void 0,void 0,function(){var n,o,i,a,s=this;return S(this,function(c){return n=this.getRequestCorrelationId(e),o=D(D({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(U.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(w.SsoSilent,n),(t=this.ssoSilentMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(K.SSO_SILENT_START,U.Silent,o),this.canUseNative(o)?i=this.acquireTokenNative(o,oe.ssoSilent).catch(function(u){if(u instanceof Mt&&u.isFatal()){s.nativeExtensionProvider=void 0;var l=s.createSilentIframeClient(o.correlationId);return l.acquireToken(o)}throw u}):(a=this.createSilentIframeClient(o.correlationId),i=a.acquireToken(o)),[2,i.then(function(u){var l,d;return s.eventHandler.emitEvent(K.SSO_SILENT_SUCCESS,U.Silent,u),(l=s.ssoSilentMeasurement)===null||l===void 0||l.addStaticFields({accessTokenSize:u.accessToken.length,idTokenSize:u.idToken.length}),(d=s.ssoSilentMeasurement)===null||d===void 0||d.endMeasurement({success:!0,isNativeBroker:u.fromNativeBroker,requestId:u.requestId}),u}).catch(function(u){var l;throw s.eventHandler.emitEvent(K.SSO_SILENT_FAILURE,U.Silent,null,u),(l=s.ssoSilentMeasurement)===null||l===void 0||l.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u}).finally(function(){document.removeEventListener("visibilitychange",s.trackPageVisibilityWithMeasurement)})]})})},r.prototype.acquireTokenByCode=function(e){return T(this,void 0,void 0,function(){var t,n,o,i,a=this;return S(this,function(s){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(U.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(K.ACQUIRE_TOKEN_BY_CODE_START,U.Silent,e),n=this.performanceClient.startMeasurement(w.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw N.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return o=e.code,i=this.hybridAuthCodeResponses.get(o),i?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),i=this.acquireTokenByCodeAsync(D(D({},e),{correlationId:t})).then(function(c){return a.eventHandler.emitEvent(K.ACQUIRE_TOKEN_BY_CODE_SUCCESS,U.Silent,c),a.hybridAuthCodeResponses.delete(o),n.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),c}).catch(function(c){throw a.hybridAuthCodeResponses.delete(o),a.eventHandler.emitEvent(K.ACQUIRE_TOKEN_BY_CODE_FAILURE,U.Silent,null,c),n.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c}),this.hybridAuthCodeResponses.set(o,i)),[2,i];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,oe.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof Mt&&c.isFatal()&&(a.nativeExtensionProvider=void 0),c})];throw N.createUnableToAcquireTokenFromNativePlatformError()}else throw N.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(K.ACQUIRE_TOKEN_BY_CODE_FAILURE,U.Silent,null,c),n.endMeasurement({errorCode:c instanceof H&&c.errorCode||void 0,subErrorCode:c instanceof H&&c.subError||void 0,success:!1}),c}return[2]})})},r.prototype.acquireTokenByCodeAsync=function(e){var t;return T(this,void 0,void 0,function(){var n,o,i=this;return S(this,function(a){switch(a.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(w.AcquireTokenByCodeAsync,e.correlationId),(t=this.acquireTokenByCodeAsyncMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),n=this.createSilentAuthCodeClient(e.correlationId),[4,n.acquireToken(e).then(function(s){var c;return(c=i.acquireTokenByCodeAsyncMeasurement)===null||c===void 0||c.endMeasurement({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromNativeBroker,requestId:s.requestId}),s}).catch(function(s){var c;throw(c=i.acquireTokenByCodeAsyncMeasurement)===null||c===void 0||c.endMeasurement({errorCode:s.errorCode,subErrorCode:s.subError,success:!1}),s}).finally(function(){document.removeEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement)})];case 1:return o=a.sent(),[2,o]}})})},r.prototype.acquireTokenFromCache=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){switch(this.performanceClient.addQueueMeasurement(w.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case Ze.Default:case Ze.AccessToken:case Ze.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw M.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenByRefreshToken=function(e,t){return T(this,void 0,void 0,function(){var n;return S(this,function(o){switch(this.performanceClient.addQueueMeasurement(w.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case Ze.Default:case Ze.AccessTokenAndRefreshToken:case Ze.RefreshToken:case Ze.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(w.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw M.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenBySilentIframe=function(e){return T(this,void 0,void 0,function(){var t;return S(this,function(n){return this.performanceClient.addQueueMeasurement(w.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(w.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},r.prototype.logout=function(e){return T(this,void 0,void 0,function(){var t;return S(this,function(n){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect(D({correlationId:t},e))]})})},r.prototype.logoutRedirect=function(e){return T(this,void 0,void 0,function(){var t,n;return S(this,function(o){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(U.Redirect),n=this.createRedirectClient(t),[2,n.logout(e)]})})},r.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(U.Popup);var n=this.createPopupClient(t);return n.logout(e)}catch(o){return Promise.reject(o)}},r.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},r.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},r.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},r.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},r.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},r.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},r.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(t===void 0&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),fe.blockNonBrowserEnvironment(this.isBrowserEnvironment),fe.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),fe.blockReloadInHiddenIframes(),fe.blockAcquireTokenInPopups(),fe.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===U.Redirect&&this.config.cache.cacheLocation===ve.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Oa.createInMemoryRedirectUnavailableError();(e===U.Redirect||e===U.Popup)&&this.preflightInteractiveRequest(t)},r.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),fe.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},r.prototype.acquireTokenNative=function(e,t,n){return T(this,void 0,void 0,function(){var o;return S(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw N.createNativeConnectionNotEstablishedError();return o=new Pn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,o.acquireToken(e)]})})},r.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!Gr.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case qe.NONE:case qe.CONSENT:case qe.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!t&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},r.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},r.prototype.createPopupClient=function(e){return new Vy(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createRedirectClient=function(e){return new Yy(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentIframeClient=function(e){return new eC(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentCacheClient=function(e){return new vp(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentRefreshClient=function(e){return new tC(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentAuthCodeClient=function(e){return new yC(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},r.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},r.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},r.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},r.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},r.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},r.prototype.getTokenCache=function(){return this.tokenCache},r.prototype.getLogger=function(){return this.logger},r.prototype.setLogger=function(e){this.logger=e},r.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},r.prototype.setNavigationClient=function(e){this.navigationClient=e},r.prototype.getConfiguration=function(){return this.config},r.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():v.EMPTY_STRING},r}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var EC=function(r){Me(e,r);function e(t){var n=r.call(this,t)||this;return n.astsAsyncMeasurement=void 0,n.activeSilentTokenRequests=new Map,n.trackPageVisibility=n.trackPageVisibility.bind(n),n}return e.prototype.loginRedirect=function(t){return T(this,void 0,void 0,function(){var n;return S(this,function(o){return n=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect(D({correlationId:n},t||xd))]})})},e.prototype.loginPopup=function(t){var n=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup(D({correlationId:n},t||xd))},e.prototype.acquireTokenSilent=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,u,l=this;return S(this,function(d){if(n=this.getRequestCorrelationId(t),o=this.performanceClient.startMeasurement(w.AcquireTokenSilent,n),o.addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(U.Silent),this.logger.verbose("acquireTokenSilent called",n),i=t.account||this.getActiveAccount(),!i)throw N.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:t.authority||v.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:i.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},s=JSON.stringify(a),c=this.activeSilentTokenRequests.get(s),typeof c>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",n),this.performanceClient.setPreQueueTime(w.AcquireTokenSilentAsync,n),u=this.acquireTokenSilentAsync(D(D({},t),{correlationId:n}),i).then(function(h){return l.activeSilentTokenRequests.delete(s),o.addStaticFields({accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length}),o.endMeasurement({success:!0,fromCache:h.fromCache,isNativeBroker:h.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,requestId:h.requestId}),h}).catch(function(h){throw l.activeSilentTokenRequests.delete(s),o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h}),this.activeSilentTokenRequests.set(s,u),[2,u]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",n),o.discardMeasurement(),[2,c])})})},e.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},e.prototype.acquireTokenSilentAsync=function(t,n){var o;return T(this,void 0,void 0,function(){var i,a,s,c,u,l=this;return S(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(w.AcquireTokenSilentAsync,t.correlationId),this.eventHandler.emitEvent(K.ACQUIRE_TOKEN_START,U.Silent,t),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(w.AcquireTokenSilentAsync,t.correlationId),(o=this.astsAsyncMeasurement)===null||o===void 0||o.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),Gr.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=D(D({},t),{account:n}),i=this.acquireTokenNative(a,oe.acquireTokenSilent_silentFlow).catch(function(h){return T(l,void 0,void 0,function(){var m;return S(this,function(y){if(h instanceof Mt&&h.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,m=this.createSilentIframeClient(t.correlationId),[2,m.acquireToken(t)];throw h})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(t.correlationId),this.performanceClient.setPreQueueTime(w.InitializeSilentRequest,t.correlationId),[4,s.initializeSilentRequest(t,n)];case 2:c=d.sent(),u=D(D({},t),{cacheLookupPolicy:t.cacheLookupPolicy||Ze.Default}),this.performanceClient.setPreQueueTime(w.AcquireTokenFromCache,c.correlationId),i=this.acquireTokenFromCache(s,c,u).catch(function(h){if(u.cacheLookupPolicy===Ze.AccessToken)throw h;return fe.blockReloadInHiddenIframes(),l.eventHandler.emitEvent(K.ACQUIRE_TOKEN_NETWORK_START,U.Silent,c),l.performanceClient.setPreQueueTime(w.AcquireTokenByRefreshToken,c.correlationId),l.acquireTokenByRefreshToken(c,u).catch(function(m){var y=m instanceof Wr,E=m instanceof ft,g=m.errorCode===yn.noTokensFoundError.code,f=m.errorCode===wt.INVALID_GRANT_ERROR;if((!y||!f||E||u.cacheLookupPolicy===Ze.AccessTokenAndRefreshToken||u.cacheLookupPolicy===Ze.RefreshToken)&&u.cacheLookupPolicy!==Ze.Skip&&!g)throw m;return l.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",t.correlationId),l.performanceClient.setPreQueueTime(w.AcquireTokenBySilentIframe,c.correlationId),l.acquireTokenBySilentIframe(c)})}),d.label=3;case 3:return[2,i.then(function(h){var m;return l.eventHandler.emitEvent(K.ACQUIRE_TOKEN_SUCCESS,U.Silent,h),(m=l.astsAsyncMeasurement)===null||m===void 0||m.endMeasurement({success:!0,fromCache:h.fromCache,isNativeBroker:h.fromNativeBroker,requestId:h.requestId}),h}).catch(function(h){var m;throw l.eventHandler.emitEvent(K.ACQUIRE_TOKEN_FAILURE,U.Silent,null,h),(m=l.astsAsyncMeasurement)===null||m===void 0||m.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h}).finally(function(){document.removeEventListener("visibilitychange",l.trackPageVisibility)})]}})})},e}(CC),fo=function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(l){try{u(n.next(l))}catch(d){a(d)}}function c(l){try{u(n.throw(l))}catch(d){a(d)}}function u(l){l.done?i(l.value):o(l.value).then(s,c)}u((n=n.apply(r,e||[])).next())})},Pc;(function(r){r.SELECT_ACCOUNT="select_account",r.LOGIN="login",r.CONSENT="consent"})(Pc||(Pc={}));class _C extends ay{get publicClientApplication(){return this._publicClientApplication}get name(){return"MgtMsal2Provider"}get isMultiAccountDisabled(){return!this.isMultipleAccountEnabled}set isMultiAccountDisabled(e){this.isMultipleAccountEnabled=!e}get isMultiAccountSupportedAndEnabled(){return this.isMultipleAccountEnabled}get sessionStorageRequestedScopesKey(){return"mgt-requested-scopes"}get sessionStorageDeniedScopesKey(){return"mgt-denied-scopes"}get homeAccountKey(){return"275f3731-e4a4-468a-bf9c-baca24b31e26"}constructor(e){super(),this.isMultipleAccountEnabled=!0,this.handleMsalEvent=t=>{t.eventType==="msal:acquireTokenSuccess"&&"scopes"in t.payload&&(this.approvedScopes=t.payload.scopes)},this.initProvider(e)}initProvider(e){return fo(this,void 0,void 0,function*(){const t=e.options||{auth:{clientId:""}};if(this.ms_config=t,this.ms_config.cache=t.cache||{},this.ms_config.cache.cacheLocation=t.cache.cacheLocation||"localStorage",(typeof this.ms_config.cache.storeAuthStateInCookie>"u"||this.ms_config.cache.storeAuthStateInCookie===null)&&(this.ms_config.cache.storeAuthStateInCookie=!0),this.ms_config.system=t.system||{},this.ms_config.system.iframeHashTimeout=t.system.iframeHashTimeout||1e4,e.authority&&(this.ms_config.auth.authority=e.authority),e.redirectUri&&(this.ms_config.auth.redirectUri=e.redirectUri),"clientId"in e)if(e.clientId)this.ms_config.auth.clientId=e.clientId,this._publicClientApplication=new EC(this.ms_config);else throw new Error("clientId must be provided");else if("publicClientApplication"in e)if(e.publicClientApplication)this._publicClientApplication=e.publicClientApplication;else throw new Error("publicClientApplication must be provided");else throw new Error("either clientId or publicClientApplication must be provided");this._publicClientApplication.addEventCallback(this.handleMsalEvent),yield this._publicClientApplication.initialize(),this.ms_config.system=t.system||{},this.ms_config.system.iframeHashTimeout=t.system.iframeHashTimeout||1e4,this._loginType=typeof e.loginType<"u"?e.loginType:Hr.Redirect,this._loginHint=typeof e.loginHint<"u"?e.loginHint:null,this._sid=typeof e.sid<"u"?e.sid:null,this.isIncrementalConsentDisabled=typeof e.isIncrementalConsentDisabled<"u"?e.isIncrementalConsentDisabled:!1,this._domainHint=typeof e.domainHint<"u"?e.domainHint:null,this.scopes=typeof e.scopes<"u"?e.scopes:["user.read"],this._prompt=typeof e.prompt<"u"?e.prompt:Pc.SELECT_ACCOUNT;const n=e;this.isMultipleAccountEnabled=typeof n.isMultiAccountEnabled<"u"?n.isMultiAccountEnabled:!0,this.baseURL=typeof n.baseURL<"u"?n.baseURL:this.baseURL,this.customHosts=n.customHosts,this.graph=gy(this);try{const o=yield this._publicClientApplication.handleRedirectPromise();o!==null?this.handleResponse(o==null?void 0:o.account):yield this.trySilentSignIn()}catch(o){throw console.error("🦒: Problem attempting to sign in",o),o}})}trySilentSignIn(){return fo(this,void 0,void 0,function*(){const e={scopes:this.scopes,domainHint:this._domainHint};if(this._sid||this._loginHint){e.sid=this._sid,e.loginHint=this._loginHint;try{this.setState(De.Loading);const t=yield this._publicClientApplication.ssoSilent(e);t&&this.handleResponse(t==null?void 0:t.account)}catch{this.setState(De.SignedOut)}}else{const t=this.getAccount();if(t&&(yield this.getAccessToken(null))){this.handleResponse(t);return}this.setState(De.SignedOut)}})}login(){return fo(this,void 0,void 0,function*(){const e={scopes:this.scopes,loginHint:this._loginHint,prompt:this._prompt,domainHint:this._domainHint};if(this._loginType===Hr.Popup)try{const t=yield this._publicClientApplication.loginPopup(e);this.handleResponse(t==null?void 0:t.account)}catch(t){switch(!0){case(t instanceof N&&t.errorCode==="user_cancelled"):console.warn("🦒: User cancelled the login flow."),this.setState(De.SignedOut);break;case(t instanceof N&&t.errorCode==="interaction_in_progress"):console.warn("🦒: Login already in progess. Close the popup to login again."),this.setState(De.SignedOut);break;default:throw console.error("🦒: Error occurred during login:",t),t}}else{const t=Object.assign({},e);yield this._publicClientApplication.loginRedirect(t)}})}getAllAccounts(){const e=[];return this._publicClientApplication.getAllAccounts().forEach(t=>{e.push({name:t.name,mail:t.username,id:t.homeAccountId})}),e}setActiveAccount(e){const t=this._publicClientApplication.getAccountByHomeId(e.id),n=this._publicClientApplication.getActiveAccount(),o=this.getStoredAccount();o&&t&&n&&o.homeAccountId===t.homeAccountId&&n.homeAccountId===t.homeAccountId||(this._publicClientApplication.setActiveAccount(t),this.setStoredAccount(),super.setActiveAccount(e))}getActiveAccount(){const e=this._publicClientApplication.getActiveAccount();if(e)return{name:e.name,mail:e.username,id:e.homeAccountId,tenantId:e.tenantId}}handleResponse(e){e!==null?(this.setActiveAccount({name:e.name,id:e.homeAccountId,mail:e.username}),this.setState(De.SignedIn)):this.setState(De.SignedOut),this.clearRequestedScopes()}storage(){switch(this.ms_config.cache.cacheLocation){case"localStorage":return window.localStorage;case"sessionStorage":default:return window.sessionStorage}}setStoredAccount(){this.clearStoredAccount(),this.storage().setItem(this.homeAccountKey,this._publicClientApplication.getActiveAccount().homeAccountId)}getStoredAccount(){const e=this.storage().getItem(this.homeAccountKey);return this._publicClientApplication.getAccountByHomeId(e)}clearStoredAccount(){this.storage().removeItem(this.homeAccountKey)}setRequestedScopes(e){e&&sessionStorage.setItem(this.sessionStorageRequestedScopesKey,JSON.stringify(e))}addDeniedScopes(e){if(e){let t=this.getDeniedScopes()||[];t=t.concat(e);let n=t.indexOf("openid");n!==-1&&t.splice(n,1),n=t.indexOf("profile"),n!==-1&&t.splice(n,1),sessionStorage.setItem(this.sessionStorageDeniedScopesKey,JSON.stringify(t))}}getDeniedScopes(){const e=sessionStorage.getItem(this.sessionStorageDeniedScopesKey);return e?JSON.parse(e):null}areScopesDenied(e){if(e){const t=this.getDeniedScopes();if(t&&t.filter(n=>e.indexOf(n)!==-1).length>0)return!0}return!1}clearRequestedScopes(){sessionStorage.removeItem(this.sessionStorageRequestedScopesKey)}getAccount(){const e=this.getStoredAccount();return e||(this._publicClientApplication.getAllAccounts().length>0?this._publicClientApplication.getAllAccounts()[0]:null)}logout(){return fo(this,void 0,void 0,function*(){const t={account:this._publicClientApplication.getActiveAccount()};this.clearStoredAccount(),this._loginType===Hr.Redirect?(this.setState(De.SignedOut),yield this._publicClientApplication.logoutRedirect(t)):(yield this._publicClientApplication.logoutPopup(Object.assign({},t)),this._publicClientApplication.getAllAccounts.length===1||!this.isMultipleAccountEnabled?this.setState(De.SignedOut):yield this.trySilentSignIn())})}getAccessToken(e){var t;return fo(this,void 0,void 0,function*(){const n=!((t=e==null?void 0:e.scopes)===null||t===void 0)&&t.length?e.scopes:this.scopes,o={scopes:n,account:this.getAccount()};try{const i=o;return(yield this._publicClientApplication.acquireTokenSilent(i)).accessToken}catch(i){if(i instanceof ft){if(this.isIncrementalConsentDisabled)return null;if(this._loginType===Hr.Redirect)if(!this.areScopesDenied(n))this.setRequestedScopes(n),yield this._publicClientApplication.acquireTokenRedirect(o);else throw i;else try{return(yield this._publicClientApplication.acquireTokenPopup(o)).accessToken}catch(a){throw console.error("🦒: problem with pop-up sign in",a),a}}else this.setState(De.SignedOut)}throw null})}}const wC=Kn.lazy(()=>Ip(()=>import("./App-c9ixsJC9.js").then(r=>r.dB),[]));cp.withDisambiguation("foo");uv({":global(body,html,#root)":{margin:0,padding:0,height:"100vh",overflow:"hidden"}});Ce.globalProvider=new _C({clientId:"ed072e38-e76e-45ae-ab76-073cb95495bb",loginType:Hr.Redirect,scopes:["Bookmark.Read.All","Calendars.Read","Channel.ReadBasic.All","ExternalItem.Read.All","Files.ReadWrite.All","Group.ReadWrite.All","Mail.Read","People.Read","Presence.Read.All","User.Read","Sites.ReadWrite.All","Tasks.ReadWrite","Team.ReadBasic.All","TermStore.Read.All","User.Read.All"]});Hm.render(Yi.jsx(Kn.Suspense,{fallback:"...",children:Yi.jsx(wC,{})}),document.getElementById("root"));export{_a as E,Lu as G,hy as P,Dp as R,IC as _,De as a,Ce as b,cp as c,TC as d,Hm as e,kt as f,Ip as g,SC as h,xm as i,Yi as j,sy as p,Kn as r,qp as s}; diff --git a/next/sample/pr/3325/assets/mgt-file-Dpu464qL.js b/next/sample/pr/3325/assets/mgt-file-Dpu464qL.js new file mode 100644 index 0000000000..b0bbea0e29 --- /dev/null +++ b/next/sample/pr/3325/assets/mgt-file-Dpu464qL.js @@ -0,0 +1,24 @@ +import{X as b,a3 as x,Z as P,$ as p,a4 as S,a5 as w,dl as D,dm as T,dn as _,dp as $,dq as z,dr as k,ds as M,dt as B,du as F,dv as j,dw as O,dx as C,dy as U,dz as R,aQ as N,cH as Q,Y as d,d2 as L}from"./App-c9ixsJC9.js";import{b as E,a as I}from"./index-hkJM60Tb.js";const W=[b` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{font-size:var(--default-font-size);font-weight:var(--default-font-weight,400);border:var(--file-border,1px solid transparent);border-radius:var(--file-border-radius,4px);background-color:var(--file-background-color)}:host .item{display:flex;flex-flow:row nowrap;align-items:center;background-color:var(--file-background-color);padding:var(--file-padding,0);margin:var(--file-margin,0)}:host .item:hover{background-color:var(--file-background-color-hover,var(--neutral-fill-hover));border-radius:var(--file-border-radius,4px);cursor:pointer;--secondary-text-color:var(--secondary-text-hover-color)}:host .item:focus,:host .item:focus-visible{background-color:var(--file-background-color-focus,var(--neutral-fill-hover));border-radius:var(--file-border-radius,4px)}:host .item__file-type-icon{height:var(--file-type-icon-height,28px);display:flex;align-items:center;justify-content:center}:host .item__file-type-icon img{height:var(--file-type-icon-height,28px)}:host .item__details{padding-inline-start:var(--file-padding-inline-start,14px)}:host .item__details .line1{font-size:var(--default-font-size);font-weight:var(--file-line1-font-weight,var(--default-font-weight,400));text-transform:var(--file-line1-text-transform,initial);line-height:20px;color:var(--file-line1-color,var(--neutral-foreground-rest))}:host .item__details .line2{color:var(--file-line2-color,var(--secondary-text-color));font-size:var(--file-line2-font-size, var(--last-modified-font-size, 12px));font-weight:var(--file-line2-font-weight,var(--default-font-weight,400));text-transform:var(--file-line2-text-transform,initial);line-height:16px}:host .item__details .line3{color:var(--file-line3-color,var(--secondary-text-color));font-size:var(--file-line3-font-size, var(--size-font-size, 12px));font-weight:var(--file-line3-font-weight,var(--default-font-weight,400));text-transform:var(--file-line3-text-transform,initial);line-height:16px}[dir=rtl] .item{direction:rtl}[dir=rtl] .item__details{direction:rtl} +`],v={PowerPoint:"pptx",Word:"docx",Excel:"xlsx",Pdf:"pdf",OneNote:"onetoc",OneNotePage:"one",InfoPath:"xsn",Visio:"vstx",Publisher:"pub",Project:"mpp",Access:"accdb",Mail:"email",Csv:"csv",Archive:"archive",Xps:"vector",Audio:"audio",Video:"video",Image:"photo",Web:"html",Text:"txt",Xml:"xml",Story:"genericfile",ExternalContent:"genericfile",Folder:"folder",Spsite:"spo",Other:"genericfile"},y="https://spoprod-a.akamaihd.net/files/fabric-cdn-prod_20201008.001/assets/item-types",V=(r,i,t)=>{const e=v[r]||"genericfile";return`${y}/${i.toString()}/${e}.${t}`},q=(r,i,t)=>Object.keys(v).find(s=>v[s]===r)?`${y}/${i.toString()}/${r}.${t}`:r==="jpg"||r==="png"?(r="photo",`${y}/${i.toString()}/${r}.${t}`):null,A={modifiedSubtitle:"Modified",sizeSubtitle:"Size"};var l=function(r,i,t,e){var s=arguments.length,o=s<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,t):e,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,i,t,e);else for(var f=r.length-1;f>=0;f--)(h=r[f])&&(o=(s<3?h(o):s>3?h(i,t,o):h(i,t))||o);return s>3&&o&&Object.defineProperty(i,t,o),o},a=function(r,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,i)},H=function(r,i,t,e){function s(o){return o instanceof t?o:new t(function(h){h(o)})}return new(t||(t=Promise))(function(o,h){function f(c){try{u(e.next(c))}catch(m){h(m)}}function g(c){try{u(e.throw(c))}catch(m){h(m)}}function u(c){c.done?o(c.value):s(c.value).then(f,g)}u((e=e.apply(r,i||[])).next())})};const Y=()=>x("file",n);class n extends P{static get styles(){return W}get strings(){return A}static get requiredScopes(){return[...new Set(["files.read","files.read.all","sites.read.all"])]}args(){return[this.providerState,this.fileQuery,this.siteId,this.itemId,this.driveId,this.itemPath,this.listId,this.groupId,this.userId,this.insightType,this.insightId,this.fileDetails,this.fileIcon]}constructor(){super(),this.renderContent=()=>{if(!this.driveItem)return this.renderNoData();const i=this.driveItem;let t;if(t=this.renderTemplate("default",{file:i}),!t){const e=this.renderDetails(i),s=this.renderFileTypeIcon();t=p` +
+ ${s} ${e} +
`}return t},this.line1Property="name",this.line2Property="lastModifiedDateTime",this.line3Property="size",this.view="threelines"}renderNoData(){return this.renderTemplate("no-data",null)||p``}renderFileTypeIcon(){if(!this.fileIcon&&!this.driveItem.name)return p``;let i,t="";if(this.fileIcon)i=this.fileIcon;else{const e=/(?:\.([^.]+))?$/;t=this.driveItem.package===void 0&&this.driveItem.folder===void 0?e.exec(this.driveItem.name)[1]?e.exec(this.driveItem.name)[1].toLowerCase():this.driveItem.size?"null":"folder":this.driveItem.package!==void 0&&this.driveItem.package.type==="oneNote"?"onetoc":"folder",i=q(t,48,"svg")}return p` +
+ ${i?p` + ${t.toUpperCase()} File icon + `:p` + ${S(w.File)} + `} +
+ `}renderDetails(i){if(!i||this.view==="image")return p``;const t=[];if(this.view>"image"){const e=this.getTextFromProperty(i,this.line1Property);e&&t.push(p` +
${e}
+ `)}if(this.view>"oneline"){const e=this.getTextFromProperty(i,this.line2Property);e&&t.push(p` +
${e}
+ `)}if(this.view>"twolines"){const e=this.getTextFromProperty(i,this.line3Property);e&&t.push(p` +
${e}
+ `)}return p` +
+ ${t} +
+ `}loadState(){return H(this,void 0,void 0,function*(){if(this.fileDetails){this.driveItem=this.fileDetails;return}const i=E.globalProvider;if(!i||i.state===I.Loading)return;if(i.state===I.SignedOut){this.driveItem=null;return}const t=i.graph.forComponent(this);let e;const s=!this.driveId&&!this.siteId&&!this.groupId&&!this.listId&&!this.userId;this.driveId&&!this.itemId&&!this.itemPath||this.siteId&&!this.itemId&&!this.itemPath||this.groupId&&!this.itemId&&!this.itemPath||this.listId&&!this.siteId&&!this.itemId||this.insightType&&!this.insightId||this.userId&&!this.itemId&&!this.itemPath&&!this.insightType&&!this.insightId?e=null:this.fileQuery?e=yield D(t,this.fileQuery):this.itemId&&s?e=yield T(t,this.itemId):this.itemPath&&s?e=yield _(t,this.itemPath):this.userId?this.itemId?e=yield $(t,this.userId,this.itemId):this.itemPath?e=yield z(t,this.userId,this.itemPath):this.insightType&&this.insightId&&(e=yield k(t,this.userId,this.insightType,this.insightId)):this.driveId?this.itemId?e=yield M(t,this.driveId,this.itemId):this.itemPath&&(e=yield B(t,this.driveId,this.itemPath)):this.siteId&&!this.listId?this.itemId?e=yield F(t,this.siteId,this.itemId):this.itemPath&&(e=yield j(t,this.siteId,this.itemPath)):this.listId?e=yield O(t,this.siteId,this.listId,this.itemId):this.groupId?this.itemId?e=yield C(t,this.groupId,this.itemId):this.itemPath&&(e=yield U(t,this.groupId,this.itemPath)):this.insightType&&!this.userId&&(e=yield R(t,this.insightType,this.insightId)),this.driveItem=e})}getTextFromProperty(i,t){if(!t||t.length===0)return null;const e=t.trim().split(",");let s,o=0;for(;!s&&oL(r,"threelines")}),a("design:type",String)],n.prototype,"view",void 0);export{n as M,V as g,Y as r}; diff --git a/next/sample/pr/3325/assets/mgt-file-list-BTjQjdgt.js b/next/sample/pr/3325/assets/mgt-file-list-BTjQjdgt.js new file mode 100644 index 0000000000..d59455e9f0 --- /dev/null +++ b/next/sample/pr/3325/assets/mgt-file-list-BTjQjdgt.js @@ -0,0 +1,388 @@ +import{m as C,r as W,aF as se,_ as w,b as k,F as re,cB as ne,p as de,D as ce,O as ue,y as R,cC as pe,cd as he,N as fe,J as $,z as ge,cD as me,E as U,M as I,L as N,Q as ve,R as j,cE as be,X as Z,a0 as Y,a1 as ye,a3 as J,cF as xe,$ as v,a4 as S,a5 as _,a8 as L,a6 as E,cG as Fe,cH as Q,cI as Se,cJ as _e,cK as we,cL as ke,cM as Ue,cN as ee,Y as m,a2 as A,Z as $e,aQ as Ce,cO as Le,cP as Te,cQ as Ie,cR as Ee,cS as ze,cT as De,cU as Pe,cV as Re,cW as Be,cX as Ae,cY as Oe,cZ as Me,c_ as qe,c$ as Ne,d0 as je,d1 as G,d2 as Qe,d3 as Ge}from"./App-c9ixsJC9.js";import{c as Ke}from"./repeat-BYNG0dST.js";import{r as te,M as Ve,g as He}from"./mgt-file-Dpu464qL.js";import{a as Xe}from"./index-D1MpQKKC.js";import{b as z,a as K}from"./index-hkJM60Tb.js";const We=(s,e)=>C` +
+ ${W(t=>t.modal,C` + + `)} + +
+`;/*! +* tabbable 5.3.3 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var Ze=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Ye=Ze.join(","),ie=typeof Element>"u",T=ie?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,B=!ie&&Element.prototype.getRootNode?function(s){return s.getRootNode()}:function(s){return s.ownerDocument},Je=function(e,t){return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},le=function(e){return e.tagName==="INPUT"},et=function(e){return le(e)&&e.type==="hidden"},tt=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(i){return i.tagName==="SUMMARY"});return t},it=function(e,t){for(var i=0;isummary:first-of-type"),a=l?e.parentElement:e;if(T.call(a,"details:not([open]) *"))return!0;var r=B(e).host,n=(r==null?void 0:r.ownerDocument.contains(r))||e.ownerDocument.contains(e);if(!i||i==="full"){if(typeof o=="function"){for(var c=e;e;){var d=e.parentElement,g=B(e);if(d&&!d.shadowRoot&&o(d)===!0)return V(e);e.assignedSlot?e=e.assignedSlot:!d&&g!==e.ownerDocument?e=g.host:e=d}e=c}if(n)return!e.getClientRects().length}else if(i==="non-zero-area")return V(e);return!1},rt=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var i=0;i{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&!this.hidden)switch(e.key){case de:this.dismiss(),e.preventDefault();break;case ne:this.handleTabKeyDown(e);break}},this.handleDocumentFocus=e=>{!e.defaultPrevented&&this.shouldForceFocus(e.target)&&(this.focusFirstElement(),e.preventDefault())},this.handleTabKeyDown=e=>{if(!this.trapFocus||this.hidden)return;const t=this.getTabQueueBounds();if(t.length!==0){if(t.length===1){t[0].focus(),e.preventDefault();return}e.shiftKey&&e.target===t[0]?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&e.target===t[t.length-1]&&(t[0].focus(),e.preventDefault())}},this.getTabQueueBounds=()=>{const e=[];return y.reduceTabbableItems(e,this)},this.focusFirstElement=()=>{const e=this.getTabQueueBounds();e.length>0?e[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=e=>{const t=e===void 0?this.shouldTrapFocus():e;t&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),ce.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!t&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=ue.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(e,t){switch(t){case"hidden":this.updateTrapFocus();break}}static reduceTabbableItems(e,t){return t.getAttribute("tabindex")==="-1"?e:H(t)||y.isFocusableFastElement(t)&&y.hasTabbableShadow(t)?(e.push(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(y.reduceTabbableItems,[])):e}static isFocusableFastElement(e){var t,i;return!!(!((i=(t=e.$fastController)===null||t===void 0?void 0:t.definition.shadowOptions)===null||i===void 0)&&i.delegatesFocus)}static hasTabbableShadow(e){var t,i;return Array.from((i=(t=e.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("*"))!==null&&i!==void 0?i:[]).some(o=>H(o))}}w([k({mode:"boolean"})],y.prototype,"modal",void 0);w([k({mode:"boolean"})],y.prototype,"hidden",void 0);w([k({attribute:"trap-focus",mode:"boolean"})],y.prototype,"trapFocus",void 0);w([k({attribute:"aria-describedby"})],y.prototype,"ariaDescribedby",void 0);w([k({attribute:"aria-labelledby"})],y.prototype,"ariaLabelledby",void 0);w([k({attribute:"aria-label"})],y.prototype,"ariaLabel",void 0);const ct=(s,e)=>C` + +`,ut=(s,e)=>R` + :host([hidden]) { + display: none; + } + + :host { + --dialog-height: 480px; + --dialog-width: 640px; + display: block; + } + + .overlay { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(0, 0, 0, 0.3); + touch-action: none; + } + + .positioning-region { + display: flex; + justify-content: center; + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + overflow: auto; + } + + .control { + box-shadow: ${pe}; + margin-top: auto; + margin-bottom: auto; + border-radius: calc(${he} * 1px); + width: var(--dialog-width); + height: var(--dialog-height); + background: ${fe}; + z-index: 1; + border: calc(${$} * 1px) solid transparent; + } +`,pt=y.compose({baseName:"dialog",template:We,styles:ut}),ht=(s,e)=>R` + ${ge("flex")} :host { + align-items: center; + height: calc((${$} * 3) * 1px); + } + + .progress { + background-color: ${me}; + border-radius: calc(${U} * 1px); + width: 100%; + height: calc(${$} * 1px); + display: flex; + align-items: center; + position: relative; + } + + .determinate { + background-color: ${I}; + border-radius: calc(${U} * 1px); + height: calc((${$} * 3) * 1px); + transition: all 0.2s ease-in-out; + display: flex; + } + + .indeterminate { + height: calc((${$} * 3) * 1px); + border-radius: calc(${U} * 1px); + display: flex; + width: 100%; + position: relative; + overflow: hidden; + } + + .indeterminate-indicator-1 { + position: absolute; + opacity: 0; + height: 100%; + background-color: ${I}; + border-radius: calc(${U} * 1px); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + width: 40%; + animation: indeterminate-1 2s infinite; + } + + .indeterminate-indicator-2 { + position: absolute; + opacity: 0; + height: 100%; + background-color: ${I}; + border-radius: calc(${U} * 1px); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + width: 60%; + animation: indeterminate-2 2s infinite; + } + + :host(.paused) .indeterminate-indicator-1, + :host(.paused) .indeterminate-indicator-2 { + animation: none; + background-color: ${N}; + width: 100%; + opacity: 1; + } + + :host(.paused) .determinate { + background-color: ${N}; + } + + @keyframes indeterminate-1 { + 0% { + opacity: 1; + transform: translateX(-100%); + } + 70% { + opacity: 1; + transform: translateX(300%); + } + 70.01% { + opacity: 0; + } + 100% { + opacity: 0; + transform: translateX(300%); + } + } + + @keyframes indeterminate-2 { + 0% { + opacity: 0; + transform: translateX(-150%); + } + 29.99% { + opacity: 0; + } + 30% { + opacity: 1; + transform: translateX(-150%); + } + 100% { + transform: translateX(166.66%); + opacity: 1; + } + } + `.withBehaviors(ve(R` + .indeterminate-indicator-1, + .indeterminate-indicator-2, + .determinate, + .progress { + background-color: ${j.ButtonText}; + } + :host(.paused) .indeterminate-indicator-1, + :host(.paused) .indeterminate-indicator-2, + :host(.paused) .determinate { + background-color: ${j.GrayText}; + } + `));class ft extends be{}const gt=ft.compose({baseName:"progress",template:ct,styles:ht,indeterminateIndicator1:` + + `,indeterminateIndicator2:` + + `}),mt=[Z` +:host .file-upload-area-button{width:auto;display:flex;align-items:end;justify-content:end;margin-inline-end:36px;margin-top:30px}:host .focus,:host :focus{outline:0}:host fluent-button .upload-icon path{fill:var(--file-upload-button-text-color,var(--foreground-on-accent-rest))}:host fluent-button.file-upload-button::part(control){border:var(--file-upload-button-border,none);background:var(--file-upload-button-background-color,var(--accent-fill-rest))}:host fluent-button.file-upload-button::part(control):hover{background:var(--file-upload-button-background-color-hover,var(--accent-fill-hover))}:host fluent-button.file-upload-button .upload-text{color:var(--file-upload-button-text-color,var(--foreground-on-accent-rest));font-weight:400;line-height:20px}:host input{display:none}:host fluent-progress.file-upload-bar{width:180px;margin-top:10px}:host fluent-dialog::part(overlay){opacity:.5}:host fluent-dialog::part(control){--dialog-width:$file-upload-dialog-width;--dialog-height:$file-upload-dialog-height;padding:var(--file-upload-dialog-padding,24px);border:var(--file-upload-dialog-border,1px solid var(--neutral-fill-rest))}:host fluent-dialog .file-upload-dialog-ok{background:var(--file-upload-dialog-keep-both-button-background-color,var(--accent-fill-rest));border:var(--file-upload-dialog-keep-both-button-border,none);color:var(--file-upload-dialog-keep-both-button-text-color,var(--foreground-on-accent-rest))}:host fluent-dialog .file-upload-dialog-ok:hover{background:var(--file-upload-dialog-keep-both-button-background-color-hover,var(--accent-fill-hover))}:host fluent-dialog .file-upload-dialog-cancel{background:var(--file-upload-dialog-replace-button-background-color,var(--accent-fill-rest));border:var(--file-upload-dialog-replace-button-border,1px solid var(--neutral-foreground-rest));color:var(--file-upload-dialog-replace-button-text-color,var(--neutral-foreground-rest))}:host fluent-dialog .file-upload-dialog-cancel:hover{background:var(--file-upload-dialog-replace-button-background-color-hover,var(--accent-fill-hover))}:host fluent-checkbox{margin-top:12px}:host fluent-checkbox .file-upload-dialog-check{color:var(--file-upload-dialog-text-color,--foreground-on-accent-rest)}:host .file-upload-table{display:flex}:host .file-upload-table.upload{display:flex}:host .file-upload-table .file-upload-cell{padding:1px 0 1px 1px;display:table-cell;vertical-align:middle;position:relative}:host .file-upload-table .file-upload-cell.percent-indicator{padding-inline-start:10px}:host .file-upload-table .file-upload-cell .description{opacity:.5;position:relative}:host .file-upload-table .file-upload-cell .file-upload-filename{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .file-upload-table .file-upload-cell .file-upload-status{position:absolute;left:28px}:host .file-upload-table .file-upload-cell .file-upload-cancel{cursor:pointer;margin-inline-start:20px}:host .file-upload-table .file-upload-cell .file-upload-name{width:auto}:host .file-upload-table .file-upload-cell .cancel-icon{fill:var(--file-upload-dialog-text-color,var(--neutral-foreground-rest))}:host .mgt-file-item{--file-background-color:transparent;--file-padding:0 12px;--file-padding-inline-start:24px}:host .file-upload-template{clear:both}:host .file-upload-template .file-upload-folder-tab{padding-inline-start:20px}:host .file-upload-dialog{display:none}:host .file-upload-dialog .file-upload-dialog-content{background-color:var(--file-upload-dialog-background-color,var(--accent-fill-rest));color:var(--file-upload-dialog-text-color,var(--neutral-foreground-rest));z-index:1;position:relative}:host .file-upload-dialog .file-upload-dialog-content-text{margin-bottom:36px}:host .file-upload-dialog .file-upload-dialog-title{margin-top:0}:host .file-upload-dialog .file-upload-dialog-editor{display:flex;align-items:end;justify-content:end;gap:5px}:host .file-upload-dialog .file-upload-dialog-close{float:right;cursor:pointer}:host .file-upload-dialog .file-upload-dialog-close svg{fill:var(--file-upload-dialog-text-color,var(--neutral-foreground-rest));padding-right:5px}:host .file-upload-dialog.visible{display:block}:host fluent-checkbox.file-upload-dialog-check.hide{display:none}:host .file-upload-dialog-success{cursor:pointer;opacity:.5}:host #file-upload-border{display:none}:host #file-upload-border.visible{border:var(--file-upload-border-drag,1px dashed #0078d4);background-color:var(--file-upload-background-color-drag,rgba(0,120,212,.1));position:absolute;inset:0;z-index:1;display:inline-block}[dir=rtl] :host .file-upload-status{left:0;right:28px}@media (forced-colors:active){:host fluent-button .upload-icon path{fill:highlighttext}:host fluent-button.file-upload-button::part(control){border-width:1px;border-style:solid;border-color:buttontext;background:highlight}:host fluent-button.file-upload-button::part(control):hover{background:highlighttext;border-color:highlight}:host fluent-button.file-upload-button .upload-text{color:highlighttext}:host fluent-button:hover .upload-icon path{fill:highlight}:host fluent-button:hover.file-upload-button::part(control){border-color:highlight;background:highlighttext}:host fluent-button:hover.file-upload-button .upload-text{color:highlight}} +`],u={failUploadFile:"File upload failed",successUploadFile:"File upload succeeded",cancelUploadFile:"File cancel.",buttonUploadFile:"Upload Files",maximumFilesTitle:"Maximum files",maximumFiles:"Sorry, the maximum number of files you can upload at once is {MaxNumber}. Do you want to upload the first {MaxNumber} files or reselect?",maximumFileSizeTitle:"Maximum files size",maximumFileSize:'Sorry, the maximum file size to upload is {FileSize}. The file "{FileName}" has ',fileTypeTitle:"File type",fileType:'Sorry, the format of following file "{FileName}" cannot be uploaded.',checkAgain:"Don't show again",checkApplyAll:"Apply to all",buttonOk:"OK",buttonCancel:"Cancel",buttonUpload:"Upload",buttonKeep:"Keep both",buttonReplace:"Replace",buttonReselect:"Reselect",fileReplaceTitle:"Replace file",fileReplace:'Do you want to replace the file "{FileName}" or keep both files?',uploadButtonLabel:"File upload button"};var oe=function(s,e,t,i){var o=arguments.length,l=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(s,e,t,i);else for(var r=s.length-1;r>=0;r--)(a=s[r])&&(l=(o<3?a(l):o>3?a(e,t,l):a(e,t))||l);return o>3&&l&&Object.defineProperty(e,t,l),l},ae=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},F=function(s,e,t,i){function o(l){return l instanceof t?l:new t(function(a){a(l)})}return new(t||(t=Promise))(function(l,a){function r(d){try{c(i.next(d))}catch(g){a(g)}}function n(d){try{c(i.throw(d))}catch(g){a(g)}}function c(d){d.done?l(d.value):o(d.value).then(r,n)}c((i=i.apply(s,e||[])).next())})};const D=s=>s.isDirectory,vt=s=>s.isFile,bt=s=>"getAsEntry"in s&&typeof s.getAsEntry=="function",yt=s=>"getAsFile"in s&&typeof s.getAsFile=="function"||"webkitGetAsEntry"in s&&typeof s.webkitGetAsEntry=="function",xt=()=>{Y(gt,ye,Xe,pt),te(),J("file-upload",O)},Ft=s=>(s==null?void 0:s.length)>1?s[1]==="replace"?"replace":"rename":null;class O extends xe{static get styles(){return mt}get strings(){return u}static get requiredScopes(){return[...new Set(["files.readwrite","files.readwrite.all","sites.readwrite.all"])]}get _dropEffect(){return"copy"}constructor(){super(),this._dragCounter=0,this._maxChunkSize=4*1024*1024,this._dialogTitle="",this._dialogContent="",this._dialogPrimaryButton="",this._dialogSecondaryButton="",this._dialogCheckBox="",this._applyAll=!1,this._applyAllConflictBehavior=null,this._maximumFileSize=!1,this._excludedFileType=!1,this.onFileUploadChange=e=>{const t=e.target;!e||t.files.length<1||this.readUploadedFiles(t.files,()=>t.value=null)},this.onFileUploadClick=()=>{this.renderRoot.querySelector("#file-upload-input").click()},this.handleonDragOver=e=>{e.preventDefault(),e.stopPropagation(),e.dataTransfer.items&&e.dataTransfer.items.length>0&&(e.dataTransfer.dropEffect=e.dataTransfer.dropEffect=this._dropEffect)},this.handleonDragEnter=e=>{e.preventDefault(),e.stopPropagation(),this._dragCounter++,e.dataTransfer.items&&e.dataTransfer.items.length>0&&(e.dataTransfer.dropEffect=this._dropEffect,this.renderRoot.querySelector("#file-upload-border").classList.add("visible"))},this.handleonDragLeave=e=>{e.preventDefault(),e.stopPropagation(),this._dragCounter--,this._dragCounter===0&&this.renderRoot.querySelector("#file-upload-border").classList.remove("visible")},this.handleonDrop=e=>{var t;e.preventDefault(),e.stopPropagation();const i=()=>{e.dataTransfer.clearData()};this.renderRoot.querySelector("#file-upload-border").classList.remove("visible"),!((t=e.dataTransfer)===null||t===void 0)&&t.items&&this.readUploadedFiles(e.dataTransfer.items,i),this._dragCounter=0},this.filesToUpload=[],this.addEventListener("__uploadfailed",this.focusOnUpload),this.addEventListener("__uploadsuccess",this.focusOnUpload)}focusOnUpload(){const e=this.renderRoot.querySelector('mgt-file[part="upload"]');e&&(e.setAttribute("tabindex","0"),e.classList.add("upload"),e.focus())}render(){if(this.parentElement!==null){const e=this.parentElement;e.addEventListener("dragenter",this.handleonDragEnter),e.addEventListener("dragleave",this.handleonDragLeave),e.addEventListener("dragover",this.handleonDragOver),e.addEventListener("drop",this.handleonDrop)}return v` +
+ + + + ${S(_.Cancel)} + +
+

${this._dialogTitle}

+
${this._dialogContent}
+ + ${this._dialogCheckBox} + +
+
+ + ${this._dialogPrimaryButton} + + + ${this._dialogSecondaryButton} + +
+
+
+
+
+ + + ${S(_.Upload)} + ${this.strings.buttonUploadFile} + +
+
+ ${this.renderFolderTemplate(this.filesToUpload)} +
+ `}renderFolderTemplate(e){const t=[];if(e.length>0){const i=e.map(o=>t.indexOf(o.fullPath.substring(0,o.fullPath.lastIndexOf("/")))===-1?o.fullPath.endsWith("/")?v`${this.renderFileTemplate(o,"")}`:(t.push(o.fullPath.substring(0,o.fullPath.lastIndexOf("/"))),L` +
+
+ + +
+
+ ${this.renderFileTemplate(o,"file-upload-folder-tab")}`):v`${this.renderFileTemplate(o,"file-upload-folder-tab")}`);return v`${i}`}return v``}renderFileTemplate(e,t){const i=E({"file-upload-table":!0,upload:e.completed}),o=t+(e.fieldUploadResponse==="lastModifiedDateTime"?" file-upload-dialog-success":""),l=e.fieldUploadResponse==="description",a=E({description:l}),r=e.completed?v``:this.renderFileUploadTemplate(e),n=l?u.failUploadFile:u.successUploadFile;return L` +
+
+
+
+
+ ${e.iconStatus} +
+ + +
+
+ ${r} +
+
+ `}renderFileUploadTemplate(e){const t=E({"file-upload-table":!0,upload:e.completed});return v` +
+
+
+
+ ${e.file.name} +
+
+
+
+
+
+ +
+ ${e.percent}% + this.deleteFileUploadSession(e)}> + ${S(_.Cancel)} + +
+
+
+
+
+ `}deleteFileUploadSession(e){return F(this,void 0,void 0,function*(){try{e.uploadUrl!==void 0?(yield Fe(this.fileUploadList.graph,e.uploadUrl),e.uploadUrl=void 0,e.completed=!0,this.setUploadFail(e,u.cancelUploadFile)):(e.uploadUrl=void 0,e.completed=!0,this.setUploadFail(e,u.cancelUploadFile))}catch{e.uploadUrl=void 0,e.completed=!0,this.setUploadFail(e,u.cancelUploadFile)}})}readUploadedFiles(e,t){return F(this,void 0,void 0,function*(){const i=yield this.getFilesFromUploadArea(e);yield this.getSelectedFiles(i),t()})}getSelectedFiles(e){return F(this,void 0,void 0,function*(){let t=[];const i=[];this._applyAll=!1,this._applyAllConflictBehavior=null,this._maximumFileSize=!1,this._excludedFileType=!1,this.filesToUpload.forEach(l=>{l.completed?i.push(l):t.push(l)});for(const l of e){const a=l.fullPath===""?"/"+l.name:l.fullPath;if(t.filter(r=>r.fullPath===a).length===0){let r=!0;if(this.fileUploadList.maxFileSize!==void 0&&r&&l.size>this.fileUploadList.maxFileSize*1024&&(r=!1,this._maximumFileSize===!1)){const n=yield this.getFileUploadStatus(l,a,"MaxFileSize",this.fileUploadList);n!==null&&n[0]===1&&(this._maximumFileSize=!0)}if(this.fileUploadList.excludedFileExtensions!==void 0&&this.fileUploadList.excludedFileExtensions.length>0&&r&&this.fileUploadList.excludedFileExtensions.filter(n=>l.name.toLowerCase().indexOf(n.toLowerCase())>-1).length>0&&(r=!1,this._excludedFileType===!1)){const n=yield this.getFileUploadStatus(l,a,"ExcludedFileType",this.fileUploadList);n!==null&&n[0]===1&&(this._excludedFileType=!0)}if(r){const n=yield this.getFileUploadStatus(l,a,"Upload",this.fileUploadList);let c=!1;n!==null&&(n[0]===-1?c=!0:(this._applyAll=!!n[0],this._applyAllConflictBehavior=n[1]?1:0)),t.push({file:l,driveItem:{name:l.name},fullPath:a,conflictBehavior:Ft(n),iconStatus:null,percent:1,view:"image",completed:c,maxSize:this._maxChunkSize,minSize:0})}}}t=t.sort((l,a)=>l.fullPath.substring(0,l.fullPath.lastIndexOf("/")).localeCompare(a.fullPath.substring(0,a.fullPath.lastIndexOf("/")))),t.forEach(l=>{if(i.filter(a=>a.fullPath===l.fullPath).length!==0){const a=i.findIndex(r=>r.fullPath===l.fullPath);i.splice(a,1)}}),t.push(...i),this.filesToUpload=t;const o=this.filesToUpload.map(l=>this.sendFileItemGraph(l));yield Promise.all(o)})}getFileUploadStatus(e,t,i,o){const l=Object.create(null,{requestStateUpdate:{get:()=>super.requestStateUpdate}});return F(this,void 0,void 0,function*(){const a=this.renderRoot.querySelector("#file-upload-dialog");switch(i){case"Upload":return(yield Se(this.fileUploadList.graph,`${this.getGrapQuery(t)}?$select=id`))!==null?this._applyAll===!0?[this._applyAll,this._applyAllConflictBehavior]:(a.classList.add("visible"),this._dialogTitle=u.fileReplaceTitle,this._dialogContent=u.fileReplace.replace("{FileName}",e.name),this._dialogCheckBox=u.checkApplyAll,this._dialogPrimaryButton=u.buttonReplace,this._dialogSecondaryButton=u.buttonKeep,yield l.requestStateUpdate.call(this,!0),new Promise(n=>{const c=this.renderRoot.querySelector(".file-upload-dialog-close"),d=this.renderRoot.querySelector(".file-upload-dialog-ok"),g=this.renderRoot.querySelector(".file-upload-dialog-cancel"),x=this.renderRoot.querySelector("#file-upload-dialog-check");x.checked=!1,x.classList.remove("hide");const b=()=>{a.classList.remove("visible"),n([x.checked?1:0,"replace"])},M=()=>{a.classList.remove("visible"),n([x.checked?1:0,"rename"])},q=()=>{a.classList.remove("visible"),n([-1])};d.removeEventListener("click",b),g.removeEventListener("click",M),c.removeEventListener("click",q),d.addEventListener("click",b),g.addEventListener("click",M),c.addEventListener("click",q)})):null;case"ExcludedFileType":return a.classList.add("visible"),this._dialogTitle=u.fileTypeTitle,this._dialogContent=u.fileType.replace("{FileName}",e.name)+" ("+o.excludedFileExtensions.join(",")+")",this._dialogCheckBox=u.checkAgain,this._dialogPrimaryButton=u.buttonOk,this._dialogSecondaryButton=u.buttonCancel,yield l.requestStateUpdate.call(this,!0),new Promise(r=>{const n=this.renderRoot.querySelector(".file-upload-dialog-ok"),c=this.renderRoot.querySelector(".file-upload-dialog-cancel"),d=this.renderRoot.querySelector(".file-upload-dialog-close"),g=this.renderRoot.querySelector("#file-upload-dialog-check");g.checked=!1,g.classList.remove("hide");const x=()=>{a.classList.remove("visible"),r([g.checked?1:0])},b=()=>{a.classList.remove("visible"),r([0])};n.removeEventListener("click",x),c.removeEventListener("click",b),d.removeEventListener("click",b),n.addEventListener("click",x),c.addEventListener("click",b),d.addEventListener("click",b)});case"MaxFileSize":return a.classList.add("visible"),this._dialogTitle=u.maximumFileSizeTitle,this._dialogContent=u.maximumFileSize.replace("{FileSize}",Q(o.maxFileSize*1024)).replace("{FileName}",e.name)+Q(e.size)+".",this._dialogCheckBox=u.checkAgain,this._dialogPrimaryButton=u.buttonOk,this._dialogSecondaryButton=u.buttonCancel,yield l.requestStateUpdate.call(this,!0),new Promise(r=>{const n=this.renderRoot.querySelector(".file-upload-dialog-ok"),c=this.renderRoot.querySelector(".file-upload-dialog-cancel"),d=this.renderRoot.querySelector(".file-upload-dialog-close"),g=this.renderRoot.querySelector("#file-upload-dialog-check");g.checked=!1,g.classList.remove("hide");const x=()=>{a.classList.remove("visible"),r([g.checked?1:0])},b=()=>{a.classList.remove("visible"),r([0])};n.removeEventListener("click",x),c.removeEventListener("click",b),d.removeEventListener("click",b),n.addEventListener("click",x),c.addEventListener("click",b),d.addEventListener("click",b)})}})}getGrapQuery(e){let t="";return this.fileUploadList.itemPath&&this.fileUploadList.itemPath.length>0&&(t=this.fileUploadList.itemPath.startsWith("/")?this.fileUploadList.itemPath:"/"+this.fileUploadList.itemPath),this.fileUploadList.userId&&this.fileUploadList.itemId?`/users/${this.fileUploadList.userId}/drive/items/${this.fileUploadList.itemId}:${e}`:this.fileUploadList.userId&&this.fileUploadList.itemPath?`/users/${this.fileUploadList.userId}/drive/root:${t}${e}`:this.fileUploadList.groupId&&this.fileUploadList.itemId?`/groups/${this.fileUploadList.groupId}/drive/items/${this.fileUploadList.itemId}:${e}`:this.fileUploadList.groupId&&this.fileUploadList.itemPath?`/groups/${this.fileUploadList.groupId}/drive/root:${t}${e}`:this.fileUploadList.driveId&&this.fileUploadList.itemId?`/drives/${this.fileUploadList.driveId}/items/${this.fileUploadList.itemId}:${e}`:this.fileUploadList.driveId&&this.fileUploadList.itemPath?`/drives/${this.fileUploadList.driveId}/root:${t}${e}`:this.fileUploadList.siteId&&this.fileUploadList.itemId?`/sites/${this.fileUploadList.siteId}/drive/items/${this.fileUploadList.itemId}:${e}`:this.fileUploadList.siteId&&this.fileUploadList.itemPath?`/sites/${this.fileUploadList.siteId}/drive/root:${t}${e}`:this.fileUploadList.itemId?`/me/drive/items/${this.fileUploadList.itemId}:${e}`:this.fileUploadList.itemPath?`/me/drive/root:${t}${e}`:`/me/drive/root:${e}`}sendFileItemGraph(e){return F(this,void 0,void 0,function*(){const t=this.fileUploadList.graph;let i="";if(e.file.sizesuper.requestStateUpdate}});return F(this,void 0,void 0,function*(){for(;t.file.size>t.minSize;){t.mimeStreamString===void 0&&(t.mimeStreamString=yield this.readFileContent(t.file));const o=new Blob([t.mimeStreamString.slice(t.minSize,t.maxSize)]);if(t.percent=Math.round(t.maxSize/t.file.size*100),yield i.requestStateUpdate.call(this,!0),t.uploadUrl!==void 0){const l=yield ke(e,t.uploadUrl,`${t.maxSize-t.minSize}`,`bytes ${t.minSize}-${t.maxSize-1}/${t.file.size}`,o);if(l===null)return null;if(Ue(l))t.minSize=parseInt(l.nextExpectedRanges[0].split("-")[0],10),t.maxSize=t.minSize+this._maxChunkSize,t.maxSize>t.file.size&&(t.maxSize=t.file.size);else if(l.id!==void 0)return l}else return null}})}setUploadSuccess(e){e.percent=100,super.requestStateUpdate(!0),setTimeout(()=>{e.iconStatus=S(_.Success),e.view="twolines",e.fieldUploadResponse="lastModifiedDateTime",e.completed=!0,super.requestStateUpdate(!0),ee(),this.fireCustomEvent("__uploadsuccess")},500)}setUploadFail(e,t){setTimeout(()=>{e.iconStatus=S(_.Fail),e.view="twolines",e.driveItem.description=t,e.fieldUploadResponse="description",e.completed=!0,super.requestStateUpdate(!0),this.fireCustomEvent("__uploadfailed")},500)}readFileContent(e){return new Promise((t,i)=>{const o=new FileReader;o.onloadend=()=>{t(o.result)},o.onerror=l=>{i(l)},o.readAsArrayBuffer(e)})}getFilesFromUploadArea(e){return F(this,void 0,void 0,function*(){const t=[];let i;const o=[];for(const l of e)if(yt(l))if(bt(l))if(i=l.getAsEntry(),D(i))t.push(i);else{const a=l.getAsFile();a&&(this.writeFilePath(a,""),o.push(a))}else if(l.webkitGetAsEntry)if(i=l.webkitGetAsEntry(),D(i))t.push(i);else{const a=l.getAsFile();a&&(this.writeFilePath(a,""),o.push(a))}else{const a=l.getAsFile();a&&(this.writeFilePath(a,""),o.push(a))}else this.writeFilePath(l,""),o.push(l);if(t.length>0){const l=yield this.getFolderFiles(t);o.push(...l)}return o})}getFolderFiles(e){return new Promise(t=>{let i=0;const o=[];e.forEach(r=>{l(r,"")});const l=(r,n)=>{D(r)?a(r.createReader()):vt(r)&&(i++,r.file(c=>{i--,this.writeFilePath(c,n),o.push(c),i===0&&t(o)}))},a=r=>{i++,r.readEntries(n=>{i--;for(const c of n)l(c,c.fullPath);i===0&&t(o)})}})}writeFilePath(e,t){e.fullPath=t}}oe([m({type:Object}),ae("design:type",Array)],O.prototype,"filesToUpload",void 0);oe([m({type:Object}),ae("design:type",Object)],O.prototype,"fileUploadList",void 0);const St=[Z` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{font-size:var(--default-font-size)}:host .title{font-size:14px;font-weight:600;padding:20px 0 12px;line-height:19px}:host .file-list-wrapper{background-color:var(--file-list-background-color,var(--neutral-layer-1));border:var(--file-list-border,none);position:relative;display:flex;flex-direction:column;border-radius:8px}:host .file-list-wrapper .title{font-size:14px;font-weight:600;margin:0 20px -15px}:host .file-list-wrapper .file-list{display:flex;padding:var(--file-list-padding,0);margin:var(--file-list-margin,0);flex-direction:column;list-style:none}:host .file-list-wrapper .file-list .file-item{cursor:pointer;border-radius:var(--file-border-radius)}:host .file-list-wrapper .file-list .file-item:focus,:host .file-list-wrapper .file-list .file-item:focus-within{--file-background-color:var(--file-background-color-focus, var(--neutral-layer-2))}:host .file-list-wrapper .file-list .file-item.selected{--file-background-color:var(--file-background-color-active, var(--neutral-layer-3))}:host .file-list-wrapper .file-list .file-item .mgt-file-item{--file-padding:10px 20px 10px 20px;--file-padding-inline-start:24px;--file-border-radius:2px;--file-background-color:var(--file-item-background-color, var(--neutral-layer-1))}:host .file-list-wrapper .progress-ring{margin:4px auto;width:var(--progress-ring-size,24px);height:var(--progress-ring-size,24px)}:host .file-list-wrapper .show-more{text-align:center;font-size:var(--show-more-button-font-size, 12px);padding:var(--show-more-button-padding,0);border-radius:0 0 var(--show-more-button-border-bottom-right-radius,var(--file-list-border-radius,8px)) var(--show-more-button-border-bottom-left-radius,var(--file-list-border-radius,8px));background-color:var(--show-more-button-background-color,var(--neutral-stroke-divider-rest))}:host .file-list-wrapper .show-more:hover{background-color:var(--show-more-button-background-color-hover,var(--neutral-fill-input-alt-active))}:host .file-list-wrapper .show-more-text{font-size:var(--show-more-button-font-size, 12px)}:host .file-list-wrapper .shared_insight_file{display:flex;align-items:center;padding:11px 20px}:host .file-list-wrapper .shared_insight_file:hover{background-color:var(--file-item-background-color,var(--neutral-layer-1));cursor:pointer}:host .file-list-wrapper .shared_insight_file:last-child{margin-bottom:unset}:host .file-list-wrapper .shared_insight_file .shared_insight_file__icon{width:28px;min-width:28px;height:28px;margin-inline-end:12px;display:flex;align-items:center;justify-content:center}:host .file-list-wrapper .shared_insight_file .shared_insight_file__icon img{height:28px;width:28px}:host .file-list-wrapper .shared_insight_file .shared_insight_file__details{min-width:0;margin-inline-end:40px}:host .file-list-wrapper .shared_insight_file .shared_insight_file__details .shared_insight_file__name{font-size:var(--file-line1-font-size, var(--size-font-size, 12px));color:var(--file-line1-color,var(--neutral-foreground-rest))}:host .file-list-wrapper .shared_insight_file .shared_insight_file__details .shared_insight_file__last-modified{font-size:var(--file-line3-font-size, var(--size-font-size, 12px));color:var(--file-line3-color,var(--secondary-text-color))}:host .file-list-wrapper .shared_insight_file .shared_insight_file__details>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis} +`],_t={showMoreSubtitle:"Show more items",filesSectionTitle:"Files",sharedTextSubtitle:"Shared"};var h=function(s,e,t,i){var o=arguments.length,l=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(s,e,t,i);else for(var r=s.length-1;r>=0;r--)(a=s[r])&&(l=(o<3?a(l):o>3?a(e,t,l):a(e,t))||l);return o>3&&l&&Object.defineProperty(e,t,l),l},f=function(s,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(s,e)},X=function(s,e,t,i){function o(l){return l instanceof t?l:new t(function(a){a(l)})}return new(t||(t=Promise))(function(l,a){function r(d){try{c(i.next(d))}catch(g){a(g)}}function n(d){try{c(i.throw(d))}catch(g){a(g)}}function c(d){d.done?l(d.value):o(d.value).then(r,n)}c((i=i.apply(s,e||[])).next())})};const Lt=()=>{Y(Ge),te(),xt(),J("file-list",p)},P=s=>"lastShared"in s;class p extends $e{static get styles(){return St}get strings(){return _t}get displayName(){return this.strings.filesSectionTitle}get cardTitle(){return this.strings.filesSectionTitle}renderIcon(){return S(_.Files)}static get requiredScopes(){return[...new Set([...Ve.requiredScopes])]}constructor(e){super(),this._isCompact=!1,this.fileQueries=null,this.files=null,this.itemView="threelines",this.fileExtensions=[],this.pageSize=10,this.disableOpenOnClick=!1,this.hideMoreFilesButton=!1,this.enableFileUpload=!1,this.maxUploadFile=10,this.excludedFileExtensions=[],this._preloadedFiles=[],this._focusedItemIndex=-1,this.renderLoading=()=>this.files?this.renderContent():this.renderTemplate("loading",null)||v``,this.renderContent=()=>!this.files||this.files.length===0?this.renderNoData():(this._personCardFiles&&(this.files=this._personCardFiles),this._isCompact?this.renderCompactView():this.renderFullView()),this.onFocusFirstItem=()=>this._focusedItemIndex=0,this.onFileListKeyDown=t=>{const i=this.renderRoot.querySelector(".file-list");let o;if(i!=null&&i.children.length){if((t.code==="ArrowUp"||t.code==="ArrowDown")&&(t.code==="ArrowUp"&&(this._focusedItemIndex===-1&&(this._focusedItemIndex=i.children.length),this._focusedItemIndex=(this._focusedItemIndex-1+i.children.length)%i.children.length),t.code==="ArrowDown"&&(this._focusedItemIndex=(this._focusedItemIndex+1)%i.children.length),o=i.children[this._focusedItemIndex],this.updateItemBackgroundColor(i,o,"focused")),t.code==="Enter"||t.code==="Space"){o=i.children[this._focusedItemIndex];const l=o.children[0];t.preventDefault(),this.fireCustomEvent("itemClick",l.fileDetails),this.handleFileClick(l.fileDetails),this.updateItemBackgroundColor(i,o,"selected")}t.code==="Tab"&&(o=i.children[this._focusedItemIndex])}},this.handleFileClick=(t,i)=>{var o;i&&P(t)&&(!((o=t.resourceReference)===null||o===void 0)&&o.webUrl)&&!this.disableOpenOnClick?(i.preventDefault(),window.open(t.resourceReference.webUrl,"_blank","noreferrer")):!P(t)&&(t!=null&&t.webUrl)&&!this.disableOpenOnClick&&window.open(t.webUrl,"_blank","noreferrer")},this._personCardFiles=e}clearState(){super.clearState(),this.files=null,this._personCardFiles=null}asCompactView(){return this._isCompact=!0,this}asFullView(){return this._isCompact=!1,this}args(){return[this.providerState,this.fileListQuery,this.fileQueries,this.siteId,this.driveId,this.groupId,this.itemId,this.itemPath,this.userId,this.insightType,this.fileExtensions,this.pageSize,this.maxFileSize]}renderCompactView(){const e=this.files.slice(0,3);return this.renderFiles(e)}renderFullView(){return this.renderTemplate("default",{files:this.files})||this.renderFiles(this.files)}renderNoData(){return this.renderTemplate("no-data",null)||(this.enableFileUpload===!0&&z.globalProvider!==void 0?v` +
+ ${this.renderFileUpload()} +
`:v``)}renderFiles(e){return v` +
+ ${this.enableFileUpload?this.renderFileUpload():null} +
    +
  • this.handleItemSelect(e[0],t)}> + ${this.renderFile(e[0])} +
  • + ${Ke(e.slice(1),t=>t.id,t=>v` +
  • this.handleItemSelect(t,i)}> + ${this.renderFile(t)} +
  • + `)} +
+ ${!this.hideMoreFilesButton&&this.pageIterator&&(this.pageIterator.hasNext||this._preloadedFiles.length)&&!this._isCompact?this.renderMoreFileButton():null} +
+ `}renderFile(e){const t=this.itemView;return P(e)?this.renderSharedInsightFile(e):this.renderTemplate("file",{file:e},e.id)||L` + + `}renderSharedInsightFile(e){const t=e.lastShared?v` +
+ ${this.strings.sharedTextSubtitle} ${Ce(new Date(e.lastShared.sharedDateTime))} +
+ `:null;return v` +
this.handleFileClick(e,i)} tabindex="0"> +
+ ${e.resourceVisualization.title} +
+
+
${e.resourceVisualization.title}
+ ${t} +
+
+ `}renderMoreFileButton(){return this._isLoadingMore?v` + + `:v` + this.renderNextPage()} + > + ${this.strings.showMoreSubtitle} + `}renderFileUpload(){const e={graph:z.globalProvider.graph.forComponent(this),driveId:this.driveId,excludedFileExtensions:this.excludedFileExtensions,groupId:this.groupId,itemId:this.itemId,itemPath:this.itemPath,userId:this.userId,siteId:this.siteId,maxFileSize:this.maxFileSize,maxUploadFile:this.maxUploadFile};return L` + + `}loadState(){var e,t;return X(this,void 0,void 0,function*(){const i=z.globalProvider;if(!i||i.state===K.Loading)return;if(i.state===K.SignedOut){this.files=null;return}const o=i.graph.forComponent(this);let l,a;const r=!this.driveId&&!this.siteId&&!this.groupId&&!this.userId;if((this.driveId&&!this.itemId&&!this.itemPath||this.groupId&&!this.itemId&&!this.itemPath||this.siteId&&!this.itemId&&!this.itemPath||this.userId&&!this.insightType&&!this.itemId&&!this.itemPath)&&(this.files=null),!this.files){this.fileListQuery?a=yield Le(o,this.fileListQuery,this.pageSize):this.fileQueries?l=yield Te(o,this.fileQueries):r?this.itemId?a=yield Ie(o,this.itemId,this.pageSize):this.itemPath?a=yield Ee(o,this.itemPath,this.pageSize):this.insightType?l=yield ze(o,this.insightType):a=yield De(o,this.pageSize):this.driveId?this.itemId?a=yield Pe(o,this.driveId,this.itemId,this.pageSize):this.itemPath&&(a=yield Re(o,this.driveId,this.itemPath,this.pageSize)):this.groupId?this.itemId?a=yield Be(o,this.groupId,this.itemId,this.pageSize):this.itemPath&&(a=yield Ae(o,this.groupId,this.itemPath,this.pageSize)):this.siteId?this.itemId?a=yield Oe(o,this.siteId,this.itemId,this.pageSize):this.itemPath&&(a=yield Me(o,this.siteId,this.itemPath,this.pageSize)):this.userId&&(this.itemId?a=yield qe(o,this.userId,this.itemId,this.pageSize):this.itemPath?a=yield Ne(o,this.userId,this.itemPath,this.pageSize):this.insightType&&(l=yield je(o,this.userId,this.insightType))),a&&(this.pageIterator=a,this._preloadedFiles=[...this.pageIterator.value],this._preloadedFiles.length>=this.pageSize?l=this._preloadedFiles.splice(0,this.pageSize):l=this._preloadedFiles.splice(0,this._preloadedFiles.length));let n;if(((e=this.fileExtensions)===null||e===void 0?void 0:e.length)>0){if(!((t=this.pageIterator)===null||t===void 0)&&t.value){for(;this.pageIterator.hasNext;)yield G(this.pageIterator);l=this.pageIterator.value,this._preloadedFiles=[]}n=l.filter(c=>{for(const d of this.fileExtensions)if(d===this.getFileExtension(c.name))return c})}(n==null?void 0:n.length)>=0?(this.files=n,this.pageSize&&(l=this.files.splice(0,this.pageSize),this.files=l)):this.files=l}})}handleItemSelect(e,t){if(this.handleFileClick(e),this.fireCustomEvent("itemClick",e),t){const i=this.renderRoot.querySelector(".file-list"),o=Array.from(i.children),l=t.target.closest("li"),a=o.indexOf(l);this._focusedItemIndex=a;const r=i.children[this._focusedItemIndex];this.updateItemBackgroundColor(i,r,"selected")}}renderNextPage(){return X(this,void 0,void 0,function*(){if(this._preloadedFiles.length>0)this.files=[...this.files,...this._preloadedFiles.splice(0,Math.min(this.pageSize,this._preloadedFiles.length))];else if(this.pageIterator.hasNext){this._isLoadingMore=!0;const e=this.renderRoot.querySelector("#file-list-wrapper");e!=null&&e.animate&&e.animate([{height:"auto",transformOrigin:"top left"},{height:"auto",transformOrigin:"top left"}],{duration:1e3,easing:"ease-in-out",fill:"both"}),yield G(this.pageIterator),this._isLoadingMore=!1,this.files=this.pageIterator.value}this.requestUpdate()})}getFileExtension(e){return/(?:\.([^.]+))?$/.exec(e)[1]||""}updateItemBackgroundColor(e,t,i){for(const o of e.children)o.classList.remove(i),o.removeAttribute("tabindex");t&&(t.classList.add(i),t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),t.setAttribute("tabindex","0"),t.focus());for(const o of e.children)o.classList.remove("selected")}reload(e=!1){e&&ee(),this._task.run()}}h([A(),f("design:type",Object)],p.prototype,"_isCompact",void 0);h([A(),f("design:type",Array)],p.prototype,"_personCardFiles",void 0);h([m({attribute:"file-list-query"}),f("design:type",String)],p.prototype,"fileListQuery",void 0);h([m({attribute:"file-queries",converter:(s,e)=>s?s.split(",").map(t=>t.trim()):null}),f("design:type",Array)],p.prototype,"fileQueries",void 0);h([m({type:Object}),f("design:type",Array)],p.prototype,"files",void 0);h([m({attribute:"site-id"}),f("design:type",String)],p.prototype,"siteId",void 0);h([m({attribute:"drive-id"}),f("design:type",String)],p.prototype,"driveId",void 0);h([m({attribute:"group-id"}),f("design:type",String)],p.prototype,"groupId",void 0);h([m({attribute:"item-id"}),f("design:type",String)],p.prototype,"itemId",void 0);h([m({attribute:"item-path"}),f("design:type",String)],p.prototype,"itemPath",void 0);h([m({attribute:"user-id"}),f("design:type",String)],p.prototype,"userId",void 0);h([m({attribute:"insight-type"}),f("design:type",String)],p.prototype,"insightType",void 0);h([m({attribute:"item-view",converter:s=>Qe(s,"threelines")}),f("design:type",String)],p.prototype,"itemView",void 0);h([m({attribute:"file-extensions",converter:(s,e)=>s.split(",").map(t=>t.trim())}),f("design:type",Array)],p.prototype,"fileExtensions",void 0);h([m({attribute:"page-size",type:Number}),f("design:type",Object)],p.prototype,"pageSize",void 0);h([m({attribute:"disable-open-on-click",type:Boolean}),f("design:type",Object)],p.prototype,"disableOpenOnClick",void 0);h([m({attribute:"hide-more-files-button",type:Boolean}),f("design:type",Object)],p.prototype,"hideMoreFilesButton",void 0);h([m({attribute:"max-file-size",type:Number}),f("design:type",Number)],p.prototype,"maxFileSize",void 0);h([m({attribute:"enable-file-upload",type:Boolean}),f("design:type",Object)],p.prototype,"enableFileUpload",void 0);h([m({attribute:"max-upload-file",type:Number}),f("design:type",Object)],p.prototype,"maxUploadFile",void 0);h([m({attribute:"excluded-file-extensions",converter:(s,e)=>s.split(",").map(t=>t.trim())}),f("design:type",Array)],p.prototype,"excludedFileExtensions",void 0);h([A(),f("design:type",Boolean)],p.prototype,"_isLoadingMore",void 0);export{p as M,Lt as r}; diff --git a/next/sample/pr/3325/assets/mgt-get-nlun5DqF.js b/next/sample/pr/3325/assets/mgt-get-nlun5DqF.js new file mode 100644 index 0000000000..a9afd1d3fa --- /dev/null +++ b/next/sample/pr/3325/assets/mgt-get-nlun5DqF.js @@ -0,0 +1,7 @@ +import{Y as d,a3 as _,Z as x,$ as y,aK as R,aL as O,aO as T,b_ as j,cp as S}from"./App-c9ixsJC9.js";import{b as $,a as w,p as E}from"./index-hkJM60Tb.js";var u=function(t,e,i,o){var a=arguments.length,n=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,i):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(n=(a<3?l(n):a>3?l(e,i,n):l(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n},c=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)},L=function(t,e,i,o){function a(n){return n instanceof i?n:new i(function(l){l(n)})}return new(i||(i=Promise))(function(n,l){function s(p){try{v(o.next(p))}catch(m){l(m)}}function f(p){try{v(o.throw(p))}catch(m){l(m)}}function v(p){p.done?n(p.value):a(p.value).then(s,f)}v((o=o.apply(t,e||[])).next())})};const b=t=>Array.isArray(t==null?void 0:t.value),I=["json","image"],D=t=>typeof t=="string"&&I.includes(t),V=(t,e="json")=>D(t)?t:e,k=t=>t||R.config.response.invalidationPeriod||R.config.defaultInvalidationPeriod,P=()=>R.config.response.isEnabled&&R.config.isEnabled,A=()=>_("get",h);class h extends x{constructor(){super(...arguments),this.scopes=[],this.version="v1.0",this.type="json",this.maxPages=3,this.pollingRate=0,this.cacheEnabled=!1,this.cacheInvalidationPeriod=0,this.isPolling=!1,this.isRefreshing=!1,this.renderLoading=()=>{const e=this.renderTemplate("loading",null);return b(this.response)?this.renderValueContentWithDefaultTemplate(y`${this.response.value.map(i=>this.renderTemplate("value",i,i.id))} ${e} `):e},this.renderContent=()=>{if(this.hasTemplate("value")&&b(this.response)){const e=b(this.response)?y` + ${this.response.value.map(i=>this.renderTemplate("value",i,i.id))} + `:this.renderTemplate("value",this.response);return this.renderValueContentWithDefaultTemplate(e)}else return this.response?this.renderTemplate("default",this.response)||y``:this.hasTemplate("no-data")?this.renderTemplate("no-data",null):y``}}refresh(e=!1){this.isRefreshing=!0,e&&this.clearState(),this._task.run()}clearState(){this.response=null}args(){return[this.providerState,this.resource,this.scopes,this.version,this.pollingRate,this.type,this.maxPages,this.cacheEnabled,this.cacheInvalidationPeriod]}renderValueContentWithDefaultTemplate(e){var i,o;if(this.hasTemplate("default")){const a=this.renderTemplate("default",this.response);return((o=(i=this.templates.value)===null||i===void 0?void 0:i.templateOrder)!==null&&o!==void 0?o:999)>this.templates.default.templateOrder?y` + ${a}${e} + `:y` + ${e}${a} + `}else return e}loadState(){var e,i,o;return L(this,void 0,void 0,function*(){const a=$.globalProvider;if(this.error=null,!(!a||a.state!==w.SignedIn)){if(this.resource){try{let n;const l=`${this.version}${this.resource}`;let s=null;if(this.shouldRetrieveCache()){n=R.getCache(O.get,O.get.stores.responses);const f=P()?yield n.getValue(l):null;f&&k(this.cacheInvalidationPeriod)>Date.now()-f.timeCached&&(s=JSON.parse(f.response))}if(!s){let f=this.resource,v=!1;!((e=this.response)===null||e===void 0)&&e["@odata.deltaLink"]?(f=this.response["@odata.deltaLink"],v=!0):v=new URL(f,"https://graph.microsoft.com").pathname.endsWith("delta");const p=a.graph.forComponent(this);let m=p.api(f).version(this.version);if(!((i=this.scopes)===null||i===void 0)&&i.length&&(m=m.middlewareOptions(E(this.scopes))),this.type==="json"){if(s=yield m.get(),v&&b(this.response)&&b(s)){const g=s.value;s.value=this.response.value.concat(g)}if(!this.isPolling&&!T(this.response,s)&&(this.response=s),b(s)&&s["@odata.nextLink"]){let g=1,r=s;for(;(g-1){const r=this.resource.replace("/photo/$value",""),C=yield j(p,r,this.scopes);C&&(g=C.photo)}else if(this.resource.indexOf("/thumbnails/")>-1){const r=yield S(p,this.resource,this.scopes);r&&(g=r.thumbnail)}g&&(s={image:g})}this.shouldUpdateCache()&&s&&(n=R.getCache(O.get,O.get.stores.responses),yield n.putValue(l,{response:JSON.stringify(s)}))}T(this.response,s)||(this.response=s)}catch(n){this.error=n}this.response&&(this.error=null,this.pollingRate&&setTimeout(()=>{this.isPolling=!0,this.loadState().finally(()=>{this.isPolling=!1})},this.pollingRate))}else this.response=null;this.isRefreshing=!1,this.fireCustomEvent("dataChange",{response:this.response,error:this.error},!0,!1,!0)}})}shouldRetrieveCache(){return P()&&this.cacheEnabled&&!(this.isRefreshing||this.isPolling)}shouldUpdateCache(){return P()&&this.cacheEnabled}}u([d({attribute:"resource",reflect:!0,type:String}),c("design:type",String)],h.prototype,"resource",void 0);u([d({attribute:"scopes",converter:(t,e)=>t?t.toLowerCase().split(","):null,reflect:!0}),c("design:type",Array)],h.prototype,"scopes",void 0);u([d({attribute:"version",reflect:!0,type:String}),c("design:type",Object)],h.prototype,"version",void 0);u([d({attribute:"type",reflect:!0,type:String,converter:t=>V(t,"json")}),c("design:type",String)],h.prototype,"type",void 0);u([d({attribute:"max-pages",reflect:!0,type:Number}),c("design:type",Object)],h.prototype,"maxPages",void 0);u([d({attribute:"polling-rate",reflect:!0,type:Number}),c("design:type",Object)],h.prototype,"pollingRate",void 0);u([d({attribute:"cache-enabled",reflect:!0,type:Boolean}),c("design:type",Object)],h.prototype,"cacheEnabled",void 0);u([d({attribute:"cache-invalidation-period",type:Number}),c("design:type",Object)],h.prototype,"cacheInvalidationPeriod",void 0);u([d({attribute:!1}),c("design:type",Object)],h.prototype,"response",void 0);u([d({attribute:!1}),c("design:type",Object)],h.prototype,"error",void 0);export{A as r}; diff --git a/next/sample/pr/3325/assets/mgt-people-BdxEzgIY.js b/next/sample/pr/3325/assets/mgt-people-BdxEzgIY.js new file mode 100644 index 0000000000..999c02b1db --- /dev/null +++ b/next/sample/pr/3325/assets/mgt-people-BdxEzgIY.js @@ -0,0 +1,28 @@ +import{X as g,Y as d,a2 as m,av as b,a3 as w,Z as x,aw as P,$ as f,a8 as _,ax as S,ay as C,az as I,aA as M,aB as L,aC as k,aD as A}from"./App-c9ixsJC9.js";import{c as $}from"./repeat-BYNG0dST.js";import{b as R,a as z}from"./index-hkJM60Tb.js";const D=[g` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host .people-list{list-style:none;margin:var(--people-list-margin,8px 4px 8px 8px);padding:unset;display:flex;align-items:center;gap:var(--people-avatar-gap,4px)}:host .people-list .people-person{--person-avatar-size:var(--people-person-avatar-size, 24px)}:host .overflow span{vertical-align:middle;color:var(--people-overflow-font-color,currentColor);font-size:var(--people-overflow-font-size, 12px);font-weight:var(--people-overflow-font-weight,400)} +`];var l=function(i,t,e,o){var c=arguments.length,r=c<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,t,e,o);else for(var h=i.length-1;h>=0;h--)(s=i[h])&&(r=(c<3?s(r):c>3?s(t,e,r):s(t,e))||r);return c>3&&r&&Object.defineProperty(t,e,r),r},p=function(i,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,t)},E=function(i,t,e,o){function c(r){return r instanceof e?r:new e(function(s){s(r)})}return new(e||(e=Promise))(function(r,s){function h(u){try{a(o.next(u))}catch(y){s(y)}}function v(u){try{a(o.throw(u))}catch(y){s(y)}}function a(u){u.done?r(u.value):c(u.value).then(h,v)}a((o=o.apply(i,t||[])).next())})};const T=()=>{b(),w("people",n)};class n extends x{static get styles(){return D}static get requiredScopes(){return[...new Set(["user.read.all","people.read","user.readbasic.all","presence.read.all","contacts.read",...P.requiredScopes])]}constructor(){super(),this.personCardInteraction="hover",this.version="v1.0",this.scopes=[],this._peoplePresence={},this._arrowKeyLocation=-1,this.renderContent=()=>!this.people||this.people.length===0?this.renderNoData():this.renderTemplate("default",{people:this.people,max:this.showMax})||this.renderPeople(),this.renderLoading=()=>this.renderTemplate("loading",null)||f``,this.handleKeyDown=t=>{const e=this.shadowRoot.querySelector(".people-list");let o;const c=e==null?void 0:e.children,r=t.key;for(const v of c){const a=v;a.removeAttribute("tabindex"),o=a==null?void 0:a.querySelector("mgt-person"),o=o==null?void 0:o.shadowRoot.querySelector(".person-root"),o==null||o.removeAttribute("tabindex"),a.blur()}t.target===e&&(r==="Tab"||r==="Escape")&&(this._arrowKeyLocation=-1,e==null||e.blur());let s=e==null?void 0:e.childElementCount,h=e==null?void 0:e.querySelector(".overflow");if(h&&(h=h,h.removeAttribute("tabindex"),s--),r==="ArrowRight")this._arrowKeyLocation=(this._arrowKeyLocation+1+s)%s;else if(r==="ArrowLeft")this._arrowKeyLocation=(this._arrowKeyLocation-1+s)%s;else if(["Enter","space"," "].includes(r)&&this.personCardInteraction!=="none"){const a=c[this._arrowKeyLocation].querySelector("mgt-person");a&&a.showPersonCard()}this._arrowKeyLocation>-1&&(o=c[this._arrowKeyLocation],o.setAttribute("tabindex","0"),o.focus(),o=o.querySelector(".people-person"),o==null||o.shadowRoot.querySelector(".person-root").setAttribute("tabindex","0"))},this.showMax=3}clearState(){this.people=null}args(){return[this.providerState,this.groupId,this.userIds,this.peopleQueries,this.showMax,this.resource,this.version,this.fallbackDetails]}updated(t){super.updated(t),this.checkPeopleListAndFireEvent()}checkPeopleListAndFireEvent(){var t;const e=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelector(".people-list");(e==null?void 0:e.childElementCount)>0&&this.fireCustomEvent("people-rendered")}renderPeople(){const t=this.people.slice(0,this.showMax).filter(e=>e);return f` +
    + ${$(t,e=>e.id?e.id:e.displayName,e=>f` +
  • + ${this.renderPerson(e)} +
  • + `)} + ${this.people.length>this.showMax?this.renderOverflow():null} +
+ `}renderOverflow(){const t=this.people.length-this.showMax;return this.renderTemplate("overflow",{extra:t,max:this.showMax,people:this.people})||f` +
  • +${t}
  • + `}renderPerson(t){let e={activity:"Offline",availability:"Offline",id:null};return this.showPresence&&this._peoplePresence&&(e=this._peoplePresence[t.id]),this.renderTemplate("person",{person:t},t.id)||_` + + `}renderNoData(){return this.renderTemplate("no-data",null)||f``}loadState(){return E(this,void 0,void 0,function*(){if(!this.people){const t=R.globalProvider;if(t&&t.state===z.SignedIn){const e=t.graph.forComponent(this);this.groupId?this.people=yield S(e,null,this.groupId,this.showMax,"person"):this.userIds?this.people=yield C(e,this.userIds,"","",this.fallbackDetails):this.peopleQueries?this.people=yield I(e,this.peopleQueries,this.fallbackDetails):this.resource?this.people=yield M(e,this.version,this.resource,this.scopes):this.people=yield L(e),this.showPresence?this._peoplePresence=yield k(e,this.people):this._peoplePresence=null}}})}}l([d({attribute:"group-id",type:String}),p("design:type",String)],n.prototype,"groupId",void 0);l([d({attribute:"user-ids",converter:(i,t)=>i.split(",").map(e=>e.trim())}),p("design:type",Array)],n.prototype,"userIds",void 0);l([d({attribute:"people",type:Object}),p("design:type",Array)],n.prototype,"people",void 0);l([d({attribute:"people-queries",converter:(i,t)=>i.split(",").map(e=>e.trim())}),p("design:type",Array)],n.prototype,"peopleQueries",void 0);l([d({attribute:"show-max",type:Number}),p("design:type",Number)],n.prototype,"showMax",void 0);l([d({attribute:"show-presence",type:Boolean}),p("design:type",Boolean)],n.prototype,"showPresence",void 0);l([d({attribute:"person-card",converter:(i,t)=>A(i,"hover")}),p("design:type",String)],n.prototype,"personCardInteraction",void 0);l([d({attribute:"resource",type:String}),p("design:type",String)],n.prototype,"resource",void 0);l([d({attribute:"version",type:String}),p("design:type",Object)],n.prototype,"version",void 0);l([d({attribute:"scopes",converter:i=>i?i.toLowerCase().split(","):null,reflect:!0}),p("design:type",Array)],n.prototype,"scopes",void 0);l([d({attribute:"fallback-details",type:Array}),p("design:type",Array)],n.prototype,"fallbackDetails",void 0);l([m(),p("design:type",Object)],n.prototype,"_arrowKeyLocation",void 0);export{n as M,T as r}; diff --git a/next/sample/pr/3325/assets/mgt-person-card-Cbp5qkpX.js b/next/sample/pr/3325/assets/mgt-person-card-Cbp5qkpX.js new file mode 100644 index 0000000000..8b6324e191 --- /dev/null +++ b/next/sample/pr/3325/assets/mgt-person-card-Cbp5qkpX.js @@ -0,0 +1,667 @@ +import{m as L,F as U,_ as w,b as M,bz as ue,u as q,r as ge,aF as fe,bA as ve,o as A,bB as me,f as be,g as _e,j as xe,l as ye,c as we,d as ke,c8 as Q,c9 as $e,bD as Se,y as C,z as F,G as H,I as R,bG as te,K as O,M as Y,bL as Ie,Q as oe,R as I,E as N,C as ie,J as Te,bJ as G,bS as Pe,X as z,Z as ne,a8 as y,$ as a,Y as b,a2 as k,a3 as D,a4 as p,a5 as h,cq as P,a6 as E,aQ as Ce,av as se,a7 as T,cr as m,a0 as ze,cs as De,ct as Re,cu as Ee,cv as Le,cw as X,cx as Me,cy as Ae,cz as Be,cA as je,a1 as Oe,au as Ne}from"./App-c9ixsJC9.js";import{c as re,b as j,a as K}from"./index-hkJM60Tb.js";import{r as Ue,M as Fe}from"./mgt-file-list-BTjQjdgt.js";import{r as He}from"./mgt-spinner-DCTBtyM4.js";import{f as We}from"./index-D1MpQKKC.js";import"./repeat-BYNG0dST.js";import"./mgt-file-Dpu464qL.js";class ${static get microsoftTeamsLib(){return this._microsoftTeamsLib||window.microsoftTeams}static set microsoftTeamsLib(e){this._microsoftTeamsLib=e}static get isAvailable(){return this.microsoftTeamsLib?window.parent===window.self&&window.nativeInterface?!0:window.name==="embedded-page-container"||window.name==="extension-tab-frame":!1}static executeDeepLink(e,t){const o=this.microsoftTeamsLib;o.initialize(),o.executeDeepLink(e,t)}}const Ve=(r,e)=>L` + +`;class qe extends U{}const Qe=(r,e)=>L` + +`;class ae extends U{}w([M({mode:"boolean"})],ae.prototype,"disabled",void 0);const Ye=(r,e)=>L` + +`,J={vertical:"vertical",horizontal:"horizontal"};class x extends U{constructor(){super(...arguments),this.orientation=J.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.setTabs=()=>{const e="gridColumn",t="gridRow",o=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((i,n)=>{if(i.slot==="tab"){const s=this.activeTabIndex===n&&this.isFocusableElement(i);this.activeindicator&&this.isFocusableElement(i)&&(this.showActiveIndicator=!0);const l=this.tabIds[n],d=this.tabpanelIds[n];i.setAttribute("id",l),i.setAttribute("aria-selected",s?"true":"false"),i.setAttribute("aria-controls",d),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",s?"0":"-1"),s&&(this.activetab=i,this.activeid=l)}i.style[e]="",i.style[t]="",i.style[o]=`${n+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{const o=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",o),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case _e:e.preventDefault(),this.adjustBackward(e);break;case be:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case ye:e.preventDefault(),this.adjustBackward(e);break;case xe:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case ke:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case we:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=e=>{const t=this.tabs;let o=0;for(o=this.activetab?t.indexOf(this.activetab)+1:1,o===t.length&&(o=0);o1;)if(this.isFocusableElement(t[o])){this.moveToTabByIndex(t,o);break}else{if(this.activetab&&o===t.indexOf(this.activetab))break;o+1>=t.length?o=0:o+=1}},this.adjustBackward=e=>{const t=this.tabs;let o=0;for(o=this.activetab?t.indexOf(this.activetab)-1:0,o=o<0?t.length-1:o;o>=0&&t.length>1;)if(this.isFocusableElement(t[o])){this.moveToTabByIndex(t,o);break}else o-1<0?o=t.length-1:o-=1},this.moveToTabByIndex=(e,t)=>{const o=e[t];this.activetab=o,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,o.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(o=>o.id===e),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(e=>{var t;return(t=e.getAttribute("id"))!==null&&t!==void 0?t:`tab-${Q()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return(t=e.getAttribute("id"))!==null&&t!==void 0?t:`panel-${Q()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===J.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const e=this.isHorizontal()?"gridColumn":"gridRow",t=this.isHorizontal()?"translateX":"translateY",o=this.isHorizontal()?"offsetLeft":"offsetTop",i=this.activeIndicatorRef[o];this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;const n=this.activeIndicatorRef[o];this.activeIndicatorRef.style[e]=`${this.prevActiveTabIndex+1}`;const s=n-i;this.activeIndicatorRef.style.transform=`${t}(${s}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${t}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(e){const t=this.tabs.filter(s=>this.isFocusableElement(s)),o=t.indexOf(this.activetab),i=$e(0,t.length-1,o+e),n=this.tabs.indexOf(t[i]);n>-1&&this.moveToTabByIndex(this.tabs,n)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}w([M],x.prototype,"orientation",void 0);w([M],x.prototype,"activeid",void 0);w([A],x.prototype,"tabs",void 0);w([A],x.prototype,"tabpanels",void 0);w([M({mode:"boolean"})],x.prototype,"activeindicator",void 0);w([A],x.prototype,"activeIndicatorRef",void 0);w([A],x.prototype,"showActiveIndicator",void 0);me(x,Se);const Ge=(r,e)=>C` + ${F("grid")} :host { + box-sizing: border-box; + ${H} + color: ${R}; + grid-template-columns: auto 1fr auto; + grid-template-rows: auto 1fr; + } + + .tablist { + display: grid; + grid-template-rows: calc(${te} * 1px); auto; + grid-template-columns: auto; + position: relative; + width: max-content; + align-self: end; + } + + .start, + .end { + align-self: center; + } + + .activeIndicator { + grid-row: 2; + grid-column: 1; + width: 20px; + height: 3px; + border-radius: calc(${O} * 1px); + justify-self: center; + background: ${Y}; + } + + .activeIndicatorTransition { + transition: transform 0.2s ease-in-out; + } + + .tabpanel { + grid-row: 2; + grid-column-start: 1; + grid-column-end: 4; + position: relative; + } + + :host(.vertical) { + grid-template-rows: auto 1fr auto; + grid-template-columns: auto 1fr; + } + + :host(.vertical) .tablist { + grid-row-start: 2; + grid-row-end: 2; + display: grid; + grid-template-rows: auto; + grid-template-columns: auto 1fr; + position: relative; + width: max-content; + justify-self: end; + align-self: flex-start; + width: 100%; + } + + :host(.vertical) .tabpanel { + grid-column: 2; + grid-row-start: 1; + grid-row-end: 4; + } + + :host(.vertical) .end { + grid-row: 3; + } + + :host(.vertical) .activeIndicator { + grid-column: 1; + grid-row: 1; + width: 3px; + height: 20px; + margin-inline-start: calc(${Ie} * 1px); + border-radius: calc(${O} * 1px); + align-self: center; + background: ${Y}; + } + + :host(.vertical) .activeIndicatorTransition { + transition: transform 0.2s linear; + } + `.withBehaviors(oe(C` + .activeIndicator, + :host(.vertical) .activeIndicator { + background: ${I.Highlight}; + } + `)),Xe=(r,e)=>C` + ${F("inline-flex")} :host { + box-sizing: border-box; + ${H} + height: calc((${te} + (${N} * 2)) * 1px); + padding: 0 calc((6 + (${N} * 2 * ${ie})) * 1px); + color: ${R}; + border-radius: calc(${O} * 1px); + border: calc(${Te} * 1px) solid transparent; + align-items: center; + justify-content: center; + grid-row: 1 / 3; + cursor: pointer; + } + + :host([aria-selected='true']) { + z-index: 2; + } + + :host(:hover), + :host(:active) { + color: ${R}; + } + + :host(:${G}) { + ${Pe} + } + + :host(.vertical) { + justify-content: start; + grid-column: 1 / 3; + } + + :host(.vertical[aria-selected='true']) { + z-index: 2; + } + + :host(.vertical:hover), + :host(.vertical:active) { + color: ${R}; + } + + :host(.vertical:hover[aria-selected='true']) { + } + `.withBehaviors(oe(C` + :host { + forced-color-adjust: none; + border-color: transparent; + color: ${I.ButtonText}; + fill: currentcolor; + } + :host(:hover), + :host(.vertical:hover), + :host([aria-selected='true']:hover) { + background: transparent; + color: ${I.Highlight}; + fill: currentcolor; + } + :host([aria-selected='true']) { + background: transparent; + color: ${I.Highlight}; + fill: currentcolor; + } + :host(:${G}) { + background: transparent; + outline-color: ${I.ButtonText}; + } + `)),Ke=ae.compose({baseName:"tab",template:Qe,styles:Xe}),Je=(r,e)=>C` + ${F("block")} :host { + box-sizing: border-box; + ${H} + padding: 0 calc((6 + (${N} * 2 * ${ie})) * 1px); + } +`,Ze=qe.compose({baseName:"tab-panel",template:Ve,styles:Je}),et=x.compose({baseName:"tabs",template:Ye,styles:Ge}),tt=[z` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{box-shadow:var(--person-card-box-shadow,var(--elevation-shadow-card-rest));width:var(--mgt-flyout-set-width,375px);overflow:hidden;user-select:none;border-radius:8px;background-color:var(--person-card-background-color,var(--neutral-layer-floating));--file-list-background-color:transparent;--file-list-box-shadow:none;--file-item-background-color:transparent}:host .small{max-height:100vh;overflow:hidden auto}:host .nav{height:0;position:relative;z-index:100}:host .nav__back{padding-top:18px;padding-inline-start:12px;height:32px;width:32px}:host .nav__back svg{fill:var(--person-card-icon-color,var(--accent-foreground-rest))}:host .nav__back:hover{cursor:pointer}:host .nav__back:hover svg{fill:var(--person-card-nav-back-arrow-hover-color,var(--neutral-foreground-rest))}:host .close-card-container{position:relative;z-index:100}:host .close-card-container .close-button{position:absolute;right:10px;margin-top:9px;z-index:1;border:1px solid transparent}:host .close-card-container .close-button svg path{fill:var(--person-card-icon-color,var(--accent-foreground-rest))}:host .close-card-container .close-button:hover svg path{fill:var(--person-card-close-button-hover-color,var(--neutral-foreground-rest))}:host .person-details-container{display:flex;flex-direction:column;padding-inline-start:22px;padding-block:36px;border-bottom:1px solid var(--person-card-border-color,var(--neutral-stroke-rest))}:host .person-details-container .person-image{--person-avatar-top-spacing:var(--person-card-avatar-top-spacing, 15px);--person-details-left-spacing:var(--person-card-details-left-spacing, 15px);--person-details-bottom-spacing:var(--person-card-details-bottom-spacing, 0);--person-background-color:var(--person-card-background-color, var(--neutral-layer-floating));--person-line1-font-size:var(--person-card-line1-font-size, 20px);--person-line1-font-weight:var(--person-card-line1-font-weight, 600);--person-line1-text-line-height:var(--person-card-line1-line-height, 28px);--person-line1-text-color:var(--person-card-line1-text-color, var(--neutral-foreground-rest));--person-line2-font-size:var(--person-card-line2-font-size, 14px);--person-line2-font-weight:var(--person-card-line2-font-weight, 400);--person-line2-text-line-height:var(--person-card-line2-line-height, 20px);--person-line2-text-color:var(--person-card-line2-text-color, var(--neutral-foreground-hint));--person-line3-font-size:var(--person-card-line3-font-size, 14px);--person-line3-font-weight:var(--person-card-line3-font-weight, 400);--person-line3-text-line-height:var(--person-card-line3-line-height, 19px);--person-line3-text-color:var(--person-card-line3-text-color, var(--neutral-foreground-hint));--person-avatar-size:var(--person-card-avatar-size, 75px);--person-presence-wrapper-bottom:-15px}:host .person-details-container .base-icons{display:flex;align-items:center;margin-inline-start:var(--person-card-base-icons-left-spacing,calc(var(--person-card-avatar-size,75px) + var(--person-card-details-left-spacing,15px) - 8px));z-index:1}:host .person-details-container .base-icons .icon{display:flex;align-items:center;font-size:13px;white-space:nowrap}:host .person-details-container .base-icons .icon:not(:last-child){margin-inline-end:28px}:host .person-details-container .base-icons .icon svg .filled{display:none}:host .person-details-container .base-icons .icon svg .regular{display:block}:host .person-details-container .base-icons .icon svg path{fill:var(--person-card-icon-color,var(--accent-foreground-rest))}:host .person-details-container .base-icons .icon:active svg .filled,:host .person-details-container .base-icons .icon:hover svg .filled{display:block}:host .person-details-container .base-icons .icon:active svg .regular,:host .person-details-container .base-icons .icon:hover svg .regular{display:none}:host .person-details-container .base-icons .icon:active svg path,:host .person-details-container .base-icons .icon:hover svg path{fill:var(--person-card-icon-hover-color,var(--accent-foreground-hover))}:host .expanded-details-container{display:flex;flex-direction:column;position:relative}:host .expanded-details-container .expanded-details-button{display:flex;justify-content:center;height:32px}:host .expanded-details-container .expanded-details-button svg path{stroke:var(--person-card-icon-color,var(--accent-foreground-rest))}:host .expanded-details-container .expanded-details-button:hover{cursor:pointer;background-color:var(--person-card-expanded-background-color-hover,var(--neutral-fill-hover))}:host .expanded-details-container .sections .section{padding:20px 0;display:flex;flex-direction:column;position:relative}:host .expanded-details-container .sections .section:not(:last-child)::after{position:absolute;content:"";width:90%;transform:translateX(-50%);border-bottom:1px solid var(--person-card-border-color,var(--neutral-stroke-rest));left:50%;bottom:0}:host .expanded-details-container .sections .section__header{display:flex;flex-direction:row;padding:0 20px}:host .expanded-details-container .sections .section__title{flex-grow:1;color:var(--person-card-line1-text-color,var(--neutral-foreground-rest));font-size:14px;font-weight:600;line-height:19px}:host .expanded-details-container .sections .section__show-more{font-size:12px;font-weight:600;align-self:center;vertical-align:top;--base-height-multiplier:6}:host .expanded-details-container .sections .section__show-more:hover{background-color:var(--person-card-fluent-background-color-hover,var(--neutral-fill-hover))}:host .expanded-details-container .sections .section__content{margin-top:14px}:host .expanded-details-container .sections .section .additional-details{padding:0 20px}:host .expanded-details-container .divider{z-index:100;position:relative;width:375px;margin:0;border-style:none;border-bottom:1px solid var(--person-card-border-color,var(--neutral-stroke-rest))}:host .expanded-details-container .section-nav{height:35px}:host .expanded-details-container .section-nav fluent-tabs{grid-template-columns:minmax(1px,0.1fr)}:host .expanded-details-container .section-nav fluent-tabs.horizontal::part(activeIndicator){width:10px}:host .expanded-details-container .section-nav fluent-tabs fluent-tab-panel{max-height:360px;min-height:360px;overflow:hidden auto;padding:0;scrollbar-width:thin}:host .expanded-details-container .section-nav fluent-tabs fluent-tab-panel .inserted{padding:20px 0;max-width:var(--mgt-flyout-set-width,375px);min-width:var(--mgt-flyout-set-width,360px);--file-list-box-shadow:none;--file-list-padding:0}:host .expanded-details-container .section-nav fluent-tabs fluent-tab-panel .inserted .title{font-size:14px;font-weight:600;color:var(--title-color-subtitle,var(--neutral-foreground-rest,#1a1a1a));margin:0 20px 20px;line-height:19px}:host .expanded-details-container .section-nav fluent-tabs fluent-tab-panel .overview-panel{max-width:var(--mgt-flyout-set-width,375px)}:host .expanded-details-container .section-nav fluent-tabs fluent-tab-panel::-webkit-scrollbar{height:4em;width:4px;border-radius:11px}:host .expanded-details-container .section-nav fluent-tabs fluent-tab-panel::-webkit-scrollbar-button{height:1px}:host .expanded-details-container .section-nav fluent-tabs fluent-tab-panel::-webkit-scrollbar-track{border-radius:10px}:host .expanded-details-container .section-nav fluent-tabs fluent-tab-panel::-webkit-scrollbar-thumb{background:grey;border-radius:10px;height:4px}:host .expanded-details-container .section-nav fluent-tabs fluent-tab{padding-bottom:1px!important;border:1px solid transparent!important}:host .expanded-details-container .section-nav fluent-tabs fluent-tab:focus-visible{border:1px solid #2b2b2b!important}:host .expanded-details-container .section-nav fluent-tabs fluent-tab.section-nav__icon{cursor:pointer;box-sizing:border-box;width:53px;height:36px;display:flex;align-items:center;justify-content:center}:host .expanded-details-container .section-nav fluent-tabs fluent-tab.section-nav__icon svg{fill:var(--person-card-fluent-background-color,transparent)}:host .expanded-details-container .section-nav fluent-tabs fluent-tab.section-nav__icon:hover{background:var(--person-card-fluent-background-color-hover,var(--neutral-fill-hover));border-radius:4px;z-index:0;position:relative}:host .expanded-details-container .section-host{min-height:360px;overflow:hidden auto}:host .expanded-details-container .section-host::-webkit-scrollbar{height:4em;width:4px;border-radius:11px}:host .expanded-details-container .section-host::-webkit-scrollbar-button{background:#fff}:host .expanded-details-container .section-host::-webkit-scrollbar-track{background:#fff;border-radius:10px}:host .expanded-details-container .section-host::-webkit-scrollbar-track-piece{background:#fff}:host .expanded-details-container .section-host::-webkit-scrollbar-thumb{background:grey;border-radius:10px;height:4px}:host .expanded-details-container .section-host.small{overflow-y:hidden}:host .loading{margin:40px 20px;display:flex;justify-content:center;height:360px}:host .message-section{border-bottom:1px solid var(--person-card-chat-input-border-color,var(--neutral-foreground-hint));display:flex}:host .message-section fluent-text-field{margin:10px 10px 10px 16px;--neutral-fill-input-rest:$person-card-background-color;--neutral-fill-input-hover:$person-card-chat-input-hover-color;--neutral-fill-input-focus:$person-card-chat-input-focus-color;width:300px;margin-inline-start:16px;border-radius:4px;border:1px solid var(--person-card-chat-input-border-color,var(--neutral-foreground-hint))}:host .message-section .send-message-icon{max-width:15px;margin-top:10px}:host .message-section svg{height:17px;width:16px;fill:var(--person-card-chat-input-border-color,var(--neutral-foreground-hint))}:host .message-section svg:hover{filter:brightness(.5)}:host .message-section svg:disabled{filter:none}:host .person-root.large,:host .person-root.threelines{--person-avatar-size-3-lines:75px}:host fluent-button.close-button.lightweight::part(control),:host fluent-button.expanded-details-button::part(control),:host fluent-button.section__show-more.lightweight::part(control){background:var(--person-card-fluent-background-color,transparent)}:host fluent-button.icon::part(control),:host fluent-button.nav__back::part(control){border:none;padding:0;background:0 0}:host fluent-button.icon::part(control) :hover,:host fluent-button.nav__back::part(control) :hover{background:0 0}[dir=rtl] .base-icons{right:91px}[dir=rtl] .nav__back{width:20px!important;transform:scaleX(-1);filter:fliph;filter:"FlipH"}[dir=rtl] .close-card-container .close-button{right:auto;left:10px}[dir=rtl] .message-section svg{transform:scale(-1,1)}@media (forced-colors:active) and (prefers-color-scheme:dark){.root{border:1px solid #fff;border-radius:inherit}.root svg,.root svg>path{fill:rgb(255,255,255)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}.expanded-details-container>svg,.expanded-details-container>svg>path,svg,svg>path{fill:rgb(255,255,255)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}}@media (forced-colors:active) and (prefers-color-scheme:light){.root{border:1px solid #000;border-radius:inherit}.root svg,.root svg>path{fill:rgb(0,0,0)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}.expanded-details-container>svg,.expanded-details-container>svg>path,svg,svg>path{fill:rgb(0,0,0)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}} +`];var le=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},ce=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)};class S extends ne{get isCompact(){return this._isCompact}constructor(){super(),this.personDetails=null,this.renderLoading=()=>y` +
    + +
    + `,this._isCompact=!1}asCompactView(){return this._isCompact=!0,this}asFullView(){return this._isCompact=!1,this}clearState(){this._isCompact=!1,this.personDetails=null}render(){return this.isCompact?this.renderCompactView():this.renderFullView()}renderNoData(){return a` +
    No data
    + `}navigateCard(e){var t;let o=this.parentNode;for(;o;){o=o.parentNode;const n=o;if(((t=n==null?void 0:n.host)===null||t===void 0?void 0:t.tagName)===`${re.prefix}-PERSON-CARD`.toUpperCase()){o=n.host;break}}o.navigate(e)}}le([b({attribute:"person-details",type:Object}),ce("design:type",Object)],S.prototype,"personDetails",void 0);le([k(),ce("design:type",Boolean)],S.prototype,"_isCompact",void 0);const ot=[z` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host .loading,:host .no-data{margin:0 20px;display:flex;justify-content:center}:host .no-data{font-style:normal;font-weight:600;font-size:14px;color:var(--font-color,#323130);line-height:19px}:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{position:relative;user-select:none}:host .root .part{display:grid;grid-template-columns:auto 1fr auto}:host .root .part .part__icon{display:flex;min-width:20px;width:20px;height:20px;align-items:center;justify-content:center;margin-left:20px;margin-top:10px;line-height:20px}:host .root .part .part__icon svg{fill:var(--contact-copy-icon-color,var(--neutral-foreground-hint))}:host .root .part .part__details{margin:10px 14px;overflow:hidden}:host .root .part .part__details .part__title{font-size:12px;color:var(--contact-title-color,var(--neutral-foreground-hint));line-height:16px}:host .root .part .part__details .part__value{grid-column:2;color:var(--contact-value-color,var(--neutral-foreground-rest));font-size:14px;font-weight:400;line-height:19px}:host .root .part .part__details .part__value .part__link{color:var(--contact-link-color,var(--accent-foreground-rest));font-size:14px;cursor:pointer;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;display:inline-block}:host .root .part .part__details .part__value .part__link:hover{color:var(--contact-link-hover-color,var(--accent-foreground-hover))}:host .root .part .part__copy{width:32px;height:100%;background-color:var(--contact-background-color,transparent);visibility:hidden;display:flex;align-items:center;justify-content:flex-start}:host .root .part .part__copy svg{fill:var(--contact-copy-icon-color,var(--neutral-foreground-hint));cursor:pointer}:host .root .part:hover .part__copy{visibility:visible}:host .root.compact{padding:0}:host .root.compact .part{height:30px;align-items:center}:host .root.compact .part__details{margin:0}:host .root.compact .part__title{display:none}:host .root.compact .part__icon{margin-top:0;margin-right:6px;margin-bottom:2px}[dir=rtl] .part__link.phone{text-align:right;direction:ltr}[dir=rtl] .part__icon{margin:10px 20px 0 0!important}[dir=rtl].compact .part__icon{margin-left:6px!important;margin-top:0!important}@media (forced-colors:active) and (prefers-color-scheme:dark){.root svg{fill:rgb(255,255,255)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}.root svg path,.root svg rect{fill:rgb(255,255,255)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}}@media (forced-colors:active) and (prefers-color-scheme:light){.root svg{fill:rgb(0,0,0)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}.root svg path,.root svg rect{fill:rgb(0,0,0)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}} +`],it={contactSectionTitle:"Contact",emailTitle:"Email",chatTitle:"Teams",businessPhoneTitle:"Business Phone",cellPhoneTitle:"Mobile Phone",departmentTitle:"Department",personTitle:"Title",officeLocationTitle:"Office Location",copyToClipboardButton:"Copy to clipboard"},nt=()=>{D("contact",de)};class de extends S{static get styles(){return ot}get strings(){return it}get hasData(){return this._contactParts?!!Object.values(this._contactParts).filter(t=>!!t.value).length:!1}constructor(e){var t;super(),this._contactParts={email:{icon:p(h.Email),onClick:()=>this.sendEmail(P(this._person)),showCompact:!0,title:this.strings.emailTitle},chat:{icon:p(h.Chat),onClick:()=>{var o;return this.sendChat((o=this._person)===null||o===void 0?void 0:o.userPrincipalName)},showCompact:!1,title:this.strings.chatTitle},businessPhone:{icon:p(h.Phone),onClick:()=>{var o,i;return this.sendCall(((i=(o=this._person)===null||o===void 0?void 0:o.businessPhones)===null||i===void 0?void 0:i.length)>0?this._person.businessPhones[0]:null)},showCompact:!0,title:this.strings.businessPhoneTitle},cellPhone:{icon:p(h.CellPhone),onClick:()=>{var o;return this.sendCall((o=this._person)===null||o===void 0?void 0:o.mobilePhone)},showCompact:!0,title:this.strings.cellPhoneTitle},department:{icon:p(h.Department),showCompact:!1,title:this.strings.departmentTitle},title:{icon:p(h.Person),showCompact:!1,title:this.strings.personTitle},officeLocation:{icon:p(h.OfficeLocation),showCompact:!0,title:this.strings.officeLocationTitle}},this.sendCall=o=>{this.sendLink("tel:",o)},this._person=e,this._contactParts.email.value=P(this._person),this._contactParts.chat.value=this._person.userPrincipalName,this._contactParts.cellPhone.value=this._person.mobilePhone,this._contactParts.department.value=this._person.department,this._contactParts.title.value=this._person.jobTitle,this._contactParts.officeLocation.value=this._person.officeLocation,!((t=this._person.businessPhones)===null||t===void 0)&&t.length&&(this._contactParts.businessPhone.value=this._person.businessPhones[0])}get displayName(){return this.strings.contactSectionTitle}get cardTitle(){return this.strings.contactSectionTitle}renderIcon(){return p(h.Contact)}clearState(){super.clearState();for(const e of Object.keys(this._contactParts))this._contactParts[e].value=null}renderCompactView(){if(!this.hasData)return null;const e=Object.values(this._contactParts).filter(i=>!!i.value);let t=Object.values(e).filter(i=>!!i.value&&i.showCompact);t!=null&&t.length||(t=Object.values(e).slice(0,2));const o=a` + ${t.map(i=>this.renderContactPart(i))} + `;return a` +
    + ${o} +
    + `}renderFullView(){let e;if(this.hasData){const t=Object.values(this._contactParts).filter(o=>!!o.value);e=a` + ${t.map(o=>this.renderContactPart(o))} + `}return a` +
    + ${e} +
    + `}renderContactPart(e){let t=!1;(e.title==="Mobile Phone"||e.title==="Business Phone")&&(t=!0);const o={part__link:!0,phone:t},i=e.onClick?a` + e.onClick(n)}>${e.value} + `:a` + ${e.value} + `;return a` +
    this.handlePartClick(n,e.value)} tabindex="0"> +
    ${e.icon}
    +
    +
    ${e.title}
    +
    ${i}
    +
    +
    + ${p(h.Copy)} +
    +
    + `}handlePartClick(e,t){t&&navigator.clipboard.writeText(t)}sendLink(e,t){t?window.open(`${e}${t}`,"_blank","noreferrer"):console.error(`🦒: Target resource for ${e} link was not provided: resource: ${t}`)}sendChat(e){if(!e){console.error("🦒: Can't send chat when upn is not provided");return}const t=`https://teams.microsoft.com/l/chat/0/0?users=${e}`,o=()=>window.open(t,"_blank","noreferrer");$.isAvailable?$.executeDeepLink(t,i=>{i||o()}):o()}sendEmail(e){this.sendLink("mailto:",e)}}const st=[z` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host .loading,:host .no-data{margin:0 20px;display:flex;justify-content:center}:host .no-data{font-style:normal;font-weight:600;font-size:14px;color:var(--font-color,#323130);line-height:19px}:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{position:relative;user-select:none}:host .root.compact{padding:0}:host .root .message{padding:8px 20px;display:flex;align-items:center;justify-content:space-between}:host .root .message:hover{background-color:var(--message-hover-color,var(--neutral-fill-hover));cursor:pointer}:host .root .message:last-child{margin-bottom:unset}:host .root .message .message__detail{min-width:0;line-height:normal}:host .root .message .message__detail .message__subject{color:var(--message-subject-color,var(--neutral-foreground-color));font-size:var(--message-subject-font-size, 14px);font-weight:var(--message-subject-font-weight,600);line-height:var(--message-subject-line-height, 20px)}:host .root .message .message__detail .message__from{font-size:var(--message-from-font-size, 12px);color:var(--message-from-color,var(--neutral-foreground-color));line-height:var(--message-from-line-height, 16px);font-weight:var(--message-from-font-weight,400)}:host .root .message .message__detail .message__message{font-size:var(--message-from-font-size, 12px);color:var(--message-color,var(--neutral-foreground-hint));line-height:var(--message-from-line-height, 16px);font-weight:var(--message-from-font-weight,400)}:host .root .message .message__detail>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .root .message .message__date{margin-top:8px;font-size:12px;color:var(--message-date-color,var(--neutral-foreground-hint));margin-left:10px;white-space:nowrap} +`],rt={emailsSectionTitle:"Emails"};var at=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},lt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)};const ct=()=>D("messages",W);class W extends S{static get styles(){return st}get strings(){return rt}constructor(e){super(),this._messages=e}get displayName(){return this.strings.emailsSectionTitle}get cardTitle(){return this.strings.emailsSectionTitle}clearState(){super.clearState(),this._messages=[]}renderIcon(){return p(h.Messages)}renderCompactView(){var e;let t;if(!(!((e=this._messages)===null||e===void 0)&&e.length))t=this.renderNoData();else{const o=this._messages?this._messages.slice(0,3).map(i=>this.renderMessage(i)):[];t=a` + ${o} + `}return a` +
    + ${t} +
    + `}renderFullView(){var e;let t;return!((e=this._messages)===null||e===void 0)&&e.length?t=a` + ${this._messages.slice(0,5).map(o=>this.renderMessage(o))} + `:t=this.renderNoData(),a` +
    + ${t} +
    + `}renderMessage(e){return a` +
    this.handleMessageClick(e)}> +
    +
    ${e.subject}
    +
    ${e.from.emailAddress.name}
    +
    ${e.bodyPreview}
    +
    +
    ${Ce(new Date(e.receivedDateTime))}
    +
    + `}handleMessageClick(e){window.open(e.webLink,"_blank","noreferrer")}}at([k(),lt("design:type",Array)],W.prototype,"_messages",void 0);const dt=[z` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host .loading,:host .no-data{margin:0 20px;display:flex;justify-content:center}:host .no-data{font-style:normal;font-weight:600;font-size:14px;color:var(--font-color,#323130);line-height:19px}:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{position:relative;user-select:none}:host .root.compact{padding:0}:host .root.compact .coworker .coworker__person-image{height:40px;width:40px;border-radius:40px;--person-avatar-size:40px;margin-right:12px}:host .root.compact .coworker .coworker__name{font-size:14px}:host .root.compact .coworker .coworker__title{font-size:12px}:host .root .subtitle{color:var(--organization-sub-title-color,var(--neutral-foreground-hint));font-size:14px;margin:0 20px 8px}:host .root .divider{display:flex;background:var(--organization-coworker-border-color,var(--neutral-stroke-rest));height:1px;margin:26px 20px 18px}:host .root .org-member{height:74px;box-sizing:border-box;border-radius:2px;padding:12px;display:flex;align-items:center;margin-inline:20px}:host .root .org-member.org-member--target{background-color:var(--organization-active-org-member-target-background-color,var(--neutral-fill-active));border:1px solid var(--organization-active-org-member-border-color,var(--accent-foreground-rest))}:host .root .org-member:not(.org-member--target){border:1px solid var(--organization-coworker-border-color,var(--neutral-stroke-rest))}:host .root .org-member:not(.org-member--target):hover{cursor:pointer;background-color:var(--organization-hover-color,var(--neutral-fill-hover))}:host .root .org-member .org-member__person{flex-grow:1}:host .root .org-member .org-member__person .org-member__person-image{--person-avatar-size:var(--organization-member-person-avatar-size, 40px)}:host .root .org-member .org-member__details{flex-grow:1}:host .root .org-member .org-member__details .org-member__name{font-size:16px;color:var(--organization-title-color,var(--neutral-foreground-rest));font-weight:600}:host .root .org-member .org-member__details .org-member__department,:host .root .org-member .org-member__details .org-member__title{font-weight:14px;color:var(--organization-sub-title-color,var(--neutral-foreground-hint))}:host .root .org-member__separator:not(:last-child){border:1px solid var(--organization-coworker-border-color,var(--neutral-stroke-rest));box-sizing:border-box;width:0;margin:0 50%;height:14px}:host .root .coworker{display:flex;align-items:center;padding:10px 20px}:host .root .coworker:hover{cursor:pointer;background-color:var(--organization-coworker-hover-color,var(--neutral-fill-hover))}:host .root .coworker .coworker__person{height:46px;border-radius:46px;margin-right:8px}:host .root .coworker .coworker__person .coworker__person-image{--person-avatar-size:var(--organization-coworker-person-avatar-size, 40px)}:host .root .direct-report__compact{padding:12px 20px}:host .root .direct-report__compact .direct-report{margin-right:4px;padding:4px 0;cursor:pointer}:host .root .direct-report-list{border:1px solid var(--organization-coworker-border-color,var(--neutral-stroke-rest));margin-inline:20px}:host .root .direct-report-list .org-member--direct-report{border:none;cursor:pointer;margin-inline:0}:host .root .direct-report-list .org-member--direct-report .direct-report__person-image{--person-avatar-size:var(--organization-direct-report-person-avatar-size, 38px)}[dir=rtl] .org-member .org-member__more{transform:scaleX(-1);filter:fliph;filter:"FlipH"}@media (forced-colors:active) and (prefers-color-scheme:dark){:host svg,:host svg>path{fill:rgb(255,255,255)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}}@media (forced-colors:active) and (prefers-color-scheme:light){:host svg,:host svg>path{fill:rgb(0,0,0)!important;fill-rule:nonzero!important;clip-rule:nonzero!important}} +`],pt={reportsToSectionTitle:"Reports to",directReportsSectionTitle:"Direct reports",organizationSectionTitle:"Organization",youWorkWithSubSectionTitle:"You work with",userWorksWithSubSectionTitle:"works with"};var pe=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},he=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)};const ht=()=>{se(),D("organization",B)};class B extends S{static get styles(){return dt}get strings(){return pt}constructor(e,t){super(),this._state=e,this._me=t}clearState(){super.clearState(),this._state=void 0,this._me=void 0}get displayName(){const{person:e,directReports:t}=this._state;return!e.manager&&(t!=null&&t.length)?`${this.strings.directReportsSectionTitle} (${t.length})`:this.strings.reportsToSectionTitle}get cardTitle(){return this.strings.organizationSectionTitle}renderIcon(){return p(h.Organization)}renderCompactView(){var e;let t;if(!(!((e=this._state)===null||e===void 0)&&e.person))return null;const{person:o,directReports:i}=this._state;if(o)o.manager?t=this.renderCoworker(o.manager):i!=null&&i.length&&(t=this.renderCompactDirectReports());else return null;return a` +
    + ${t} +
    + `}renderFullView(){var e;let t;if(!(!((e=this._state)===null||e===void 0)&&e.person))return null;const{person:o,directReports:i,people:n}=this._state;if(!o&&!i&&!n)return null;{const s=this.renderManagers(),l=this.renderCurrentUser(),d=this.renderDirectReports(),c=this.renderCoworkers();t=a` + ${s} ${l} ${d} ${c} + `}return a` +
    + ${t} +
    + `}renderManager(e){return y` +
    {(t.code==="Enter"||t.code===" ")&&this.navigateCard(e)}} + @click=${()=>this.navigateCard(e)} + > +
    + +
    +
    + ${p(h.ExpandRight)} +
    +
    +
    + `}renderManagers(){const{person:e}=this._state;if(!(e!=null&&e.manager))return null;const t=[];let o=e;for(;o.manager;)t.push(o.manager),o=o.manager;return t.length?t.reverse().map(i=>this.renderManager(i)):null}renderDirectReports(){const{directReports:e}=this._state;return e!=null&&e.length?a` +
    +
    + ${e.map(t=>y` +
    {(o.code==="Enter"||o.code===" ")&&this.navigateCard(t)}} + @click=${()=>this.navigateCard(t)} + > +
    + +
    +
    + ${p(h.ExpandRight)} +
    +
    + `)} +
    + `:null}renderCompactDirectReports(){const{directReports:e}=this._state;return a` +
    + ${e.slice(0,6).map(t=>y` +
    {(o.code==="Enter"||o.code===" ")&&this.navigateCard(t)}} + @click=${()=>this.navigateCard(t)} + > + +
    + `)} +
    + `}renderCurrentUser(){const{person:e}=this._state;return y` +
    +
    + +
    +
    + `}renderCoworker(e){return y` +
    {(t.code==="Enter"||t.code===" ")&&this.navigateCard(e)}} + @click=${()=>this.navigateCard(e)} + > +
    + +
    +
    + `}renderCoworkers(){const{people:e}=this._state;if(!(e!=null&&e.length))return null;const t=this._me.id===this._state.person.id?this.strings.youWorkWithSubSectionTitle:`${this._state.person.givenName} ${this.strings.userWorksWithSubSectionTitle}`;return a` +
    +
    ${t}
    +
    + ${e.slice(0,6).map(o=>this.renderCoworker(o))} +
    + `}}pe([k(),he("design:type",Object)],B.prototype,"_state",void 0);pe([k(),he("design:type",Object)],B.prototype,"_me",void 0);const ut=[z` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host .loading,:host .no-data{margin:0 20px;display:flex;justify-content:center}:host .no-data{font-style:normal;font-weight:600;font-size:14px;color:var(--font-color,#323130);line-height:19px}:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{position:relative;user-select:none;background-color:var(--profile-background-color,--neutral-layer-1)}:host .root{padding:20px 0}:host .root.compact{padding:0}:host .root .title{font-size:14px;font-weight:600;color:var(--profile-title-color,var(--neutral-foreground-rest));margin:0 20px 12px}:host .root section{margin-bottom:24px;padding:0 20px}:host .root section:last-child{margin:0}:host .root section .section__title{font-size:14px;color:var(--profile-section-title-color,var(--neutral-foreground-hint))}:host .root section .section__content{display:flex;flex-direction:column;margin-top:10px}:host .root .token-list{display:flex;flex-flow:row wrap;margin-top:-10px}:host .root .token-list .token-list__item{text-overflow:ellipsis;white-space:nowrap;display:inline-block;overflow:hidden;font-size:14px;align-items:center;background:var(--profile-token-item-background-color,var(--neutral-fill-secondary-rest));border-radius:2px;max-height:28px;padding:4px 8px;margin-right:10px;margin-top:10px;color:var(--profile-token-item-color,var(--neutral-foreground-rest))}:host .root .token-list .token-list__item:last-child{margin-right:initial}:host .root .token-list .token-list__item.overflow{display:none}:host .root .token-list .token-list__item.token-list__item--show-overflow{cursor:pointer;user-select:unset;background:0 0;color:var(--profile-token-overflow-color,var(--accent-foreground-rest))}:host .root .data-list__item{margin-bottom:20px}:host .root .data-list__item:last-child{margin-bottom:initial}:host .root .data-list__item .data-list__item__header{display:flex;justify-content:space-between;align-items:center}:host .root .data-list__item .data-list__item__content{font-size:12px;line-height:16px;color:var(--profile-section-title-color,var(--neutral-foreground-hint));margin-top:4px}:host .root .data-list__item .data-list__item__title{font-size:14px;line-height:16px;color:var(--profile-title-color,var(--neutral-foreground-rest))}:host .root .data-list__item .data-list__item__date-range{color:var(--profile-section-title-color,var(--neutral-foreground-hint));font-size:10px;line-height:12px}:host .root .language__proficiency{opacity:.77}:host .root .work-position .work-position__company{color:#023b8f}:host .root .work-position .work-position__location{font-size:10px;color:var(--profile-section-title-color,var(--neutral-foreground-hint));line-height:16px}:host .root .educational-activity .educational-activity__degree{font-size:12px;line-height:14px;color:var(--profile-section-title-color,var(--neutral-foreground-hint))}:host .root .birthday{display:flex;align-items:center;margin-top:-6px}:host .root .birthday .birthday__icon{margin-right:8px}:host .root .birthday .birthday__date{font-size:12px;color:var(--profile-title-color,var(--neutral-foreground-rest))}[dir=rtl] .token-list__item{margin-right:0!important} +`],gt={SkillsAndExperienceSectionTitle:"Skills & Experience",AboutCompactSectionTitle:"About",SkillsSubSectionTitle:"Skills",LanguagesSubSectionTitle:"Languages",WorkExperienceSubSectionTitle:"Work Experience",EducationSubSectionTitle:"Education",professionalInterestsSubSectionTitle:"Professional Interests",personalInterestsSubSectionTitle:"Personal Interests",birthdaySubSectionTitle:"Birthday",currentYearSubtitle:"Current",socialMediaSubSectionTitle:"Social Media"};var ft=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},Z=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)};const vt=()=>D("profile",V);class V extends S{static get styles(){return ut}get strings(){return gt}get displayName(){return this.strings.SkillsAndExperienceSectionTitle}get cardTitle(){return this.strings.AboutCompactSectionTitle}get hasData(){var e,t;if(!this.profile)return!1;const{languages:o,skills:i,positions:n,educationalActivities:s}=this.profile;return[this._birthdayAnniversary,(e=this._personalInterests)===null||e===void 0?void 0:e.length,(t=this._professionalInterests)===null||t===void 0?void 0:t.length,o==null?void 0:o.length,i==null?void 0:i.length,n==null?void 0:n.length,s==null?void 0:s.length].filter(l=>!!l).length>0}get profile(){return this._profile}set profile(e){e!==this._profile&&(this._profile=e,this._birthdayAnniversary=e!=null&&e.anniversaries?e.anniversaries.find(this.isBirthdayAnniversary):null,this._personalInterests=e!=null&&e.interests?e.interests.filter(this.isPersonalInterest):null,this._professionalInterests=e!=null&&e.interests?e.interests.filter(this.isProfessionalInterest):null)}constructor(e){super(),this.isPersonalInterest=t=>{var o;return(o=t.categories)===null||o===void 0?void 0:o.includes("personal")},this.isProfessionalInterest=t=>{var o;return(o=t.categories)===null||o===void 0?void 0:o.includes("professional")},this.isBirthdayAnniversary=t=>t.type==="birthday",this.profile=e}renderIcon(){return p(h.Profile)}clearState(){super.clearState(),this.profile=null}renderCompactView(){return a` +
    + ${this.renderSubSections().slice(0,2)} +
    + `}renderFullView(){return this.initPostRenderOperations(),a` +
    + ${this.renderSubSections()} +
    + `}renderSubSections(){return[this.renderSkills(),this.renderBirthday(),this.renderLanguages(),this.renderWorkExperience(),this.renderEducation(),this.renderProfessionalInterests(),this.renderPersonalInterests()].filter(t=>!!t)}renderLanguages(){var e;const{languages:t}=this._profile;if(!(t!=null&&t.length))return null;const o=[];for(const n of t){let s=null;!((e=n.proficiency)===null||e===void 0)&&e.length&&(s=a` + +  (${n.proficiency}) + + `),o.push(a` +
    + ${n.displayName} + ${s} +
    + `)}const i=o.length?this.strings.LanguagesSubSectionTitle:"";return a` +
    +
    ${i}
    +
    +
    + ${o} +
    +
    +
    + `}renderSkills(){const{skills:e}=this._profile;if(!(e!=null&&e.length))return null;const t=[];for(const i of e)t.push(a` +
    + ${i.displayName} +
    + `);const o=t.length?this.strings.SkillsSubSectionTitle:"";return a` +
    +
    ${o}
    +
    +
    + ${t} +
    +
    +
    + `}renderWorkExperience(){var e,t,o,i,n;const{positions:s}=this._profile;if(!(s!=null&&s.length))return null;const l=[];for(const c of this._profile.positions)(c.detail.description||c.detail.jobTitle!=="")&&l.push(a` +
    +
    +
    ${(e=c.detail)===null||e===void 0?void 0:e.jobTitle}
    +
    + ${this.getDisplayDateRange(c.detail)} +
    +
    +
    +
    + ${(o=(t=c==null?void 0:c.detail)===null||t===void 0?void 0:t.company)===null||o===void 0?void 0:o.displayName} +
    +
    + ${this.displayLocation((n=(i=c==null?void 0:c.detail)===null||i===void 0?void 0:i.company)===null||n===void 0?void 0:n.address)} +
    +
    +
    + `);const d=l.length?this.strings.WorkExperienceSubSectionTitle:"";return a` +
    +
    ${d}
    +
    +
    + ${l} +
    +
    +
    + `}renderEducation(){const{educationalActivities:e}=this._profile;if(!(e!=null&&e.length))return null;const t=[];for(const i of e)t.push(a` +
    +
    +
    ${i.institution.displayName}
    +
    + ${this.getDisplayDateRange(i)} +
    +
    + ${i.program.displayName?a`
    +
    + ${i.program.displayName} +
    `:T} +
    + `);const o=t.length?this.strings.EducationSubSectionTitle:"";return a` +
    +
    ${o}
    +
    +
    + ${t} +
    +
    +
    + `}renderProfessionalInterests(){var e;if(!(!((e=this._professionalInterests)===null||e===void 0)&&e.length))return null;const t=[];for(const i of this._professionalInterests)t.push(a` +
    + ${i.displayName} +
    + `);const o=t.length?this.strings.professionalInterestsSubSectionTitle:"";return a` +
    +
    ${o}
    +
    +
    + ${t} +
    +
    +
    + `}renderPersonalInterests(){var e;if(!(!((e=this._personalInterests)===null||e===void 0)&&e.length))return null;const t=[];for(const i of this._personalInterests)t.push(a` +
    + ${i.displayName} +
    + `);const o=t.length?this.strings.personalInterestsSubSectionTitle:"";return a` +
    +
    ${o}
    +
    +
    + ${t} +
    +
    +
    + `}renderBirthday(){var e;return!((e=this._birthdayAnniversary)===null||e===void 0)&&e.date?a` +
    +
    Birthday
    +
    +
    +
    + ${p(h.Birthday)} +
    +
    + ${this.getDisplayDate(new Date(this._birthdayAnniversary.date))} +
    +
    +
    +
    + `:null}getDisplayDate(e){return e.toLocaleString("default",{day:"numeric",month:"long"})}getDisplayDateRange(e){if(!e.startMonthYear)return T;const t=new Date(e.startMonthYear).getFullYear();if(t===0||t===1)return T;const o=e.endMonthYear?new Date(e.endMonthYear).getFullYear():this.strings.currentYearSubtitle;return`${t} — ${o}`}displayLocation(e){return e!=null&&e.city?e.state?`${e.city}, ${e.state}`:e.city:T}initPostRenderOperations(){setTimeout(()=>{try{this.shadowRoot.querySelectorAll("section").forEach(t=>{this.handleTokenOverflow(t)})}catch{}},0)}handleTokenOverflow(e){const t=e.querySelectorAll(".token-list");if(t!=null&&t.length)for(const o of Array.from(t)){const i=o.querySelectorAll(".token-list__item");if(!(i!=null&&i.length))continue;let n=null,s=i[0].getBoundingClientRect();const l=o.getBoundingClientRect(),d=s.height*2+l.top;for(let c=0;cd){n=Array.from(i).slice(c,i.length);break}if(n){n.forEach(_=>_.classList.add("overflow"));const c=document.createElement("div");c.classList.add("token-list__item"),c.classList.add("token-list__item--show-overflow"),c.tabIndex=0,c.innerText=`+ ${n.length} more`;const f=()=>{c.remove(),n.forEach(_=>_.classList.remove("overflow"))};c.addEventListener("click",()=>{f()}),c.addEventListener("keydown",_=>{_.code==="Enter"&&f()}),o.appendChild(c)}}}}ft([b({attribute:!1}),Z("design:type",Object),Z("design:paramtypes",[Object])],V.prototype,"profile",null);const mt=()=>{const r=[];return m.sections.files&&r.push("Sites.Read.All"),m.sections.mailMessages&&(r.push("Mail.Read"),r.push("Mail.ReadBasic")),m.sections.organization&&(r.push("User.Read.All"),m.sections.organization.showWorksWith&&r.push("People.Read.All")),m.sections.profile&&r.push("User.Read.All"),m.useContactApis&&r.push("Contacts.Read"),r.indexOf("User.Read.All")<0&&(r.push("User.ReadBasic.All"),r.push("User.Read")),r.indexOf("People.Read.All")<0&&r.push("People.Read"),m.isSendMessageVisible&&r.push("Chat.ReadWrite"),[...new Set(r)]},bt={showMoreSectionButton:"Show more",endOfCard:"End of the card",quickMessage:"Send a quick message",expandDetailsLabel:"Expand details",sendMessageLabel:"Send message",emailButtonLabel:"Email",callButtonLabel:"Call",chatButtonLabel:"Chat",closeCardLabel:"Close card",videoButtonLabel:"Video",goBackLabel:"Go Back"};var v=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},u=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ee=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function l(f){try{c(o.next(f))}catch(_){s(_)}}function d(f){try{c(o.throw(f))}catch(_){s(_)}}function c(f){f.done?n(f.value):i(f.value).then(l,d)}c((o=o.apply(r,e||[])).next())})};const It=()=>{ze(Ne,et,Ke,Ze,Oe,We),D("person-card",g),He(),nt(),ht(),ct(),Ue(),vt(),customElements.get(De("person"))||se()};class g extends ne{static get styles(){return tt}get strings(){return bt}static get requiredScopes(){return mt()}get personDetails(){return this._personDetails}set personDetails(e){this._personDetails!==e&&(this._personDetails=e,this.personImage=this.getImage())}get personQuery(){return this._personQuery}set personQuery(e){this._personQuery!==e&&(this._personQuery=e,this.personDetails=null,this._cardState=null)}get userId(){return this._userId}set userId(e){e!==this._userId&&(this._userId=e,this.personDetails=null,this._cardState=null)}get internalPersonDetails(){var e;return((e=this._cardState)===null||e===void 0?void 0:e.person)||this.personDetails}constructor(){super(),this.isSendingMessage=!1,this.goBack=()=>{var e;if(!(!((e=this._history)===null||e===void 0)&&e.length))return;const t=this._history.pop();this._currentSection=null;const o=this.renderRoot.querySelector("fluent-tab");o&&o.click(),this._cardState=t.state,this._personDetails=t.state.person,this.personImage=t.personImage,this.loadSections()},this.renderContent=()=>{var e;if(!this.internalPersonDetails)return this.renderNoData();const t=this.internalPersonDetails,o=this.getImage();if(this.hasTemplate("default"))return this.renderTemplate("default",{person:this.internalPersonDetails,personImage:o});let i;i=this.strings.closeCardLabel;const n=this.isExpanded?a` +
    + + ${p(h.Close)} + +
    + `:null;i=this.strings.goBackLabel;const s=!((e=this._history)===null||e===void 0)&&e.length?a` + + `:null;let l=this.renderTemplate("person-details",{person:this.internalPersonDetails,personImage:o});if(!l){const f=this.renderPerson(),_=this.renderContactIcons(t);l=a` + ${f} ${_} + `}const d=this.isExpanded?this.renderExpandedDetails():this.renderExpandedDetailsButton();this._windowHeight=window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight,this._windowHeight<250&&(this._smallView=!0);const c=this.lockTabNavigation?a`
    `:a``;return a` +
    +
    + ${s} + ${n} +
    ${l}
    +
    ${d}
    + ${c} +
    +
    + `},this.handleEndOfCard=e=>{if(e&&e.code==="Tab"){const t=this.renderRoot.querySelector("#end-of-container");if(t){t.blur();const o=this.renderRoot.querySelector("mgt-person");o&&o.focus()}}},this.closeCard=()=>{this.updateCurrentSection(null),this.isExpanded=!1},this.sendQuickMessage=()=>ee(this,void 0,void 0,function*(){const e=this._chatInput.trim();if(!(e!=null&&e.length))return;const t=this.personDetails,o=this._me.userPrincipalName;this.isSendingMessage=!0;const i=yield Re(this._graph,t.userPrincipalName,o),n={body:{content:e}};yield Ee(this._graph,i.id,n),this.isSendingMessage=!1,this.clearInputData()}),this.emailUser=()=>{const e=this.internalPersonDetails;if(e){const t=P(e);t&&window.open("mailto:"+t,"_blank","noreferrer")}},this.callUser=()=>{var e,t;const o=this.internalPersonDetails,i=this.internalPersonDetails;if(!((e=o==null?void 0:o.businessPhones)===null||e===void 0)&&e.length){const n=o.businessPhones[0];n&&window.open("tel:"+n,"_blank","noreferrer")}else if(!((t=i==null?void 0:i.phones)===null||t===void 0)&&t.length){const s=this.getPersonBusinessPhones(i)[0];s&&window.open("tel:"+s,"_blank","noreferrer")}},this.chatUser=(e=null)=>{const t=this.personDetails;if(t!=null&&t.userPrincipalName){let i=`https://teams.microsoft.com/l/chat/0/0?users=${t.userPrincipalName}`;e!=null&&e.length&&(i+=`&message=${e}`);const n=()=>window.open(i,"_blank","noreferrer");$.isAvailable?$.executeDeepLink(i,s=>{s||n()}):n()}},this.videoCallUser=()=>{const e=this.personDetails;if(e!=null&&e.userPrincipalName||e!=null&&e.mail){const o=`https://teams.microsoft.com/l/call/0/0?users=${e.userPrincipalName||e.mail}&withVideo=true`,i=()=>window.open(o,"_blank");$.isAvailable?$.executeDeepLink(o,n=>{n||i()}):i()}},this.showExpandedDetails=()=>{const e=this.renderRoot.querySelector(".root");e!=null&&e.animate&&e.animate([{height:"auto",transformOrigin:"top left"},{height:"auto",transformOrigin:"top left"}],{duration:1e3,easing:"ease-in-out",fill:"both"}),this.isExpanded=!0,this.fireCustomEvent("expanded",null,!0)},this.sendQuickMessageOnEnter=e=>{e.code==="Enter"&&this.sendQuickMessage()},this.handleGoBack=e=>{e.code==="Enter"&&this.goBack()},this._chatInput="",this._currentSection=null,this._history=[],this.sections=[],this._graph=null}navigate(e){this._history.push({personDetails:this.personDetails,personImage:this.getImage(),state:this._cardState}),this.personDetails=e,this._cardState=null,this.personImage=null,this._currentSection=null,this.sections=[],this._chatInput=""}clearHistory(){var e;if(this._currentSection=null,!(!((e=this._history)===null||e===void 0)&&e.length))return;const t=this._history[0];this._history=[],this._cardState=t.state,this._personDetails=t.personDetails,this.personImage=t.personImage,this.loadSections()}args(){return[this.providerState,this.personDetails,this.personQuery,this.personImage,this.userId]}renderNoData(){return this.renderTemplate("no-data",null)||a``}renderPerson(){return y` + + `}renderPersonSubtitle(e){if(e=e||this.internalPersonDetails,!(!Le(e)||!e.department))return a` +
    ${e.department}
    + `}renderContactIcons(e){e=e||this.internalPersonDetails;const t=e;let o,i;P(e)&&(o=`${this.strings.emailButtonLabel} ${e.displayName}`,i=a` + + ${p(h.SmallEmail)} + + `);let n;(t!=null&&t.userPrincipalName||t!=null&&t.mail)&&(o=`${this.strings.chatButtonLabel} ${e.displayName}`,n=a` + + ${p(h.SmallChat)} + + `);let s;(t!=null&&t.userPrincipalName||t!=null&&t.mail)&&(o=`${this.strings.videoButtonLabel} ${e.displayName}`,s=a` + + ${p(h.Video)} + + `);let l;return this.hasPhone&&(o=`${this.strings.callButtonLabel} ${t.displayName}`,l=a` + + ${p(h.Call)} + + `),a` +
    + ${i} ${n} ${s} ${l} +
    + `}renderExpandedDetailsButton(){return a` + + ${p(h.ExpandDown)} + + `}renderExpandedDetails(){if(!this._cardState&&this._isStateLoading)return y` +
    + +
    + `;j.globalProvider.state===K.SignedOut&&this.loadSections();const t=this.renderSectionNavigation();return a` +
    + ${t} +
    +
    +
    this.handleSectionScroll(o)} + tabindex=0 + >
    + `}renderSectionNavigation(){if(!this.sections||this.sections.length<2&&!this.hasTemplate("additional-details"))return;const e=this._currentSection?this.sections.indexOf(this._currentSection):-1,t=this.sections.map((n,s)=>{const l=n.tagName.toLowerCase(),d=E({active:s===e,"section-nav__icon":!0});return a` + this.updateCurrentSection(n)} + > + ${n.renderIcon()} + + `}),o=this.sections.map(n=>a` + +
    +
    ${n.cardTitle}
    + ${this._currentSection?n.asFullView():null} +
    +
    + `),i=E({active:e===-1,"section-nav__icon":!0,overviewTab:!0});return a` + this.handleSectionScroll(n)} + > + this.updateCurrentSection(null)} + > +
    ${p(h.Overview)}
    +
    + ${t} + +
    ${this._currentSection?null:this.renderOverviewSection()}
    +
    + ${o} +
    + `}renderOverviewSection(){const e=this.sections.map(o=>a` +
    +
    +
    ${o.displayName}
    + this.updateCurrentSection(o)} + > + ${this.strings.showMoreSectionButton} + +
    +
    ${o.asCompactView()}
    +
    + `),t=this.renderTemplate("additional-details",{person:this.internalPersonDetails,personImage:this.getImage(),state:this._cardState});return t&&e.splice(1,0,a` +
    +
    ${t}
    +
    + `),a` +
    + ${this.renderMessagingSection()} + ${e} +
    + `}renderCurrentSection(){var e;if(!(!(!((e=this.sections)===null||e===void 0)&&e.length)&&!this.hasTemplate("additional-details")))return this.sections.length===1&&!this.hasTemplate("additional-details")?a` + ${this.sections[0].asFullView()} + `:this._currentSection?a` + ${this._currentSection.asFullView()} + `:this.renderOverviewSection()}renderMessagingSection(){const e=this.personDetails,t=this._me.userPrincipalName,o=this._chatInput;if((e==null?void 0:e.userPrincipalName)!==t)return m.isSendMessageVisible?a` +
    + {this._chatInput=i.target.value,this.requestUpdate()}} + @keydown="${i=>this.sendQuickMessageOnEnter(i)}"> + + + ${this.isSendingMessage?p(h.Confirmation):p(h.Send)} + +
    + `:T}loadState(){var e,t,o;return ee(this,void 0,void 0,function*(){if(this._cardState)return;if(!this.personDetails&&this.inheritDetails){let d=this.parentElement;for(;d&&d.tagName!==`${re.prefix}-PERSON`.toUpperCase();)d=d.parentElement;const c=d.personDetails||d.personDetailsInternal;d&&c&&(this.personDetails=c,this.personImage=d.personImage)}const i=j.globalProvider;if(!i||i.state!==K.SignedIn)return;const n=i.graph.forComponent(this);if(this._graph=n,this._isStateLoading=!0,this._me||(this._me=yield j.me()),this.personDetails){const d=this.personDetails,c=d.userPrincipalName||d.id;if(c&&!P(d)){const f=yield X(n,c);this.personDetails=f,this.personImage=this.getImage()}}else if(this.userId||this.personQuery==="me"){const d=yield X(n,this.userId);this.personDetails=d,this.personImage=this.getImage()}else if(this.personQuery){const d=yield Me(n,this.personQuery,1);d!=null&&d.length&&(this.personDetails=d[0],yield Ae(n,this.personDetails,m.useContactApis).then(c=>{c&&(this.personDetails.personImage=c,this.personImage=c)}))}const s={activity:"Offline",availability:"Offline",id:null};if(!this.personPresence&&this.showPresence)try{!((e=this.personDetails)===null||e===void 0)&&e.id?this.personPresence=yield Be(n,this.personDetails.id):this.personPresence=s}catch{this.personPresence=s}const l=((t=this.personDetails)===null||t===void 0?void 0:t.id)||((o=this.personDetails)===null||o===void 0?void 0:o.userPrincipalName);l&&(this._cardState=yield je(n,this.personDetails,this._me===l)),this.loadSections(),this._isStateLoading=!1})}get hasPhone(){var e,t;const o=this.internalPersonDetails,i=this.internalPersonDetails;return!!(!((e=o==null?void 0:o.businessPhones)===null||e===void 0)&&e.length)||!!(!((t=i==null?void 0:i.phones)===null||t===void 0)&&t.length)}loadSections(){if(this.sections=[],!this.internalPersonDetails)return;const e=new de(this.internalPersonDetails);if(e.hasData&&this.sections.push(e),!this._cardState)return;const{person:t,directReports:o,messages:i,files:n,profile:s}=this._cardState;if(m.sections.organization&&(t!=null&&t.manager||o!=null&&o.length)&&this.sections.push(new B(this._cardState,this._me)),m.sections.mailMessages&&(i!=null&&i.length)&&this.sections.push(new W(i)),m.sections.files&&(n!=null&&n.length)&&this.sections.push(new Fe(n)),m.sections.profile&&s){const l=new V(s);l.hasData&&this.sections.push(l)}}getImage(){if(this.personImage)return this.personImage;const e=this.internalPersonDetails;return e!=null&&e.personImage?e.personImage:null}clearInputData(){this._chatInput="",this.requestUpdate()}getPersonBusinessPhones(e){const t=e.phones,o=[];for(const i of t)i.type==="business"&&o.push(i.number);return o}updateCurrentSection(e){if(e){const o=e.tagName.toLowerCase();this.renderRoot.querySelector(`#${o}-Tab`).click()}const t=this.renderRoot.querySelectorAll("fluent-tab-panel");for(const o of t)o.scrollTop=0;this._currentSection=e,this.requestUpdate()}handleSectionScroll(e){const t=this.renderRoot.querySelectorAll("fluent-tab-panel");for(const o of t)o&&!(e.deltaY<0&&o.scrollTop===0)&&!(e.deltaY>0&&o.clientHeight+o.scrollTop>=o.scrollHeight-1)&&e.stopPropagation()}}v([b({attribute:"person-details",type:Object}),u("design:type",Object),u("design:paramtypes",[Object])],g.prototype,"personDetails",null);v([b({attribute:"person-query"}),u("design:type",String),u("design:paramtypes",[String])],g.prototype,"personQuery",null);v([b({attribute:"lock-tab-navigation",type:Boolean}),u("design:type",Boolean)],g.prototype,"lockTabNavigation",void 0);v([b({attribute:"user-id"}),u("design:type",String),u("design:paramtypes",[String])],g.prototype,"userId",null);v([b({attribute:"person-image",type:String}),u("design:type",String)],g.prototype,"personImage",void 0);v([b({attribute:"fetch-image",type:Boolean}),u("design:type",Boolean)],g.prototype,"fetchImage",void 0);v([b({attribute:"is-expanded",type:Boolean}),u("design:type",Boolean)],g.prototype,"isExpanded",void 0);v([b({attribute:"inherit-details",type:Boolean}),u("design:type",Boolean)],g.prototype,"inheritDetails",void 0);v([b({attribute:"show-presence",type:Boolean}),u("design:type",Boolean)],g.prototype,"showPresence",void 0);v([b({attribute:"person-presence",type:Object}),u("design:type",Object)],g.prototype,"personPresence",void 0);v([k(),u("design:type",Object)],g.prototype,"isSendingMessage",void 0);v([k(),u("design:type",Object)],g.prototype,"_cardState",void 0);v([k(),u("design:type",Boolean)],g.prototype,"_isStateLoading",void 0);v([k(),u("design:type",Object)],g.prototype,"_currentSection",void 0);export{g as MgtPersonCard,It as registerMgtPersonCardComponent}; diff --git a/next/sample/pr/3325/assets/mgt-picker-DJC_Ceuz.js b/next/sample/pr/3325/assets/mgt-picker-DJC_Ceuz.js new file mode 100644 index 0000000000..5c4c1fa66b --- /dev/null +++ b/next/sample/pr/3325/assets/mgt-picker-DJC_Ceuz.js @@ -0,0 +1,24 @@ +import{X as u,a0 as f,a3 as g,Z as m,a8 as h,a9 as y,$ as b,Y as l,a2 as v}from"./App-c9ixsJC9.js";import{r as k}from"./mgt-get-nlun5DqF.js";import{f as x,a as C}from"./index-DlteEK7B.js";const S={comboboxPlaceholder:"Select an item"},P=[u` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"}:host{--max-height:var(--picker-max-height, 380px);font-family:var(--default-font-family)}:host .picker{background-color:var(--picker-background-color,transparent)}:host fluent-combobox::part(selected-value)::placeholder{color:var(--picker-text-color,var(--input-filled-placeholder-rest))}:host fluent-combobox::part(selected-value):hover::placeholder{color:var(--picker-text-color-hover,var(--secondary-text-hover-color))}[dir=rtl] .picker{direction:rtl} +`];var s=function(c,e,t,o){var i=arguments.length,r=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(c,e,t,o);else for(var p=c.length-1;p>=0;p--)(d=c[p])&&(r=(i<3?d(r):i>3?d(e,t,r):d(e,t))||r);return i>3&&r&&Object.defineProperty(e,t,r),r},a=function(c,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(c,e)};const E=()=>{f(C,x),k(),g("picker",n)};class n extends m{get strings(){return S}static get styles(){return P}constructor(){super(),this.version="v1.0",this.maxPages=3,this.scopes=[],this.cacheEnabled=!1,this.cacheInvalidationPeriod=0,this.renderLoading=()=>this.response?this.renderContent():this.renderTemplate("loading",null),this.renderContent=()=>{var e;const t=this.error?this.error:null;return t&&this.hasTemplate("error")?this.renderTemplate("error",{error:t},"error"):this.hasTemplate("no-data")?this.renderTemplate("no-data",null):((e=this.response)===null||e===void 0?void 0:e.length)>0?this.renderPicker():this.renderGet()},this.handleComboboxKeydown=e=>{let t,o;const i=e.key,d=e.target.querySelector(".selected");d&&(t=d.getAttribute("value")),i==="Enter"&&t&&(o=this.response.filter(p=>p.id===t).pop(),this.fireCustomEvent("selectionChanged",o,!0,!1,!0))},this.placeholder=this.strings.comboboxPlaceholder,this.entityType=null,this.keyName=null}refresh(e=!1){e&&this.clearState(),this._task.run()}clearState(){this.response=null,this.error=null}renderPicker(){return h` + + ${this.response.map(e=>b` + this.handleClick(t,e)}> ${this.getNestedPropertyValue(e,this.keyName)} `)} + + `}getNestedPropertyValue(e,t){const o=t.split(".");let i=e;for(const r of o)if(i=i[r],i===void 0)return console.warn(`mgt-picker: Key '${r}' is undefined.`),"";return i}renderGet(){return h` + + `}firstUpdated(e){super.firstUpdated(e);const t=this.renderRoot;t?t.addEventListener("dataChange",o=>this.handleDataChange(o)):console.error("🦒: mgt-picker component requires a renderRoot. Something has gone horribly wrong.")}handleDataChange(e){const t=e.detail.response.value,o=e.detail.error?e.detail.error:null;this.response=t,this.error=o}handleClick(e,t){this.fireCustomEvent("selectionChanged",t,!0,!1,!0)}}s([l({attribute:"resource",type:String}),a("design:type",String)],n.prototype,"resource",void 0);s([l({attribute:"version",type:String}),a("design:type",Object)],n.prototype,"version",void 0);s([l({attribute:"max-pages",type:Number}),a("design:type",Object)],n.prototype,"maxPages",void 0);s([l({attribute:"placeholder",type:String}),a("design:type",String)],n.prototype,"placeholder",void 0);s([l({attribute:"key-name",type:String}),a("design:type",String)],n.prototype,"keyName",void 0);s([l({attribute:"entity-type",type:String}),a("design:type",String)],n.prototype,"entityType",void 0);s([l({attribute:"scopes",converter:c=>c?c.toLowerCase().split(","):null}),a("design:type",Array)],n.prototype,"scopes",void 0);s([l({attribute:"cache-enabled",type:Boolean}),a("design:type",Object)],n.prototype,"cacheEnabled",void 0);s([l({attribute:"cache-invalidation-period",type:Number}),a("design:type",Object)],n.prototype,"cacheInvalidationPeriod",void 0);s([l({attribute:"selected-value",type:String}),a("design:type",String)],n.prototype,"selectedValue",void 0);s([v(),a("design:type",Array)],n.prototype,"response",void 0);export{E as r}; diff --git a/next/sample/pr/3325/assets/mgt-spinner-DCTBtyM4.js b/next/sample/pr/3325/assets/mgt-spinner-DCTBtyM4.js new file mode 100644 index 0000000000..8d98db080d --- /dev/null +++ b/next/sample/pr/3325/assets/mgt-spinner-DCTBtyM4.js @@ -0,0 +1,3 @@ +import{X as e,a3 as o,dA as n,$ as t}from"./App-c9ixsJC9.js";const r=[e` +:host([hidden]){display:none}:host{display:block;font-family:var(--default-font-family, "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, "BlinkMacSystemFont", "Roboto", "Helvetica Neue", sans-serif);font-size:var(--default-font-size, 14px);--theme-primary-color:#0078d7;--theme-dark-color:#005a9e}:focus-visible{outline-color:var(--focus-ring-color,Highlight);outline-color:var(--focus-ring-color,-webkit-focus-ring-color);outline-style:var(--focus-ring-style,auto)}.ms-icon{display:inline-block;font-family:FabricMDL2Icons;font-style:normal;font-weight:400;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:4px 0}.error{background-color:#fde7e9;padding-block:8px;padding-inline:8px 12px}.ms-icon-chevron-down::before{content:"\\\e70d"}.ms-icon-chevron-up::before{content:"\\\e70e"}.ms-icon-contact::before{content:"\\\e77b"}.ms-icon-add-friend::before{content:"\\\e8fa"}.ms-icon-outlook-logo-inverser::before{content:"\\\eb6d"} +`],l=()=>o("spinner",s);class s extends n{static get styles(){return r}render(){return t``}}export{l as r}; diff --git a/next/sample/pr/3325/assets/repeat-BYNG0dST.js b/next/sample/pr/3325/assets/repeat-BYNG0dST.js new file mode 100644 index 0000000000..459cbd2d94 --- /dev/null +++ b/next/sample/pr/3325/assets/repeat-BYNG0dST.js @@ -0,0 +1,9 @@ +import{dg as B,dh as b,di as w,dj as k,dk as S}from"./App-c9ixsJC9.js";/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const{I:H}=B,m=()=>document.createComment(""),h=(e,r,s)=>{var c;const o=e._$AA.parentNode,t=r===void 0?e._$AB:r._$AA;if(s===void 0){const i=o.insertBefore(m(),t),f=o.insertBefore(m(),t);s=new H(i,f,e,e.options)}else{const i=s._$AB.nextSibling,f=s._$AM,$=f!==e;if($){let d;(c=s._$AQ)==null||c.call(s,e),s._$AM=e,s._$AP!==void 0&&(d=e._$AU)!==f._$AU&&s._$AP(d)}if(i!==t||$){let d=s._$AA;for(;d!==i;){const v=d.nextSibling;o.insertBefore(d,t),d=v}}}return s},_=(e,r,s=e)=>(e._$AI(r,s),e),I={},M=(e,r=I)=>e._$AH=r,P=e=>e._$AH,x=e=>{var o;(o=e._$AP)==null||o.call(e,!1,!0);let r=e._$AA;const s=e._$AB.nextSibling;for(;r!==s;){const t=r.nextSibling;r.remove(),r=t}};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const y=(e,r,s)=>{const o=new Map;for(let t=r;t<=s;t++)o.set(e[t],t);return o},C=b(class extends w{constructor(e){if(super(e),e.type!==k.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,r,s){let o;s===void 0?s=r:r!==void 0&&(o=r);const t=[],c=[];let i=0;for(const f of e)t[i]=o?o(f,i):i,c[i]=s(f,i),i++;return{values:c,keys:t}}render(e,r,s){return this.dt(e,r,s).values}update(e,[r,s,o]){const t=P(e),{values:c,keys:i}=this.dt(r,s,o);if(!Array.isArray(t))return this.ut=i,c;const f=this.ut??(this.ut=[]),$=[];let d,v,l=0,u=t.length-1,n=0,A=c.length-1;for(;l<=u&&n<=A;)if(t[l]===null)l++;else if(t[u]===null)u--;else if(f[l]===i[n])$[n]=_(t[l],c[n]),l++,n++;else if(f[u]===i[A])$[A]=_(t[u],c[A]),u--,A--;else if(f[l]===i[A])$[A]=_(t[l],c[A]),h(e,$[A+1],t[l]),l++,A--;else if(f[u]===i[n])$[n]=_(t[u],c[n]),h(e,t[l],t[u]),u--,n++;else if(d===void 0&&(d=y(i,n,A),v=y(f,l,u)),d.has(f[l]))if(d.has(f[u])){const a=v.get(i[n]),p=a!==void 0?t[a]:null;if(p===null){const g=h(e,t[l]);_(g,c[n]),$[n]=g}else $[n]=_(p,c[n]),h(e,t[l],p),t[a]=null;n++}else x(t[u]),u--;else x(t[l]),l++;for(;n<=A;){const a=h(e,$[A+1]);_(a,c[n]),$[n++]=a}for(;l<=u;){const a=t[l++];a!==null&&x(a)}return this.ut=i,M(e,$),S}});export{C as c}; diff --git a/next/sample/pr/3325/favicon.png b/next/sample/pr/3325/favicon.png new file mode 100644 index 0000000000..2786b33a02 Binary files /dev/null and b/next/sample/pr/3325/favicon.png differ diff --git a/next/sample/pr/3325/index.html b/next/sample/pr/3325/index.html new file mode 100644 index 0000000000..af01452ff0 --- /dev/null +++ b/next/sample/pr/3325/index.html @@ -0,0 +1,39 @@ + + + + + + + + + + + Contoso Dashboard + + + + +
    + + + diff --git a/next/sample/pr/3325/manifest.json b/next/sample/pr/3325/manifest.json new file mode 100644 index 0000000000..1f2f141faf --- /dev/null +++ b/next/sample/pr/3325/manifest.json @@ -0,0 +1,15 @@ +{ + "short_name": "React App", + "name": "Create React App Sample", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +}