@momentum-design/components 0.135.2 → 0.136.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- "use strict";(()=>{var MT=Object.create;var Jc=Object.defineProperty;var Ku=Object.getOwnPropertyDescriptor;var OT=Object.getOwnPropertyNames;var RT=Object.getPrototypeOf,DT=Object.prototype.hasOwnProperty;var PT=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var FT=(a,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of OT(o))!DT.call(a,i)&&i!==t&&Jc(a,i,{get:()=>o[i],enumerable:!(e=Ku(o,i))||e.enumerable});return a};var $T=(a,o,t)=>(t=a!=null?MT(RT(a)):{},FT(o||!a||!a.__esModule?Jc(t,"default",{value:a,enumerable:!0}):t,a));var h=(a,o,t,e)=>{for(var i=e>1?void 0:e?Ku(o,t):o,n=a.length-1,c;n>=0;n--)(c=a[n])&&(i=(e?c(o,t,i):c(i))||i);return e&&i&&Jc(o,t,i),i};var tv=PT((hn,Jl)=>{typeof navigator<"u"&&function(a,o){typeof hn=="object"&&typeof Jl<"u"?Jl.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(hn,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},n=function(){return t},c=function(s){o=s},f=function(){return o};function g(r){return document.createElement(r)}function A(r,s){var l,d=r.length,m;for(l=0;l<d;l+=1){m=r[l].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function R(r,s){return Object.getOwnPropertyDescriptor(r,s)}function H(r){function s(){}return s.prototype=r,s}var J=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(l){this.audios.push(l)},pause:function(){var l,d=this.audios.length;for(l=0;l<d;l+=1)this.audios[l].pause()},resume:function(){var l,d=this.audios.length;for(l=0;l<d;l+=1)this.audios[l].resume()},setRate:function(l){var d,m=this.audios.length;for(d=0;d<m;d+=1)this.audios[d].setRate(l)},createAudio:function(l){return this.audioFactory?this.audioFactory(l):window.Howl?new window.Howl({src:[l]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(l){this.audioFactory=l},setVolume:function(l){this._volume=l,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var l,d=this.audios.length;for(l=0;l<d;l+=1)this.audios[l].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),q=function(){function r(l,d){var m=0,p=[],b;switch(l){case"int16":case"uint8c":b=1;break;default:b=1.1;break}for(m=0;m<d;m+=1)p.push(b);return p}function s(l,d){return l==="float32"?new Float32Array(d):l==="int16"?new Int16Array(d):l==="uint8c"?new Uint8ClampedArray(d):r(l,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function Z(r){return Array.apply(null,{length:r})}function ot(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ot=function(l){return typeof l}:ot=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},ot(r)}var st=!0,ht=null,bt=null,yt="",It=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Gt=Math.pow,Pt=Math.sqrt,ne=Math.floor,Ge=Math.max,jt=Math.min,Ee={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,l=r.length;for(s=0;s<l;s+=1)Ee[r[s]]=Math[r[s]]})();function Te(){return{}}Ee.random=Math.random,Ee.abs=function(r){var s=ot(r);if(s==="object"&&r.length){var l=Z(r.length),d,m=r.length;for(d=0;d<m;d+=1)l[d]=Math.abs(r[d]);return l}return Math.abs(r)};var xe=150,kt=Math.PI/180,ie=.5519;function Ke(r){Rt=!!r}function Qe(r){return Rt?Math.round(r):r}function Je(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function Ar(r,s,l,d){this.type=r,this.currentTime=s,this.totalTime=l,this.direction=d<0?-1:1}function il(r,s){this.type=r,this.direction=s<0?-1:1}function Qm(r,s,l,d){this.type=r,this.currentLoop=l,this.totalLoops=s,this.direction=d<0?-1:1}function Jm(r,s,l){this.type=r,this.firstFrame=s,this.totalFrames=l}function tu(r,s){this.type=r,this.target=s}function ME(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function OE(r){this.type="configError",this.nativeError=r}function HI(r,s){this.type=r,this.nativeError=s}var tr=function(){var r=0;return function(){return r+=1,yt+"__lottie_element_"+r}}();function zc(r,s,l){var d,m,p,b,I,y,k,M;switch(b=Math.floor(r*6),I=r*6-b,y=l*(1-s),k=l*(1-I*s),M=l*(1-(1-I)*s),b%6){case 0:d=l,m=M,p=y;break;case 1:d=k,m=l,p=y;break;case 2:d=y,m=l,p=M;break;case 3:d=y,m=k,p=l;break;case 4:d=M,m=y,p=l;break;case 5:d=l,m=y,p=k;break;default:break}return[d,m,p]}function Bc(r,s,l){var d=Math.max(r,s,l),m=Math.min(r,s,l),p=d-m,b,I=d===0?0:p/d,y=d/255;switch(d){case m:b=0;break;case r:b=s-l+p*(s<l?6:0),b/=6*p;break;case s:b=l-r+p*2,b/=6*p;break;case l:b=r-s+p*4,b/=6*p;break;default:break}return[b,I,y]}function eu(r,s){var l=Bc(r[0]*255,r[1]*255,r[2]*255);return l[1]+=s,l[1]>1?l[1]=1:l[1]<=0&&(l[1]=0),zc(l[0],l[1],l[2])}function ru(r,s){var l=Bc(r[0]*255,r[1]*255,r[2]*255);return l[2]+=s,l[2]>1?l[2]=1:l[2]<0&&(l[2]=0),zc(l[0],l[1],l[2])}function iu(r,s){var l=Bc(r[0]*255,r[1]*255,r[2]*255);return l[0]+=s/360,l[0]>1?l[0]-=1:l[0]<0&&(l[0]+=1),zc(l[0],l[1],l[2])}var UI=function(){var r=[],s,l;for(s=0;s<256;s+=1)l=s.toString(16),r[s]=l.length===1?"0"+l:l;return function(d,m,p){return d<0&&(d=0),m<0&&(m=0),p<0&&(p=0),"#"+r[d]+r[m]+r[p]}}(),RE=function(s){st=!!s},DE=function(){return st},PE=function(s){ht=s},ol=function(){return ht},GI=function(s){bt=s},ou=function(){return bt},sl=function(s){xe=s},wa=function(){return xe},FE=function(s){yt=s},KI=function(){return yt};function Ct(r){return document.createElementNS(a,r)}function al(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?al=function(l){return typeof l}:al=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},al(r)}var ka=function(){var r=1,s=[],l,d,m={onmessage:function(){},postMessage:function(O){l({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function b(x){if(window.Worker&&window.Blob&&n()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),F=URL.createObjectURL(O);return new Worker(F)}return l=x,m}function I(){d||(d=b(function(O){function F(){function U(rt,_){var P,v,E=rt.length,j,z,ct,gt;for(v=0;v<E;v+=1)if(P=rt[v],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var St=P.masksProperties;for(z=St.length,j=0;j<z;j+=1)if(St[j].pt.k.i)N(St[j].pt.k);else for(gt=St[j].pt.k.length,ct=0;ct<gt;ct+=1)St[j].pt.k[ct].s&&N(St[j].pt.k[ct].s[0]),St[j].pt.k[ct].e&&N(St[j].pt.k[ct].e[0])}P.ty===0?(P.layers=T(P.refId,_),U(P.layers,_)):P.ty===4?C(P.shapes):P.ty===5&&_t(P)}}function L(rt,_){if(rt){var P=0,v=rt.length;for(P=0;P<v;P+=1)rt[P].t===1&&(rt[P].data.layers=T(rt[P].data.refId,_),U(rt[P].data.layers,_))}}function w(rt,_){for(var P=0,v=_.length;P<v;){if(_[P].id===rt)return _[P];P+=1}return null}function T(rt,_){var P=w(rt,_);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function C(rt){var _,P=rt.length,v,E;for(_=P-1;_>=0;_-=1)if(rt[_].ty==="sh")if(rt[_].ks.k.i)N(rt[_].ks.k);else for(E=rt[_].ks.k.length,v=0;v<E;v+=1)rt[_].ks.k[v].s&&N(rt[_].ks.k[v].s[0]),rt[_].ks.k[v].e&&N(rt[_].ks.k[v].e[0]);else rt[_].ty==="gr"&&C(rt[_].it)}function N(rt){var _,P=rt.i.length;for(_=0;_<P;_+=1)rt.i[_][0]+=rt.v[_][0],rt.i[_][1]+=rt.v[_][1],rt.o[_][0]+=rt.v[_][0],rt.o[_][1]+=rt.v[_][1]}function $(rt,_){var P=_?_.split("."):[100,100,100];return rt[0]>P[0]?!0:P[0]>rt[0]?!1:rt[1]>P[1]?!0:P[1]>rt[1]?!1:rt[2]>P[2]?!0:P[2]>rt[2]?!1:null}var W=function(){var rt=[4,4,14];function _(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function P(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),X=function(){var rt=[4,7,99];return function(_){if(_.chars&&!$(rt,_.v)){var P,v=_.chars.length;for(P=0;P<v;P+=1){var E=_.chars[P];E.data&&E.data.shapes&&(C(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[P].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function _(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function P(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),At=function(){var rt=[4,1,9];function _(v){var E,j=v.length,z,ct;for(E=0;E<j;E+=1)if(v[E].ty==="gr")_(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(ct=v[E].c.k.length,z=0;z<ct;z+=1)v[E].c.k[z].s&&(v[E].c.k[z].s[0]/=255,v[E].c.k[z].s[1]/=255,v[E].c.k[z].s[2]/=255,v[E].c.k[z].s[3]/=255),v[E].c.k[z].e&&(v[E].c.k[z].e[0]/=255,v[E].c.k[z].e[1]/=255,v[E].c.k[z].e[2]/=255,v[E].c.k[z].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function P(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===4&&_(v[E].shapes)}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),ft=function(){var rt=[4,4,18];function _(v){var E,j=v.length,z,ct;for(E=j-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(ct=v[E].ks.k.length,z=0;z<ct;z+=1)v[E].ks.k[z].s&&(v[E].ks.k[z].s[0].c=v[E].closed),v[E].ks.k[z].e&&(v[E].ks.k[z].e[0].c=v[E].closed);else v[E].ty==="gr"&&_(v[E].it)}function P(v){var E,j,z=v.length,ct,gt,St,$t;for(j=0;j<z;j+=1){if(E=v[j],E.hasMask){var Vt=E.masksProperties;for(gt=Vt.length,ct=0;ct<gt;ct+=1)if(Vt[ct].pt.k.i)Vt[ct].pt.k.c=Vt[ct].cl;else for($t=Vt[ct].pt.k.length,St=0;St<$t;St+=1)Vt[ct].pt.k[St].s&&(Vt[ct].pt.k[St].s[0].c=Vt[ct].cl),Vt[ct].pt.k[St].e&&(Vt[ct].pt.k[St].e[0].c=Vt[ct].cl)}E.ty===4&&_(E.shapes)}}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}();function nt(rt){rt.__complete||(At(rt),W(rt),X(rt),it(rt),ft(rt),U(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function _t(rt){rt.t.a.length===0&&"m"in rt.t.p}var mt={};return mt.completeData=nt,mt.checkColors=At,mt.checkChars=X,mt.checkPathProperties=it,mt.checkShapes=ft,mt.completeLayers=U,mt}if(p.dataManager||(p.dataManager=F()),p.assetLoader||(p.assetLoader=function(){function U(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&al(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function L(w,T,C,N){var $,W=new XMLHttpRequest;try{W.responseType="json"}catch{}W.onreadystatechange=function(){if(W.readyState===4)if(W.status===200)$=U(W),C($);else try{$=U(W),C($)}catch(X){N&&N(X)}};try{W.open(["G","E","T"].join(""),w,!0)}catch{W.open(["G","E","T"].join(""),T+"/"+w,!0)}W.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.dataManager.completeData(U),p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var D=O.data.animation;p.dataManager.completeData(D),p.postMessage({id:O.data.id,payload:D,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,F=O.id,D=s[F];s[F]=null,O.status==="success"?D.onComplete(O.payload):D.onError&&D.onError()})}function y(x,O){r+=1;var F="processId_"+r;return s[F]={onComplete:x,onError:O},F}function k(x,O,F){I();var D=y(O,F);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:D})}function M(x,O,F){I();var D=y(O,F);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:D})}function Y(x,O,F){I();var D=y(O,F);d.postMessage({type:"complete",animation:x,id:D})}return{loadAnimation:k,loadData:M,completeAnimation:Y}}(),$E=function(){var r=function(){var L=g("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(L,w,T){var C="";if(L.e)C=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),C=w+N}else C=T,C+=L.u?L.u:"",C+=L.p;return C}function m(L){var w=0,T=setInterval((function(){var C=L.getBBox();(C.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function p(L){var w=d(L,this.assetsPath,this.path),T=Ct("image");It?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function b(L){var w=d(L,this.assetsPath,this.path),T=g("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.src=w;var C={img:T,assetData:L};return C}function I(L){var w={assetData:L},T=d(L,this.assetsPath,this.path);return ka.loadData(T,(function(C){w.img=C,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function y(L,w){this.imagesLoadedCb=w;var T,C=L.length;for(T=0;T<C;T+=1)L[T].layers||(!L[T].t||L[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[T]))):L[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[T]))))}function k(L){this.path=L||""}function M(L){this.assetsPath=L||""}function Y(L){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===L)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function F(){return this.totalFootages===this.loadedFootagesCount}function D(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function U(){this._imageLoaded=s.bind(this),this._footageLoaded=l.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return U.prototype={loadAssets:y,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:F,destroy:x,getAsset:Y,createImgData:b,createImageData:p,imageLoaded:s,footageLoaded:l,setCacheType:D},U}();function su(){}su.prototype={triggerEvent:function(s,l){if(this._cbs[s])for(var d=this._cbs[s],m=0;m<d.length;m+=1)d[m](l)},addEventListener:function(s,l){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(l),(function(){this.removeEventListener(s,l)}).bind(this)},removeEventListener:function(s,l){if(!l)this._cbs[s]=null;else if(this._cbs[s]){for(var d=0,m=this._cbs[s].length;d<m;)this._cbs[s][d]===l&&(this._cbs[s].splice(d,1),d-=1,m-=1),d+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var VE=function(){function r(s){for(var l=s.split(`\r
2
- `),d={},m,p=0,b=0;b<l.length;b+=1)m=l[b].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(s){for(var l=[],d=0;d<s.length;d+=1){var m=s[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[d].cm)}catch{try{p.payload=r(s[d].cm)}catch{p.payload={name:s[d].cm}}}l.push(p)}return l}}(),zE=function(){function r(s){this.compositions.push(s)}return function(){function s(l){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===l)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),Na={},BE=function(s,l){Na[s]=l};function HE(r){return Na[r]}function UE(){if(Na.canvas)return"canvas";for(var r in Na)if(Na[r])return r;return""}function La(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?La=function(l){return typeof l}:La=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},La(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=tr(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=DE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=zE(),this.imagePreloader=new $E,this.audioController=J(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ar("drawnFrame",0,0,0),this.expressionsPlugin=ol()};A([su],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var l=HE(s);this.renderer=new l(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ka.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){ka.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&La(s)!=="object"&&(s=JSON.parse(s));var l={wrapper:r,animationData:s},d=r.attributes;l.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",l.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:UE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?l.loop=!1:m==="true"?l.loop=!0:m!==""&&(l.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;l.autoplay=p!=="false",l.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var b=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";b==="false"&&(l.prerender=!1),l.path?this.setParams(l):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,l,d=s.length,m=r.layers,p,b=m.length;for(p=0;p<b;p+=1)for(l=0;l<d;){if(s[l].id===m[p].id){s[l]=m[p];break}l+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(d=r.assets.length,l=0;l<d;l+=1)this.animationData.assets.push(r.assets[l]);this.animationData.__complete=!1,ka.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=ol();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var l=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,ka.loadData(l,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=VE(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=ol();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var l=typeof r=="number"?r:void 0,d=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(l,d)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,l=0;l<this.markers.length;l+=1)if(s=this.markers[l],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,l){if(!(l&&this.name!==l)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,l){if(!(l&&this.name!==l)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(d,s,l);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,l=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(l=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(l=!0,s=0)):this.setCurrentRawFrameValue(s),l&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var l=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?l=r:this.currentRawFrame+this.firstFrame>s&&(l=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,l!==-1&&this.goToAndStop(l,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),La(r[0])==="object"){var l,d=r.length;for(l=0;l<d;l+=1)this.segments.push(r[l])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var l=r.p;l.indexOf("images/")!==-1&&(l=l.split("/")[1]),s=this.assetsPath+l}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,l=this.assets.length;s<l;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,l){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(s,l)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new Ar(r,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new Qm(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new il(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Jm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new tu(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ar(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Qm(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new il(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Jm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new tu(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new ME(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new OE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var ue=function(){var r={},s=[],l=0,d=0,m=0,p=!0,b=!1;function I(_){for(var P=0,v=_.target;P<d;)s[P].animation===v&&(s.splice(P,1),P-=1,d-=1,v.isPaused||Y()),P+=1}function y(_,P){if(!_)return null;for(var v=0;v<d;){if(s[v].elem===_&&s[v].elem!==null)return s[v].animation;v+=1}var E=new vt;return x(E,_),E.setData(_,P),E}function k(){var _,P=s.length,v=[];for(_=0;_<P;_+=1)v.push(s[_].animation);return v}function M(){m+=1,At()}function Y(){m-=1}function x(_,P){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",Y),s.push({elem:P,animation:_}),d+=1}function O(_){var P=new vt;return x(P,null),P.setParams(_),P}function F(_,P){var v;for(v=0;v<d;v+=1)s[v].animation.setSpeed(_,P)}function D(_,P){var v;for(v=0;v<d;v+=1)s[v].animation.setDirection(_,P)}function U(_){var P;for(P=0;P<d;P+=1)s[P].animation.play(_)}function L(_){var P=_-l,v;for(v=0;v<d;v+=1)s[v].animation.advanceTime(P);l=_,m&&!b?window.requestAnimationFrame(L):p=!0}function w(_){l=_,window.requestAnimationFrame(L)}function T(_){var P;for(P=0;P<d;P+=1)s[P].animation.pause(_)}function C(_,P,v){var E;for(E=0;E<d;E+=1)s[E].animation.goToAndStop(_,P,v)}function N(_){var P;for(P=0;P<d;P+=1)s[P].animation.stop(_)}function $(_){var P;for(P=0;P<d;P+=1)s[P].animation.togglePause(_)}function W(_){var P;for(P=d-1;P>=0;P-=1)s[P].animation.destroy(_)}function X(_,P,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),j,z=E.length;for(j=0;j<z;j+=1)v&&E[j].setAttribute("data-bm-type",v),y(E[j],_);if(P&&z===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=g("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),y(gt,_)}}function it(){var _;for(_=0;_<d;_+=1)s[_].animation.resize()}function At(){!b&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ft(){b=!0}function nt(){b=!1,At()}function _t(_,P){var v;for(v=0;v<d;v+=1)s[v].animation.setVolume(_,P)}function mt(_){var P;for(P=0;P<d;P+=1)s[P].animation.mute(_)}function rt(_){var P;for(P=0;P<d;P+=1)s[P].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=F,r.setDirection=D,r.play=U,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=X,r.resize=it,r.goToAndStop=C,r.destroy=W,r.freeze=ft,r.unfreeze=nt,r.setVolume=_t,r.mute=mt,r.unmute=rt,r.getRegisteredAnimations=k,r}(),Ma=function(){var r={};r.getBezierEasing=l;var s={};function l(w,T,C,N,$){var W=$||("bez_"+w+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[W])return s[W];var X=new L([w,T,C,N]);return s[W]=X,X}var d=4,m=.001,p=1e-7,b=10,I=11,y=1/(I-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function Y(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,C){return((M(T,C)*w+Y(T,C))*w+x(T))*w}function F(w,T,C){return 3*M(T,C)*w*w+2*Y(T,C)*w+x(T)}function D(w,T,C,N,$){var W,X,it=0;do X=T+(C-T)/2,W=O(X,N,$)-w,W>0?C=X:T=X;while(Math.abs(W)>p&&++it<b);return X}function U(w,T,C,N){for(var $=0;$<d;++$){var W=F(T,C,N);if(W===0)return T;var X=O(T,C,N)-w;T-=X/W}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var C=this._p[0],N=this._p[1],$=this._p[2],W=this._p[3];return this._precomputed||this._precompute(),C===N&&$===W?T:T===0?0:T===1?1:O(this._getTForX(T),N,W)},_precompute:function(){var T=this._p[0],C=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==C||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],C=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*y,T,C)},_getTForX:function(T){for(var C=this._p[0],N=this._p[2],$=this._mSampleValues,W=0,X=1,it=I-1;X!==it&&$[X]<=T;++X)W+=y;--X;var At=(T-$[X])/($[X+1]-$[X]),ft=W+At*y,nt=F(ft,C,N);return nt>=m?U(T,ft,C,N):nt===0?ft:D(T,W,W+y,C,N)}},r}(),au=function(){function r(s){return s.concat(Z(s.length))}return{double:r}}(),nl=function(){return function(r,s,l){var d=0,m=r,p=Z(m),b={newElement:I,release:y};function I(){var k;return d?(d-=1,k=p[d]):k=s(),k}function y(k){d===m&&(p=au.double(p),m*=2),l&&l(k),p[d]=k,d+=1}return b}}(),nu=function(){function r(){return{addedLength:0,percents:q("float32",wa()),lengths:q("float32",wa())}}return nl(8,r)}(),lu=function(){function r(){return{lengths:[],totalLength:0}}function s(l){var d,m=l.lengths.length;for(d=0;d<m;d+=1)nu.release(l.lengths[d]);l.lengths.length=0}return nl(8,r,s)}();function GE(){var r=Math;function s(x,O,F,D,U,L){var w=x*D+O*U+F*L-U*D-L*x-F*O;return w>-.001&&w<.001}function l(x,O,F,D,U,L,w,T,C){if(F===0&&L===0&&C===0)return s(x,O,D,U,w,T);var N=r.sqrt(r.pow(D-x,2)+r.pow(U-O,2)+r.pow(L-F,2)),$=r.sqrt(r.pow(w-x,2)+r.pow(T-O,2)+r.pow(C-F,2)),W=r.sqrt(r.pow(w-D,2)+r.pow(T-U,2)+r.pow(C-L,2)),X;return N>$?N>W?X=N-$-W:X=W-$-N:W>$?X=W-$-N:X=$-N-W,X>-1e-4&&X<1e-4}var d=function(){return function(x,O,F,D){var U=wa(),L,w,T,C,N,$=0,W,X=[],it=[],At=nu.newElement();for(T=F.length,L=0;L<U;L+=1){for(N=L/(U-1),W=0,w=0;w<T;w+=1)C=Gt(1-N,3)*x[w]+3*Gt(1-N,2)*N*F[w]+3*(1-N)*Gt(N,2)*D[w]+Gt(N,3)*O[w],X[w]=C,it[w]!==null&&(W+=Gt(X[w]-it[w],2)),it[w]=X[w];W&&(W=Pt(W),$+=W),At.percents[L]=N,At.lengths[L]=$}return At.addedLength=$,At}}();function m(x){var O=lu.newElement(),F=x.c,D=x.v,U=x.o,L=x.i,w,T=x._length,C=O.lengths,N=0;for(w=0;w<T-1;w+=1)C[w]=d(D[w],D[w+1],U[w],L[w+1]),N+=C[w].addedLength;return F&&T&&(C[w]=d(D[w],D[0],U[w],L[0]),N+=C[w].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function b(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,F,D,U){var L=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+D[0]+"_"+D[1]+"_"+U[0]+"_"+U[1]).replace(/\./g,"p");if(!x[L]){var w=wa(),T,C,N,$,W,X=0,it,At,ft=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&s(O[0],O[1],F[0],F[1],O[0]+D[0],O[1]+D[1])&&s(O[0],O[1],F[0],F[1],F[0]+U[0],F[1]+U[1])&&(w=2);var nt=new p(w);for(N=D.length,T=0;T<w;T+=1){for(At=Z(N),W=T/(w-1),it=0,C=0;C<N;C+=1)$=Gt(1-W,3)*O[C]+3*Gt(1-W,2)*W*(O[C]+D[C])+3*(1-W)*Gt(W,2)*(F[C]+U[C])+Gt(W,3)*F[C],At[C]=$,ft!==null&&(it+=Gt(At[C]-ft[C],2));it=Pt(it),X+=it,nt.points[T]=new b(it,At),ft=At}nt.segmentLength=X,x[L]=nt}return x[L]}}();function y(x,O){var F=O.percents,D=O.lengths,U=F.length,L=ne((U-1)*x),w=x*O.addedLength,T=0;if(L===U-1||L===0||w===D[L])return F[L];for(var C=D[L]>w?-1:1,N=!0;N;)if(D[L]<=w&&D[L+1]>w?(T=(w-D[L])/(D[L+1]-D[L]),N=!1):L+=C,L<0||L>=U-1){if(L===U-1)return F[L];N=!1}return F[L]+(F[L+1]-F[L])*T}function k(x,O,F,D,U,L){var w=y(U,L),T=1-w,C=r.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*D[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*D[1]+w*w*w*O[1])*1e3)/1e3;return[C,N]}var M=q("float32",8);function Y(x,O,F,D,U,L,w){U<0?U=0:U>1&&(U=1);var T=y(U,w);L=L>1?1:L;var C=y(L,w),N,$=x.length,W=1-T,X=1-C,it=W*W*W,At=T*W*W*3,ft=T*T*W*3,nt=T*T*T,_t=W*W*X,mt=T*W*X+W*T*X+W*W*C,rt=T*T*X+W*T*C+T*W*C,_=T*T*C,P=W*X*X,v=T*X*X+W*C*X+W*X*C,E=T*C*X+W*C*C+T*X*C,j=T*C*C,z=X*X*X,ct=C*X*X+X*C*X+X*X*C,gt=C*C*X+X*C*C+C*X*C,St=C*C*C;for(N=0;N<$;N+=1)M[N*4]=r.round((it*x[N]+At*F[N]+ft*D[N]+nt*O[N])*1e3)/1e3,M[N*4+1]=r.round((_t*x[N]+mt*F[N]+rt*D[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((P*x[N]+v*F[N]+E*D[N]+j*O[N])*1e3)/1e3,M[N*4+3]=r.round((z*x[N]+ct*F[N]+gt*D[N]+St*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:Y,getPointInSegment:k,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:l}}var Zr=GE(),Po=e,du=Math.abs;function cu(r,s){var l=this.offsetTime,d;this.propType==="multidimensional"&&(d=q("float32",this.pv.length));for(var m=s.lastIndex,p=m,b=this.keyframes.length-1,I=!0,y,k,M;I;){if(y=this.keyframes[p],k=this.keyframes[p+1],p===b-1&&r>=k.t-l){y.h&&(y=k),m=0;break}if(k.t-l>r){m=p;break}p<b-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var Y,x,O,F,D,U,L=k.t-l,w=y.t-l,T;if(y.to){M.bezierData||(M.bezierData=Zr.buildBezierData(y.s,k.s||y.e,y.to,y.ti));var C=M.bezierData;if(r>=L||r<w){var N=r>=L?C.points.length-1:0;for(x=C.points[N].point.length,Y=0;Y<x;Y+=1)d[Y]=C.points[N].point[Y]}else{M.__fnct?U=M.__fnct:(U=Ma.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=U),O=U((r-w)/(L-w));var $=C.segmentLength*O,W,X=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(D=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,F=C.points.length;I;){if(X+=C.points[D].partialLength,$===0||O===0||D===C.points.length-1){for(x=C.points[D].point.length,Y=0;Y<x;Y+=1)d[Y]=C.points[D].point[Y];break}else if($>=X&&$<X+C.points[D+1].partialLength){for(W=($-X)/C.points[D+1].partialLength,x=C.points[D].point.length,Y=0;Y<x;Y+=1)d[Y]=C.points[D].point[Y]+(C.points[D+1].point[Y]-C.points[D].point[Y])*W;break}D<F-1?D+=1:I=!1}s._lastPoint=D,s._lastAddedLength=X-C.points[D].partialLength,s._lastKeyframeIndex=p}}else{var it,At,ft,nt,_t;if(b=y.s.length,T=k.s||y.e,this.sh&&y.h!==1)if(r>=L)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=w)d[0]=y.s[0],d[1]=y.s[1],d[2]=y.s[2];else{var mt=hu(y.s),rt=hu(T),_=(r-w)/(L-w);WE(d,KE(mt,rt,_))}else for(p=0;p<b;p+=1)y.h!==1&&(r>=L?O=1:r<w?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?U=M.__fnct[p]:(it=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],At=y.o.y[p]===void 0?y.o.y[0]:y.o.y[p],ft=y.i.x[p]===void 0?y.i.x[0]:y.i.x[p],nt=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],U=Ma.getBezierEasing(it,At,ft,nt).get,M.__fnct[p]=U)):M.__fnct?U=M.__fnct:(it=y.o.x,At=y.o.y,ft=y.i.x,nt=y.i.y,U=Ma.getBezierEasing(it,At,ft,nt).get,y.keyframeMetadata=U),O=U((r-w)/(L-w)))),T=k.s||y.e,_t=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?d[p]=_t:d=_t}return s.lastIndex=m,d}function KE(r,s,l){var d=[],m=r[0],p=r[1],b=r[2],I=r[3],y=s[0],k=s[1],M=s[2],Y=s[3],x,O,F,D,U;return O=m*y+p*k+b*M+I*Y,O<0&&(O=-O,y=-y,k=-k,M=-M,Y=-Y),1-O>1e-6?(x=Math.acos(O),F=Math.sin(x),D=Math.sin((1-l)*x)/F,U=Math.sin(l*x)/F):(D=1-l,U=l),d[0]=D*m+U*y,d[1]=D*p+U*k,d[2]=D*b+U*M,d[3]=D*I+U*Y,d}function WE(r,s){var l=s[0],d=s[1],m=s[2],p=s[3],b=Math.atan2(2*d*p-2*l*m,1-2*d*d-2*m*m),I=Math.asin(2*l*d+2*m*p),y=Math.atan2(2*l*p-2*d*m,1-2*l*l-2*m*m);r[0]=b/kt,r[1]=I/kt,r[2]=y/kt}function hu(r){var s=r[0]*kt,l=r[1]*kt,d=r[2]*kt,m=Math.cos(s/2),p=Math.cos(l/2),b=Math.cos(d/2),I=Math.sin(s/2),y=Math.sin(l/2),k=Math.sin(d/2),M=m*p*b-I*y*k,Y=I*y*b+m*p*k,x=I*p*b+m*y*k,O=m*y*b-I*p*k;return[Y,x,O,M]}function pu(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,l=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Po&&(this._caching.lastFrame>=l&&r>=l||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function ll(r){var s;if(this.propType==="unidimensional")s=r*this.mult,du(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var l=0,d=this.v.length;l<d;)s=r[l]*this.mult,du(this.v[l]-s)>1e-5&&(this.v[l]=s,this._mdf=!0),l+=1}function dl(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,l=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)l=this.effectsSequence[r](l);this.setVValue(l),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function cl(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function YE(r,s,l,d){this.propType="unidimensional",this.mult=l||1,this.data=s,this.v=l?s.k*l:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=dl,this.setVValue=ll,this.addEffect=cl}function jE(r,s,l,d){this.propType="multidimensional",this.mult=l||1,this.data=s,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=q("float32",p),this.pv=q("float32",p),this.vel=q("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=dl,this.setVValue=ll,this.addEffect=cl}function qE(r,s,l,d){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Po,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=l||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=Po,this.pv=Po,this._isFirstFrame=!0,this.getValue=dl,this.setVValue=ll,this.interpolateValue=cu,this.effectsSequence=[pu.bind(this)],this.addEffect=cl}function XE(r,s,l,d){this.propType="multidimensional";var m,p=s.k.length,b,I,y,k;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(b=s.k[m].s,I=s.k[m+1].s,y=s.k[m].to,k=s.k[m].ti,(b.length===2&&!(b[0]===I[0]&&b[1]===I[1])&&Zr.pointOnLine2D(b[0],b[1],I[0],I[1],b[0]+y[0],b[1]+y[1])&&Zr.pointOnLine2D(b[0],b[1],I[0],I[1],I[0]+k[0],I[1]+k[1])||b.length===3&&!(b[0]===I[0]&&b[1]===I[1]&&b[2]===I[2])&&Zr.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],b[0]+y[0],b[1]+y[1],b[2]+y[2])&&Zr.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],I[0]+k[0],I[1]+k[1],I[2]+k[2]))&&(s.k[m].to=null,s.k[m].ti=null),b[0]===I[0]&&b[1]===I[1]&&y[0]===0&&y[1]===0&&k[0]===0&&k[1]===0&&(b.length===2||b[2]===I[2]&&y[2]===0&&k[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[pu.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=dl,this.setVValue=ll,this.interpolateValue=cu,this.frameId=-1;var M=s.k[0].s.length;for(this.v=q("float32",M),this.pv=q("float32",M),m=0;m<M;m+=1)this.v[m]=Po,this.pv[m]=Po;this._caching={lastFrame:Po,lastIndex:0,value:q("float32",M)},this.addEffect=cl}var lt=function(){function r(l,d,m,p,b){d.sid&&(d=l.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new YE(l,d,p,b);else if(typeof d.k[0]=="number")I=new jE(l,d,p,b);else switch(m){case 0:I=new qE(l,d,p,b);break;case 1:I=new XE(l,d,p,b);break;default:break}return I.effectsSequence.length&&b.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ne(){}Ne.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,l=this.dynamicProperties.length;for(s=0;s<l;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Fo=function(){function r(){return q("float32",2)}return nl(8,r)}();function Ei(){this.c=!1,this._length=0,this._maxLength=8,this.v=Z(this._maxLength),this.o=Z(this._maxLength),this.i=Z(this._maxLength)}Ei.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var l=0;l<s;)this.v[l]=Fo.newElement(),this.o[l]=Fo.newElement(),this.i[l]=Fo.newElement(),l+=1},Ei.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},Ei.prototype.doubleArrayLength=function(){this.v=this.v.concat(Z(this._maxLength)),this.i=this.i.concat(Z(this._maxLength)),this.o=this.o.concat(Z(this._maxLength)),this._maxLength*=2},Ei.prototype.setXYAt=function(r,s,l,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),l){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=Fo.newElement()),p[d][0]=r,p[d][1]=s},Ei.prototype.setTripleAt=function(r,s,l,d,m,p,b,I){this.setXYAt(r,s,"v",b,I),this.setXYAt(l,d,"o",b,I),this.setXYAt(m,p,"i",b,I)},Ei.prototype.reverse=function(){var r=new Ei;r.setPathData(this.c,this._length);var s=this.v,l=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],d[0][0],d[0][1],l[0][0],l[0][1],0,!1),m=1);var p=this._length-1,b=this._length,I;for(I=m;I<b;I+=1)r.setTripleAt(s[p][0],s[p][1],d[p][0],d[p][1],l[p][0],l[p][1],I,!1),p-=1;return r},Ei.prototype.length=function(){return this._length};var De=function(){function r(){return new Ei}function s(m){var p=m._length,b;for(b=0;b<p;b+=1)Fo.release(m.v[b]),Fo.release(m.i[b]),Fo.release(m.o[b]),m.v[b]=null,m.i[b]=null,m.o[b]=null;m._length=0,m.c=!1}function l(m){var p=d.newElement(),b,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,b=0;b<I;b+=1)p.setTripleAt(m.v[b][0],m.v[b][1],m.o[b][0],m.o[b][1],m.i[b][0],m.i[b][1],b);return p}var d=nl(4,r,s);return d.clone=l,d}();function Hc(){this._length=0,this._maxLength=4,this.shapes=Z(this._maxLength)}Hc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Z(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},Hc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Ns=function(){var r={newShapeCollection:m,release:p},s=0,l=4,d=Z(l);function m(){var b;return s?(s-=1,b=d[s]):b=new Hc,b}function p(b){var I,y=b._length;for(I=0;I<y;I+=1)De.release(b.shapes[I]);b._length=0,s===l&&(d=au.double(d),l*=2),d[s]=b,s+=1}return r}(),hl=function(){var r=-999999;function s(L,w,T){var C=T.lastIndex,N,$,W,X,it,At,ft,nt,_t,mt=this.keyframes;if(L<mt[0].t-this.offsetTime)N=mt[0].s[0],W=!0,C=0;else if(L>=mt[mt.length-1].t-this.offsetTime)N=mt[mt.length-1].s?mt[mt.length-1].s[0]:mt[mt.length-2].e[0],W=!0;else{for(var rt=C,_=mt.length-1,P=!0,v,E,j;P&&(v=mt[rt],E=mt[rt+1],!(E.t-this.offsetTime>L));)rt<_-1?rt+=1:P=!1;if(j=this.keyframesMetadata[rt]||{},W=v.h===1,C=rt,!W){if(L>=E.t-this.offsetTime)nt=1;else if(L<v.t-this.offsetTime)nt=0;else{var z;j.__fnct?z=j.__fnct:(z=Ma.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,j.__fnct=z),nt=z((L-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(At=w._length,ft=N.i[0].length,T.lastIndex=C,X=0;X<At;X+=1)for(it=0;it<ft;it+=1)_t=W?N.i[X][it]:N.i[X][it]+($.i[X][it]-N.i[X][it])*nt,w.i[X][it]=_t,_t=W?N.o[X][it]:N.o[X][it]+($.o[X][it]-N.o[X][it])*nt,w.o[X][it]=_t,_t=W?N.v[X][it]:N.v[X][it]+($.v[X][it]-N.v[X][it])*nt,w.v[X][it]=_t}function l(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<w&&L<w||C>T&&L>T)||(this._caching.lastIndex=C<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function d(){this.paths=this.localShapeCollection}function m(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,C=L._length;for(T=0;T<C;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function p(L){m(this.v,L)||(this.v=De.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function b(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var C=T===3?w.pt.k:w.ks.k;this.v=De.clone(C),this.pv=De.clone(this.v),this.localShapeCollection=Ns.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function y(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=b,I.prototype.setVValue=p,I.prototype.addEffect=y;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var C=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=De.clone(this.v),this.localShapeCollection=Ns.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[l.bind(this)]}k.prototype.getValue=b,k.prototype.interpolateShape=s,k.prototype.setVValue=p,k.prototype.addEffect=y;var M=function(){var L=ie;function w(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ns.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=C.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=lt.getProp(T,C.p,1,0,this),this.s=lt.getProp(T,C.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var C=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,W=this.s.v[1]/2,X=this.d!==3,it=this.v;it.v[0][0]=C,it.v[0][1]=N-W,it.v[1][0]=X?C+$:C-$,it.v[1][1]=N,it.v[2][0]=C,it.v[2][1]=N+W,it.v[3][0]=X?C-$:C+$,it.v[3][1]=N,it.i[0][0]=X?C-$*L:C+$*L,it.i[0][1]=N-W,it.i[1][0]=X?C+$:C-$,it.i[1][1]=N-W*L,it.i[2][0]=X?C+$*L:C-$*L,it.i[2][1]=N+W,it.i[3][0]=X?C-$:C+$,it.i[3][1]=N+W*L,it.o[0][0]=X?C+$*L:C-$*L,it.o[0][1]=N-W,it.o[1][0]=X?C+$:C-$,it.o[1][1]=N+W*L,it.o[2][0]=X?C-$*L:C+$*L,it.o[2][1]=N+W,it.o[3][0]=X?C-$:C+$,it.o[3][1]=N-W*L}},A([Ne],w),w}(),Y=function(){function L(w,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=lt.getProp(w,T.ir,0,0,this),this.is=lt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(w,T.pt,0,0,this),this.p=lt.getProp(w,T.p,1,0,this),this.r=lt.getProp(w,T.r,0,kt,this),this.or=lt.getProp(w,T.or,0,0,this),this.os=lt.getProp(w,T.os,0,.01,this),this.localShapeCollection=Ns.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,C=Math.PI*2/T,N=!0,$=this.or.v,W=this.ir.v,X=this.os.v,it=this.is.v,At=2*Math.PI*$/(T*2),ft=2*Math.PI*W/(T*2),nt,_t,mt,rt,_=-Math.PI/2;_+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,nt=0;nt<T;nt+=1){_t=N?$:W,mt=N?X:it,rt=N?At:ft;var v=_t*Math.cos(_),E=_t*Math.sin(_),j=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),z=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-j*rt*mt*P,E-z*rt*mt*P,v+j*rt*mt*P,E+z*rt*mt*P,nt,!0),N=!N,_+=C*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,$=this.os.v,W=2*Math.PI*N/(T*4),X,it=-Math.PI*.5,At=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,X=0;X<T;X+=1){var ft=N*Math.cos(it),nt=N*Math.sin(it),_t=ft===0&&nt===0?0:nt/Math.sqrt(ft*ft+nt*nt),mt=ft===0&&nt===0?0:-ft/Math.sqrt(ft*ft+nt*nt);ft+=+this.p.v[0],nt+=+this.p.v[1],this.v.setTripleAt(ft,nt,ft-_t*W*$*At,nt-mt*W*$*At,ft+_t*W*$*At,nt+mt*W*$*At,X,!0),it+=C*At}this.paths.length=0,this.paths[0]=this.v}},A([Ne],L),L}(),x=function(){function L(w,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=Ns.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=lt.getProp(w,T.p,1,0,this),this.s=lt.getProp(w,T.s,1,0,this),this.r=lt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],C=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,W=jt(N,$,this.r.v),X=W*(1-ie);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-$+W,T+N,C-$+W,T+N,C-$+X,0,!0),this.v.setTripleAt(T+N,C+$-W,T+N,C+$-X,T+N,C+$-W,1,!0),W!==0?(this.v.setTripleAt(T+N-W,C+$,T+N-W,C+$,T+N-X,C+$,2,!0),this.v.setTripleAt(T-N+W,C+$,T-N+X,C+$,T-N+W,C+$,3,!0),this.v.setTripleAt(T-N,C+$-W,T-N,C+$-W,T-N,C+$-X,4,!0),this.v.setTripleAt(T-N,C-$+W,T-N,C-$+X,T-N,C-$+W,5,!0),this.v.setTripleAt(T-N+W,C-$,T-N+W,C-$,T-N+X,C-$,6,!0),this.v.setTripleAt(T+N-W,C-$,T+N-X,C-$,T+N-W,C-$,7,!0)):(this.v.setTripleAt(T-N,C+$,T-N+X,C+$,T-N,C+$,2),this.v.setTripleAt(T-N,C-$,T-N,C-$+X,T-N,C-$,3))):(this.v.setTripleAt(T+N,C-$+W,T+N,C-$+X,T+N,C-$+W,0,!0),W!==0?(this.v.setTripleAt(T+N-W,C-$,T+N-W,C-$,T+N-X,C-$,1,!0),this.v.setTripleAt(T-N+W,C-$,T-N+X,C-$,T-N+W,C-$,2,!0),this.v.setTripleAt(T-N,C-$+W,T-N,C-$+W,T-N,C-$+X,3,!0),this.v.setTripleAt(T-N,C+$-W,T-N,C+$-X,T-N,C+$-W,4,!0),this.v.setTripleAt(T-N+W,C+$,T-N+W,C+$,T-N+X,C+$,5,!0),this.v.setTripleAt(T+N-W,C+$,T+N-X,C+$,T+N-W,C+$,6,!0),this.v.setTripleAt(T+N,C+$-W,T+N,C+$-W,T+N,C+$-X,7,!0)):(this.v.setTripleAt(T-N,C-$,T-N+X,C-$,T-N,C-$,1,!0),this.v.setTripleAt(T-N,C+$,T-N,C+$-X,T-N,C+$,2,!0),this.v.setTripleAt(T+N,C+$,T+N-X,C+$,T+N,C+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Ne],L),L}();function O(L,w,T){var C;if(T===3||T===4){var N=T===3?w.pt:w.ks,$=N.k;$.length?C=new k(L,w,T):C=new I(L,w,T)}else T===5?C=new x(L,w):T===6?C=new M(L,w):T===7&&(C=new Y(L,w));return C.k&&L.addDynamicProperty(C),C}function F(){return I}function D(){return k}var U={};return U.getShapeProp=O,U.getConstructorFunction=F,U.getKeyframedConstructorFunction=D,U}();var Pe=function(){var r=Math.cos,s=Math.sin,l=Math.tan,d=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function b(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(1,0,0,0,0,E,-j,0,0,j,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,0,j,0,0,1,0,0,-j,0,E,0,0,0,0,1)}function y(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function k(v,E){return this._t(1,E,v,1,0,0)}function M(v,E){return this.shear(l(v),l(E))}function Y(v,E){var j=r(E),z=s(E);return this._t(j,z,0,0,-z,j,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,l(v),1,0,0,0,0,1,0,0,0,0,1)._t(j,-z,0,0,z,j,0,0,0,0,1,0,0,0,0,1)}function x(v,E,j){return!j&&j!==0&&(j=1),v===1&&E===1&&j===1?this:this._t(v,0,0,0,0,E,0,0,0,0,j,0,0,0,0,1)}function O(v,E,j,z,ct,gt,St,$t,Vt,fe,rr,Jr,ir,Le,fr,Wt){return this.props[0]=v,this.props[1]=E,this.props[2]=j,this.props[3]=z,this.props[4]=ct,this.props[5]=gt,this.props[6]=St,this.props[7]=$t,this.props[8]=Vt,this.props[9]=fe,this.props[10]=rr,this.props[11]=Jr,this.props[12]=ir,this.props[13]=Le,this.props[14]=fr,this.props[15]=Wt,this}function F(v,E,j){return j=j||0,v!==0||E!==0||j!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,j,1):this}function D(v,E,j,z,ct,gt,St,$t,Vt,fe,rr,Jr,ir,Le,fr,Wt){var ut=this.props;if(v===1&&E===0&&j===0&&z===0&&ct===0&&gt===1&&St===0&&$t===0&&Vt===0&&fe===0&&rr===1&&Jr===0)return ut[12]=ut[12]*v+ut[15]*ir,ut[13]=ut[13]*gt+ut[15]*Le,ut[14]=ut[14]*rr+ut[15]*fr,ut[15]*=Wt,this._identityCalculated=!1,this;var Ai=ut[0],ro=ut[1],Si=ut[2],ti=ut[3],Ii=ut[4],Ci=ut[5],or=ut[6],io=ut[7],oo=ut[8],Pr=ut[9],so=ut[10],Fr=ut[11],Bo=ut[12],El=ut[13],Tl=ut[14],xl=ut[15];return ut[0]=Ai*v+ro*ct+Si*Vt+ti*ir,ut[1]=Ai*E+ro*gt+Si*fe+ti*Le,ut[2]=Ai*j+ro*St+Si*rr+ti*fr,ut[3]=Ai*z+ro*$t+Si*Jr+ti*Wt,ut[4]=Ii*v+Ci*ct+or*Vt+io*ir,ut[5]=Ii*E+Ci*gt+or*fe+io*Le,ut[6]=Ii*j+Ci*St+or*rr+io*fr,ut[7]=Ii*z+Ci*$t+or*Jr+io*Wt,ut[8]=oo*v+Pr*ct+so*Vt+Fr*ir,ut[9]=oo*E+Pr*gt+so*fe+Fr*Le,ut[10]=oo*j+Pr*St+so*rr+Fr*fr,ut[11]=oo*z+Pr*$t+so*Jr+Fr*Wt,ut[12]=Bo*v+El*ct+Tl*Vt+xl*ir,ut[13]=Bo*E+El*gt+Tl*fe+xl*Le,ut[14]=Bo*j+El*St+Tl*rr+xl*fr,ut[15]=Bo*z+El*$t+Tl*Jr+xl*Wt,this._identityCalculated=!1,this}function U(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function C(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,j){return{x:v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}}function $(v,E,j){return v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12]}function W(v,E,j){return v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13]}function X(v,E,j){return v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,j=-this.props[1]/v,z=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,St=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,$t=new Pe;return $t.props[0]=E,$t.props[1]=j,$t.props[4]=z,$t.props[5]=ct,$t.props[12]=gt,$t.props[13]=St,$t}function At(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ft(v){var E,j=v.length,z=[];for(E=0;E<j;E+=1)z[E]=At(v[E]);return z}function nt(v,E,j){var z=q("float32",6);if(this.isIdentity())z[0]=v[0],z[1]=v[1],z[2]=E[0],z[3]=E[1],z[4]=j[0],z[5]=j[1];else{var ct=this.props[0],gt=this.props[1],St=this.props[4],$t=this.props[5],Vt=this.props[12],fe=this.props[13];z[0]=v[0]*ct+v[1]*St+Vt,z[1]=v[0]*gt+v[1]*$t+fe,z[2]=E[0]*ct+E[1]*St+Vt,z[3]=E[0]*gt+E[1]*$t+fe,z[4]=j[0]*ct+j[1]*St+Vt,z[5]=j[0]*gt+j[1]*$t+fe}return z}function _t(v,E,j){var z;return this.isIdentity()?z=[v,E,j]:z=[v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]],z}function mt(v,E){if(this.isIdentity())return v+","+E;var j=this.props;return Math.round((v*j[0]+E*j[4]+j[12])*100)/100+","+Math.round((v*j[1]+E*j[5]+j[13])*100)/100}function rt(){for(var v=0,E=this.props,j="matrix3d(",z=1e4;v<16;)j+=d(E[v]*z)/z,j+=v===15?")":",",v+=1;return j}function _(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function P(){var v=this.props,E=_(v[0]),j=_(v[1]),z=_(v[4]),ct=_(v[5]),gt=_(v[12]),St=_(v[13]);return"matrix("+E+","+j+","+z+","+ct+","+gt+","+St+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=b,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=Y,this.shear=k,this.scale=x,this.setTransform=O,this.translate=F,this.transform=D,this.multiply=U,this.applyToPoint=N,this.applyToX=$,this.applyToY=W,this.applyToZ=X,this.applyToPointArray=_t,this.applyToTriplePoints=nt,this.applyToPointStringified=mt,this.toCSS=rt,this.to2dCSS=P,this.clone=T,this.cloneFromProps=C,this.equals=w,this.inversePoints=ft,this.inversePoint=At,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=q("float32",16),this.reset()}}();function pl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pl=function(l){return typeof l}:pl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},pl(r)}var Kt={},ml="__[STANDALONE]__",mu="__[ANIMATIONDATA]__",uu="";function ZE(r){c(r)}function fu(){ml===!0?ue.searchAnimations(mu,ml,uu):ue.searchAnimations()}function QE(r){RE(r)}function JE(r){FE(r)}function tT(r){return ml===!0&&(r.animationData=JSON.parse(mu)),ue.loadAnimation(r)}function eT(r){if(typeof r=="string")switch(r){case"high":sl(200);break;default:case"medium":sl(50);break;case"low":sl(10);break}else!isNaN(r)&&r>1&&sl(r);wa()>=50?Ke(!1):Ke(!0)}function rT(){return typeof navigator<"u"}function iT(r,s){r==="expressions"&&PE(s)}function oT(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return hl;case"matrix":return Pe;default:return null}}Kt.play=ue.play,Kt.pause=ue.pause,Kt.setLocationHref=ZE,Kt.togglePause=ue.togglePause,Kt.setSpeed=ue.setSpeed,Kt.setDirection=ue.setDirection,Kt.stop=ue.stop,Kt.searchAnimations=fu,Kt.registerAnimation=ue.registerAnimation,Kt.loadAnimation=tT,Kt.setSubframeRendering=QE,Kt.resize=ue.resize,Kt.goToAndStop=ue.goToAndStop,Kt.destroy=ue.destroy,Kt.setQuality=eT,Kt.inBrowser=rT,Kt.installPlugin=iT,Kt.freeze=ue.freeze,Kt.unfreeze=ue.unfreeze,Kt.setVolume=ue.setVolume,Kt.mute=ue.mute,Kt.unmute=ue.unmute,Kt.getRegisteredAnimations=ue.getRegisteredAnimations,Kt.useWebWorker=i,Kt.setIDPrefix=JE,Kt.__getFactory=oT,Kt.version="5.12.2";function sT(){document.readyState==="complete"&&(clearInterval(lT),fu())}function aT(r){for(var s=vu.split("&"),l=0;l<s.length;l+=1){var d=s[l].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var vu="";if(ml){var gu=document.getElementsByTagName("script"),nT=gu.length-1,bu=gu[nT]||{src:""};vu=bu.src?bu.src.replace(/^[^\?]+\??/,""):"",uu=aT("renderer")}var lT=setInterval(sT,100);try{!((typeof hn>"u"?"undefined":pl(hn))==="object"&&typeof Jl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Kt)}catch{}var Xi=function(){var r={},s={};r.registerModifier=l,r.getModifier=d;function l(m,p){s[m]||(s[m]=p)}function d(m,p,b){return new s[m](p,b)}return r}();function Sr(){}Sr.prototype.initModifierProperties=function(){},Sr.prototype.addShapeToModifier=function(){},Sr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Ns.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Sr.prototype.init=function(r,s){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Sr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Ne],Sr);function Dr(){}A([Sr],Dr),Dr.prototype.initModifierProperties=function(r,s){this.s=lt.getProp(r,s.s,0,.01,this),this.e=lt.getProp(r,s.e,0,.01,this),this.o=lt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Dr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Dr.prototype.calculateShapeEdges=function(r,s,l,d,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var b=[],I,y=p.length,k;for(I=0;I<y;I+=1)if(k=p[I],!(k.e*m<d||k.s*m>d+l)){var M,Y;k.s*m<=d?M=0:M=(k.s*m-d)/l,k.e*m>=d+l?Y=1:Y=(k.e*m-d)/l,b.push([M,Y])}return b.length||b.push([0,0]),b},Dr.prototype.releasePathsData=function(r){var s,l=r.length;for(s=0;s<l;s+=1)lu.release(r[s]);return r.length=0,r},Dr.prototype.processShapes=function(r){var s,l;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?s=1+d:this.s.v<0?s=0+d:s=this.s.v+d,this.e.v>1?l=1+d:this.e.v<0?l=0+d:l=this.e.v+d,s>l){var m=s;s=l,l=m}s=Math.round(s*1e4)*1e-4,l=Math.round(l*1e4)*1e-4,this.sValue=s,this.eValue=l}else s=this.sValue,l=this.eValue;var p,b,I=this.shapes.length,y,k,M,Y,x,O=0;if(l===s)for(b=0;b<I;b+=1)this.shapes[b].localShapeCollection.releaseShapes(),this.shapes[b].shape._mdf=!0,this.shapes[b].shape.paths=this.shapes[b].localShapeCollection,this._mdf&&(this.shapes[b].pathsData.length=0);else if(l===1&&s===0||l===0&&s===1){if(this._mdf)for(b=0;b<I;b+=1)this.shapes[b].pathsData.length=0,this.shapes[b].shape._mdf=!0}else{var F=[],D,U;for(b=0;b<I;b+=1)if(D=this.shapes[b],!D.shape._mdf&&!this._mdf&&!r&&this.m!==2)D.shape.paths=D.localShapeCollection;else{if(p=D.shape.paths,k=p._length,x=0,!D.shape._mdf&&D.pathsData.length)x=D.totalShapeLength;else{for(M=this.releasePathsData(D.pathsData),y=0;y<k;y+=1)Y=Zr.getSegmentsLength(p.shapes[y]),M.push(Y),x+=Y.totalLength;D.totalShapeLength=x,D.pathsData=M}O+=x,D.shape._mdf=!0}var L=s,w=l,T=0,C;for(b=I-1;b>=0;b-=1)if(D=this.shapes[b],D.shape._mdf){for(U=D.localShapeCollection,U.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,l,D.totalShapeLength,T,O),T+=D.totalShapeLength):C=[[L,w]],k=C.length,y=0;y<k;y+=1){L=C[y][0],w=C[y][1],F.length=0,w<=1?F.push({s:D.totalShapeLength*L,e:D.totalShapeLength*w}):L>=1?F.push({s:D.totalShapeLength*(L-1),e:D.totalShapeLength*(w-1)}):(F.push({s:D.totalShapeLength*L,e:D.totalShapeLength}),F.push({s:0,e:D.totalShapeLength*(w-1)}));var N=this.addShapes(D,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var $=D.shape.paths.shapes[D.shape.paths._length-1];if($.c){var W=N.pop();this.addPaths(N,U),N=this.addShapes(D,F[1],W)}else this.addPaths(N,U),N=this.addShapes(D,F[1])}this.addPaths(N,U)}}D.shape.paths=U}}},Dr.prototype.addPaths=function(r,s){var l,d=r.length;for(l=0;l<d;l+=1)s.addShape(r[l])},Dr.prototype.addSegment=function(r,s,l,d,m,p,b){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(l[0],l[1],"i",p+1),b&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Dr.prototype.addSegmentFromArray=function(r,s,l,d){s.setXYAt(r[1],r[5],"o",l),s.setXYAt(r[2],r[6],"i",l+1),d&&s.setXYAt(r[0],r[4],"v",l),s.setXYAt(r[3],r[7],"v",l+1)},Dr.prototype.addShapes=function(r,s,l){var d=r.pathsData,m=r.shape.paths.shapes,p,b=r.shape.paths._length,I,y,k=0,M,Y,x,O,F=[],D,U=!0;for(l?(Y=l._length,D=l._length):(l=De.newElement(),Y=0,D=0),F.push(l),p=0;p<b;p+=1){for(x=d[p].lengths,l.c=m[p].c,y=m[p].c?x.length:x.length+1,I=1;I<y;I+=1)if(M=x[I-1],k+M.addedLength<s.s)k+=M.addedLength,l.c=!1;else if(k>s.e){l.c=!1;break}else s.s<=k&&s.e>=k+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],l,Y,U),U=!1):(O=Zr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-k)/M.addedLength,(s.e-k)/M.addedLength,x[I-1]),this.addSegmentFromArray(O,l,Y,U),U=!1,l.c=!1),k+=M.addedLength,Y+=1;if(m[p].c&&x.length){if(M=x[I-1],k<=s.e){var L=x[I-1].addedLength;s.s<=k&&s.e>=k+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],l,Y,U),U=!1):(O=Zr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-k)/L,(s.e-k)/L,x[I-1]),this.addSegmentFromArray(O,l,Y,U),U=!1,l.c=!1)}else l.c=!1;k+=M.addedLength,Y+=1}if(l._length&&(l.setXYAt(l.v[D][0],l.v[D][1],"i",D),l.setXYAt(l.v[l._length-1][0],l.v[l._length-1][1],"o",l._length-1)),k>s.e)break;p<b-1&&(l=De.newElement(),U=!0,F.push(l),Y=0)}return F};function Oa(){}A([Sr],Oa),Oa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Oa.prototype.processPath=function(r,s){var l=s/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var b=De.newElement();b.c=r.c;var I,y,k,M,Y,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*l,y=r.v[p][1]+(d[1]-r.v[p][1])*l,k=r.o[p][0]+(d[0]-r.o[p][0])*-l,M=r.o[p][1]+(d[1]-r.o[p][1])*-l,Y=r.i[p][0]+(d[0]-r.i[p][0])*-l,x=r.i[p][1]+(d[1]-r.i[p][1])*-l,b.setTripleAt(I,y,k,M,Y,x,p);return b},Oa.prototype.processShapes=function(r){var s,l,d=this.shapes.length,m,p,b=this.amount.v;if(b!==0){var I,y;for(l=0;l<d;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Uc=function(){var r=[0,0];function s(y){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&y.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&y.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&y.skewFromAxis(-this.sk.v,this.sa.v),this.r?y.rotate(-this.r.v):y.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?y.translate(this.px.v,this.py.v,-this.pz.v):y.translate(this.px.v,this.py.v,0):y.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function l(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,Y;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),Y=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),Y=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,Y=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],Y=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),Y[0]=x.getValueAtTime(x.keyframes[0].t/k,0),Y[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),Y[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),Y[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],Y[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),Y[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else Y=r,M=Y;this.v.rotate(-Math.atan2(M[1]-Y[1],M[0]-Y[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(y){this._addDynamicProperty(y),this.elem.addDynamicProperty(y),this._isDirty=!0}function b(y,k,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),k.p&&k.p.s?(this.px=lt.getProp(y,k.p.x,0,0,this),this.py=lt.getProp(y,k.p.y,0,0,this),k.p.z&&(this.pz=lt.getProp(y,k.p.z,0,0,this))):this.p=lt.getProp(y,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=lt.getProp(y,k.rx,0,kt,this),this.ry=lt.getProp(y,k.ry,0,kt,this),this.rz=lt.getProp(y,k.rz,0,kt,this),k.or.k[0].ti){var Y,x=k.or.k.length;for(Y=0;Y<x;Y+=1)k.or.k[Y].to=null,k.or.k[Y].ti=null}this.or=lt.getProp(y,k.or,1,kt,this),this.or.sh=!0}else this.r=lt.getProp(y,k.r||{k:0},0,kt,this);k.sk&&(this.sk=lt.getProp(y,k.sk,0,kt,this),this.sa=lt.getProp(y,k.sa,0,kt,this)),this.a=lt.getProp(y,k.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(y,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=lt.getProp(y,k.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}b.prototype={applyToMatrix:s,getValue:l,precalculateMatrix:d,autoOrient:m},A([Ne],b),b.prototype.addDynamicProperty=p,b.prototype._addDynamicProperty=Ne.prototype.addDynamicProperty;function I(y,k,M){return new b(y,k,M)}return{getTransformProperty:I}}();function Qr(){}A([Sr],Qr),Qr.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=lt.getProp(r,s.c,0,null,this),this.o=lt.getProp(r,s.o,0,null,this),this.tr=Uc.getTransformProperty(r,s.tr,this),this.so=lt.getProp(r,s.tr.so,0,.01,this),this.eo=lt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},Qr.prototype.applyTransforms=function(r,s,l,d,m,p){var b=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),y=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*b*m,d.p.v[1]*b*m,d.p.v[2]),s.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),s.rotate(-d.r.v*b*m),s.translate(d.a.v[0],d.a.v[1],d.a.v[2]),l.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),l.scale(p?1/I:I,p?1/y:y),l.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Qr.prototype.init=function(r,s,l,d){for(this.elem=r,this.arr=s,this.pos=l,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[l]);l>0;)l-=1,this._elements.unshift(s[l]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Qr.prototype.resetElements=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Qr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Qr.prototype.changeGroupRender=function(r,s){var l,d=r.length;for(l=0;l<d;l+=1)r[l]._render=s,r[l].ty==="gr"&&this.changeGroupRender(r[l].it,s)},Qr.prototype.processShapes=function(r){var s,l,d,m,p,b=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var y={it:this.cloneElements(this._elements),ty:"gr"};y.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,y),this._groups.splice(0,0,y),this._currentCopies+=1}this.elem.reloadShapes(),b=!0}p=0;var k;for(d=0;d<=this._groups.length-1;d+=1){if(k=p<I,this._groups[d]._render=k,this.changeGroupRender(this._groups[d].it,k),!k){var M=this.elemsData[d].it,Y=M[M.length-1];Y.transform.op.v!==0?(Y.transform.op._mdf=!0,Y.transform.op.v=0):Y.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,F=x>0?Math.floor(x):Math.ceil(x),D=this.pMatrix.props,U=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}d=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,C;p;){if(s=this.elemsData[d].it,l=s[s.length-1].transform.mProps.v.props,C=l.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),w!==0){for((d!==0&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15]),T=0;T<C;T+=1)l[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)l[T]=this.matrix.props[T];w+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)s=this.elemsData[d].it,l=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,d+=m;return b},Qr.prototype.addShape=function(){};function Ra(){}A([Sr],Ra),Ra.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=lt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ra.prototype.processPath=function(r,s){var l=De.newElement();l.c=r.c;var d,m=r._length,p,b,I,y,k,M,Y=0,x,O,F,D,U,L;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],b=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===b[0]&&p[1]===b[1]?(d===0||d===m-1)&&!r.c?(l.setTripleAt(p[0],p[1],I[0],I[1],b[0],b[1],Y),Y+=1):(d===0?y=r.v[m-1]:y=r.v[d-1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,U=p[0]+(y[0]-p[0])*M,x=U,L=p[1]-(p[1]-y[1])*M,O=L,F=x-(x-p[0])*ie,D=O-(O-p[1])*ie,l.setTripleAt(x,O,F,D,U,L,Y),Y+=1,d===m-1?y=r.v[0]:y=r.v[d+1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,F=p[0]+(y[0]-p[0])*M,x=F,D=p[1]+(y[1]-p[1])*M,O=D,U=x-(x-p[0])*ie,L=O-(O-p[1])*ie,l.setTripleAt(x,O,F,D,U,L,Y),Y+=1):(l.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],Y),Y+=1);return l},Ra.prototype.processShapes=function(r){var s,l,d=this.shapes.length,m,p,b=this.rd.v;if(b!==0){var I,y;for(l=0;l<d;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ul(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Gc(r){return Math.abs(r)<=1e-5}function yu(r,s,l){return r*(1-l)+s*l}function Zi(r,s,l){return[yu(r[0],s[0],l),yu(r[1],s[1],l)]}function dT(r,s,l){if(r===0)return[];var d=s*s-4*r*l;if(d<0)return[];var m=-s/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function Eu(r,s,l,d){return[-r+3*s-3*l+d,3*r-6*s+3*l,-3*r+3*s,r]}function Tu(r){return new de(r,r,r,r,!1)}function de(r,s,l,d,m){m&&Ms(r,s)&&(s=Zi(r,d,1/3)),m&&Ms(l,d)&&(l=Zi(r,d,2/3));var p=Eu(r[0],s[0],l[0],d[0]),b=Eu(r[1],s[1],l[1],d[1]);this.a=[p[0],b[0]],this.b=[p[1],b[1]],this.c=[p[2],b[2]],this.d=[p[3],b[3]],this.points=[r,s,l,d]}de.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},de.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},de.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},de.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},de.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Gc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,l=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(l<0)return[];var d=Math.sqrt(l);return Gc(d)?d>0&&d<1?[s]:[]:[s-d,s+d].filter(function(m){return m>0&&m<1})},de.prototype.split=function(r){if(r<=0)return[Tu(this.points[0]),this];if(r>=1)return[this,Tu(this.points[this.points.length-1])];var s=Zi(this.points[0],this.points[1],r),l=Zi(this.points[1],this.points[2],r),d=Zi(this.points[2],this.points[3],r),m=Zi(s,l,r),p=Zi(l,d,r),b=Zi(m,p,r);return[new de(this.points[0],s,m,b,!0),new de(b,p,d,this.points[3],!0)]};function xu(r,s){var l=r.points[0][s],d=r.points[r.points.length-1][s];if(l>d){var m=d;d=l,l=m}for(var p=dT(3*r.a[s],2*r.b[s],r.c[s]),b=0;b<p.length;b+=1)if(p[b]>0&&p[b]<1){var I=r.point(p[b])[s];I<l?l=I:I>d&&(d=I)}return{min:l,max:d}}de.prototype.bounds=function(){return{x:xu(this,0),y:xu(this,1)}},de.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function fl(r,s,l){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(s+l)/2,t1:s,t2:l}}function Au(r){var s=r.bez.split(.5);return[fl(s[0],r.t1,r.t),fl(s[1],r.t,r.t2)]}function cT(r,s){return Math.abs(r.cx-s.cx)*2<r.width+s.width&&Math.abs(r.cy-s.cy)*2<r.height+s.height}function Da(r,s,l,d,m,p){if(cT(r,s)){if(l>=p||r.width<=d&&r.height<=d&&s.width<=d&&s.height<=d){m.push([r.t,s.t]);return}var b=Au(r),I=Au(s);Da(b[0],I[0],l+1,d,m,p),Da(b[0],I[1],l+1,d,m,p),Da(b[1],I[0],l+1,d,m,p),Da(b[1],I[1],l+1,d,m,p)}}de.prototype.intersections=function(r,s,l){s===void 0&&(s=2),l===void 0&&(l=7);var d=[];return Da(fl(this,0,1),fl(r,0,1),0,s,d,l),d},de.shapeSegment=function(r,s){var l=(s+1)%r.length();return new de(r.v[s],r.o[s],r.i[l],r.v[l],!0)},de.shapeSegmentInverted=function(r,s){var l=(s+1)%r.length();return new de(r.v[l],r.i[l],r.o[s],r.v[s],!0)};function Kc(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function vl(r,s,l,d){var m=[r[0],r[1],1],p=[s[0],s[1],1],b=[l[0],l[1],1],I=[d[0],d[1],1],y=Kc(Kc(m,p),Kc(b,I));return Gc(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function Ls(r,s,l){return[r[0]+Math.cos(s)*l,r[1]-Math.sin(s)*l]}function Wc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function Ms(r,s){return ul(r[0],s[0])&&ul(r[1],s[1])}function Pa(){}A([Sr],Pa),Pa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=lt.getProp(r,s.s,0,null,this),this.frequency=lt.getProp(r,s.r,0,null,this),this.pointsType=lt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Su(r,s,l,d,m,p,b){var I=l-Math.PI/2,y=l+Math.PI/2,k=s[0]+Math.cos(l)*d*m,M=s[1]-Math.sin(l)*d*m;r.setTripleAt(k,M,k+Math.cos(I)*p,M-Math.sin(I)*p,k+Math.cos(y)*b,M-Math.sin(y)*b,r.length())}function hT(r,s){var l=[s[0]-r[0],s[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*l[0]-Math.sin(d)*l[1],Math.sin(d)*l[0]+Math.cos(d)*l[1]];return m}function pT(r,s){var l=s===0?r.length()-1:s-1,d=(s+1)%r.length(),m=r.v[l],p=r.v[d],b=hT(m,p);return Math.atan2(0,1)-Math.atan2(b[1],b[0])}function Iu(r,s,l,d,m,p,b){var I=pT(s,l),y=s.v[l%s._length],k=s.v[l===0?s._length-1:l-1],M=s.v[(l+1)%s._length],Y=p===2?Math.sqrt(Math.pow(y[0]-k[0],2)+Math.pow(y[1]-k[1],2)):0,x=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;Su(r,s.v[l%s._length],I,b,d,x/((m+1)*2),Y/((m+1)*2),p)}function mT(r,s,l,d,m,p){for(var b=0;b<d;b+=1){var I=(b+1)/(d+1),y=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,k=s.normalAngle(I),M=s.point(I);Su(r,M,k,p,l,y/((d+1)*2),y/((d+1)*2),m),p=-p}return p}Pa.prototype.processPath=function(r,s,l,d){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var b=-1,I=de.shapeSegment(r,0);Iu(p,r,0,s,l,d,b);for(var y=0;y<m;y+=1)b=mT(p,I,s,l,d,-b),y===m-1&&!r.c?I=null:I=de.shapeSegment(r,(y+1)%m),Iu(p,r,y+1,s,l,d,b);return p},Pa.prototype.processShapes=function(r){var s,l,d=this.shapes.length,m,p,b=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(b!==0){var k,M;for(l=0;l<d;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,I,y));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Yc(r,s,l){var d=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Ls(r,d,l),Ls(s,d,l)]}function Os(r,s){var l,d,m,p,b,I,y;y=Yc(r.points[0],r.points[1],s),l=y[0],d=y[1],y=Yc(r.points[1],r.points[2],s),m=y[0],p=y[1],y=Yc(r.points[2],r.points[3],s),b=y[0],I=y[1];var k=vl(l,d,m,p);k===null&&(k=d);var M=vl(b,I,m,p);return M===null&&(M=b),new de(l,k,M,I)}function Cu(r,s,l,d,m){var p=s.points[3],b=l.points[0];if(d===3||Ms(p,b))return p;if(d===2){var I=-s.tangentAngle(1),y=-l.tangentAngle(0)+Math.PI,k=vl(p,Ls(p,I+Math.PI/2,100),b,Ls(b,I+Math.PI/2,100)),M=k?Wc(k,p):Wc(p,b)/2,Y=Ls(p,I,2*M*ie);return r.setXYAt(Y[0],Y[1],"o",r.length()-1),Y=Ls(b,y,2*M*ie),r.setTripleAt(b[0],b[1],b[0],b[1],Y[0],Y[1],r.length()),b}var x=Ms(p,s.points[2])?s.points[0]:s.points[2],O=Ms(b,l.points[1])?l.points[3]:l.points[1],F=vl(x,p,b,O);return F&&Wc(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function _u(r,s){var l=r.intersections(s);return l.length&&ul(l[0][0],1)&&l.shift(),l.length?l[0]:null}function wu(r,s){var l=r.slice(),d=s.slice(),m=_u(r[r.length-1],s[0]);return m&&(l[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=_u(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[l,d]}function uT(r){for(var s,l=1;l<r.length;l+=1)s=wu(r[l-1],r[l]),r[l-1]=s[0],r[l]=s[1];return r.length>1&&(s=wu(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function ku(r,s){var l=r.inflectionPoints(),d,m,p,b;if(l.length===0)return[Os(r,s)];if(l.length===1||ul(l[1],1))return p=r.split(l[0]),d=p[0],m=p[1],[Os(d,s),Os(m,s)];p=r.split(l[0]),d=p[0];var I=(l[1]-l[0])/(1-l[0]);return p=p[1].split(I),b=p[0],m=p[1],[Os(d,s),Os(b,s),Os(m,s)]}function Fa(){}A([Sr],Fa),Fa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this.miterLimit=lt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Fa.prototype.processPath=function(r,s,l,d){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var b,I,y,k=[];for(b=0;b<p;b+=1)y=de.shapeSegment(r,b),k.push(ku(y,s));if(!r.c)for(b=p-1;b>=0;b-=1)y=de.shapeSegmentInverted(r,b),k.push(ku(y,s));k=uT(k);var M=null,Y=null;for(b=0;b<k.length;b+=1){var x=k[b];for(Y&&(M=Cu(m,Y,x[0],l,d)),Y=x[x.length-1],I=0;I<x.length;I+=1)y=x[I],M&&Ms(y.points[0],M)?m.setXYAt(y.points[1][0],y.points[1][1],"o",m.length()-1):m.setTripleAt(y.points[0][0],y.points[0][1],y.points[1][0],y.points[1][1],y.points[0][0],y.points[0][1],m.length()),m.setTripleAt(y.points[3][0],y.points[3][1],y.points[3][0],y.points[3][1],y.points[2][0],y.points[2][1],m.length()),M=y.points[3]}return k.length&&Cu(m,Y,k[0][0],l,d),m},Fa.prototype.processShapes=function(r){var s,l,d=this.shapes.length,m,p,b=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(b!==0){var k,M;for(l=0;l<d;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,y,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Nu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],l="normal",d="normal",m=s.length,p,b=0;b<m;b+=1)switch(p=s[b].toLowerCase(),p){case"italic":d="italic";break;case"bold":l="700";break;case"black":l="900";break;case"medium":l="500";break;case"regular":case"normal":l="400";break;case"light":case"thin":l="200";break;default:break}return{style:d,weight:r.fWeight||l}}var $o=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},l=[];l=l.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,m=917631,p=917601,b=917626,I=65039,y=8205,k=127462,M=127487,Y=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var P=_.split(","),v,E=P.length,j=[];for(v=0;v<E;v+=1)P[v]!=="sans-serif"&&P[v]!=="monospace"&&j.push(P[v]);return j.join(",")}function O(_,P){var v=g("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=P;var E=g("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var j=E.offsetWidth;return E.style.fontFamily=x(_)+", "+P,{node:E,w:j,parent:v}}function F(){var _,P=this.fonts.length,v,E,j=P;for(_=0;_<P;_+=1)this.fonts[_].loaded?j-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(v=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,v.offsetWidth!==E?(j-=1,this.fonts[_].loaded=!0):(v=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,v.offsetWidth!==E&&(j-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));j!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function D(_,P){var v=document.body&&P?"svg":"canvas",E,j=Nu(_);if(v==="svg"){var z=Ct("text");z.style.fontSize="100px",z.setAttribute("font-family",_.fFamily),z.setAttribute("font-style",j.style),z.setAttribute("font-weight",j.weight),z.textContent="1",_.fClass?(z.style.fontFamily="inherit",z.setAttribute("class",_.fClass)):z.style.fontFamily=_.fFamily,P.appendChild(z),E=z}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=j.style+" "+j.weight+" 100px "+_.fFamily,E=ct}function gt(St){return v==="svg"?(E.textContent=St,E.getComputedTextLength()):E.measureText(St).width}return{measureText:gt}}function U(_,P){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(rr){rr.helper=D(rr),rr.cache={}}),this.fonts=_.list;return}var v=_.list,E,j=v.length,z=j;for(E=0;E<j;E+=1){var ct=!0,gt,St;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,z-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var $t=g("style");$t.setAttribute("f-forigin",v[E].fOrigin),$t.setAttribute("f-origin",v[E].origin),$t.setAttribute("f-family",v[E].fFamily),$t.type="text/css",$t.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",P.appendChild($t)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),St=0;St<gt.length;St+=1)gt[St].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var Vt=g("link");Vt.setAttribute("f-forigin",v[E].fOrigin),Vt.setAttribute("f-origin",v[E].origin),Vt.type="text/css",Vt.rel="stylesheet",Vt.href=v[E].fPath,document.body.appendChild(Vt)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),St=0;St<gt.length;St+=1)v[E].fPath===gt[St].src&&(ct=!1);if(ct){var fe=g("link");fe.setAttribute("f-forigin",v[E].fOrigin),fe.setAttribute("f-origin",v[E].origin),fe.setAttribute("rel","stylesheet"),fe.setAttribute("href",v[E].fPath),P.appendChild(fe)}}v[E].helper=D(v[E],P),v[E].cache={},this.fonts.push(v[E])}z===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var P,v=_.length,E,j=this.chars.length,z;for(P=0;P<v;P+=1){for(E=0,z=!1;E<j;)this.chars[E].style===_[P].style&&this.chars[E].fFamily===_[P].fFamily&&this.chars[E].ch===_[P].ch&&(z=!0),E+=1;z||(this.chars.push(_[P]),j+=1)}}}function w(_,P,v){for(var E=0,j=this.chars.length;E<j;){if(this.chars[E].ch===_&&this.chars[E].style===P&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,P,v)),s}function T(_,P,v){var E=this.getFontByName(P),j=_;if(!E.cache[j]){var z=E.helper;if(_===" "){var ct=z.measureText("|"+_+"|"),gt=z.measureText("||");E.cache[j]=(ct-gt)/100}else E.cache[j]=z.measureText(_)/100}return E.cache[j]*v}function C(_){for(var P=0,v=this.fonts.length;P<v;){if(this.fonts[P].fName===_)return this.fonts[P];P+=1}return this.fonts[0]}function N(_){var P=0,v=_.charCodeAt(0);if(v>=55296&&v<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(P=(v-55296)*1024+E-56320+65536)}return P}function $(_,P){var v=_.toString(16)+P.toString(16);return Y.indexOf(v)!==-1}function W(_){return _===y}function X(_){return _===I}function it(_){var P=N(_);return P>=k&&P<=M}function At(_){return it(_.substr(0,2))&&it(_.substr(2,2))}function ft(_){return l.indexOf(_)!==-1}function nt(_,P){var v=N(_.substr(P,2));if(v!==d)return!1;var E=0;for(P+=2;E<5;){if(v=N(_.substr(P,2)),v<p||v>b)return!1;E+=1,P+=2}return N(_.substr(P,2))===m}function _t(){this.isLoaded=!0}var mt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};mt.isModifier=$,mt.isZeroWidthJoiner=W,mt.isFlagEmoji=At,mt.isRegionalCode=it,mt.isCombinedCharacter=ft,mt.isRegionalFlag=nt,mt.isVariationSelector=X,mt.BLACK_FLAG_CODE_POINT=d;var rt={addChars:L,addFonts:U,getCharData:w,getFontByName:C,measureText:T,checkLoadedFonts:F,setIsLoaded:_t};return mt.prototype=rt,mt}();function Lu(r){this.animationData=r}Lu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function fT(r){return new Lu(r)}function gl(){}gl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,l=this.renderableComponents.length;for(s=0;s<l;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var jc=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return r[s]||""}}();function vT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function gT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function bT(r,s,l){this.p=lt.getProp(s,r.v,1,0,l)}function yT(r,s,l){this.p=lt.getProp(s,r.v,1,0,l)}function ET(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function TT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function xT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function AT(){this.p={}}function Mu(r,s){var l=r.ef||[];this.effectElements=[];var d,m=l.length,p;for(d=0;d<m;d+=1)p=new $a(l[d],s),this.effectElements.push(p)}function $a(r,s){this.init(r,s)}A([Ne],$a),$a.prototype.getValue=$a.prototype.iterateDynamicProperties,$a.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var l,d=this.data.ef.length,m,p=this.data.ef;for(l=0;l<d;l+=1){switch(m=null,p[l].ty){case 0:m=new vT(p[l],s,this);break;case 1:m=new gT(p[l],s,this);break;case 2:m=new bT(p[l],s,this);break;case 3:m=new yT(p[l],s,this);break;case 4:case 7:m=new xT(p[l],s,this);break;case 10:m=new ET(p[l],s,this);break;case 11:m=new TT(p[l],s,this);break;case 5:m=new Mu(p[l],s,this);break;default:m=new AT(p[l],s,this);break}m&&this.effectElements.push(m)}};function Qi(){}Qi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,l=this.data.masksProperties.length;s<l;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=ou();if(s){var l=s("layer"),d=s("effects"),m=s("shape"),p=s("text"),b=s("comp");this.layerInterface=l(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=b(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=jc(this.data.bm),l=this.baseElement||this.layerElement;l.style["mix-blend-mode"]=s},initBaseData:function(s,l,d){this.globalData=l,this.comp=d,this.data=s,this.layerId=tr(),this.data.sr||(this.data.sr=1),this.effectsManager=new Mu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Ji(){}Ji.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,l){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(l||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function to(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,l)}to.prototype.prepareFrame=function(){},A([gl,Qi,Ji],to),to.prototype.getBaseElement=function(){return null},to.prototype.renderFrame=function(){},to.prototype.destroy=function(){},to.prototype.initExpressions=function(){var r=ou();if(r){var s=r("footage");this.layerInterface=s(this)}},to.prototype.getFootageData=function(){return this.footageData};function er(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,l),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=lt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}er.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var l=this._volume*this._volumeMultiplier;this._previousVolume!==l&&(this._previousVolume=l,this.audio.volume(l))},A([gl,Qi,Ji],er),er.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},er.prototype.show=function(){},er.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},er.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},er.prototype.resume=function(){this._canPlay=!0},er.prototype.setRate=function(r){this.audio.rate(r)},er.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},er.prototype.getBaseElement=function(){return null},er.prototype.destroy=function(){},er.prototype.sourceRectAtTime=function(){},er.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,l=this.layers.length,d;for(this.completeLayers=!0,s=l-1;s>=0;s-=1)this.elements[s]||(d=this.layers[s],d.ip-d.st<=r-this.layers[s].st&&d.op-d.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new er(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new to(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,l=r.length,d,m=this.layers.length;for(s=0;s<l;s+=1)for(d=0;d<m;){if(this.layers[d].id===r[s].id){this.layers[d]=r[s];break}d+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,l){for(var d=this.elements,m=this.layers,p=0,b=m.length;p<b;)m[p].ind==s&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(l.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,l):r.setHierarchy(l))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,l=r.length;for(s=0;s<l;s+=1)if(r[s].xt){var d=this.createComp(r[s]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Fe.prototype.getElementById=function(r){var s,l=this.elements.length;for(s=0;s<l;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),l;if(typeof s=="number")l=this.elements[s];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===s){l=this.elements[d];break}}return r.length===0?l:l.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new $o,this.globalData.slotManager=fT(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var ST={TRANSFORM_EFFECT:"transformEFfect"};function Rs(){}Rs.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?Uc.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,l=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,l.cloneFromProps(s),d=0;d<m;d+=1)l.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,l=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<l;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),s=1;s<l;s+=1){var m=this.localTransforms[s].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<l;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(ST.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var l=0,d=s.length;for(l=0;l<d;l+=1)this.localTransforms.push(s[l])}}},globalToLocal:function(s){var l=[];l.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&l.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,b=l.length,I;for(p=0;p<b;p+=1)I=l[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Vo(r,s,l){this.data=r,this.element=s,this.globalData=l,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=Z(p),this.solidPath="";var b,I=this.masksProperties,y=0,k=[],M,Y,x=tr(),O,F,D,U,L="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(L="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=Ct("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,b=Ct("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:hl.getShapeProp(this.element,I[m],3),elem:b,lastPath:""},d.appendChild(b);else{y+=1,b.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),b.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(L="mask",w="mask",U=lt.getProp(this.element,I[m].x,0,null,this.element),T=tr(),F=Ct("filter"),F.setAttribute("id",T),D=Ct("feMorphology"),D.setAttribute("operator","erode"),D.setAttribute("in","SourceGraphic"),D.setAttribute("radius","0"),F.appendChild(D),d.appendChild(F),b.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(D=null,U=null),this.storedData[m]={elem:b,x:U,expan:D,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){Y=k.length;var C=Ct("g");for(M=0;M<Y;M+=1)C.appendChild(k[M]);var N=Ct("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+y),N.appendChild(b),d.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+y+")"),k.length=0,k.push(C)}else k.push(b);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:b,lastPath:"",op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:hl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=Ct(L),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);y>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Vo.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Vo.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,l,d=this.masksProperties.length;for(l=0;l<d;l+=1)if((this.viewData[l].prop._mdf||r)&&this.drawPath(this.masksProperties[l],this.viewData[l].prop.v,this.viewData[l]),(this.viewData[l].op._mdf||r)&&this.viewData[l].elem.setAttribute("fill-opacity",this.viewData[l].op.v),this.masksProperties[l].mode!=="n"&&(this.viewData[l].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[l].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[l].x&&(this.storedData[l].x._mdf||r))){var m=this.storedData[l].expan;this.storedData[l].x.v<0?(this.storedData[l].lastOperator!=="erode"&&(this.storedData[l].lastOperator="erode",this.storedData[l].elem.setAttribute("filter","url("+f()+"#"+this.storedData[l].filterId+")")),m.setAttribute("radius",-this.storedData[l].x.v)):(this.storedData[l].lastOperator!=="dilate"&&(this.storedData[l].lastOperator="dilate",this.storedData[l].elem.setAttribute("filter",null)),this.storedData[l].elem.setAttribute("stroke-width",this.storedData[l].x.v*2))}},Vo.prototype.getMaskelement=function(){return this.maskElement},Vo.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Vo.prototype.drawPath=function(r,s,l){var d=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),l.lastPath!==d){var b="";l.elem&&(s.c&&(b=r.inv?this.solidPath+d:d),l.elem.setAttribute("d",b)),l.lastPath=d}},Vo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Va=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=l;function s(d,m){var p=Ct("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function l(){var d=Ct("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),Ou=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),bl={},Ru="filter_result_";function qc(r){var s,l="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=tr(),p=Va.createFilter(m,!0),b=0;this.filters=[];var I;for(s=0;s<d;s+=1){I=null;var y=r.data.ef[s].ty;if(bl[y]){var k=bl[y].effect;I=new k(p,r.effectsManager.effectElements[s],r,Ru+b,l),l=Ru+b,bl[y].countsAsEffect&&(b+=1)}I&&this.filters.push(I)}b&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}qc.prototype.renderFrame=function(r){var s,l=this.filters.length;for(s=0;s<l;s+=1)this.filters[s].renderFrame(r)},qc.prototype.getEffects=function(r){var s,l=this.filters.length,d=[];for(s=0;s<l;s+=1)this.filters[s].type===r&&d.push(this.filters[s]);return d};function WI(r,s,l){bl[r]={effect:s,countsAsEffect:l}}function za(){}za.prototype={initRendererElement:function(){this.layerElement=Ct("g")},createContainerElements:function(){this.matteElement=Ct("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var l=Ct("g");l.setAttribute("id",this.layerId),l.appendChild(this.layerElement),s=l,this.globalData.defs.appendChild(l)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=Ct("clipPath"),m=Ct("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=tr();if(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var b=Ct("g");b.setAttribute("clip-path","url("+f()+"#"+p+")"),b.appendChild(this.layerElement),this.transformedElement=b,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Vo(this.data,this,this.globalData),this.renderableEffectsManager=new qc(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var l=this.layerId+"_"+s,d,m,p,b;if(s===1||s===3){var I=Ct("mask");I.setAttribute("id",l),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Ou.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),d=tr(),m=Va.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(Va.createAlphaToLuminanceFilter()),b=Ct("g"),b.appendChild(p),I.appendChild(b),b.setAttribute("filter","url("+f()+"#"+d+")"))}else if(s===2){var y=Ct("mask");y.setAttribute("id",l),y.setAttribute("mask-type","alpha");var k=Ct("g");y.appendChild(k),d=tr(),m=Va.createFilter(d);var M=Ct("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var Y=Ct("feFuncA");Y.setAttribute("type","table"),Y.setAttribute("tableValues","1.0 0.0"),M.appendChild(Y),this.globalData.defs.appendChild(m);var x=Ct("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+d+")"),k.appendChild(x),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),Ou.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(Va.createAlphaToLuminanceFilter()),b=Ct("g"),k.appendChild(x),b.appendChild(this.layerElement),k.appendChild(b)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=l}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Ds(){}Ds.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Ba(){}(function(){var r={initElement:function(l,d,m){this.initFrame(),this.initBaseData(l,d,m),this.initTransform(l,d,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var l=this.baseElement||this.layerElement;l.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var l=this.baseElement||this.layerElement;l.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(l){this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([gl,H(r)],Ba)})();function Ha(r,s,l){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,l),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Qi,Rs,za,Ds,Ji,Ba],Ha),Ha.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=Ct("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Ha.prototype.sourceRectAtTime=function(){return this.sourceRect};function IT(r,s){this.elem=r,this.pos=s}function Du(){}Du.prototype={addShapeToModifiers:function(s){var l,d=this.shapeModifiers.length;for(l=0;l<d;l+=1)this.shapeModifiers[l].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var l=0,d=this.shapeModifiers.length;l<d;)if(this.shapeModifiers[l].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,l=this.shapes.length;for(s=0;s<l;s+=1)this.shapes[s].sh.reset();l=this.shapeModifiers.length;var d;for(s=l-1;s>=0&&(d=this.shapeModifiers[s].processShapes(this._isFirstFrame),!d);s-=1);}},searchProcessedElement:function(s){for(var l=this.processedElements,d=0,m=l.length;d<m;){if(l[d].elem===s)return l[d].pos;d+=1}return 0},addProcessedElement:function(s,l){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===s){d[m].pos=l;return}d.push(new IT(s,l))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var Pu={1:"butt",2:"round",3:"square"},Fu={1:"miter",2:"round",3:"bevel"};function $u(r,s,l){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=l,this.lvl=s,this._isAnimated=!!l.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}$u.prototype.setAsAnimated=function(){this._isAnimated=!0};function Vu(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=Ct("path"),this.msElem=null}Vu.prototype.reset=function(){this.d="",this._mdf=!1};function yl(r,s,l,d){this.elem=r,this.frameId=-1,this.dataProps=Z(s.length),this.renderer=l,this.k=!1,this.dashStr="",this.dashArray=q("float32",s.length?s.length-1:0),this.dashoffset=q("float32",1),this.initDynamicPropertyContainer(d);var m,p=s.length||0,b;for(m=0;m<p;m+=1)b=lt.getProp(r,s[m].v,0,0,this),this.k=b.k||this.k,this.dataProps[m]={n:s[m].n,p:b};this.k||this.getValue(!0),this._isAnimated=this.k}yl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,l=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<l;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},A([Ne],yl);function zu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.w=lt.getProp(r,s.w,0,null,this),this.d=new yl(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=l,this._isAnimated=!!this._isAnimated}A([Ne],zu);function Bu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.c=lt.getProp(r,s.c,1,255,this),this.style=l}A([Ne],Bu);function Hu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=l}A([Ne],Hu);function Ua(r,s,l){this.data=s,this.c=q("uint8c",s.p*4);var d=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=q("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(l),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ua.prototype.comparePoints=function(r,s){for(var l=0,d=this.o.length/2,m;l<d;){if(m=Math.abs(r[l*4]-r[s*4+l*2]),m>.01)return!1;l+=1}return!0},Ua.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,s=this.data.k.k.length;r<s;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Ua.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,l=this.data.p*4,d,m;for(s=0;s<l;s+=1)d=s%4===0?100:255,m=Math.round(this.prop.v[s]*d),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(l=this.prop.v.length,s=this.data.p*4;s<l;s+=1)d=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Ne],Ua);function Ps(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,l)}Ps.prototype.initGradientData=function(r,s,l){this.o=lt.getProp(r,s.o,0,.01,this),this.s=lt.getProp(r,s.s,1,null,this),this.e=lt.getProp(r,s.e,1,null,this),this.h=lt.getProp(r,s.h||{k:0},0,.01,this),this.a=lt.getProp(r,s.a||{k:0},0,kt,this),this.g=new Ua(r,s.g,this),this.style=l,this.stops=[],this.setGradientData(l.pElem,s),this.setGradientOpacity(s,l),this._isAnimated=!!this._isAnimated},Ps.prototype.setGradientData=function(r,s){var l=tr(),d=Ct(s.t===1?"linearGradient":"radialGradient");d.setAttribute("id",l),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,b,I;for(I=s.g.p*4,b=0;b<I;b+=4)p=Ct("stop"),d.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+l+")"),this.gf=d,this.cst=m},Ps.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var l,d,m,p=Ct("mask"),b=Ct("path");p.appendChild(b);var I=tr(),y=tr();p.setAttribute("id",y);var k=Ct(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var M=this.stops;for(d=r.g.p*4;d<m;d+=2)l=Ct("stop"),l.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(l),M.push(l);b.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(b.setAttribute("stroke-linecap",Pu[r.lc||2]),b.setAttribute("stroke-linejoin",Fu[r.lj||2]),r.lj===1&&b.setAttribute("stroke-miterlimit",r.ml)),this.of=k,this.ms=p,this.ost=M,this.maskId=y,s.msElem=b}},A([Ne],Ps);function Uu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new yl(r,s.d||{},"svg",this),this.initGradientData(r,s,l),this._isAnimated=!!this._isAnimated}A([Ps,Ne],Uu);function CT(){this.it=[],this.prevViewData=[],this.gr=Ct("g")}function _T(r,s,l){this.transform={mProps:r,op:s,container:l},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Gu=function(s,l,d,m){if(l===0)return"";var p=s.o,b=s.i,I=s.v,y,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<l;y+=1)k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[y][0],b[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return d&&l&&(k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[0][0],b[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},wT=function(){var r=new Pe,s=new Pe,l={createRenderFunction:d};function d(Y){switch(Y.ty){case"fl":return I;case"gf":return k;case"gs":return y;case"st":return M;case"sh":case"el":case"rc":case"sr":return b;case"tr":return m;case"no":return p;default:return null}}function m(Y,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function b(Y,x,O){var F,D,U,L,w,T,C=x.styles.length,N=x.lvl,$,W,X,it;for(T=0;T<C;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(W=s.reset(),X=N-x.styles[T].lvl,it=x.transformers.length-1;!L&&X>0;)L=x.transformers[it].mProps._mdf||L,X-=1,it-=1;if(L)for(X=N-x.styles[T].lvl,it=x.transformers.length-1;X>0;)W.multiply(x.transformers[it].mProps.v),X-=1,it-=1}else W=r;if($=x.sh.paths,D=$._length,L){for(U="",F=0;F<D;F+=1)w=$.shapes[F],w&&w._length&&(U+=Gu(w,w._length,w.c,W));x.caches[T]=U}else U=x.caches[T];x.styles[T].d+=Y.hd===!0?"":U,x.styles[T]._mdf=L||x.styles[T]._mdf}}function I(Y,x,O){var F=x.style;(x.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",x.o.v)}function y(Y,x,O){k(Y,x,O),M(Y,x,O)}function k(Y,x,O){var F=x.gf,D=x.g._hasOpacity,U=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=Y.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=Y.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";F.setAttribute(T,U[0]),F.setAttribute(C,U[1]),D&&!x.g._collapsable&&(x.of.setAttribute(T,U[0]),x.of.setAttribute(C,U[1]))}var N,$,W,X;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(W=N.length,$=0;$<W;$+=1)X=N[$],X.setAttribute("offset",it[$*4]+"%"),X.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(D&&(x.g._omdf||O)){var At=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,W=N.length,$=0;$<W;$+=1)X=N[$],x.g._collapsable||X.setAttribute("offset",At[$*2]+"%"),X.setAttribute("stop-opacity",At[$*2+1])}if(Y.t===1)(x.e._mdf||O)&&(F.setAttribute("x2",L[0]),F.setAttribute("y2",L[1]),D&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ft;if((x.s._mdf||x.e._mdf||O)&&(ft=Math.sqrt(Math.pow(U[0]-L[0],2)+Math.pow(U[1]-L[1],2)),F.setAttribute("r",ft),D&&!x.g._collapsable&&x.of.setAttribute("r",ft)),x.e._mdf||x.h._mdf||x.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(U[0]-L[0],2)+Math.pow(U[1]-L[1],2)));var nt=Math.atan2(L[1]-U[1],L[0]-U[0]),_t=x.h.v;_t>=1?_t=.99:_t<=-1&&(_t=-.99);var mt=ft*_t,rt=Math.cos(nt+x.a.v)*mt+U[0],_=Math.sin(nt+x.a.v)*mt+U[1];F.setAttribute("fx",rt),F.setAttribute("fy",_),D&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",_))}}}function M(Y,x,O){var F=x.style,D=x.d;D&&(D._mdf||O)&&D.dashStr&&(F.pElem.setAttribute("stroke-dasharray",D.dashStr),F.pElem.setAttribute("stroke-dashoffset",D.dashoffset[0])),x.c&&(x.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",x.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",x.w.v))}return l}();function ce(r,s,l){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,l),this.prevViewData=[]}A([Qi,Rs,za,Du,Ds,Ji,Ba],ce),ce.prototype.initSecondaryElement=function(){},ce.prototype.identityMatrix=new Pe,ce.prototype.buildExpressionInterface=function(){},ce.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ce.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,l,d,m=this.stylesList.length,p,b=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,b.length=0,r=0;r<s;r+=1)l=this.shapes[r],l.styles.indexOf(p)!==-1&&(b.push(l),I=l._isAnimated||I);b.length>1&&I&&this.setShapesAsAnimated(b)}},ce.prototype.setShapesAsAnimated=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s].setAsAnimated()},ce.prototype.createStyleElement=function(r,s){var l,d=new Vu(r,s),m=d.pElem;if(r.ty==="st")l=new zu(this,r,d);else if(r.ty==="fl")l=new Bu(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ps:Uu;l=new p(this,r,d),this.globalData.defs.appendChild(l.gf),l.maskId&&(this.globalData.defs.appendChild(l.ms),this.globalData.defs.appendChild(l.of),m.setAttribute("mask","url("+f()+"#"+l.maskId+")"))}else r.ty==="no"&&(l=new Hu(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",Pu[r.lc||2]),m.setAttribute("stroke-linejoin",Fu[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=jc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,l),l},ce.prototype.createGroupElement=function(r){var s=new CT;return r.ln&&s.gr.setAttribute("id",r.ln),r.cl&&s.gr.setAttribute("class",r.cl),r.bm&&(s.gr.style["mix-blend-mode"]=jc(r.bm)),s},ce.prototype.createTransformElement=function(r,s){var l=Uc.getTransformProperty(this,r,this),d=new _T(l,l.o,s);return this.addToAnimatedContents(r,d),d},ce.prototype.createShapeElement=function(r,s,l){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=hl.getShapeProp(this,r,d,this),p=new $u(s,l,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},ce.prototype.addToAnimatedContents=function(r,s){for(var l=0,d=this.animatedContents.length;l<d;){if(this.animatedContents[l].element===s)return;l+=1}this.animatedContents.push({fn:wT.createRenderFunction(r),element:s,data:r})},ce.prototype.setElementStyles=function(r){var s=r.styles,l,d=this.stylesList.length;for(l=0;l<d;l+=1)this.stylesList[l].closed||s.push(this.stylesList[l])},ce.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},ce.prototype.searchShapes=function(r,s,l,d,m,p,b){var I=[].concat(p),y,k=r.length-1,M,Y,x=[],O=[],F,D,U;for(y=k;y>=0;y-=1){if(U=this.searchProcessedElement(r[y]),U?s[y]=l[U-1]:r[y]._render=b,r[y].ty==="fl"||r[y].ty==="st"||r[y].ty==="gf"||r[y].ty==="gs"||r[y].ty==="no")U?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==d&&d.appendChild(s[y].style.pElem),x.push(s[y].style);else if(r[y].ty==="gr"){if(!U)s[y]=this.createGroupElement(r[y]);else for(Y=s[y].it.length,M=0;M<Y;M+=1)s[y].prevViewData[M]=s[y].it[M];this.searchShapes(r[y].it,s[y].it,s[y].prevViewData,s[y].gr,m+1,I,b),r[y]._render&&s[y].gr.parentNode!==d&&d.appendChild(s[y].gr)}else r[y].ty==="tr"?(U||(s[y]=this.createTransformElement(r[y],d)),F=s[y].transform,I.push(F)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(U||(s[y]=this.createShapeElement(r[y],I,m)),this.setElementStyles(s[y])):r[y].ty==="tm"||r[y].ty==="rd"||r[y].ty==="ms"||r[y].ty==="pb"||r[y].ty==="zz"||r[y].ty==="op"?(U?(D=s[y],D.closed=!1):(D=Xi.getModifier(r[y].ty),D.init(this,r[y]),s[y]=D,this.shapeModifiers.push(D)),O.push(D)):r[y].ty==="rp"&&(U?(D=s[y],D.closed=!0):(D=Xi.getModifier(r[y].ty),s[y]=D,D.init(this,r,y,s),this.shapeModifiers.push(D),b=!1),O.push(D));this.addProcessedElement(r[y],y+1)}for(k=x.length,y=0;y<k;y+=1)x[y].closed=!0;for(k=O.length,y=0;y<k;y+=1)O[y].closed=!0},ce.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},ce.prototype.renderShape=function(){var r,s=this.animatedContents.length,l;for(r=0;r<s;r+=1)l=this.animatedContents[r],(this._isFirstFrame||l.element._isAnimated)&&l.data!==!0&&l.fn(l.data,l.element,this._isFirstFrame)},ce.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Xc(r,s,l,d,m,p){this.o=r,this.sw=s,this.sc=l,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!l,fc:!!d,m:!0,p:!0}}Xc.prototype.update=function(r,s,l,d,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var b=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,b=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,b=!0),this.sc!==l&&(this.sc=l,this._mdf.sc=!0,b=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,b=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,b=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,b=!0),b};function We(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}We.prototype.defaultBoxWidth=[0,0],We.prototype.copyData=function(r,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r[l]=s[l]);return r},We.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},We.prototype.searchProperty=function(){return this.searchKeyframes()},We.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},We.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},We.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,l=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)l!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},We.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,l=0,d=r.length;l<=d-1&&!(l===d-1||r[l+1].t>s);)l+=1;return this.keysIndex!==l&&(this.keysIndex=l),this.data.d.k[this.keysIndex].s},We.prototype.buildFinalText=function(r){for(var s=[],l=0,d=r.length,m,p,b=!1,I=!1,y="";l<d;)b=I,I=!1,m=r.charCodeAt(l),y=r.charAt(l),$o.isCombinedCharacter(m)?b=!0:m>=55296&&m<=56319?$o.isRegionalFlag(r,l)?y=r.substr(l,14):(p=r.charCodeAt(l+1),p>=56320&&p<=57343&&($o.isModifier(m,p)?(y=r.substr(l,2),b=!0):$o.isFlagEmoji(r.substr(l,4))?y=r.substr(l,4):y=r.substr(l,2))):m>56319?(p=r.charCodeAt(l+1),$o.isVariationSelector(m)&&(b=!0)):$o.isZeroWidthJoiner(m)&&(b=!0,I=!0),b?(s[s.length-1]+=y,b=!1):s.push(y),l+=y.length;return s},We.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,l=this.data,d=[],m,p,b,I=0,y,k=l.m.g,M=0,Y=0,x=0,O=[],F=0,D=0,U,L,w=s.getFontByName(r.f),T,C=0,N=Nu(w);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,W;if(r.sz)for(var X=!0,it=r.sz[0],At=r.sz[1],ft,nt;X;){nt=this.buildFinalText(r.t),ft=0,F=0,p=nt.length,$=r.tr/1e3*r.finalSize;var _t=-1;for(m=0;m<p;m+=1)W=nt[m].charCodeAt(0),b=!1,nt[m]===" "?_t=m:(W===13||W===3)&&(F=0,b=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(nt[m],w.fStyle,w.fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(nt[m],r.f,r.finalSize),F+C>it&&nt[m]!==" "?(_t===-1?p+=1:m=_t,ft+=r.finalLineHeight||r.finalSize*1.2,nt.splice(m,_t===m?1:0,"\r"),_t=-1,F=0):(F+=C,F+=$);ft+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&At<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=nt,p=r.finalText.length,X=!1)}F=-$,C=0;var mt=0,rt;for(m=0;m<p;m+=1)if(b=!1,rt=r.finalText[m],W=rt.charCodeAt(0),W===13||W===3?(mt=0,O.push(F),D=F>D?F:D,F=-2*$,y="",b=!0,x+=1):y=rt,s.chars?(T=s.getCharData(rt,w.fStyle,s.getFontByName(r.f).fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),rt===" "?mt+=C+$:(F+=C+$+mt,mt=0),d.push({l:C,an:C,add:M,n:b,anIndexes:[],val:y,line:x,animatorJustifyOffset:0}),k==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);Y<=m;)d[Y].an=M,d[Y].ind=I,d[Y].extra=C,Y+=1;I+=1,M=0}}else if(k==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);Y<=m;)d[Y].an=M,d[Y].ind=I,d[Y].extra=C,Y+=1;M=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,D=F>D?F:D,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=D,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=l.a,P,v;L=_.length;var E,j,z=[];for(U=0;U<L;U+=1){for(P=_[U],P.a.sc&&(r.strokeColorAnim=!0),P.a.sw&&(r.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(r.fillColorAnim=!0),j=0,E=P.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[U]=j,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(P.s.rn===1&&z.push(j),j+=1);l.a[U].s.totalChars=j;var ct=-1,gt;if(P.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[U]&&(ct=v.anIndexes[U],gt=z.splice(Math.floor(Math.random()*z.length),1)[0]),v.anIndexes[U]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},We.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var l=this.copyData({},this.data.d.k[s].s);l=this.copyData(l,r),this.data.d.k[s].s=l,this.recalculate(s),this.setCurrentData(l),this.elem.addDynamicProperty(this)},We.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},We.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},We.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var kT=function(){var r=Math.max,s=Math.min,l=Math.floor;function d(p,b){this._currentTextLength=-1,this.k=!1,this.data=b,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=lt.getProp(p,b.s||{k:0},0,0,this),"e"in b?this.e=lt.getProp(p,b.e,0,0,this):this.e={v:100},this.o=lt.getProp(p,b.o||{k:0},0,0,this),this.xe=lt.getProp(p,b.xe||{k:0},0,0,this),this.ne=lt.getProp(p,b.ne||{k:0},0,0,this),this.sm=lt.getProp(p,b.sm||{k:100},0,0,this),this.a=lt.getProp(p,b.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(b){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,y=0,k=1,M=1;this.ne.v>0?I=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var Y=Ma.getBezierEasing(I,y,k,M).get,x=0,O=this.finalS,F=this.finalE,D=this.data.sh;if(D===2)F===O?x=b>=F?1:0:x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===3)F===O?x=b>=F?0:1:x=1-r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===4)F===O?x=0:(x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=Y(x);else if(D===5){if(F===O)x=0;else{var U=F-O;b=s(r(0,b+.5-O),F-O);var L=-U/2+b,w=U/2;x=Math.sqrt(1-L*L/(w*w))}x=Y(x)}else D===6?(F===O?x=0:(b=s(r(0,b+.5-O),F-O),x=(1+Math.cos(Math.PI+Math.PI*2*b/(F-O)))/2),x=Y(x)):(b>=l(O)&&(b-O<0?x=r(0,s(s(F,1)-(O-b),1)):x=r(0,s(F-b,1))),x=Y(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;x<C?x=0:(x=(x-C)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(b){this.iterateDynamicProperties(),this._mdf=b||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,b&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,y=this.o.v/I,k=this.s.v/I+y,M=this.e.v/I+y;if(k>M){var Y=k;k=M,M=Y}this.finalS=k,this.finalE=M}},A([Ne],d);function m(p,b,I){return new d(p,b,I)}return{getTextSelectorProp:m}}();function NT(r,s,l){var d={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,kt,l):d,rx:p.rx?m(r,p.rx,0,kt,l):d,ry:p.ry?m(r,p.ry,0,kt,l):d,sk:p.sk?m(r,p.sk,0,kt,l):d,sa:p.sa?m(r,p.sa,0,kt,l):d,s:p.s?m(r,p.s,1,.01,l):d,a:p.a?m(r,p.a,1,0,l):d,o:p.o?m(r,p.o,0,.01,l):d,p:p.p?m(r,p.p,1,0,l):d,sw:p.sw?m(r,p.sw,0,0,l):d,sc:p.sc?m(r,p.sc,1,0,l):d,fc:p.fc?m(r,p.fc,1,0,l):d,fh:p.fh?m(r,p.fh,0,0,l):d,fs:p.fs?m(r,p.fs,0,.01,l):d,fb:p.fb?m(r,p.fb,0,.01,l):d,t:p.t?m(r,p.t,0,0,l):d},this.s=kT.getTextSelectorProp(r,s.s,l),this.s.t=s.s.t}function zo(r,s,l){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=l,this._animatorsData=Z(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(l)}zo.prototype.searchProperties=function(){var r,s=this._textData.a.length,l,d=lt.getProp;for(r=0;r<s;r+=1)l=this._textData.a[r],this._animatorsData[r]=new NT(this._elem,l,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},zo.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var l=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,b=this._renderType,I=this.renderedLetters.length,y,k,M,Y,x=r.l,O,F,D,U,L,w,T,C,N,$,W,X,it,At,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var nt=ft.v;this._pathData.r.v&&(nt=nt.reverse()),O={tLength:0,segments:[]},Y=nt._length-1;var _t;for(X=0,M=0;M<Y;M+=1)_t=Zr.buildBezierData(nt.v[M],nt.v[M+1],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[M+1][0]-nt.v[M+1][0],nt.i[M+1][1]-nt.v[M+1][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength;M=Y,ft.v.c&&(_t=Zr.buildBezierData(nt.v[M],nt.v[0],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[0][0]-nt.v[0][0],nt.i[0][1]-nt.v[0][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,U=0,L=!0,$=O.segments,F<0&&ft.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,C=N[w-1],D=N[w],W=D.partialLength}Y=x.length,y=0,k=0;var mt=r.finalSize*1.2*.714,rt=!0,_,P,v,E,j;E=d.length;var z,ct=-1,gt,St,$t,Vt=F,fe=T,rr=w,Jr=-1,ir,Le,fr,Wt,ut,Ai,ro,Si,ti="",Ii=this.defaultPropsArray,Ci;if(r.j===2||r.j===1){var or=0,io=0,oo=r.j===2?-.5:-1,Pr=0,so=!0;for(M=0;M<Y;M+=1)if(x[M].n){for(or&&(or+=io);Pr<M;)x[Pr].animatorJustifyOffset=or,Pr+=1;or=0,so=!0}else{for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(so&&r.j===2&&(io+=_.t.v*oo),P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?or+=_.t.v*z[0]*oo:or+=_.t.v*z*oo);so=!1}for(or&&(or+=io);Pr<M;)x[Pr].animatorJustifyOffset=or,Pr+=1}for(M=0;M<Y;M+=1){if(p.reset(),ir=1,x[M].n)y=0,k+=r.yOffset,k+=rt?1:0,F=Vt,rt=!1,this._hasMaskedPath&&(T=fe,w=rr,N=$[T].points,C=N[w-1],D=N[w],W=D.partialLength,U=0),ti="",Si="",Ai="",Ci="",Ii=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Jr!==x[M].line){switch(r.j){case 1:F+=X-r.lineWidths[x[M].line];break;case 2:F+=(X-r.lineWidths[x[M].line])/2;break;default:break}Jr=x[M].line}ct!==x[M].ind&&(x[ct]&&(F+=x[ct].extra),F+=x[M].an/2,ct=x[M].ind),F+=l[0]*x[M].an*.005;var Fr=0;for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?Fr+=_.p.v[0]*z[0]:Fr+=_.p.v[0]*z),_.a.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?Fr+=_.a.v[0]*z[0]:Fr+=_.a.v[0]*z);for(L=!0,this._pathData.a.v&&(F=x[0].an*.5+(X-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(Y-1),F+=this._pathData.f.v);L;)U+W>=F+Fr||!N?(it=(F+Fr-U)/D.partialLength,St=C.point[0]+(D.point[0]-C.point[0])*it,$t=C.point[1]+(D.point[1]-C.point[1])*it,p.translate(-l[0]*x[M].an*.005,-(l[1]*mt)*.01),L=!1):N&&(U+=D.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ft.v.c?(w=0,T=0,N=$[T].points):(U-=D.partialLength,N=null)),N&&(C=D,D=N[w],W=D.partialLength));gt=x[M].an/2-x[M].add,p.translate(-gt,0,0)}else gt=x[M].an/2-x[M].add,p.translate(-gt,0,0),p.translate(-l[0]*x[M].an*.005,-l[1]*mt*.01,0);for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?z.length?F+=_.t.v*z[0]:F+=_.t.v*z:z.length?y+=_.t.v*z[0]:y+=_.t.v*z));for(r.strokeWidthAnim&&(fr=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Wt=[r.fc[0],r.fc[1],r.fc[2]]),v=0;v<E;v+=1)_=d[v].a,_.a.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?p.translate(-_.a.v[0]*z[0],-_.a.v[1]*z[1],_.a.v[2]*z[2]):p.translate(-_.a.v[0]*z,-_.a.v[1]*z,_.a.v[2]*z));for(v=0;v<E;v+=1)_=d[v].a,_.s.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?p.scale(1+(_.s.v[0]-1)*z[0],1+(_.s.v[1]-1)*z[1],1):p.scale(1+(_.s.v[0]-1)*z,1+(_.s.v[1]-1)*z,1));for(v=0;v<E;v+=1){if(_=d[v].a,P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),_.sk.propType&&(z.length?p.skewFromAxis(-_.sk.v*z[0],_.sa.v*z[1]):p.skewFromAxis(-_.sk.v*z,_.sa.v*z)),_.r.propType&&(z.length?p.rotateZ(-_.r.v*z[2]):p.rotateZ(-_.r.v*z)),_.ry.propType&&(z.length?p.rotateY(_.ry.v*z[1]):p.rotateY(_.ry.v*z)),_.rx.propType&&(z.length?p.rotateX(_.rx.v*z[0]):p.rotateX(_.rx.v*z)),_.o.propType&&(z.length?ir+=(_.o.v*z[0]-ir)*z[0]:ir+=(_.o.v*z-ir)*z),r.strokeWidthAnim&&_.sw.propType&&(z.length?fr+=_.sw.v*z[0]:fr+=_.sw.v*z),r.strokeColorAnim&&_.sc.propType)for(ut=0;ut<3;ut+=1)z.length?Le[ut]+=(_.sc.v[ut]-Le[ut])*z[0]:Le[ut]+=(_.sc.v[ut]-Le[ut])*z;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(ut=0;ut<3;ut+=1)z.length?Wt[ut]+=(_.fc.v[ut]-Wt[ut])*z[0]:Wt[ut]+=(_.fc.v[ut]-Wt[ut])*z;_.fh.propType&&(z.length?Wt=iu(Wt,_.fh.v*z[0]):Wt=iu(Wt,_.fh.v*z)),_.fs.propType&&(z.length?Wt=eu(Wt,_.fs.v*z[0]):Wt=eu(Wt,_.fs.v*z)),_.fb.propType&&(z.length?Wt=ru(Wt,_.fb.v*z[0]):Wt=ru(Wt,_.fb.v*z))}}for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?z.length?p.translate(0,_.p.v[1]*z[0],-_.p.v[2]*z[1]):p.translate(0,_.p.v[1]*z,-_.p.v[2]*z):z.length?p.translate(_.p.v[0]*z[0],_.p.v[1]*z[1],-_.p.v[2]*z[2]):p.translate(_.p.v[0]*z,_.p.v[1]*z,-_.p.v[2]*z));if(r.strokeWidthAnim&&(Ai=fr<0?0:fr),r.strokeColorAnim&&(ro="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(Si="rgb("+Math.round(Wt[0]*255)+","+Math.round(Wt[1]*255)+","+Math.round(Wt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,l[1]*mt*.01+k,0),this._pathData.p.v){At=(D.point[1]-C.point[1])/(D.point[0]-C.point[0]);var Bo=Math.atan(At)*180/Math.PI;D.point[0]<C.point[0]&&(Bo+=180),p.rotate(-Bo*Math.PI/180)}p.translate(St,$t,0),F-=l[0]*x[M].an*.005,x[M+1]&&ct!==x[M+1].ind&&(F+=x[M].an/2,F+=r.tr*.001*r.finalSize)}else{switch(p.translate(y,k,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line]),0,0);break;case 2:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(l[0]*x[M].an*.005,l[1]*mt*.01,0),y+=x[M].l+r.tr*.001*r.finalSize}b==="html"?ti=p.toCSS():b==="svg"?ti=p.to2dCSS():Ii=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],Ci=ir}I<=M?(j=new Xc(Ci,Ai,ro,Si,ti,Ii),this.renderedLetters.push(j),I+=1,this.lettersChangedFlag=!0):(j=this.renderedLetters[M],this.lettersChangedFlag=j.update(Ci,Ai,ro,Si,ti,Ii)||this.lettersChangedFlag)}}},zo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},zo.prototype.mHelper=new Pe,zo.prototype.defaultPropsArray=[],A([Ne],zo);function Ir(){}Ir.prototype.initElement=function(r,s,l){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,l),this.textProperty=new We(this,r.t,this.dynamicProperties),this.textAnimator=new zo(r.t,this.renderType,this),this.initTransform(r,s,l),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Ir.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Ir.prototype.createPathShape=function(r,s){var l,d=s.length,m,p="";for(l=0;l<d;l+=1)s[l].ty==="sh"&&(m=s[l].ks.k,p+=Gu(m,m.i.length,!0,r));return p},Ir.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Ir.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Ir.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Ir.prototype.applyTextPropertiesToMatrix=function(r,s,l,d,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l])/2,0,0);break;default:break}s.translate(d,m,0)},Ir.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Ir.prototype.emptyProp=new Xc,Ir.prototype.destroy=function(){},Ir.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var LT={shapes:[]};function Ti(r,s,l){this.textSpans=[],this.renderType="svg",this.initElement(r,s,l)}A([Qi,Rs,za,Ds,Ji,Ba,Ir],Ti),Ti.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Ct("text"))},Ti.prototype.buildTextContents=function(r){for(var s=0,l=r.length,d=[],m="";s<l;)r[s]==="\r"||r[s]===""?(d.push(m),m=""):m+=r[s],s+=1;return d.push(m),d},Ti.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var l=r.shapes[0];if(l.it){var d=l.it[l.it.length-1];d.s&&(d.s.k[0]=s,d.s.k[1]=s)}}return r},Ti.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,l=this.textProperty.currentData;this.renderedLetters=Z(l?l.l.length:0),l.fc?this.layerElement.setAttribute("fill",this.buildColor(l.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),l.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(l.sc)),this.layerElement.setAttribute("stroke-width",l.sw)),this.layerElement.setAttribute("font-size",l.finalSize);var d=this.globalData.fontManager.getFontByName(l.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=l.fWeight,p=l.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",l.t);var b=l.l||[],I=!!this.globalData.fontManager.chars;s=b.length;var y,k=this.mHelper,M="",Y=this.data.singleShape,x=0,O=0,F=!0,D=l.tr*.001*l.finalSize;if(Y&&!I&&!l.sz){var U=this.textContainer,L="start";switch(l.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}U.setAttribute("text-anchor",L),U.setAttribute("letter-spacing",D);var w=this.buildTextContents(l.finalText);for(s=w.length,O=l.ps?l.ps[1]+l.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||Ct("tspan"),y.textContent=w[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",U.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=l.finalLineHeight;this.layerElement.appendChild(U)}else{var T=this.textSpans.length,C;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!Y||r===0){if(y=T>r?this.textSpans[r].span:Ct(I?"g":"text"),T<=r){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=y,I){var N=Ct("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(k.reset(),Y&&(b[r].n&&(x=-D,O+=l.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(l,k,b[r].line,x,O),x+=b[r].l||0,x+=D),I){C=this.globalData.fontManager.getCharData(l.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(l.f).fFamily);var $;if(C.t===1)$=new Ga(C.data,this.globalData,this);else{var W=LT;C.data&&C.data.shapes&&(W=this.buildShapeData(C.data,l.finalSize)),$=new ce(W,this.globalData,this)}if(this.textSpans[r].glyph){var X=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(X.layerElement),X.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+l.finalSize/100+","+l.finalSize/100+")")}else Y&&y.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),y.textContent=b[r].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Y&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},Ti.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},Ti.prototype.getValue=function(){var r,s=this.textSpans.length,l;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)l=this.textSpans[r].glyph,l&&(l.prepareFrame(this.comp.renderedFrame-this.data.st),l._mdf&&(this._mdf=!0))},Ti.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,l=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;s=d.length;var m,p,b;for(r=0;r<s;r+=1)d[r].n||(m=l[r],p=this.textSpans[r].span,b=this.textSpans[r].glyph,b&&b.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function Zc(r,s,l){this.initElement(r,s,l)}A([Ha],Zc),Zc.prototype.createContent=function(){var r=Ct("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function eo(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initFrame(),this.initTransform(r,s,l),this.initHierarchy()}eo.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},eo.prototype.renderFrame=function(){},eo.prototype.getBaseElement=function(){return null},eo.prototype.destroy=function(){},eo.prototype.sourceRectAtTime=function(){},eo.prototype.hide=function(){},A([Qi,Rs,Ds,Ji],eo);function Ae(){}A([Fe],Ae),Ae.prototype.createNull=function(r){return new eo(r,this.globalData,this)},Ae.prototype.createShape=function(r){return new ce(r,this.globalData,this)},Ae.prototype.createText=function(r){return new Ti(r,this.globalData,this)},Ae.prototype.createImage=function(r){return new Ha(r,this.globalData,this)},Ae.prototype.createSolid=function(r){return new Zc(r,this.globalData,this)},Ae.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var l=Ct("clipPath"),d=Ct("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=tr();l.setAttribute("id",m),l.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(l),this.layers=r.layers,this.elements=Z(r.layers.length)},Ae.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ae.prototype.updateContainerSize=function(){},Ae.prototype.findIndexByInd=function(r){var s=0,l=this.layers.length;for(s=0;s<l;s+=1)if(this.layers[s].ind===r)return s;return-1},Ae.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var l=this.createItem(this.layers[r]);if(s[r]=l,ol()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(l),l.initExpressions()),this.appendElementInPos(l,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(l);else{var m=s[d],p=m.getMatte(this.layers[r].tt);l.setMatte(p)}}}},Ae.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,l=this.elements.length;s<l;){if(this.elements[s]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[d],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ae.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,l=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=l-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<l;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ae.prototype.appendElementInPos=function(r,s){var l=r.getBaseElement();if(l){for(var d=0,m;d<s;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(l,m):this.layerElement.appendChild(l)}},Ae.prototype.hide=function(){this.layerElement.style.display="none"},Ae.prototype.show=function(){this.layerElement.style.display="block"};function xi(){}A([Qi,Rs,Ds,Ji,Ba],xi),xi.prototype.initElement=function(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initTransform(r,s,l),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},xi.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var l,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),l=d-1;l>=0;l-=1)(this.completeLayers||this.elements[l])&&(this.elements[l].prepareFrame(this.renderedFrame-this.layers[l].st),this.elements[l]._mdf&&(this._mdf=!0))}},xi.prototype.renderInnerContent=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},xi.prototype.setElements=function(r){this.elements=r},xi.prototype.getElements=function(){return this.elements},xi.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},xi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Ga(r,s,l){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Z(this.layers.length):[],this.initElement(r,s,l),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Ae,xi,za],Ga),Ga.prototype.createComp=function(r){return new Ga(r,this.globalData,this)};function Qc(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=Ct("svg");var l="";if(s&&s.title){var d=Ct("title"),m=tr();d.setAttribute("id",m),d.textContent=s.title,this.svgElement.appendChild(d),l+=m}if(s&&s.description){var p=Ct("desc"),b=tr();p.setAttribute("id",b),p.textContent=s.description,this.svgElement.appendChild(p),l+=" "+b}l&&this.svgElement.setAttribute("aria-labelledby",l);var I=Ct("defs");this.svgElement.appendChild(I);var y=Ct("g");this.svgElement.appendChild(y),this.layerElement=y,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Ae],Qc),Qc.prototype.createComp=function(r){return new Ga(r,this.globalData,this)},BE("svg",Qc),Xi.registerModifier("tm",Dr),Xi.registerModifier("pb",Oa),Xi.registerModifier("rp",Qr),Xi.registerModifier("rd",Ra),Xi.registerModifier("zz",Pa),Xi.registerModifier("op",Fa),Kt})});var Al=globalThis,Sl=Al.ShadowRoot&&(Al.ShadyCSS===void 0||Al.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,th=Symbol(),Wu=new WeakMap,Ka=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==th)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Sl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=Wu.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&Wu.set(t,o))}return o}toString(){return this.cssText}},Yu=a=>new Ka(typeof a=="string"?a:a+"",void 0,th),B=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((e,i,n)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+a[n+1],a[0]);return new Ka(t,a,th)},eh=(a,o)=>{if(Sl)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=Al.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,a.appendChild(e)}},Il=Sl?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return Yu(t)})(a):a;var{is:VT,defineProperty:zT,getOwnPropertyDescriptor:BT,getOwnPropertyNames:HT,getOwnPropertySymbols:UT,getPrototypeOf:GT}=Object,ao=globalThis,ju=ao.trustedTypes,KT=ju?ju.emptyScript:"",rh=ao.reactiveElementPolyfillSupport,Wa=(a,o)=>a,Ya={toAttribute(a,o){switch(o){case Boolean:a=a?KT:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},Cl=(a,o)=>!VT(a,o),qu={attribute:!0,type:String,converter:Ya,reflect:!1,hasChanged:Cl},Xu,Zu;(Xu=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Zu=ao.litPropertyMetadata)!=null||(ao.litPropertyMetadata=new WeakMap);var _i=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=qu){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),i=this.getPropertyDescriptor(o,e,t);i!==void 0&&zT(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var c;let{get:i,set:n}=(c=BT(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let g=i==null?void 0:i.call(this);n.call(this,f),this.requestUpdate(o,g,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:qu}static _$Ei(){if(this.hasOwnProperty(Wa("elementProperties")))return;let o=GT(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Wa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Wa("properties"))){let t=this.properties,e=[...HT(t),...UT(t)];for(let i of e)this.createProperty(i,t[i])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let i=this._$Eu(t,e);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let i of e)t.unshift(Il(i))}else o!==void 0&&t.push(Il(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((e=o.hostConnected)==null||e.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return eh(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$EC(o,t){var n;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let c=(((n=e.converter)==null?void 0:n.toAttribute)!==void 0?e.converter:Ya).toAttribute(t,e.type);this._$Em=o,c==null?this.removeAttribute(i):this.setAttribute(i,c),this._$Em=null}}_$AK(o,t){var n;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let c=e.getPropertyOptions(i),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((n=c.converter)==null?void 0:n.fromAttribute)!==void 0?c.converter:Ya;this._$Em=i,this[i]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(o,t,e){var i;if(o!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(o)),!((i=e.hasChanged)!=null?i:Cl)(this[o],t))return;this.P(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,e){var i;this._$AL.has(o)||this._$AL.set(o,t),e.reflect===!0&&this._$Em!==o&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[c,f]of n)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(n=>{var c;return(c=n.hostUpdate)==null?void 0:c.call(n)}),this.update(t)):this._$EU()}catch(n){throw o=!1,this._$EU(),n}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},Qu;_i.elementStyles=[],_i.shadowRootOptions={mode:"open"},_i[Wa("elementProperties")]=new Map,_i[Wa("finalized")]=new Map,rh==null||rh({ReactiveElement:_i}),((Qu=ao.reactiveElementVersions)!=null?Qu:ao.reactiveElementVersions=[]).push("2.0.4");var qa=globalThis,_l=qa.trustedTypes,Ju=_l?_l.createPolicy("lit-html",{createHTML:a=>a}):void 0,sh="$lit$",wi=`lit$${Math.random().toFixed(9).slice(2)}$`,ah="?"+wi,WT=`<${ah}>`,Go=document,Xa=()=>Go.createComment(""),Za=a=>a===null||typeof a!="object"&&typeof a!="function",nh=Array.isArray,nf=a=>nh(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",ih=`[
3
- \f\r]`,ja=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tf=/-->/g,ef=/>/g,Ho=RegExp(`>|${ih}(?:([^\\s"'>=/]+)(${ih}*=${ih}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),rf=/'/g,of=/"/g,lf=/^(?:script|style|textarea|title)$/i,lh=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),S=lh(1),QI=lh(2),JI=lh(3),$e=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),sf=new WeakMap,Uo=Go.createTreeWalker(Go,129);function df(a,o){if(!nh(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ju!==void 0?Ju.createHTML(o):o}var cf=(a,o)=>{let t=a.length-1,e=[],i,n=o===2?"<svg>":o===3?"<math>":"",c=ja;for(let f=0;f<t;f++){let g=a[f],A,R,H=-1,J=0;for(;J<g.length&&(c.lastIndex=J,R=c.exec(g),R!==null);)J=c.lastIndex,c===ja?R[1]==="!--"?c=tf:R[1]!==void 0?c=ef:R[2]!==void 0?(lf.test(R[2])&&(i=RegExp("</"+R[2],"g")),c=Ho):R[3]!==void 0&&(c=Ho):c===Ho?R[0]===">"?(c=i!=null?i:ja,H=-1):R[1]===void 0?H=-2:(H=c.lastIndex-R[2].length,A=R[1],c=R[3]===void 0?Ho:R[3]==='"'?of:rf):c===of||c===rf?c=Ho:c===tf||c===ef?c=ja:(c=Ho,i=void 0);let q=c===Ho&&a[f+1].startsWith("/>")?" ":"";n+=c===ja?g+WT:H>=0?(e.push(A),g.slice(0,H)+sh+g.slice(H)+wi+q):g+wi+(H===-2?f:q)}return[df(a,n+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Qa=class a{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let n=0,c=0,f=o.length-1,g=this.parts,[A,R]=cf(o,t);if(this.el=a.createElement(A,e),Uo.currentNode=this.el.content,t===2||t===3){let H=this.el.content.firstChild;H.replaceWith(...H.childNodes)}for(;(i=Uo.nextNode())!==null&&g.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let H of i.getAttributeNames())if(H.endsWith(sh)){let J=R[c++],q=i.getAttribute(H).split(wi),Z=/([.?@])?(.*)/.exec(J);g.push({type:1,index:n,name:Z[2],strings:q,ctor:Z[1]==="."?kl:Z[1]==="?"?Nl:Z[1]==="@"?Ll:Wo}),i.removeAttribute(H)}else H.startsWith(wi)&&(g.push({type:6,index:n}),i.removeAttribute(H));if(lf.test(i.tagName)){let H=i.textContent.split(wi),J=H.length-1;if(J>0){i.textContent=_l?_l.emptyScript:"";for(let q=0;q<J;q++)i.append(H[q],Xa()),Uo.nextNode(),g.push({type:2,index:++n});i.append(H[J],Xa())}}}else if(i.nodeType===8)if(i.data===ah)g.push({type:2,index:n});else{let H=-1;for(;(H=i.data.indexOf(wi,H+1))!==-1;)g.push({type:7,index:n}),H+=wi.length-1}n++}}static createElement(o,t){let e=Go.createElement("template");return e.innerHTML=o,e}};function Ko(a,o,t=a,e){var c,f,g;if(o===$e)return o;let i=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,n=Za(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),n===void 0?i=void 0:(i=new n(a),i._$AT(a,t,e)),e!==void 0?((g=t.o)!=null?g:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Ko(a,i._$AS(a,o.values),i,e)),o}var wl=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var A;let{el:{content:t},parts:e}=this._$AD,i=((A=o==null?void 0:o.creationScope)!=null?A:Go).importNode(t,!0);Uo.currentNode=i;let n=Uo.nextNode(),c=0,f=0,g=e[0];for(;g!==void 0;){if(c===g.index){let R;g.type===2?R=new Fs(n,n.nextSibling,this,o):g.type===1?R=new g.ctor(n,g.name,g.strings,this,o):g.type===6&&(R=new Ml(n,this,o)),this._$AV.push(R),g=e[++f]}c!==(g==null?void 0:g.index)&&(n=Uo.nextNode(),c++)}return Uo.currentNode=Go,i}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Fs=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,e,i){var n;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(n=i==null?void 0:i.isConnected)!=null?n:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Ko(this,o,t),Za(o)?o===K||o==null||o===""?(this._$AH!==K&&this._$AR(),this._$AH=K):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):nf(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==K&&Za(this._$AH)?this._$AA.nextSibling.data=o:this.T(Go.createTextNode(o)),this._$AH=o}$(o){var n;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Qa.createElement(df(e.h,e.h[0]),this.options)),e);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(t);else{let c=new wl(i,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=sf.get(o.strings);return t===void 0&&sf.set(o.strings,t=new Qa(o)),t}k(o){nh(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let n of o)i===t.length?t.push(e=new a(this.O(Xa()),this.O(Xa()),this,this.options)):e=t[i],e._$AI(n),i++;i<t.length&&(this._$AR(e&&e._$AB.nextSibling,i),t.length=i)}_$AR(o=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Wo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,n){this.type=1,this._$AH=K,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=n,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=K}_$AI(o,t=this,e,i){let n=this.strings,c=!1;if(n===void 0)o=Ko(this,o,t,0),c=!Za(o)||o!==this._$AH&&o!==$e,c&&(this._$AH=o);else{let f=o,g,A;for(o=n[0],g=0;g<n.length-1;g++)A=Ko(this,f[e+g],t,g),A===$e&&(A=this._$AH[g]),c||(c=!Za(A)||A!==this._$AH[g]),A===K?o=K:o!==K&&(o+=(A!=null?A:"")+n[g+1]),this._$AH[g]=A}c&&!i&&this.j(o)}j(o){o===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},kl=class extends Wo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===K?void 0:o}},Nl=class extends Wo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==K)}},Ll=class extends Wo{constructor(o,t,e,i,n){super(o,t,e,i,n),this.type=5}_$AI(o,t=this){var c;if((o=(c=Ko(this,o,t,0))!=null?c:K)===$e)return;let e=this._$AH,i=o===K&&e!==K||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,n=o!==K&&(e===K||i);i&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,o):this._$AH.handleEvent(o)}},Ml=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Ko(this,o)}},hf={M:sh,P:wi,A:ah,C:1,L:cf,R:wl,D:nf,V:Ko,I:Fs,H:Wo,N:Nl,U:Ll,B:kl,F:Ml},oh=qa.litHtmlPolyfillSupport,af;oh==null||oh(Qa,Fs),((af=qa.litHtmlVersions)!=null?af:qa.litHtmlVersions=[]).push("3.2.0");var pf=(a,o,t)=>{var n,c;let e=(n=t==null?void 0:t.renderBefore)!=null?n:o,i=e._$litPart$;if(i===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=i=new Fs(o.insertBefore(Xa(),f),f,void 0,t!=null?t:{})}return i._$AI(a),i};var no=class extends _i{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=pf(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return $e}},mf;no._$litElement$=!0,no.finalized=!0,(mf=globalThis.litElementHydrateSupport)==null||mf.call(globalThis,{LitElement:no});var dh=globalThis.litElementPolyfillSupport;dh==null||dh({LitElement:no});var uf;((uf=globalThis.litElementVersions)!=null?uf:globalThis.litElementVersions=[]).push("4.1.0");var YT={attribute:!0,type:String,converter:Ya,reflect:!1,hasChanged:Cl},jT=(a=YT,o,t)=>{let{kind:e,metadata:i}=t,n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(t.name,a),e==="accessor"){let{name:c}=t;return{set(f){let g=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,g,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(e==="setter"){let{name:c}=t;return function(f){let g=this[c];o.call(this,f),this.requestUpdate(c,g,a)}}throw Error("Unsupported decorator location: "+e)};function u(a){return(o,t)=>typeof t=="object"?jT(a,o,t):((e,i,n)=>{let c=i.hasOwnProperty(n);return i.constructor.createProperty(n,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(i,n):void 0})(a,o,t)}function dt(a){return u({...a,state:!0,attribute:!1})}function ff(a){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,a)}}var ei=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function zt(a,o){return(t,e,i)=>{let n=c=>{var f,g;return(g=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?g:null};if(o){let{get:c,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let g=Symbol();return{get(){return this[g]},set(A){this[g]=A}}})();return ei(t,e,{get(){let g=c.call(this);return g===void 0&&(g=n(this),(g!==null||this.hasUpdated)&&f.call(this,g)),g}})}return ei(t,e,{get(){return n(this)}})}}var ch;function vf(a){return(o,t)=>ei(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:ch!=null?ch:ch=document.createDocumentFragment()).querySelectorAll(a)}})}function qt(a){return(o,t)=>{let{slot:e,selector:i}=a!=null?a:{},n="slot"+(e?`[name=${e}]`:":not([name])");return ei(o,t,{get(){var g,A;let c=(g=this.renderRoot)==null?void 0:g.querySelector(n),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return i===void 0?f:f.filter(R=>R.matches(i))}})}}function gf(a){return(o,t)=>{let{slot:e}=a!=null?a:{},i="slot"+(e?`[name=${e}]`:":not([name])");return ei(o,t,{get(){var c,f;let n=(c=this.renderRoot)==null?void 0:c.querySelector(i);return(f=n==null?void 0:n.assignedNodes(a))!=null?f:[]}})}}var qT={PREFIX:"mdc",SEPARATOR:"-"},XT={NAMESPACE:qT},hh=XT;var ZT=a=>[hh.NAMESPACE.PREFIX,a].join(hh.NAMESPACE.SEPARATOR),V={constructTagName:ZT};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var bf=V.constructTagName("buttonsimple"),Yo={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},$s={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ja={SIZE:Yo[32],TYPE:$s.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var ki=V.constructTagName("button"),Bt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},tn={40:40,32:32,28:28,24:24},Cr={64:64,52:52,20:20,...tn},ri={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Vs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},yf={DEFAULT:ri.DEFAULT,ACCENT:ri.ACCENT,NEGATIVE:ri.NEGATIVE},sr={VARIANT:Bt.PRIMARY,SIZE:tn[32],COLOR:ri.DEFAULT,TYPE_INTERNAL:Vs.ICON,TYPE:$s.BUTTON,INVERTED:!1};var Ol=a=>{class o extends a{constructor(){super(...arguments);this.variant=sr.VARIANT;this.color=sr.COLOR;this.typeInternal=sr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Bt).includes(i)?i:sr.VARIANT)}setColor(i){let n=Object.values(ri).includes(i),c=this.variant===Bt.TERTIARY&&!Object.values(yf).includes(i);!n||c?this.setAttribute("color",`${sr.COLOR}`):this.setAttribute("color",i)}setSize(i){let c=this.typeInternal===Vs.ICON?Object.values(Cr).includes(i)&&!(i===Cr[20]&&this.variant!==Bt.TERTIARY):Object.values(tn).includes(i);this.setAttribute("size",c?`${i}`:`${sr.SIZE}`)}inferButtonType(){var A,R,H,J,q,Z;let i=(R=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:R.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,n=(J=(H=this.shadowRoot)==null?void 0:H.querySelector('slot[name="prefix"]'))==null?void 0:J.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,c=this.prefixIcon||n&&n>0,f=(Z=(q=this.shadowRoot)==null?void 0:q.querySelector('slot[name="postfix"]'))==null?void 0:Z.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,g=this.postfixIcon||f&&f>0;i&&(c||g)?(this.typeInternal=Vs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(c||g)?(this.typeInternal=Vs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Vs.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),h([u({type:String})],o.prototype,"variant",2),h([u({type:String})],o.prototype,"color",2),h([dt()],o.prototype,"typeInternal",2),o};var Ef=B`
1
+ "use strict";(()=>{var MT=Object.create;var Jc=Object.defineProperty;var Wu=Object.getOwnPropertyDescriptor;var OT=Object.getOwnPropertyNames;var RT=Object.getPrototypeOf,DT=Object.prototype.hasOwnProperty;var PT=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var FT=(a,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of OT(o))!DT.call(a,i)&&i!==t&&Jc(a,i,{get:()=>o[i],enumerable:!(e=Wu(o,i))||e.enumerable});return a};var $T=(a,o,t)=>(t=a!=null?MT(RT(a)):{},FT(o||!a||!a.__esModule?Jc(t,"default",{value:a,enumerable:!0}):t,a));var h=(a,o,t,e)=>{for(var i=e>1?void 0:e?Wu(o,t):o,n=a.length-1,c;n>=0;n--)(c=a[n])&&(i=(e?c(o,t,i):c(i))||i);return e&&i&&Jc(o,t,i),i};var ev=PT((pn,Jl)=>{typeof navigator<"u"&&function(a,o){typeof pn=="object"&&typeof Jl<"u"?Jl.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(pn,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},n=function(){return t},c=function(s){o=s},f=function(){return o};function g(r){return document.createElement(r)}function A(r,s){var l,d=r.length,m;for(l=0;l<d;l+=1){m=r[l].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function R(r,s){return Object.getOwnPropertyDescriptor(r,s)}function H(r){function s(){}return s.prototype=r,s}var J=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(l){this.audios.push(l)},pause:function(){var l,d=this.audios.length;for(l=0;l<d;l+=1)this.audios[l].pause()},resume:function(){var l,d=this.audios.length;for(l=0;l<d;l+=1)this.audios[l].resume()},setRate:function(l){var d,m=this.audios.length;for(d=0;d<m;d+=1)this.audios[d].setRate(l)},createAudio:function(l){return this.audioFactory?this.audioFactory(l):window.Howl?new window.Howl({src:[l]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(l){this.audioFactory=l},setVolume:function(l){this._volume=l,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var l,d=this.audios.length;for(l=0;l<d;l+=1)this.audios[l].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),q=function(){function r(l,d){var m=0,p=[],b;switch(l){case"int16":case"uint8c":b=1;break;default:b=1.1;break}for(m=0;m<d;m+=1)p.push(b);return p}function s(l,d){return l==="float32"?new Float32Array(d):l==="int16"?new Int16Array(d):l==="uint8c"?new Uint8ClampedArray(d):r(l,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function Z(r){return Array.apply(null,{length:r})}function ot(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ot=function(l){return typeof l}:ot=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},ot(r)}var st=!0,ht=null,bt=null,yt="",It=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Gt=Math.pow,Pt=Math.sqrt,ne=Math.floor,Ge=Math.max,jt=Math.min,Ee={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,l=r.length;for(s=0;s<l;s+=1)Ee[r[s]]=Math[r[s]]})();function Te(){return{}}Ee.random=Math.random,Ee.abs=function(r){var s=ot(r);if(s==="object"&&r.length){var l=Z(r.length),d,m=r.length;for(d=0;d<m;d+=1)l[d]=Math.abs(r[d]);return l}return Math.abs(r)};var xe=150,kt=Math.PI/180,ie=.5519;function Ke(r){Rt=!!r}function Qe(r){return Rt?Math.round(r):r}function Je(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function Ar(r,s,l,d){this.type=r,this.currentTime=s,this.totalTime=l,this.direction=d<0?-1:1}function il(r,s){this.type=r,this.direction=s<0?-1:1}function Jm(r,s,l,d){this.type=r,this.currentLoop=l,this.totalLoops=s,this.direction=d<0?-1:1}function tu(r,s,l){this.type=r,this.firstFrame=s,this.totalFrames=l}function eu(r,s){this.type=r,this.target=s}function ME(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function OE(r){this.type="configError",this.nativeError=r}function HI(r,s){this.type=r,this.nativeError=s}var tr=function(){var r=0;return function(){return r+=1,yt+"__lottie_element_"+r}}();function zc(r,s,l){var d,m,p,b,I,y,k,M;switch(b=Math.floor(r*6),I=r*6-b,y=l*(1-s),k=l*(1-I*s),M=l*(1-(1-I)*s),b%6){case 0:d=l,m=M,p=y;break;case 1:d=k,m=l,p=y;break;case 2:d=y,m=l,p=M;break;case 3:d=y,m=k,p=l;break;case 4:d=M,m=y,p=l;break;case 5:d=l,m=y,p=k;break;default:break}return[d,m,p]}function Bc(r,s,l){var d=Math.max(r,s,l),m=Math.min(r,s,l),p=d-m,b,I=d===0?0:p/d,y=d/255;switch(d){case m:b=0;break;case r:b=s-l+p*(s<l?6:0),b/=6*p;break;case s:b=l-r+p*2,b/=6*p;break;case l:b=r-s+p*4,b/=6*p;break;default:break}return[b,I,y]}function ru(r,s){var l=Bc(r[0]*255,r[1]*255,r[2]*255);return l[1]+=s,l[1]>1?l[1]=1:l[1]<=0&&(l[1]=0),zc(l[0],l[1],l[2])}function iu(r,s){var l=Bc(r[0]*255,r[1]*255,r[2]*255);return l[2]+=s,l[2]>1?l[2]=1:l[2]<0&&(l[2]=0),zc(l[0],l[1],l[2])}function ou(r,s){var l=Bc(r[0]*255,r[1]*255,r[2]*255);return l[0]+=s/360,l[0]>1?l[0]-=1:l[0]<0&&(l[0]+=1),zc(l[0],l[1],l[2])}var UI=function(){var r=[],s,l;for(s=0;s<256;s+=1)l=s.toString(16),r[s]=l.length===1?"0"+l:l;return function(d,m,p){return d<0&&(d=0),m<0&&(m=0),p<0&&(p=0),"#"+r[d]+r[m]+r[p]}}(),RE=function(s){st=!!s},DE=function(){return st},PE=function(s){ht=s},ol=function(){return ht},GI=function(s){bt=s},su=function(){return bt},sl=function(s){xe=s},ka=function(){return xe},FE=function(s){yt=s},KI=function(){return yt};function Ct(r){return document.createElementNS(a,r)}function al(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?al=function(l){return typeof l}:al=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},al(r)}var Na=function(){var r=1,s=[],l,d,m={onmessage:function(){},postMessage:function(O){l({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function b(x){if(window.Worker&&window.Blob&&n()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),F=URL.createObjectURL(O);return new Worker(F)}return l=x,m}function I(){d||(d=b(function(O){function F(){function U(rt,_){var P,v,E=rt.length,j,z,ct,gt;for(v=0;v<E;v+=1)if(P=rt[v],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var St=P.masksProperties;for(z=St.length,j=0;j<z;j+=1)if(St[j].pt.k.i)N(St[j].pt.k);else for(gt=St[j].pt.k.length,ct=0;ct<gt;ct+=1)St[j].pt.k[ct].s&&N(St[j].pt.k[ct].s[0]),St[j].pt.k[ct].e&&N(St[j].pt.k[ct].e[0])}P.ty===0?(P.layers=T(P.refId,_),U(P.layers,_)):P.ty===4?C(P.shapes):P.ty===5&&_t(P)}}function L(rt,_){if(rt){var P=0,v=rt.length;for(P=0;P<v;P+=1)rt[P].t===1&&(rt[P].data.layers=T(rt[P].data.refId,_),U(rt[P].data.layers,_))}}function w(rt,_){for(var P=0,v=_.length;P<v;){if(_[P].id===rt)return _[P];P+=1}return null}function T(rt,_){var P=w(rt,_);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function C(rt){var _,P=rt.length,v,E;for(_=P-1;_>=0;_-=1)if(rt[_].ty==="sh")if(rt[_].ks.k.i)N(rt[_].ks.k);else for(E=rt[_].ks.k.length,v=0;v<E;v+=1)rt[_].ks.k[v].s&&N(rt[_].ks.k[v].s[0]),rt[_].ks.k[v].e&&N(rt[_].ks.k[v].e[0]);else rt[_].ty==="gr"&&C(rt[_].it)}function N(rt){var _,P=rt.i.length;for(_=0;_<P;_+=1)rt.i[_][0]+=rt.v[_][0],rt.i[_][1]+=rt.v[_][1],rt.o[_][0]+=rt.v[_][0],rt.o[_][1]+=rt.v[_][1]}function $(rt,_){var P=_?_.split("."):[100,100,100];return rt[0]>P[0]?!0:P[0]>rt[0]?!1:rt[1]>P[1]?!0:P[1]>rt[1]?!1:rt[2]>P[2]?!0:P[2]>rt[2]?!1:null}var W=function(){var rt=[4,4,14];function _(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function P(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),X=function(){var rt=[4,7,99];return function(_){if(_.chars&&!$(rt,_.v)){var P,v=_.chars.length;for(P=0;P<v;P+=1){var E=_.chars[P];E.data&&E.data.shapes&&(C(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[P].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function _(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function P(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),At=function(){var rt=[4,1,9];function _(v){var E,j=v.length,z,ct;for(E=0;E<j;E+=1)if(v[E].ty==="gr")_(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(ct=v[E].c.k.length,z=0;z<ct;z+=1)v[E].c.k[z].s&&(v[E].c.k[z].s[0]/=255,v[E].c.k[z].s[1]/=255,v[E].c.k[z].s[2]/=255,v[E].c.k[z].s[3]/=255),v[E].c.k[z].e&&(v[E].c.k[z].e[0]/=255,v[E].c.k[z].e[1]/=255,v[E].c.k[z].e[2]/=255,v[E].c.k[z].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function P(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===4&&_(v[E].shapes)}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),ft=function(){var rt=[4,4,18];function _(v){var E,j=v.length,z,ct;for(E=j-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(ct=v[E].ks.k.length,z=0;z<ct;z+=1)v[E].ks.k[z].s&&(v[E].ks.k[z].s[0].c=v[E].closed),v[E].ks.k[z].e&&(v[E].ks.k[z].e[0].c=v[E].closed);else v[E].ty==="gr"&&_(v[E].it)}function P(v){var E,j,z=v.length,ct,gt,St,$t;for(j=0;j<z;j+=1){if(E=v[j],E.hasMask){var Vt=E.masksProperties;for(gt=Vt.length,ct=0;ct<gt;ct+=1)if(Vt[ct].pt.k.i)Vt[ct].pt.k.c=Vt[ct].cl;else for($t=Vt[ct].pt.k.length,St=0;St<$t;St+=1)Vt[ct].pt.k[St].s&&(Vt[ct].pt.k[St].s[0].c=Vt[ct].cl),Vt[ct].pt.k[St].e&&(Vt[ct].pt.k[St].e[0].c=Vt[ct].cl)}E.ty===4&&_(E.shapes)}}return function(v){if($(rt,v.v)&&(P(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}();function nt(rt){rt.__complete||(At(rt),W(rt),X(rt),it(rt),ft(rt),U(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function _t(rt){rt.t.a.length===0&&"m"in rt.t.p}var mt={};return mt.completeData=nt,mt.checkColors=At,mt.checkChars=X,mt.checkPathProperties=it,mt.checkShapes=ft,mt.completeLayers=U,mt}if(p.dataManager||(p.dataManager=F()),p.assetLoader||(p.assetLoader=function(){function U(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&al(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function L(w,T,C,N){var $,W=new XMLHttpRequest;try{W.responseType="json"}catch{}W.onreadystatechange=function(){if(W.readyState===4)if(W.status===200)$=U(W),C($);else try{$=U(W),C($)}catch(X){N&&N(X)}};try{W.open(["G","E","T"].join(""),w,!0)}catch{W.open(["G","E","T"].join(""),T+"/"+w,!0)}W.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.dataManager.completeData(U),p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var D=O.data.animation;p.dataManager.completeData(D),p.postMessage({id:O.data.id,payload:D,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,F=O.id,D=s[F];s[F]=null,O.status==="success"?D.onComplete(O.payload):D.onError&&D.onError()})}function y(x,O){r+=1;var F="processId_"+r;return s[F]={onComplete:x,onError:O},F}function k(x,O,F){I();var D=y(O,F);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:D})}function M(x,O,F){I();var D=y(O,F);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:D})}function Y(x,O,F){I();var D=y(O,F);d.postMessage({type:"complete",animation:x,id:D})}return{loadAnimation:k,loadData:M,completeAnimation:Y}}(),$E=function(){var r=function(){var L=g("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(L,w,T){var C="";if(L.e)C=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),C=w+N}else C=T,C+=L.u?L.u:"",C+=L.p;return C}function m(L){var w=0,T=setInterval((function(){var C=L.getBBox();(C.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function p(L){var w=d(L,this.assetsPath,this.path),T=Ct("image");It?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function b(L){var w=d(L,this.assetsPath,this.path),T=g("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.src=w;var C={img:T,assetData:L};return C}function I(L){var w={assetData:L},T=d(L,this.assetsPath,this.path);return Na.loadData(T,(function(C){w.img=C,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function y(L,w){this.imagesLoadedCb=w;var T,C=L.length;for(T=0;T<C;T+=1)L[T].layers||(!L[T].t||L[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[T]))):L[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[T]))))}function k(L){this.path=L||""}function M(L){this.assetsPath=L||""}function Y(L){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===L)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function F(){return this.totalFootages===this.loadedFootagesCount}function D(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function U(){this._imageLoaded=s.bind(this),this._footageLoaded=l.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return U.prototype={loadAssets:y,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:F,destroy:x,getAsset:Y,createImgData:b,createImageData:p,imageLoaded:s,footageLoaded:l,setCacheType:D},U}();function au(){}au.prototype={triggerEvent:function(s,l){if(this._cbs[s])for(var d=this._cbs[s],m=0;m<d.length;m+=1)d[m](l)},addEventListener:function(s,l){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(l),(function(){this.removeEventListener(s,l)}).bind(this)},removeEventListener:function(s,l){if(!l)this._cbs[s]=null;else if(this._cbs[s]){for(var d=0,m=this._cbs[s].length;d<m;)this._cbs[s][d]===l&&(this._cbs[s].splice(d,1),d-=1,m-=1),d+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var VE=function(){function r(s){for(var l=s.split(`\r
2
+ `),d={},m,p=0,b=0;b<l.length;b+=1)m=l[b].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(s){for(var l=[],d=0;d<s.length;d+=1){var m=s[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[d].cm)}catch{try{p.payload=r(s[d].cm)}catch{p.payload={name:s[d].cm}}}l.push(p)}return l}}(),zE=function(){function r(s){this.compositions.push(s)}return function(){function s(l){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===l)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),La={},BE=function(s,l){La[s]=l};function HE(r){return La[r]}function UE(){if(La.canvas)return"canvas";for(var r in La)if(La[r])return r;return""}function Ma(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ma=function(l){return typeof l}:Ma=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Ma(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=tr(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=DE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=zE(),this.imagePreloader=new $E,this.audioController=J(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ar("drawnFrame",0,0,0),this.expressionsPlugin=ol()};A([au],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var l=HE(s);this.renderer=new l(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Na.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Na.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Ma(s)!=="object"&&(s=JSON.parse(s));var l={wrapper:r,animationData:s},d=r.attributes;l.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",l.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:UE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?l.loop=!1:m==="true"?l.loop=!0:m!==""&&(l.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;l.autoplay=p!=="false",l.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var b=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";b==="false"&&(l.prerender=!1),l.path?this.setParams(l):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,l,d=s.length,m=r.layers,p,b=m.length;for(p=0;p<b;p+=1)for(l=0;l<d;){if(s[l].id===m[p].id){s[l]=m[p];break}l+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(d=r.assets.length,l=0;l<d;l+=1)this.animationData.assets.push(r.assets[l]);this.animationData.__complete=!1,Na.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=ol();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var l=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Na.loadData(l,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=VE(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=ol();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var l=typeof r=="number"?r:void 0,d=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(l,d)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,l=0;l<this.markers.length;l+=1)if(s=this.markers[l],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,l){if(!(l&&this.name!==l)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,l){if(!(l&&this.name!==l)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(d,s,l);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,l=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(l=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(l=!0,s=0)):this.setCurrentRawFrameValue(s),l&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var l=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?l=r:this.currentRawFrame+this.firstFrame>s&&(l=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,l!==-1&&this.goToAndStop(l,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Ma(r[0])==="object"){var l,d=r.length;for(l=0;l<d;l+=1)this.segments.push(r[l])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var l=r.p;l.indexOf("images/")!==-1&&(l=l.split("/")[1]),s=this.assetsPath+l}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,l=this.assets.length;s<l;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,l){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(s,l)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new Ar(r,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new Jm(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new il(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new tu(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new eu(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ar(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Jm(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new il(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new tu(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new eu(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new ME(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new OE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var ue=function(){var r={},s=[],l=0,d=0,m=0,p=!0,b=!1;function I(_){for(var P=0,v=_.target;P<d;)s[P].animation===v&&(s.splice(P,1),P-=1,d-=1,v.isPaused||Y()),P+=1}function y(_,P){if(!_)return null;for(var v=0;v<d;){if(s[v].elem===_&&s[v].elem!==null)return s[v].animation;v+=1}var E=new vt;return x(E,_),E.setData(_,P),E}function k(){var _,P=s.length,v=[];for(_=0;_<P;_+=1)v.push(s[_].animation);return v}function M(){m+=1,At()}function Y(){m-=1}function x(_,P){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",Y),s.push({elem:P,animation:_}),d+=1}function O(_){var P=new vt;return x(P,null),P.setParams(_),P}function F(_,P){var v;for(v=0;v<d;v+=1)s[v].animation.setSpeed(_,P)}function D(_,P){var v;for(v=0;v<d;v+=1)s[v].animation.setDirection(_,P)}function U(_){var P;for(P=0;P<d;P+=1)s[P].animation.play(_)}function L(_){var P=_-l,v;for(v=0;v<d;v+=1)s[v].animation.advanceTime(P);l=_,m&&!b?window.requestAnimationFrame(L):p=!0}function w(_){l=_,window.requestAnimationFrame(L)}function T(_){var P;for(P=0;P<d;P+=1)s[P].animation.pause(_)}function C(_,P,v){var E;for(E=0;E<d;E+=1)s[E].animation.goToAndStop(_,P,v)}function N(_){var P;for(P=0;P<d;P+=1)s[P].animation.stop(_)}function $(_){var P;for(P=0;P<d;P+=1)s[P].animation.togglePause(_)}function W(_){var P;for(P=d-1;P>=0;P-=1)s[P].animation.destroy(_)}function X(_,P,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),j,z=E.length;for(j=0;j<z;j+=1)v&&E[j].setAttribute("data-bm-type",v),y(E[j],_);if(P&&z===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=g("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),y(gt,_)}}function it(){var _;for(_=0;_<d;_+=1)s[_].animation.resize()}function At(){!b&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ft(){b=!0}function nt(){b=!1,At()}function _t(_,P){var v;for(v=0;v<d;v+=1)s[v].animation.setVolume(_,P)}function mt(_){var P;for(P=0;P<d;P+=1)s[P].animation.mute(_)}function rt(_){var P;for(P=0;P<d;P+=1)s[P].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=F,r.setDirection=D,r.play=U,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=X,r.resize=it,r.goToAndStop=C,r.destroy=W,r.freeze=ft,r.unfreeze=nt,r.setVolume=_t,r.mute=mt,r.unmute=rt,r.getRegisteredAnimations=k,r}(),Oa=function(){var r={};r.getBezierEasing=l;var s={};function l(w,T,C,N,$){var W=$||("bez_"+w+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[W])return s[W];var X=new L([w,T,C,N]);return s[W]=X,X}var d=4,m=.001,p=1e-7,b=10,I=11,y=1/(I-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function Y(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,C){return((M(T,C)*w+Y(T,C))*w+x(T))*w}function F(w,T,C){return 3*M(T,C)*w*w+2*Y(T,C)*w+x(T)}function D(w,T,C,N,$){var W,X,it=0;do X=T+(C-T)/2,W=O(X,N,$)-w,W>0?C=X:T=X;while(Math.abs(W)>p&&++it<b);return X}function U(w,T,C,N){for(var $=0;$<d;++$){var W=F(T,C,N);if(W===0)return T;var X=O(T,C,N)-w;T-=X/W}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var C=this._p[0],N=this._p[1],$=this._p[2],W=this._p[3];return this._precomputed||this._precompute(),C===N&&$===W?T:T===0?0:T===1?1:O(this._getTForX(T),N,W)},_precompute:function(){var T=this._p[0],C=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==C||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],C=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*y,T,C)},_getTForX:function(T){for(var C=this._p[0],N=this._p[2],$=this._mSampleValues,W=0,X=1,it=I-1;X!==it&&$[X]<=T;++X)W+=y;--X;var At=(T-$[X])/($[X+1]-$[X]),ft=W+At*y,nt=F(ft,C,N);return nt>=m?U(T,ft,C,N):nt===0?ft:D(T,W,W+y,C,N)}},r}(),nu=function(){function r(s){return s.concat(Z(s.length))}return{double:r}}(),nl=function(){return function(r,s,l){var d=0,m=r,p=Z(m),b={newElement:I,release:y};function I(){var k;return d?(d-=1,k=p[d]):k=s(),k}function y(k){d===m&&(p=nu.double(p),m*=2),l&&l(k),p[d]=k,d+=1}return b}}(),lu=function(){function r(){return{addedLength:0,percents:q("float32",ka()),lengths:q("float32",ka())}}return nl(8,r)}(),du=function(){function r(){return{lengths:[],totalLength:0}}function s(l){var d,m=l.lengths.length;for(d=0;d<m;d+=1)lu.release(l.lengths[d]);l.lengths.length=0}return nl(8,r,s)}();function GE(){var r=Math;function s(x,O,F,D,U,L){var w=x*D+O*U+F*L-U*D-L*x-F*O;return w>-.001&&w<.001}function l(x,O,F,D,U,L,w,T,C){if(F===0&&L===0&&C===0)return s(x,O,D,U,w,T);var N=r.sqrt(r.pow(D-x,2)+r.pow(U-O,2)+r.pow(L-F,2)),$=r.sqrt(r.pow(w-x,2)+r.pow(T-O,2)+r.pow(C-F,2)),W=r.sqrt(r.pow(w-D,2)+r.pow(T-U,2)+r.pow(C-L,2)),X;return N>$?N>W?X=N-$-W:X=W-$-N:W>$?X=W-$-N:X=$-N-W,X>-1e-4&&X<1e-4}var d=function(){return function(x,O,F,D){var U=ka(),L,w,T,C,N,$=0,W,X=[],it=[],At=lu.newElement();for(T=F.length,L=0;L<U;L+=1){for(N=L/(U-1),W=0,w=0;w<T;w+=1)C=Gt(1-N,3)*x[w]+3*Gt(1-N,2)*N*F[w]+3*(1-N)*Gt(N,2)*D[w]+Gt(N,3)*O[w],X[w]=C,it[w]!==null&&(W+=Gt(X[w]-it[w],2)),it[w]=X[w];W&&(W=Pt(W),$+=W),At.percents[L]=N,At.lengths[L]=$}return At.addedLength=$,At}}();function m(x){var O=du.newElement(),F=x.c,D=x.v,U=x.o,L=x.i,w,T=x._length,C=O.lengths,N=0;for(w=0;w<T-1;w+=1)C[w]=d(D[w],D[w+1],U[w],L[w+1]),N+=C[w].addedLength;return F&&T&&(C[w]=d(D[w],D[0],U[w],L[0]),N+=C[w].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function b(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,F,D,U){var L=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+D[0]+"_"+D[1]+"_"+U[0]+"_"+U[1]).replace(/\./g,"p");if(!x[L]){var w=ka(),T,C,N,$,W,X=0,it,At,ft=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&s(O[0],O[1],F[0],F[1],O[0]+D[0],O[1]+D[1])&&s(O[0],O[1],F[0],F[1],F[0]+U[0],F[1]+U[1])&&(w=2);var nt=new p(w);for(N=D.length,T=0;T<w;T+=1){for(At=Z(N),W=T/(w-1),it=0,C=0;C<N;C+=1)$=Gt(1-W,3)*O[C]+3*Gt(1-W,2)*W*(O[C]+D[C])+3*(1-W)*Gt(W,2)*(F[C]+U[C])+Gt(W,3)*F[C],At[C]=$,ft!==null&&(it+=Gt(At[C]-ft[C],2));it=Pt(it),X+=it,nt.points[T]=new b(it,At),ft=At}nt.segmentLength=X,x[L]=nt}return x[L]}}();function y(x,O){var F=O.percents,D=O.lengths,U=F.length,L=ne((U-1)*x),w=x*O.addedLength,T=0;if(L===U-1||L===0||w===D[L])return F[L];for(var C=D[L]>w?-1:1,N=!0;N;)if(D[L]<=w&&D[L+1]>w?(T=(w-D[L])/(D[L+1]-D[L]),N=!1):L+=C,L<0||L>=U-1){if(L===U-1)return F[L];N=!1}return F[L]+(F[L+1]-F[L])*T}function k(x,O,F,D,U,L){var w=y(U,L),T=1-w,C=r.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*D[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*D[1]+w*w*w*O[1])*1e3)/1e3;return[C,N]}var M=q("float32",8);function Y(x,O,F,D,U,L,w){U<0?U=0:U>1&&(U=1);var T=y(U,w);L=L>1?1:L;var C=y(L,w),N,$=x.length,W=1-T,X=1-C,it=W*W*W,At=T*W*W*3,ft=T*T*W*3,nt=T*T*T,_t=W*W*X,mt=T*W*X+W*T*X+W*W*C,rt=T*T*X+W*T*C+T*W*C,_=T*T*C,P=W*X*X,v=T*X*X+W*C*X+W*X*C,E=T*C*X+W*C*C+T*X*C,j=T*C*C,z=X*X*X,ct=C*X*X+X*C*X+X*X*C,gt=C*C*X+X*C*C+C*X*C,St=C*C*C;for(N=0;N<$;N+=1)M[N*4]=r.round((it*x[N]+At*F[N]+ft*D[N]+nt*O[N])*1e3)/1e3,M[N*4+1]=r.round((_t*x[N]+mt*F[N]+rt*D[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((P*x[N]+v*F[N]+E*D[N]+j*O[N])*1e3)/1e3,M[N*4+3]=r.round((z*x[N]+ct*F[N]+gt*D[N]+St*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:Y,getPointInSegment:k,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:l}}var Zr=GE(),Po=e,cu=Math.abs;function hu(r,s){var l=this.offsetTime,d;this.propType==="multidimensional"&&(d=q("float32",this.pv.length));for(var m=s.lastIndex,p=m,b=this.keyframes.length-1,I=!0,y,k,M;I;){if(y=this.keyframes[p],k=this.keyframes[p+1],p===b-1&&r>=k.t-l){y.h&&(y=k),m=0;break}if(k.t-l>r){m=p;break}p<b-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var Y,x,O,F,D,U,L=k.t-l,w=y.t-l,T;if(y.to){M.bezierData||(M.bezierData=Zr.buildBezierData(y.s,k.s||y.e,y.to,y.ti));var C=M.bezierData;if(r>=L||r<w){var N=r>=L?C.points.length-1:0;for(x=C.points[N].point.length,Y=0;Y<x;Y+=1)d[Y]=C.points[N].point[Y]}else{M.__fnct?U=M.__fnct:(U=Oa.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=U),O=U((r-w)/(L-w));var $=C.segmentLength*O,W,X=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(D=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,F=C.points.length;I;){if(X+=C.points[D].partialLength,$===0||O===0||D===C.points.length-1){for(x=C.points[D].point.length,Y=0;Y<x;Y+=1)d[Y]=C.points[D].point[Y];break}else if($>=X&&$<X+C.points[D+1].partialLength){for(W=($-X)/C.points[D+1].partialLength,x=C.points[D].point.length,Y=0;Y<x;Y+=1)d[Y]=C.points[D].point[Y]+(C.points[D+1].point[Y]-C.points[D].point[Y])*W;break}D<F-1?D+=1:I=!1}s._lastPoint=D,s._lastAddedLength=X-C.points[D].partialLength,s._lastKeyframeIndex=p}}else{var it,At,ft,nt,_t;if(b=y.s.length,T=k.s||y.e,this.sh&&y.h!==1)if(r>=L)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=w)d[0]=y.s[0],d[1]=y.s[1],d[2]=y.s[2];else{var mt=pu(y.s),rt=pu(T),_=(r-w)/(L-w);WE(d,KE(mt,rt,_))}else for(p=0;p<b;p+=1)y.h!==1&&(r>=L?O=1:r<w?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?U=M.__fnct[p]:(it=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],At=y.o.y[p]===void 0?y.o.y[0]:y.o.y[p],ft=y.i.x[p]===void 0?y.i.x[0]:y.i.x[p],nt=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],U=Oa.getBezierEasing(it,At,ft,nt).get,M.__fnct[p]=U)):M.__fnct?U=M.__fnct:(it=y.o.x,At=y.o.y,ft=y.i.x,nt=y.i.y,U=Oa.getBezierEasing(it,At,ft,nt).get,y.keyframeMetadata=U),O=U((r-w)/(L-w)))),T=k.s||y.e,_t=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?d[p]=_t:d=_t}return s.lastIndex=m,d}function KE(r,s,l){var d=[],m=r[0],p=r[1],b=r[2],I=r[3],y=s[0],k=s[1],M=s[2],Y=s[3],x,O,F,D,U;return O=m*y+p*k+b*M+I*Y,O<0&&(O=-O,y=-y,k=-k,M=-M,Y=-Y),1-O>1e-6?(x=Math.acos(O),F=Math.sin(x),D=Math.sin((1-l)*x)/F,U=Math.sin(l*x)/F):(D=1-l,U=l),d[0]=D*m+U*y,d[1]=D*p+U*k,d[2]=D*b+U*M,d[3]=D*I+U*Y,d}function WE(r,s){var l=s[0],d=s[1],m=s[2],p=s[3],b=Math.atan2(2*d*p-2*l*m,1-2*d*d-2*m*m),I=Math.asin(2*l*d+2*m*p),y=Math.atan2(2*l*p-2*d*m,1-2*l*l-2*m*m);r[0]=b/kt,r[1]=I/kt,r[2]=y/kt}function pu(r){var s=r[0]*kt,l=r[1]*kt,d=r[2]*kt,m=Math.cos(s/2),p=Math.cos(l/2),b=Math.cos(d/2),I=Math.sin(s/2),y=Math.sin(l/2),k=Math.sin(d/2),M=m*p*b-I*y*k,Y=I*y*b+m*p*k,x=I*p*b+m*y*k,O=m*y*b-I*p*k;return[Y,x,O,M]}function mu(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,l=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Po&&(this._caching.lastFrame>=l&&r>=l||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function ll(r){var s;if(this.propType==="unidimensional")s=r*this.mult,cu(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var l=0,d=this.v.length;l<d;)s=r[l]*this.mult,cu(this.v[l]-s)>1e-5&&(this.v[l]=s,this._mdf=!0),l+=1}function dl(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,l=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)l=this.effectsSequence[r](l);this.setVValue(l),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function cl(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function YE(r,s,l,d){this.propType="unidimensional",this.mult=l||1,this.data=s,this.v=l?s.k*l:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=dl,this.setVValue=ll,this.addEffect=cl}function jE(r,s,l,d){this.propType="multidimensional",this.mult=l||1,this.data=s,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=q("float32",p),this.pv=q("float32",p),this.vel=q("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=dl,this.setVValue=ll,this.addEffect=cl}function qE(r,s,l,d){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Po,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=l||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=Po,this.pv=Po,this._isFirstFrame=!0,this.getValue=dl,this.setVValue=ll,this.interpolateValue=hu,this.effectsSequence=[mu.bind(this)],this.addEffect=cl}function XE(r,s,l,d){this.propType="multidimensional";var m,p=s.k.length,b,I,y,k;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(b=s.k[m].s,I=s.k[m+1].s,y=s.k[m].to,k=s.k[m].ti,(b.length===2&&!(b[0]===I[0]&&b[1]===I[1])&&Zr.pointOnLine2D(b[0],b[1],I[0],I[1],b[0]+y[0],b[1]+y[1])&&Zr.pointOnLine2D(b[0],b[1],I[0],I[1],I[0]+k[0],I[1]+k[1])||b.length===3&&!(b[0]===I[0]&&b[1]===I[1]&&b[2]===I[2])&&Zr.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],b[0]+y[0],b[1]+y[1],b[2]+y[2])&&Zr.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],I[0]+k[0],I[1]+k[1],I[2]+k[2]))&&(s.k[m].to=null,s.k[m].ti=null),b[0]===I[0]&&b[1]===I[1]&&y[0]===0&&y[1]===0&&k[0]===0&&k[1]===0&&(b.length===2||b[2]===I[2]&&y[2]===0&&k[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[mu.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=dl,this.setVValue=ll,this.interpolateValue=hu,this.frameId=-1;var M=s.k[0].s.length;for(this.v=q("float32",M),this.pv=q("float32",M),m=0;m<M;m+=1)this.v[m]=Po,this.pv[m]=Po;this._caching={lastFrame:Po,lastIndex:0,value:q("float32",M)},this.addEffect=cl}var lt=function(){function r(l,d,m,p,b){d.sid&&(d=l.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new YE(l,d,p,b);else if(typeof d.k[0]=="number")I=new jE(l,d,p,b);else switch(m){case 0:I=new qE(l,d,p,b);break;case 1:I=new XE(l,d,p,b);break;default:break}return I.effectsSequence.length&&b.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ne(){}Ne.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,l=this.dynamicProperties.length;for(s=0;s<l;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Fo=function(){function r(){return q("float32",2)}return nl(8,r)}();function Ei(){this.c=!1,this._length=0,this._maxLength=8,this.v=Z(this._maxLength),this.o=Z(this._maxLength),this.i=Z(this._maxLength)}Ei.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var l=0;l<s;)this.v[l]=Fo.newElement(),this.o[l]=Fo.newElement(),this.i[l]=Fo.newElement(),l+=1},Ei.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},Ei.prototype.doubleArrayLength=function(){this.v=this.v.concat(Z(this._maxLength)),this.i=this.i.concat(Z(this._maxLength)),this.o=this.o.concat(Z(this._maxLength)),this._maxLength*=2},Ei.prototype.setXYAt=function(r,s,l,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),l){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=Fo.newElement()),p[d][0]=r,p[d][1]=s},Ei.prototype.setTripleAt=function(r,s,l,d,m,p,b,I){this.setXYAt(r,s,"v",b,I),this.setXYAt(l,d,"o",b,I),this.setXYAt(m,p,"i",b,I)},Ei.prototype.reverse=function(){var r=new Ei;r.setPathData(this.c,this._length);var s=this.v,l=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],d[0][0],d[0][1],l[0][0],l[0][1],0,!1),m=1);var p=this._length-1,b=this._length,I;for(I=m;I<b;I+=1)r.setTripleAt(s[p][0],s[p][1],d[p][0],d[p][1],l[p][0],l[p][1],I,!1),p-=1;return r},Ei.prototype.length=function(){return this._length};var De=function(){function r(){return new Ei}function s(m){var p=m._length,b;for(b=0;b<p;b+=1)Fo.release(m.v[b]),Fo.release(m.i[b]),Fo.release(m.o[b]),m.v[b]=null,m.i[b]=null,m.o[b]=null;m._length=0,m.c=!1}function l(m){var p=d.newElement(),b,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,b=0;b<I;b+=1)p.setTripleAt(m.v[b][0],m.v[b][1],m.o[b][0],m.o[b][1],m.i[b][0],m.i[b][1],b);return p}var d=nl(4,r,s);return d.clone=l,d}();function Hc(){this._length=0,this._maxLength=4,this.shapes=Z(this._maxLength)}Hc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Z(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},Hc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Ns=function(){var r={newShapeCollection:m,release:p},s=0,l=4,d=Z(l);function m(){var b;return s?(s-=1,b=d[s]):b=new Hc,b}function p(b){var I,y=b._length;for(I=0;I<y;I+=1)De.release(b.shapes[I]);b._length=0,s===l&&(d=nu.double(d),l*=2),d[s]=b,s+=1}return r}(),hl=function(){var r=-999999;function s(L,w,T){var C=T.lastIndex,N,$,W,X,it,At,ft,nt,_t,mt=this.keyframes;if(L<mt[0].t-this.offsetTime)N=mt[0].s[0],W=!0,C=0;else if(L>=mt[mt.length-1].t-this.offsetTime)N=mt[mt.length-1].s?mt[mt.length-1].s[0]:mt[mt.length-2].e[0],W=!0;else{for(var rt=C,_=mt.length-1,P=!0,v,E,j;P&&(v=mt[rt],E=mt[rt+1],!(E.t-this.offsetTime>L));)rt<_-1?rt+=1:P=!1;if(j=this.keyframesMetadata[rt]||{},W=v.h===1,C=rt,!W){if(L>=E.t-this.offsetTime)nt=1;else if(L<v.t-this.offsetTime)nt=0;else{var z;j.__fnct?z=j.__fnct:(z=Oa.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,j.__fnct=z),nt=z((L-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(At=w._length,ft=N.i[0].length,T.lastIndex=C,X=0;X<At;X+=1)for(it=0;it<ft;it+=1)_t=W?N.i[X][it]:N.i[X][it]+($.i[X][it]-N.i[X][it])*nt,w.i[X][it]=_t,_t=W?N.o[X][it]:N.o[X][it]+($.o[X][it]-N.o[X][it])*nt,w.o[X][it]=_t,_t=W?N.v[X][it]:N.v[X][it]+($.v[X][it]-N.v[X][it])*nt,w.v[X][it]=_t}function l(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<w&&L<w||C>T&&L>T)||(this._caching.lastIndex=C<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function d(){this.paths=this.localShapeCollection}function m(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,C=L._length;for(T=0;T<C;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function p(L){m(this.v,L)||(this.v=De.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function b(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var C=T===3?w.pt.k:w.ks.k;this.v=De.clone(C),this.pv=De.clone(this.v),this.localShapeCollection=Ns.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function y(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=b,I.prototype.setVValue=p,I.prototype.addEffect=y;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var C=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=De.clone(this.v),this.localShapeCollection=Ns.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[l.bind(this)]}k.prototype.getValue=b,k.prototype.interpolateShape=s,k.prototype.setVValue=p,k.prototype.addEffect=y;var M=function(){var L=ie;function w(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ns.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=C.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=lt.getProp(T,C.p,1,0,this),this.s=lt.getProp(T,C.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var C=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,W=this.s.v[1]/2,X=this.d!==3,it=this.v;it.v[0][0]=C,it.v[0][1]=N-W,it.v[1][0]=X?C+$:C-$,it.v[1][1]=N,it.v[2][0]=C,it.v[2][1]=N+W,it.v[3][0]=X?C-$:C+$,it.v[3][1]=N,it.i[0][0]=X?C-$*L:C+$*L,it.i[0][1]=N-W,it.i[1][0]=X?C+$:C-$,it.i[1][1]=N-W*L,it.i[2][0]=X?C+$*L:C-$*L,it.i[2][1]=N+W,it.i[3][0]=X?C-$:C+$,it.i[3][1]=N+W*L,it.o[0][0]=X?C+$*L:C-$*L,it.o[0][1]=N-W,it.o[1][0]=X?C+$:C-$,it.o[1][1]=N+W*L,it.o[2][0]=X?C-$*L:C+$*L,it.o[2][1]=N+W,it.o[3][0]=X?C-$:C+$,it.o[3][1]=N-W*L}},A([Ne],w),w}(),Y=function(){function L(w,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=lt.getProp(w,T.ir,0,0,this),this.is=lt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(w,T.pt,0,0,this),this.p=lt.getProp(w,T.p,1,0,this),this.r=lt.getProp(w,T.r,0,kt,this),this.or=lt.getProp(w,T.or,0,0,this),this.os=lt.getProp(w,T.os,0,.01,this),this.localShapeCollection=Ns.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,C=Math.PI*2/T,N=!0,$=this.or.v,W=this.ir.v,X=this.os.v,it=this.is.v,At=2*Math.PI*$/(T*2),ft=2*Math.PI*W/(T*2),nt,_t,mt,rt,_=-Math.PI/2;_+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,nt=0;nt<T;nt+=1){_t=N?$:W,mt=N?X:it,rt=N?At:ft;var v=_t*Math.cos(_),E=_t*Math.sin(_),j=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),z=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-j*rt*mt*P,E-z*rt*mt*P,v+j*rt*mt*P,E+z*rt*mt*P,nt,!0),N=!N,_+=C*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,$=this.os.v,W=2*Math.PI*N/(T*4),X,it=-Math.PI*.5,At=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,X=0;X<T;X+=1){var ft=N*Math.cos(it),nt=N*Math.sin(it),_t=ft===0&&nt===0?0:nt/Math.sqrt(ft*ft+nt*nt),mt=ft===0&&nt===0?0:-ft/Math.sqrt(ft*ft+nt*nt);ft+=+this.p.v[0],nt+=+this.p.v[1],this.v.setTripleAt(ft,nt,ft-_t*W*$*At,nt-mt*W*$*At,ft+_t*W*$*At,nt+mt*W*$*At,X,!0),it+=C*At}this.paths.length=0,this.paths[0]=this.v}},A([Ne],L),L}(),x=function(){function L(w,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=Ns.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=lt.getProp(w,T.p,1,0,this),this.s=lt.getProp(w,T.s,1,0,this),this.r=lt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],C=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,W=jt(N,$,this.r.v),X=W*(1-ie);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-$+W,T+N,C-$+W,T+N,C-$+X,0,!0),this.v.setTripleAt(T+N,C+$-W,T+N,C+$-X,T+N,C+$-W,1,!0),W!==0?(this.v.setTripleAt(T+N-W,C+$,T+N-W,C+$,T+N-X,C+$,2,!0),this.v.setTripleAt(T-N+W,C+$,T-N+X,C+$,T-N+W,C+$,3,!0),this.v.setTripleAt(T-N,C+$-W,T-N,C+$-W,T-N,C+$-X,4,!0),this.v.setTripleAt(T-N,C-$+W,T-N,C-$+X,T-N,C-$+W,5,!0),this.v.setTripleAt(T-N+W,C-$,T-N+W,C-$,T-N+X,C-$,6,!0),this.v.setTripleAt(T+N-W,C-$,T+N-X,C-$,T+N-W,C-$,7,!0)):(this.v.setTripleAt(T-N,C+$,T-N+X,C+$,T-N,C+$,2),this.v.setTripleAt(T-N,C-$,T-N,C-$+X,T-N,C-$,3))):(this.v.setTripleAt(T+N,C-$+W,T+N,C-$+X,T+N,C-$+W,0,!0),W!==0?(this.v.setTripleAt(T+N-W,C-$,T+N-W,C-$,T+N-X,C-$,1,!0),this.v.setTripleAt(T-N+W,C-$,T-N+X,C-$,T-N+W,C-$,2,!0),this.v.setTripleAt(T-N,C-$+W,T-N,C-$+W,T-N,C-$+X,3,!0),this.v.setTripleAt(T-N,C+$-W,T-N,C+$-X,T-N,C+$-W,4,!0),this.v.setTripleAt(T-N+W,C+$,T-N+W,C+$,T-N+X,C+$,5,!0),this.v.setTripleAt(T+N-W,C+$,T+N-X,C+$,T+N-W,C+$,6,!0),this.v.setTripleAt(T+N,C+$-W,T+N,C+$-W,T+N,C+$-X,7,!0)):(this.v.setTripleAt(T-N,C-$,T-N+X,C-$,T-N,C-$,1,!0),this.v.setTripleAt(T-N,C+$,T-N,C+$-X,T-N,C+$,2,!0),this.v.setTripleAt(T+N,C+$,T+N-X,C+$,T+N,C+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Ne],L),L}();function O(L,w,T){var C;if(T===3||T===4){var N=T===3?w.pt:w.ks,$=N.k;$.length?C=new k(L,w,T):C=new I(L,w,T)}else T===5?C=new x(L,w):T===6?C=new M(L,w):T===7&&(C=new Y(L,w));return C.k&&L.addDynamicProperty(C),C}function F(){return I}function D(){return k}var U={};return U.getShapeProp=O,U.getConstructorFunction=F,U.getKeyframedConstructorFunction=D,U}();var Pe=function(){var r=Math.cos,s=Math.sin,l=Math.tan,d=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function b(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(1,0,0,0,0,E,-j,0,0,j,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,0,j,0,0,1,0,0,-j,0,E,0,0,0,0,1)}function y(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function k(v,E){return this._t(1,E,v,1,0,0)}function M(v,E){return this.shear(l(v),l(E))}function Y(v,E){var j=r(E),z=s(E);return this._t(j,z,0,0,-z,j,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,l(v),1,0,0,0,0,1,0,0,0,0,1)._t(j,-z,0,0,z,j,0,0,0,0,1,0,0,0,0,1)}function x(v,E,j){return!j&&j!==0&&(j=1),v===1&&E===1&&j===1?this:this._t(v,0,0,0,0,E,0,0,0,0,j,0,0,0,0,1)}function O(v,E,j,z,ct,gt,St,$t,Vt,fe,rr,Jr,ir,Le,fr,Wt){return this.props[0]=v,this.props[1]=E,this.props[2]=j,this.props[3]=z,this.props[4]=ct,this.props[5]=gt,this.props[6]=St,this.props[7]=$t,this.props[8]=Vt,this.props[9]=fe,this.props[10]=rr,this.props[11]=Jr,this.props[12]=ir,this.props[13]=Le,this.props[14]=fr,this.props[15]=Wt,this}function F(v,E,j){return j=j||0,v!==0||E!==0||j!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,j,1):this}function D(v,E,j,z,ct,gt,St,$t,Vt,fe,rr,Jr,ir,Le,fr,Wt){var ut=this.props;if(v===1&&E===0&&j===0&&z===0&&ct===0&&gt===1&&St===0&&$t===0&&Vt===0&&fe===0&&rr===1&&Jr===0)return ut[12]=ut[12]*v+ut[15]*ir,ut[13]=ut[13]*gt+ut[15]*Le,ut[14]=ut[14]*rr+ut[15]*fr,ut[15]*=Wt,this._identityCalculated=!1,this;var Ai=ut[0],ro=ut[1],Si=ut[2],ti=ut[3],Ii=ut[4],Ci=ut[5],or=ut[6],io=ut[7],oo=ut[8],Pr=ut[9],so=ut[10],Fr=ut[11],Bo=ut[12],El=ut[13],Tl=ut[14],xl=ut[15];return ut[0]=Ai*v+ro*ct+Si*Vt+ti*ir,ut[1]=Ai*E+ro*gt+Si*fe+ti*Le,ut[2]=Ai*j+ro*St+Si*rr+ti*fr,ut[3]=Ai*z+ro*$t+Si*Jr+ti*Wt,ut[4]=Ii*v+Ci*ct+or*Vt+io*ir,ut[5]=Ii*E+Ci*gt+or*fe+io*Le,ut[6]=Ii*j+Ci*St+or*rr+io*fr,ut[7]=Ii*z+Ci*$t+or*Jr+io*Wt,ut[8]=oo*v+Pr*ct+so*Vt+Fr*ir,ut[9]=oo*E+Pr*gt+so*fe+Fr*Le,ut[10]=oo*j+Pr*St+so*rr+Fr*fr,ut[11]=oo*z+Pr*$t+so*Jr+Fr*Wt,ut[12]=Bo*v+El*ct+Tl*Vt+xl*ir,ut[13]=Bo*E+El*gt+Tl*fe+xl*Le,ut[14]=Bo*j+El*St+Tl*rr+xl*fr,ut[15]=Bo*z+El*$t+Tl*Jr+xl*Wt,this._identityCalculated=!1,this}function U(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function C(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,j){return{x:v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}}function $(v,E,j){return v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12]}function W(v,E,j){return v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13]}function X(v,E,j){return v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,j=-this.props[1]/v,z=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,St=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,$t=new Pe;return $t.props[0]=E,$t.props[1]=j,$t.props[4]=z,$t.props[5]=ct,$t.props[12]=gt,$t.props[13]=St,$t}function At(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ft(v){var E,j=v.length,z=[];for(E=0;E<j;E+=1)z[E]=At(v[E]);return z}function nt(v,E,j){var z=q("float32",6);if(this.isIdentity())z[0]=v[0],z[1]=v[1],z[2]=E[0],z[3]=E[1],z[4]=j[0],z[5]=j[1];else{var ct=this.props[0],gt=this.props[1],St=this.props[4],$t=this.props[5],Vt=this.props[12],fe=this.props[13];z[0]=v[0]*ct+v[1]*St+Vt,z[1]=v[0]*gt+v[1]*$t+fe,z[2]=E[0]*ct+E[1]*St+Vt,z[3]=E[0]*gt+E[1]*$t+fe,z[4]=j[0]*ct+j[1]*St+Vt,z[5]=j[0]*gt+j[1]*$t+fe}return z}function _t(v,E,j){var z;return this.isIdentity()?z=[v,E,j]:z=[v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]],z}function mt(v,E){if(this.isIdentity())return v+","+E;var j=this.props;return Math.round((v*j[0]+E*j[4]+j[12])*100)/100+","+Math.round((v*j[1]+E*j[5]+j[13])*100)/100}function rt(){for(var v=0,E=this.props,j="matrix3d(",z=1e4;v<16;)j+=d(E[v]*z)/z,j+=v===15?")":",",v+=1;return j}function _(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function P(){var v=this.props,E=_(v[0]),j=_(v[1]),z=_(v[4]),ct=_(v[5]),gt=_(v[12]),St=_(v[13]);return"matrix("+E+","+j+","+z+","+ct+","+gt+","+St+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=b,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=Y,this.shear=k,this.scale=x,this.setTransform=O,this.translate=F,this.transform=D,this.multiply=U,this.applyToPoint=N,this.applyToX=$,this.applyToY=W,this.applyToZ=X,this.applyToPointArray=_t,this.applyToTriplePoints=nt,this.applyToPointStringified=mt,this.toCSS=rt,this.to2dCSS=P,this.clone=T,this.cloneFromProps=C,this.equals=w,this.inversePoints=ft,this.inversePoint=At,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=q("float32",16),this.reset()}}();function pl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pl=function(l){return typeof l}:pl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},pl(r)}var Kt={},ml="__[STANDALONE]__",uu="__[ANIMATIONDATA]__",fu="";function ZE(r){c(r)}function vu(){ml===!0?ue.searchAnimations(uu,ml,fu):ue.searchAnimations()}function QE(r){RE(r)}function JE(r){FE(r)}function tT(r){return ml===!0&&(r.animationData=JSON.parse(uu)),ue.loadAnimation(r)}function eT(r){if(typeof r=="string")switch(r){case"high":sl(200);break;default:case"medium":sl(50);break;case"low":sl(10);break}else!isNaN(r)&&r>1&&sl(r);ka()>=50?Ke(!1):Ke(!0)}function rT(){return typeof navigator<"u"}function iT(r,s){r==="expressions"&&PE(s)}function oT(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return hl;case"matrix":return Pe;default:return null}}Kt.play=ue.play,Kt.pause=ue.pause,Kt.setLocationHref=ZE,Kt.togglePause=ue.togglePause,Kt.setSpeed=ue.setSpeed,Kt.setDirection=ue.setDirection,Kt.stop=ue.stop,Kt.searchAnimations=vu,Kt.registerAnimation=ue.registerAnimation,Kt.loadAnimation=tT,Kt.setSubframeRendering=QE,Kt.resize=ue.resize,Kt.goToAndStop=ue.goToAndStop,Kt.destroy=ue.destroy,Kt.setQuality=eT,Kt.inBrowser=rT,Kt.installPlugin=iT,Kt.freeze=ue.freeze,Kt.unfreeze=ue.unfreeze,Kt.setVolume=ue.setVolume,Kt.mute=ue.mute,Kt.unmute=ue.unmute,Kt.getRegisteredAnimations=ue.getRegisteredAnimations,Kt.useWebWorker=i,Kt.setIDPrefix=JE,Kt.__getFactory=oT,Kt.version="5.12.2";function sT(){document.readyState==="complete"&&(clearInterval(lT),vu())}function aT(r){for(var s=gu.split("&"),l=0;l<s.length;l+=1){var d=s[l].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var gu="";if(ml){var bu=document.getElementsByTagName("script"),nT=bu.length-1,yu=bu[nT]||{src:""};gu=yu.src?yu.src.replace(/^[^\?]+\??/,""):"",fu=aT("renderer")}var lT=setInterval(sT,100);try{!((typeof pn>"u"?"undefined":pl(pn))==="object"&&typeof Jl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Kt)}catch{}var Xi=function(){var r={},s={};r.registerModifier=l,r.getModifier=d;function l(m,p){s[m]||(s[m]=p)}function d(m,p,b){return new s[m](p,b)}return r}();function Sr(){}Sr.prototype.initModifierProperties=function(){},Sr.prototype.addShapeToModifier=function(){},Sr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Ns.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Sr.prototype.init=function(r,s){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Sr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Ne],Sr);function Dr(){}A([Sr],Dr),Dr.prototype.initModifierProperties=function(r,s){this.s=lt.getProp(r,s.s,0,.01,this),this.e=lt.getProp(r,s.e,0,.01,this),this.o=lt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Dr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Dr.prototype.calculateShapeEdges=function(r,s,l,d,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var b=[],I,y=p.length,k;for(I=0;I<y;I+=1)if(k=p[I],!(k.e*m<d||k.s*m>d+l)){var M,Y;k.s*m<=d?M=0:M=(k.s*m-d)/l,k.e*m>=d+l?Y=1:Y=(k.e*m-d)/l,b.push([M,Y])}return b.length||b.push([0,0]),b},Dr.prototype.releasePathsData=function(r){var s,l=r.length;for(s=0;s<l;s+=1)du.release(r[s]);return r.length=0,r},Dr.prototype.processShapes=function(r){var s,l;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?s=1+d:this.s.v<0?s=0+d:s=this.s.v+d,this.e.v>1?l=1+d:this.e.v<0?l=0+d:l=this.e.v+d,s>l){var m=s;s=l,l=m}s=Math.round(s*1e4)*1e-4,l=Math.round(l*1e4)*1e-4,this.sValue=s,this.eValue=l}else s=this.sValue,l=this.eValue;var p,b,I=this.shapes.length,y,k,M,Y,x,O=0;if(l===s)for(b=0;b<I;b+=1)this.shapes[b].localShapeCollection.releaseShapes(),this.shapes[b].shape._mdf=!0,this.shapes[b].shape.paths=this.shapes[b].localShapeCollection,this._mdf&&(this.shapes[b].pathsData.length=0);else if(l===1&&s===0||l===0&&s===1){if(this._mdf)for(b=0;b<I;b+=1)this.shapes[b].pathsData.length=0,this.shapes[b].shape._mdf=!0}else{var F=[],D,U;for(b=0;b<I;b+=1)if(D=this.shapes[b],!D.shape._mdf&&!this._mdf&&!r&&this.m!==2)D.shape.paths=D.localShapeCollection;else{if(p=D.shape.paths,k=p._length,x=0,!D.shape._mdf&&D.pathsData.length)x=D.totalShapeLength;else{for(M=this.releasePathsData(D.pathsData),y=0;y<k;y+=1)Y=Zr.getSegmentsLength(p.shapes[y]),M.push(Y),x+=Y.totalLength;D.totalShapeLength=x,D.pathsData=M}O+=x,D.shape._mdf=!0}var L=s,w=l,T=0,C;for(b=I-1;b>=0;b-=1)if(D=this.shapes[b],D.shape._mdf){for(U=D.localShapeCollection,U.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,l,D.totalShapeLength,T,O),T+=D.totalShapeLength):C=[[L,w]],k=C.length,y=0;y<k;y+=1){L=C[y][0],w=C[y][1],F.length=0,w<=1?F.push({s:D.totalShapeLength*L,e:D.totalShapeLength*w}):L>=1?F.push({s:D.totalShapeLength*(L-1),e:D.totalShapeLength*(w-1)}):(F.push({s:D.totalShapeLength*L,e:D.totalShapeLength}),F.push({s:0,e:D.totalShapeLength*(w-1)}));var N=this.addShapes(D,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var $=D.shape.paths.shapes[D.shape.paths._length-1];if($.c){var W=N.pop();this.addPaths(N,U),N=this.addShapes(D,F[1],W)}else this.addPaths(N,U),N=this.addShapes(D,F[1])}this.addPaths(N,U)}}D.shape.paths=U}}},Dr.prototype.addPaths=function(r,s){var l,d=r.length;for(l=0;l<d;l+=1)s.addShape(r[l])},Dr.prototype.addSegment=function(r,s,l,d,m,p,b){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(l[0],l[1],"i",p+1),b&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Dr.prototype.addSegmentFromArray=function(r,s,l,d){s.setXYAt(r[1],r[5],"o",l),s.setXYAt(r[2],r[6],"i",l+1),d&&s.setXYAt(r[0],r[4],"v",l),s.setXYAt(r[3],r[7],"v",l+1)},Dr.prototype.addShapes=function(r,s,l){var d=r.pathsData,m=r.shape.paths.shapes,p,b=r.shape.paths._length,I,y,k=0,M,Y,x,O,F=[],D,U=!0;for(l?(Y=l._length,D=l._length):(l=De.newElement(),Y=0,D=0),F.push(l),p=0;p<b;p+=1){for(x=d[p].lengths,l.c=m[p].c,y=m[p].c?x.length:x.length+1,I=1;I<y;I+=1)if(M=x[I-1],k+M.addedLength<s.s)k+=M.addedLength,l.c=!1;else if(k>s.e){l.c=!1;break}else s.s<=k&&s.e>=k+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],l,Y,U),U=!1):(O=Zr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-k)/M.addedLength,(s.e-k)/M.addedLength,x[I-1]),this.addSegmentFromArray(O,l,Y,U),U=!1,l.c=!1),k+=M.addedLength,Y+=1;if(m[p].c&&x.length){if(M=x[I-1],k<=s.e){var L=x[I-1].addedLength;s.s<=k&&s.e>=k+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],l,Y,U),U=!1):(O=Zr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-k)/L,(s.e-k)/L,x[I-1]),this.addSegmentFromArray(O,l,Y,U),U=!1,l.c=!1)}else l.c=!1;k+=M.addedLength,Y+=1}if(l._length&&(l.setXYAt(l.v[D][0],l.v[D][1],"i",D),l.setXYAt(l.v[l._length-1][0],l.v[l._length-1][1],"o",l._length-1)),k>s.e)break;p<b-1&&(l=De.newElement(),U=!0,F.push(l),Y=0)}return F};function Ra(){}A([Sr],Ra),Ra.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ra.prototype.processPath=function(r,s){var l=s/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var b=De.newElement();b.c=r.c;var I,y,k,M,Y,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*l,y=r.v[p][1]+(d[1]-r.v[p][1])*l,k=r.o[p][0]+(d[0]-r.o[p][0])*-l,M=r.o[p][1]+(d[1]-r.o[p][1])*-l,Y=r.i[p][0]+(d[0]-r.i[p][0])*-l,x=r.i[p][1]+(d[1]-r.i[p][1])*-l,b.setTripleAt(I,y,k,M,Y,x,p);return b},Ra.prototype.processShapes=function(r){var s,l,d=this.shapes.length,m,p,b=this.amount.v;if(b!==0){var I,y;for(l=0;l<d;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Uc=function(){var r=[0,0];function s(y){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&y.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&y.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&y.skewFromAxis(-this.sk.v,this.sa.v),this.r?y.rotate(-this.r.v):y.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?y.translate(this.px.v,this.py.v,-this.pz.v):y.translate(this.px.v,this.py.v,0):y.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function l(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,Y;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),Y=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),Y=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,Y=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],Y=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),Y[0]=x.getValueAtTime(x.keyframes[0].t/k,0),Y[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),Y[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),Y[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],Y[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),Y[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else Y=r,M=Y;this.v.rotate(-Math.atan2(M[1]-Y[1],M[0]-Y[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(y){this._addDynamicProperty(y),this.elem.addDynamicProperty(y),this._isDirty=!0}function b(y,k,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),k.p&&k.p.s?(this.px=lt.getProp(y,k.p.x,0,0,this),this.py=lt.getProp(y,k.p.y,0,0,this),k.p.z&&(this.pz=lt.getProp(y,k.p.z,0,0,this))):this.p=lt.getProp(y,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=lt.getProp(y,k.rx,0,kt,this),this.ry=lt.getProp(y,k.ry,0,kt,this),this.rz=lt.getProp(y,k.rz,0,kt,this),k.or.k[0].ti){var Y,x=k.or.k.length;for(Y=0;Y<x;Y+=1)k.or.k[Y].to=null,k.or.k[Y].ti=null}this.or=lt.getProp(y,k.or,1,kt,this),this.or.sh=!0}else this.r=lt.getProp(y,k.r||{k:0},0,kt,this);k.sk&&(this.sk=lt.getProp(y,k.sk,0,kt,this),this.sa=lt.getProp(y,k.sa,0,kt,this)),this.a=lt.getProp(y,k.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(y,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=lt.getProp(y,k.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}b.prototype={applyToMatrix:s,getValue:l,precalculateMatrix:d,autoOrient:m},A([Ne],b),b.prototype.addDynamicProperty=p,b.prototype._addDynamicProperty=Ne.prototype.addDynamicProperty;function I(y,k,M){return new b(y,k,M)}return{getTransformProperty:I}}();function Qr(){}A([Sr],Qr),Qr.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=lt.getProp(r,s.c,0,null,this),this.o=lt.getProp(r,s.o,0,null,this),this.tr=Uc.getTransformProperty(r,s.tr,this),this.so=lt.getProp(r,s.tr.so,0,.01,this),this.eo=lt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},Qr.prototype.applyTransforms=function(r,s,l,d,m,p){var b=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),y=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*b*m,d.p.v[1]*b*m,d.p.v[2]),s.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),s.rotate(-d.r.v*b*m),s.translate(d.a.v[0],d.a.v[1],d.a.v[2]),l.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),l.scale(p?1/I:I,p?1/y:y),l.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Qr.prototype.init=function(r,s,l,d){for(this.elem=r,this.arr=s,this.pos=l,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[l]);l>0;)l-=1,this._elements.unshift(s[l]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Qr.prototype.resetElements=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Qr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Qr.prototype.changeGroupRender=function(r,s){var l,d=r.length;for(l=0;l<d;l+=1)r[l]._render=s,r[l].ty==="gr"&&this.changeGroupRender(r[l].it,s)},Qr.prototype.processShapes=function(r){var s,l,d,m,p,b=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var y={it:this.cloneElements(this._elements),ty:"gr"};y.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,y),this._groups.splice(0,0,y),this._currentCopies+=1}this.elem.reloadShapes(),b=!0}p=0;var k;for(d=0;d<=this._groups.length-1;d+=1){if(k=p<I,this._groups[d]._render=k,this.changeGroupRender(this._groups[d].it,k),!k){var M=this.elemsData[d].it,Y=M[M.length-1];Y.transform.op.v!==0?(Y.transform.op._mdf=!0,Y.transform.op.v=0):Y.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,F=x>0?Math.floor(x):Math.ceil(x),D=this.pMatrix.props,U=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}d=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,C;p;){if(s=this.elemsData[d].it,l=s[s.length-1].transform.mProps.v.props,C=l.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),w!==0){for((d!==0&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15]),T=0;T<C;T+=1)l[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)l[T]=this.matrix.props[T];w+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)s=this.elemsData[d].it,l=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,d+=m;return b},Qr.prototype.addShape=function(){};function Da(){}A([Sr],Da),Da.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=lt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Da.prototype.processPath=function(r,s){var l=De.newElement();l.c=r.c;var d,m=r._length,p,b,I,y,k,M,Y=0,x,O,F,D,U,L;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],b=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===b[0]&&p[1]===b[1]?(d===0||d===m-1)&&!r.c?(l.setTripleAt(p[0],p[1],I[0],I[1],b[0],b[1],Y),Y+=1):(d===0?y=r.v[m-1]:y=r.v[d-1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,U=p[0]+(y[0]-p[0])*M,x=U,L=p[1]-(p[1]-y[1])*M,O=L,F=x-(x-p[0])*ie,D=O-(O-p[1])*ie,l.setTripleAt(x,O,F,D,U,L,Y),Y+=1,d===m-1?y=r.v[0]:y=r.v[d+1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,F=p[0]+(y[0]-p[0])*M,x=F,D=p[1]+(y[1]-p[1])*M,O=D,U=x-(x-p[0])*ie,L=O-(O-p[1])*ie,l.setTripleAt(x,O,F,D,U,L,Y),Y+=1):(l.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],Y),Y+=1);return l},Da.prototype.processShapes=function(r){var s,l,d=this.shapes.length,m,p,b=this.rd.v;if(b!==0){var I,y;for(l=0;l<d;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ul(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Gc(r){return Math.abs(r)<=1e-5}function Eu(r,s,l){return r*(1-l)+s*l}function Zi(r,s,l){return[Eu(r[0],s[0],l),Eu(r[1],s[1],l)]}function dT(r,s,l){if(r===0)return[];var d=s*s-4*r*l;if(d<0)return[];var m=-s/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function Tu(r,s,l,d){return[-r+3*s-3*l+d,3*r-6*s+3*l,-3*r+3*s,r]}function xu(r){return new de(r,r,r,r,!1)}function de(r,s,l,d,m){m&&Ms(r,s)&&(s=Zi(r,d,1/3)),m&&Ms(l,d)&&(l=Zi(r,d,2/3));var p=Tu(r[0],s[0],l[0],d[0]),b=Tu(r[1],s[1],l[1],d[1]);this.a=[p[0],b[0]],this.b=[p[1],b[1]],this.c=[p[2],b[2]],this.d=[p[3],b[3]],this.points=[r,s,l,d]}de.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},de.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},de.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},de.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},de.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Gc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,l=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(l<0)return[];var d=Math.sqrt(l);return Gc(d)?d>0&&d<1?[s]:[]:[s-d,s+d].filter(function(m){return m>0&&m<1})},de.prototype.split=function(r){if(r<=0)return[xu(this.points[0]),this];if(r>=1)return[this,xu(this.points[this.points.length-1])];var s=Zi(this.points[0],this.points[1],r),l=Zi(this.points[1],this.points[2],r),d=Zi(this.points[2],this.points[3],r),m=Zi(s,l,r),p=Zi(l,d,r),b=Zi(m,p,r);return[new de(this.points[0],s,m,b,!0),new de(b,p,d,this.points[3],!0)]};function Au(r,s){var l=r.points[0][s],d=r.points[r.points.length-1][s];if(l>d){var m=d;d=l,l=m}for(var p=dT(3*r.a[s],2*r.b[s],r.c[s]),b=0;b<p.length;b+=1)if(p[b]>0&&p[b]<1){var I=r.point(p[b])[s];I<l?l=I:I>d&&(d=I)}return{min:l,max:d}}de.prototype.bounds=function(){return{x:Au(this,0),y:Au(this,1)}},de.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function fl(r,s,l){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(s+l)/2,t1:s,t2:l}}function Su(r){var s=r.bez.split(.5);return[fl(s[0],r.t1,r.t),fl(s[1],r.t,r.t2)]}function cT(r,s){return Math.abs(r.cx-s.cx)*2<r.width+s.width&&Math.abs(r.cy-s.cy)*2<r.height+s.height}function Pa(r,s,l,d,m,p){if(cT(r,s)){if(l>=p||r.width<=d&&r.height<=d&&s.width<=d&&s.height<=d){m.push([r.t,s.t]);return}var b=Su(r),I=Su(s);Pa(b[0],I[0],l+1,d,m,p),Pa(b[0],I[1],l+1,d,m,p),Pa(b[1],I[0],l+1,d,m,p),Pa(b[1],I[1],l+1,d,m,p)}}de.prototype.intersections=function(r,s,l){s===void 0&&(s=2),l===void 0&&(l=7);var d=[];return Pa(fl(this,0,1),fl(r,0,1),0,s,d,l),d},de.shapeSegment=function(r,s){var l=(s+1)%r.length();return new de(r.v[s],r.o[s],r.i[l],r.v[l],!0)},de.shapeSegmentInverted=function(r,s){var l=(s+1)%r.length();return new de(r.v[l],r.i[l],r.o[s],r.v[s],!0)};function Kc(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function vl(r,s,l,d){var m=[r[0],r[1],1],p=[s[0],s[1],1],b=[l[0],l[1],1],I=[d[0],d[1],1],y=Kc(Kc(m,p),Kc(b,I));return Gc(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function Ls(r,s,l){return[r[0]+Math.cos(s)*l,r[1]-Math.sin(s)*l]}function Wc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function Ms(r,s){return ul(r[0],s[0])&&ul(r[1],s[1])}function Fa(){}A([Sr],Fa),Fa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=lt.getProp(r,s.s,0,null,this),this.frequency=lt.getProp(r,s.r,0,null,this),this.pointsType=lt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Iu(r,s,l,d,m,p,b){var I=l-Math.PI/2,y=l+Math.PI/2,k=s[0]+Math.cos(l)*d*m,M=s[1]-Math.sin(l)*d*m;r.setTripleAt(k,M,k+Math.cos(I)*p,M-Math.sin(I)*p,k+Math.cos(y)*b,M-Math.sin(y)*b,r.length())}function hT(r,s){var l=[s[0]-r[0],s[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*l[0]-Math.sin(d)*l[1],Math.sin(d)*l[0]+Math.cos(d)*l[1]];return m}function pT(r,s){var l=s===0?r.length()-1:s-1,d=(s+1)%r.length(),m=r.v[l],p=r.v[d],b=hT(m,p);return Math.atan2(0,1)-Math.atan2(b[1],b[0])}function Cu(r,s,l,d,m,p,b){var I=pT(s,l),y=s.v[l%s._length],k=s.v[l===0?s._length-1:l-1],M=s.v[(l+1)%s._length],Y=p===2?Math.sqrt(Math.pow(y[0]-k[0],2)+Math.pow(y[1]-k[1],2)):0,x=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;Iu(r,s.v[l%s._length],I,b,d,x/((m+1)*2),Y/((m+1)*2),p)}function mT(r,s,l,d,m,p){for(var b=0;b<d;b+=1){var I=(b+1)/(d+1),y=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,k=s.normalAngle(I),M=s.point(I);Iu(r,M,k,p,l,y/((d+1)*2),y/((d+1)*2),m),p=-p}return p}Fa.prototype.processPath=function(r,s,l,d){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var b=-1,I=de.shapeSegment(r,0);Cu(p,r,0,s,l,d,b);for(var y=0;y<m;y+=1)b=mT(p,I,s,l,d,-b),y===m-1&&!r.c?I=null:I=de.shapeSegment(r,(y+1)%m),Cu(p,r,y+1,s,l,d,b);return p},Fa.prototype.processShapes=function(r){var s,l,d=this.shapes.length,m,p,b=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(b!==0){var k,M;for(l=0;l<d;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,I,y));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Yc(r,s,l){var d=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Ls(r,d,l),Ls(s,d,l)]}function Os(r,s){var l,d,m,p,b,I,y;y=Yc(r.points[0],r.points[1],s),l=y[0],d=y[1],y=Yc(r.points[1],r.points[2],s),m=y[0],p=y[1],y=Yc(r.points[2],r.points[3],s),b=y[0],I=y[1];var k=vl(l,d,m,p);k===null&&(k=d);var M=vl(b,I,m,p);return M===null&&(M=b),new de(l,k,M,I)}function _u(r,s,l,d,m){var p=s.points[3],b=l.points[0];if(d===3||Ms(p,b))return p;if(d===2){var I=-s.tangentAngle(1),y=-l.tangentAngle(0)+Math.PI,k=vl(p,Ls(p,I+Math.PI/2,100),b,Ls(b,I+Math.PI/2,100)),M=k?Wc(k,p):Wc(p,b)/2,Y=Ls(p,I,2*M*ie);return r.setXYAt(Y[0],Y[1],"o",r.length()-1),Y=Ls(b,y,2*M*ie),r.setTripleAt(b[0],b[1],b[0],b[1],Y[0],Y[1],r.length()),b}var x=Ms(p,s.points[2])?s.points[0]:s.points[2],O=Ms(b,l.points[1])?l.points[3]:l.points[1],F=vl(x,p,b,O);return F&&Wc(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function wu(r,s){var l=r.intersections(s);return l.length&&ul(l[0][0],1)&&l.shift(),l.length?l[0]:null}function ku(r,s){var l=r.slice(),d=s.slice(),m=wu(r[r.length-1],s[0]);return m&&(l[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=wu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[l,d]}function uT(r){for(var s,l=1;l<r.length;l+=1)s=ku(r[l-1],r[l]),r[l-1]=s[0],r[l]=s[1];return r.length>1&&(s=ku(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function Nu(r,s){var l=r.inflectionPoints(),d,m,p,b;if(l.length===0)return[Os(r,s)];if(l.length===1||ul(l[1],1))return p=r.split(l[0]),d=p[0],m=p[1],[Os(d,s),Os(m,s)];p=r.split(l[0]),d=p[0];var I=(l[1]-l[0])/(1-l[0]);return p=p[1].split(I),b=p[0],m=p[1],[Os(d,s),Os(b,s),Os(m,s)]}function $a(){}A([Sr],$a),$a.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this.miterLimit=lt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},$a.prototype.processPath=function(r,s,l,d){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var b,I,y,k=[];for(b=0;b<p;b+=1)y=de.shapeSegment(r,b),k.push(Nu(y,s));if(!r.c)for(b=p-1;b>=0;b-=1)y=de.shapeSegmentInverted(r,b),k.push(Nu(y,s));k=uT(k);var M=null,Y=null;for(b=0;b<k.length;b+=1){var x=k[b];for(Y&&(M=_u(m,Y,x[0],l,d)),Y=x[x.length-1],I=0;I<x.length;I+=1)y=x[I],M&&Ms(y.points[0],M)?m.setXYAt(y.points[1][0],y.points[1][1],"o",m.length()-1):m.setTripleAt(y.points[0][0],y.points[0][1],y.points[1][0],y.points[1][1],y.points[0][0],y.points[0][1],m.length()),m.setTripleAt(y.points[3][0],y.points[3][1],y.points[3][0],y.points[3][1],y.points[2][0],y.points[2][1],m.length()),M=y.points[3]}return k.length&&_u(m,Y,k[0][0],l,d),m},$a.prototype.processShapes=function(r){var s,l,d=this.shapes.length,m,p,b=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(b!==0){var k,M;for(l=0;l<d;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,y,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Lu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],l="normal",d="normal",m=s.length,p,b=0;b<m;b+=1)switch(p=s[b].toLowerCase(),p){case"italic":d="italic";break;case"bold":l="700";break;case"black":l="900";break;case"medium":l="500";break;case"regular":case"normal":l="400";break;case"light":case"thin":l="200";break;default:break}return{style:d,weight:r.fWeight||l}}var $o=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},l=[];l=l.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,m=917631,p=917601,b=917626,I=65039,y=8205,k=127462,M=127487,Y=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var P=_.split(","),v,E=P.length,j=[];for(v=0;v<E;v+=1)P[v]!=="sans-serif"&&P[v]!=="monospace"&&j.push(P[v]);return j.join(",")}function O(_,P){var v=g("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=P;var E=g("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var j=E.offsetWidth;return E.style.fontFamily=x(_)+", "+P,{node:E,w:j,parent:v}}function F(){var _,P=this.fonts.length,v,E,j=P;for(_=0;_<P;_+=1)this.fonts[_].loaded?j-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(v=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,v.offsetWidth!==E?(j-=1,this.fonts[_].loaded=!0):(v=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,v.offsetWidth!==E&&(j-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));j!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function D(_,P){var v=document.body&&P?"svg":"canvas",E,j=Lu(_);if(v==="svg"){var z=Ct("text");z.style.fontSize="100px",z.setAttribute("font-family",_.fFamily),z.setAttribute("font-style",j.style),z.setAttribute("font-weight",j.weight),z.textContent="1",_.fClass?(z.style.fontFamily="inherit",z.setAttribute("class",_.fClass)):z.style.fontFamily=_.fFamily,P.appendChild(z),E=z}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=j.style+" "+j.weight+" 100px "+_.fFamily,E=ct}function gt(St){return v==="svg"?(E.textContent=St,E.getComputedTextLength()):E.measureText(St).width}return{measureText:gt}}function U(_,P){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(rr){rr.helper=D(rr),rr.cache={}}),this.fonts=_.list;return}var v=_.list,E,j=v.length,z=j;for(E=0;E<j;E+=1){var ct=!0,gt,St;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,z-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var $t=g("style");$t.setAttribute("f-forigin",v[E].fOrigin),$t.setAttribute("f-origin",v[E].origin),$t.setAttribute("f-family",v[E].fFamily),$t.type="text/css",$t.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",P.appendChild($t)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),St=0;St<gt.length;St+=1)gt[St].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var Vt=g("link");Vt.setAttribute("f-forigin",v[E].fOrigin),Vt.setAttribute("f-origin",v[E].origin),Vt.type="text/css",Vt.rel="stylesheet",Vt.href=v[E].fPath,document.body.appendChild(Vt)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),St=0;St<gt.length;St+=1)v[E].fPath===gt[St].src&&(ct=!1);if(ct){var fe=g("link");fe.setAttribute("f-forigin",v[E].fOrigin),fe.setAttribute("f-origin",v[E].origin),fe.setAttribute("rel","stylesheet"),fe.setAttribute("href",v[E].fPath),P.appendChild(fe)}}v[E].helper=D(v[E],P),v[E].cache={},this.fonts.push(v[E])}z===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var P,v=_.length,E,j=this.chars.length,z;for(P=0;P<v;P+=1){for(E=0,z=!1;E<j;)this.chars[E].style===_[P].style&&this.chars[E].fFamily===_[P].fFamily&&this.chars[E].ch===_[P].ch&&(z=!0),E+=1;z||(this.chars.push(_[P]),j+=1)}}}function w(_,P,v){for(var E=0,j=this.chars.length;E<j;){if(this.chars[E].ch===_&&this.chars[E].style===P&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,P,v)),s}function T(_,P,v){var E=this.getFontByName(P),j=_;if(!E.cache[j]){var z=E.helper;if(_===" "){var ct=z.measureText("|"+_+"|"),gt=z.measureText("||");E.cache[j]=(ct-gt)/100}else E.cache[j]=z.measureText(_)/100}return E.cache[j]*v}function C(_){for(var P=0,v=this.fonts.length;P<v;){if(this.fonts[P].fName===_)return this.fonts[P];P+=1}return this.fonts[0]}function N(_){var P=0,v=_.charCodeAt(0);if(v>=55296&&v<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(P=(v-55296)*1024+E-56320+65536)}return P}function $(_,P){var v=_.toString(16)+P.toString(16);return Y.indexOf(v)!==-1}function W(_){return _===y}function X(_){return _===I}function it(_){var P=N(_);return P>=k&&P<=M}function At(_){return it(_.substr(0,2))&&it(_.substr(2,2))}function ft(_){return l.indexOf(_)!==-1}function nt(_,P){var v=N(_.substr(P,2));if(v!==d)return!1;var E=0;for(P+=2;E<5;){if(v=N(_.substr(P,2)),v<p||v>b)return!1;E+=1,P+=2}return N(_.substr(P,2))===m}function _t(){this.isLoaded=!0}var mt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};mt.isModifier=$,mt.isZeroWidthJoiner=W,mt.isFlagEmoji=At,mt.isRegionalCode=it,mt.isCombinedCharacter=ft,mt.isRegionalFlag=nt,mt.isVariationSelector=X,mt.BLACK_FLAG_CODE_POINT=d;var rt={addChars:L,addFonts:U,getCharData:w,getFontByName:C,measureText:T,checkLoadedFonts:F,setIsLoaded:_t};return mt.prototype=rt,mt}();function Mu(r){this.animationData=r}Mu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function fT(r){return new Mu(r)}function gl(){}gl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,l=this.renderableComponents.length;for(s=0;s<l;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var jc=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return r[s]||""}}();function vT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function gT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function bT(r,s,l){this.p=lt.getProp(s,r.v,1,0,l)}function yT(r,s,l){this.p=lt.getProp(s,r.v,1,0,l)}function ET(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function TT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function xT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function AT(){this.p={}}function Ou(r,s){var l=r.ef||[];this.effectElements=[];var d,m=l.length,p;for(d=0;d<m;d+=1)p=new Va(l[d],s),this.effectElements.push(p)}function Va(r,s){this.init(r,s)}A([Ne],Va),Va.prototype.getValue=Va.prototype.iterateDynamicProperties,Va.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var l,d=this.data.ef.length,m,p=this.data.ef;for(l=0;l<d;l+=1){switch(m=null,p[l].ty){case 0:m=new vT(p[l],s,this);break;case 1:m=new gT(p[l],s,this);break;case 2:m=new bT(p[l],s,this);break;case 3:m=new yT(p[l],s,this);break;case 4:case 7:m=new xT(p[l],s,this);break;case 10:m=new ET(p[l],s,this);break;case 11:m=new TT(p[l],s,this);break;case 5:m=new Ou(p[l],s,this);break;default:m=new AT(p[l],s,this);break}m&&this.effectElements.push(m)}};function Qi(){}Qi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,l=this.data.masksProperties.length;s<l;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=su();if(s){var l=s("layer"),d=s("effects"),m=s("shape"),p=s("text"),b=s("comp");this.layerInterface=l(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=b(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=jc(this.data.bm),l=this.baseElement||this.layerElement;l.style["mix-blend-mode"]=s},initBaseData:function(s,l,d){this.globalData=l,this.comp=d,this.data=s,this.layerId=tr(),this.data.sr||(this.data.sr=1),this.effectsManager=new Ou(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Ji(){}Ji.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,l){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(l||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function to(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,l)}to.prototype.prepareFrame=function(){},A([gl,Qi,Ji],to),to.prototype.getBaseElement=function(){return null},to.prototype.renderFrame=function(){},to.prototype.destroy=function(){},to.prototype.initExpressions=function(){var r=su();if(r){var s=r("footage");this.layerInterface=s(this)}},to.prototype.getFootageData=function(){return this.footageData};function er(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,l),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=lt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}er.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var l=this._volume*this._volumeMultiplier;this._previousVolume!==l&&(this._previousVolume=l,this.audio.volume(l))},A([gl,Qi,Ji],er),er.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},er.prototype.show=function(){},er.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},er.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},er.prototype.resume=function(){this._canPlay=!0},er.prototype.setRate=function(r){this.audio.rate(r)},er.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},er.prototype.getBaseElement=function(){return null},er.prototype.destroy=function(){},er.prototype.sourceRectAtTime=function(){},er.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,l=this.layers.length,d;for(this.completeLayers=!0,s=l-1;s>=0;s-=1)this.elements[s]||(d=this.layers[s],d.ip-d.st<=r-this.layers[s].st&&d.op-d.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new er(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new to(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,l=r.length,d,m=this.layers.length;for(s=0;s<l;s+=1)for(d=0;d<m;){if(this.layers[d].id===r[s].id){this.layers[d]=r[s];break}d+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,l){for(var d=this.elements,m=this.layers,p=0,b=m.length;p<b;)m[p].ind==s&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(l.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,l):r.setHierarchy(l))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,l=r.length;for(s=0;s<l;s+=1)if(r[s].xt){var d=this.createComp(r[s]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Fe.prototype.getElementById=function(r){var s,l=this.elements.length;for(s=0;s<l;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),l;if(typeof s=="number")l=this.elements[s];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===s){l=this.elements[d];break}}return r.length===0?l:l.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new $o,this.globalData.slotManager=fT(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var ST={TRANSFORM_EFFECT:"transformEFfect"};function Rs(){}Rs.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?Uc.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,l=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,l.cloneFromProps(s),d=0;d<m;d+=1)l.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,l=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<l;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),s=1;s<l;s+=1){var m=this.localTransforms[s].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<l;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(ST.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var l=0,d=s.length;for(l=0;l<d;l+=1)this.localTransforms.push(s[l])}}},globalToLocal:function(s){var l=[];l.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&l.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,b=l.length,I;for(p=0;p<b;p+=1)I=l[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Vo(r,s,l){this.data=r,this.element=s,this.globalData=l,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=Z(p),this.solidPath="";var b,I=this.masksProperties,y=0,k=[],M,Y,x=tr(),O,F,D,U,L="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(L="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=Ct("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,b=Ct("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:hl.getShapeProp(this.element,I[m],3),elem:b,lastPath:""},d.appendChild(b);else{y+=1,b.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),b.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(L="mask",w="mask",U=lt.getProp(this.element,I[m].x,0,null,this.element),T=tr(),F=Ct("filter"),F.setAttribute("id",T),D=Ct("feMorphology"),D.setAttribute("operator","erode"),D.setAttribute("in","SourceGraphic"),D.setAttribute("radius","0"),F.appendChild(D),d.appendChild(F),b.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(D=null,U=null),this.storedData[m]={elem:b,x:U,expan:D,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){Y=k.length;var C=Ct("g");for(M=0;M<Y;M+=1)C.appendChild(k[M]);var N=Ct("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+y),N.appendChild(b),d.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+y+")"),k.length=0,k.push(C)}else k.push(b);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:b,lastPath:"",op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:hl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=Ct(L),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);y>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Vo.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Vo.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,l,d=this.masksProperties.length;for(l=0;l<d;l+=1)if((this.viewData[l].prop._mdf||r)&&this.drawPath(this.masksProperties[l],this.viewData[l].prop.v,this.viewData[l]),(this.viewData[l].op._mdf||r)&&this.viewData[l].elem.setAttribute("fill-opacity",this.viewData[l].op.v),this.masksProperties[l].mode!=="n"&&(this.viewData[l].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[l].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[l].x&&(this.storedData[l].x._mdf||r))){var m=this.storedData[l].expan;this.storedData[l].x.v<0?(this.storedData[l].lastOperator!=="erode"&&(this.storedData[l].lastOperator="erode",this.storedData[l].elem.setAttribute("filter","url("+f()+"#"+this.storedData[l].filterId+")")),m.setAttribute("radius",-this.storedData[l].x.v)):(this.storedData[l].lastOperator!=="dilate"&&(this.storedData[l].lastOperator="dilate",this.storedData[l].elem.setAttribute("filter",null)),this.storedData[l].elem.setAttribute("stroke-width",this.storedData[l].x.v*2))}},Vo.prototype.getMaskelement=function(){return this.maskElement},Vo.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Vo.prototype.drawPath=function(r,s,l){var d=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),l.lastPath!==d){var b="";l.elem&&(s.c&&(b=r.inv?this.solidPath+d:d),l.elem.setAttribute("d",b)),l.lastPath=d}},Vo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var za=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=l;function s(d,m){var p=Ct("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function l(){var d=Ct("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),Ru=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),bl={},Du="filter_result_";function qc(r){var s,l="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=tr(),p=za.createFilter(m,!0),b=0;this.filters=[];var I;for(s=0;s<d;s+=1){I=null;var y=r.data.ef[s].ty;if(bl[y]){var k=bl[y].effect;I=new k(p,r.effectsManager.effectElements[s],r,Du+b,l),l=Du+b,bl[y].countsAsEffect&&(b+=1)}I&&this.filters.push(I)}b&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}qc.prototype.renderFrame=function(r){var s,l=this.filters.length;for(s=0;s<l;s+=1)this.filters[s].renderFrame(r)},qc.prototype.getEffects=function(r){var s,l=this.filters.length,d=[];for(s=0;s<l;s+=1)this.filters[s].type===r&&d.push(this.filters[s]);return d};function WI(r,s,l){bl[r]={effect:s,countsAsEffect:l}}function Ba(){}Ba.prototype={initRendererElement:function(){this.layerElement=Ct("g")},createContainerElements:function(){this.matteElement=Ct("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var l=Ct("g");l.setAttribute("id",this.layerId),l.appendChild(this.layerElement),s=l,this.globalData.defs.appendChild(l)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=Ct("clipPath"),m=Ct("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=tr();if(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var b=Ct("g");b.setAttribute("clip-path","url("+f()+"#"+p+")"),b.appendChild(this.layerElement),this.transformedElement=b,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Vo(this.data,this,this.globalData),this.renderableEffectsManager=new qc(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var l=this.layerId+"_"+s,d,m,p,b;if(s===1||s===3){var I=Ct("mask");I.setAttribute("id",l),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Ru.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),d=tr(),m=za.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(za.createAlphaToLuminanceFilter()),b=Ct("g"),b.appendChild(p),I.appendChild(b),b.setAttribute("filter","url("+f()+"#"+d+")"))}else if(s===2){var y=Ct("mask");y.setAttribute("id",l),y.setAttribute("mask-type","alpha");var k=Ct("g");y.appendChild(k),d=tr(),m=za.createFilter(d);var M=Ct("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var Y=Ct("feFuncA");Y.setAttribute("type","table"),Y.setAttribute("tableValues","1.0 0.0"),M.appendChild(Y),this.globalData.defs.appendChild(m);var x=Ct("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+d+")"),k.appendChild(x),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),Ru.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(za.createAlphaToLuminanceFilter()),b=Ct("g"),k.appendChild(x),b.appendChild(this.layerElement),k.appendChild(b)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=l}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Ds(){}Ds.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Ha(){}(function(){var r={initElement:function(l,d,m){this.initFrame(),this.initBaseData(l,d,m),this.initTransform(l,d,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var l=this.baseElement||this.layerElement;l.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var l=this.baseElement||this.layerElement;l.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(l){this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([gl,H(r)],Ha)})();function Ua(r,s,l){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,l),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Qi,Rs,Ba,Ds,Ji,Ha],Ua),Ua.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=Ct("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Ua.prototype.sourceRectAtTime=function(){return this.sourceRect};function IT(r,s){this.elem=r,this.pos=s}function Pu(){}Pu.prototype={addShapeToModifiers:function(s){var l,d=this.shapeModifiers.length;for(l=0;l<d;l+=1)this.shapeModifiers[l].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var l=0,d=this.shapeModifiers.length;l<d;)if(this.shapeModifiers[l].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,l=this.shapes.length;for(s=0;s<l;s+=1)this.shapes[s].sh.reset();l=this.shapeModifiers.length;var d;for(s=l-1;s>=0&&(d=this.shapeModifiers[s].processShapes(this._isFirstFrame),!d);s-=1);}},searchProcessedElement:function(s){for(var l=this.processedElements,d=0,m=l.length;d<m;){if(l[d].elem===s)return l[d].pos;d+=1}return 0},addProcessedElement:function(s,l){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===s){d[m].pos=l;return}d.push(new IT(s,l))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var Fu={1:"butt",2:"round",3:"square"},$u={1:"miter",2:"round",3:"bevel"};function Vu(r,s,l){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=l,this.lvl=s,this._isAnimated=!!l.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}Vu.prototype.setAsAnimated=function(){this._isAnimated=!0};function zu(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=Ct("path"),this.msElem=null}zu.prototype.reset=function(){this.d="",this._mdf=!1};function yl(r,s,l,d){this.elem=r,this.frameId=-1,this.dataProps=Z(s.length),this.renderer=l,this.k=!1,this.dashStr="",this.dashArray=q("float32",s.length?s.length-1:0),this.dashoffset=q("float32",1),this.initDynamicPropertyContainer(d);var m,p=s.length||0,b;for(m=0;m<p;m+=1)b=lt.getProp(r,s[m].v,0,0,this),this.k=b.k||this.k,this.dataProps[m]={n:s[m].n,p:b};this.k||this.getValue(!0),this._isAnimated=this.k}yl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,l=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<l;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},A([Ne],yl);function Bu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.w=lt.getProp(r,s.w,0,null,this),this.d=new yl(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=l,this._isAnimated=!!this._isAnimated}A([Ne],Bu);function Hu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.c=lt.getProp(r,s.c,1,255,this),this.style=l}A([Ne],Hu);function Uu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=l}A([Ne],Uu);function Ga(r,s,l){this.data=s,this.c=q("uint8c",s.p*4);var d=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=q("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(l),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ga.prototype.comparePoints=function(r,s){for(var l=0,d=this.o.length/2,m;l<d;){if(m=Math.abs(r[l*4]-r[s*4+l*2]),m>.01)return!1;l+=1}return!0},Ga.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,s=this.data.k.k.length;r<s;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Ga.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,l=this.data.p*4,d,m;for(s=0;s<l;s+=1)d=s%4===0?100:255,m=Math.round(this.prop.v[s]*d),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(l=this.prop.v.length,s=this.data.p*4;s<l;s+=1)d=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Ne],Ga);function Ps(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,l)}Ps.prototype.initGradientData=function(r,s,l){this.o=lt.getProp(r,s.o,0,.01,this),this.s=lt.getProp(r,s.s,1,null,this),this.e=lt.getProp(r,s.e,1,null,this),this.h=lt.getProp(r,s.h||{k:0},0,.01,this),this.a=lt.getProp(r,s.a||{k:0},0,kt,this),this.g=new Ga(r,s.g,this),this.style=l,this.stops=[],this.setGradientData(l.pElem,s),this.setGradientOpacity(s,l),this._isAnimated=!!this._isAnimated},Ps.prototype.setGradientData=function(r,s){var l=tr(),d=Ct(s.t===1?"linearGradient":"radialGradient");d.setAttribute("id",l),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,b,I;for(I=s.g.p*4,b=0;b<I;b+=4)p=Ct("stop"),d.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+l+")"),this.gf=d,this.cst=m},Ps.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var l,d,m,p=Ct("mask"),b=Ct("path");p.appendChild(b);var I=tr(),y=tr();p.setAttribute("id",y);var k=Ct(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var M=this.stops;for(d=r.g.p*4;d<m;d+=2)l=Ct("stop"),l.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(l),M.push(l);b.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(b.setAttribute("stroke-linecap",Fu[r.lc||2]),b.setAttribute("stroke-linejoin",$u[r.lj||2]),r.lj===1&&b.setAttribute("stroke-miterlimit",r.ml)),this.of=k,this.ms=p,this.ost=M,this.maskId=y,s.msElem=b}},A([Ne],Ps);function Gu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new yl(r,s.d||{},"svg",this),this.initGradientData(r,s,l),this._isAnimated=!!this._isAnimated}A([Ps,Ne],Gu);function CT(){this.it=[],this.prevViewData=[],this.gr=Ct("g")}function _T(r,s,l){this.transform={mProps:r,op:s,container:l},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Ku=function(s,l,d,m){if(l===0)return"";var p=s.o,b=s.i,I=s.v,y,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<l;y+=1)k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[y][0],b[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return d&&l&&(k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[0][0],b[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},wT=function(){var r=new Pe,s=new Pe,l={createRenderFunction:d};function d(Y){switch(Y.ty){case"fl":return I;case"gf":return k;case"gs":return y;case"st":return M;case"sh":case"el":case"rc":case"sr":return b;case"tr":return m;case"no":return p;default:return null}}function m(Y,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function b(Y,x,O){var F,D,U,L,w,T,C=x.styles.length,N=x.lvl,$,W,X,it;for(T=0;T<C;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(W=s.reset(),X=N-x.styles[T].lvl,it=x.transformers.length-1;!L&&X>0;)L=x.transformers[it].mProps._mdf||L,X-=1,it-=1;if(L)for(X=N-x.styles[T].lvl,it=x.transformers.length-1;X>0;)W.multiply(x.transformers[it].mProps.v),X-=1,it-=1}else W=r;if($=x.sh.paths,D=$._length,L){for(U="",F=0;F<D;F+=1)w=$.shapes[F],w&&w._length&&(U+=Ku(w,w._length,w.c,W));x.caches[T]=U}else U=x.caches[T];x.styles[T].d+=Y.hd===!0?"":U,x.styles[T]._mdf=L||x.styles[T]._mdf}}function I(Y,x,O){var F=x.style;(x.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",x.o.v)}function y(Y,x,O){k(Y,x,O),M(Y,x,O)}function k(Y,x,O){var F=x.gf,D=x.g._hasOpacity,U=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=Y.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=Y.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";F.setAttribute(T,U[0]),F.setAttribute(C,U[1]),D&&!x.g._collapsable&&(x.of.setAttribute(T,U[0]),x.of.setAttribute(C,U[1]))}var N,$,W,X;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(W=N.length,$=0;$<W;$+=1)X=N[$],X.setAttribute("offset",it[$*4]+"%"),X.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(D&&(x.g._omdf||O)){var At=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,W=N.length,$=0;$<W;$+=1)X=N[$],x.g._collapsable||X.setAttribute("offset",At[$*2]+"%"),X.setAttribute("stop-opacity",At[$*2+1])}if(Y.t===1)(x.e._mdf||O)&&(F.setAttribute("x2",L[0]),F.setAttribute("y2",L[1]),D&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ft;if((x.s._mdf||x.e._mdf||O)&&(ft=Math.sqrt(Math.pow(U[0]-L[0],2)+Math.pow(U[1]-L[1],2)),F.setAttribute("r",ft),D&&!x.g._collapsable&&x.of.setAttribute("r",ft)),x.e._mdf||x.h._mdf||x.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(U[0]-L[0],2)+Math.pow(U[1]-L[1],2)));var nt=Math.atan2(L[1]-U[1],L[0]-U[0]),_t=x.h.v;_t>=1?_t=.99:_t<=-1&&(_t=-.99);var mt=ft*_t,rt=Math.cos(nt+x.a.v)*mt+U[0],_=Math.sin(nt+x.a.v)*mt+U[1];F.setAttribute("fx",rt),F.setAttribute("fy",_),D&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",_))}}}function M(Y,x,O){var F=x.style,D=x.d;D&&(D._mdf||O)&&D.dashStr&&(F.pElem.setAttribute("stroke-dasharray",D.dashStr),F.pElem.setAttribute("stroke-dashoffset",D.dashoffset[0])),x.c&&(x.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",x.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",x.w.v))}return l}();function ce(r,s,l){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,l),this.prevViewData=[]}A([Qi,Rs,Ba,Pu,Ds,Ji,Ha],ce),ce.prototype.initSecondaryElement=function(){},ce.prototype.identityMatrix=new Pe,ce.prototype.buildExpressionInterface=function(){},ce.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ce.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,l,d,m=this.stylesList.length,p,b=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,b.length=0,r=0;r<s;r+=1)l=this.shapes[r],l.styles.indexOf(p)!==-1&&(b.push(l),I=l._isAnimated||I);b.length>1&&I&&this.setShapesAsAnimated(b)}},ce.prototype.setShapesAsAnimated=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s].setAsAnimated()},ce.prototype.createStyleElement=function(r,s){var l,d=new zu(r,s),m=d.pElem;if(r.ty==="st")l=new Bu(this,r,d);else if(r.ty==="fl")l=new Hu(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ps:Gu;l=new p(this,r,d),this.globalData.defs.appendChild(l.gf),l.maskId&&(this.globalData.defs.appendChild(l.ms),this.globalData.defs.appendChild(l.of),m.setAttribute("mask","url("+f()+"#"+l.maskId+")"))}else r.ty==="no"&&(l=new Uu(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",Fu[r.lc||2]),m.setAttribute("stroke-linejoin",$u[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=jc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,l),l},ce.prototype.createGroupElement=function(r){var s=new CT;return r.ln&&s.gr.setAttribute("id",r.ln),r.cl&&s.gr.setAttribute("class",r.cl),r.bm&&(s.gr.style["mix-blend-mode"]=jc(r.bm)),s},ce.prototype.createTransformElement=function(r,s){var l=Uc.getTransformProperty(this,r,this),d=new _T(l,l.o,s);return this.addToAnimatedContents(r,d),d},ce.prototype.createShapeElement=function(r,s,l){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=hl.getShapeProp(this,r,d,this),p=new Vu(s,l,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},ce.prototype.addToAnimatedContents=function(r,s){for(var l=0,d=this.animatedContents.length;l<d;){if(this.animatedContents[l].element===s)return;l+=1}this.animatedContents.push({fn:wT.createRenderFunction(r),element:s,data:r})},ce.prototype.setElementStyles=function(r){var s=r.styles,l,d=this.stylesList.length;for(l=0;l<d;l+=1)this.stylesList[l].closed||s.push(this.stylesList[l])},ce.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},ce.prototype.searchShapes=function(r,s,l,d,m,p,b){var I=[].concat(p),y,k=r.length-1,M,Y,x=[],O=[],F,D,U;for(y=k;y>=0;y-=1){if(U=this.searchProcessedElement(r[y]),U?s[y]=l[U-1]:r[y]._render=b,r[y].ty==="fl"||r[y].ty==="st"||r[y].ty==="gf"||r[y].ty==="gs"||r[y].ty==="no")U?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==d&&d.appendChild(s[y].style.pElem),x.push(s[y].style);else if(r[y].ty==="gr"){if(!U)s[y]=this.createGroupElement(r[y]);else for(Y=s[y].it.length,M=0;M<Y;M+=1)s[y].prevViewData[M]=s[y].it[M];this.searchShapes(r[y].it,s[y].it,s[y].prevViewData,s[y].gr,m+1,I,b),r[y]._render&&s[y].gr.parentNode!==d&&d.appendChild(s[y].gr)}else r[y].ty==="tr"?(U||(s[y]=this.createTransformElement(r[y],d)),F=s[y].transform,I.push(F)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(U||(s[y]=this.createShapeElement(r[y],I,m)),this.setElementStyles(s[y])):r[y].ty==="tm"||r[y].ty==="rd"||r[y].ty==="ms"||r[y].ty==="pb"||r[y].ty==="zz"||r[y].ty==="op"?(U?(D=s[y],D.closed=!1):(D=Xi.getModifier(r[y].ty),D.init(this,r[y]),s[y]=D,this.shapeModifiers.push(D)),O.push(D)):r[y].ty==="rp"&&(U?(D=s[y],D.closed=!0):(D=Xi.getModifier(r[y].ty),s[y]=D,D.init(this,r,y,s),this.shapeModifiers.push(D),b=!1),O.push(D));this.addProcessedElement(r[y],y+1)}for(k=x.length,y=0;y<k;y+=1)x[y].closed=!0;for(k=O.length,y=0;y<k;y+=1)O[y].closed=!0},ce.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},ce.prototype.renderShape=function(){var r,s=this.animatedContents.length,l;for(r=0;r<s;r+=1)l=this.animatedContents[r],(this._isFirstFrame||l.element._isAnimated)&&l.data!==!0&&l.fn(l.data,l.element,this._isFirstFrame)},ce.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Xc(r,s,l,d,m,p){this.o=r,this.sw=s,this.sc=l,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!l,fc:!!d,m:!0,p:!0}}Xc.prototype.update=function(r,s,l,d,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var b=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,b=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,b=!0),this.sc!==l&&(this.sc=l,this._mdf.sc=!0,b=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,b=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,b=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,b=!0),b};function We(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}We.prototype.defaultBoxWidth=[0,0],We.prototype.copyData=function(r,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r[l]=s[l]);return r},We.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},We.prototype.searchProperty=function(){return this.searchKeyframes()},We.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},We.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},We.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,l=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)l!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},We.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,l=0,d=r.length;l<=d-1&&!(l===d-1||r[l+1].t>s);)l+=1;return this.keysIndex!==l&&(this.keysIndex=l),this.data.d.k[this.keysIndex].s},We.prototype.buildFinalText=function(r){for(var s=[],l=0,d=r.length,m,p,b=!1,I=!1,y="";l<d;)b=I,I=!1,m=r.charCodeAt(l),y=r.charAt(l),$o.isCombinedCharacter(m)?b=!0:m>=55296&&m<=56319?$o.isRegionalFlag(r,l)?y=r.substr(l,14):(p=r.charCodeAt(l+1),p>=56320&&p<=57343&&($o.isModifier(m,p)?(y=r.substr(l,2),b=!0):$o.isFlagEmoji(r.substr(l,4))?y=r.substr(l,4):y=r.substr(l,2))):m>56319?(p=r.charCodeAt(l+1),$o.isVariationSelector(m)&&(b=!0)):$o.isZeroWidthJoiner(m)&&(b=!0,I=!0),b?(s[s.length-1]+=y,b=!1):s.push(y),l+=y.length;return s},We.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,l=this.data,d=[],m,p,b,I=0,y,k=l.m.g,M=0,Y=0,x=0,O=[],F=0,D=0,U,L,w=s.getFontByName(r.f),T,C=0,N=Lu(w);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,W;if(r.sz)for(var X=!0,it=r.sz[0],At=r.sz[1],ft,nt;X;){nt=this.buildFinalText(r.t),ft=0,F=0,p=nt.length,$=r.tr/1e3*r.finalSize;var _t=-1;for(m=0;m<p;m+=1)W=nt[m].charCodeAt(0),b=!1,nt[m]===" "?_t=m:(W===13||W===3)&&(F=0,b=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(nt[m],w.fStyle,w.fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(nt[m],r.f,r.finalSize),F+C>it&&nt[m]!==" "?(_t===-1?p+=1:m=_t,ft+=r.finalLineHeight||r.finalSize*1.2,nt.splice(m,_t===m?1:0,"\r"),_t=-1,F=0):(F+=C,F+=$);ft+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&At<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=nt,p=r.finalText.length,X=!1)}F=-$,C=0;var mt=0,rt;for(m=0;m<p;m+=1)if(b=!1,rt=r.finalText[m],W=rt.charCodeAt(0),W===13||W===3?(mt=0,O.push(F),D=F>D?F:D,F=-2*$,y="",b=!0,x+=1):y=rt,s.chars?(T=s.getCharData(rt,w.fStyle,s.getFontByName(r.f).fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),rt===" "?mt+=C+$:(F+=C+$+mt,mt=0),d.push({l:C,an:C,add:M,n:b,anIndexes:[],val:y,line:x,animatorJustifyOffset:0}),k==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);Y<=m;)d[Y].an=M,d[Y].ind=I,d[Y].extra=C,Y+=1;I+=1,M=0}}else if(k==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);Y<=m;)d[Y].an=M,d[Y].ind=I,d[Y].extra=C,Y+=1;M=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,D=F>D?F:D,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=D,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=l.a,P,v;L=_.length;var E,j,z=[];for(U=0;U<L;U+=1){for(P=_[U],P.a.sc&&(r.strokeColorAnim=!0),P.a.sw&&(r.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(r.fillColorAnim=!0),j=0,E=P.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[U]=j,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(P.s.rn===1&&z.push(j),j+=1);l.a[U].s.totalChars=j;var ct=-1,gt;if(P.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[U]&&(ct=v.anIndexes[U],gt=z.splice(Math.floor(Math.random()*z.length),1)[0]),v.anIndexes[U]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},We.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var l=this.copyData({},this.data.d.k[s].s);l=this.copyData(l,r),this.data.d.k[s].s=l,this.recalculate(s),this.setCurrentData(l),this.elem.addDynamicProperty(this)},We.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},We.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},We.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var kT=function(){var r=Math.max,s=Math.min,l=Math.floor;function d(p,b){this._currentTextLength=-1,this.k=!1,this.data=b,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=lt.getProp(p,b.s||{k:0},0,0,this),"e"in b?this.e=lt.getProp(p,b.e,0,0,this):this.e={v:100},this.o=lt.getProp(p,b.o||{k:0},0,0,this),this.xe=lt.getProp(p,b.xe||{k:0},0,0,this),this.ne=lt.getProp(p,b.ne||{k:0},0,0,this),this.sm=lt.getProp(p,b.sm||{k:100},0,0,this),this.a=lt.getProp(p,b.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(b){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,y=0,k=1,M=1;this.ne.v>0?I=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var Y=Oa.getBezierEasing(I,y,k,M).get,x=0,O=this.finalS,F=this.finalE,D=this.data.sh;if(D===2)F===O?x=b>=F?1:0:x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===3)F===O?x=b>=F?0:1:x=1-r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===4)F===O?x=0:(x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=Y(x);else if(D===5){if(F===O)x=0;else{var U=F-O;b=s(r(0,b+.5-O),F-O);var L=-U/2+b,w=U/2;x=Math.sqrt(1-L*L/(w*w))}x=Y(x)}else D===6?(F===O?x=0:(b=s(r(0,b+.5-O),F-O),x=(1+Math.cos(Math.PI+Math.PI*2*b/(F-O)))/2),x=Y(x)):(b>=l(O)&&(b-O<0?x=r(0,s(s(F,1)-(O-b),1)):x=r(0,s(F-b,1))),x=Y(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;x<C?x=0:(x=(x-C)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(b){this.iterateDynamicProperties(),this._mdf=b||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,b&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,y=this.o.v/I,k=this.s.v/I+y,M=this.e.v/I+y;if(k>M){var Y=k;k=M,M=Y}this.finalS=k,this.finalE=M}},A([Ne],d);function m(p,b,I){return new d(p,b,I)}return{getTextSelectorProp:m}}();function NT(r,s,l){var d={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,kt,l):d,rx:p.rx?m(r,p.rx,0,kt,l):d,ry:p.ry?m(r,p.ry,0,kt,l):d,sk:p.sk?m(r,p.sk,0,kt,l):d,sa:p.sa?m(r,p.sa,0,kt,l):d,s:p.s?m(r,p.s,1,.01,l):d,a:p.a?m(r,p.a,1,0,l):d,o:p.o?m(r,p.o,0,.01,l):d,p:p.p?m(r,p.p,1,0,l):d,sw:p.sw?m(r,p.sw,0,0,l):d,sc:p.sc?m(r,p.sc,1,0,l):d,fc:p.fc?m(r,p.fc,1,0,l):d,fh:p.fh?m(r,p.fh,0,0,l):d,fs:p.fs?m(r,p.fs,0,.01,l):d,fb:p.fb?m(r,p.fb,0,.01,l):d,t:p.t?m(r,p.t,0,0,l):d},this.s=kT.getTextSelectorProp(r,s.s,l),this.s.t=s.s.t}function zo(r,s,l){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=l,this._animatorsData=Z(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(l)}zo.prototype.searchProperties=function(){var r,s=this._textData.a.length,l,d=lt.getProp;for(r=0;r<s;r+=1)l=this._textData.a[r],this._animatorsData[r]=new NT(this._elem,l,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},zo.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var l=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,b=this._renderType,I=this.renderedLetters.length,y,k,M,Y,x=r.l,O,F,D,U,L,w,T,C,N,$,W,X,it,At,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var nt=ft.v;this._pathData.r.v&&(nt=nt.reverse()),O={tLength:0,segments:[]},Y=nt._length-1;var _t;for(X=0,M=0;M<Y;M+=1)_t=Zr.buildBezierData(nt.v[M],nt.v[M+1],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[M+1][0]-nt.v[M+1][0],nt.i[M+1][1]-nt.v[M+1][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength;M=Y,ft.v.c&&(_t=Zr.buildBezierData(nt.v[M],nt.v[0],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[0][0]-nt.v[0][0],nt.i[0][1]-nt.v[0][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,U=0,L=!0,$=O.segments,F<0&&ft.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,C=N[w-1],D=N[w],W=D.partialLength}Y=x.length,y=0,k=0;var mt=r.finalSize*1.2*.714,rt=!0,_,P,v,E,j;E=d.length;var z,ct=-1,gt,St,$t,Vt=F,fe=T,rr=w,Jr=-1,ir,Le,fr,Wt,ut,Ai,ro,Si,ti="",Ii=this.defaultPropsArray,Ci;if(r.j===2||r.j===1){var or=0,io=0,oo=r.j===2?-.5:-1,Pr=0,so=!0;for(M=0;M<Y;M+=1)if(x[M].n){for(or&&(or+=io);Pr<M;)x[Pr].animatorJustifyOffset=or,Pr+=1;or=0,so=!0}else{for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(so&&r.j===2&&(io+=_.t.v*oo),P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?or+=_.t.v*z[0]*oo:or+=_.t.v*z*oo);so=!1}for(or&&(or+=io);Pr<M;)x[Pr].animatorJustifyOffset=or,Pr+=1}for(M=0;M<Y;M+=1){if(p.reset(),ir=1,x[M].n)y=0,k+=r.yOffset,k+=rt?1:0,F=Vt,rt=!1,this._hasMaskedPath&&(T=fe,w=rr,N=$[T].points,C=N[w-1],D=N[w],W=D.partialLength,U=0),ti="",Si="",Ai="",Ci="",Ii=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Jr!==x[M].line){switch(r.j){case 1:F+=X-r.lineWidths[x[M].line];break;case 2:F+=(X-r.lineWidths[x[M].line])/2;break;default:break}Jr=x[M].line}ct!==x[M].ind&&(x[ct]&&(F+=x[ct].extra),F+=x[M].an/2,ct=x[M].ind),F+=l[0]*x[M].an*.005;var Fr=0;for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?Fr+=_.p.v[0]*z[0]:Fr+=_.p.v[0]*z),_.a.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?Fr+=_.a.v[0]*z[0]:Fr+=_.a.v[0]*z);for(L=!0,this._pathData.a.v&&(F=x[0].an*.5+(X-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(Y-1),F+=this._pathData.f.v);L;)U+W>=F+Fr||!N?(it=(F+Fr-U)/D.partialLength,St=C.point[0]+(D.point[0]-C.point[0])*it,$t=C.point[1]+(D.point[1]-C.point[1])*it,p.translate(-l[0]*x[M].an*.005,-(l[1]*mt)*.01),L=!1):N&&(U+=D.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ft.v.c?(w=0,T=0,N=$[T].points):(U-=D.partialLength,N=null)),N&&(C=D,D=N[w],W=D.partialLength));gt=x[M].an/2-x[M].add,p.translate(-gt,0,0)}else gt=x[M].an/2-x[M].add,p.translate(-gt,0,0),p.translate(-l[0]*x[M].an*.005,-l[1]*mt*.01,0);for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?z.length?F+=_.t.v*z[0]:F+=_.t.v*z:z.length?y+=_.t.v*z[0]:y+=_.t.v*z));for(r.strokeWidthAnim&&(fr=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Wt=[r.fc[0],r.fc[1],r.fc[2]]),v=0;v<E;v+=1)_=d[v].a,_.a.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?p.translate(-_.a.v[0]*z[0],-_.a.v[1]*z[1],_.a.v[2]*z[2]):p.translate(-_.a.v[0]*z,-_.a.v[1]*z,_.a.v[2]*z));for(v=0;v<E;v+=1)_=d[v].a,_.s.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),z.length?p.scale(1+(_.s.v[0]-1)*z[0],1+(_.s.v[1]-1)*z[1],1):p.scale(1+(_.s.v[0]-1)*z,1+(_.s.v[1]-1)*z,1));for(v=0;v<E;v+=1){if(_=d[v].a,P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),_.sk.propType&&(z.length?p.skewFromAxis(-_.sk.v*z[0],_.sa.v*z[1]):p.skewFromAxis(-_.sk.v*z,_.sa.v*z)),_.r.propType&&(z.length?p.rotateZ(-_.r.v*z[2]):p.rotateZ(-_.r.v*z)),_.ry.propType&&(z.length?p.rotateY(_.ry.v*z[1]):p.rotateY(_.ry.v*z)),_.rx.propType&&(z.length?p.rotateX(_.rx.v*z[0]):p.rotateX(_.rx.v*z)),_.o.propType&&(z.length?ir+=(_.o.v*z[0]-ir)*z[0]:ir+=(_.o.v*z-ir)*z),r.strokeWidthAnim&&_.sw.propType&&(z.length?fr+=_.sw.v*z[0]:fr+=_.sw.v*z),r.strokeColorAnim&&_.sc.propType)for(ut=0;ut<3;ut+=1)z.length?Le[ut]+=(_.sc.v[ut]-Le[ut])*z[0]:Le[ut]+=(_.sc.v[ut]-Le[ut])*z;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(ut=0;ut<3;ut+=1)z.length?Wt[ut]+=(_.fc.v[ut]-Wt[ut])*z[0]:Wt[ut]+=(_.fc.v[ut]-Wt[ut])*z;_.fh.propType&&(z.length?Wt=ou(Wt,_.fh.v*z[0]):Wt=ou(Wt,_.fh.v*z)),_.fs.propType&&(z.length?Wt=ru(Wt,_.fs.v*z[0]):Wt=ru(Wt,_.fs.v*z)),_.fb.propType&&(z.length?Wt=iu(Wt,_.fb.v*z[0]):Wt=iu(Wt,_.fb.v*z))}}for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(P=d[v].s,z=P.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?z.length?p.translate(0,_.p.v[1]*z[0],-_.p.v[2]*z[1]):p.translate(0,_.p.v[1]*z,-_.p.v[2]*z):z.length?p.translate(_.p.v[0]*z[0],_.p.v[1]*z[1],-_.p.v[2]*z[2]):p.translate(_.p.v[0]*z,_.p.v[1]*z,-_.p.v[2]*z));if(r.strokeWidthAnim&&(Ai=fr<0?0:fr),r.strokeColorAnim&&(ro="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(Si="rgb("+Math.round(Wt[0]*255)+","+Math.round(Wt[1]*255)+","+Math.round(Wt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,l[1]*mt*.01+k,0),this._pathData.p.v){At=(D.point[1]-C.point[1])/(D.point[0]-C.point[0]);var Bo=Math.atan(At)*180/Math.PI;D.point[0]<C.point[0]&&(Bo+=180),p.rotate(-Bo*Math.PI/180)}p.translate(St,$t,0),F-=l[0]*x[M].an*.005,x[M+1]&&ct!==x[M+1].ind&&(F+=x[M].an/2,F+=r.tr*.001*r.finalSize)}else{switch(p.translate(y,k,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line]),0,0);break;case 2:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(l[0]*x[M].an*.005,l[1]*mt*.01,0),y+=x[M].l+r.tr*.001*r.finalSize}b==="html"?ti=p.toCSS():b==="svg"?ti=p.to2dCSS():Ii=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],Ci=ir}I<=M?(j=new Xc(Ci,Ai,ro,Si,ti,Ii),this.renderedLetters.push(j),I+=1,this.lettersChangedFlag=!0):(j=this.renderedLetters[M],this.lettersChangedFlag=j.update(Ci,Ai,ro,Si,ti,Ii)||this.lettersChangedFlag)}}},zo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},zo.prototype.mHelper=new Pe,zo.prototype.defaultPropsArray=[],A([Ne],zo);function Ir(){}Ir.prototype.initElement=function(r,s,l){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,l),this.textProperty=new We(this,r.t,this.dynamicProperties),this.textAnimator=new zo(r.t,this.renderType,this),this.initTransform(r,s,l),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Ir.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Ir.prototype.createPathShape=function(r,s){var l,d=s.length,m,p="";for(l=0;l<d;l+=1)s[l].ty==="sh"&&(m=s[l].ks.k,p+=Ku(m,m.i.length,!0,r));return p},Ir.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Ir.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Ir.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Ir.prototype.applyTextPropertiesToMatrix=function(r,s,l,d,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l])/2,0,0);break;default:break}s.translate(d,m,0)},Ir.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Ir.prototype.emptyProp=new Xc,Ir.prototype.destroy=function(){},Ir.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var LT={shapes:[]};function Ti(r,s,l){this.textSpans=[],this.renderType="svg",this.initElement(r,s,l)}A([Qi,Rs,Ba,Ds,Ji,Ha,Ir],Ti),Ti.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Ct("text"))},Ti.prototype.buildTextContents=function(r){for(var s=0,l=r.length,d=[],m="";s<l;)r[s]==="\r"||r[s]===""?(d.push(m),m=""):m+=r[s],s+=1;return d.push(m),d},Ti.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var l=r.shapes[0];if(l.it){var d=l.it[l.it.length-1];d.s&&(d.s.k[0]=s,d.s.k[1]=s)}}return r},Ti.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,l=this.textProperty.currentData;this.renderedLetters=Z(l?l.l.length:0),l.fc?this.layerElement.setAttribute("fill",this.buildColor(l.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),l.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(l.sc)),this.layerElement.setAttribute("stroke-width",l.sw)),this.layerElement.setAttribute("font-size",l.finalSize);var d=this.globalData.fontManager.getFontByName(l.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=l.fWeight,p=l.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",l.t);var b=l.l||[],I=!!this.globalData.fontManager.chars;s=b.length;var y,k=this.mHelper,M="",Y=this.data.singleShape,x=0,O=0,F=!0,D=l.tr*.001*l.finalSize;if(Y&&!I&&!l.sz){var U=this.textContainer,L="start";switch(l.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}U.setAttribute("text-anchor",L),U.setAttribute("letter-spacing",D);var w=this.buildTextContents(l.finalText);for(s=w.length,O=l.ps?l.ps[1]+l.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||Ct("tspan"),y.textContent=w[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",U.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=l.finalLineHeight;this.layerElement.appendChild(U)}else{var T=this.textSpans.length,C;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!Y||r===0){if(y=T>r?this.textSpans[r].span:Ct(I?"g":"text"),T<=r){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=y,I){var N=Ct("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(k.reset(),Y&&(b[r].n&&(x=-D,O+=l.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(l,k,b[r].line,x,O),x+=b[r].l||0,x+=D),I){C=this.globalData.fontManager.getCharData(l.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(l.f).fFamily);var $;if(C.t===1)$=new Ka(C.data,this.globalData,this);else{var W=LT;C.data&&C.data.shapes&&(W=this.buildShapeData(C.data,l.finalSize)),$=new ce(W,this.globalData,this)}if(this.textSpans[r].glyph){var X=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(X.layerElement),X.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+l.finalSize/100+","+l.finalSize/100+")")}else Y&&y.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),y.textContent=b[r].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Y&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},Ti.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},Ti.prototype.getValue=function(){var r,s=this.textSpans.length,l;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)l=this.textSpans[r].glyph,l&&(l.prepareFrame(this.comp.renderedFrame-this.data.st),l._mdf&&(this._mdf=!0))},Ti.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,l=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;s=d.length;var m,p,b;for(r=0;r<s;r+=1)d[r].n||(m=l[r],p=this.textSpans[r].span,b=this.textSpans[r].glyph,b&&b.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function Zc(r,s,l){this.initElement(r,s,l)}A([Ua],Zc),Zc.prototype.createContent=function(){var r=Ct("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function eo(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initFrame(),this.initTransform(r,s,l),this.initHierarchy()}eo.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},eo.prototype.renderFrame=function(){},eo.prototype.getBaseElement=function(){return null},eo.prototype.destroy=function(){},eo.prototype.sourceRectAtTime=function(){},eo.prototype.hide=function(){},A([Qi,Rs,Ds,Ji],eo);function Ae(){}A([Fe],Ae),Ae.prototype.createNull=function(r){return new eo(r,this.globalData,this)},Ae.prototype.createShape=function(r){return new ce(r,this.globalData,this)},Ae.prototype.createText=function(r){return new Ti(r,this.globalData,this)},Ae.prototype.createImage=function(r){return new Ua(r,this.globalData,this)},Ae.prototype.createSolid=function(r){return new Zc(r,this.globalData,this)},Ae.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var l=Ct("clipPath"),d=Ct("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=tr();l.setAttribute("id",m),l.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(l),this.layers=r.layers,this.elements=Z(r.layers.length)},Ae.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ae.prototype.updateContainerSize=function(){},Ae.prototype.findIndexByInd=function(r){var s=0,l=this.layers.length;for(s=0;s<l;s+=1)if(this.layers[s].ind===r)return s;return-1},Ae.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var l=this.createItem(this.layers[r]);if(s[r]=l,ol()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(l),l.initExpressions()),this.appendElementInPos(l,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(l);else{var m=s[d],p=m.getMatte(this.layers[r].tt);l.setMatte(p)}}}},Ae.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,l=this.elements.length;s<l;){if(this.elements[s]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[d],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ae.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,l=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=l-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<l;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ae.prototype.appendElementInPos=function(r,s){var l=r.getBaseElement();if(l){for(var d=0,m;d<s;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(l,m):this.layerElement.appendChild(l)}},Ae.prototype.hide=function(){this.layerElement.style.display="none"},Ae.prototype.show=function(){this.layerElement.style.display="block"};function xi(){}A([Qi,Rs,Ds,Ji,Ha],xi),xi.prototype.initElement=function(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initTransform(r,s,l),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},xi.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var l,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),l=d-1;l>=0;l-=1)(this.completeLayers||this.elements[l])&&(this.elements[l].prepareFrame(this.renderedFrame-this.layers[l].st),this.elements[l]._mdf&&(this._mdf=!0))}},xi.prototype.renderInnerContent=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},xi.prototype.setElements=function(r){this.elements=r},xi.prototype.getElements=function(){return this.elements},xi.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},xi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Ka(r,s,l){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Z(this.layers.length):[],this.initElement(r,s,l),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Ae,xi,Ba],Ka),Ka.prototype.createComp=function(r){return new Ka(r,this.globalData,this)};function Qc(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=Ct("svg");var l="";if(s&&s.title){var d=Ct("title"),m=tr();d.setAttribute("id",m),d.textContent=s.title,this.svgElement.appendChild(d),l+=m}if(s&&s.description){var p=Ct("desc"),b=tr();p.setAttribute("id",b),p.textContent=s.description,this.svgElement.appendChild(p),l+=" "+b}l&&this.svgElement.setAttribute("aria-labelledby",l);var I=Ct("defs");this.svgElement.appendChild(I);var y=Ct("g");this.svgElement.appendChild(y),this.layerElement=y,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Ae],Qc),Qc.prototype.createComp=function(r){return new Ka(r,this.globalData,this)},BE("svg",Qc),Xi.registerModifier("tm",Dr),Xi.registerModifier("pb",Ra),Xi.registerModifier("rp",Qr),Xi.registerModifier("rd",Da),Xi.registerModifier("zz",Fa),Xi.registerModifier("op",$a),Kt})});var Al=globalThis,Sl=Al.ShadowRoot&&(Al.ShadyCSS===void 0||Al.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,th=Symbol(),Yu=new WeakMap,Wa=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==th)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Sl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=Yu.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&Yu.set(t,o))}return o}toString(){return this.cssText}},ju=a=>new Wa(typeof a=="string"?a:a+"",void 0,th),B=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((e,i,n)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+a[n+1],a[0]);return new Wa(t,a,th)},eh=(a,o)=>{if(Sl)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=Al.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,a.appendChild(e)}},Il=Sl?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return ju(t)})(a):a;var{is:VT,defineProperty:zT,getOwnPropertyDescriptor:BT,getOwnPropertyNames:HT,getOwnPropertySymbols:UT,getPrototypeOf:GT}=Object,ao=globalThis,qu=ao.trustedTypes,KT=qu?qu.emptyScript:"",rh=ao.reactiveElementPolyfillSupport,Ya=(a,o)=>a,ja={toAttribute(a,o){switch(o){case Boolean:a=a?KT:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},Cl=(a,o)=>!VT(a,o),Xu={attribute:!0,type:String,converter:ja,reflect:!1,hasChanged:Cl},Zu,Qu;(Zu=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Qu=ao.litPropertyMetadata)!=null||(ao.litPropertyMetadata=new WeakMap);var _i=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=Xu){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),i=this.getPropertyDescriptor(o,e,t);i!==void 0&&zT(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var c;let{get:i,set:n}=(c=BT(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let g=i==null?void 0:i.call(this);n.call(this,f),this.requestUpdate(o,g,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Xu}static _$Ei(){if(this.hasOwnProperty(Ya("elementProperties")))return;let o=GT(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Ya("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ya("properties"))){let t=this.properties,e=[...HT(t),...UT(t)];for(let i of e)this.createProperty(i,t[i])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let i=this._$Eu(t,e);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let i of e)t.unshift(Il(i))}else o!==void 0&&t.push(Il(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((e=o.hostConnected)==null||e.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return eh(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$EC(o,t){var n;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let c=(((n=e.converter)==null?void 0:n.toAttribute)!==void 0?e.converter:ja).toAttribute(t,e.type);this._$Em=o,c==null?this.removeAttribute(i):this.setAttribute(i,c),this._$Em=null}}_$AK(o,t){var n;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let c=e.getPropertyOptions(i),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((n=c.converter)==null?void 0:n.fromAttribute)!==void 0?c.converter:ja;this._$Em=i,this[i]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(o,t,e){var i;if(o!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(o)),!((i=e.hasChanged)!=null?i:Cl)(this[o],t))return;this.P(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,e){var i;this._$AL.has(o)||this._$AL.set(o,t),e.reflect===!0&&this._$Em!==o&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[c,f]of n)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(n=>{var c;return(c=n.hostUpdate)==null?void 0:c.call(n)}),this.update(t)):this._$EU()}catch(n){throw o=!1,this._$EU(),n}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},Ju;_i.elementStyles=[],_i.shadowRootOptions={mode:"open"},_i[Ya("elementProperties")]=new Map,_i[Ya("finalized")]=new Map,rh==null||rh({ReactiveElement:_i}),((Ju=ao.reactiveElementVersions)!=null?Ju:ao.reactiveElementVersions=[]).push("2.0.4");var Xa=globalThis,_l=Xa.trustedTypes,tf=_l?_l.createPolicy("lit-html",{createHTML:a=>a}):void 0,sh="$lit$",wi=`lit$${Math.random().toFixed(9).slice(2)}$`,ah="?"+wi,WT=`<${ah}>`,Go=document,Za=()=>Go.createComment(""),Qa=a=>a===null||typeof a!="object"&&typeof a!="function",nh=Array.isArray,lf=a=>nh(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",ih=`[
3
+ \f\r]`,qa=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ef=/-->/g,rf=/>/g,Ho=RegExp(`>|${ih}(?:([^\\s"'>=/]+)(${ih}*=${ih}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),of=/'/g,sf=/"/g,df=/^(?:script|style|textarea|title)$/i,lh=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),S=lh(1),QI=lh(2),JI=lh(3),$e=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),af=new WeakMap,Uo=Go.createTreeWalker(Go,129);function cf(a,o){if(!nh(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return tf!==void 0?tf.createHTML(o):o}var hf=(a,o)=>{let t=a.length-1,e=[],i,n=o===2?"<svg>":o===3?"<math>":"",c=qa;for(let f=0;f<t;f++){let g=a[f],A,R,H=-1,J=0;for(;J<g.length&&(c.lastIndex=J,R=c.exec(g),R!==null);)J=c.lastIndex,c===qa?R[1]==="!--"?c=ef:R[1]!==void 0?c=rf:R[2]!==void 0?(df.test(R[2])&&(i=RegExp("</"+R[2],"g")),c=Ho):R[3]!==void 0&&(c=Ho):c===Ho?R[0]===">"?(c=i!=null?i:qa,H=-1):R[1]===void 0?H=-2:(H=c.lastIndex-R[2].length,A=R[1],c=R[3]===void 0?Ho:R[3]==='"'?sf:of):c===sf||c===of?c=Ho:c===ef||c===rf?c=qa:(c=Ho,i=void 0);let q=c===Ho&&a[f+1].startsWith("/>")?" ":"";n+=c===qa?g+WT:H>=0?(e.push(A),g.slice(0,H)+sh+g.slice(H)+wi+q):g+wi+(H===-2?f:q)}return[cf(a,n+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Ja=class a{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let n=0,c=0,f=o.length-1,g=this.parts,[A,R]=hf(o,t);if(this.el=a.createElement(A,e),Uo.currentNode=this.el.content,t===2||t===3){let H=this.el.content.firstChild;H.replaceWith(...H.childNodes)}for(;(i=Uo.nextNode())!==null&&g.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let H of i.getAttributeNames())if(H.endsWith(sh)){let J=R[c++],q=i.getAttribute(H).split(wi),Z=/([.?@])?(.*)/.exec(J);g.push({type:1,index:n,name:Z[2],strings:q,ctor:Z[1]==="."?kl:Z[1]==="?"?Nl:Z[1]==="@"?Ll:Wo}),i.removeAttribute(H)}else H.startsWith(wi)&&(g.push({type:6,index:n}),i.removeAttribute(H));if(df.test(i.tagName)){let H=i.textContent.split(wi),J=H.length-1;if(J>0){i.textContent=_l?_l.emptyScript:"";for(let q=0;q<J;q++)i.append(H[q],Za()),Uo.nextNode(),g.push({type:2,index:++n});i.append(H[J],Za())}}}else if(i.nodeType===8)if(i.data===ah)g.push({type:2,index:n});else{let H=-1;for(;(H=i.data.indexOf(wi,H+1))!==-1;)g.push({type:7,index:n}),H+=wi.length-1}n++}}static createElement(o,t){let e=Go.createElement("template");return e.innerHTML=o,e}};function Ko(a,o,t=a,e){var c,f,g;if(o===$e)return o;let i=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,n=Qa(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),n===void 0?i=void 0:(i=new n(a),i._$AT(a,t,e)),e!==void 0?((g=t.o)!=null?g:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Ko(a,i._$AS(a,o.values),i,e)),o}var wl=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var A;let{el:{content:t},parts:e}=this._$AD,i=((A=o==null?void 0:o.creationScope)!=null?A:Go).importNode(t,!0);Uo.currentNode=i;let n=Uo.nextNode(),c=0,f=0,g=e[0];for(;g!==void 0;){if(c===g.index){let R;g.type===2?R=new Fs(n,n.nextSibling,this,o):g.type===1?R=new g.ctor(n,g.name,g.strings,this,o):g.type===6&&(R=new Ml(n,this,o)),this._$AV.push(R),g=e[++f]}c!==(g==null?void 0:g.index)&&(n=Uo.nextNode(),c++)}return Uo.currentNode=Go,i}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Fs=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,e,i){var n;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(n=i==null?void 0:i.isConnected)!=null?n:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Ko(this,o,t),Qa(o)?o===K||o==null||o===""?(this._$AH!==K&&this._$AR(),this._$AH=K):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):lf(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==K&&Qa(this._$AH)?this._$AA.nextSibling.data=o:this.T(Go.createTextNode(o)),this._$AH=o}$(o){var n;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Ja.createElement(cf(e.h,e.h[0]),this.options)),e);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(t);else{let c=new wl(i,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=af.get(o.strings);return t===void 0&&af.set(o.strings,t=new Ja(o)),t}k(o){nh(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let n of o)i===t.length?t.push(e=new a(this.O(Za()),this.O(Za()),this,this.options)):e=t[i],e._$AI(n),i++;i<t.length&&(this._$AR(e&&e._$AB.nextSibling,i),t.length=i)}_$AR(o=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Wo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,n){this.type=1,this._$AH=K,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=n,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=K}_$AI(o,t=this,e,i){let n=this.strings,c=!1;if(n===void 0)o=Ko(this,o,t,0),c=!Qa(o)||o!==this._$AH&&o!==$e,c&&(this._$AH=o);else{let f=o,g,A;for(o=n[0],g=0;g<n.length-1;g++)A=Ko(this,f[e+g],t,g),A===$e&&(A=this._$AH[g]),c||(c=!Qa(A)||A!==this._$AH[g]),A===K?o=K:o!==K&&(o+=(A!=null?A:"")+n[g+1]),this._$AH[g]=A}c&&!i&&this.j(o)}j(o){o===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},kl=class extends Wo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===K?void 0:o}},Nl=class extends Wo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==K)}},Ll=class extends Wo{constructor(o,t,e,i,n){super(o,t,e,i,n),this.type=5}_$AI(o,t=this){var c;if((o=(c=Ko(this,o,t,0))!=null?c:K)===$e)return;let e=this._$AH,i=o===K&&e!==K||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,n=o!==K&&(e===K||i);i&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,o):this._$AH.handleEvent(o)}},Ml=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Ko(this,o)}},pf={M:sh,P:wi,A:ah,C:1,L:hf,R:wl,D:lf,V:Ko,I:Fs,H:Wo,N:Nl,U:Ll,B:kl,F:Ml},oh=Xa.litHtmlPolyfillSupport,nf;oh==null||oh(Ja,Fs),((nf=Xa.litHtmlVersions)!=null?nf:Xa.litHtmlVersions=[]).push("3.2.0");var mf=(a,o,t)=>{var n,c;let e=(n=t==null?void 0:t.renderBefore)!=null?n:o,i=e._$litPart$;if(i===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=i=new Fs(o.insertBefore(Za(),f),f,void 0,t!=null?t:{})}return i._$AI(a),i};var no=class extends _i{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=mf(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return $e}},uf;no._$litElement$=!0,no.finalized=!0,(uf=globalThis.litElementHydrateSupport)==null||uf.call(globalThis,{LitElement:no});var dh=globalThis.litElementPolyfillSupport;dh==null||dh({LitElement:no});var ff;((ff=globalThis.litElementVersions)!=null?ff:globalThis.litElementVersions=[]).push("4.1.0");var YT={attribute:!0,type:String,converter:ja,reflect:!1,hasChanged:Cl},jT=(a=YT,o,t)=>{let{kind:e,metadata:i}=t,n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(t.name,a),e==="accessor"){let{name:c}=t;return{set(f){let g=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,g,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(e==="setter"){let{name:c}=t;return function(f){let g=this[c];o.call(this,f),this.requestUpdate(c,g,a)}}throw Error("Unsupported decorator location: "+e)};function u(a){return(o,t)=>typeof t=="object"?jT(a,o,t):((e,i,n)=>{let c=i.hasOwnProperty(n);return i.constructor.createProperty(n,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(i,n):void 0})(a,o,t)}function dt(a){return u({...a,state:!0,attribute:!1})}function vf(a){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,a)}}var ei=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function zt(a,o){return(t,e,i)=>{let n=c=>{var f,g;return(g=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?g:null};if(o){let{get:c,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let g=Symbol();return{get(){return this[g]},set(A){this[g]=A}}})();return ei(t,e,{get(){let g=c.call(this);return g===void 0&&(g=n(this),(g!==null||this.hasUpdated)&&f.call(this,g)),g}})}return ei(t,e,{get(){return n(this)}})}}var ch;function gf(a){return(o,t)=>ei(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:ch!=null?ch:ch=document.createDocumentFragment()).querySelectorAll(a)}})}function qt(a){return(o,t)=>{let{slot:e,selector:i}=a!=null?a:{},n="slot"+(e?`[name=${e}]`:":not([name])");return ei(o,t,{get(){var g,A;let c=(g=this.renderRoot)==null?void 0:g.querySelector(n),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return i===void 0?f:f.filter(R=>R.matches(i))}})}}function bf(a){return(o,t)=>{let{slot:e}=a!=null?a:{},i="slot"+(e?`[name=${e}]`:":not([name])");return ei(o,t,{get(){var c,f;let n=(c=this.renderRoot)==null?void 0:c.querySelector(i);return(f=n==null?void 0:n.assignedNodes(a))!=null?f:[]}})}}var qT={PREFIX:"mdc",SEPARATOR:"-"},XT={NAMESPACE:qT},hh=XT;var ZT=a=>[hh.NAMESPACE.PREFIX,a].join(hh.NAMESPACE.SEPARATOR),V={constructTagName:ZT};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var yf=V.constructTagName("buttonsimple"),Yo={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},$s={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},tn={SIZE:Yo[32],TYPE:$s.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var ki=V.constructTagName("button"),Bt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},en={40:40,32:32,28:28,24:24},Cr={64:64,52:52,20:20,...en},ri={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Vs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ef={DEFAULT:ri.DEFAULT,ACCENT:ri.ACCENT,NEGATIVE:ri.NEGATIVE},sr={VARIANT:Bt.PRIMARY,SIZE:en[32],COLOR:ri.DEFAULT,TYPE_INTERNAL:Vs.ICON,TYPE:$s.BUTTON,INVERTED:!1};var Ol=a=>{class o extends a{constructor(){super(...arguments);this.variant=sr.VARIANT;this.color=sr.COLOR;this.typeInternal=sr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Bt).includes(i)?i:sr.VARIANT)}setColor(i){let n=Object.values(ri).includes(i),c=this.variant===Bt.TERTIARY&&!Object.values(Ef).includes(i);!n||c?this.setAttribute("color",`${sr.COLOR}`):this.setAttribute("color",i)}setSize(i){let c=this.typeInternal===Vs.ICON?Object.values(Cr).includes(i)&&!(i===Cr[20]&&this.variant!==Bt.TERTIARY):Object.values(en).includes(i);this.setAttribute("size",c?`${i}`:`${sr.SIZE}`)}inferButtonType(){var A,R,H,J,q,Z;let i=(R=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:R.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,n=(J=(H=this.shadowRoot)==null?void 0:H.querySelector('slot[name="prefix"]'))==null?void 0:J.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,c=this.prefixIcon||n&&n>0,f=(Z=(q=this.shadowRoot)==null?void 0:q.querySelector('slot[name="postfix"]'))==null?void 0:Z.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,g=this.postfixIcon||f&&f>0;i&&(c||g)?(this.typeInternal=Vs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(c||g)?(this.typeInternal=Vs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Vs.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),h([u({type:String})],o.prototype,"variant",2),h([u({type:String})],o.prototype,"color",2),h([dt()],o.prototype,"typeInternal",2),o};var Tf=B`
5
5
  :host {
6
6
  box-sizing: border-box;
7
7
  }
@@ -11,11 +11,11 @@
11
11
  :host *::after {
12
12
  box-sizing: inherit;
13
13
  }
14
- `;var Rl=class extends no{static register(o){customElements.get(o)||customElements.define(o,this)}};Rl.styles=[Ef];var Tf=Rl;var Q=Tf;var lo=class extends Event{constructor(o,t,e){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=e!=null?e:!1}};var zs=class{constructor(o,t,e,i){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(c,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(c,f)),this.unsubscribe=f},this.host=o,t.context!==void 0){let c=t;this.context=c.context,this.callback=c.callback,this.subscribe=(n=c.subscribe)!=null?n:!1}else this.context=t,this.callback=e,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new lo(this.context,this.t,this.subscribe))}};var Dl=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:i}=this.subscriptions.get(o);o(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var ph=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},Bs=class extends Dl{constructor(o,t,e){var i,n;super(t.context!==void 0?t.initialValue:e),this.onContextRequest=c=>{let f=c.composedPath()[0];c.context===this.context&&f!==this.host&&(c.stopPropagation(),this.addCallback(c.callback,f,c.subscribe))},this.onProviderRequest=c=>{let f=c.composedPath()[0];if(c.context!==this.context||f===this.host)return;let g=new Set;for(let[A,{consumerHost:R}]of this.subscriptions)g.has(A)||(g.add(A),R.dispatchEvent(new lo(this.context,A,!0)));c.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(n=(i=this.host).addController)==null||n.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new ph(this.context))}};var QT=B`
14
+ `;var Rl=class extends no{static register(o){customElements.get(o)||customElements.define(o,this)}};Rl.styles=[Tf];var xf=Rl;var Q=xf;var lo=class extends Event{constructor(o,t,e){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=e!=null?e:!1}};var zs=class{constructor(o,t,e,i){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(c,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(c,f)),this.unsubscribe=f},this.host=o,t.context!==void 0){let c=t;this.context=c.context,this.callback=c.callback,this.subscribe=(n=c.subscribe)!=null?n:!1}else this.context=t,this.callback=e,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new lo(this.context,this.t,this.subscribe))}};var Dl=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:i}=this.subscriptions.get(o);o(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var ph=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},Bs=class extends Dl{constructor(o,t,e){var i,n;super(t.context!==void 0?t.initialValue:e),this.onContextRequest=c=>{let f=c.composedPath()[0];c.context===this.context&&f!==this.host&&(c.stopPropagation(),this.addCallback(c.callback,f,c.subscribe))},this.onProviderRequest=c=>{let f=c.composedPath()[0];if(c.context!==this.context||f===this.host)return;let g=new Set;for(let[A,{consumerHost:R}]of this.subscriptions)g.has(A)||(g.add(A),R.dispatchEvent(new lo(this.context,A,!0)));c.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(n=(i=this.host).addController)==null||n.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new ph(this.context))}};var QT=B`
15
15
  :host {
16
16
  display: contents;
17
17
  }
18
- `,xf=QT;var Pl=class extends Q{constructor({context:o,initialValue:t}){super(),this.context=new Bs(this,{context:o,initialValue:t})}updateContext(){throw new Error("Not implemented")}render(){return this.updateContext(),S`<slot></slot>`}};Pl.styles=[...Q.styles,xf];var Af=Pl;var Se=Af;var Ve=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(i){super.firstUpdated(i),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Jt=a=>{class o extends a{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ii=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Lt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var JT=a=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:n}=a,c=(i||n)&&(f=>{n&&n.forEach(g=>{o.requestUpdate(g)}),i==null||i(f)});return new zs(o,{context:t,callback:c,subscribe:e!=null?e:!0})},tx={consume:JT},Ie=tx;var If=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Cf=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),ex=a=>a.getClientRects().length===0,rx=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=a;return e+i+t+o===0},mh=a=>{if(!(a instanceof Element))return null;let o=getComputedStyle(a),{overflowX:t,overflowY:e}=o,i=t==="auto"||t==="scroll",n=e==="auto"||e==="scroll";return i&&n?"both":i?"horizontal":n?"vertical":null},ix=a=>rx(a)||ex(a),ox=a=>{let{display:o,opacity:t,visibility:e}=a.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},sx=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},ax=a=>getComputedStyle(a).display==="contents",nx=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||ox(a)||!ax(a)&&(sx(a)||ix(a)),lx=a=>a.disabled,dx=a=>a.getAttribute("tabindex")!=="-1",cx=a=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1),Sf=(a,o)=>o.some(t=>a.matches(t));var jo=(a,o={})=>{var R,H,J,q;if(!a)return[];let t=new Set((R=o==null?void 0:o.excludedElements)!=null?R:[]),e=(H=o==null?void 0:o.includeSelectors)!=null?H:[],i=(J=o==null?void 0:o.excludeSelectors)!=null?J:[],n=(q=o==null?void 0:o.stopAtNonTabbable)!=null?q:!1,c=new Set([]),f=Z=>{if(t.has(a)||Sf(Z,i)||nx(Z)||lx(Z))return"stop";if(n&&!(Z instanceof HTMLSlotElement)&&Z.getAttribute("tabindex")==="-1"){let ot=Z.getRootNode();if(!(ot instanceof ShadowRoot&&ot.delegatesFocus))return"stop"}return Sf(Z,e)||dx(Z)&&cx(Z)?"focusable":"continue"},g=o.customFocusableCheck?Z=>o.customFocusableCheck(Z,f(Z)):f,A=Z=>{if(Z instanceof HTMLElement){let st=g(Z);if(st==="focusable"&&c.add(Z),st==="stop")return}let ot=[];Z instanceof HTMLSlotElement?ot=Z.assignedElements({flatten:!0}):Z instanceof HTMLElement&&Z.shadowRoot?ot=Array.from(Z.shadowRoot.children):Z.children.length&&(ot=Array.from(Z.children)),ot.forEach(A)};return A(a),[...c]},en=(a=document)=>{var t;let o=a instanceof Document?a.activeElement:a;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},Fl=a=>a&&"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",uh=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?uh(o.host):a},$l=a=>{let o=[a],t=a;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var Ni=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};Ni.stack=new Set,Ni.currentKeydownListener=null;var Vl=V.constructTagName("spatialnavigationprovider");var oi={DIRECTION_LEFT:"data-spatial-left",DIRECTION_RIGHT:"data-spatial-right",DIRECTION_UP:"data-spatial-up",DIRECTION_DOWN:"data-spatial-down",GO_BACK:"data-spatial-go-back",FOCUSABLE:"data-spatial-focusable",EXCLUDE:"data-spatial-exclude",NO_SCROLL:"data-spatial-noscroll",SCROLL_PARENT:"data-spatial-scroll-parent"},fh={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var hx=Vl,vh=hx;var _f=a=>{let{x:o,y:t,width:e,height:i,left:n,top:c,right:f,bottom:g}=a.getBoundingClientRect(),A=o+e/2,R=t+i/2;return{x:o,y:t,width:e,height:i,left:n,top:c,right:f,bottom:g,xMid:A,yMid:R}},px=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),mx=(a,o)=>o==="horizontal"?a.height/2:a.width/2,ux=(a,o,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)):Math.max(0,Math.min(a.right,o.right)-Math.max(a.left,o.left)),fx=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,vx=(a,o,t,e)=>{let i=o.xMid-a.xMid,n=o.yMid-a.yMid,c=Math.sqrt(i*i+n*n),f=px(a,o,t)+mx(a,t)*e.orthogonalWeight[t],g=ux(a,o,t),A=fx(a,t,g)*e.alignWeight;return c+f-A-Math.sqrt(g)},wf=(a,o,t,e)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let i=_f(a),n=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let g=f.closest(`[${oi.SCROLL_PARENT}]`),A=g&&!g.contains(a)?g:f,R=_f(A);if(t==="left"&&R.right>i.xMid||t==="right"&&R.left<i.xMid||t==="up"&&R.bottom>i.yMid||t==="down"&&R.top<i.yMid)return c;let H=vx(i,R,n,e);return c.push({candidate:f,distance:H}),c},[]).sort((c,f)=>c.distance-f.distance)};var qo=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var rn=class extends Se{constructor(){super({context:vh});this.navigationKeyMapping=fh.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=fh.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDownCapture=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=!1,i=t.target,n=this.context.value.keyToActionMap[t.key];if(this.isDirectionKey(t.key)&&this.getElementSelectorForDirectionAttr(i,n)!==void 0&&(e=!0,this.focusNext(t,n)),i.parentElement&&!i.hasAttribute(oi.NO_SCROLL)){let f=(c=i.closest(`[${oi.SCROLL_PARENT}]`))!=null?c:i.parentElement,g=mh(f);if(g){let A=i.getBoundingClientRect(),R=f.getBoundingClientRect();(g==="vertical"||g==="both")&&(n==="up"&&A.top<R.top&&f.scrollTop>0&&(f.scrollTo({top:f.scrollTop-R.height/2,behavior:"auto"}),e=!0),n==="down"&&A.bottom>R.bottom&&f.scrollTop+R.height<f.scrollHeight&&(f.scrollTo({top:f.scrollTop+R.height/2,behavior:"auto"}),e=!0)),(g==="horizontal"||g==="both")&&(n==="right"&&A.left<R.left&&f.scrollLeft>0&&(f.scrollTo({left:f.scrollLeft-R.width/2,behavior:"auto"}),e=!0),n==="left"&&A.right>R.right&&f.scrollLeft+R.width<f.scrollWidth&&(f.scrollTo({left:f.scrollLeft+R.width/2,behavior:"auto"}),e=!0))}}e&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new qo("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(i)),i.defaultPrevented)return;let n=!1;switch(e){case"up":n=this.focusNext(t,"up");break;case"down":n=this.focusNext(t,"down");break;case"left":n=this.focusNext(t,"left");break;case"right":n=this.focusNext(t,"right");break;case"enter":n=this.pressEnter();break;case"escape":n=this.goBack();break;default:}n?t.preventDefault():this.dispatchEvent(new qo("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=en();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}isNavigationKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape].includes(t)}isDirectionKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right].includes(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return vh}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,i])=>[i,e]))},this.context.updateObservers())}initActiveElement(t){let e=jo(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let i=t[0];i&&this.setActiveElementAndFocus(i)}}focusNext(t,e){let i=Ni.getActiveTrap(),n=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let g of f)if(g===i||g===this.root||mh(g)){c.push(...jo(g,{excludedElements:n?[n]:void 0,includeSelectors:[`[${oi.FOCUSABLE}]`],excludeSelectors:[`[${oi.EXCLUDE}]`]}));let A=this.focusNextInFocusableAria(c,e);if(A||g===i||g===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;n=g}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let n=new qo("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(n),!n.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}getElementSelectorForDirectionAttr(t,e){var n;let i=`data-spatial-${e}`;return(n=t==null?void 0:t.getAttribute(i))!=null?n:void 0}focusNextInFocusableAria(t,e){var g,A;let i=this.getActiveElement(),n=en(),c=t;if((!i||!c.includes(i)||i!==n)&&(n&&c.includes(n)?i=n:[i]=c,this.setActiveElement(i)),n){let R=`data-spatial-${e}`,H=$l(n).find(q=>q.hasAttribute(R)),J=H==null?void 0:H.getAttribute(R);if(H&&J){let q=H.getRootNode(),Z=(g=q==null?void 0:q.getElementById(J))!=null?g:q==null?void 0:q.querySelector(J);if(Z){let ot=jo(Z,{includeSelectors:[`[${oi.FOCUSABLE}]`],excludeSelectors:[`[${oi.EXCLUDE}]`]});if(ot.includes(Z))return Z;if(ot.length>0)c=ot;else return Z}}}return i!==en()?i:t.length===0||(A=wf(i,c,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new qo("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=en();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=jo(this.root).find(i=>i.hasAttribute(oi.GO_BACK));if(!this.emitGoBackEvent(t)){if(t)return t.click(),!0;if(window.history.length>this.initialHistoryLength)return window.history.back(),!0}return!1}};h([u({attribute:!1})],rn.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],rn.prototype,"distanceCalculationWeights",2);var gh=rn;gh.register(Vl);var kf=gh;var G={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},gx={[Lt.ARROW_UP]:G.UP,[Lt.ARROW_DOWN]:G.DOWN,[Lt.ARROW_LEFT]:G.LEFT,[Lt.ARROW_RIGHT]:G.RIGHT,[Lt.ENTER]:G.ENTER,[Lt.SPACE]:G.SPACE,[Lt.ESCAPE]:G.ESCAPE,[Lt.TAB]:G.TAB,[Lt.HOME]:G.HOME,[Lt.END]:G.END,[Lt.BACKSPACE]:G.BACKSPACE},te={DEFAULT:"default",SPATIAL:"spatial"},Nt=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=Ie.consume({host:this,context:kf.Context})}getKeyboardNavMode(){var n;return((n=this.spatialNavigationContext)==null?void 0:n.value)?te.SPATIAL:te.DEFAULT}getActionForKeyEvent(i,n=!1){var g,A,R;let f=((R=(A=(g=this.spatialNavigationContext)==null?void 0:g.value)==null?void 0:A.keyToActionMap)!=null?R:gx)[i.key];if(n){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===G.LEFT)return G.RIGHT;if(f===G.RIGHT)return G.LEFT}return f}isDirectionAction(i){return i===G.UP||i===G.DOWN||i===G.LEFT||i===G.RIGHT}}return o};var Ot=a=>{class o extends a{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var Tt=B`
18
+ `,Af=QT;var Pl=class extends Q{constructor({context:o,initialValue:t}){super(),this.context=new Bs(this,{context:o,initialValue:t})}updateContext(){throw new Error("Not implemented")}render(){return this.updateContext(),S`<slot></slot>`}};Pl.styles=[...Q.styles,Af];var Sf=Pl;var Se=Sf;var Ve=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(i){super.firstUpdated(i),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Jt=a=>{class o extends a{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ii=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Lt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var JT=a=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:n}=a,c=(i||n)&&(f=>{n&&n.forEach(g=>{o.requestUpdate(g)}),i==null||i(f)});return new zs(o,{context:t,callback:c,subscribe:e!=null?e:!0})},tx={consume:JT},Ie=tx;var Cf=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),_f=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),ex=a=>a.getClientRects().length===0,rx=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=a;return e+i+t+o===0},mh=a=>{if(!(a instanceof Element))return null;let o=getComputedStyle(a),{overflowX:t,overflowY:e}=o,i=t==="auto"||t==="scroll",n=e==="auto"||e==="scroll";return i&&n?"both":i?"horizontal":n?"vertical":null},ix=a=>rx(a)||ex(a),ox=a=>{let{display:o,opacity:t,visibility:e}=a.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},sx=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},ax=a=>getComputedStyle(a).display==="contents",nx=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||ox(a)||!ax(a)&&(sx(a)||ix(a)),lx=a=>a.disabled,dx=a=>a.getAttribute("tabindex")!=="-1",cx=a=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1),If=(a,o)=>o.some(t=>a.matches(t));var jo=(a,o={})=>{var R,H,J,q;if(!a)return[];let t=new Set((R=o==null?void 0:o.excludedElements)!=null?R:[]),e=(H=o==null?void 0:o.includeSelectors)!=null?H:[],i=(J=o==null?void 0:o.excludeSelectors)!=null?J:[],n=(q=o==null?void 0:o.stopAtNonTabbable)!=null?q:!1,c=new Set([]),f=Z=>{if(t.has(a)||If(Z,i)||nx(Z)||lx(Z))return"stop";if(n&&!(Z instanceof HTMLSlotElement)&&Z.getAttribute("tabindex")==="-1"){let ot=Z.getRootNode();if(!(ot instanceof ShadowRoot&&ot.delegatesFocus))return"stop"}return If(Z,e)||dx(Z)&&cx(Z)?"focusable":"continue"},g=o.customFocusableCheck?Z=>o.customFocusableCheck(Z,f(Z)):f,A=Z=>{if(Z instanceof HTMLElement){let st=g(Z);if(st==="focusable"&&c.add(Z),st==="stop")return}let ot=[];Z instanceof HTMLSlotElement?ot=Z.assignedElements({flatten:!0}):Z instanceof HTMLElement&&Z.shadowRoot?ot=Array.from(Z.shadowRoot.children):Z.children.length&&(ot=Array.from(Z.children)),ot.forEach(A)};return A(a),[...c]},rn=(a=document)=>{var t;let o=a instanceof Document?a.activeElement:a;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},Fl=a=>a&&"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",uh=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?uh(o.host):a},$l=a=>{let o=[a],t=a;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var Ni=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};Ni.stack=new Set,Ni.currentKeydownListener=null;var Vl=V.constructTagName("spatialnavigationprovider");var oi={DIRECTION_LEFT:"data-spatial-left",DIRECTION_RIGHT:"data-spatial-right",DIRECTION_UP:"data-spatial-up",DIRECTION_DOWN:"data-spatial-down",GO_BACK:"data-spatial-go-back",FOCUSABLE:"data-spatial-focusable",EXCLUDE:"data-spatial-exclude",NO_SCROLL:"data-spatial-noscroll",SCROLL_PARENT:"data-spatial-scroll-parent"},fh={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var hx=Vl,vh=hx;var wf=a=>{let{x:o,y:t,width:e,height:i,left:n,top:c,right:f,bottom:g}=a.getBoundingClientRect(),A=o+e/2,R=t+i/2;return{x:o,y:t,width:e,height:i,left:n,top:c,right:f,bottom:g,xMid:A,yMid:R}},px=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),mx=(a,o)=>o==="horizontal"?a.height/2:a.width/2,ux=(a,o,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)):Math.max(0,Math.min(a.right,o.right)-Math.max(a.left,o.left)),fx=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,vx=(a,o,t,e)=>{let i=o.xMid-a.xMid,n=o.yMid-a.yMid,c=Math.sqrt(i*i+n*n),f=px(a,o,t)+mx(a,t)*e.orthogonalWeight[t],g=ux(a,o,t),A=fx(a,t,g)*e.alignWeight;return c+f-A-Math.sqrt(g)},kf=(a,o,t,e)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let i=wf(a),n=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let g=f.closest(`[${oi.SCROLL_PARENT}]`),A=g&&!g.contains(a)?g:f,R=wf(A);if(t==="left"&&R.right>i.xMid||t==="right"&&R.left<i.xMid||t==="up"&&R.bottom>i.yMid||t==="down"&&R.top<i.yMid)return c;let H=vx(i,R,n,e);return c.push({candidate:f,distance:H}),c},[]).sort((c,f)=>c.distance-f.distance)};var qo=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var on=class extends Se{constructor(){super({context:vh});this.navigationKeyMapping=fh.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=fh.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDownCapture=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=!1,i=t.target,n=this.context.value.keyToActionMap[t.key];if(this.isDirectionKey(t.key)&&this.getElementSelectorForDirectionAttr(i,n)!==void 0&&(e=!0,this.focusNext(t,n)),i.parentElement&&!i.hasAttribute(oi.NO_SCROLL)){let f=(c=i.closest(`[${oi.SCROLL_PARENT}]`))!=null?c:i.parentElement,g=mh(f);if(g){let A=i.getBoundingClientRect(),R=f.getBoundingClientRect();(g==="vertical"||g==="both")&&(n==="up"&&A.top<R.top&&f.scrollTop>0&&(f.scrollTo({top:f.scrollTop-R.height/2,behavior:"auto"}),e=!0),n==="down"&&A.bottom>R.bottom&&f.scrollTop+R.height<f.scrollHeight&&(f.scrollTo({top:f.scrollTop+R.height/2,behavior:"auto"}),e=!0)),(g==="horizontal"||g==="both")&&(n==="right"&&A.left<R.left&&f.scrollLeft>0&&(f.scrollTo({left:f.scrollLeft-R.width/2,behavior:"auto"}),e=!0),n==="left"&&A.right>R.right&&f.scrollLeft+R.width<f.scrollWidth&&(f.scrollTo({left:f.scrollLeft+R.width/2,behavior:"auto"}),e=!0))}}e&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new qo("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(i)),i.defaultPrevented)return;let n=!1;switch(e){case"up":n=this.focusNext(t,"up");break;case"down":n=this.focusNext(t,"down");break;case"left":n=this.focusNext(t,"left");break;case"right":n=this.focusNext(t,"right");break;case"enter":n=this.pressEnter();break;case"escape":n=this.goBack();break;default:}n?t.preventDefault():this.dispatchEvent(new qo("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=rn();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}isNavigationKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape].includes(t)}isDirectionKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right].includes(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return vh}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,i])=>[i,e]))},this.context.updateObservers())}initActiveElement(t){let e=jo(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let i=t[0];i&&this.setActiveElementAndFocus(i)}}focusNext(t,e){let i=Ni.getActiveTrap(),n=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let g of f)if(g===i||g===this.root||mh(g)){c.push(...jo(g,{excludedElements:n?[n]:void 0,includeSelectors:[`[${oi.FOCUSABLE}]`],excludeSelectors:[`[${oi.EXCLUDE}]`]}));let A=this.focusNextInFocusableAria(c,e);if(A||g===i||g===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;n=g}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let n=new qo("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(n),!n.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}getElementSelectorForDirectionAttr(t,e){var n;let i=`data-spatial-${e}`;return(n=t==null?void 0:t.getAttribute(i))!=null?n:void 0}focusNextInFocusableAria(t,e){var g,A;let i=this.getActiveElement(),n=rn(),c=t;if((!i||!c.includes(i)||i!==n)&&(n&&c.includes(n)?i=n:[i]=c,this.setActiveElement(i)),n){let R=`data-spatial-${e}`,H=$l(n).find(q=>q.hasAttribute(R)),J=H==null?void 0:H.getAttribute(R);if(H&&J){let q=H.getRootNode(),Z=(g=q==null?void 0:q.getElementById(J))!=null?g:q==null?void 0:q.querySelector(J);if(Z){let ot=jo(Z,{includeSelectors:[`[${oi.FOCUSABLE}]`],excludeSelectors:[`[${oi.EXCLUDE}]`]});if(ot.includes(Z))return Z;if(ot.length>0)c=ot;else return Z}}}return i!==rn()?i:t.length===0||(A=kf(i,c,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new qo("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=rn();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=jo(this.root).find(i=>i.hasAttribute(oi.GO_BACK));if(!this.emitGoBackEvent(t)){if(t)return t.click(),!0;if(window.history.length>this.initialHistoryLength)return window.history.back(),!0}return!1}};h([u({attribute:!1})],on.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],on.prototype,"distanceCalculationWeights",2);var gh=on;gh.register(Vl);var Nf=gh;var G={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},gx={[Lt.ARROW_UP]:G.UP,[Lt.ARROW_DOWN]:G.DOWN,[Lt.ARROW_LEFT]:G.LEFT,[Lt.ARROW_RIGHT]:G.RIGHT,[Lt.ENTER]:G.ENTER,[Lt.SPACE]:G.SPACE,[Lt.ESCAPE]:G.ESCAPE,[Lt.TAB]:G.TAB,[Lt.HOME]:G.HOME,[Lt.END]:G.END,[Lt.BACKSPACE]:G.BACKSPACE},te={DEFAULT:"default",SPATIAL:"spatial"},Nt=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=Ie.consume({host:this,context:Nf.Context})}getKeyboardNavMode(){var n;return((n=this.spatialNavigationContext)==null?void 0:n.value)?te.SPATIAL:te.DEFAULT}getActionForKeyEvent(i,n=!1){var g,A,R;let f=((R=(A=(g=this.spatialNavigationContext)==null?void 0:g.value)==null?void 0:A.keyToActionMap)!=null?R:gx)[i.key];if(n){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===G.LEFT)return G.RIGHT;if(f===G.RIGHT)return G.LEFT}return f}isDirectionAction(i){return i===G.UP||i===G.DOWN||i===G.LEFT||i===G.RIGHT}}return o};var Ot=a=>{class o extends a{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var Tt=B`
19
19
  :host {
20
20
  align-items: center;
21
21
  display: flex;
@@ -149,7 +149,7 @@
149
149
  :host([size='20']) {
150
150
  --mdc-button-height: 1.25rem;
151
151
  }
152
- `,...xt()],Nf=bx;var vr=class extends Ot(Nt(Ve(ii(Jt(Q))))){constructor(){super();this.size=Ja.SIZE;this.role=Ja.ROLE;this.type=Ja.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Ja.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===$s.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===$s.RESET&&this.form&&this.form.reset()}setActive(t,e){this.ariaStateKey&&this.ariaStateKey.split(",").filter(n=>n.trim().startsWith("aria-")).forEach(n=>{e===!0?t.setAttribute(n.trim(),"true"):e===!1?t.setAttribute(n.trim(),"false"):t.removeAttribute(n.trim())})}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,e){e?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){this.click()}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===G.ENTER||e===G.SPACE)&&(this.classList.add("pressed"),e===G.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let e=this.getActionForKeyEvent(t);if(e===G.ENTER||e===G.SPACE){let i=this.classList.contains("pressed");this.classList.remove("pressed"),e===G.SPACE&&i&&this.triggerClickEvent()}}render(){return S` <slot></slot> `}};vr.formAssociated=!0,vr.styles=[...Q.styles,...Nf],h([u({type:Boolean,reflect:!0})],vr.prototype,"active",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],vr.prototype,"softDisabled",2),h([u({type:Number,reflect:!0})],vr.prototype,"size",2),h([u({type:String,reflect:!0})],vr.prototype,"role",2),h([u({type:String,reflect:!0})],vr.prototype,"ariaStateKey",2),h([u({reflect:!0})],vr.prototype,"type",2),h([u({type:String,reflect:!0})],vr.prototype,"name",2),h([u({type:String,reflect:!0})],vr.prototype,"value",2);var ve=vr;var zl=a=>{class o extends a{get overflowElement(){return this}isWidthOverflowing(){let e=this.overflowElement;return e.scrollWidth>e.clientWidth}isHeightOverflowing(){return this.scrollHeight>this.clientHeight}}return o};var yx=B`
152
+ `,...xt()],Lf=bx;var vr=class extends Ot(Nt(Ve(ii(Jt(Q))))){constructor(){super();this.size=tn.SIZE;this.role=tn.ROLE;this.type=tn.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||tn.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===$s.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===$s.RESET&&this.form&&this.form.reset()}setActive(t,e){this.ariaStateKey&&this.ariaStateKey.split(",").filter(n=>n.trim().startsWith("aria-")).forEach(n=>{e===!0?t.setAttribute(n.trim(),"true"):e===!1?t.setAttribute(n.trim(),"false"):t.removeAttribute(n.trim())})}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,e){e?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){this.click()}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===G.ENTER||e===G.SPACE)&&(this.classList.add("pressed"),e===G.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let e=this.getActionForKeyEvent(t);if(e===G.ENTER||e===G.SPACE){let i=this.classList.contains("pressed");this.classList.remove("pressed"),e===G.SPACE&&i&&this.triggerClickEvent()}}render(){return S` <slot></slot> `}};vr.formAssociated=!0,vr.styles=[...Q.styles,...Lf],h([u({type:Boolean,reflect:!0})],vr.prototype,"active",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],vr.prototype,"softDisabled",2),h([u({type:Number,reflect:!0})],vr.prototype,"size",2),h([u({type:String,reflect:!0})],vr.prototype,"role",2),h([u({type:String,reflect:!0})],vr.prototype,"ariaStateKey",2),h([u({reflect:!0})],vr.prototype,"type",2),h([u({type:String,reflect:!0})],vr.prototype,"name",2),h([u({type:String,reflect:!0})],vr.prototype,"value",2);var ve=vr;var zl=a=>{class o extends a{get overflowElement(){return this}isWidthOverflowing(){let e=this.overflowElement;return e.scrollWidth>e.clientWidth}isHeightOverflowing(){return this.scrollHeight>this.clientHeight}}return o};var yx=B`
153
153
  :host {
154
154
  --mdc-button-prefix-icon-size: 1rem;
155
155
  --mdc-button-postfix-icon-size: 1rem;
@@ -456,7 +456,7 @@
456
456
  :host::part(postfix-icon) {
457
457
  flex-shrink: 0;
458
458
  }
459
- `,Lf=[yx];var Xo=a=>{let o=a.split("-"),t=["bold","filled","regular","light"];return o.filter(e=>!t.includes(e)).join("-")};var si=class extends zl(Ol(ve)){constructor(){super(...arguments);this.size=sr.SIZE;this.inverted=sr.INVERTED;this.role=et.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Xo(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Xo(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return S`
459
+ `,Mf=[yx];var Xo=a=>{let o=a.split("-"),t=["bold","filled","regular","light"];return o.filter(e=>!t.includes(e)).join("-")};var si=class extends zl(Ol(ve)){constructor(){super(...arguments);this.size=sr.SIZE;this.inverted=sr.INVERTED;this.role=et.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Xo(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Xo(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return S`
460
460
  <slot name="prefix" part="prefix">
461
461
  ${this.prefixFilledIconName?S` <mdc-icon
462
462
  name="${this.prefixFilledIconName}"
@@ -472,7 +472,7 @@
472
472
  length-unit="rem"
473
473
  ></mdc-icon>`:""}
474
474
  </slot>
475
- `}};si.styles=[...ve.styles,...Lf],h([zt('slot[part="button-text"]')],si.prototype,"buttonTextPart",2),h([u({type:Number})],si.prototype,"size",2),h([u({type:Boolean,reflect:!0})],si.prototype,"inverted",2),h([u({type:String,reflect:!0})],si.prototype,"role",2),h([dt()],si.prototype,"prefixFilledIconName",2),h([dt()],si.prototype,"postfixFilledIconName",2);var Zo=si;var Bl=V.constructTagName("iconprovider"),Mf=["svg"],Of=["em","rem","px","%"],Ex={px:16,em:1,rem:1,"%":100},Li={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Ex.em,ICON_SET:"momentum-icons"};var Hl=class{};Hl.context=Bl;var Ul=Hl;var ai=class extends Se{constructor(){super({context:Ul.context,initialValue:new Ul});this.iconSet=Li.ICON_SET;this.fileExtension=Li.FILE_EXTENSION;this.lengthUnit=Li.LENGTH_UNIT;this.size=Li.SIZE}static get Context(){return Ul.context}updateValuesInContext(){this.fileExtension&&Mf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Li.FILE_EXTENSION,this.context.value.fileExtension=Li.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Of.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Li.LENGTH_UNIT,this.context.value.lengthUnit=Li.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"icon-set",reflect:!0})],ai.prototype,"iconSet",2),h([u({type:String})],ai.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],ai.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],ai.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],ai.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],ai.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],ai.prototype,"cacheName",2);var on=ai;var Tx=[Tt,B`
475
+ `}};si.styles=[...ve.styles,...Mf],h([zt('slot[part="button-text"]')],si.prototype,"buttonTextPart",2),h([u({type:Number})],si.prototype,"size",2),h([u({type:Boolean,reflect:!0})],si.prototype,"inverted",2),h([u({type:String,reflect:!0})],si.prototype,"role",2),h([dt()],si.prototype,"prefixFilledIconName",2),h([dt()],si.prototype,"postfixFilledIconName",2);var Zo=si;var Bl=V.constructTagName("iconprovider"),Of=["svg"],Rf=["em","rem","px","%"],Ex={px:16,em:1,rem:1,"%":100},Li={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Ex.em,ICON_SET:"momentum-icons"};var Hl=class{};Hl.context=Bl;var Ul=Hl;var ai=class extends Se{constructor(){super({context:Ul.context,initialValue:new Ul});this.iconSet=Li.ICON_SET;this.fileExtension=Li.FILE_EXTENSION;this.lengthUnit=Li.LENGTH_UNIT;this.size=Li.SIZE}static get Context(){return Ul.context}updateValuesInContext(){this.fileExtension&&Of.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Li.FILE_EXTENSION,this.context.value.fileExtension=Li.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Rf.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Li.LENGTH_UNIT,this.context.value.lengthUnit=Li.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"icon-set",reflect:!0})],ai.prototype,"iconSet",2),h([u({type:String})],ai.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],ai.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],ai.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],ai.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],ai.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],ai.prototype,"cacheName",2);var sn=ai;var Tx=[Tt,B`
476
476
  :host {
477
477
  --mdc-icon-fill-color: currentColor;
478
478
  --mdc-icon-size: var(--computed-icon-size);
@@ -487,7 +487,7 @@
487
487
  width: 100%;
488
488
  fill: var(--mdc-icon-fill-color);
489
489
  }
490
- `,...xt()],Rf=Tx;var sn={},Df=async a=>(sn[a]===void 0&&(sn[a]=new Map),{async set(o,t){sn[a].set(o.url,await t.text())},async get(o){return sn[a].get(o.url)},async delete(o){sn[a].delete(o.url)}}),Pf=async a=>{let o=await caches.open(a);return{set:async(t,e)=>{await o.put(t,e)},get:async t=>{let e=await o.match(t);return e==null?void 0:e.text()},delete:async t=>{await o.delete(t)}}},Gl=async(a,o)=>o==="in-memory-cache"?Df(a):Pf(a);var Ff=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),$f=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:n})=>{let c=n(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?Ff(f).then(g=>g.text()):Gl(i,e).then(g=>g.get(f).then(A=>A||Ff(f.clone()).then(R=>{var H;return R.status<400&&R.headers.has("content-type")?(H=g.set)==null?void 0:H.call(g,f,R.clone()).then(()=>R.text()):R.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${o}, ${A}`)}))};var Vf=V.constructTagName("icon"),bh={NAME:void 0,SIZE:1};var gr=class extends Q{constructor(){super();this.name=bh.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ie.consume({host:this,context:on.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:i,cacheName:n,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&i&&e&&this.name){let g=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return $f({url:i,name:this.name,fileExtension:e,cacheName:n,cacheStrategy:f,renewSignal:g}).then(A=>{let R=this.prepareIconElement(A);this.handleIconLoadedSuccess(R)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(g=>{this.handleIconLoadedSuccess(g.default())}).catch(g=>{this.handleIconLoadedFailure(g)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:bh.SIZE}updated(t){var e,i,n,c;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((n=this.iconProviderContext.value)==null?void 0:n.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};gr.styles=[...Q.styles,...Rf],h([dt()],gr.prototype,"iconData",2),h([dt()],gr.prototype,"lengthUnitFromContext",2),h([dt()],gr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],gr.prototype,"name",2),h([u({type:Number})],gr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],gr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],gr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],gr.prototype,"ariaLabelledby",2),h([dt()],gr.prototype,"abortController",2);var yh=gr;yh.register(Vf);var xx=yh;Zo.register(ki);var Ax=Zo;var zf=B`
490
+ `,...xt()],Df=Tx;var an={},Pf=async a=>(an[a]===void 0&&(an[a]=new Map),{async set(o,t){an[a].set(o.url,await t.text())},async get(o){return an[a].get(o.url)},async delete(o){an[a].delete(o.url)}}),Ff=async a=>{let o=await caches.open(a);return{set:async(t,e)=>{await o.put(t,e)},get:async t=>{let e=await o.match(t);return e==null?void 0:e.text()},delete:async t=>{await o.delete(t)}}},Gl=async(a,o)=>o==="in-memory-cache"?Pf(a):Ff(a);var $f=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Vf=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:n})=>{let c=n(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?$f(f).then(g=>g.text()):Gl(i,e).then(g=>g.get(f).then(A=>A||$f(f.clone()).then(R=>{var H;return R.status<400&&R.headers.has("content-type")?(H=g.set)==null?void 0:H.call(g,f,R.clone()).then(()=>R.text()):R.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${o}, ${A}`)}))};var zf=V.constructTagName("icon"),bh={NAME:void 0,SIZE:1};var gr=class extends Q{constructor(){super();this.name=bh.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ie.consume({host:this,context:sn.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:i,cacheName:n,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&i&&e&&this.name){let g=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return Vf({url:i,name:this.name,fileExtension:e,cacheName:n,cacheStrategy:f,renewSignal:g}).then(A=>{let R=this.prepareIconElement(A);this.handleIconLoadedSuccess(R)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(g=>{this.handleIconLoadedSuccess(g.default())}).catch(g=>{this.handleIconLoadedFailure(g)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:bh.SIZE}updated(t){var e,i,n,c;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((n=this.iconProviderContext.value)==null?void 0:n.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};gr.styles=[...Q.styles,...Df],h([dt()],gr.prototype,"iconData",2),h([dt()],gr.prototype,"lengthUnitFromContext",2),h([dt()],gr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],gr.prototype,"name",2),h([u({type:Number})],gr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],gr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],gr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],gr.prototype,"ariaLabelledby",2),h([dt()],gr.prototype,"abortController",2);var yh=gr;yh.register(zf);var xx=yh;Zo.register(ki);var Ax=Zo;var Bf=B`
491
491
  :host::part(text) {
492
492
  font-size: unset;
493
493
  font-weight: unset;
@@ -737,7 +737,7 @@
737
737
  display: block;
738
738
  font-family: var(--mdc-text-font-family);
739
739
  }
740
- `,zf],Bf=Sx;var an=V.constructTagName("text"),at={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Me={TYPE:at.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Qo=class extends zl(Q){constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return S`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return S`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return S`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return S`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return S`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return S`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return S`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return S`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return S`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return S`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};Qo.styles=[...Q.styles,...Bf],h([zt(`[part='${Me.CSS_PART_TEXT}']`)],Qo.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],Qo.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Qo.prototype,"tagname",2);var Eh=Qo;Eh.register(an);var Ix=Eh;var tt=a=>a!=null?a:K;var Oe=[];for(let a=0;a<256;++a)Oe.push((a+256).toString(16).slice(1));function Hf(a,o=0){return(Oe[a[o+0]]+Oe[a[o+1]]+Oe[a[o+2]]+Oe[a[o+3]]+"-"+Oe[a[o+4]]+Oe[a[o+5]]+"-"+Oe[a[o+6]]+Oe[a[o+7]]+"-"+Oe[a[o+8]]+Oe[a[o+9]]+"-"+Oe[a[o+10]]+Oe[a[o+11]]+Oe[a[o+12]]+Oe[a[o+13]]+Oe[a[o+14]]+Oe[a[o+15]]).toLowerCase()}var Th,Cx=new Uint8Array(16);function xh(){if(!Th){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Th=crypto.getRandomValues.bind(crypto)}return Th(Cx)}var _x=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ah={randomUUID:_x};function wx(a,o,t){var i,n,c;if(Ah.randomUUID&&!o&&!a)return Ah.randomUUID();a=a||{};let e=(c=(n=a.random)!=null?n:(i=a.rng)==null?void 0:i.call(a))!=null?c:xh();if(e.length<16)throw new Error("Random bytes length must be >= 16");if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)o[t+f]=e[f];return o}return Hf(e)}var ze=wx;var Uf=V.constructTagName("accordiongroup"),Sh={SMALL:"small",LARGE:"large"},kx={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},nn={SIZE:Sh.SMALL,VARIANT:kx.STACKED};var Kl=V.constructTagName("accordionbutton"),ln={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Nx={DEFAULT:"default",BORDERLESS:"borderless"},dn={LEADING:"leading",TRAILING:"trailing"},ni={EXPANDED:!1,SIZE:Sh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:Nx.DEFAULT,ICON_NAME:ln.ARROW_UP,TOGGLE_POSITION:dn.TRAILING};var Lx=B`
740
+ `,Bf],Hf=Sx;var nn=V.constructTagName("text"),at={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Me={TYPE:at.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Qo=class extends zl(Q){constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return S`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return S`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return S`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return S`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return S`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return S`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return S`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return S`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return S`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return S`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};Qo.styles=[...Q.styles,...Hf],h([zt(`[part='${Me.CSS_PART_TEXT}']`)],Qo.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],Qo.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Qo.prototype,"tagname",2);var Eh=Qo;Eh.register(nn);var Ix=Eh;var tt=a=>a!=null?a:K;var Oe=[];for(let a=0;a<256;++a)Oe.push((a+256).toString(16).slice(1));function Uf(a,o=0){return(Oe[a[o+0]]+Oe[a[o+1]]+Oe[a[o+2]]+Oe[a[o+3]]+"-"+Oe[a[o+4]]+Oe[a[o+5]]+"-"+Oe[a[o+6]]+Oe[a[o+7]]+"-"+Oe[a[o+8]]+Oe[a[o+9]]+"-"+Oe[a[o+10]]+Oe[a[o+11]]+Oe[a[o+12]]+Oe[a[o+13]]+Oe[a[o+14]]+Oe[a[o+15]]).toLowerCase()}var Th,Cx=new Uint8Array(16);function xh(){if(!Th){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Th=crypto.getRandomValues.bind(crypto)}return Th(Cx)}var _x=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ah={randomUUID:_x};function wx(a,o,t){var i,n,c;if(Ah.randomUUID&&!o&&!a)return Ah.randomUUID();a=a||{};let e=(c=(n=a.random)!=null?n:(i=a.rng)==null?void 0:i.call(a))!=null?c:xh();if(e.length<16)throw new Error("Random bytes length must be >= 16");if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)o[t+f]=e[f];return o}return Uf(e)}var ze=wx;var Gf=V.constructTagName("accordiongroup"),Sh={SMALL:"small",LARGE:"large"},kx={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},ln={SIZE:Sh.SMALL,VARIANT:kx.STACKED};var Kl=V.constructTagName("accordionbutton"),dn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Nx={DEFAULT:"default",BORDERLESS:"borderless"},cn={LEADING:"leading",TRAILING:"trailing"},ni={EXPANDED:!1,SIZE:Sh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:Nx.DEFAULT,ICON_NAME:dn.ARROW_UP,TOGGLE_POSITION:cn.TRAILING};var Lx=B`
741
741
  :host {
742
742
  --mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
743
743
  --mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
@@ -854,13 +854,13 @@
854
854
  :host([variant='default']:not([expanded]))::part(header-section) {
855
855
  border-bottom: none;
856
856
  }
857
- `,Gf=[Lx,...xt(!0)];var zr=class extends Ot(Nt(Jt(Q))){constructor(){super(...arguments);this.size=ni.SIZE;this.variant=ni.VARIANT;this.dataAriaLevel=ni.DATA_ARIA_LEVEL;this.expanded=ni.EXPANDED;this.togglePosition=ni.TOGGLE_POSITION;this.headSectionId=`head-section-${ze()}`;this.bodySectionId=`body-section-${ze()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}click(){this.disabled||(super.click(),this.handleHeaderClick())}dispatchHeaderClickEvent(){let t=new CustomEvent("shown",{bubbles:!0,cancelable:!0,detail:{expanded:this.expanded}});this.dispatchEvent(t)}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===G.ENTER||e===G.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?S`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:K}renderHeadingText(){return this.headerText?S`<mdc-text
857
+ `,Kf=[Lx,...xt(!0)];var zr=class extends Ot(Nt(Jt(Q))){constructor(){super(...arguments);this.size=ni.SIZE;this.variant=ni.VARIANT;this.dataAriaLevel=ni.DATA_ARIA_LEVEL;this.expanded=ni.EXPANDED;this.togglePosition=ni.TOGGLE_POSITION;this.headSectionId=`head-section-${ze()}`;this.bodySectionId=`body-section-${ze()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}click(){this.disabled||(super.click(),this.handleHeaderClick())}dispatchHeaderClickEvent(){let t=new CustomEvent("shown",{bubbles:!0,cancelable:!0,detail:{expanded:this.expanded}});this.dispatchEvent(t)}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===G.ENTER||e===G.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?S`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:K}renderHeadingText(){return this.headerText?S`<mdc-text
858
858
  id="${this.headSectionId}"
859
859
  type="${at.BODY_LARGE_REGULAR}"
860
860
  tagname=${pt.SPAN}
861
861
  part="leading-header-text"
862
862
  >${this.headerText}</mdc-text
863
- >`:K}renderToggleIcon(){return S`<div part="toggle-icon">${this.renderIcon(this.getArrowIconName())}</div>`}renderHeader(){let t=this.togglePosition===dn.LEADING;return S`
863
+ >`:K}renderToggleIcon(){return S`<div part="toggle-icon">${this.renderIcon(this.getArrowIconName())}</div>`}renderHeader(){let t=this.togglePosition===cn.LEADING;return S`
864
864
  <div
865
865
  part="header-section"
866
866
  class="mdc-focus-ring"
@@ -883,14 +883,14 @@
883
883
  ${t?K:S`<div part="trailing-header">${this.renderToggleIcon()}</div>`}
884
884
  </div>
885
885
  </div>
886
- `}getArrowIconName(){return this.disabled?ln.ARROW_DOWN:this.expanded?ln.ARROW_UP:ln.ARROW_DOWN}renderBody(){return this.disabled?K:this.expanded?S`<div
886
+ `}getArrowIconName(){return this.disabled?dn.ARROW_DOWN:this.expanded?dn.ARROW_UP:dn.ARROW_DOWN}renderBody(){return this.disabled?K:this.expanded?S`<div
887
887
  id="${this.bodySectionId}"
888
888
  aria-labelledby="${this.headSectionId}"
889
889
  part="body-section"
890
890
  role="${et.REGION}"
891
891
  >
892
892
  <slot></slot>
893
- </div>`:K}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=ni.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=ni.SIZE),t.has("variant")&&!this.variant&&(this.variant=ni.VARIANT),t.has("togglePosition")&&!this.togglePosition&&(this.togglePosition=ni.TOGGLE_POSITION)}render(){return S` ${this.renderHeader()} ${this.renderBody()} `}};zr.styles=[...Q.styles,...Gf],h([u({type:String,reflect:!0})],zr.prototype,"size",2),h([u({type:String,reflect:!0})],zr.prototype,"variant",2),h([u({type:Number,reflect:!0,attribute:"data-aria-level"})],zr.prototype,"dataAriaLevel",2),h([u({type:Boolean,reflect:!0})],zr.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"header-text"})],zr.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],zr.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"toggle-position"})],zr.prototype,"togglePosition",2);var Hs=zr;var Mx=B`
893
+ </div>`:K}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=ni.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=ni.SIZE),t.has("variant")&&!this.variant&&(this.variant=ni.VARIANT),t.has("togglePosition")&&!this.togglePosition&&(this.togglePosition=ni.TOGGLE_POSITION)}render(){return S` ${this.renderHeader()} ${this.renderBody()} `}};zr.styles=[...Q.styles,...Kf],h([u({type:String,reflect:!0})],zr.prototype,"size",2),h([u({type:String,reflect:!0})],zr.prototype,"variant",2),h([u({type:Number,reflect:!0,attribute:"data-aria-level"})],zr.prototype,"dataAriaLevel",2),h([u({type:Boolean,reflect:!0})],zr.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"header-text"})],zr.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],zr.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"toggle-position"})],zr.prototype,"togglePosition",2);var Hs=zr;var Mx=B`
894
894
  :host::part(header-section) {
895
895
  display: flex;
896
896
  align-items: center;
@@ -904,7 +904,7 @@
904
904
  :host::part(toggle-button) {
905
905
  margin: 0.125rem;
906
906
  }
907
- `,Kf=[Mx];var ho=class extends Hs{handleHeaderShownEvent(o){o.stopPropagation()}update(o){super.update(o),o.has("disabled")&&[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}renderToggleButton(){return S`
907
+ `,Wf=[Mx];var ho=class extends Hs{handleHeaderShownEvent(o){o.stopPropagation()}update(o){super.update(o),o.has("disabled")&&[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}renderToggleButton(){return S`
908
908
  <mdc-button
909
909
  part="toggle-button"
910
910
  ?disabled="${this.disabled}"
@@ -916,7 +916,7 @@
916
916
  variant="${Bt.TERTIARY}"
917
917
  size="${Cr[20]}"
918
918
  ></mdc-button>
919
- `}renderHeader(){let o=this.togglePosition===dn.LEADING;return S`
919
+ `}renderHeader(){let o=this.togglePosition===cn.LEADING;return S`
920
920
  <div part="header-section" @shown="${this.handleHeaderShownEvent}">
921
921
  <div part="leading-header">
922
922
  ${o?this.renderToggleButton():K} ${this.renderIcon(this.prefixIcon)}
@@ -930,7 +930,7 @@
930
930
  ${o?K:this.renderToggleButton()}
931
931
  </div>
932
932
  </div>
933
- `}};ho.styles=[...Hs.styles,...Kf],h([qt({slot:"leading-controls"})],ho.prototype,"leadingControlsSlot",2),h([qt({slot:"trailing-controls"})],ho.prototype,"trailingControlsSlot",2),h([u({type:String,attribute:"open-button-aria-label",reflect:!0})],ho.prototype,"openButtonAriaLabel",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],ho.prototype,"closeButtonAriaLabel",2);var Ih=ho;var Wl=V.constructTagName("accordion");Ih.register(Wl);var Ox=Ih;var Rx=B`
933
+ `}};ho.styles=[...Hs.styles,...Wf],h([qt({slot:"leading-controls"})],ho.prototype,"leadingControlsSlot",2),h([qt({slot:"trailing-controls"})],ho.prototype,"trailingControlsSlot",2),h([u({type:String,attribute:"open-button-aria-label",reflect:!0})],ho.prototype,"openButtonAriaLabel",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],ho.prototype,"closeButtonAriaLabel",2);var Ih=ho;var Wl=V.constructTagName("accordion");Ih.register(Wl);var Ox=Ih;var Rx=B`
934
934
  :host {
935
935
  --mdc-accordiongroup-items-border-color: var(--mds-color-theme-outline-secondary-normal);
936
936
 
@@ -974,7 +974,7 @@
974
974
  :host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
975
975
  border-bottom: 1px solid var(--mdc-accordiongroup-items-border-color);
976
976
  }
977
- `,Wf=[Rx,...xt()];var Mi=class extends Q{constructor(){super();this.size=nn.SIZE;this.variant=nn.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(e=>{e!==t.target&&e.hasAttribute("expanded")&&e.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,e){[...this.accordionItems].forEach(i=>{i.setAttribute(t,e)}),[...this.accordionButtonItems].forEach(i=>{i.setAttribute(t,e)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=nn.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=nn.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return S` <slot></slot> `}};Mi.styles=[...Q.styles,...Wf],h([u({type:String,reflect:!0})],Mi.prototype,"size",2),h([u({type:String,reflect:!0})],Mi.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],Mi.prototype,"allowMultiple",2),h([qt({selector:Wl})],Mi.prototype,"accordionItems",2),h([qt({selector:Kl})],Mi.prototype,"accordionButtonItems",2);var Ch=Mi;Ch.register(Uf);var Dx=Ch;Hs.register(Kl);var Px=Hs;var he=a=>{class o extends a{}return h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var Fx=B`
977
+ `,Yf=[Rx,...xt()];var Mi=class extends Q{constructor(){super();this.size=ln.SIZE;this.variant=ln.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(e=>{e!==t.target&&e.hasAttribute("expanded")&&e.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,e){[...this.accordionItems].forEach(i=>{i.setAttribute(t,e)}),[...this.accordionButtonItems].forEach(i=>{i.setAttribute(t,e)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=ln.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=ln.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return S` <slot></slot> `}};Mi.styles=[...Q.styles,...Yf],h([u({type:String,reflect:!0})],Mi.prototype,"size",2),h([u({type:String,reflect:!0})],Mi.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],Mi.prototype,"allowMultiple",2),h([qt({selector:Wl})],Mi.prototype,"accordionItems",2),h([qt({selector:Kl})],Mi.prototype,"accordionButtonItems",2);var Ch=Mi;Ch.register(Gf);var Dx=Ch;Hs.register(Kl);var Px=Hs;var he=a=>{class o extends a{}return h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var Fx=B`
978
978
  :host {
979
979
  height: 1.5rem;
980
980
  gap: 0.25rem;
@@ -1087,16 +1087,16 @@
1087
1087
  --mdc-chip-icon-color: ButtonText;
1088
1088
  }
1089
1089
  }
1090
- `,Yf=[Tt,Fx,...xt()];var Yl=V.constructTagName("alertchip"),Jo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Us={VARIANT:Jo.NEUTRAL,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:Yo[24],ROLE:et.BUTTON};var jf=a=>({[Jo.ERROR]:"error-legacy-badge-filled",[Jo.INFORMATIONAL]:"info-badge-filled",[Jo.NEUTRAL]:"dnd-presence-badge-filled",[Jo.SUCCESS]:"check-circle-badge-filled",[Jo.WARNING]:"warning-badge-filled"})[a];var Gs=class extends he(ve){constructor(){super(...arguments);this.variant=Us.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Us.SIZE,this.role=Us.ROLE}render(){return S`
1091
- <mdc-icon part="icon" name="${this.iconName||jf(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1090
+ `,jf=[Tt,Fx,...xt()];var Yl=V.constructTagName("alertchip"),Jo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Us={VARIANT:Jo.NEUTRAL,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:Yo[24],ROLE:et.BUTTON};var qf=a=>({[Jo.ERROR]:"error-legacy-badge-filled",[Jo.INFORMATIONAL]:"info-badge-filled",[Jo.NEUTRAL]:"dnd-presence-badge-filled",[Jo.SUCCESS]:"check-circle-badge-filled",[Jo.WARNING]:"warning-badge-filled"})[a];var Gs=class extends he(ve){constructor(){super(...arguments);this.variant=Us.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Us.SIZE,this.role=Us.ROLE}render(){return S`
1091
+ <mdc-icon part="icon" name="${this.iconName||qf(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1092
1092
  ${this.label?S`<mdc-text part="label" type="${Us.TEXT_TYPE}" tagname="${Us.TAG_NAME}"
1093
1093
  >${this.label}</mdc-text
1094
1094
  >`:K}
1095
- `}};Gs.styles=[...Q.styles,...Yf],h([u({type:String,reflect:!0})],Gs.prototype,"variant",2),h([u({type:String})],Gs.prototype,"label",2);var _h=Gs;_h.register(Yl);var $x=_h;var{I:Vx}=hf;var jl=a=>a.strings===void 0,qf=()=>document.createComment(""),Ks=(a,o,t)=>{var n;let e=a._$AA.parentNode,i=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=e.insertBefore(qf(),i),f=e.insertBefore(qf(),i);t=new Vx(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,g=f!==a;if(g){let A;(n=t._$AQ)==null||n.call(t,a),t._$AM=a,t._$AP!==void 0&&(A=a._$AU)!==f._$AU&&t._$AP(A)}if(c!==i||g){let A=t._$AA;for(;A!==c;){let R=A.nextSibling;e.insertBefore(A,i),A=R}}}return t},po=(a,o,t=a)=>(a._$AI(o,t),a),zx={},ql=(a,o=zx)=>a._$AH=o,Xf=a=>a._$AH,Xl=a=>{var e;(e=a._$AP)==null||e.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var br={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Oi=a=>(...o)=>({_$litDirective$:a,values:o}),li=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this.t=o,this._$AM=t,this.i=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var cn=(a,o)=>{var e;let t=a._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),cn(i,o);return!0},Zl=a=>{let o,t;do{if((o=a._$AM)===void 0)break;t=o._$AN,t.delete(a),a=o}while((t==null?void 0:t.size)===0)},Zf=a=>{for(let o;o=a._$AM;a=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(a))break;t.add(a),Ux(o)}};function Bx(a){this._$AN!==void 0?(Zl(this),this._$AM=a,Zf(this)):this._$AM=a}function Hx(a,o=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(o)if(Array.isArray(e))for(let n=t;n<e.length;n++)cn(e[n],!1),Zl(e[n]);else e!=null&&(cn(e,!1),Zl(e));else cn(this,a)}var Ux=a=>{var o,t;a.type==br.CHILD&&((o=a._$AP)!=null||(a._$AP=Hx),(t=a._$AQ)!=null||(a._$AQ=Bx))},Ql=class extends li{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),Zf(this),this.isConnected=o._$AU}_$AO(o,t=!0){var e,i;o!==this.isConnected&&(this.isConnected=o,o?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(cn(this,o),Zl(this))}setValue(o){if(jl(this.t))this.t._$AI(o,this);else{let t=[...this.t._$AH];t[this.i]=o,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Qf=()=>new kh,kh=class{},wh=new WeakMap,Jf=Oi(class extends Ql{render(a){return K}update(a,[o]){var e;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(e=a.options)==null?void 0:e.host,this.rt(this.ct=a.element)),K}rt(a){var o;if(this.isConnected||(a=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=wh.get(t);e===void 0&&(e=new WeakMap,wh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,a),a!==void 0&&this.Y.call(this.ht,a)}else this.Y.value=a}get lt(){var a,o,t;return typeof this.Y=="function"?(o=wh.get((a=this.ht)!=null?a:globalThis))==null?void 0:o.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var iv=$T(tv());var Nh={audio_video:"./lottie/audio_video.json",calling:"./lottie/calling.json",alert_32px_loop:"./lottie/cisco-ai-assistant/alert_32px_loop.json",hello_32px:"./lottie/cisco-ai-assistant/hello_32px.json",processing_32px_end:"./lottie/cisco-ai-assistant/processing_32px_end.json",processing_32px_loop:"./lottie/cisco-ai-assistant/processing_32px_loop.json",processing_32px_start:"./lottie/cisco-ai-assistant/processing_32px_start.json",responding_32px_end:"./lottie/cisco-ai-assistant/responding_32px_end.json",responding_32px_loop:"./lottie/cisco-ai-assistant/responding_32px_loop.json",responding_32px_start:"./lottie/cisco-ai-assistant/responding_32px_start.json",contacts:"./lottie/contacts.json",discoverability_badge:"./lottie/discoverability_badge.json",heart_opacity_test:"./lottie/heart_opacity_test.json",meeting:"./lottie/meeting.json",personal_insight:"./lottie/personal_insight.json",celebrate:"./lottie/reactions/celebrate.json",clap_dark:"./lottie/reactions/clap_dark.json",clap_light:"./lottie/reactions/clap_light.json",clap_medium_dark:"./lottie/reactions/clap_medium_dark.json",clap_medium_light:"./lottie/reactions/clap_medium_light.json",clap_medium:"./lottie/reactions/clap_medium.json",clap_yellow:"./lottie/reactions/clap_yellow.json",fire:"./lottie/reactions/fire.json",haha:"./lottie/reactions/haha.json",heart:"./lottie/reactions/heart.json",on_video_celebrate:"./lottie/reactions/on_video/on_video_celebrate.json",on_video_clap_dark:"./lottie/reactions/on_video/on_video_clap_dark.json",on_video_clap_light:"./lottie/reactions/on_video/on_video_clap_light.json",on_video_clap_medium_dark:"./lottie/reactions/on_video/on_video_clap_medium_dark.json",on_video_clap_medium_light:"./lottie/reactions/on_video/on_video_clap_medium_light.json",on_video_clap_medium:"./lottie/reactions/on_video/on_video_clap_medium.json",on_video_clap_yellow:"./lottie/reactions/on_video/on_video_clap_yellow.json",on_video_fire:"./lottie/reactions/on_video/on_video_fire.json",on_video_haha:"./lottie/reactions/on_video/on_video_haha.json",on_video_heart:"./lottie/reactions/on_video/on_video_heart.json",on_video_prayer_dark:"./lottie/reactions/on_video/on_video_prayer_dark.json",on_video_prayer_light:"./lottie/reactions/on_video/on_video_prayer_light.json",on_video_prayer_medium_dark:"./lottie/reactions/on_video/on_video_prayer_medium_dark.json",on_video_prayer_medium_light:"./lottie/reactions/on_video/on_video_prayer_medium_light.json",on_video_prayer_medium:"./lottie/reactions/on_video/on_video_prayer_medium.json",on_video_prayer_yellow:"./lottie/reactions/on_video/on_video_prayer_yellow.json",on_video_raise_hand_dark:"./lottie/reactions/on_video/on_video_raise_hand_dark.json",on_video_raise_hand_light:"./lottie/reactions/on_video/on_video_raise_hand_light.json",on_video_raise_hand_medium_dark:"./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",on_video_raise_hand_medium_light:"./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",on_video_raise_hand_medium:"./lottie/reactions/on_video/on_video_raise_hand_medium.json",on_video_raise_hand_yellow:"./lottie/reactions/on_video/on_video_raise_hand_yellow.json",on_video_sad:"./lottie/reactions/on_video/on_video_sad.json",on_video_slow_down:"./lottie/reactions/on_video/on_video_slow_down.json",on_video_smile:"./lottie/reactions/on_video/on_video_smile.json",on_video_speed_up:"./lottie/reactions/on_video/on_video_speed_up.json",on_video_thumb_down_dark:"./lottie/reactions/on_video/on_video_thumb_down_dark.json",on_video_thumb_down_light:"./lottie/reactions/on_video/on_video_thumb_down_light.json",on_video_thumb_down_medium_dark:"./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",on_video_thumb_down_medium_light:"./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",on_video_thumb_down_medium:"./lottie/reactions/on_video/on_video_thumb_down_medium.json",on_video_thumb_down_yellow:"./lottie/reactions/on_video/on_video_thumb_down_yellow.json",on_video_thumb_up_dark:"./lottie/reactions/on_video/on_video_thumb_up_dark.json",on_video_thumb_up_light:"./lottie/reactions/on_video/on_video_thumb_up_light.json",on_video_thumb_up_medium_dark:"./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",on_video_thumb_up_medium_light:"./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",on_video_thumb_up_medium:"./lottie/reactions/on_video/on_video_thumb_up_medium.json",on_video_thumb_up_yellow:"./lottie/reactions/on_video/on_video_thumb_up_yellow.json",on_video_wow:"./lottie/reactions/on_video/on_video_wow.json",prayer_dark:"./lottie/reactions/prayer_dark.json",prayer_light:"./lottie/reactions/prayer_light.json",prayer_medium_dark:"./lottie/reactions/prayer_medium_dark.json",prayer_medium_light:"./lottie/reactions/prayer_medium_light.json",prayer_medium:"./lottie/reactions/prayer_medium.json",prayer_yellow:"./lottie/reactions/prayer_yellow.json",raise_hand_dark:"./lottie/reactions/raise_hand_dark.json",raise_hand_light:"./lottie/reactions/raise_hand_light.json",raise_hand_medium_dark:"./lottie/reactions/raise_hand_medium_dark.json",raise_hand_medium_light:"./lottie/reactions/raise_hand_medium_light.json",raise_hand_medium:"./lottie/reactions/raise_hand_medium.json",raise_hand_yellow:"./lottie/reactions/raise_hand_yellow.json",sad:"./lottie/reactions/sad.json",slow_down:"./lottie/reactions/slow_down.json",smile:"./lottie/reactions/smile.json",speed_up:"./lottie/reactions/speed_up.json",thumb_down_dark:"./lottie/reactions/thumb_down_dark.json",thumb_down_light:"./lottie/reactions/thumb_down_light.json",thumb_down_medium_dark:"./lottie/reactions/thumb_down_medium_dark.json",thumb_down_medium_light:"./lottie/reactions/thumb_down_medium_light.json",thumb_down_medium:"./lottie/reactions/thumb_down_medium.json",thumb_down_yellow:"./lottie/reactions/thumb_down_yellow.json",thumb_up_dark:"./lottie/reactions/thumb_up_dark.json",thumb_up_light:"./lottie/reactions/thumb_up_light.json",thumb_up_medium_dark:"./lottie/reactions/thumb_up_medium_dark.json",thumb_up_medium_light:"./lottie/reactions/thumb_up_medium_light.json",thumb_up_medium:"./lottie/reactions/thumb_up_medium.json",thumb_up_yellow:"./lottie/reactions/thumb_up_yellow.json",wow:"./lottie/reactions/wow.json",space:"./lottie/space.json",success:"./lottie/success.json",teams:"./lottie/teams.json",webex_logo_loop:"./lottie/webex_logo_loop.json",welcome:"./lottie/welcome.json"};var Gx=[Tt,B`
1095
+ `}};Gs.styles=[...Q.styles,...jf],h([u({type:String,reflect:!0})],Gs.prototype,"variant",2),h([u({type:String})],Gs.prototype,"label",2);var _h=Gs;_h.register(Yl);var $x=_h;var{I:Vx}=pf;var jl=a=>a.strings===void 0,Xf=()=>document.createComment(""),Ks=(a,o,t)=>{var n;let e=a._$AA.parentNode,i=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=e.insertBefore(Xf(),i),f=e.insertBefore(Xf(),i);t=new Vx(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,g=f!==a;if(g){let A;(n=t._$AQ)==null||n.call(t,a),t._$AM=a,t._$AP!==void 0&&(A=a._$AU)!==f._$AU&&t._$AP(A)}if(c!==i||g){let A=t._$AA;for(;A!==c;){let R=A.nextSibling;e.insertBefore(A,i),A=R}}}return t},po=(a,o,t=a)=>(a._$AI(o,t),a),zx={},ql=(a,o=zx)=>a._$AH=o,Zf=a=>a._$AH,Xl=a=>{var e;(e=a._$AP)==null||e.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var br={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Oi=a=>(...o)=>({_$litDirective$:a,values:o}),li=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this.t=o,this._$AM=t,this.i=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var hn=(a,o)=>{var e;let t=a._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),hn(i,o);return!0},Zl=a=>{let o,t;do{if((o=a._$AM)===void 0)break;t=o._$AN,t.delete(a),a=o}while((t==null?void 0:t.size)===0)},Qf=a=>{for(let o;o=a._$AM;a=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(a))break;t.add(a),Ux(o)}};function Bx(a){this._$AN!==void 0?(Zl(this),this._$AM=a,Qf(this)):this._$AM=a}function Hx(a,o=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(o)if(Array.isArray(e))for(let n=t;n<e.length;n++)hn(e[n],!1),Zl(e[n]);else e!=null&&(hn(e,!1),Zl(e));else hn(this,a)}var Ux=a=>{var o,t;a.type==br.CHILD&&((o=a._$AP)!=null||(a._$AP=Hx),(t=a._$AQ)!=null||(a._$AQ=Bx))},Ql=class extends li{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),Qf(this),this.isConnected=o._$AU}_$AO(o,t=!0){var e,i;o!==this.isConnected&&(this.isConnected=o,o?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(hn(this,o),Zl(this))}setValue(o){if(jl(this.t))this.t._$AI(o,this);else{let t=[...this.t._$AH];t[this.i]=o,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Jf=()=>new kh,kh=class{},wh=new WeakMap,tv=Oi(class extends Ql{render(a){return K}update(a,[o]){var e;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(e=a.options)==null?void 0:e.host,this.rt(this.ct=a.element)),K}rt(a){var o;if(this.isConnected||(a=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=wh.get(t);e===void 0&&(e=new WeakMap,wh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,a),a!==void 0&&this.Y.call(this.ht,a)}else this.Y.value=a}get lt(){var a,o,t;return typeof this.Y=="function"?(o=wh.get((a=this.ht)!=null?a:globalThis))==null?void 0:o.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ov=$T(ev());var Nh={audio_video:"./lottie/audio_video.json",calling:"./lottie/calling.json",alert_32px_loop:"./lottie/cisco-ai-assistant/alert_32px_loop.json",hello_32px:"./lottie/cisco-ai-assistant/hello_32px.json",processing_32px_end:"./lottie/cisco-ai-assistant/processing_32px_end.json",processing_32px_loop:"./lottie/cisco-ai-assistant/processing_32px_loop.json",processing_32px_start:"./lottie/cisco-ai-assistant/processing_32px_start.json",responding_32px_end:"./lottie/cisco-ai-assistant/responding_32px_end.json",responding_32px_loop:"./lottie/cisco-ai-assistant/responding_32px_loop.json",responding_32px_start:"./lottie/cisco-ai-assistant/responding_32px_start.json",contacts:"./lottie/contacts.json",discoverability_badge:"./lottie/discoverability_badge.json",heart_opacity_test:"./lottie/heart_opacity_test.json",meeting:"./lottie/meeting.json",personal_insight:"./lottie/personal_insight.json",celebrate:"./lottie/reactions/celebrate.json",clap_dark:"./lottie/reactions/clap_dark.json",clap_light:"./lottie/reactions/clap_light.json",clap_medium_dark:"./lottie/reactions/clap_medium_dark.json",clap_medium_light:"./lottie/reactions/clap_medium_light.json",clap_medium:"./lottie/reactions/clap_medium.json",clap_yellow:"./lottie/reactions/clap_yellow.json",fire:"./lottie/reactions/fire.json",haha:"./lottie/reactions/haha.json",heart:"./lottie/reactions/heart.json",on_video_celebrate:"./lottie/reactions/on_video/on_video_celebrate.json",on_video_clap_dark:"./lottie/reactions/on_video/on_video_clap_dark.json",on_video_clap_light:"./lottie/reactions/on_video/on_video_clap_light.json",on_video_clap_medium_dark:"./lottie/reactions/on_video/on_video_clap_medium_dark.json",on_video_clap_medium_light:"./lottie/reactions/on_video/on_video_clap_medium_light.json",on_video_clap_medium:"./lottie/reactions/on_video/on_video_clap_medium.json",on_video_clap_yellow:"./lottie/reactions/on_video/on_video_clap_yellow.json",on_video_fire:"./lottie/reactions/on_video/on_video_fire.json",on_video_haha:"./lottie/reactions/on_video/on_video_haha.json",on_video_heart:"./lottie/reactions/on_video/on_video_heart.json",on_video_prayer_dark:"./lottie/reactions/on_video/on_video_prayer_dark.json",on_video_prayer_light:"./lottie/reactions/on_video/on_video_prayer_light.json",on_video_prayer_medium_dark:"./lottie/reactions/on_video/on_video_prayer_medium_dark.json",on_video_prayer_medium_light:"./lottie/reactions/on_video/on_video_prayer_medium_light.json",on_video_prayer_medium:"./lottie/reactions/on_video/on_video_prayer_medium.json",on_video_prayer_yellow:"./lottie/reactions/on_video/on_video_prayer_yellow.json",on_video_raise_hand_dark:"./lottie/reactions/on_video/on_video_raise_hand_dark.json",on_video_raise_hand_light:"./lottie/reactions/on_video/on_video_raise_hand_light.json",on_video_raise_hand_medium_dark:"./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",on_video_raise_hand_medium_light:"./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",on_video_raise_hand_medium:"./lottie/reactions/on_video/on_video_raise_hand_medium.json",on_video_raise_hand_yellow:"./lottie/reactions/on_video/on_video_raise_hand_yellow.json",on_video_sad:"./lottie/reactions/on_video/on_video_sad.json",on_video_slow_down:"./lottie/reactions/on_video/on_video_slow_down.json",on_video_smile:"./lottie/reactions/on_video/on_video_smile.json",on_video_speed_up:"./lottie/reactions/on_video/on_video_speed_up.json",on_video_thumb_down_dark:"./lottie/reactions/on_video/on_video_thumb_down_dark.json",on_video_thumb_down_light:"./lottie/reactions/on_video/on_video_thumb_down_light.json",on_video_thumb_down_medium_dark:"./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",on_video_thumb_down_medium_light:"./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",on_video_thumb_down_medium:"./lottie/reactions/on_video/on_video_thumb_down_medium.json",on_video_thumb_down_yellow:"./lottie/reactions/on_video/on_video_thumb_down_yellow.json",on_video_thumb_up_dark:"./lottie/reactions/on_video/on_video_thumb_up_dark.json",on_video_thumb_up_light:"./lottie/reactions/on_video/on_video_thumb_up_light.json",on_video_thumb_up_medium_dark:"./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",on_video_thumb_up_medium_light:"./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",on_video_thumb_up_medium:"./lottie/reactions/on_video/on_video_thumb_up_medium.json",on_video_thumb_up_yellow:"./lottie/reactions/on_video/on_video_thumb_up_yellow.json",on_video_wow:"./lottie/reactions/on_video/on_video_wow.json",prayer_dark:"./lottie/reactions/prayer_dark.json",prayer_light:"./lottie/reactions/prayer_light.json",prayer_medium_dark:"./lottie/reactions/prayer_medium_dark.json",prayer_medium_light:"./lottie/reactions/prayer_medium_light.json",prayer_medium:"./lottie/reactions/prayer_medium.json",prayer_yellow:"./lottie/reactions/prayer_yellow.json",raise_hand_dark:"./lottie/reactions/raise_hand_dark.json",raise_hand_light:"./lottie/reactions/raise_hand_light.json",raise_hand_medium_dark:"./lottie/reactions/raise_hand_medium_dark.json",raise_hand_medium_light:"./lottie/reactions/raise_hand_medium_light.json",raise_hand_medium:"./lottie/reactions/raise_hand_medium.json",raise_hand_yellow:"./lottie/reactions/raise_hand_yellow.json",sad:"./lottie/reactions/sad.json",slow_down:"./lottie/reactions/slow_down.json",smile:"./lottie/reactions/smile.json",speed_up:"./lottie/reactions/speed_up.json",thumb_down_dark:"./lottie/reactions/thumb_down_dark.json",thumb_down_light:"./lottie/reactions/thumb_down_light.json",thumb_down_medium_dark:"./lottie/reactions/thumb_down_medium_dark.json",thumb_down_medium_light:"./lottie/reactions/thumb_down_medium_light.json",thumb_down_medium:"./lottie/reactions/thumb_down_medium.json",thumb_down_yellow:"./lottie/reactions/thumb_down_yellow.json",thumb_up_dark:"./lottie/reactions/thumb_up_dark.json",thumb_up_light:"./lottie/reactions/thumb_up_light.json",thumb_up_medium_dark:"./lottie/reactions/thumb_up_medium_dark.json",thumb_up_medium_light:"./lottie/reactions/thumb_up_medium_light.json",thumb_up_medium:"./lottie/reactions/thumb_up_medium.json",thumb_up_yellow:"./lottie/reactions/thumb_up_yellow.json",wow:"./lottie/reactions/wow.json",space:"./lottie/space.json",success:"./lottie/success.json",teams:"./lottie/teams.json",webex_logo_loop:"./lottie/webex_logo_loop.json",welcome:"./lottie/welcome.json"};var Gx=[Tt,B`
1096
1096
  :host svg {
1097
1097
  display: block;
1098
1098
  }
1099
- `],ev=Gx;var rv=V.constructTagName("animation"),Lh={AUTO_PLAY:!0,LOOP:"true"};var di=class extends Q{constructor(){super(...arguments);this.loop=Lh.LOOP;this.autoplay=Lh.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Qf();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.cachedAnimationData=t,this.createLottieInstance(t),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}createLottieInstance(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=iv.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.src?this.fetchAnimationFromUrl(this.src):this.name&&Nh[this.name]?import(`@momentum-design/animations/dist/lottie${Nh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}fetchAnimationFromUrl(t){fetch(t).then(e=>{if(!e.ok)throw new Error(`Failed to fetch animation from URL: ${t} (${e.status})`);return e.json()}).then(e=>this.onLoadSuccessHandler(e)).catch(e=>this.onLoadFailHandler(e))}updated(t){super.updated(t),t.has("name")||t.has("src")?(this.cachedAnimationData=void 0,this.getAnimationData()):(t.has("loop")||t.has("autoplay"))&&this.cachedAnimationData&&this.createLottieInstance(this.cachedAnimationData),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return S`<div aria-hidden="true" ${Jf(this.containerRef)}></div>`}};di.styles=[...Q.styles,...ev],h([u({type:String,reflect:!0})],di.prototype,"name",2),h([u({type:String,reflect:!0})],di.prototype,"src",2),h([u({type:String,reflect:!0})],di.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],di.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],di.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],di.prototype,"ariaLabelledby",2);var Mh=di;Mh.register(rv);var Kx=Mh;var td=a=>{class o extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(i){this.isFocusTrapActivated=i}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Ni.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Ni.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=jo(this.shadowRoot,{stopAtNonTabbable:!0}))}setInitialFocus(i=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus({preventScroll:!0}))}calculateNextIndex(i,n){let{length:c}=this.focusableElements;if(i===-1)return n>0?0:c-1;let f=i+n;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var n;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((n=i.shadowRoot)!=null&&n.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(n=>this.isEqualFocusNode(i,n))}isEqualFocusNode(i,n){return i.nodeType>=0?n.isEqualNode(i)&&n===i:!1}trapFocus(i){if(this.setFocusableElements(),this.focusableElements.length===0)return;let n=this.getDeepActiveElement(),c=this.findElement(n);i.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let g=this.focusableElements[this.focusTrapIndex];g.tagName!=="IFRAME"&&g&&(i.preventDefault(),g.focus())}handleTabKeydown(i){this.isFocusTrapActivated&&i.key==="Tab"&&this.trapFocus(i)}}return h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var ed=a=>{class o extends a{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var rd=V.constructTagName("link"),id={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},od={LARGE:1,MIDSIZE:.875,SMALL:.75},ov={LINK_SIZE:id.LARGE};var sv=V.constructTagName("card"),Oh={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Wx={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ce={VARIANT:Oh.BORDER,ORIENTATION:Wx.VERTICAL,TITLE_TYPE:at.HEADING_SMALL_BOLD,SUBTITLE_TYPE:at.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:rd,BUTTON:ki};var Ws=a=>{class o extends a{updateFooterButtonColors(e){let i=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];i==null||i.forEach(n=>{e===Oh.PROMOTIONAL?n.setAttribute("color",ri.PROMOTIONAL):n.setAttribute("color",ri.DEFAULT)})}handleFooterSlot(e,i){var c,f,g;let n=[];e===Ce.LINK&&((c=this.footerLink)!=null&&c.length)?n=this.footerLink:e===Ce.BUTTON&&i===Bt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?n=this.footerButtonPrimary:e===Ce.BUTTON&&i===Bt.SECONDARY&&((g=this.footerButtonSecondary)!=null&&g.length)&&(n=this.footerButtonSecondary);for(let A=1;A<n.length;A+=1)n[A].remove();n.forEach(A=>{A.matches(e)||A.remove(),i&&A.setAttribute("variant",i)})}renderFooter(){return S` <slot name="footer">
1099
+ `],rv=Gx;var iv=V.constructTagName("animation"),Lh={AUTO_PLAY:!0,LOOP:"true"};var di=class extends Q{constructor(){super(...arguments);this.loop=Lh.LOOP;this.autoplay=Lh.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Jf();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.cachedAnimationData=t,this.createLottieInstance(t),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}createLottieInstance(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=ov.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.src?this.fetchAnimationFromUrl(this.src):this.name&&Nh[this.name]?import(`@momentum-design/animations/dist/lottie${Nh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}fetchAnimationFromUrl(t){fetch(t).then(e=>{if(!e.ok)throw new Error(`Failed to fetch animation from URL: ${t} (${e.status})`);return e.json()}).then(e=>this.onLoadSuccessHandler(e)).catch(e=>this.onLoadFailHandler(e))}updated(t){super.updated(t),t.has("name")||t.has("src")?(this.cachedAnimationData=void 0,this.getAnimationData()):(t.has("loop")||t.has("autoplay"))&&this.cachedAnimationData&&this.createLottieInstance(this.cachedAnimationData),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return S`<div aria-hidden="true" ${tv(this.containerRef)}></div>`}};di.styles=[...Q.styles,...rv],h([u({type:String,reflect:!0})],di.prototype,"name",2),h([u({type:String,reflect:!0})],di.prototype,"src",2),h([u({type:String,reflect:!0})],di.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],di.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],di.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],di.prototype,"ariaLabelledby",2);var Mh=di;Mh.register(iv);var Kx=Mh;var td=a=>{class o extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(i){this.isFocusTrapActivated=i}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Ni.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Ni.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=jo(this.shadowRoot,{stopAtNonTabbable:!0}))}setInitialFocus(i=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus({preventScroll:!0}))}calculateNextIndex(i,n){let{length:c}=this.focusableElements;if(i===-1)return n>0?0:c-1;let f=i+n;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var n;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((n=i.shadowRoot)!=null&&n.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(n=>this.isEqualFocusNode(i,n))}isEqualFocusNode(i,n){return i.nodeType>=0?n.isEqualNode(i)&&n===i:!1}trapFocus(i){if(this.setFocusableElements(),this.focusableElements.length===0)return;let n=this.getDeepActiveElement(),c=this.findElement(n);i.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let g=this.focusableElements[this.focusTrapIndex];g.tagName!=="IFRAME"&&g&&(i.preventDefault(),g.focus())}handleTabKeydown(i){this.isFocusTrapActivated&&i.key==="Tab"&&this.trapFocus(i)}}return h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var ed=a=>{class o extends a{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var rd=V.constructTagName("link"),id={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},od={LARGE:1,MIDSIZE:.875,SMALL:.75},sv={LINK_SIZE:id.LARGE};var av=V.constructTagName("card"),Oh={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Wx={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ce={VARIANT:Oh.BORDER,ORIENTATION:Wx.VERTICAL,TITLE_TYPE:at.HEADING_SMALL_BOLD,SUBTITLE_TYPE:at.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:rd,BUTTON:ki};var Ws=a=>{class o extends a{updateFooterButtonColors(e){let i=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];i==null||i.forEach(n=>{e===Oh.PROMOTIONAL?n.setAttribute("color",ri.PROMOTIONAL):n.setAttribute("color",ri.DEFAULT)})}handleFooterSlot(e,i){var c,f,g;let n=[];e===Ce.LINK&&((c=this.footerLink)!=null&&c.length)?n=this.footerLink:e===Ce.BUTTON&&i===Bt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?n=this.footerButtonPrimary:e===Ce.BUTTON&&i===Bt.SECONDARY&&((g=this.footerButtonSecondary)!=null&&g.length)&&(n=this.footerButtonSecondary);for(let A=1;A<n.length;A+=1)n[A].remove();n.forEach(A=>{A.matches(e)||A.remove(),i&&A.setAttribute("variant",i)})}renderFooter(){return S` <slot name="footer">
1100
1100
  <div part="footer">
1101
1101
  <slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(Ce.LINK)}></slot>
1102
1102
  <slot
@@ -1108,7 +1108,7 @@
1108
1108
  @slotchange=${()=>this.handleFooterSlot(Ce.BUTTON,Bt.PRIMARY)}
1109
1109
  ></slot>
1110
1110
  </div>
1111
- </slot>`}}return h([qt({slot:"footer-link"})],o.prototype,"footerLink",2),h([qt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),h([qt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var Ye=[],av=1e3,Yx=3,Rh=-2,Dh=-1,mo=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return Ye.length}pushHost(){var o,t;return this.has(this.host)?!1:(Ye.push(this.host),(t=(o=this.host).onComponentStackChanged)==null||t.call(o,"added"),!0)}popHost(){return this.popItem(this.host)}popItem(o){if(!this.has(o))return;let t=Ye.filter(n=>n.stackGroupName===o.stackGroupName),e=t.indexOf(o),i=[];for(let n=t.length-1;n>=e;n-=1){let c=t[n];(c===o||c.triggerID!==o.triggerID)&&i.push(c)}return this.remove(i),o}pop(){var t;let o=Ye.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let e=Ye.length-1;e>=0;e-=1){let i=Ye[e],n=o(i,e);if(n===!1)break;n!=="skip"&&t.push(i)}return this.remove(t)}peek(){return Ye.at(-1)}remove(o){var i,n;let t=o.filter(c=>Ye.includes(c)),e=t.reduce((c,f)=>Math.min(c,Ye.indexOf(f)),1/0);t.forEach(c=>{Ye.splice(Ye.indexOf(c),1)}),t.forEach(c=>{var f;(f=c==null?void 0:c.onComponentStackChanged)==null||f.call(c,"removed")});for(let c=e;c<Ye.length;c+=1)(n=(i=Ye[c]).onComponentStackChanged)==null||n.call(i,"moved");return t}has(o){return Ye.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return Ye.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?av+t*Yx:av}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var sd=a=>{class o extends a{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(i){var n;if(super.update(i),i.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+Rh}`;let c=(n=this.triggerElementCache)==null?void 0:n.deref();c&&(c.style.zIndex=`${this.zIndex+Dh}`)}}createBackdrop(i){let n=document.createElement("div");n.classList.add(`${i}-backdrop`);let c=document.createElement("style"),f=this.isBackdropInvisible?"transparent":getComputedStyle(this).getPropertyValue("--mdc-backdrop-mixin-background-color")||"var(--mds-color-theme-common-overlays-secondary-normal)";c.textContent=`
1111
+ </slot>`}}return h([qt({slot:"footer-link"})],o.prototype,"footerLink",2),h([qt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),h([qt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var Ye=[],nv=1e3,Yx=3,Rh=-2,Dh=-1,mo=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return Ye.length}pushHost(){var o,t;return this.has(this.host)?!1:(Ye.push(this.host),(t=(o=this.host).onComponentStackChanged)==null||t.call(o,"added"),!0)}popHost(){return this.popItem(this.host)}popItem(o){if(!this.has(o))return;let t=Ye.filter(n=>n.stackGroupName===o.stackGroupName),e=t.indexOf(o),i=[];for(let n=t.length-1;n>=e;n-=1){let c=t[n];(c===o||c.triggerID!==o.triggerID)&&i.push(c)}return this.remove(i),o}pop(){var t;let o=Ye.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let e=Ye.length-1;e>=0;e-=1){let i=Ye[e],n=o(i,e);if(n===!1)break;n!=="skip"&&t.push(i)}return this.remove(t)}peek(){return Ye.at(-1)}remove(o){var i,n;let t=o.filter(c=>Ye.includes(c)),e=t.reduce((c,f)=>Math.min(c,Ye.indexOf(f)),1/0);t.forEach(c=>{Ye.splice(Ye.indexOf(c),1)}),t.forEach(c=>{var f;(f=c==null?void 0:c.onComponentStackChanged)==null||f.call(c,"removed")});for(let c=e;c<Ye.length;c+=1)(n=(i=Ye[c]).onComponentStackChanged)==null||n.call(i,"moved");return t}has(o){return Ye.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return Ye.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?nv+t*Yx:nv}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var sd=a=>{class o extends a{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(i){var n;if(super.update(i),i.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+Rh}`;let c=(n=this.triggerElementCache)==null?void 0:n.deref();c&&(c.style.zIndex=`${this.zIndex+Dh}`)}}createBackdrop(i){let n=document.createElement("div");n.classList.add(`${i}-backdrop`);let c=document.createElement("style"),f=this.isBackdropInvisible?"transparent":getComputedStyle(this).getPropertyValue("--mdc-backdrop-mixin-background-color")||"var(--mds-color-theme-common-overlays-secondary-normal)";c.textContent=`
1112
1112
  .${i}-backdrop {
1113
1113
  position: fixed;
1114
1114
  top: 0;
@@ -1118,7 +1118,7 @@
1118
1118
  background: ${f};
1119
1119
  z-index: ${this.zIndex+Rh};
1120
1120
  }
1121
- `,n.appendChild(c);let A=document.getElementById(this.backdropAppendTo)||this.parentElement;A==null||A.appendChild(n),this.backdropElement=n}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(i){i&&(this.triggerElementCache=new WeakRef(i),this.elementOriginalStyle={zIndex:i.style.zIndex,position:i.style.position},i.style.zIndex=`${this.zIndex+Dh}`,["fixed","absolute"].includes(window.getComputedStyle(i).position)||(i.style.position="relative"))}moveElementBackAfterBackdropRemoval(i){!i||!this.elementOriginalStyle||(i.style.zIndex=this.elementOriginalStyle.zIndex,i.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var ad=V.constructTagName("responsivesettingsprovider"),Br={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},nv=["float","dialog"],lv=["unknown","mobile","desktop","tablet"];var nd=class{constructor(o={}){this.media=Br.MEDIA;this.forceFullscreenDialog=Br.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=Br.POPOVER_POSITIONING;Object.assign(this,o)}};nd.context=ad;var ld=nd;var Ys=class extends Se{constructor(){super({context:ld.context,initialValue:new ld({media:Br.MEDIA,popoverPositioning:Br.POPOVER_POSITIONING,forceFullscreenDialog:Br.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=Br.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=Br.POPOVER_POSITIONING;this.privateMedia=Br.MEDIA}static get Context(){return ld.context}set popoverPositioning(t){nv.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){lv.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,e,i;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((e=this.context.value)==null?void 0:e.popoverPositioning)!==this.privatePopoverPositioning||((i=this.context.value)==null?void 0:i.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};h([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],Ys.prototype,"forceFullscreenDialog",2),h([u({type:String,attribute:"popover-positioning",reflect:!0})],Ys.prototype,"popoverPositioning",1),h([u({type:String,attribute:"media",reflect:!0})],Ys.prototype,"media",1);var Ph=Ys;Ph.register(ad);var Fh=Ph;var dv=V.constructTagName("dialog"),$h={DEFAULT:"default",PROMOTIONAL:"promotional"},_r={VISIBLE:!1,Z_INDEX:1e3,ROLE:et.DIALOG,SIZE:"small",HEADER_TAG_NAME:pt.H2,DESCRIPTION_TAG_NAME:pt.P,CANCEL_ICON:"cancel-bold",VARIANT:$h.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var LO=[et.DIALOG,et.ALERTDIALOG];var uo=class{static dispatchDialogEvent(o,t,e=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:e}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,t=!0){this.dispatchDialogEvent("close",o,t)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var jx=B`
1121
+ `,n.appendChild(c);let A=document.getElementById(this.backdropAppendTo)||this.parentElement;A==null||A.appendChild(n),this.backdropElement=n}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(i){i&&(this.triggerElementCache=new WeakRef(i),this.elementOriginalStyle={zIndex:i.style.zIndex,position:i.style.position},i.style.zIndex=`${this.zIndex+Dh}`,["fixed","absolute"].includes(window.getComputedStyle(i).position)||(i.style.position="relative"))}moveElementBackAfterBackdropRemoval(i){!i||!this.elementOriginalStyle||(i.style.zIndex=this.elementOriginalStyle.zIndex,i.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var ad=V.constructTagName("responsivesettingsprovider"),Br={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},lv=["float","dialog"],dv=["unknown","mobile","desktop","tablet"];var nd=class{constructor(o={}){this.media=Br.MEDIA;this.forceFullscreenDialog=Br.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=Br.POPOVER_POSITIONING;Object.assign(this,o)}};nd.context=ad;var ld=nd;var Ys=class extends Se{constructor(){super({context:ld.context,initialValue:new ld({media:Br.MEDIA,popoverPositioning:Br.POPOVER_POSITIONING,forceFullscreenDialog:Br.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=Br.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=Br.POPOVER_POSITIONING;this.privateMedia=Br.MEDIA}static get Context(){return ld.context}set popoverPositioning(t){lv.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){dv.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,e,i;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((e=this.context.value)==null?void 0:e.popoverPositioning)!==this.privatePopoverPositioning||((i=this.context.value)==null?void 0:i.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};h([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],Ys.prototype,"forceFullscreenDialog",2),h([u({type:String,attribute:"popover-positioning",reflect:!0})],Ys.prototype,"popoverPositioning",1),h([u({type:String,attribute:"media",reflect:!0})],Ys.prototype,"media",1);var Ph=Ys;Ph.register(ad);var Fh=Ph;var cv=V.constructTagName("dialog"),$h={DEFAULT:"default",PROMOTIONAL:"promotional"},_r={VISIBLE:!1,Z_INDEX:1e3,ROLE:et.DIALOG,SIZE:"small",HEADER_TAG_NAME:pt.H2,DESCRIPTION_TAG_NAME:pt.P,CANCEL_ICON:"cancel-bold",VARIANT:$h.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var LO=[et.DIALOG,et.ALERTDIALOG];var uo=class{static dispatchDialogEvent(o,t,e=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:e}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,t=!0){this.dispatchDialogEvent("close",o,t)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var jx=B`
1122
1122
  :host {
1123
1123
  --mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
1124
1124
  --mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
@@ -1271,7 +1271,7 @@
1271
1271
  mdc-text::part(text) {
1272
1272
  margin: 0;
1273
1273
  }
1274
- `,cv=[jx];var ee=class extends Ot(Nt(sd(ed(td(Ws(Q)))))){constructor(){super(...arguments);this.responsiveSettingsContext=Ie.consume({host:this,context:Fh.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new mo(this);this.id="";this.visible=_r.VISIBLE;this.internalSize=_r.SIZE;this.variant=_r.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=_r.HEADER_TAG_NAME;this.descriptionTagName=_r.DESCRIPTION_TAG_NAME;this.role=_r.ROLE;this.disableAriaHasPopup=_r.DISABLE_ARIA_HAS_POPUP;this.focusTrap=_r.FOCUS_TRAP;this.hideBackdrop=_r.HIDE_BACKDROP;this.stackGroupName="";this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==G.ESCAPE||!this.depthManager.isHostOnTop()||(t.preventDefault(),t.stopPropagation(),this.keyDownEventHandled(),this.closeDialog())}}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get size(){var t,e;return(e=(t=this.responsiveSettingsContext)==null?void 0:t.value)!=null&&e.forceFullscreenDialog?"fullscreen":this.internalSize}set size(t){this.internalSize=t}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(e=this.deactivateFocusTrap)==null||e.call(this),this.focusBackToTrigger(),uo.onDestroyedDialog(this)}applyZIndex(){this.style.setProperty("z-index",`${this.zIndex}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),uo.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerID")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),this.setupAriaHasPopup()),t.has("visible")){let e=t.get("visible");await this.isOpenUpdated(e,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=_r.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledby")||t.has("ariaDescribedby")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,e;this.disableAriaHasPopup||(e=this.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerID&&this.setAttribute("aria-labelledby",this.triggerID)),!this.ariaDescribedby&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerID&&this.setAttribute("aria-describedby",this.triggerID))}closeDialog(){this.depthManager.popHost(),uo.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var i,n,c,f,g;t!==e&&(e&&!t?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.lastActiveElement=document.activeElement,this.hideBackdrop||(this.removeBackdrop(),this.createBackdrop("dialog")),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((i=this.activateFocusTrap)==null||i.call(this)),(n=this.setInitialFocus)==null||n.call(this),(c=this.triggerElement)==null||c.setAttribute("aria-expanded","true"),uo.onShowDialog(this)):!e&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(g=this.deactivateFocusTrap)==null||g.call(this),this.focusBackToTrigger(),uo.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?S` <div part="header-section">
1274
+ `,hv=[jx];var ee=class extends Ot(Nt(sd(ed(td(Ws(Q)))))){constructor(){super(...arguments);this.responsiveSettingsContext=Ie.consume({host:this,context:Fh.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new mo(this);this.id="";this.visible=_r.VISIBLE;this.internalSize=_r.SIZE;this.variant=_r.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=_r.HEADER_TAG_NAME;this.descriptionTagName=_r.DESCRIPTION_TAG_NAME;this.role=_r.ROLE;this.disableAriaHasPopup=_r.DISABLE_ARIA_HAS_POPUP;this.focusTrap=_r.FOCUS_TRAP;this.hideBackdrop=_r.HIDE_BACKDROP;this.stackGroupName="";this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==G.ESCAPE||!this.depthManager.isHostOnTop()||(t.preventDefault(),t.stopPropagation(),this.keyDownEventHandled(),this.closeDialog())}}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get size(){var t,e;return(e=(t=this.responsiveSettingsContext)==null?void 0:t.value)!=null&&e.forceFullscreenDialog?"fullscreen":this.internalSize}set size(t){this.internalSize=t}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(e=this.deactivateFocusTrap)==null||e.call(this),this.focusBackToTrigger(),uo.onDestroyedDialog(this)}applyZIndex(){this.style.setProperty("z-index",`${this.zIndex}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),uo.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerID")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),this.setupAriaHasPopup()),t.has("visible")){let e=t.get("visible");await this.isOpenUpdated(e,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=_r.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledby")||t.has("ariaDescribedby")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,e;this.disableAriaHasPopup||(e=this.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerID&&this.setAttribute("aria-labelledby",this.triggerID)),!this.ariaDescribedby&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerID&&this.setAttribute("aria-describedby",this.triggerID))}closeDialog(){this.depthManager.popHost(),uo.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var i,n,c,f,g;t!==e&&(e&&!t?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.lastActiveElement=document.activeElement,this.hideBackdrop||(this.removeBackdrop(),this.createBackdrop("dialog")),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((i=this.activateFocusTrap)==null||i.call(this)),(n=this.setInitialFocus)==null||n.call(this),(c=this.triggerElement)==null||c.setAttribute("aria-expanded","true"),uo.onShowDialog(this)):!e&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(g=this.deactivateFocusTrap)==null||g.call(this),this.focusBackToTrigger(),uo.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?S` <div part="header-section">
1275
1275
  <div part="header">
1276
1276
  <slot name="header-prefix"></slot>
1277
1277
  <mdc-text
@@ -1302,7 +1302,7 @@
1302
1302
  @click="${this.closeDialog}"
1303
1303
  ></mdc-button>
1304
1304
  ${this.renderBody()} ${this.renderFooter()}
1305
- `}};ee.styles=[...Q.styles,...cv],h([u({type:String,reflect:!0})],ee.prototype,"id",2),h([u({type:String,reflect:!0})],ee.prototype,"triggerID",2),h([u({type:Boolean,reflect:!0})],ee.prototype,"visible",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],ee.prototype,"zIndex",1),h([u({type:String,reflect:!0})],ee.prototype,"size",1),h([u({type:String,reflect:!0})],ee.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],ee.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],ee.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],ee.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],ee.prototype,"ariaDescribedby",2),h([u({type:String,reflect:!0,attribute:"aria-description"})],ee.prototype,"ariaDescription",2),h([u({type:String,reflect:!0,attribute:"header-text"})],ee.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"description-text"})],ee.prototype,"descriptionText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],ee.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"description-tag-name"})],ee.prototype,"descriptionTagName",2),h([u({type:String,reflect:!0})],ee.prototype,"role",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],ee.prototype,"disableAriaHasPopup",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],ee.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],ee.prototype,"hideBackdrop",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],ee.prototype,"stackGroupName",2);var js=ee;var qx=B`
1305
+ `}};ee.styles=[...Q.styles,...hv],h([u({type:String,reflect:!0})],ee.prototype,"id",2),h([u({type:String,reflect:!0})],ee.prototype,"triggerID",2),h([u({type:Boolean,reflect:!0})],ee.prototype,"visible",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],ee.prototype,"zIndex",1),h([u({type:String,reflect:!0})],ee.prototype,"size",1),h([u({type:String,reflect:!0})],ee.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],ee.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],ee.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],ee.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],ee.prototype,"ariaDescribedby",2),h([u({type:String,reflect:!0,attribute:"aria-description"})],ee.prototype,"ariaDescription",2),h([u({type:String,reflect:!0,attribute:"header-text"})],ee.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"description-text"})],ee.prototype,"descriptionText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],ee.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"description-tag-name"})],ee.prototype,"descriptionTagName",2),h([u({type:String,reflect:!0})],ee.prototype,"role",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],ee.prototype,"disableAriaHasPopup",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],ee.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],ee.prototype,"hideBackdrop",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],ee.prototype,"stackGroupName",2);var js=ee;var qx=B`
1306
1306
  :host {
1307
1307
  --mdc-announcementdialog-illustration-background-color: var(--mds-color-theme-background-solid-secondary-normal);
1308
1308
 
@@ -1351,7 +1351,7 @@
1351
1351
  margin-inline-end: 0;
1352
1352
  }
1353
1353
  }
1354
- `,hv=[qx];var pv=V.constructTagName("announcementdialog");var mv={SIZE:"medium"};var qs=class extends js{get size(){var o,t;return(t=(o=this.responsiveSettingsContext)==null?void 0:o.value)!=null&&t.forceFullscreenDialog?"fullscreen":this.internalSize}set size(o){this.internalSize=o}constructor(){super(),this.internalSize=mv.SIZE}connectedCallback(){super.connectedCallback(),this.variant=$h.DEFAULT}renderHeader(){return S`${K}`}renderBody(){return S`
1354
+ `,pv=[qx];var mv=V.constructTagName("announcementdialog");var uv={SIZE:"medium"};var qs=class extends js{get size(){var o,t;return(t=(o=this.responsiveSettingsContext)==null?void 0:o.value)!=null&&t.forceFullscreenDialog?"fullscreen":this.internalSize}set size(o){this.internalSize=o}constructor(){super(),this.internalSize=uv.SIZE}connectedCallback(){super.connectedCallback(),this.variant=$h.DEFAULT}renderHeader(){return S`${K}`}renderBody(){return S`
1355
1355
  <div part="body">
1356
1356
  <div part="illustration-container">
1357
1357
  <slot name="illustration-container">
@@ -1371,7 +1371,7 @@
1371
1371
  </slot>
1372
1372
  </div>
1373
1373
  </div>
1374
- `}};qs.styles=[...js.styles,...hv],h([u({type:String,reflect:!0})],qs.prototype,"illustration",2),h([u({type:String,reflect:!0})],qs.prototype,"size",1);var Vh=qs;var dd=V.constructTagName("illustrationprovider"),uv=["svg"],pn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var cd=class{};cd.context=dd;var hd=cd;var fo=class extends Se{constructor(){super({context:hd.context,initialValue:new hd});this.illustrationSet=pn.ILLUSTRATION_SET;this.fileExtension=pn.FILE_EXTENSION}static get Context(){return hd.context}updateValuesInContext(){this.fileExtension&&uv.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=pn.FILE_EXTENSION,this.context.value.fileExtension=pn.FILE_EXTENSION),this.context.value.illustrationSet=this.illustrationSet,this.context.value.url=this.url,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.illustrationSet!==this.illustrationSet||this.context.value.url!==this.url||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"illustration-set",reflect:!0})],fo.prototype,"illustrationSet",2),h([u({type:String})],fo.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],fo.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],fo.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],fo.prototype,"cacheName",2);var mn=fo;var Xx=[Tt,B`
1374
+ `}};qs.styles=[...js.styles,...pv],h([u({type:String,reflect:!0})],qs.prototype,"illustration",2),h([u({type:String,reflect:!0})],qs.prototype,"size",1);var Vh=qs;var dd=V.constructTagName("illustrationprovider"),fv=["svg"],mn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var cd=class{};cd.context=dd;var hd=cd;var fo=class extends Se{constructor(){super({context:hd.context,initialValue:new hd});this.illustrationSet=mn.ILLUSTRATION_SET;this.fileExtension=mn.FILE_EXTENSION}static get Context(){return hd.context}updateValuesInContext(){this.fileExtension&&fv.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=mn.FILE_EXTENSION,this.context.value.fileExtension=mn.FILE_EXTENSION),this.context.value.illustrationSet=this.illustrationSet,this.context.value.url=this.url,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.illustrationSet!==this.illustrationSet||this.context.value.url!==this.url||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"illustration-set",reflect:!0})],fo.prototype,"illustrationSet",2),h([u({type:String})],fo.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],fo.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],fo.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],fo.prototype,"cacheName",2);var un=fo;var Xx=[Tt,B`
1375
1375
  :host {
1376
1376
  --mdc-illustration-size: auto;
1377
1377
  }
@@ -1379,7 +1379,7 @@
1379
1379
  height: var(--mdc-illustration-size);
1380
1380
  width: var(--mdc-illustration-size);
1381
1381
  }
1382
- `],fv=Xx;var vv=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),gv=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:n})=>{let c=n(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?vv(f).then(g=>g.text()):Gl(i,e).then(g=>g.get(f).then(A=>A||vv(f.clone()).then(R=>{var H;return R.status<400&&R.headers.has("content-type")?(H=g.set)==null?void 0:H.call(g,f,R.clone()).then(()=>R.text()):R.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${o}, ${A}`)}))};var bv=V.constructTagName("illustration"),yv={NAME:void 0};var Ri=class extends Q{constructor(){super();this.name=yv.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Ie.consume({host:this,context:mn.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","illustration"),e.setAttribute("aria-hidden","true"),e}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:e,url:i,cacheName:n,illustrationSet:c,cacheStrategy:f}=this.illustrationProviderContext.value;if(c==="custom-illustrations"&&i&&e&&this.name){let g=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return gv({url:i,name:this.name,fileExtension:e,cacheName:n,cacheStrategy:f,renewSignal:g}).then(A=>{let R=this.prepareIllustrationElement(A);this.handleIllustrationLoadedSuccess(R)}).catch(A=>{this.handleIllustrationLoadedFailure(A)})}if(c==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(g=>{this.handleIllustrationLoadedSuccess(g.default())}).catch(g=>{this.handleIllustrationLoadedFailure(g)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIllustrationLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(e=>{e.name!=="AbortError"&&this.onerror&&this.onerror(e)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.illustrationData} `}};Ri.styles=[...Q.styles,...fv],h([dt()],Ri.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],Ri.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],Ri.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Ri.prototype,"ariaLabelledby",2),h([dt()],Ri.prototype,"abortController",2);var zh=Ri;zh.register(bv);var Zx=zh;Vh.register(pv);var Qx=Vh;var Jx=B`
1382
+ `],vv=Xx;var gv=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),bv=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:n})=>{let c=n(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?gv(f).then(g=>g.text()):Gl(i,e).then(g=>g.get(f).then(A=>A||gv(f.clone()).then(R=>{var H;return R.status<400&&R.headers.has("content-type")?(H=g.set)==null?void 0:H.call(g,f,R.clone()).then(()=>R.text()):R.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${o}, ${A}`)}))};var yv=V.constructTagName("illustration"),Ev={NAME:void 0};var Ri=class extends Q{constructor(){super();this.name=Ev.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Ie.consume({host:this,context:un.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","illustration"),e.setAttribute("aria-hidden","true"),e}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:e,url:i,cacheName:n,illustrationSet:c,cacheStrategy:f}=this.illustrationProviderContext.value;if(c==="custom-illustrations"&&i&&e&&this.name){let g=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return bv({url:i,name:this.name,fileExtension:e,cacheName:n,cacheStrategy:f,renewSignal:g}).then(A=>{let R=this.prepareIllustrationElement(A);this.handleIllustrationLoadedSuccess(R)}).catch(A=>{this.handleIllustrationLoadedFailure(A)})}if(c==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(g=>{this.handleIllustrationLoadedSuccess(g.default())}).catch(g=>{this.handleIllustrationLoadedFailure(g)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIllustrationLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(e=>{e.name!=="AbortError"&&this.onerror&&this.onerror(e)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.illustrationData} `}};Ri.styles=[...Q.styles,...vv],h([dt()],Ri.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],Ri.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],Ri.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Ri.prototype,"ariaLabelledby",2),h([dt()],Ri.prototype,"abortController",2);var zh=Ri;zh.register(yv);var Zx=zh;Vh.register(mv);var Qx=Vh;var Jx=B`
1383
1383
  :host {
1384
1384
  --mdc-appheader-height: 4rem;
1385
1385
  }
@@ -1413,7 +1413,7 @@
1413
1413
  justify-content: flex-end;
1414
1414
  flex: 1;
1415
1415
  }
1416
- `,Ev=[Jx];var pd=class extends Q{render(){return S`
1416
+ `,Tv=[Jx];var pd=class extends Q{render(){return S`
1417
1417
  <header part="container">
1418
1418
  <div part="leading-section">
1419
1419
  <slot name="leading"></slot>
@@ -1423,7 +1423,7 @@
1423
1423
  <slot name="trailing"></slot>
1424
1424
  </div>
1425
1425
  </header>
1426
- `}};pd.styles=[...Q.styles,...Ev];var Bh=pd;var Tv=V.constructTagName("appheader");Bh.register(Tv);var tA=Bh;var xv=V.constructTagName("avatar"),je={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Hh=99,eA="user-regular",Xt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Xs={TYPE:je.PHOTO,SIZE:Xt[32],ICON_NAME:eA};var md=a=>{class o extends a{constructor(){super(...arguments);this.size=Xs.SIZE;this.isTyping=!1}}return h([u({type:String})],o.prototype,"src",2),h([u({type:String})],o.prototype,"initials",2),h([u({type:String})],o.prototype,"presence",2),h([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),h([u({type:Number})],o.prototype,"counter",2),h([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var rA=[Tt,B`
1426
+ `}};pd.styles=[...Q.styles,...Tv];var Bh=pd;var xv=V.constructTagName("appheader");Bh.register(xv);var tA=Bh;var Av=V.constructTagName("avatar"),je={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Hh=99,eA="user-regular",Xt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Xs={TYPE:je.PHOTO,SIZE:Xt[32],ICON_NAME:eA};var md=a=>{class o extends a{constructor(){super(...arguments);this.size=Xs.SIZE;this.isTyping=!1}}return h([u({type:String})],o.prototype,"src",2),h([u({type:String})],o.prototype,"initials",2),h([u({type:String})],o.prototype,"presence",2),h([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),h([u({type:Number})],o.prototype,"counter",2),h([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var rA=[Tt,B`
1427
1427
  :host {
1428
1428
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
1429
1429
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -1580,8 +1580,8 @@
1580
1580
  outline: 0.125rem solid;
1581
1581
  }
1582
1582
  }
1583
- `],Av=rA;var Sv=V.constructTagName("presence"),Be={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},pe={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Zs={TYPE:Be.ACTIVE,SIZE:pe[32]};var Iv=a=>({[Xt[124]]:pe[124],[Xt[88]]:pe[88],[Xt[72]]:pe[72],[Xt[64]]:pe[64],[Xt[48]]:pe[48],[Xt[32]]:pe[32],[Xt[24]]:pe[24]})[a]||pe[32],Cv=a=>({[Xt[124]]:4.75,[Xt[88]]:3,[Xt[72]]:2.5,[Xt[64]]:2.25,[Xt[48]]:1.75,[Xt[32]]:1.25,[Xt[24]]:1})[a]||1.25,_v=a=>({[Xt[124]]:at.HEADING_XLARGE_MEDIUM,[Xt[88]]:at.HEADING_LARGE_MEDIUM,[Xt[72]]:at.HEADING_MIDSIZE_MEDIUM,[Xt[64]]:at.HEADING_SMALL_MEDIUM,[Xt[48]]:at.HEADING_SMALL_MEDIUM,[Xt[32]]:at.BODY_MIDSIZE_MEDIUM,[Xt[24]]:at.BODY_SMALL_MEDIUM})[a]||at.BODY_MIDSIZE_MEDIUM;var un=class extends md(he(Q)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===je.COUNTER&&(this.counter||this.counter===0)||this.isTyping?K:this.presence?S`
1584
- <mdc-presence part="presence" type="${this.presence}" size="${Iv(this.size)}"></mdc-presence>
1583
+ `],Sv=rA;var Iv=V.constructTagName("presence"),Be={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},pe={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Zs={TYPE:Be.ACTIVE,SIZE:pe[32]};var Cv=a=>({[Xt[124]]:pe[124],[Xt[88]]:pe[88],[Xt[72]]:pe[72],[Xt[64]]:pe[64],[Xt[48]]:pe[48],[Xt[32]]:pe[32],[Xt[24]]:pe[24]})[a]||pe[32],_v=a=>({[Xt[124]]:4.75,[Xt[88]]:3,[Xt[72]]:2.5,[Xt[64]]:2.25,[Xt[48]]:1.75,[Xt[32]]:1.25,[Xt[24]]:1})[a]||1.25,wv=a=>({[Xt[124]]:at.HEADING_XLARGE_MEDIUM,[Xt[88]]:at.HEADING_LARGE_MEDIUM,[Xt[72]]:at.HEADING_MIDSIZE_MEDIUM,[Xt[64]]:at.HEADING_SMALL_MEDIUM,[Xt[48]]:at.HEADING_SMALL_MEDIUM,[Xt[32]]:at.BODY_MIDSIZE_MEDIUM,[Xt[24]]:at.BODY_SMALL_MEDIUM})[a]||at.BODY_MIDSIZE_MEDIUM;var fn=class extends md(he(Q)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===je.COUNTER&&(this.counter||this.counter===0)||this.isTyping?K:this.presence?S`
1584
+ <mdc-presence part="presence" type="${this.presence}" size="${Cv(this.size)}"></mdc-presence>
1585
1585
  `:K}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return S`
1586
1586
  <img
1587
1587
  part="photo"
@@ -1592,11 +1592,11 @@
1592
1592
  @error="${this.handleOnError}"
1593
1593
  />
1594
1594
  `}iconTemplate(){let t=this.iconName||Xs.ICON_NAME;return S`
1595
- <mdc-icon name="${tt(t)}" length-unit="rem" size="${Cv(this.size)}"></mdc-icon>
1596
- `}textTemplate(t){return S` <mdc-text type="${_v(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>Hh?`${Hh}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let e="";return t===je.TEXT&&this.initials&&(e=this.generateInitialsText(this.initials)),t===je.COUNTER&&(this.counter||this.counter===0)&&(e=this.generateCounterText(this.counter)),this.textTemplate(e)}getTypeBasedOnInputs(){return this.src?je.PHOTO:this.iconName?je.ICON:this.initials?je.TEXT:this.counter||this.counter===0?je.COUNTER:je.ICON}getTemplateBasedOnType(t){switch(t){case je.PHOTO:return this.photoTemplate();case je.TEXT:case je.COUNTER:return this.generateTextContent(t);case je.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?S`<div part="loading-wrapper"><div part="loader"></div></div>`:K}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?K:t===je.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():K}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return S`
1595
+ <mdc-icon name="${tt(t)}" length-unit="rem" size="${_v(this.size)}"></mdc-icon>
1596
+ `}textTemplate(t){return S` <mdc-text type="${wv(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>Hh?`${Hh}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let e="";return t===je.TEXT&&this.initials&&(e=this.generateInitialsText(this.initials)),t===je.COUNTER&&(this.counter||this.counter===0)&&(e=this.generateCounterText(this.counter)),this.textTemplate(e)}getTypeBasedOnInputs(){return this.src?je.PHOTO:this.iconName?je.ICON:this.initials?je.TEXT:this.counter||this.counter===0?je.COUNTER:je.ICON}getTemplateBasedOnType(t){switch(t){case je.PHOTO:return this.photoTemplate();case je.TEXT:case je.COUNTER:return this.generateTextContent(t);case je.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?S`<div part="loading-wrapper"><div part="loader"></div></div>`:K}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?K:t===je.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():K}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return S`
1597
1597
  ${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
1598
1598
  ${this.getPresenceTemplateBasedOnType(t)}
1599
- `}};un.styles=[...Q.styles,...Av],h([dt()],un.prototype,"isPhotoLoaded",2);var Uh=un;var iA=[Tt,B`
1599
+ `}};fn.styles=[...Q.styles,...Sv],h([dt()],fn.prototype,"isPhotoLoaded",2);var Uh=fn;var iA=[Tt,B`
1600
1600
  :host {
1601
1601
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
1602
1602
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -1690,17 +1690,17 @@
1690
1690
  :host::part(mdc-presence-icon__scheduled) {
1691
1691
  color: var(--mdc-presence-scheduled-background-color);
1692
1692
  }
1693
- `],wv=iA;var kv=a=>{switch(a){case Be.AWAY:return"recents-presence-badge-filled";case Be.AWAY_CALLING:return"away-calling-presence-filled";case Be.BUSY:return"busy-presence-bold";case Be.DND:return"dnd-presence-badge-filled";case Be.MEETING:return"camera-filled";case Be.ON_CALL:return"handset-filled";case Be.ON_DEVICE:return"generic-device-video-badge-filled";case Be.ON_MOBILE:return"phone-badge-filled";case Be.PAUSE:return"pause-badge-filled";case Be.PTO:return"pto-presence-filled";case Be.PRESENTING:return"share-screen-badge-filled";case Be.QUIET:return"quiet-hours-presence-filled";case Be.SCHEDULED:return"meetings-presence-badge-filled";case Be.ACTIVE:default:return"active-presence-small-filled"}},Nv=a=>({[pe[124]]:2.25,[pe[88]]:1.625,[pe[72]]:1.3125,[pe[64]]:1.1875,[pe[48]]:.875,[pe[32]]:.875,[pe[24]]:.875})[a]||.875;var ts=class extends Q{constructor(){super(...arguments);this.type=Zs.TYPE;this.size=Zs.SIZE;this.currentIconType=Zs.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(pe).includes(t)?`${t}`:Zs.SIZE.toString())}get icon(){let t=kv(this.type);return t==="active-presence-small-filled"&&(this.type=Zs.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return S`
1693
+ `],kv=iA;var Nv=a=>{switch(a){case Be.AWAY:return"recents-presence-badge-filled";case Be.AWAY_CALLING:return"away-calling-presence-filled";case Be.BUSY:return"busy-presence-bold";case Be.DND:return"dnd-presence-badge-filled";case Be.MEETING:return"camera-filled";case Be.ON_CALL:return"handset-filled";case Be.ON_DEVICE:return"generic-device-video-badge-filled";case Be.ON_MOBILE:return"phone-badge-filled";case Be.PAUSE:return"pause-badge-filled";case Be.PTO:return"pto-presence-filled";case Be.PRESENTING:return"share-screen-badge-filled";case Be.QUIET:return"quiet-hours-presence-filled";case Be.SCHEDULED:return"meetings-presence-badge-filled";case Be.ACTIVE:default:return"active-presence-small-filled"}},Lv=a=>({[pe[124]]:2.25,[pe[88]]:1.625,[pe[72]]:1.3125,[pe[64]]:1.1875,[pe[48]]:.875,[pe[32]]:.875,[pe[24]]:.875})[a]||.875;var ts=class extends Q{constructor(){super(...arguments);this.type=Zs.TYPE;this.size=Zs.SIZE;this.currentIconType=Zs.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(pe).includes(t)?`${t}`:Zs.SIZE.toString())}get icon(){let t=Nv(this.type);return t==="active-presence-small-filled"&&(this.type=Zs.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return S`
1694
1694
  <div part="presence-content">
1695
1695
  <mdc-icon
1696
1696
  part="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
1697
1697
  name="${this.icon}"
1698
- size="${Nv(this.size)}"
1698
+ size="${Lv(this.size)}"
1699
1699
  @load="${this.handleOnLoad}"
1700
1700
  @error="${this.handleOnError}"
1701
1701
  ></mdc-icon>
1702
1702
  </div>
1703
- `}};ts.styles=[...Q.styles,...wv],h([u({type:String,reflect:!0})],ts.prototype,"type",2),h([u({type:Number,reflect:!0})],ts.prototype,"size",2),h([dt()],ts.prototype,"currentIconType",2);var Gh=ts;Gh.register(Sv);var oA=Gh;Uh.register(xv);var sA=Uh;var aA=[Tt,B`
1703
+ `}};ts.styles=[...Q.styles,...kv],h([u({type:String,reflect:!0})],ts.prototype,"type",2),h([u({type:Number,reflect:!0})],ts.prototype,"size",2),h([dt()],ts.prototype,"currentIconType",2);var Gh=ts;Gh.register(Iv);var oA=Gh;Uh.register(Av);var sA=Uh;var aA=[Tt,B`
1704
1704
  :host {
1705
1705
  --mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
1706
1706
  --mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
@@ -1739,7 +1739,7 @@
1739
1739
  --mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatarbutton-loading-indicator-foreground-color);
1740
1740
  --mdc-avatar-loading-overlay-background-color: var(--mdc-avatarbutton-loading-overlay-background-color);
1741
1741
  }
1742
- `,...xt()],Lv=aA;var fn=class extends md(he(ve)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=et.BUTTON,this.type=sr.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Xt).includes(t)?`${t}`:Xs.SIZE.toString())}render(){return S`
1742
+ `,...xt()],Mv=aA;var vn=class extends md(he(ve)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=et.BUTTON,this.type=sr.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Xt).includes(t)?`${t}`:Xs.SIZE.toString())}render(){return S`
1743
1743
  <div part="overlay" aria-hidden="true"></div>
1744
1744
  <mdc-avatar
1745
1745
  exportparts="content, photo, presence, loading-wrapper, loader"
@@ -1751,7 +1751,7 @@
1751
1751
  size="${tt(this.size)}"
1752
1752
  src="${tt(this.src)}"
1753
1753
  ></mdc-avatar>
1754
- `}};fn.styles=[...Lv],h([u({type:String,attribute:"aria-label"})],fn.prototype,"ariaLabel",2);var Kh=fn;var Mv=V.constructTagName("avatarbutton");Kh.register(Mv);var nA=Kh;var Ov=V.constructTagName("badge"),wr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},ud={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Wh={PRIMARY:"primary",SECONDARY:"secondary"},Di={TYPE:wr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Wh.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var lA=[Tt,B`
1754
+ `}};vn.styles=[...Mv],h([u({type:String,attribute:"aria-label"})],vn.prototype,"ariaLabel",2);var Kh=vn;var Ov=V.constructTagName("avatarbutton");Kh.register(Ov);var nA=Kh;var Rv=V.constructTagName("badge"),wr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},ud={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Wh={PRIMARY:"primary",SECONDARY:"secondary"},Di={TYPE:wr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Wh.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var lA=[Tt,B`
1755
1755
  :host {
1756
1756
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
1757
1757
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -1830,7 +1830,7 @@
1830
1830
  outline: none;
1831
1831
  }
1832
1832
  }
1833
- `],Rv=lA;var ci=class extends he(Q){constructor(){super(...arguments);this.variant=Di.VARIANT;this.maxCounter=Di.MAX_COUNTER;this.overlay=Di.OVERLAY;this.ariaLabel=null}getCounterText(t,e){return e===void 0||typeof e!="number"||t===0?"":e>t?`${t}+`:t>Di.MAX_COUNTER_LIMIT||e>Di.MAX_COUNTER_LIMIT?`${Di.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t){return S`
1833
+ `],Dv=lA;var ci=class extends he(Q){constructor(){super(...arguments);this.variant=Di.VARIANT;this.maxCounter=Di.MAX_COUNTER;this.overlay=Di.OVERLAY;this.ariaLabel=null}getCounterText(t,e){return e===void 0||typeof e!="number"||t===0?"":e>t?`${t}+`:t>Di.MAX_COUNTER_LIMIT||e>Di.MAX_COUNTER_LIMIT?`${Di.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t){return S`
1834
1834
  <mdc-icon
1835
1835
  part="badge-icon ${this.overlay?"badge-overlay":""}"
1836
1836
  name="${tt(t)}"
@@ -1844,7 +1844,7 @@
1844
1844
  >
1845
1845
  ${this.getCounterText(this.maxCounter,this.counter)}
1846
1846
  </mdc-text>
1847
- `}setRoleByAriaLabel(){this.ariaLabel?this.role=et.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Wh).includes(this.variant)&&(this.variant=Di.VARIANT);let{iconName:t,type:e}=this;switch(e){case wr.ICON:return this.getBadgeIcon(t||"");case wr.COUNTER:return this.getBadgeCounterText();case wr.SUCCESS:return this.getBadgeIcon(ud.SUCCESS_ICON_NAME);case wr.WARNING:return this.getBadgeIcon(ud.WARNING_ICON_NAME);case wr.ERROR:return this.getBadgeIcon(ud.ERROR_ICON_NAME);case wr.DOT:default:return this.type=wr.DOT,this.getBadgeDot()}}};ci.styles=[...Q.styles,...Rv],h([u({type:String,reflect:!0})],ci.prototype,"type",2),h([u({type:String,reflect:!0})],ci.prototype,"variant",2),h([u({type:Number})],ci.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],ci.prototype,"maxCounter",2),h([u({type:Boolean})],ci.prototype,"overlay",2),h([u({type:String,attribute:"aria-label"})],ci.prototype,"ariaLabel",2);var Yh=ci;Yh.register(Ov);var dA=Yh;var cA=B`
1847
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role=et.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Wh).includes(this.variant)&&(this.variant=Di.VARIANT);let{iconName:t,type:e}=this;switch(e){case wr.ICON:return this.getBadgeIcon(t||"");case wr.COUNTER:return this.getBadgeCounterText();case wr.SUCCESS:return this.getBadgeIcon(ud.SUCCESS_ICON_NAME);case wr.WARNING:return this.getBadgeIcon(ud.WARNING_ICON_NAME);case wr.ERROR:return this.getBadgeIcon(ud.ERROR_ICON_NAME);case wr.DOT:default:return this.type=wr.DOT,this.getBadgeDot()}}};ci.styles=[...Q.styles,...Dv],h([u({type:String,reflect:!0})],ci.prototype,"type",2),h([u({type:String,reflect:!0})],ci.prototype,"variant",2),h([u({type:Number})],ci.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],ci.prototype,"maxCounter",2),h([u({type:Boolean})],ci.prototype,"overlay",2),h([u({type:String,attribute:"aria-label"})],ci.prototype,"ariaLabel",2);var Yh=ci;Yh.register(Rv);var dA=Yh;var cA=B`
1848
1848
  :host {
1849
1849
  display: block;
1850
1850
  height: 100%;
@@ -1858,7 +1858,7 @@
1858
1858
  width: 100%;
1859
1859
  object-fit: contain;
1860
1860
  }
1861
- `,Dv=[cA];var es=class extends Q{async getBrandVisualData(){if(this.name)return import(`@momentum-design/brand-visuals/dist/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)});let o=new Error("No brandvisual name provided.");return this.handleBrandVisualLoadedFailure(o),Promise.reject(o)}updated(o){super.updated(o),o.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)}),o.has("altText")&&this.brandVisualData&&(this.brandVisualData=this.injectHtmlAttributes(this.brandVisualData,{alt:this.altText}))}injectTemplateAttributes(o,t,e){let c=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return c&&Object.entries(e).forEach(([f,g])=>{c.setAttribute(f,g)}),c||o}injectHtmlAttributes(o,t){return Object.entries(t).forEach(([e,i])=>{o.setAttribute(e,i)}),o}handleBrandVisualLoadedSuccess(o){this.brandVisualData=this.injectTemplateAttributes(o,"img",{alt:this.altText});let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(o){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:o}});this.dispatchEvent(t)}render(){return S` ${this.brandVisualData} `}};es.styles=[...Q.styles,...Dv],h([dt()],es.prototype,"brandVisualData",2),h([u({type:String,reflect:!0})],es.prototype,"name",2),h([u({type:String,reflect:!0,attribute:"alt-text"})],es.prototype,"altText",2);var jh=es;var Pv=V.constructTagName("brandvisual");jh.register(Pv);var hA=jh;var pA=B`
1861
+ `,Pv=[cA];var es=class extends Q{async getBrandVisualData(){if(this.name)return import(`@momentum-design/brand-visuals/dist/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)});let o=new Error("No brandvisual name provided.");return this.handleBrandVisualLoadedFailure(o),Promise.reject(o)}updated(o){super.updated(o),o.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)}),o.has("altText")&&this.brandVisualData&&(this.brandVisualData=this.injectHtmlAttributes(this.brandVisualData,{alt:this.altText}))}injectTemplateAttributes(o,t,e){let c=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return c&&Object.entries(e).forEach(([f,g])=>{c.setAttribute(f,g)}),c||o}injectHtmlAttributes(o,t){return Object.entries(t).forEach(([e,i])=>{o.setAttribute(e,i)}),o}handleBrandVisualLoadedSuccess(o){this.brandVisualData=this.injectTemplateAttributes(o,"img",{alt:this.altText});let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(o){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:o}});this.dispatchEvent(t)}render(){return S` ${this.brandVisualData} `}};es.styles=[...Q.styles,...Pv],h([dt()],es.prototype,"brandVisualData",2),h([u({type:String,reflect:!0})],es.prototype,"name",2),h([u({type:String,reflect:!0,attribute:"alt-text"})],es.prototype,"altText",2);var jh=es;var Fv=V.constructTagName("brandvisual");jh.register(Fv);var hA=jh;var pA=B`
1862
1862
  :host {
1863
1863
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
1864
1864
  --mdc-bullet-size: 0.25rem;
@@ -1878,7 +1878,7 @@
1878
1878
  :host([size='large']) {
1879
1879
  --mdc-bullet-size: 1rem;
1880
1880
  }
1881
- `,Fv=[pA];var $v=V.constructTagName("bullet"),Vv={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var vn=class extends Q{constructor(){super(...arguments);this.size=Vv.SMALL}};vn.styles=[...Q.styles,...Fv],h([u({type:String,reflect:!0})],vn.prototype,"size",2);var qh=vn;qh.register($v);var mA=qh;var zv=V.constructTagName("buttongroup"),uA={40:40,32:32,28:28,24:24},fA={HORIZONTAL:"horizontal",VERTICAL:"vertical"},vA={PRIMARY:"primary",SECONDARY:"secondary"},fd={SIZE:uA[28],VARIANT:vA.PRIMARY,ORIENTATION:fA.HORIZONTAL};var gA=B`
1881
+ `,$v=[pA];var Vv=V.constructTagName("bullet"),zv={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var gn=class extends Q{constructor(){super(...arguments);this.size=zv.SMALL}};gn.styles=[...Q.styles,...$v],h([u({type:String,reflect:!0})],gn.prototype,"size",2);var qh=gn;qh.register(Vv);var mA=qh;var Bv=V.constructTagName("buttongroup"),uA={40:40,32:32,28:28,24:24},fA={HORIZONTAL:"horizontal",VERTICAL:"vertical"},vA={PRIMARY:"primary",SECONDARY:"secondary"},fd={SIZE:uA[28],VARIANT:vA.PRIMARY,ORIENTATION:fA.HORIZONTAL};var gA=B`
1882
1882
  :host {
1883
1883
  --mdc-buttongroup-border-radius: 1.25rem;
1884
1884
  --mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
@@ -1978,7 +1978,7 @@
1978
1978
  :host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
1979
1979
  width: 2.5rem;
1980
1980
  }
1981
- `,Bv=[Tt,gA];var Pi=class extends Q{constructor(){super(...arguments);this.orientation=fd.ORIENTATION;this.variant=fd.VARIANT;this.size=fd.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(t=>{t.setAttribute("size",this.size.toString()),t.setAttribute("variant",this.variant)})}updated(t){super.updated(t),(t.has("size")||t.has("variant"))&&this.handleSlotChange()}render(){return S`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};Pi.styles=[...Q.styles,...Bv],h([u({type:String,reflect:!0})],Pi.prototype,"orientation",2),h([u({type:String,reflect:!0})],Pi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Pi.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Pi.prototype,"compact",2),h([qt({selector:"mdc-button"})],Pi.prototype,"buttons",2);var Xh=Pi;Xh.register(zv);var bA=Xh;var re=a=>{class o extends a{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Hv=V.constructTagName("linksimple"),Qs={INLINE:!1,INVERTED:!1};var yA=[Tt,B`
1981
+ `,Hv=[Tt,gA];var Pi=class extends Q{constructor(){super(...arguments);this.orientation=fd.ORIENTATION;this.variant=fd.VARIANT;this.size=fd.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(t=>{t.setAttribute("size",this.size.toString()),t.setAttribute("variant",this.variant)})}updated(t){super.updated(t),(t.has("size")||t.has("variant"))&&this.handleSlotChange()}render(){return S`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};Pi.styles=[...Q.styles,...Hv],h([u({type:String,reflect:!0})],Pi.prototype,"orientation",2),h([u({type:String,reflect:!0})],Pi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Pi.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Pi.prototype,"compact",2),h([qt({selector:"mdc-button"})],Pi.prototype,"buttons",2);var Xh=Pi;Xh.register(Bv);var bA=Xh;var re=a=>{class o extends a{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Uv=V.constructTagName("linksimple"),Qs={INLINE:!1,INVERTED:!1};var yA=[Tt,B`
1982
1982
  :host {
1983
1983
  --mdc-link-border-radius: 0.25rem;
1984
1984
  --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
@@ -2057,7 +2057,7 @@
2057
2057
  :host([inline])::part(anchor) {
2058
2058
  text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
2059
2059
  }
2060
- `,...xt(!0)],Uv=yA;var qe=class extends re(Jt(Q)){constructor(){super(...arguments);this.inline=Qs.INLINE;this.inverted=Qs.INVERTED;this.target="_self"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleNavigation.bind(this)),this.addEventListener("keydown",this.handleNavigation.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation.bind(this)),this.removeEventListener("keydown",this.handleNavigation.bind(this))}click(){var t,e,i,n;this.disabled||(n=(i=(e=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:e.call(t,"a"))==null?void 0:i.click)==null||n.call(i)}handleNavigation(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}setDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this.disabled)}renderAnchorContent(){return S`<slot></slot>`}render(){var t;return S`
2060
+ `,...xt(!0)],Gv=yA;var qe=class extends re(Jt(Q)){constructor(){super(...arguments);this.inline=Qs.INLINE;this.inverted=Qs.INVERTED;this.target="_self"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleNavigation.bind(this)),this.addEventListener("keydown",this.handleNavigation.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation.bind(this)),this.removeEventListener("keydown",this.handleNavigation.bind(this))}click(){var t,e,i,n;this.disabled||(n=(i=(e=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:e.call(t,"a"))==null?void 0:i.click)==null||n.call(i)}handleNavigation(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}setDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this.disabled)}renderAnchorContent(){return S`<slot></slot>`}render(){var t;return S`
2061
2061
  <a
2062
2062
  class="mdc-focus-ring"
2063
2063
  part="anchor"
@@ -2074,7 +2074,7 @@
2074
2074
  >
2075
2075
  ${this.renderAnchorContent()}
2076
2076
  </a>
2077
- `}};qe.styles=[...Q.styles,...Uv],qe.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],qe.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],qe.prototype,"inverted",2),h([u({type:String,reflect:!0})],qe.prototype,"href",2),h([u({type:String,reflect:!0})],qe.prototype,"target",2),h([u({type:String,reflect:!0})],qe.prototype,"rel",2),h([u({type:String,reflect:!0})],qe.prototype,"download",2),h([u({type:String,reflect:!0})],qe.prototype,"ping",2),h([u({type:String,reflect:!0})],qe.prototype,"hreflang",2),h([u({type:String,reflect:!0})],qe.prototype,"type",2),h([u({type:String,reflect:!0})],qe.prototype,"referrerpolicy",2);var hi=qe;var EA=B`
2077
+ `}};qe.styles=[...Q.styles,...Gv],qe.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],qe.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],qe.prototype,"inverted",2),h([u({type:String,reflect:!0})],qe.prototype,"href",2),h([u({type:String,reflect:!0})],qe.prototype,"target",2),h([u({type:String,reflect:!0})],qe.prototype,"rel",2),h([u({type:String,reflect:!0})],qe.prototype,"download",2),h([u({type:String,reflect:!0})],qe.prototype,"ping",2),h([u({type:String,reflect:!0})],qe.prototype,"hreflang",2),h([u({type:String,reflect:!0})],qe.prototype,"type",2),h([u({type:String,reflect:!0})],qe.prototype,"referrerpolicy",2);var hi=qe;var EA=B`
2078
2078
  :host {
2079
2079
  border: unset;
2080
2080
  }
@@ -2128,11 +2128,11 @@
2128
2128
  :host([variant='secondary'][soft-disabled])::part(anchor) {
2129
2129
  border-color: var(--mdc-button-border-color);
2130
2130
  }
2131
- `,Gv=[EA,...xt(!0)];var Js=class extends Ol(hi){constructor(){super(...arguments);this.size=sr.SIZE}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}renderAnchorContent(){return S`
2131
+ `,Kv=[EA,...xt(!0)];var Js=class extends Ol(hi){constructor(){super(...arguments);this.size=sr.SIZE}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}renderAnchorContent(){return S`
2132
2132
  ${this.prefixIcon?S`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
2133
2133
  <slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
2134
2134
  ${this.postfixIcon?S`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
2135
- `}};Js.styles=[...Zo.styles,...Gv],h([u({type:Number,reflect:!0})],Js.prototype,"size",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Js.prototype,"softDisabled",2);var Zh=Js;var Kv=V.constructTagName("buttonlink");Zh.register(Kv);var TA=Zh;var vd=a=>{class o extends a{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=Ce.VARIANT;this.orientation=Ce.ORIENTATION;this.titleTagName=Ce.TAGNAME;this.subtitleTagName=Ce.TAGNAME}renderImage(){return this.imageSrc?S`<div part="image-wrapper">
2135
+ `}};Js.styles=[...Zo.styles,...Kv],h([u({type:Number,reflect:!0})],Js.prototype,"size",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Js.prototype,"softDisabled",2);var Zh=Js;var Wv=V.constructTagName("buttonlink");Zh.register(Wv);var TA=Zh;var vd=a=>{class o extends a{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=Ce.VARIANT;this.orientation=Ce.ORIENTATION;this.titleTagName=Ce.TAGNAME;this.subtitleTagName=Ce.TAGNAME}renderImage(){return this.imageSrc?S`<div part="image-wrapper">
2136
2136
  <img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
2137
2137
  </div>`:K}renderIcon(){return this.iconName?S`<mdc-icon
2138
2138
  part="icon"
@@ -2258,7 +2258,7 @@
2258
2258
  mdc-text::part(text) {
2259
2259
  margin: 0;
2260
2260
  }
2261
- `,Wv=[Tt,xA];var gn=class extends vd(Ws(Q)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(e=>{e.matches(Ce.BUTTON)&&(e.setAttribute("variant",Bt.TERTIARY),e.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return S`<div part="header">
2261
+ `,Yv=[Tt,xA];var bn=class extends vd(Ws(Q)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(e=>{e.matches(Ce.BUTTON)&&(e.setAttribute("variant",Bt.TERTIARY),e.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return S`<div part="header">
2262
2262
  ${this.renderIcon()} ${this.renderTitle()}
2263
2263
  <div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
2264
2264
  </div>`}render(){return S`
@@ -2272,7 +2272,7 @@
2272
2272
  </div>
2273
2273
  ${this.renderFooter()}
2274
2274
  </div>
2275
- `}};gn.styles=[...Q.styles,...Wv],h([qt({slot:"icon-button"})],gn.prototype,"iconButtons",2);var Hr=gn;Hr.register(sv);var AA=Hr;var SA=B`
2275
+ `}};bn.styles=[...Q.styles,...Yv],h([qt({slot:"icon-button"})],bn.prototype,"iconButtons",2);var Hr=bn;Hr.register(av);var AA=Hr;var SA=B`
2276
2276
  :host {
2277
2277
  cursor: pointer;
2278
2278
  user-select: none;
@@ -2294,7 +2294,7 @@
2294
2294
  :host([disabled])::part(image) {
2295
2295
  opacity: 0.5;
2296
2296
  }
2297
- `,Yv=[SA,...xt()];var gd=class extends vd(ve){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return S`
2297
+ `,jv=[SA,...xt()];var gd=class extends vd(ve){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return S`
2298
2298
  <slot name="image"> ${this.renderImage()} </slot>
2299
2299
  <div part="body">
2300
2300
  <div part="header">${this.renderIcon()} ${this.renderTitle()}</div>
@@ -2302,7 +2302,7 @@
2302
2302
  <slot name="body"></slot>
2303
2303
  <slot name="after-body"></slot>
2304
2304
  </div>
2305
- `}};gd.styles=[...Hr.styles,...Yv];var Qh=gd;var jv=V.constructTagName("cardbutton");Qh.register(jv);var IA=Qh;var qv=V.constructTagName("cardcheckbox"),Jh={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},bd={CHECK:"check",CHECKBOX:"checkbox"},yd={SELECTION_TYPE:bd.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var CA=B`
2305
+ `}};gd.styles=[...Hr.styles,...jv];var Qh=gd;var qv=V.constructTagName("cardbutton");Qh.register(qv);var IA=Qh;var Xv=V.constructTagName("cardcheckbox"),Jh={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},bd={CHECK:"check",CHECKBOX:"checkbox"},yd={SELECTION_TYPE:bd.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var CA=B`
2306
2306
  :host {
2307
2307
  cursor: pointer;
2308
2308
  user-select: none;
@@ -2359,7 +2359,7 @@
2359
2359
  :host([disabled])::part(check-icon) {
2360
2360
  color: var(--mds-color-theme-text-primary-disabled);
2361
2361
  }
2362
- `,Xv=[CA,...xt()];var ta=class extends Ot(Nt(Jt(ii(Hr)))){constructor(){super();this.checked=!1;this.selectionType=yd.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){let e=this.getActionForKeyEvent(t);e===G.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),e===G.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===G.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?Jh.CHECKED:Jh.DEFAULT;switch(this.selectionType){case bd.CHECK:return S`<mdc-icon
2362
+ `,Zv=[CA,...xt()];var ta=class extends Ot(Nt(Jt(ii(Hr)))){constructor(){super();this.checked=!1;this.selectionType=yd.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){let e=this.getActionForKeyEvent(t);e===G.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),e===G.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===G.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?Jh.CHECKED:Jh.DEFAULT;switch(this.selectionType){case bd.CHECK:return S`<mdc-icon
2363
2363
  part="check check-icon"
2364
2364
  size="${yd.ICON_SIZE}"
2365
2365
  length-unit="${yd.ICON_LENGTH_UNIT}"
@@ -2376,7 +2376,7 @@
2376
2376
  <slot name="body"></slot>
2377
2377
  <slot name="after-body"></slot>
2378
2378
  </div>
2379
- `}};ta.styles=[...Hr.styles,...Xv],h([u({type:Boolean,reflect:!0})],ta.prototype,"checked",2),h([u({type:String,attribute:"selection-type",reflect:!0})],ta.prototype,"selectionType",2);var tp=ta;var _A=[B`
2379
+ `}};ta.styles=[...Hr.styles,...Zv],h([u({type:Boolean,reflect:!0})],ta.prototype,"checked",2),h([u({type:String,attribute:"selection-type",reflect:!0})],ta.prototype,"selectionType",2);var tp=ta;var _A=[B`
2380
2380
  :host {
2381
2381
  --mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-input-normal);
2382
2382
  --mdc-staticcheckbox-background-color: var(--mds-color-theme-control-inactive-normal);
@@ -2454,7 +2454,7 @@
2454
2454
  --mdc-staticcheckbox-icon-color: GrayText;
2455
2455
  }
2456
2456
  }
2457
- `],Zv=_A;var Qv=V.constructTagName("popover"),Mt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},_e={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},rs={TONAL:"tonal",CONTRAST:"contrast"},ep={ABSOLUTE:"absolute",FIXED:"fixed"},wA={VIEWPORT:"viewport",DOCUMENT:"document"},Et={PLACEMENT:Mt.BOTTOM,TRIGGER:_e.CLICK,COLOR:rs.TONAL,STRATEGY:ep.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:wA.VIEWPORT,BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1,INLINE:!1},Fi={OPEN:"open",HOVER:"hover",CLOSE:"close"};var Jv=V.constructTagName("statusmessage"),vo={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ed={ERROR:"error-legacy-badge-filled",WARNING:"warning-badge-filled",SUCCESS:"check-circle-badge-filled",PRIORITY:"priority-badge-filled"},Td={[vo.DEFAULT]:"",[vo.ERROR]:Ed.ERROR,[vo.WARNING]:Ed.WARNING,[vo.SUCCESS]:Ed.SUCCESS,[vo.PRIORITY]:Ed.PRIORITY},bn={SEVERITY:vo.DEFAULT,TEXT_TAGNAME:pt.SPAN,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR};var tg=V.constructTagName("formfieldwrapper"),oe=vo,Yt={VALIDATION:oe.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Mt.TOP,TOGGLETIP_STRATEGY:ep.ABSOLUTE},yn={TAGNAME:pt.SPAN,TYPE:at.BODY_MIDSIZE_REGULAR,HEADER_TYPE:at.BODY_MIDSIZE_BOLD};var eg=V.constructTagName("checkbox"),xd={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},rg={ERROR:oe.ERROR,DEFAULT:oe.DEFAULT};var ig=V.constructTagName("staticcheckbox");var go=class extends Jt(Q){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?S`
2457
+ `],Qv=_A;var Jv=V.constructTagName("popover"),Mt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},_e={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},rs={TONAL:"tonal",CONTRAST:"contrast"},ep={ABSOLUTE:"absolute",FIXED:"fixed"},wA={VIEWPORT:"viewport",DOCUMENT:"document"},Et={PLACEMENT:Mt.BOTTOM,TRIGGER:_e.CLICK,COLOR:rs.TONAL,STRATEGY:ep.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:wA.VIEWPORT,BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1,INLINE:!1},Fi={OPEN:"open",HOVER:"hover",CLOSE:"close"};var tg=V.constructTagName("statusmessage"),vo={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ed={ERROR:"error-legacy-badge-filled",WARNING:"warning-badge-filled",SUCCESS:"check-circle-badge-filled",PRIORITY:"priority-badge-filled"},Td={[vo.DEFAULT]:"",[vo.ERROR]:Ed.ERROR,[vo.WARNING]:Ed.WARNING,[vo.SUCCESS]:Ed.SUCCESS,[vo.PRIORITY]:Ed.PRIORITY},yn={SEVERITY:vo.DEFAULT,TEXT_TAGNAME:pt.SPAN,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR};var eg=V.constructTagName("formfieldwrapper"),oe=vo,Yt={VALIDATION:oe.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Mt.TOP,TOGGLETIP_STRATEGY:ep.ABSOLUTE},En={TAGNAME:pt.SPAN,TYPE:at.BODY_MIDSIZE_REGULAR,HEADER_TYPE:at.BODY_MIDSIZE_BOLD};var rg=V.constructTagName("checkbox"),xd={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},ig={ERROR:oe.ERROR,DEFAULT:oe.DEFAULT};var og=V.constructTagName("staticcheckbox");var go=class extends Jt(Q){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?S`
2458
2458
  <mdc-icon
2459
2459
  part="checkbox-icon"
2460
2460
  name="${this.indeterminate?xd.INDETERMINATE:xd.CHECKED}"
@@ -2462,7 +2462,7 @@
2462
2462
  length-unit="rem"
2463
2463
  ></mdc-icon>
2464
2464
  `:K;return S`<slot></slot>
2465
- <div part="icon-container">${t}</div>`}};go.styles=[...Q.styles,...Zv],h([u({type:Boolean,reflect:!0})],go.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],go.prototype,"indeterminate",2),h([u({type:Boolean,reflect:!0})],go.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],go.prototype,"softDisabled",2);var rp=go;rp.register(ig);var kA=rp;tp.register(qv);var NA=tp;var LA=B`
2465
+ <div part="icon-container">${t}</div>`}};go.styles=[...Q.styles,...Qv],h([u({type:Boolean,reflect:!0})],go.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],go.prototype,"indeterminate",2),h([u({type:Boolean,reflect:!0})],go.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],go.prototype,"softDisabled",2);var rp=go;rp.register(og);var kA=rp;tp.register(Xv);var NA=tp;var LA=B`
2466
2466
  :host {
2467
2467
  cursor: pointer;
2468
2468
  user-select: none;
@@ -2515,7 +2515,7 @@
2515
2515
  :host([disabled])::part(image) {
2516
2516
  opacity: 0.5;
2517
2517
  }
2518
- `,og=[LA,...xt()];var ea=class extends Ot(Nt(Jt(ii(Hr)))){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(e=>{e.checked=!1}),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){this.disabled||(super.click(),this.toggleChecked())}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,e){t[e].focus(),t[e].toggleChecked()}handleKeyDown(t){let e=this.getActionForKeyEvent(t);if(e===G.SPACE){t.preventDefault();return}if(this.disabled)return;let n=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),c=n.indexOf(this);if(e===G.DOWN||G.RIGHT===e){let f=(c+1)%n.length;this.updateCardRadio(n,f),this.keyDownEventHandled()}else if(e===G.UP||G.LEFT===e){let f=(c-1+n.length)%n.length;this.updateCardRadio(n,f),this.keyDownEventHandled()}e===G.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===G.SPACE&&this.toggleChecked()}renderHeader(){return S`<div part="header">
2518
+ `,sg=[LA,...xt()];var ea=class extends Ot(Nt(Jt(ii(Hr)))){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(e=>{e.checked=!1}),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){this.disabled||(super.click(),this.toggleChecked())}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,e){t[e].focus(),t[e].toggleChecked()}handleKeyDown(t){let e=this.getActionForKeyEvent(t);if(e===G.SPACE){t.preventDefault();return}if(this.disabled)return;let n=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),c=n.indexOf(this);if(e===G.DOWN||G.RIGHT===e){let f=(c+1)%n.length;this.updateCardRadio(n,f),this.keyDownEventHandled()}else if(e===G.UP||G.LEFT===e){let f=(c-1+n.length)%n.length;this.updateCardRadio(n,f),this.keyDownEventHandled()}e===G.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===G.SPACE&&this.toggleChecked()}renderHeader(){return S`<div part="header">
2519
2519
  ${this.renderIcon()} ${this.renderTitle()}
2520
2520
  <mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
2521
2521
  </div>`}render(){return S`
@@ -2526,7 +2526,7 @@
2526
2526
  <slot name="body"></slot>
2527
2527
  <slot name="after-body"></slot>
2528
2528
  </div>
2529
- `}};ea.styles=[...Hr.styles,...og],h([u({type:Boolean,reflect:!0})],ea.prototype,"checked",2),h([u({type:String})],ea.prototype,"name",2);var ip=ea;var Ad=V.constructTagName("cardradio");var MA=[B`
2529
+ `}};ea.styles=[...Hr.styles,...sg],h([u({type:Boolean,reflect:!0})],ea.prototype,"checked",2),h([u({type:String})],ea.prototype,"name",2);var ip=ea;var Ad=V.constructTagName("cardradio");var MA=[B`
2530
2530
  :host {
2531
2531
  --mdc-staticradio-inner-circle-size: 0.375rem;
2532
2532
  --mdc-staticradio-outer-circle-size: 1rem;
@@ -2623,8 +2623,8 @@
2623
2623
  --mdc-staticradio-outer-circle-background-color: GrayText;
2624
2624
  }
2625
2625
  }
2626
- `],sg=MA;var is=class extends Jt(Q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return S` <slot></slot>
2627
- <span part="radio-icon" class="radio-icon"></span>`}};is.styles=[...Q.styles,...sg],h([u({type:Boolean,reflect:!0})],is.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],is.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],is.prototype,"softDisabled",2);var op=is;var ag=V.constructTagName("staticradio");op.register(ag);var OA=op;ip.register(Ad);var RA=ip;var yr=Math.min,we=Math.max,Tn=Math.round,xn=Math.floor,Ur=a=>({x:a,y:a}),DA={left:"right",right:"left",bottom:"top",top:"bottom"},PA={start:"end",end:"start"};function Id(a,o,t){return we(a,yr(o,t))}function bo(a,o){return typeof a=="function"?a(o):a}function Gr(a){return a.split("-")[0]}function os(a){return a.split("-")[1]}function sp(a){return a==="x"?"y":"x"}function Cd(a){return a==="y"?"height":"width"}var FA=new Set(["top","bottom"]);function Kr(a){return FA.has(Gr(a))?"y":"x"}function _d(a){return sp(Kr(a))}function dg(a,o,t){t===void 0&&(t=!1);let e=os(a),i=_d(a),n=Cd(i),c=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[n]>o.floating[n]&&(c=En(c)),[c,En(c)]}function cg(a){let o=En(a);return[Sd(a),o,Sd(o)]}function Sd(a){return a.replace(/start|end/g,o=>PA[o])}var ng=["left","right"],lg=["right","left"],$A=["top","bottom"],VA=["bottom","top"];function zA(a,o,t){switch(a){case"top":case"bottom":return t?o?lg:ng:o?ng:lg;case"left":case"right":return o?$A:VA;default:return[]}}function hg(a,o,t,e){let i=os(a),n=zA(Gr(a),t==="start",e);return i&&(n=n.map(c=>c+"-"+i),o&&(n=n.concat(n.map(Sd)))),n}function En(a){return a.replace(/left|right|bottom|top/g,o=>DA[o])}function BA(a){return{top:0,right:0,bottom:0,left:0,...a}}function wd(a){return typeof a!="number"?BA(a):{top:a,right:a,bottom:a,left:a}}function $i(a){let{x:o,y:t,width:e,height:i}=a;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function pg(a,o,t){let{reference:e,floating:i}=a,n=Kr(o),c=_d(o),f=Cd(c),g=Gr(o),A=n==="y",R=e.x+e.width/2-i.width/2,H=e.y+e.height/2-i.height/2,J=e[f]/2-i[f]/2,q;switch(g){case"top":q={x:R,y:e.y-i.height};break;case"bottom":q={x:R,y:e.y+e.height};break;case"right":q={x:e.x+e.width,y:H};break;case"left":q={x:e.x-i.width,y:H};break;default:q={x:e.x,y:e.y}}switch(os(o)){case"start":q[c]-=J*(t&&A?-1:1);break;case"end":q[c]+=J*(t&&A?-1:1);break}return q}var mg=async(a,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:n=[],platform:c}=t,f=n.filter(Boolean),g=await(c.isRTL==null?void 0:c.isRTL(o)),A=await c.getElementRects({reference:a,floating:o,strategy:i}),{x:R,y:H}=pg(A,e,g),J=e,q={},Z=0;for(let ot=0;ot<f.length;ot++){let{name:st,fn:ht}=f[ot],{x:bt,y:yt,data:It,reset:Rt}=await ht({x:R,y:H,initialPlacement:e,placement:J,strategy:i,middlewareData:q,rects:A,platform:c,elements:{reference:a,floating:o}});R=bt!=null?bt:R,H=yt!=null?yt:H,q={...q,[st]:{...q[st],...It}},Rt&&Z<=50&&(Z++,typeof Rt=="object"&&(Rt.placement&&(J=Rt.placement),Rt.rects&&(A=Rt.rects===!0?await c.getElementRects({reference:a,floating:o,strategy:i}):Rt.rects),{x:R,y:H}=pg(A,J,g)),ot=-1)}return{x:R,y:H,placement:J,strategy:i,middlewareData:q}};async function kd(a,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:n,rects:c,elements:f,strategy:g}=a,{boundary:A="clippingAncestors",rootBoundary:R="viewport",elementContext:H="floating",altBoundary:J=!1,padding:q=0}=bo(o,a),Z=wd(q),st=f[J?H==="floating"?"reference":"floating":H],ht=$i(await n.getClippingRect({element:(t=await(n.isElement==null?void 0:n.isElement(st)))==null||t?st:st.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(f.floating)),boundary:A,rootBoundary:R,strategy:g})),bt=H==="floating"?{x:e,y:i,width:c.floating.width,height:c.floating.height}:c.reference,yt=await(n.getOffsetParent==null?void 0:n.getOffsetParent(f.floating)),It=await(n.isElement==null?void 0:n.isElement(yt))?await(n.getScale==null?void 0:n.getScale(yt))||{x:1,y:1}:{x:1,y:1},Rt=$i(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:bt,offsetParent:yt,strategy:g}):bt);return{top:(ht.top-Rt.top+Z.top)/It.y,bottom:(Rt.bottom-ht.bottom+Z.bottom)/It.y,left:(ht.left-Rt.left+Z.left)/It.x,right:(Rt.right-ht.right+Z.right)/It.x}}var ug=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:e,placement:i,rects:n,platform:c,elements:f,middlewareData:g}=o,{element:A,padding:R=0}=bo(a,o)||{};if(A==null)return{};let H=wd(R),J={x:t,y:e},q=_d(i),Z=Cd(q),ot=await c.getDimensions(A),st=q==="y",ht=st?"top":"left",bt=st?"bottom":"right",yt=st?"clientHeight":"clientWidth",It=n.reference[Z]+n.reference[q]-J[q]-n.floating[Z],Rt=J[q]-n.reference[q],Gt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),Pt=Gt?Gt[yt]:0;(!Pt||!await(c.isElement==null?void 0:c.isElement(Gt)))&&(Pt=f.floating[yt]||n.floating[Z]);let ne=It/2-Rt/2,Ge=Pt/2-ot[Z]/2-1,jt=yr(H[ht],Ge),Ee=yr(H[bt],Ge),Te=jt,xe=Pt-ot[Z]-Ee,kt=Pt/2-ot[Z]/2+ne,ie=Id(Te,kt,xe),Ke=!g.arrow&&os(i)!=null&&kt!==ie&&n.reference[Z]/2-(kt<Te?jt:Ee)-ot[Z]/2<0,Qe=Ke?kt<Te?kt-Te:kt-xe:0;return{[q]:J[q]+Qe,data:{[q]:ie,centerOffset:kt-ie-Qe,...Ke&&{alignmentOffset:Qe}},reset:Ke}}});var fg=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,e;let{placement:i,middlewareData:n,rects:c,initialPlacement:f,platform:g,elements:A}=o,{mainAxis:R=!0,crossAxis:H=!0,fallbackPlacements:J,fallbackStrategy:q="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:ot=!0,...st}=bo(a,o);if((t=n.arrow)!=null&&t.alignmentOffset)return{};let ht=Gr(i),bt=Kr(f),yt=Gr(f)===f,It=await(g.isRTL==null?void 0:g.isRTL(A.floating)),Rt=J||(yt||!ot?[En(f)]:cg(f)),Gt=Z!=="none";!J&&Gt&&Rt.push(...hg(f,ot,Z,It));let Pt=[f,...Rt],ne=await kd(o,st),Ge=[],jt=((e=n.flip)==null?void 0:e.overflows)||[];if(R&&Ge.push(ne[ht]),H){let kt=dg(i,c,It);Ge.push(ne[kt[0]],ne[kt[1]])}if(jt=[...jt,{placement:i,overflows:Ge}],!Ge.every(kt=>kt<=0)){var Ee,Te;let kt=(((Ee=n.flip)==null?void 0:Ee.index)||0)+1,ie=Pt[kt];if(ie&&(!(H==="alignment"?bt!==Kr(ie):!1)||jt.every(Je=>Je.overflows[0]>0&&Kr(Je.placement)===bt)))return{data:{index:kt,overflows:jt},reset:{placement:ie}};let Ke=(Te=jt.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:Te.placement;if(!Ke)switch(q){case"bestFit":{var xe;let Qe=(xe=jt.filter(Je=>{if(Gt){let Ar=Kr(Je.placement);return Ar===bt||Ar==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(Ar=>Ar>0).reduce((Ar,il)=>Ar+il,0)]).sort((Je,Ar)=>Je[1]-Ar[1])[0])==null?void 0:xe[0];Qe&&(Ke=Qe);break}case"initialPlacement":Ke=f;break}if(i!==Ke)return{reset:{placement:Ke}}}return{}}}};function vg(a){let o=yr(...a.map(n=>n.left)),t=yr(...a.map(n=>n.top)),e=we(...a.map(n=>n.right)),i=we(...a.map(n=>n.bottom));return{x:o,y:t,width:e-o,height:i-t}}function HA(a){let o=a.slice().sort((i,n)=>i.y-n.y),t=[],e=null;for(let i=0;i<o.length;i++){let n=o[i];!e||n.y-e.y>e.height/2?t.push([n]):t[t.length-1].push(n),e=n}return t.map(i=>$i(vg(i)))}var gg=function(a){return a===void 0&&(a={}),{name:"inline",options:a,async fn(o){let{placement:t,elements:e,rects:i,platform:n,strategy:c}=o,{padding:f=2,x:g,y:A}=bo(a,o),R=Array.from(await(n.getClientRects==null?void 0:n.getClientRects(e.reference))||[]),H=HA(R),J=$i(vg(R)),q=wd(f);function Z(){if(H.length===2&&H[0].left>H[1].right&&g!=null&&A!=null)return H.find(st=>g>st.left-q.left&&g<st.right+q.right&&A>st.top-q.top&&A<st.bottom+q.bottom)||J;if(H.length>=2){if(Kr(t)==="y"){let jt=H[0],Ee=H[H.length-1],Te=Gr(t)==="top",xe=jt.top,kt=Ee.bottom,ie=Te?jt.left:Ee.left,Ke=Te?jt.right:Ee.right,Qe=Ke-ie,Je=kt-xe;return{top:xe,bottom:kt,left:ie,right:Ke,width:Qe,height:Je,x:ie,y:xe}}let st=Gr(t)==="left",ht=we(...H.map(jt=>jt.right)),bt=yr(...H.map(jt=>jt.left)),yt=H.filter(jt=>st?jt.left===bt:jt.right===ht),It=yt[0].top,Rt=yt[yt.length-1].bottom,Gt=bt,Pt=ht,ne=Pt-Gt,Ge=Rt-It;return{top:It,bottom:Rt,left:Gt,right:Pt,width:ne,height:Ge,x:Gt,y:It}}return J}let ot=await n.getElementRects({reference:{getBoundingClientRect:Z},floating:e.floating,strategy:c});return i.reference.x!==ot.reference.x||i.reference.y!==ot.reference.y||i.reference.width!==ot.reference.width||i.reference.height!==ot.reference.height?{reset:{rects:ot}}:{}}}},UA=new Set(["left","top"]);async function GA(a,o){let{placement:t,platform:e,elements:i}=a,n=await(e.isRTL==null?void 0:e.isRTL(i.floating)),c=Gr(t),f=os(t),g=Kr(t)==="y",A=UA.has(c)?-1:1,R=n&&g?-1:1,H=bo(o,a),{mainAxis:J,crossAxis:q,alignmentAxis:Z}=typeof H=="number"?{mainAxis:H,crossAxis:0,alignmentAxis:null}:{mainAxis:H.mainAxis||0,crossAxis:H.crossAxis||0,alignmentAxis:H.alignmentAxis};return f&&typeof Z=="number"&&(q=f==="end"?Z*-1:Z),g?{x:q*R,y:J*A}:{x:J*A,y:q*R}}var bg=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,e;let{x:i,y:n,placement:c,middlewareData:f}=o,g=await GA(o,a);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+g.x,y:n+g.y,data:{...g,placement:c}}}}},yg=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:n=!0,crossAxis:c=!1,limiter:f={fn:st=>{let{x:ht,y:bt}=st;return{x:ht,y:bt}}},...g}=bo(a,o),A={x:t,y:e},R=await kd(o,g),H=Kr(Gr(i)),J=sp(H),q=A[J],Z=A[H];if(n){let st=J==="y"?"top":"left",ht=J==="y"?"bottom":"right",bt=q+R[st],yt=q-R[ht];q=Id(bt,q,yt)}if(c){let st=H==="y"?"top":"left",ht=H==="y"?"bottom":"right",bt=Z+R[st],yt=Z-R[ht];Z=Id(bt,Z,yt)}let ot=f.fn({...o,[J]:q,[H]:Z});return{...ot,data:{x:ot.x-t,y:ot.y-e,enabled:{[J]:n,[H]:c}}}}}};var Eg=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,e;let{placement:i,rects:n,platform:c,elements:f}=o,{apply:g=()=>{},...A}=bo(a,o),R=await kd(o,A),H=Gr(i),J=os(i),q=Kr(i)==="y",{width:Z,height:ot}=n.floating,st,ht;H==="top"||H==="bottom"?(st=H,ht=J===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=H,st=J==="end"?"top":"bottom");let bt=ot-R.top-R.bottom,yt=Z-R.left-R.right,It=yr(ot-R[st],bt),Rt=yr(Z-R[ht],yt),Gt=!o.middlewareData.shift,Pt=It,ne=Rt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=yt),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Pt=bt),Gt&&!J){let jt=we(R.left,0),Ee=we(R.right,0),Te=we(R.top,0),xe=we(R.bottom,0);q?ne=Z-2*(jt!==0||Ee!==0?jt+Ee:we(R.left,R.right)):Pt=ot-2*(Te!==0||xe!==0?Te+xe:we(R.top,R.bottom))}await g({...o,availableWidth:ne,availableHeight:Pt});let Ge=await c.getDimensions(f.floating);return Z!==Ge.width||ot!==Ge.height?{reset:{rects:!0}}:{}}}};function Nd(){return typeof window<"u"}function ss(a){return xg(a)?(a.nodeName||"").toLowerCase():"#document"}function ar(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function Wr(a){var o;return(o=(xg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function xg(a){return Nd()?a instanceof Node||a instanceof ar(a).Node:!1}function kr(a){return Nd()?a instanceof Element||a instanceof ar(a).Element:!1}function Yr(a){return Nd()?a instanceof HTMLElement||a instanceof ar(a).HTMLElement:!1}function Tg(a){return!Nd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ar(a).ShadowRoot}var KA=new Set(["inline","contents"]);function ia(a){let{overflow:o,overflowX:t,overflowY:e,display:i}=Nr(a);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!KA.has(i)}var WA=new Set(["table","td","th"]);function Ag(a){return WA.has(ss(a))}var YA=[":popover-open",":modal"];function An(a){return YA.some(o=>{try{return a.matches(o)}catch{return!1}})}var jA=["transform","translate","scale","rotate","perspective"],qA=["transform","translate","scale","rotate","perspective","filter"],XA=["paint","layout","strict","content"];function Ld(a){let o=Md(),t=kr(a)?Nr(a):a;return jA.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||qA.some(e=>(t.willChange||"").includes(e))||XA.some(e=>(t.contain||"").includes(e))}function Sg(a){let o=Vi(a);for(;Yr(o)&&!as(o);){if(Ld(o))return o;if(An(o))return null;o=Vi(o)}return null}function Md(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var ZA=new Set(["html","body","#document"]);function as(a){return ZA.has(ss(a))}function Nr(a){return ar(a).getComputedStyle(a)}function Sn(a){return kr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Vi(a){if(ss(a)==="html")return a;let o=a.assignedSlot||a.parentNode||Tg(a)&&a.host||Wr(a);return Tg(o)?o.host:o}function Ig(a){let o=Vi(a);return as(o)?a.ownerDocument?a.ownerDocument.body:a.body:Yr(o)&&ia(o)?o:Ig(o)}function ra(a,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=Ig(a),n=i===((e=a.ownerDocument)==null?void 0:e.body),c=ar(i);if(n){let f=Od(c);return o.concat(c,c.visualViewport||[],ia(i)?i:[],f&&t?ra(f):[])}return o.concat(i,ra(i,[],t))}function Od(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function wg(a){let o=Nr(a),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Yr(a),n=i?a.offsetWidth:t,c=i?a.offsetHeight:e,f=Tn(t)!==n||Tn(e)!==c;return f&&(t=n,e=c),{width:t,height:e,$:f}}function np(a){return kr(a)?a:a.contextElement}function oa(a){let o=np(a);if(!Yr(o))return Ur(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:n}=wg(o),c=(n?Tn(t.width):t.width)/e,f=(n?Tn(t.height):t.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var QA=Ur(0);function kg(a){let o=ar(a);return!Md()||!o.visualViewport?QA:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function JA(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==ar(a)?!1:o}function ns(a,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=a.getBoundingClientRect(),n=np(a),c=Ur(1);o&&(e?kr(e)&&(c=oa(e)):c=oa(a));let f=JA(n,t,e)?kg(n):Ur(0),g=(i.left+f.x)/c.x,A=(i.top+f.y)/c.y,R=i.width/c.x,H=i.height/c.y;if(n){let J=ar(n),q=e&&kr(e)?ar(e):e,Z=J,ot=Od(Z);for(;ot&&e&&q!==Z;){let st=oa(ot),ht=ot.getBoundingClientRect(),bt=Nr(ot),yt=ht.left+(ot.clientLeft+parseFloat(bt.paddingLeft))*st.x,It=ht.top+(ot.clientTop+parseFloat(bt.paddingTop))*st.y;g*=st.x,A*=st.y,R*=st.x,H*=st.y,g+=yt,A+=It,Z=ar(ot),ot=Od(Z)}}return $i({width:R,height:H,x:g,y:A})}function lp(a,o){let t=Sn(a).scrollLeft;return o?o.left+t:ns(Wr(a)).left+t}function Ng(a,o,t){t===void 0&&(t=!1);let e=a.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:lp(a,e)),n=e.top+o.scrollTop;return{x:i,y:n}}function t0(a){let{elements:o,rect:t,offsetParent:e,strategy:i}=a,n=i==="fixed",c=Wr(e),f=o?An(o.floating):!1;if(e===c||f&&n)return t;let g={scrollLeft:0,scrollTop:0},A=Ur(1),R=Ur(0),H=Yr(e);if((H||!H&&!n)&&((ss(e)!=="body"||ia(c))&&(g=Sn(e)),Yr(e))){let q=ns(e);A=oa(e),R.x=q.x+e.clientLeft,R.y=q.y+e.clientTop}let J=c&&!H&&!n?Ng(c,g,!0):Ur(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-g.scrollLeft*A.x+R.x+J.x,y:t.y*A.y-g.scrollTop*A.y+R.y+J.y}}function e0(a){return Array.from(a.getClientRects())}function r0(a){let o=Wr(a),t=Sn(a),e=a.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),n=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+lp(a),f=-t.scrollTop;return Nr(e).direction==="rtl"&&(c+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:n,x:c,y:f}}function i0(a,o){let t=ar(a),e=Wr(a),i=t.visualViewport,n=e.clientWidth,c=e.clientHeight,f=0,g=0;if(i){n=i.width,c=i.height;let A=Md();(!A||A&&o==="fixed")&&(f=i.offsetLeft,g=i.offsetTop)}return{width:n,height:c,x:f,y:g}}var o0=new Set(["absolute","fixed"]);function s0(a,o){let t=ns(a,!0,o==="fixed"),e=t.top+a.clientTop,i=t.left+a.clientLeft,n=Yr(a)?oa(a):Ur(1),c=a.clientWidth*n.x,f=a.clientHeight*n.y,g=i*n.x,A=e*n.y;return{width:c,height:f,x:g,y:A}}function Cg(a,o,t){let e;if(o==="viewport")e=i0(a,t);else if(o==="document")e=r0(Wr(a));else if(kr(o))e=s0(o,t);else{let i=kg(a);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return $i(e)}function Lg(a,o){let t=Vi(a);return t===o||!kr(t)||as(t)?!1:Nr(t).position==="fixed"||Lg(t,o)}function a0(a,o){let t=o.get(a);if(t)return t;let e=ra(a,[],!1).filter(f=>kr(f)&&ss(f)!=="body"),i=null,n=Nr(a).position==="fixed",c=n?Vi(a):a;for(;kr(c)&&!as(c);){let f=Nr(c),g=Ld(c);!g&&f.position==="fixed"&&(i=null),(n?!g&&!i:!g&&f.position==="static"&&!!i&&o0.has(i.position)||ia(c)&&!g&&Lg(a,c))?e=e.filter(R=>R!==c):i=f,c=Vi(c)}return o.set(a,e),e}function n0(a){let{element:o,boundary:t,rootBoundary:e,strategy:i}=a,c=[...t==="clippingAncestors"?An(o)?[]:a0(o,this._c):[].concat(t),e],f=c[0],g=c.reduce((A,R)=>{let H=Cg(o,R,i);return A.top=we(H.top,A.top),A.right=yr(H.right,A.right),A.bottom=yr(H.bottom,A.bottom),A.left=we(H.left,A.left),A},Cg(o,f,i));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function l0(a){let{width:o,height:t}=wg(a);return{width:o,height:t}}function d0(a,o,t){let e=Yr(o),i=Wr(o),n=t==="fixed",c=ns(a,!0,n,o),f={scrollLeft:0,scrollTop:0},g=Ur(0);function A(){g.x=lp(i)}if(e||!e&&!n)if((ss(o)!=="body"||ia(i))&&(f=Sn(o)),e){let q=ns(o,!0,n,o);g.x=q.x+o.clientLeft,g.y=q.y+o.clientTop}else i&&A();n&&!e&&i&&A();let R=i&&!e&&!n?Ng(i,f):Ur(0),H=c.left+f.scrollLeft-g.x-R.x,J=c.top+f.scrollTop-g.y-R.y;return{x:H,y:J,width:c.width,height:c.height}}function ap(a){return Nr(a).position==="static"}function _g(a,o){if(!Yr(a)||Nr(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return Wr(a)===t&&(t=t.ownerDocument.body),t}function Mg(a,o){let t=ar(a);if(An(a))return t;if(!Yr(a)){let i=Vi(a);for(;i&&!as(i);){if(kr(i)&&!ap(i))return i;i=Vi(i)}return t}let e=_g(a,o);for(;e&&Ag(e)&&ap(e);)e=_g(e,o);return e&&as(e)&&ap(e)&&!Ld(e)?t:e||Sg(a)||t}var c0=async function(a){let o=this.getOffsetParent||Mg,t=this.getDimensions,e=await t(a.floating);return{reference:d0(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function h0(a){return Nr(a).direction==="rtl"}var p0={convertOffsetParentRelativeRectToViewportRelativeRect:t0,getDocumentElement:Wr,getClippingRect:n0,getOffsetParent:Mg,getElementRects:c0,getClientRects:e0,getDimensions:l0,getScale:oa,isElement:kr,isRTL:h0};function Og(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function m0(a,o){let t=null,e,i=Wr(a);function n(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,g){f===void 0&&(f=!1),g===void 0&&(g=1),n();let A=a.getBoundingClientRect(),{left:R,top:H,width:J,height:q}=A;if(f||o(),!J||!q)return;let Z=xn(H),ot=xn(i.clientWidth-(R+J)),st=xn(i.clientHeight-(H+q)),ht=xn(R),yt={rootMargin:-Z+"px "+-ot+"px "+-st+"px "+-ht+"px",threshold:we(0,yr(1,g))||1},It=!0;function Rt(Gt){let Pt=Gt[0].intersectionRatio;if(Pt!==g){if(!It)return c();Pt?c(!1,Pt):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Pt===1&&!Og(A,a.getBoundingClientRect())&&c(),It=!1}try{t=new IntersectionObserver(Rt,{...yt,root:i.ownerDocument})}catch{t=new IntersectionObserver(Rt,yt)}t.observe(a)}return c(!0),n}function Rg(a,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:n=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:g=!1}=e,A=np(a),R=i||n?[...A?ra(A):[],...ra(o)]:[];R.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),n&&ht.addEventListener("resize",t)});let H=A&&f?m0(A,t):null,J=-1,q=null;c&&(q=new ResizeObserver(ht=>{let[bt]=ht;bt&&bt.target===A&&q&&(q.unobserve(o),cancelAnimationFrame(J),J=requestAnimationFrame(()=>{var yt;(yt=q)==null||yt.observe(o)})),t()}),A&&!g&&q.observe(A),q.observe(o));let Z,ot=g?ns(a):null;g&&st();function st(){let ht=ns(a);ot&&!Og(ot,ht)&&t(),ot=ht,Z=requestAnimationFrame(st)}return t(),()=>{var ht;R.forEach(bt=>{i&&bt.removeEventListener("scroll",t),n&&bt.removeEventListener("resize",t)}),H==null||H(),(ht=q)==null||ht.disconnect(),q=null,g&&cancelAnimationFrame(Z)}}var Dg=bg;var Pg=yg,Fg=fg,$g=Eg;var Vg=ug,zg=gg;var Bg=(a,o,t)=>{let e=new Map,i={platform:p0,...t},n={...i.platform,_c:e};return mg(a,o,{...i,platform:n})};var Rd=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,e,...i){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let n=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,n),n}clearInterval(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,e,...i){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let n=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,n),n}clearTimeout(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var e;if(typeof t=="number"){let i=t;return[(e=[...o.entries()].find(([,c])=>c===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var zi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var u0=B`
2626
+ `],ag=MA;var is=class extends Jt(Q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return S` <slot></slot>
2627
+ <span part="radio-icon" class="radio-icon"></span>`}};is.styles=[...Q.styles,...ag],h([u({type:Boolean,reflect:!0})],is.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],is.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],is.prototype,"softDisabled",2);var op=is;var ng=V.constructTagName("staticradio");op.register(ng);var OA=op;ip.register(Ad);var RA=ip;var yr=Math.min,we=Math.max,xn=Math.round,An=Math.floor,Ur=a=>({x:a,y:a}),DA={left:"right",right:"left",bottom:"top",top:"bottom"},PA={start:"end",end:"start"};function Id(a,o,t){return we(a,yr(o,t))}function bo(a,o){return typeof a=="function"?a(o):a}function Gr(a){return a.split("-")[0]}function os(a){return a.split("-")[1]}function sp(a){return a==="x"?"y":"x"}function Cd(a){return a==="y"?"height":"width"}var FA=new Set(["top","bottom"]);function Kr(a){return FA.has(Gr(a))?"y":"x"}function _d(a){return sp(Kr(a))}function cg(a,o,t){t===void 0&&(t=!1);let e=os(a),i=_d(a),n=Cd(i),c=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[n]>o.floating[n]&&(c=Tn(c)),[c,Tn(c)]}function hg(a){let o=Tn(a);return[Sd(a),o,Sd(o)]}function Sd(a){return a.replace(/start|end/g,o=>PA[o])}var lg=["left","right"],dg=["right","left"],$A=["top","bottom"],VA=["bottom","top"];function zA(a,o,t){switch(a){case"top":case"bottom":return t?o?dg:lg:o?lg:dg;case"left":case"right":return o?$A:VA;default:return[]}}function pg(a,o,t,e){let i=os(a),n=zA(Gr(a),t==="start",e);return i&&(n=n.map(c=>c+"-"+i),o&&(n=n.concat(n.map(Sd)))),n}function Tn(a){return a.replace(/left|right|bottom|top/g,o=>DA[o])}function BA(a){return{top:0,right:0,bottom:0,left:0,...a}}function wd(a){return typeof a!="number"?BA(a):{top:a,right:a,bottom:a,left:a}}function $i(a){let{x:o,y:t,width:e,height:i}=a;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function mg(a,o,t){let{reference:e,floating:i}=a,n=Kr(o),c=_d(o),f=Cd(c),g=Gr(o),A=n==="y",R=e.x+e.width/2-i.width/2,H=e.y+e.height/2-i.height/2,J=e[f]/2-i[f]/2,q;switch(g){case"top":q={x:R,y:e.y-i.height};break;case"bottom":q={x:R,y:e.y+e.height};break;case"right":q={x:e.x+e.width,y:H};break;case"left":q={x:e.x-i.width,y:H};break;default:q={x:e.x,y:e.y}}switch(os(o)){case"start":q[c]-=J*(t&&A?-1:1);break;case"end":q[c]+=J*(t&&A?-1:1);break}return q}var ug=async(a,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:n=[],platform:c}=t,f=n.filter(Boolean),g=await(c.isRTL==null?void 0:c.isRTL(o)),A=await c.getElementRects({reference:a,floating:o,strategy:i}),{x:R,y:H}=mg(A,e,g),J=e,q={},Z=0;for(let ot=0;ot<f.length;ot++){let{name:st,fn:ht}=f[ot],{x:bt,y:yt,data:It,reset:Rt}=await ht({x:R,y:H,initialPlacement:e,placement:J,strategy:i,middlewareData:q,rects:A,platform:c,elements:{reference:a,floating:o}});R=bt!=null?bt:R,H=yt!=null?yt:H,q={...q,[st]:{...q[st],...It}},Rt&&Z<=50&&(Z++,typeof Rt=="object"&&(Rt.placement&&(J=Rt.placement),Rt.rects&&(A=Rt.rects===!0?await c.getElementRects({reference:a,floating:o,strategy:i}):Rt.rects),{x:R,y:H}=mg(A,J,g)),ot=-1)}return{x:R,y:H,placement:J,strategy:i,middlewareData:q}};async function kd(a,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:n,rects:c,elements:f,strategy:g}=a,{boundary:A="clippingAncestors",rootBoundary:R="viewport",elementContext:H="floating",altBoundary:J=!1,padding:q=0}=bo(o,a),Z=wd(q),st=f[J?H==="floating"?"reference":"floating":H],ht=$i(await n.getClippingRect({element:(t=await(n.isElement==null?void 0:n.isElement(st)))==null||t?st:st.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(f.floating)),boundary:A,rootBoundary:R,strategy:g})),bt=H==="floating"?{x:e,y:i,width:c.floating.width,height:c.floating.height}:c.reference,yt=await(n.getOffsetParent==null?void 0:n.getOffsetParent(f.floating)),It=await(n.isElement==null?void 0:n.isElement(yt))?await(n.getScale==null?void 0:n.getScale(yt))||{x:1,y:1}:{x:1,y:1},Rt=$i(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:bt,offsetParent:yt,strategy:g}):bt);return{top:(ht.top-Rt.top+Z.top)/It.y,bottom:(Rt.bottom-ht.bottom+Z.bottom)/It.y,left:(ht.left-Rt.left+Z.left)/It.x,right:(Rt.right-ht.right+Z.right)/It.x}}var fg=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:e,placement:i,rects:n,platform:c,elements:f,middlewareData:g}=o,{element:A,padding:R=0}=bo(a,o)||{};if(A==null)return{};let H=wd(R),J={x:t,y:e},q=_d(i),Z=Cd(q),ot=await c.getDimensions(A),st=q==="y",ht=st?"top":"left",bt=st?"bottom":"right",yt=st?"clientHeight":"clientWidth",It=n.reference[Z]+n.reference[q]-J[q]-n.floating[Z],Rt=J[q]-n.reference[q],Gt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),Pt=Gt?Gt[yt]:0;(!Pt||!await(c.isElement==null?void 0:c.isElement(Gt)))&&(Pt=f.floating[yt]||n.floating[Z]);let ne=It/2-Rt/2,Ge=Pt/2-ot[Z]/2-1,jt=yr(H[ht],Ge),Ee=yr(H[bt],Ge),Te=jt,xe=Pt-ot[Z]-Ee,kt=Pt/2-ot[Z]/2+ne,ie=Id(Te,kt,xe),Ke=!g.arrow&&os(i)!=null&&kt!==ie&&n.reference[Z]/2-(kt<Te?jt:Ee)-ot[Z]/2<0,Qe=Ke?kt<Te?kt-Te:kt-xe:0;return{[q]:J[q]+Qe,data:{[q]:ie,centerOffset:kt-ie-Qe,...Ke&&{alignmentOffset:Qe}},reset:Ke}}});var vg=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,e;let{placement:i,middlewareData:n,rects:c,initialPlacement:f,platform:g,elements:A}=o,{mainAxis:R=!0,crossAxis:H=!0,fallbackPlacements:J,fallbackStrategy:q="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:ot=!0,...st}=bo(a,o);if((t=n.arrow)!=null&&t.alignmentOffset)return{};let ht=Gr(i),bt=Kr(f),yt=Gr(f)===f,It=await(g.isRTL==null?void 0:g.isRTL(A.floating)),Rt=J||(yt||!ot?[Tn(f)]:hg(f)),Gt=Z!=="none";!J&&Gt&&Rt.push(...pg(f,ot,Z,It));let Pt=[f,...Rt],ne=await kd(o,st),Ge=[],jt=((e=n.flip)==null?void 0:e.overflows)||[];if(R&&Ge.push(ne[ht]),H){let kt=cg(i,c,It);Ge.push(ne[kt[0]],ne[kt[1]])}if(jt=[...jt,{placement:i,overflows:Ge}],!Ge.every(kt=>kt<=0)){var Ee,Te;let kt=(((Ee=n.flip)==null?void 0:Ee.index)||0)+1,ie=Pt[kt];if(ie&&(!(H==="alignment"?bt!==Kr(ie):!1)||jt.every(Je=>Je.overflows[0]>0&&Kr(Je.placement)===bt)))return{data:{index:kt,overflows:jt},reset:{placement:ie}};let Ke=(Te=jt.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:Te.placement;if(!Ke)switch(q){case"bestFit":{var xe;let Qe=(xe=jt.filter(Je=>{if(Gt){let Ar=Kr(Je.placement);return Ar===bt||Ar==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(Ar=>Ar>0).reduce((Ar,il)=>Ar+il,0)]).sort((Je,Ar)=>Je[1]-Ar[1])[0])==null?void 0:xe[0];Qe&&(Ke=Qe);break}case"initialPlacement":Ke=f;break}if(i!==Ke)return{reset:{placement:Ke}}}return{}}}};function gg(a){let o=yr(...a.map(n=>n.left)),t=yr(...a.map(n=>n.top)),e=we(...a.map(n=>n.right)),i=we(...a.map(n=>n.bottom));return{x:o,y:t,width:e-o,height:i-t}}function HA(a){let o=a.slice().sort((i,n)=>i.y-n.y),t=[],e=null;for(let i=0;i<o.length;i++){let n=o[i];!e||n.y-e.y>e.height/2?t.push([n]):t[t.length-1].push(n),e=n}return t.map(i=>$i(gg(i)))}var bg=function(a){return a===void 0&&(a={}),{name:"inline",options:a,async fn(o){let{placement:t,elements:e,rects:i,platform:n,strategy:c}=o,{padding:f=2,x:g,y:A}=bo(a,o),R=Array.from(await(n.getClientRects==null?void 0:n.getClientRects(e.reference))||[]),H=HA(R),J=$i(gg(R)),q=wd(f);function Z(){if(H.length===2&&H[0].left>H[1].right&&g!=null&&A!=null)return H.find(st=>g>st.left-q.left&&g<st.right+q.right&&A>st.top-q.top&&A<st.bottom+q.bottom)||J;if(H.length>=2){if(Kr(t)==="y"){let jt=H[0],Ee=H[H.length-1],Te=Gr(t)==="top",xe=jt.top,kt=Ee.bottom,ie=Te?jt.left:Ee.left,Ke=Te?jt.right:Ee.right,Qe=Ke-ie,Je=kt-xe;return{top:xe,bottom:kt,left:ie,right:Ke,width:Qe,height:Je,x:ie,y:xe}}let st=Gr(t)==="left",ht=we(...H.map(jt=>jt.right)),bt=yr(...H.map(jt=>jt.left)),yt=H.filter(jt=>st?jt.left===bt:jt.right===ht),It=yt[0].top,Rt=yt[yt.length-1].bottom,Gt=bt,Pt=ht,ne=Pt-Gt,Ge=Rt-It;return{top:It,bottom:Rt,left:Gt,right:Pt,width:ne,height:Ge,x:Gt,y:It}}return J}let ot=await n.getElementRects({reference:{getBoundingClientRect:Z},floating:e.floating,strategy:c});return i.reference.x!==ot.reference.x||i.reference.y!==ot.reference.y||i.reference.width!==ot.reference.width||i.reference.height!==ot.reference.height?{reset:{rects:ot}}:{}}}},UA=new Set(["left","top"]);async function GA(a,o){let{placement:t,platform:e,elements:i}=a,n=await(e.isRTL==null?void 0:e.isRTL(i.floating)),c=Gr(t),f=os(t),g=Kr(t)==="y",A=UA.has(c)?-1:1,R=n&&g?-1:1,H=bo(o,a),{mainAxis:J,crossAxis:q,alignmentAxis:Z}=typeof H=="number"?{mainAxis:H,crossAxis:0,alignmentAxis:null}:{mainAxis:H.mainAxis||0,crossAxis:H.crossAxis||0,alignmentAxis:H.alignmentAxis};return f&&typeof Z=="number"&&(q=f==="end"?Z*-1:Z),g?{x:q*R,y:J*A}:{x:J*A,y:q*R}}var yg=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,e;let{x:i,y:n,placement:c,middlewareData:f}=o,g=await GA(o,a);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+g.x,y:n+g.y,data:{...g,placement:c}}}}},Eg=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:n=!0,crossAxis:c=!1,limiter:f={fn:st=>{let{x:ht,y:bt}=st;return{x:ht,y:bt}}},...g}=bo(a,o),A={x:t,y:e},R=await kd(o,g),H=Kr(Gr(i)),J=sp(H),q=A[J],Z=A[H];if(n){let st=J==="y"?"top":"left",ht=J==="y"?"bottom":"right",bt=q+R[st],yt=q-R[ht];q=Id(bt,q,yt)}if(c){let st=H==="y"?"top":"left",ht=H==="y"?"bottom":"right",bt=Z+R[st],yt=Z-R[ht];Z=Id(bt,Z,yt)}let ot=f.fn({...o,[J]:q,[H]:Z});return{...ot,data:{x:ot.x-t,y:ot.y-e,enabled:{[J]:n,[H]:c}}}}}};var Tg=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,e;let{placement:i,rects:n,platform:c,elements:f}=o,{apply:g=()=>{},...A}=bo(a,o),R=await kd(o,A),H=Gr(i),J=os(i),q=Kr(i)==="y",{width:Z,height:ot}=n.floating,st,ht;H==="top"||H==="bottom"?(st=H,ht=J===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=H,st=J==="end"?"top":"bottom");let bt=ot-R.top-R.bottom,yt=Z-R.left-R.right,It=yr(ot-R[st],bt),Rt=yr(Z-R[ht],yt),Gt=!o.middlewareData.shift,Pt=It,ne=Rt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=yt),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Pt=bt),Gt&&!J){let jt=we(R.left,0),Ee=we(R.right,0),Te=we(R.top,0),xe=we(R.bottom,0);q?ne=Z-2*(jt!==0||Ee!==0?jt+Ee:we(R.left,R.right)):Pt=ot-2*(Te!==0||xe!==0?Te+xe:we(R.top,R.bottom))}await g({...o,availableWidth:ne,availableHeight:Pt});let Ge=await c.getDimensions(f.floating);return Z!==Ge.width||ot!==Ge.height?{reset:{rects:!0}}:{}}}};function Nd(){return typeof window<"u"}function ss(a){return Ag(a)?(a.nodeName||"").toLowerCase():"#document"}function ar(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function Wr(a){var o;return(o=(Ag(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function Ag(a){return Nd()?a instanceof Node||a instanceof ar(a).Node:!1}function kr(a){return Nd()?a instanceof Element||a instanceof ar(a).Element:!1}function Yr(a){return Nd()?a instanceof HTMLElement||a instanceof ar(a).HTMLElement:!1}function xg(a){return!Nd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ar(a).ShadowRoot}var KA=new Set(["inline","contents"]);function ia(a){let{overflow:o,overflowX:t,overflowY:e,display:i}=Nr(a);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!KA.has(i)}var WA=new Set(["table","td","th"]);function Sg(a){return WA.has(ss(a))}var YA=[":popover-open",":modal"];function Sn(a){return YA.some(o=>{try{return a.matches(o)}catch{return!1}})}var jA=["transform","translate","scale","rotate","perspective"],qA=["transform","translate","scale","rotate","perspective","filter"],XA=["paint","layout","strict","content"];function Ld(a){let o=Md(),t=kr(a)?Nr(a):a;return jA.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||qA.some(e=>(t.willChange||"").includes(e))||XA.some(e=>(t.contain||"").includes(e))}function Ig(a){let o=Vi(a);for(;Yr(o)&&!as(o);){if(Ld(o))return o;if(Sn(o))return null;o=Vi(o)}return null}function Md(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var ZA=new Set(["html","body","#document"]);function as(a){return ZA.has(ss(a))}function Nr(a){return ar(a).getComputedStyle(a)}function In(a){return kr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Vi(a){if(ss(a)==="html")return a;let o=a.assignedSlot||a.parentNode||xg(a)&&a.host||Wr(a);return xg(o)?o.host:o}function Cg(a){let o=Vi(a);return as(o)?a.ownerDocument?a.ownerDocument.body:a.body:Yr(o)&&ia(o)?o:Cg(o)}function ra(a,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=Cg(a),n=i===((e=a.ownerDocument)==null?void 0:e.body),c=ar(i);if(n){let f=Od(c);return o.concat(c,c.visualViewport||[],ia(i)?i:[],f&&t?ra(f):[])}return o.concat(i,ra(i,[],t))}function Od(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function kg(a){let o=Nr(a),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Yr(a),n=i?a.offsetWidth:t,c=i?a.offsetHeight:e,f=xn(t)!==n||xn(e)!==c;return f&&(t=n,e=c),{width:t,height:e,$:f}}function np(a){return kr(a)?a:a.contextElement}function oa(a){let o=np(a);if(!Yr(o))return Ur(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:n}=kg(o),c=(n?xn(t.width):t.width)/e,f=(n?xn(t.height):t.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var QA=Ur(0);function Ng(a){let o=ar(a);return!Md()||!o.visualViewport?QA:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function JA(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==ar(a)?!1:o}function ns(a,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=a.getBoundingClientRect(),n=np(a),c=Ur(1);o&&(e?kr(e)&&(c=oa(e)):c=oa(a));let f=JA(n,t,e)?Ng(n):Ur(0),g=(i.left+f.x)/c.x,A=(i.top+f.y)/c.y,R=i.width/c.x,H=i.height/c.y;if(n){let J=ar(n),q=e&&kr(e)?ar(e):e,Z=J,ot=Od(Z);for(;ot&&e&&q!==Z;){let st=oa(ot),ht=ot.getBoundingClientRect(),bt=Nr(ot),yt=ht.left+(ot.clientLeft+parseFloat(bt.paddingLeft))*st.x,It=ht.top+(ot.clientTop+parseFloat(bt.paddingTop))*st.y;g*=st.x,A*=st.y,R*=st.x,H*=st.y,g+=yt,A+=It,Z=ar(ot),ot=Od(Z)}}return $i({width:R,height:H,x:g,y:A})}function lp(a,o){let t=In(a).scrollLeft;return o?o.left+t:ns(Wr(a)).left+t}function Lg(a,o,t){t===void 0&&(t=!1);let e=a.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:lp(a,e)),n=e.top+o.scrollTop;return{x:i,y:n}}function t0(a){let{elements:o,rect:t,offsetParent:e,strategy:i}=a,n=i==="fixed",c=Wr(e),f=o?Sn(o.floating):!1;if(e===c||f&&n)return t;let g={scrollLeft:0,scrollTop:0},A=Ur(1),R=Ur(0),H=Yr(e);if((H||!H&&!n)&&((ss(e)!=="body"||ia(c))&&(g=In(e)),Yr(e))){let q=ns(e);A=oa(e),R.x=q.x+e.clientLeft,R.y=q.y+e.clientTop}let J=c&&!H&&!n?Lg(c,g,!0):Ur(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-g.scrollLeft*A.x+R.x+J.x,y:t.y*A.y-g.scrollTop*A.y+R.y+J.y}}function e0(a){return Array.from(a.getClientRects())}function r0(a){let o=Wr(a),t=In(a),e=a.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),n=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+lp(a),f=-t.scrollTop;return Nr(e).direction==="rtl"&&(c+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:n,x:c,y:f}}function i0(a,o){let t=ar(a),e=Wr(a),i=t.visualViewport,n=e.clientWidth,c=e.clientHeight,f=0,g=0;if(i){n=i.width,c=i.height;let A=Md();(!A||A&&o==="fixed")&&(f=i.offsetLeft,g=i.offsetTop)}return{width:n,height:c,x:f,y:g}}var o0=new Set(["absolute","fixed"]);function s0(a,o){let t=ns(a,!0,o==="fixed"),e=t.top+a.clientTop,i=t.left+a.clientLeft,n=Yr(a)?oa(a):Ur(1),c=a.clientWidth*n.x,f=a.clientHeight*n.y,g=i*n.x,A=e*n.y;return{width:c,height:f,x:g,y:A}}function _g(a,o,t){let e;if(o==="viewport")e=i0(a,t);else if(o==="document")e=r0(Wr(a));else if(kr(o))e=s0(o,t);else{let i=Ng(a);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return $i(e)}function Mg(a,o){let t=Vi(a);return t===o||!kr(t)||as(t)?!1:Nr(t).position==="fixed"||Mg(t,o)}function a0(a,o){let t=o.get(a);if(t)return t;let e=ra(a,[],!1).filter(f=>kr(f)&&ss(f)!=="body"),i=null,n=Nr(a).position==="fixed",c=n?Vi(a):a;for(;kr(c)&&!as(c);){let f=Nr(c),g=Ld(c);!g&&f.position==="fixed"&&(i=null),(n?!g&&!i:!g&&f.position==="static"&&!!i&&o0.has(i.position)||ia(c)&&!g&&Mg(a,c))?e=e.filter(R=>R!==c):i=f,c=Vi(c)}return o.set(a,e),e}function n0(a){let{element:o,boundary:t,rootBoundary:e,strategy:i}=a,c=[...t==="clippingAncestors"?Sn(o)?[]:a0(o,this._c):[].concat(t),e],f=c[0],g=c.reduce((A,R)=>{let H=_g(o,R,i);return A.top=we(H.top,A.top),A.right=yr(H.right,A.right),A.bottom=yr(H.bottom,A.bottom),A.left=we(H.left,A.left),A},_g(o,f,i));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function l0(a){let{width:o,height:t}=kg(a);return{width:o,height:t}}function d0(a,o,t){let e=Yr(o),i=Wr(o),n=t==="fixed",c=ns(a,!0,n,o),f={scrollLeft:0,scrollTop:0},g=Ur(0);function A(){g.x=lp(i)}if(e||!e&&!n)if((ss(o)!=="body"||ia(i))&&(f=In(o)),e){let q=ns(o,!0,n,o);g.x=q.x+o.clientLeft,g.y=q.y+o.clientTop}else i&&A();n&&!e&&i&&A();let R=i&&!e&&!n?Lg(i,f):Ur(0),H=c.left+f.scrollLeft-g.x-R.x,J=c.top+f.scrollTop-g.y-R.y;return{x:H,y:J,width:c.width,height:c.height}}function ap(a){return Nr(a).position==="static"}function wg(a,o){if(!Yr(a)||Nr(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return Wr(a)===t&&(t=t.ownerDocument.body),t}function Og(a,o){let t=ar(a);if(Sn(a))return t;if(!Yr(a)){let i=Vi(a);for(;i&&!as(i);){if(kr(i)&&!ap(i))return i;i=Vi(i)}return t}let e=wg(a,o);for(;e&&Sg(e)&&ap(e);)e=wg(e,o);return e&&as(e)&&ap(e)&&!Ld(e)?t:e||Ig(a)||t}var c0=async function(a){let o=this.getOffsetParent||Og,t=this.getDimensions,e=await t(a.floating);return{reference:d0(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function h0(a){return Nr(a).direction==="rtl"}var p0={convertOffsetParentRelativeRectToViewportRelativeRect:t0,getDocumentElement:Wr,getClippingRect:n0,getOffsetParent:Og,getElementRects:c0,getClientRects:e0,getDimensions:l0,getScale:oa,isElement:kr,isRTL:h0};function Rg(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function m0(a,o){let t=null,e,i=Wr(a);function n(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,g){f===void 0&&(f=!1),g===void 0&&(g=1),n();let A=a.getBoundingClientRect(),{left:R,top:H,width:J,height:q}=A;if(f||o(),!J||!q)return;let Z=An(H),ot=An(i.clientWidth-(R+J)),st=An(i.clientHeight-(H+q)),ht=An(R),yt={rootMargin:-Z+"px "+-ot+"px "+-st+"px "+-ht+"px",threshold:we(0,yr(1,g))||1},It=!0;function Rt(Gt){let Pt=Gt[0].intersectionRatio;if(Pt!==g){if(!It)return c();Pt?c(!1,Pt):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Pt===1&&!Rg(A,a.getBoundingClientRect())&&c(),It=!1}try{t=new IntersectionObserver(Rt,{...yt,root:i.ownerDocument})}catch{t=new IntersectionObserver(Rt,yt)}t.observe(a)}return c(!0),n}function Dg(a,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:n=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:g=!1}=e,A=np(a),R=i||n?[...A?ra(A):[],...ra(o)]:[];R.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),n&&ht.addEventListener("resize",t)});let H=A&&f?m0(A,t):null,J=-1,q=null;c&&(q=new ResizeObserver(ht=>{let[bt]=ht;bt&&bt.target===A&&q&&(q.unobserve(o),cancelAnimationFrame(J),J=requestAnimationFrame(()=>{var yt;(yt=q)==null||yt.observe(o)})),t()}),A&&!g&&q.observe(A),q.observe(o));let Z,ot=g?ns(a):null;g&&st();function st(){let ht=ns(a);ot&&!Rg(ot,ht)&&t(),ot=ht,Z=requestAnimationFrame(st)}return t(),()=>{var ht;R.forEach(bt=>{i&&bt.removeEventListener("scroll",t),n&&bt.removeEventListener("resize",t)}),H==null||H(),(ht=q)==null||ht.disconnect(),q=null,g&&cancelAnimationFrame(Z)}}var Pg=yg;var Fg=Eg,$g=vg,Vg=Tg;var zg=fg,Bg=bg;var Hg=(a,o,t)=>{let e=new Map,i={platform:p0,...t},n={...i.platform,_c:e};return ug(a,o,{...i,platform:n})};var Rd=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,e,...i){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let n=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,n),n}clearInterval(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,e,...i){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let n=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,n),n}clearTimeout(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var e;if(typeof t=="number"){let i=t;return[(e=[...o.entries()].find(([,c])=>c===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var zi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var u0=B`
2628
2628
  :host {
2629
2629
  --mdc-popover-arrow-border-radius: 0.1875rem;
2630
2630
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2748,7 +2748,7 @@
2748
2748
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2749
2749
  border-bottom-left-radius: 100%;
2750
2750
  }
2751
- `,Hg=[u0];var Pd=V.constructTagName("popoverportal"),Dd=class extends Q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Fd=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(e=>{let i=parseInt(e,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${e}`);return i});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let i=this.popover.getBoundingClientRect(),n=e.getBoundingClientRect(),c=0;if(!n)return;let f=this.popover.offsetHeight||0,g=this.popover.offsetWidth||0,A=o.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(i.top-n.bottom,n.top-i.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(n.left-i.right,i.left-n.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${g}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${g}px`;break}}}setupAppendTo(){var o,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Pd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var R;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:n,y:c}=o,f=this.popover.arrowElement.getBoundingClientRect(),g=(R=this.popover.arrowElement.offsetParent)==null?void 0:R.getBoundingClientRect();if(!this.arrowPixelChange){let H=g!=null&&g[i]?12-Math.abs(f[i]-g[i]):0;Math.round(H)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:n!=null?`${n}px`:"",top:c!=null?`${c}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var wt=class extends Ot(Nt(sd(ed(td(Q))))){constructor(){super();this.depthManager=new mo(this);this.id="";this.triggerID="";this.trigger=Et.TRIGGER;this.placement=Et.PLACEMENT;this.color=Et.COLOR;this.visible=Et.VISIBLE;this.offset=Et.OFFSET;this.boundary=Et.BOUNDARY;this.boundaryRoot=Et.BOUNDARY_ROOT;this.focusTrap=Et.FOCUS_TRAP;this.preventScroll=Et.PREVENT_SCROLL;this.showArrow=Et.ARROW;this.closeButton=Et.CLOSE_BUTTON;this.interactive=Et.INTERACTIVE;this.delay=Et.DELAY;this.hideOnEscape=Et.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Et.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Et.HIDE_ON_BLUR;this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Et.FOCUS_BACK;this.backdrop=Et.BACKDROP;this.isBackdropInvisible=Et.IS_BACKDROP_INVISIBLE;this.disableFlip=Et.DISABLE_FLIP;this.size=Et.SIZE;this.closeButtonAriaLabel=null;this.strategy=Et.STRATEGY;this.role=Et.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Et.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=Et.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=Et.ANIMATION_FRAME;this.inline=Et.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Rd(this);this.parseTrigger=()=>{var n;let i=(((n=this.trigger)==null?void 0:n.split(" "))||[]).filter(c=>Object.values(_e).includes(c)).length>0?this.trigger:Et.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),document.addEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseout",this.handleMouseLeave,{capture:!0})}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseout",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),n=this.backdropElement?e.includes(this.backdropElement):!1;(!i||n)&&(this.hide(),zi.onClickOutside(this),n&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==G.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),zi.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.isHoverWithinTrigger=t=>{let{triggerElement:e}=this,{relatedTarget:i}=t;return e&&i instanceof Element?$l(i).includes(e):!1};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!0,this.show()))};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!1,this.startCloseDelay()))};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,i,n,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(n=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:n.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Fi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Fi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Fi.HOVER),this.timers.clearTimeout(Fi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Fi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Fi.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),i=this.boundaryRoot,n=[];if(this.inline&&n.push(zg()),n.push(Pg({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||n.push(Fg({boundary:e,rootBoundary:i})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},g=this.renderRoot.querySelector('[part="popover-content"]');n.push($g({boundary:e,rootBoundary:i,apply({availableHeight:A}){g&&(Object.assign(g.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,n.push(Vg({element:this.arrowElement,padding:12}))}n.push(Dg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=Rg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let g=this.adjustPlacementForRtl(this.placement),{x:A,y:R,middlewareData:H,placement:J}=await Bg(f,this,{placement:g,middleware:n,strategy:this.strategy});this.utils.updatePopoverStyle(A,R),H.arrow&&this.arrowElement&&this.utils.updateArrowStyle(H.arrow,J),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(J)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Fd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),zi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),zi.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:Et.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(rs).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo&&this.isConnected?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var n,c;let{triggerElement:i}=this;t===e||!i||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(i)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,g,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(g=this.elementIndexToReceiveFocus)!=null?g:0))},0),zi.onShowPopover(this)):(this.depthManager.popHost(),(n=this.floatingUICleanupFunction)==null||n.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(i),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),zi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Fi.OPEN,t,this.openDelay):(this.timers.clearTimeout(Fi.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
2751
+ `,Ug=[u0];var Pd=V.constructTagName("popoverportal"),Dd=class extends Q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Fd=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(e=>{let i=parseInt(e,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${e}`);return i});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let i=this.popover.getBoundingClientRect(),n=e.getBoundingClientRect(),c=0;if(!n)return;let f=this.popover.offsetHeight||0,g=this.popover.offsetWidth||0,A=o.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(i.top-n.bottom,n.top-i.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(n.left-i.right,i.left-n.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${g}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${g}px`;break}}}setupAppendTo(){var o,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Pd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var R;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:n,y:c}=o,f=this.popover.arrowElement.getBoundingClientRect(),g=(R=this.popover.arrowElement.offsetParent)==null?void 0:R.getBoundingClientRect();if(!this.arrowPixelChange){let H=g!=null&&g[i]?12-Math.abs(f[i]-g[i]):0;Math.round(H)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:n!=null?`${n}px`:"",top:c!=null?`${c}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var wt=class extends Ot(Nt(sd(ed(td(Q))))){constructor(){super();this.depthManager=new mo(this);this.id="";this.triggerID="";this.trigger=Et.TRIGGER;this.placement=Et.PLACEMENT;this.color=Et.COLOR;this.visible=Et.VISIBLE;this.offset=Et.OFFSET;this.boundary=Et.BOUNDARY;this.boundaryRoot=Et.BOUNDARY_ROOT;this.focusTrap=Et.FOCUS_TRAP;this.preventScroll=Et.PREVENT_SCROLL;this.showArrow=Et.ARROW;this.closeButton=Et.CLOSE_BUTTON;this.interactive=Et.INTERACTIVE;this.delay=Et.DELAY;this.hideOnEscape=Et.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Et.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Et.HIDE_ON_BLUR;this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Et.FOCUS_BACK;this.backdrop=Et.BACKDROP;this.isBackdropInvisible=Et.IS_BACKDROP_INVISIBLE;this.disableFlip=Et.DISABLE_FLIP;this.size=Et.SIZE;this.closeButtonAriaLabel=null;this.strategy=Et.STRATEGY;this.role=Et.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Et.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=Et.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=Et.ANIMATION_FRAME;this.inline=Et.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Rd(this);this.parseTrigger=()=>{var n;let i=(((n=this.trigger)==null?void 0:n.split(" "))||[]).filter(c=>Object.values(_e).includes(c)).length>0?this.trigger:Et.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),document.addEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseout",this.handleMouseLeave,{capture:!0})}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseout",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),n=this.backdropElement?e.includes(this.backdropElement):!1;(!i||n)&&(this.hide(),zi.onClickOutside(this),n&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==G.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),zi.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.isHoverWithinTrigger=t=>{let{triggerElement:e}=this,{relatedTarget:i}=t;return e&&i instanceof Element?$l(i).includes(e):!1};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!0,this.show()))};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!1,this.startCloseDelay()))};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,i,n,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(n=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:n.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Fi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Fi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Fi.HOVER),this.timers.clearTimeout(Fi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Fi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Fi.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),i=this.boundaryRoot,n=[];if(this.inline&&n.push(Bg()),n.push(Fg({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||n.push($g({boundary:e,rootBoundary:i})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},g=this.renderRoot.querySelector('[part="popover-content"]');n.push(Vg({boundary:e,rootBoundary:i,apply({availableHeight:A}){g&&(Object.assign(g.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,n.push(zg({element:this.arrowElement,padding:12}))}n.push(Pg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=Dg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let g=this.adjustPlacementForRtl(this.placement),{x:A,y:R,middlewareData:H,placement:J}=await Hg(f,this,{placement:g,middleware:n,strategy:this.strategy});this.utils.updatePopoverStyle(A,R),H.arrow&&this.arrowElement&&this.utils.updateArrowStyle(H.arrow,J),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(J)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Fd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),zi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),zi.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:Et.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(rs).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo&&this.isConnected?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var n,c;let{triggerElement:i}=this;t===e||!i||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(i)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,g,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(g=this.elementIndexToReceiveFocus)!=null?g:0))},0),zi.onShowPopover(this)):(this.depthManager.popHost(),(n=this.floatingUICleanupFunction)==null||n.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(i),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),zi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Fi.OPEN,t,this.openDelay):(this.timers.clearTimeout(Fi.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
2752
2752
  <div part="popover-hover-bridge"></div>
2753
2753
  ${this.closeButton?S` <mdc-button
2754
2754
  part="popover-close"
@@ -2762,7 +2762,7 @@
2762
2762
  <div part="popover-content">
2763
2763
  <slot></slot>
2764
2764
  </div>
2765
- `}};wt.styles=[...Q.styles,...Hg],h([u({type:String,reflect:!0})],wt.prototype,"id",2),h([u({type:String,reflect:!0})],wt.prototype,"triggerID",2),h([u({type:String,reflect:!0})],wt.prototype,"trigger",2),h([u({type:String,reflect:!0})],wt.prototype,"placement",2),h([u({type:String,reflect:!0})],wt.prototype,"color",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],wt.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],wt.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],wt.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],wt.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],wt.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],wt.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],wt.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],wt.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"interactive",2),h([u({type:String,reflect:!0})],wt.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],wt.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],wt.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],wt.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],wt.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],wt.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],wt.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],wt.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],wt.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],wt.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],wt.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],wt.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],wt.prototype,"strategy",2),h([u({type:String,reflect:!0})],wt.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],wt.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],wt.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],wt.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],wt.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],wt.prototype,"animationFrame",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"inline",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],wt.prototype,"elementIndexToReceiveFocus",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],wt.prototype,"stackGroupName",2);var nr=wt;var Ug=V.constructTagName("toggletip"),ls={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Mt.TOP,CLICK:_e.CLICK,SHOW_ARROW:!0};var f0=B`
2765
+ `}};wt.styles=[...Q.styles,...Ug],h([u({type:String,reflect:!0})],wt.prototype,"id",2),h([u({type:String,reflect:!0})],wt.prototype,"triggerID",2),h([u({type:String,reflect:!0})],wt.prototype,"trigger",2),h([u({type:String,reflect:!0})],wt.prototype,"placement",2),h([u({type:String,reflect:!0})],wt.prototype,"color",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],wt.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],wt.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],wt.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],wt.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],wt.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],wt.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],wt.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],wt.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"interactive",2),h([u({type:String,reflect:!0})],wt.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],wt.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],wt.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],wt.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],wt.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],wt.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],wt.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],wt.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],wt.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],wt.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],wt.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],wt.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],wt.prototype,"strategy",2),h([u({type:String,reflect:!0})],wt.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],wt.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],wt.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],wt.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],wt.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],wt.prototype,"animationFrame",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"inline",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],wt.prototype,"elementIndexToReceiveFocus",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],wt.prototype,"stackGroupName",2);var nr=wt;var Gg=V.constructTagName("toggletip"),ls={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Mt.TOP,CLICK:_e.CLICK,SHOW_ARROW:!0};var f0=B`
2766
2766
  :host {
2767
2767
  --mdc-toggletip-max-width: 400px;
2768
2768
  --mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
@@ -2792,7 +2792,7 @@
2792
2792
  :host([close-button]:dir(rtl))::part(popover-content) {
2793
2793
  margin-left: 2rem;
2794
2794
  }
2795
- `,Gg=[f0];var yo=class extends nr{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=ls.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:ls.CLOSE_BUTTON,this.closeButtonAriaLabel=ls.CLOSE_BUTTON_ARIA_LABEL,this.trigger=ls.CLICK,this.showArrow=ls.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0}getToggleTipText(){var t,e;return((e=(t=this.defaultSlotNodes)==null?void 0:t.map(i=>i.textContent).join(" "))==null?void 0:e.trim())||""}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=ls.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return S`
2795
+ `,Kg=[f0];var yo=class extends nr{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=ls.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:ls.CLOSE_BUTTON,this.closeButtonAriaLabel=ls.CLOSE_BUTTON_ARIA_LABEL,this.trigger=ls.CLICK,this.showArrow=ls.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0}getToggleTipText(){var t,e;return((e=(t=this.defaultSlotNodes)==null?void 0:t.map(i=>i.textContent).join(" "))==null?void 0:e.trim())||""}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=ls.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return S`
2796
2796
  ${super.render()}
2797
2797
  <mdc-screenreaderannouncer
2798
2798
  identity="${tt(this.screenreaderAnnouncerIdentity)}"
@@ -2800,12 +2800,12 @@
2800
2800
  delay="300"
2801
2801
  >
2802
2802
  </mdc-screenreaderannouncer>
2803
- `}};yo.styles=[...nr.styles,...Gg],h([gf()],yo.prototype,"defaultSlotNodes",2),h([dt()],yo.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],yo.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],yo.prototype,"placement",2);var dp=yo;function $d(a,o=500){let t,e=(...i)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...i)},o)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var Kg=V.constructTagName("screenreaderannouncer"),v0={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},ds={ARIA_LIVE:v0.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var g0=[B`
2803
+ `}};yo.styles=[...nr.styles,...Kg],h([bf()],yo.prototype,"defaultSlotNodes",2),h([dt()],yo.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],yo.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],yo.prototype,"placement",2);var dp=yo;function $d(a,o=500){let t,e=(...i)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...i)},o)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var Wg=V.constructTagName("screenreaderannouncer"),v0={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},ds={ARIA_LIVE:v0.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var g0=[B`
2804
2804
  :host {
2805
2805
  display: none;
2806
2806
  visibility: hidden;
2807
2807
  }
2808
- `],Wg=g0;var In=new Map,pi=class extends Q{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=ds.ARIA_LIVE;this.delay=ds.DELAY;this.timeout=ds.TIMEOUT;this.debounceTime=ds.DEBOUNCE;this.hasIdentityRef=!1;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:i,ariaLive:n}){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${ze()}`,g=document.createElement("div");g.setAttribute("id",f),g.setAttribute("aria-live",n!=null?n:this.dataAriaLive),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(g);let A=window.setTimeout(()=>{let R=document.createElement("p");R.textContent=t,g.appendChild(R),this.ariaLiveAnnouncementIds.push(f);let H=window.setTimeout(()=>{g.remove()},i!=null?i:this.timeout);this.timeOutIds.push(H)},e!=null?e:this.delay);this.timeOutIds.push(A)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var n;let e=document.getElementById(t);if(e)return e;let i=this.findModalAncestor();return((n=i==null?void 0:i.shadowRoot)==null?void 0:n.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let e=document.createElement("style");e.textContent=`
2808
+ `],Yg=g0;var Cn=new Map,pi=class extends Q{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=ds.ARIA_LIVE;this.delay=ds.DELAY;this.timeout=ds.TIMEOUT;this.debounceTime=ds.DEBOUNCE;this.hasIdentityRef=!1;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:i,ariaLive:n}){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${ze()}`,g=document.createElement("div");g.setAttribute("id",f),g.setAttribute("aria-live",n!=null?n:this.dataAriaLive),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(g);let A=window.setTimeout(()=>{let R=document.createElement("p");R.textContent=t,g.appendChild(R),this.ariaLiveAnnouncementIds.push(f);let H=window.setTimeout(()=>{g.remove()},i!=null?i:this.timeout);this.timeOutIds.push(H)},e!=null?e:this.delay);this.timeOutIds.push(A)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var n;let e=document.getElementById(t);if(e)return e;let i=this.findModalAncestor();return((n=i==null?void 0:i.shadowRoot)==null?void 0:n.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let e=document.createElement("style");e.textContent=`
2809
2809
  .mdc-screenreaderannouncer__visually-hidden {
2810
2810
  clip: rect(0 0 0 0);
2811
2811
  clip-path: inset(50%);
@@ -2815,7 +2815,7 @@
2815
2815
  white-space: nowrap;
2816
2816
  width: 1px;
2817
2817
  }
2818
- `,t.appendChild(e),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let i=this.findModalAncestor();i!=null&&i.shadowRoot?i.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let e=t.closest('[aria-modal="true"]');if(e)return e;let i=t.getRootNode();if(i instanceof ShadowRoot&&i.host)t=i.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=$d(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}acquireIdentityRef(){var t;this.hasIdentityRef||(In.set(this.identity,((t=In.get(this.identity))!=null?t:0)+1),this.hasIdentityRef=!0)}releaseIdentityRef(){var e;if(!this.hasIdentityRef)return;let t=((e=In.get(this.identity))!=null?e:1)-1;if(t<=0){In.delete(this.identity);let i=this.getElementByIdAcrossShadowRoot(this.identity);i!=null&&i.classList.contains("mdc-screenreaderannouncer__visually-hidden")&&i.remove()}else In.set(this.identity,t);this.hasIdentityRef=!1}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=ds.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.acquireIdentityRef(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel(),this.releaseIdentityRef()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=ds.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};pi.styles=[...Q.styles,...Wg],h([u({type:String,reflect:!0})],pi.prototype,"announcement",2),h([u({type:String,reflect:!0})],pi.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],pi.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],pi.prototype,"delay",2),h([u({type:Number,reflect:!0})],pi.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],pi.prototype,"debounceTime",2);var cp=pi;cp.register(Kg);var b0=cp;dp.register(Ug);var y0=dp;var me=a=>{class o extends a{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,h([u({reflect:!0,type:String})],o.prototype,"name",2),h([u({reflect:!0,type:String})],o.prototype,"value",2),h([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),h([zt("input")],o.prototype,"inputElement",2),o};var E0=B`
2818
+ `,t.appendChild(e),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let i=this.findModalAncestor();i!=null&&i.shadowRoot?i.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let e=t.closest('[aria-modal="true"]');if(e)return e;let i=t.getRootNode();if(i instanceof ShadowRoot&&i.host)t=i.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=$d(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}acquireIdentityRef(){var t;this.hasIdentityRef||(Cn.set(this.identity,((t=Cn.get(this.identity))!=null?t:0)+1),this.hasIdentityRef=!0)}releaseIdentityRef(){var e;if(!this.hasIdentityRef)return;let t=((e=Cn.get(this.identity))!=null?e:1)-1;if(t<=0){Cn.delete(this.identity);let i=this.getElementByIdAcrossShadowRoot(this.identity);i!=null&&i.classList.contains("mdc-screenreaderannouncer__visually-hidden")&&i.remove()}else Cn.set(this.identity,t);this.hasIdentityRef=!1}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=ds.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.acquireIdentityRef(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel(),this.releaseIdentityRef()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=ds.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};pi.styles=[...Q.styles,...Yg],h([u({type:String,reflect:!0})],pi.prototype,"announcement",2),h([u({type:String,reflect:!0})],pi.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],pi.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],pi.prototype,"delay",2),h([u({type:Number,reflect:!0})],pi.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],pi.prototype,"debounceTime",2);var cp=pi;cp.register(Wg);var b0=cp;dp.register(Gg);var y0=dp;var me=a=>{class o extends a{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,h([u({reflect:!0,type:String})],o.prototype,"name",2),h([u({reflect:!0,type:String})],o.prototype,"value",2),h([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),h([zt("input")],o.prototype,"inputElement",2),o};var E0=B`
2819
2819
  :host {
2820
2820
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
2821
2821
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
@@ -2909,18 +2909,18 @@
2909
2909
  pointer-events: none;
2910
2910
  cursor: default;
2911
2911
  }
2912
- `,Yg=[Tt,E0];var jg=a=>Td[a]||"";var lr=class extends Jt(Q){constructor(){super(...arguments);this.inputId=`mdc-el-${ze()}`;this.required=!1;this.helpTextType=Yt.VALIDATION;this.toggletipPlacement=Yt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Yt.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?S`<label for="${this.inputId}" id="${Yt.HEADING_ID}" part="label">${this.label}</label>`:S` <mdc-text
2912
+ `,jg=[Tt,E0];var qg=a=>Td[a]||"";var lr=class extends Jt(Q){constructor(){super(...arguments);this.inputId=`mdc-el-${ze()}`;this.required=!1;this.helpTextType=Yt.VALIDATION;this.toggletipPlacement=Yt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Yt.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?S`<label for="${this.inputId}" id="${Yt.HEADING_ID}" part="label">${this.label}</label>`:S` <mdc-text
2913
2913
  id="${Yt.HEADING_ID}"
2914
- tagname="${yn.TAGNAME}"
2915
- type="${yn.HEADER_TYPE}"
2914
+ tagname="${En.TAGNAME}"
2915
+ type="${En.HEADER_TYPE}"
2916
2916
  part="label"
2917
2917
  >${this.label}</mdc-text
2918
- >`:K}renderHelpTextIcon(){if(!this.helpText)return K;let t=jg(this.helpTextType||Yt.VALIDATION);return t&&!this.disabled?S`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:K}renderHelpText(){return this.helpText?S`
2918
+ >`:K}renderHelpTextIcon(){if(!this.helpText)return K;let t=qg(this.helpTextType||Yt.VALIDATION);return t&&!this.disabled?S`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:K}renderHelpText(){return this.helpText?S`
2919
2919
  <mdc-text
2920
2920
  id="${Yt.HELPER_TEXT_ID}"
2921
2921
  part="help-text"
2922
- tagname=${yn.TAGNAME}
2923
- type=${yn.TYPE}
2922
+ tagname=${En.TAGNAME}
2923
+ type=${En.TYPE}
2924
2924
  >
2925
2925
  ${this.helpText}
2926
2926
  </mdc-text>
@@ -2955,7 +2955,7 @@
2955
2955
  >
2956
2956
  <slot name="help-icon" slot="icon">${this.renderHelpTextIcon()}</slot>
2957
2957
  <slot name="help-text">${this.renderHelpText()}</slot>
2958
- </mdc-statusmessage>`:K}};lr.styles=[...Q.styles,...Yg],h([u({reflect:!0,type:String})],lr.prototype,"label",2),h([u({type:Boolean,reflect:!0,attribute:"required"})],lr.prototype,"required",2),h([u({reflect:!0,attribute:"help-text-type"})],lr.prototype,"helpTextType",2),h([u({type:String,reflect:!0,attribute:"help-text"})],lr.prototype,"helpText",2),h([u({type:String,reflect:!0,attribute:"toggletip-text"})],lr.prototype,"toggletipText",2),h([u({type:String,reflect:!0,attribute:"toggletip-placement"})],lr.prototype,"toggletipPlacement",2),h([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],lr.prototype,"toggletipStrategy",2),h([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],lr.prototype,"infoIconAriaLabel",2),h([u({type:Boolean,reflect:!0})],lr.prototype,"readonly",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],lr.prototype,"softDisabled",2);var Zt=lr;var T0=[B`
2958
+ </mdc-statusmessage>`:K}};lr.styles=[...Q.styles,...jg],h([u({reflect:!0,type:String})],lr.prototype,"label",2),h([u({type:Boolean,reflect:!0,attribute:"required"})],lr.prototype,"required",2),h([u({reflect:!0,attribute:"help-text-type"})],lr.prototype,"helpTextType",2),h([u({type:String,reflect:!0,attribute:"help-text"})],lr.prototype,"helpText",2),h([u({type:String,reflect:!0,attribute:"toggletip-text"})],lr.prototype,"toggletipText",2),h([u({type:String,reflect:!0,attribute:"toggletip-placement"})],lr.prototype,"toggletipPlacement",2),h([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],lr.prototype,"toggletipStrategy",2),h([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],lr.prototype,"infoIconAriaLabel",2),h([u({type:Boolean,reflect:!0})],lr.prototype,"readonly",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],lr.prototype,"softDisabled",2);var Zt=lr;var T0=[B`
2959
2959
  :host {
2960
2960
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
2961
2961
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -3025,7 +3025,7 @@
3025
3025
  :host([soft-disabled]) {
3026
3026
  pointer-events: none;
3027
3027
  }
3028
- `,...xt(!0)],qg=T0;var Eo=class extends Ot(Nt(Ve(me(re(Zt))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.helpTextType=rg.DEFAULT;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:K}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&(this.checked=!this.checked,this.indeterminate=!1)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===te.DEFAULT&&((this.readonly||this.softDisabled)&&e===G.SPACE&&t.preventDefault(),e===G.ENTER&&((i=this.form)==null||i.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===te.SPATIAL&&!(this.readonly||this.softDisabled)&&e===G.ENTER&&(this.toggleState(),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}update(t){super.update(t),t.has("checked")&&(this.setFormValue(),this.checked?this.internals.states.add("checked"):this.internals.states.delete("checked"))}render(){var t;return S`
3028
+ `,...xt(!0)],Xg=T0;var Eo=class extends Ot(Nt(Ve(me(re(Zt))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.helpTextType=ig.DEFAULT;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:K}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&(this.checked=!this.checked,this.indeterminate=!1)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===te.DEFAULT&&((this.readonly||this.softDisabled)&&e===G.SPACE&&t.preventDefault(),e===G.ENTER&&((i=this.form)==null||i.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===te.SPATIAL&&!(this.readonly||this.softDisabled)&&e===G.ENTER&&(this.toggleState(),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}update(t){super.update(t),t.has("checked")&&(this.setFormValue(),this.checked?this.internals.states.add("checked"):this.internals.states.delete("checked"))}render(){var t;return S`
3029
3029
  <mdc-staticcheckbox
3030
3030
  part="static-checkbox"
3031
3031
  class="mdc-focus-ring"
@@ -3055,7 +3055,7 @@
3055
3055
  />
3056
3056
  </mdc-staticcheckbox>
3057
3057
  ${this.renderLabelAndHelperText()}
3058
- `}};Eo.styles=[...Zt.styles,...qg],Eo.shadowRootOptions={...Zt.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],Eo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Eo.prototype,"indeterminate",2),h([u({type:String,reflect:!0,attribute:"help-text-type"})],Eo.prototype,"helpTextType",2);var hp=Eo;hp.register(eg);var x0=hp;var Xg=V.constructTagName("staticchip"),pp={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Vd={COLOR:pp.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN};var A0=B`
3058
+ `}};Eo.styles=[...Zt.styles,...Xg],Eo.shadowRootOptions={...Zt.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],Eo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Eo.prototype,"indeterminate",2),h([u({type:String,reflect:!0,attribute:"help-text-type"})],Eo.prototype,"helpTextType",2);var hp=Eo;hp.register(rg);var x0=hp;var Zg=V.constructTagName("staticchip"),pp={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Vd={COLOR:pp.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN};var A0=B`
3059
3059
  :host {
3060
3060
  height: 1.5rem;
3061
3061
  gap: 0.25rem;
@@ -3127,12 +3127,12 @@
3127
3127
  --mdc-chip-border-color: var(--mds-color-theme-outline-label-violet);
3128
3128
  --mdc-chip-background-color: var(--mds-color-theme-background-label-violet-normal);
3129
3129
  }
3130
- `,Zg=[Tt,A0];var sa=class extends he(Q){constructor(){super(...arguments);this.color=Vd.COLOR}renderIcon(){return this.iconName?S` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:K}render(){return S`
3130
+ `,Qg=[Tt,A0];var sa=class extends he(Q){constructor(){super(...arguments);this.color=Vd.COLOR}renderIcon(){return this.iconName?S` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:K}render(){return S`
3131
3131
  ${this.renderIcon()}
3132
3132
  ${this.label?S`<mdc-text part="label" type="${Vd.TEXT_TYPE}" tagname="${Vd.TAG_NAME}"
3133
3133
  >${this.label}</mdc-text
3134
3134
  >`:K}
3135
- `}};sa.styles=[...Q.styles,...Zg],h([u({type:String,reflect:!0})],sa.prototype,"color",2),h([u({type:String})],sa.prototype,"label",2);var Cn=sa;var zd=V.constructTagName("chip"),aa={COLOR:pp.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:Yo[24],ROLE:et.BUTTON};var S0=B`
3135
+ `}};sa.styles=[...Q.styles,...Qg],h([u({type:String,reflect:!0})],sa.prototype,"color",2),h([u({type:String})],sa.prototype,"label",2);var _n=sa;var zd=V.constructTagName("chip"),aa={COLOR:pp.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:Yo[24],ROLE:et.BUTTON};var S0=B`
3136
3136
  :host {
3137
3137
  cursor: pointer;
3138
3138
  height: 1.5rem;
@@ -3226,12 +3226,12 @@
3226
3226
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
3227
3227
  cursor: auto;
3228
3228
  }
3229
- `,Qg=[Tt,S0,...xt()];var na=class extends he(ve){constructor(){super(...arguments);this.color=aa.COLOR}connectedCallback(){super.connectedCallback(),this.role=aa.ROLE,this.size=aa.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?S` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:K}render(){return S`
3229
+ `,Jg=[Tt,S0,...xt()];var na=class extends he(ve){constructor(){super(...arguments);this.color=aa.COLOR}connectedCallback(){super.connectedCallback(),this.role=aa.ROLE,this.size=aa.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?S` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:K}render(){return S`
3230
3230
  ${this.renderIcon()}
3231
3231
  ${this.label?S`<mdc-text part="label" type="${aa.TEXT_TYPE}" tagname="${aa.TAG_NAME}"
3232
3232
  >${this.label}</mdc-text
3233
3233
  >`:K}
3234
- `}};na.styles=[...Cn.styles,...Qg],h([u({type:String,reflect:!0})],na.prototype,"color",2),h([u({type:String})],na.prototype,"label",2);var la=na;la.register(zd);var I0=la;var Jg=V.constructTagName("coachmark"),cs={COLOR:rs.CONTRAST,TRIGGER:_e.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var hs=class extends nr{constructor(){super(...arguments);this.trigger=cs.TRIGGER;this.showArrow=cs.ARROW;this.closeButton=cs.CLOSE_BUTTON;this.disableAriaExpanded=cs.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=cs.COLOR,this.showArrow=cs.ARROW}};h([u({type:String,reflect:!0})],hs.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],hs.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],hs.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],hs.prototype,"disableAriaExpanded",2);var mp=hs;mp.register(Jg);var C0=mp;var Bd=V.constructTagName("controltypeprovider"),Hd={CONTROL_TYPE:"uncontrolled"},Ud=["controlled","uncontrolled"];var _0=Bd,up=_0;var Gd=class extends Se{constructor(){super({context:up});this.innerControlType=Hd.CONTROL_TYPE}static get Context(){return up}set controlType(t){Ud.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};h([u({type:String,attribute:"control-type",reflect:!0})],Gd.prototype,"controlType",1);var fp=Gd;fp.register(Bd);var vp=fp;var jr=Oi(class extends li{constructor(a){var o;if(super(a),a.type!==br.ATTRIBUTE||a.name!=="class"||((o=a.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(a){return" "+Object.keys(a).filter(o=>a[o]).join(" ")+" "}update(a,[o]){var e,i;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in o)o[n]&&!((e=this.nt)!=null&&e.has(n))&&this.st.add(n);return this.render(o)}let t=a.element.classList;for(let n of this.st)n in o||(t.remove(n),this.st.delete(n));for(let n in o){let c=!!o[n];c===this.st.has(n)||(i=this.nt)!=null&&i.has(n)||(c?(t.add(n),this.st.add(n)):(t.remove(n),this.st.delete(n)))}return $e}});function Er(a){let o=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),e=String(a.getDate()).padStart(2,"0");return`${o}-${t}-${e}`}function Ht(a){if(!a||!/^\d{4}-\d{2}-\d{2}$/.test(a))return null;let o=a.split("-"),t=parseInt(o[0],10),e=parseInt(o[1],10),i=parseInt(o[2],10),n=new Date(t,e-1,i);return n.getFullYear()!==t||n.getMonth()!==e-1||n.getDate()!==i?null:n}function mi(a,o,t=1){return new Date(a,o-1,t)}function ps(){let a=new Date;return new Date(a.getFullYear(),a.getMonth(),a.getDate())}function Tr(a,o){let t=new Date(a);return t.setDate(t.getDate()+o),t}function Wd(a,o){let t=a.getMonth()+o,e=new Date(a.getFullYear(),t,1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),i)),e}function gp(a,o){let t=a.getFullYear()+o,e=new Date(t,a.getMonth(),1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),i)),e}function Yd(a,o){return a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()&&a.getDate()===o.getDate()}function Bi(a,o){return a.getTime()<o.getTime()}function To(a,o){return a.getTime()>o.getTime()}function jd(a,o){return a.getTime()<=o.getTime()}function tb(a){return new Date(a.getFullYear(),a.getMonth(),1)}function bp(a){return new Date(a.getFullYear(),a.getMonth()+1,0)}function qd(a,o){return new Date(a,o,0).getDate()}function eb(a){let o=a.getDay();return o===0?7:o}function _n(a,o=1){let t=a.getDay(),n=((t===0?7:t)-(o===7?7:o)+7)%7;return Tr(a,-n)}function rb(a,o="narrow"){let t=new Intl.DateTimeFormat(a,{weekday:o}),e=new Date(2026,0,5),i=[];for(let n=0;n<7;n+=1)i.push(t.format(Tr(e,n)));return i}function ms(a){var i,n;try{let c=new Intl.Locale(a),f=(n=c.weekInfo)!=null?n:(i=c.getWeekInfo)==null?void 0:i.call(c);if(f!=null&&f.firstDay)return f.firstDay}catch{}let o=["en","ja","ko","zh","pt-BR"],t=a.split("-")[0].toLowerCase(),e=a.toLowerCase();return o.includes(t)||o.includes(e)?7:1}function ib(a,o,t){let e=mi(a,o,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function ob(a,o){let t=Ht(a);return t?new Intl.DateTimeFormat(o,{dateStyle:"full"}).format(t):""}function Kd(a,o){let t=Ht(a);return t?new Intl.DateTimeFormat(o,{dateStyle:"medium"}).format(t):""}function sb(a,o,t){let e=Ht(a),i=Ht(o);if(!e||!i)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,i)}catch{return`${Kd(a,t)} \u2013 ${Kd(o,t)}`}}function Xd(a){let t=new Intl.DateTimeFormat(a,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],i="/";for(let n of t)n.type==="month"&&!e.includes("month")&&e.push("month"),n.type==="day"&&!e.includes("day")&&e.push("day"),n.type==="year"&&!e.includes("year")&&e.push("year"),n.type==="literal"&&n.value.trim()&&(i=n.value.trim());return e.length!==3?{order:["month","day","year"],separator:i}:{order:e,separator:i}}var ab=V.constructTagName("calendar"),se={SINGLE:"single",WEEK:"week",RANGE:"range"},yp={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},nb=6,Ep=7,Tp={SELECTION_MODE:se.SINGLE,LOCALE:"en-US"};var w0=B`
3234
+ `}};na.styles=[..._n.styles,...Jg],h([u({type:String,reflect:!0})],na.prototype,"color",2),h([u({type:String})],na.prototype,"label",2);var la=na;la.register(zd);var I0=la;var tb=V.constructTagName("coachmark"),cs={COLOR:rs.CONTRAST,TRIGGER:_e.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var hs=class extends nr{constructor(){super(...arguments);this.trigger=cs.TRIGGER;this.showArrow=cs.ARROW;this.closeButton=cs.CLOSE_BUTTON;this.disableAriaExpanded=cs.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=cs.COLOR,this.showArrow=cs.ARROW}};h([u({type:String,reflect:!0})],hs.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],hs.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],hs.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],hs.prototype,"disableAriaExpanded",2);var mp=hs;mp.register(tb);var C0=mp;var Bd=V.constructTagName("controltypeprovider"),Hd={CONTROL_TYPE:"uncontrolled"},Ud=["controlled","uncontrolled"];var _0=Bd,up=_0;var Gd=class extends Se{constructor(){super({context:up});this.innerControlType=Hd.CONTROL_TYPE}static get Context(){return up}set controlType(t){Ud.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};h([u({type:String,attribute:"control-type",reflect:!0})],Gd.prototype,"controlType",1);var fp=Gd;fp.register(Bd);var vp=fp;var jr=Oi(class extends li{constructor(a){var o;if(super(a),a.type!==br.ATTRIBUTE||a.name!=="class"||((o=a.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(a){return" "+Object.keys(a).filter(o=>a[o]).join(" ")+" "}update(a,[o]){var e,i;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in o)o[n]&&!((e=this.nt)!=null&&e.has(n))&&this.st.add(n);return this.render(o)}let t=a.element.classList;for(let n of this.st)n in o||(t.remove(n),this.st.delete(n));for(let n in o){let c=!!o[n];c===this.st.has(n)||(i=this.nt)!=null&&i.has(n)||(c?(t.add(n),this.st.add(n)):(t.remove(n),this.st.delete(n)))}return $e}});function Er(a){let o=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),e=String(a.getDate()).padStart(2,"0");return`${o}-${t}-${e}`}function Ht(a){if(!a||!/^\d{4}-\d{2}-\d{2}$/.test(a))return null;let o=a.split("-"),t=parseInt(o[0],10),e=parseInt(o[1],10),i=parseInt(o[2],10),n=new Date(t,e-1,i);return n.getFullYear()!==t||n.getMonth()!==e-1||n.getDate()!==i?null:n}function mi(a,o,t=1){return new Date(a,o-1,t)}function ps(){let a=new Date;return new Date(a.getFullYear(),a.getMonth(),a.getDate())}function Tr(a,o){let t=new Date(a);return t.setDate(t.getDate()+o),t}function Wd(a,o){let t=a.getMonth()+o,e=new Date(a.getFullYear(),t,1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),i)),e}function gp(a,o){let t=a.getFullYear()+o,e=new Date(t,a.getMonth(),1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),i)),e}function Yd(a,o){return a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()&&a.getDate()===o.getDate()}function Bi(a,o){return a.getTime()<o.getTime()}function To(a,o){return a.getTime()>o.getTime()}function jd(a,o){return a.getTime()<=o.getTime()}function eb(a){return new Date(a.getFullYear(),a.getMonth(),1)}function bp(a){return new Date(a.getFullYear(),a.getMonth()+1,0)}function qd(a,o){return new Date(a,o,0).getDate()}function rb(a){let o=a.getDay();return o===0?7:o}function wn(a,o=1){let t=a.getDay(),n=((t===0?7:t)-(o===7?7:o)+7)%7;return Tr(a,-n)}function ib(a,o="narrow"){let t=new Intl.DateTimeFormat(a,{weekday:o}),e=new Date(2026,0,5),i=[];for(let n=0;n<7;n+=1)i.push(t.format(Tr(e,n)));return i}function ms(a){var i,n;try{let c=new Intl.Locale(a),f=(n=c.weekInfo)!=null?n:(i=c.getWeekInfo)==null?void 0:i.call(c);if(f!=null&&f.firstDay)return f.firstDay}catch{}let o=["en","ja","ko","zh","pt-BR"],t=a.split("-")[0].toLowerCase(),e=a.toLowerCase();return o.includes(t)||o.includes(e)?7:1}function ob(a,o,t){let e=mi(a,o,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function sb(a,o){let t=Ht(a);return t?new Intl.DateTimeFormat(o,{dateStyle:"full"}).format(t):""}function Kd(a,o){let t=Ht(a);return t?new Intl.DateTimeFormat(o,{dateStyle:"medium"}).format(t):""}function ab(a,o,t){let e=Ht(a),i=Ht(o);if(!e||!i)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,i)}catch{return`${Kd(a,t)} \u2013 ${Kd(o,t)}`}}function Xd(a){let t=new Intl.DateTimeFormat(a,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],i="/";for(let n of t)n.type==="month"&&!e.includes("month")&&e.push("month"),n.type==="day"&&!e.includes("day")&&e.push("day"),n.type==="year"&&!e.includes("year")&&e.push("year"),n.type==="literal"&&n.value.trim()&&(i=n.value.trim());return e.length!==3?{order:["month","day","year"],separator:i}:{order:e,separator:i}}var nb=V.constructTagName("calendar"),se={SINGLE:"single",WEEK:"week",RANGE:"range"},yp={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},lb=6,Ep=7,Tp={SELECTION_MODE:se.SINGLE,LOCALE:"en-US"};var w0=B`
3235
3235
  :host {
3236
3236
  --mdc-calendar-background-color: var(--mds-color-theme-background-solid-primary-normal);
3237
3237
  --mdc-calendar-text-color: var(--mds-color-theme-text-primary-normal);
@@ -3426,7 +3426,7 @@
3426
3426
  .calendar-today-button mdc-button {
3427
3427
  width: auto;
3428
3428
  }
3429
- `,lb=[$r,w0];function db(a){let o=rb(a,"narrow"),t=ms(a),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function cb(a,o,t,e,i,n,c,f){let g=mi(a,o,1),A=ps(),R=ms(t),H=eb(g),J;R===7?J=H===7?0:H:(J=H-R,J<0&&(J+=7));let q=Tr(g,-J),Z=c?Ht(c):void 0,ot=f?Ht(f):void 0,st=i?Ht(i):void 0,ht=n?Ht(n):void 0,bt=new Set(e),yt=[];for(let It=0;It<nb;It+=1){let Rt=[];for(let Gt=0;Gt<Ep;Gt+=1){let Pt=Tr(q,It*Ep+Gt),ne=Er(Pt),Ge=Pt.getMonth()+1===o&&Pt.getFullYear()===a,jt=Yd(Pt,A),Ee=bt.has(ne),Te=!1;Z&&Bi(Pt,Z)&&(Te=!0),ot&&To(Pt,ot)&&(Te=!0);let xe=!1,kt=!1,ie=!1;st&&ht&&(kt=Yd(Pt,st),ie=Yd(Pt,ht),xe=jd(st,Pt)&&jd(Pt,ht)),Rt.push({date:ne,day:Pt.getDate(),isCurrentMonth:Ge,isToday:jt,isSelected:Ee,isInRange:xe,isRangeStart:kt,isRangeEnd:ie,isDisabled:Te})}yt.push({days:Rt})}return yt}function Zd(a,o){let t=Ht(a);if(!t)return{start:"",end:""};let e=_n(t,ms(o)),i=Tr(e,6);return{start:Er(e),end:Er(i)}}function xp(a,o,t){return ib(a,o,t)}function hb(a,o){let t=Ht(a),e=Ht(o);if(!t||!e)return[];let i=[],n=t;for(;jd(n,e);)i.push(Er(n)),n=Tr(n,1);return i}function pb(a,o){return Kd(a,o)}function wn(a,o,t){return sb(a,o,t)}var ge=class extends Ot(Nt(Q)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=Tp.SELECTION_MODE;this.locale=Tp.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start"}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start"),t.has("value")&&this.value){let e=Ht(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let c=Ht(this.value);if(c){this.displayMonth=c.getMonth()+1,this.displayYear=c.getFullYear(),this.focusedDate=this.value;return}}let t=ps(),e=this.min?Ht(this.min):void 0,i=this.max?Ht(this.max):void 0,n=t;e&&Bi(t,e)?n=e:i&&To(t,i)&&(n=i),this.displayMonth=n.getMonth()+1,this.displayYear=n.getFullYear(),this.focusedDate=Er(n)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),i=this.getRangeEnd();return cb(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value&&this.endValue?hb(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=mi(this.displayYear,this.displayMonth,1),e=Ht(this.min);return e?To(t,tb(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=bp(mi(this.displayYear,this.displayMonth,1)),e=Ht(this.max);return e?Bi(t,bp(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=Wd(mi(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=Er(mi(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}selectDate(t){switch(this.selectionMode){case se.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case se.WEEK:{let{start:e,end:i}=Zd(t,this.locale);this.value=e,this.endValue=i,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:i},bubbles:!0,composed:!0}));break}case se.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=Ht(this.value),i=Ht(t);e&&i&&Bi(i,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?Ht(this.focusedDate):ps();if(!e)return;let i=this.getActionForKeyEvent(t),n;switch(i){case G.LEFT:t.preventDefault(),n=Tr(e,-1);break;case G.RIGHT:t.preventDefault(),n=Tr(e,1);break;case G.UP:t.preventDefault(),n=Tr(e,-7);break;case G.DOWN:t.preventDefault(),n=Tr(e,7);break;case G.HOME:{t.preventDefault();let c=ms(this.locale);n=_n(e,c);break}case G.END:{t.preventDefault();let c=ms(this.locale);n=Tr(_n(e,c),6);break}case G.ENTER:case G.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===Lt.PAGE_UP){t.preventDefault(),n=t.shiftKey?gp(e,-1):Wd(e,-1);break}if(t.key===Lt.PAGE_DOWN){t.preventDefault(),n=t.shiftKey?gp(e,1):Wd(e,1);break}return}if(this.keyDownEventHandled(),n){let c=Er(n);if(this.isDateDisabled(c))return;this.focusedDate=c,(n.getMonth()+1!==this.displayMonth||n.getFullYear()!==this.displayYear)&&(this.displayMonth=n.getMonth()+1,this.displayYear=n.getFullYear()),this.updateComplete.then(()=>{var g;let f=(g=this.shadowRoot)==null?void 0:g.querySelector(`[data-date="${c}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===se.WEEK&&this.value&&this.endValue?`Calendar, ${wn(this.value,this.endValue,this.locale)}`:`Calendar, ${xp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=xp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return S`
3429
+ `,db=[$r,w0];function cb(a){let o=ib(a,"narrow"),t=ms(a),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function hb(a,o,t,e,i,n,c,f){let g=mi(a,o,1),A=ps(),R=ms(t),H=rb(g),J;R===7?J=H===7?0:H:(J=H-R,J<0&&(J+=7));let q=Tr(g,-J),Z=c?Ht(c):void 0,ot=f?Ht(f):void 0,st=i?Ht(i):void 0,ht=n?Ht(n):void 0,bt=new Set(e),yt=[];for(let It=0;It<lb;It+=1){let Rt=[];for(let Gt=0;Gt<Ep;Gt+=1){let Pt=Tr(q,It*Ep+Gt),ne=Er(Pt),Ge=Pt.getMonth()+1===o&&Pt.getFullYear()===a,jt=Yd(Pt,A),Ee=bt.has(ne),Te=!1;Z&&Bi(Pt,Z)&&(Te=!0),ot&&To(Pt,ot)&&(Te=!0);let xe=!1,kt=!1,ie=!1;st&&ht&&(kt=Yd(Pt,st),ie=Yd(Pt,ht),xe=jd(st,Pt)&&jd(Pt,ht)),Rt.push({date:ne,day:Pt.getDate(),isCurrentMonth:Ge,isToday:jt,isSelected:Ee,isInRange:xe,isRangeStart:kt,isRangeEnd:ie,isDisabled:Te})}yt.push({days:Rt})}return yt}function Zd(a,o){let t=Ht(a);if(!t)return{start:"",end:""};let e=wn(t,ms(o)),i=Tr(e,6);return{start:Er(e),end:Er(i)}}function xp(a,o,t){return ob(a,o,t)}function pb(a,o){let t=Ht(a),e=Ht(o);if(!t||!e)return[];let i=[],n=t;for(;jd(n,e);)i.push(Er(n)),n=Tr(n,1);return i}function mb(a,o){return Kd(a,o)}function kn(a,o,t){return ab(a,o,t)}var ge=class extends Ot(Nt(Q)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=Tp.SELECTION_MODE;this.locale=Tp.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start"}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start"),t.has("value")&&this.value){let e=Ht(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let c=Ht(this.value);if(c){this.displayMonth=c.getMonth()+1,this.displayYear=c.getFullYear(),this.focusedDate=this.value;return}}let t=ps(),e=this.min?Ht(this.min):void 0,i=this.max?Ht(this.max):void 0,n=t;e&&Bi(t,e)?n=e:i&&To(t,i)&&(n=i),this.displayMonth=n.getMonth()+1,this.displayYear=n.getFullYear(),this.focusedDate=Er(n)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),i=this.getRangeEnd();return hb(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value&&this.endValue?pb(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=mi(this.displayYear,this.displayMonth,1),e=Ht(this.min);return e?To(t,eb(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=bp(mi(this.displayYear,this.displayMonth,1)),e=Ht(this.max);return e?Bi(t,bp(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=Wd(mi(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=Er(mi(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}selectDate(t){switch(this.selectionMode){case se.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case se.WEEK:{let{start:e,end:i}=Zd(t,this.locale);this.value=e,this.endValue=i,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:i},bubbles:!0,composed:!0}));break}case se.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=Ht(this.value),i=Ht(t);e&&i&&Bi(i,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?Ht(this.focusedDate):ps();if(!e)return;let i=this.getActionForKeyEvent(t),n;switch(i){case G.LEFT:t.preventDefault(),n=Tr(e,-1);break;case G.RIGHT:t.preventDefault(),n=Tr(e,1);break;case G.UP:t.preventDefault(),n=Tr(e,-7);break;case G.DOWN:t.preventDefault(),n=Tr(e,7);break;case G.HOME:{t.preventDefault();let c=ms(this.locale);n=wn(e,c);break}case G.END:{t.preventDefault();let c=ms(this.locale);n=Tr(wn(e,c),6);break}case G.ENTER:case G.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===Lt.PAGE_UP){t.preventDefault(),n=t.shiftKey?gp(e,-1):Wd(e,-1);break}if(t.key===Lt.PAGE_DOWN){t.preventDefault(),n=t.shiftKey?gp(e,1):Wd(e,1);break}return}if(this.keyDownEventHandled(),n){let c=Er(n);if(this.isDateDisabled(c))return;this.focusedDate=c,(n.getMonth()+1!==this.displayMonth||n.getFullYear()!==this.displayYear)&&(this.displayMonth=n.getMonth()+1,this.displayYear=n.getFullYear()),this.updateComplete.then(()=>{var g;let f=(g=this.shadowRoot)==null?void 0:g.querySelector(`[data-date="${c}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===se.WEEK&&this.value&&this.endValue?`Calendar, ${kn(this.value,this.endValue,this.locale)}`:`Calendar, ${xp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=xp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return S`
3430
3430
  <div class="calendar-header">
3431
3431
  <mdc-text type="body-midsize-bold" tagname="span">${t}</mdc-text>
3432
3432
  <div class="calendar-header-nav">
@@ -3458,13 +3458,13 @@
3458
3458
  aria-selected="${f?"true":"false"}"
3459
3459
  aria-disabled="${t.isDisabled?"true":K}"
3460
3460
  aria-current="${t.isToday?"date":K}"
3461
- aria-label="${ob(t.date,this.locale)}"
3461
+ aria-label="${sb(t.date,this.locale)}"
3462
3462
  @click="${()=>this.handleDayClick(t)}"
3463
3463
  >
3464
3464
  ${t.day}
3465
3465
  </button>
3466
3466
  </div>
3467
- `}handleGridFocusIn(){this.gridHasFocus=!0}handleGridFocusOut(){this.gridHasFocus=!1}renderGrid(){let t=this.calendarGrid,e=db(this.locale);return S`
3467
+ `}handleGridFocusIn(){this.gridHasFocus=!0}handleGridFocusOut(){this.gridHasFocus=!1}renderGrid(){let t=this.calendarGrid,e=cb(this.locale);return S`
3468
3468
  <div
3469
3469
  class="calendar-grid"
3470
3470
  role="grid"
@@ -3489,7 +3489,7 @@
3489
3489
  >${this.localeTodayLabel}</mdc-button
3490
3490
  >
3491
3491
  </div>
3492
- `}render(){return S` ${this.renderHeader()} ${this.renderGrid()} ${this.renderTodayButton()} `}};ge.styles=[...Q.styles,...lb],h([u({type:String,reflect:!0})],ge.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"end-value"})],ge.prototype,"endValue",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],ge.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],ge.prototype,"locale",2),h([u({type:String,reflect:!0})],ge.prototype,"min",2),h([u({type:String,reflect:!0})],ge.prototype,"max",2),h([u({type:Boolean,reflect:!0,attribute:"show-today-button"})],ge.prototype,"showTodayButton",2),h([u({type:String,attribute:"locale-today-label"})],ge.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],ge.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],ge.prototype,"localeNextMonthLabel",2),h([dt()],ge.prototype,"displayMonth",2),h([dt()],ge.prototype,"displayYear",2),h([dt()],ge.prototype,"focusedDate",2),h([dt()],ge.prototype,"gridHasFocus",2),h([dt()],ge.prototype,"rangeSelectionPhase",2);var Ap=ge;Ap.register(ab);var k0=Ap;nr.register(Qv);Dd.register(Pd);var N0=nr;var mb=V.constructTagName("datepicker"),kn={DEFAULT:"default",INPUT:"input"},Sp="calendar-empty-bold",Nn="datepicker-triggerid",Qd={VARIANT:kn.INPUT,LOCALE:"en-US",DISABLE_FLIP:!1};var L0=B`
3492
+ `}render(){return S` ${this.renderHeader()} ${this.renderGrid()} ${this.renderTodayButton()} `}};ge.styles=[...Q.styles,...db],h([u({type:String,reflect:!0})],ge.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"end-value"})],ge.prototype,"endValue",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],ge.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],ge.prototype,"locale",2),h([u({type:String,reflect:!0})],ge.prototype,"min",2),h([u({type:String,reflect:!0})],ge.prototype,"max",2),h([u({type:Boolean,reflect:!0,attribute:"show-today-button"})],ge.prototype,"showTodayButton",2),h([u({type:String,attribute:"locale-today-label"})],ge.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],ge.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],ge.prototype,"localeNextMonthLabel",2),h([dt()],ge.prototype,"displayMonth",2),h([dt()],ge.prototype,"displayYear",2),h([dt()],ge.prototype,"focusedDate",2),h([dt()],ge.prototype,"gridHasFocus",2),h([dt()],ge.prototype,"rangeSelectionPhase",2);var Ap=ge;Ap.register(nb);var k0=Ap;nr.register(Jv);Dd.register(Pd);var N0=nr;var ub=V.constructTagName("datepicker"),Nn={DEFAULT:"default",INPUT:"input"},Sp="calendar-empty-bold",Ln="datepicker-triggerid",Qd={VARIANT:Nn.INPUT,LOCALE:"en-US",DISABLE_FLIP:!1};var L0=B`
3493
3493
  :host {
3494
3494
  --mdc-datepicker-background-color: var(--mds-color-theme-background-primary-ghost);
3495
3495
  --mdc-datepicker-text-color: var(--mds-color-theme-text-primary-normal);
@@ -3661,7 +3661,7 @@
3661
3661
  --mdc-datepicker-text-color: var(--mds-color-theme-text-primary-disabled);
3662
3662
  color: var(--mds-color-theme-text-primary-disabled);
3663
3663
  }
3664
- `,ub=[L0,...xt(!0)];function Ln(a){return Xd(a).order}function fb(a){return Xd(a).separator}function vb(a){if(!a)return null;let o=Ht(a);return o?{month:String(o.getMonth()+1).padStart(2,"0"),day:String(o.getDate()).padStart(2,"0"),year:String(o.getFullYear()).padStart(4,"0")}:null}function gb(a,o,t){let e=parseInt(a,10),i=parseInt(o,10),n=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(n)||e<1||e>12||i<1||i>31||n<1)return"";let c=qd(n,e);if(i>c)return"";let f=mi(n,e,i);return Er(f)}function bb(a){let{order:o,separator:t}=Xd(a),e={month:"mm",day:"dd",year:"yyyy"};return o.map(i=>e[i]).join(` ${t} `)}function yb(a,o,t){switch(a){case"month":return 12;case"day":return o&&t?qd(t,o):o?qd(2e3,o):31;case"year":return 9999;default:return 0}}function Eb(a){switch(a){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var Ut=class extends me(re(Zt)){constructor(){super(...arguments);this.variant=Qd.VARIANT;this.value="";this.selectionMode=se.SINGLE;this.locale=Qd.LOCALE;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=Qd.DISABLE_FLIP;this.localeMonthLabel="";this.localeDayLabel="";this.localeYearLabel="";this.localeCalendarLabel="";this.localeSpinbuttonDescription="";this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayPopover=!1;this.internalMonth="";this.internalDay="";this.internalYear="";this.endValue="";this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover?(this.parseValueToInternal(),this.syncFormValue()):t.has("endValue")&&!this.displayPopover&&this.syncFormValue()}parseValueToInternal(t=this.value){let e=vb(t);e?(this.internalMonth=e.month,this.internalDay=e.day,this.internalYear=e.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return gb(this.internalMonth,this.internalDay,this.internalYear)}getParsedMin(){var t;return this.min&&(t=Ht(this.min))!=null?t:void 0}getParsedMax(){var t;return this.max&&(t=Ht(this.max))!=null?t:void 0}clampValueToRange(t){var c,f;let e=Ht(t);if(!e)return t;let i=this.getParsedMin(),n=this.getParsedMax();return i&&Bi(e,i)?(c=this.min)!=null?c:t:n&&To(e,n)&&(f=this.max)!=null?f:t}getFieldRange(t){let e=parseInt(this.internalMonth,10)||void 0,i=parseInt(this.internalYear,10)||void 0,n=Eb(t),c=yb(t,e,i),f=n,g=c,A=this.getParsedMin(),R=this.getParsedMax();return t==="year"?(A&&(f=Math.max(f,A.getFullYear())),R&&(g=Math.min(g,R.getFullYear()))):t==="month"&&i?(A&&i===A.getFullYear()&&(f=Math.max(f,A.getMonth()+1)),R&&i===R.getFullYear()&&(g=Math.min(g,R.getMonth()+1))):t==="day"&&e&&i&&(A&&i===A.getFullYear()&&e===A.getMonth()+1&&(f=Math.max(f,A.getDate())),R&&i===R.getFullYear()&&e===R.getMonth()+1&&(g=Math.min(g,R.getDate()))),f>g?{min:n,max:c,isMinConstrained:!1,isMaxConstrained:!1}:{min:f,max:g,isMinConstrained:f!==n,isMaxConstrained:g!==c}}getNextSpinbuttonValue(t,e,i){return i?t<e.min?e.min:t>=e.max?e.isMaxConstrained?e.max:e.min:t+1:t>e.max?e.max:t<=e.min?e.isMinConstrained?e.min:e.max:t-1}syncFormValue(){let t=this.value||this.internalToValue();if(this.internals)if(this.name&&this.endValue){let e=new FormData;e.append(this.name,t||""),e.append(`${this.name}-end`,this.endValue),this.internals.setFormValue(e)}else this.internals.setFormValue(t||null)}commitValue(){let t=this.internalToValue();if(t){let e=this.clampValueToRange(t);if(e!==t&&this.parseValueToInternal(e),e===this.value)return;this.value=e,this.syncFormValue(),this.notifyValueChange()}}notifyValueChange(){let t={value:this.value,endValue:this.endValue};this.dispatchEvent(new CustomEvent("input",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}flushPendingInput(){this.pendingDigitTimeout&&(clearTimeout(this.pendingDigitTimeout),this.pendingDigitTimeout=void 0),this.pendingDigits="",this.commitValue()}formResetCallback(){this.value="",this.endValue="",this.parseValueToInternal(),this.syncFormValue()}formStateRestoreCallback(t){if(t instanceof FormData){let e=this.name||"";this.value=t.get(e)||"",this.endValue=t.get(`${e}-end`)||""}else typeof t=="string"&&(this.value=t,this.endValue="");this.parseValueToInternal(),this.syncFormValue()}handleCalendarButtonClick(){this.disabled||this.readonly||(this.displayPopover||this.flushPendingInput(),this.displayPopover=!this.displayPopover)}handleSelectTriggerClick(){this.disabled||this.readonly||(this.displayPopover=!this.displayPopover)}handleSelectKeydown(t){this.disabled||this.readonly||(t.key===Lt.ENTER||t.key===Lt.SPACE||t.key===Lt.ARROW_DOWN)&&(t.preventDefault(),this.displayPopover=!0)}focusCalendarGrid(){setTimeout(()=>{var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("mdc-calendar");if(t!=null&&t.shadowRoot){let i=t.shadowRoot.querySelector('.calendar-day[tabindex="0"]');i==null||i.focus()}},0)}handleDateSelected(t){let{detail:e}=t,i=this.effectiveSelectionMode;i===se.WEEK||i===se.RANGE?e.startDate&&e.endDate?(this.value=e.startDate,this.endValue=e.endDate):(this.value=e.date,this.endValue=""):(this.value=e.date,this.endValue=""),this.parseValueToInternal(),this.syncFormValue(),this.notifyValueChange();let n=i===se.RANGE&&this.value&&this.endValue;(i!==se.RANGE||n)&&(this.displayPopover=!1,this.focusBackToTrigger())}getSpinbuttonInput(t){switch(t){case"month":return this.monthInput;case"day":return this.dayInput;case"year":return this.yearInput;default:return null}}getFieldValue(t){switch(t){case"month":return this.internalMonth;case"day":return this.internalDay;case"year":return this.internalYear;default:return""}}setFieldValue(t,e){let i=t==="year"?4:2,n=String(e).padStart(i,"0");switch(t){case"month":this.internalMonth=n;break;case"day":this.internalDay=n;break;case"year":this.internalYear=n;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.readonly)return;let i=this.getFieldRange(e),n=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case Lt.ARROW_UP:{t.preventDefault();let c=this.getNextSpinbuttonValue(n,i,!0);this.setFieldValue(e,c),this.commitValue();break}case Lt.ARROW_DOWN:{t.preventDefault();let c=this.getNextSpinbuttonValue(n,i,!1);this.setFieldValue(e,c),this.commitValue();break}case Lt.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case Lt.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case Lt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,i.min,i.max)):t.preventDefault();break}}}handleDigitInput(t,e,i,n){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let c=e==="year"?4:2;if(this.pendingDigits.length>=c){let f=parseInt(this.pendingDigits,10);f>n&&(f=n),f<i&&(f=i),this.setFieldValue(e,f),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else if(e!=="year"){let f=parseInt(this.pendingDigits,10),g=Math.floor(n/10);if(f>g){let A=f;A>n&&(A=n),A<i&&(A=i),this.setFieldValue(e,A),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{let A=f;A<i&&(A=i),this.setFieldValue(e,A),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}else{let f=parseInt(this.pendingDigits,10);this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{this.pendingDigits="",this.commitValue()},1e3)}}advanceToNextField(t){let e=Ln(this.locale),i=e.indexOf(t);if(i<e.length-1){let n=e[i+1];this.updateComplete.then(()=>{let c=this.getSpinbuttonInput(n);c==null||c.focus(),c==null||c.select()}).catch(()=>{})}}advanceToPrevField(t){let e=Ln(this.locale),i=e.indexOf(t);if(i>0){let n=e[i-1];this.updateComplete.then(()=>{let c=this.getSpinbuttonInput(n);c==null||c.focus(),c==null||c.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let i=Ln(this.locale),n=this.getSpinbuttonInput(i[0]);n==null||n.focus(),n==null||n.select()}}handleBaseKeydown(t){t.key===Lt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===kn.INPUT){let i=(t=this.shadowRoot)==null?void 0:t.querySelector('[part~="icon-container"]');i==null||i.focus()}else{let i=(e=this.shadowRoot)==null?void 0:e.getElementById(Nn);i==null||i.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===se.WEEK?se.WEEK:this.variant===kn.DEFAULT?se.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===se.WEEK){let{start:t,end:e}=Zd(this.value,this.locale);return wn(t,e,this.locale)}return this.effectiveSelectionMode===se.RANGE&&this.endValue?wn(this.value,this.endValue,this.locale):pb(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),i=this.getFieldRange(t),n={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},c={month:"mm",day:"dd",year:"yyyy"};return S`
3664
+ `,fb=[L0,...xt(!0)];function Mn(a){return Xd(a).order}function vb(a){return Xd(a).separator}function gb(a){if(!a)return null;let o=Ht(a);return o?{month:String(o.getMonth()+1).padStart(2,"0"),day:String(o.getDate()).padStart(2,"0"),year:String(o.getFullYear()).padStart(4,"0")}:null}function bb(a,o,t){let e=parseInt(a,10),i=parseInt(o,10),n=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(n)||e<1||e>12||i<1||i>31||n<1)return"";let c=qd(n,e);if(i>c)return"";let f=mi(n,e,i);return Er(f)}function yb(a){let{order:o,separator:t}=Xd(a),e={month:"mm",day:"dd",year:"yyyy"};return o.map(i=>e[i]).join(` ${t} `)}function Eb(a,o,t){switch(a){case"month":return 12;case"day":return o&&t?qd(t,o):o?qd(2e3,o):31;case"year":return 9999;default:return 0}}function Tb(a){switch(a){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var Ut=class extends me(re(Zt)){constructor(){super(...arguments);this.variant=Qd.VARIANT;this.value="";this.selectionMode=se.SINGLE;this.locale=Qd.LOCALE;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=Qd.DISABLE_FLIP;this.localeMonthLabel="";this.localeDayLabel="";this.localeYearLabel="";this.localeCalendarLabel="";this.localeSpinbuttonDescription="";this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayPopover=!1;this.internalMonth="";this.internalDay="";this.internalYear="";this.endValue="";this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover?(this.parseValueToInternal(),this.syncFormValue()):t.has("endValue")&&!this.displayPopover&&this.syncFormValue()}parseValueToInternal(t=this.value){let e=gb(t);e?(this.internalMonth=e.month,this.internalDay=e.day,this.internalYear=e.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return bb(this.internalMonth,this.internalDay,this.internalYear)}getParsedMin(){var t;return this.min&&(t=Ht(this.min))!=null?t:void 0}getParsedMax(){var t;return this.max&&(t=Ht(this.max))!=null?t:void 0}clampValueToRange(t){var c,f;let e=Ht(t);if(!e)return t;let i=this.getParsedMin(),n=this.getParsedMax();return i&&Bi(e,i)?(c=this.min)!=null?c:t:n&&To(e,n)&&(f=this.max)!=null?f:t}getFieldRange(t){let e=parseInt(this.internalMonth,10)||void 0,i=parseInt(this.internalYear,10)||void 0,n=Tb(t),c=Eb(t,e,i),f=n,g=c,A=this.getParsedMin(),R=this.getParsedMax();return t==="year"?(A&&(f=Math.max(f,A.getFullYear())),R&&(g=Math.min(g,R.getFullYear()))):t==="month"&&i?(A&&i===A.getFullYear()&&(f=Math.max(f,A.getMonth()+1)),R&&i===R.getFullYear()&&(g=Math.min(g,R.getMonth()+1))):t==="day"&&e&&i&&(A&&i===A.getFullYear()&&e===A.getMonth()+1&&(f=Math.max(f,A.getDate())),R&&i===R.getFullYear()&&e===R.getMonth()+1&&(g=Math.min(g,R.getDate()))),f>g?{min:n,max:c,isMinConstrained:!1,isMaxConstrained:!1}:{min:f,max:g,isMinConstrained:f!==n,isMaxConstrained:g!==c}}getNextSpinbuttonValue(t,e,i){return i?t<e.min?e.min:t>=e.max?e.isMaxConstrained?e.max:e.min:t+1:t>e.max?e.max:t<=e.min?e.isMinConstrained?e.min:e.max:t-1}syncFormValue(){let t=this.value||this.internalToValue();if(this.internals)if(this.name&&this.endValue){let e=new FormData;e.append(this.name,t||""),e.append(`${this.name}-end`,this.endValue),this.internals.setFormValue(e)}else this.internals.setFormValue(t||null)}commitValue(){let t=this.internalToValue();if(t){let e=this.clampValueToRange(t);if(e!==t&&this.parseValueToInternal(e),e===this.value)return;this.value=e,this.syncFormValue(),this.notifyValueChange()}}notifyValueChange(){let t={value:this.value,endValue:this.endValue};this.dispatchEvent(new CustomEvent("input",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}flushPendingInput(){this.pendingDigitTimeout&&(clearTimeout(this.pendingDigitTimeout),this.pendingDigitTimeout=void 0),this.pendingDigits="",this.commitValue()}formResetCallback(){this.value="",this.endValue="",this.parseValueToInternal(),this.syncFormValue()}formStateRestoreCallback(t){if(t instanceof FormData){let e=this.name||"";this.value=t.get(e)||"",this.endValue=t.get(`${e}-end`)||""}else typeof t=="string"&&(this.value=t,this.endValue="");this.parseValueToInternal(),this.syncFormValue()}handleCalendarButtonClick(){this.disabled||this.readonly||(this.displayPopover||this.flushPendingInput(),this.displayPopover=!this.displayPopover)}handleSelectTriggerClick(){this.disabled||this.readonly||(this.displayPopover=!this.displayPopover)}handleSelectKeydown(t){this.disabled||this.readonly||(t.key===Lt.ENTER||t.key===Lt.SPACE||t.key===Lt.ARROW_DOWN)&&(t.preventDefault(),this.displayPopover=!0)}focusCalendarGrid(){setTimeout(()=>{var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("mdc-calendar");if(t!=null&&t.shadowRoot){let i=t.shadowRoot.querySelector('.calendar-day[tabindex="0"]');i==null||i.focus()}},0)}handleDateSelected(t){let{detail:e}=t,i=this.effectiveSelectionMode;i===se.WEEK||i===se.RANGE?e.startDate&&e.endDate?(this.value=e.startDate,this.endValue=e.endDate):(this.value=e.date,this.endValue=""):(this.value=e.date,this.endValue=""),this.parseValueToInternal(),this.syncFormValue(),this.notifyValueChange();let n=i===se.RANGE&&this.value&&this.endValue;(i!==se.RANGE||n)&&(this.displayPopover=!1,this.focusBackToTrigger())}getSpinbuttonInput(t){switch(t){case"month":return this.monthInput;case"day":return this.dayInput;case"year":return this.yearInput;default:return null}}getFieldValue(t){switch(t){case"month":return this.internalMonth;case"day":return this.internalDay;case"year":return this.internalYear;default:return""}}setFieldValue(t,e){let i=t==="year"?4:2,n=String(e).padStart(i,"0");switch(t){case"month":this.internalMonth=n;break;case"day":this.internalDay=n;break;case"year":this.internalYear=n;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.readonly)return;let i=this.getFieldRange(e),n=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case Lt.ARROW_UP:{t.preventDefault();let c=this.getNextSpinbuttonValue(n,i,!0);this.setFieldValue(e,c),this.commitValue();break}case Lt.ARROW_DOWN:{t.preventDefault();let c=this.getNextSpinbuttonValue(n,i,!1);this.setFieldValue(e,c),this.commitValue();break}case Lt.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case Lt.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case Lt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,i.min,i.max)):t.preventDefault();break}}}handleDigitInput(t,e,i,n){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let c=e==="year"?4:2;if(this.pendingDigits.length>=c){let f=parseInt(this.pendingDigits,10);f>n&&(f=n),f<i&&(f=i),this.setFieldValue(e,f),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else if(e!=="year"){let f=parseInt(this.pendingDigits,10),g=Math.floor(n/10);if(f>g){let A=f;A>n&&(A=n),A<i&&(A=i),this.setFieldValue(e,A),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{let A=f;A<i&&(A=i),this.setFieldValue(e,A),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}else{let f=parseInt(this.pendingDigits,10);this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{this.pendingDigits="",this.commitValue()},1e3)}}advanceToNextField(t){let e=Mn(this.locale),i=e.indexOf(t);if(i<e.length-1){let n=e[i+1];this.updateComplete.then(()=>{let c=this.getSpinbuttonInput(n);c==null||c.focus(),c==null||c.select()}).catch(()=>{})}}advanceToPrevField(t){let e=Mn(this.locale),i=e.indexOf(t);if(i>0){let n=e[i-1];this.updateComplete.then(()=>{let c=this.getSpinbuttonInput(n);c==null||c.focus(),c==null||c.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let i=Mn(this.locale),n=this.getSpinbuttonInput(i[0]);n==null||n.focus(),n==null||n.select()}}handleBaseKeydown(t){t.key===Lt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===Nn.INPUT){let i=(t=this.shadowRoot)==null?void 0:t.querySelector('[part~="icon-container"]');i==null||i.focus()}else{let i=(e=this.shadowRoot)==null?void 0:e.getElementById(Ln);i==null||i.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===se.WEEK?se.WEEK:this.variant===Nn.DEFAULT?se.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===se.WEEK){let{start:t,end:e}=Zd(this.value,this.locale);return kn(t,e,this.locale)}return this.effectiveSelectionMode===se.RANGE&&this.endValue?kn(this.value,this.endValue,this.locale):mb(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),i=this.getFieldRange(t),n={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},c={month:"mm",day:"dd",year:"yyyy"};return S`
3665
3665
  <input
3666
3666
  id="${t}-spinbutton"
3667
3667
  part="spinbutton spinbutton-${t}"
@@ -3680,9 +3680,9 @@
3680
3680
  @keydown="${f=>this.handleSpinbuttonKeydown(f,t)}"
3681
3681
  @focus="${this.handleSpinbuttonFocus}"
3682
3682
  />
3683
- `}renderInputVariant(){let t=Ln(this.locale),e=fb(this.locale);return S`
3683
+ `}renderInputVariant(){let t=Mn(this.locale),e=vb(this.locale);return S`
3684
3684
  <div
3685
- id="${Nn}"
3685
+ id="${Ln}"
3686
3686
  part="base-container"
3687
3687
  class="mdc-focus-ring"
3688
3688
  @click="${this.handleSpinbuttonAreaClick}"
@@ -3707,9 +3707,9 @@
3707
3707
  @click="${this.handleCalendarButtonClick}"
3708
3708
  ></mdc-button>
3709
3709
  </div>
3710
- `}renderDefaultVariant(){let t=this.getDisplayText(),e=bb(this.locale);return S`
3710
+ `}renderDefaultVariant(){let t=this.getDisplayText(),e=yb(this.locale);return S`
3711
3711
  <div
3712
- id="${Nn}"
3712
+ id="${Ln}"
3713
3713
  part="base-container"
3714
3714
  class="mdc-focus-ring"
3715
3715
  role="combobox"
@@ -3726,7 +3726,7 @@
3726
3726
  `}renderPopover(){let t=this.effectiveSelectionMode;return S`
3727
3727
  <mdc-popover
3728
3728
  trigger="${_e.MANUAL}"
3729
- triggerid="${Nn}"
3729
+ triggerid="${Ln}"
3730
3730
  interactive
3731
3731
  ?visible="${this.displayPopover}"
3732
3732
  backdrop
@@ -3760,7 +3760,7 @@
3760
3760
  `}render(){return S`
3761
3761
  ${this.renderLabel()}
3762
3762
  <div part="container">
3763
- ${this.variant===kn.INPUT?this.renderInputVariant():this.renderDefaultVariant()}
3763
+ ${this.variant===Nn.INPUT?this.renderInputVariant():this.renderDefaultVariant()}
3764
3764
  <input
3765
3765
  id="${this.inputId}"
3766
3766
  part="native-input"
@@ -3776,7 +3776,7 @@
3776
3776
  ${this.renderPopover()}
3777
3777
  </div>
3778
3778
  ${this.helpText?this.renderHelperText():K}
3779
- `}};Ut.styles=[...Zt.styles,...ub],h([u({type:String,reflect:!0})],Ut.prototype,"variant",2),h([u({type:String,reflect:!0})],Ut.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],Ut.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],Ut.prototype,"locale",2),h([u({type:String,reflect:!0})],Ut.prototype,"min",2),h([u({type:String,reflect:!0})],Ut.prototype,"max",2),h([u({type:String,reflect:!0})],Ut.prototype,"placement",2),h([u({type:String,reflect:!0})],Ut.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Ut.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Ut.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ut.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],Ut.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],Ut.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],Ut.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],Ut.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Ut.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],Ut.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],Ut.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],Ut.prototype,"localeNextMonthLabel",2),h([zt("#month-spinbutton")],Ut.prototype,"monthInput",2),h([zt("#day-spinbutton")],Ut.prototype,"dayInput",2),h([zt("#year-spinbutton")],Ut.prototype,"yearInput",2),h([dt()],Ut.prototype,"displayPopover",2),h([dt()],Ut.prototype,"internalMonth",2),h([dt()],Ut.prototype,"internalDay",2),h([dt()],Ut.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],Ut.prototype,"endValue",2);var Ip=Ut;Ip.register(mb);var M0=Ip;js.register(dv);var O0=js;var Mn=V.constructTagName("divider"),us={HORIZONTAL:"horizontal",VERTICAL:"vertical"},On={SOLID:"solid",GRADIENT:"gradient"},Lr={POSITIVE:"positive",NEGATIVE:"negative"},Rn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},fs={ORIENTATION:us.HORIZONTAL,VARIANT:On.SOLID,ARROW_DIRECTION:Lr.NEGATIVE,BUTTON_DIRECTION:Lr.NEGATIVE};var R0=[Tt,B`
3779
+ `}};Ut.styles=[...Zt.styles,...fb],h([u({type:String,reflect:!0})],Ut.prototype,"variant",2),h([u({type:String,reflect:!0})],Ut.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],Ut.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],Ut.prototype,"locale",2),h([u({type:String,reflect:!0})],Ut.prototype,"min",2),h([u({type:String,reflect:!0})],Ut.prototype,"max",2),h([u({type:String,reflect:!0})],Ut.prototype,"placement",2),h([u({type:String,reflect:!0})],Ut.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Ut.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Ut.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ut.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],Ut.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],Ut.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],Ut.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],Ut.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Ut.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],Ut.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],Ut.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],Ut.prototype,"localeNextMonthLabel",2),h([zt("#month-spinbutton")],Ut.prototype,"monthInput",2),h([zt("#day-spinbutton")],Ut.prototype,"dayInput",2),h([zt("#year-spinbutton")],Ut.prototype,"yearInput",2),h([dt()],Ut.prototype,"displayPopover",2),h([dt()],Ut.prototype,"internalMonth",2),h([dt()],Ut.prototype,"internalDay",2),h([dt()],Ut.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],Ut.prototype,"endValue",2);var Ip=Ut;Ip.register(ub);var M0=Ip;js.register(cv);var O0=js;var On=V.constructTagName("divider"),us={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Rn={SOLID:"solid",GRADIENT:"gradient"},Lr={POSITIVE:"positive",NEGATIVE:"negative"},Dn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},fs={ORIENTATION:us.HORIZONTAL,VARIANT:Rn.SOLID,ARROW_DIRECTION:Lr.NEGATIVE,BUTTON_DIRECTION:Lr.NEGATIVE};var R0=[Tt,B`
3780
3780
  :host {
3781
3781
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
3782
3782
  --mdc-divider-width: 0.0625rem;
@@ -3977,11 +3977,11 @@
3977
3977
  :host([data-hidden]) {
3978
3978
  display: none;
3979
3979
  }
3980
- `],Tb=R0;var xo=class extends Q{constructor(){super(...arguments);this.orientation=fs.ORIENTATION;this.variant=fs.VARIANT;this.arrowDirection=fs.ARROW_DIRECTION;this.buttonPosition=fs.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(On).includes(t)?t:fs.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(us).includes(t)?t:fs.ORIENTATION)}ensureValidDirections(){let t=this.orientation===us.HORIZONTAL?Lr.NEGATIVE:Lr.POSITIVE;Object.values(Lr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Lr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let e=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",e)}}getArrowIcon(){let t=this.orientation===us.HORIZONTAL,e=this.arrowDirection===Lr.POSITIVE;return t?e?Rn.UP:Rn.DOWN:e?Rn.RIGHT:Rn.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var c;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let i=e.some(f=>f.tagName===an.toUpperCase()),n=e.some(f=>f.tagName===ki.toUpperCase());i&&!n?this.setAttribute("data-type","mdc-text-divider"):!i&&n&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return S`
3980
+ `],xb=R0;var xo=class extends Q{constructor(){super(...arguments);this.orientation=fs.ORIENTATION;this.variant=fs.VARIANT;this.arrowDirection=fs.ARROW_DIRECTION;this.buttonPosition=fs.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Rn).includes(t)?t:fs.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(us).includes(t)?t:fs.ORIENTATION)}ensureValidDirections(){let t=this.orientation===us.HORIZONTAL?Lr.NEGATIVE:Lr.POSITIVE;Object.values(Lr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Lr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let e=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",e)}}getArrowIcon(){let t=this.orientation===us.HORIZONTAL,e=this.arrowDirection===Lr.POSITIVE;return t?e?Dn.UP:Dn.DOWN:e?Dn.RIGHT:Dn.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var c;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let i=e.some(f=>f.tagName===nn.toUpperCase()),n=e.some(f=>f.tagName===ki.toUpperCase());i&&!n?this.setAttribute("data-type","mdc-text-divider"):!i&&n&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return S`
3981
3981
  <div></div>
3982
3982
  <slot @slotchange=${this.inferDividerType}></slot>
3983
3983
  <div></div>
3984
- `}};xo.styles=[...Q.styles,...Tb],h([u({type:String,reflect:!0})],xo.prototype,"orientation",2),h([u({type:String,reflect:!0})],xo.prototype,"variant",2),h([u({type:String,attribute:"arrow-direction",reflect:!0})],xo.prototype,"arrowDirection",2),h([u({type:String,attribute:"button-position",reflect:!0})],xo.prototype,"buttonPosition",2);var Cp=xo;Cp.register(Mn);var D0=Cp;var P0=B`
3984
+ `}};xo.styles=[...Q.styles,...xb],h([u({type:String,reflect:!0})],xo.prototype,"orientation",2),h([u({type:String,reflect:!0})],xo.prototype,"variant",2),h([u({type:String,attribute:"arrow-direction",reflect:!0})],xo.prototype,"arrowDirection",2),h([u({type:String,attribute:"button-position",reflect:!0})],xo.prototype,"buttonPosition",2);var Cp=xo;Cp.register(On);var D0=Cp;var P0=B`
3985
3985
  :host([selected]) {
3986
3986
  border: 2px solid;
3987
3987
  --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
@@ -4003,7 +4003,7 @@
4003
4003
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
4004
4004
  cursor: auto;
4005
4005
  }
4006
- `,xb=[P0];var Ab=V.constructTagName("filterchip"),_p={ICON_NAME:"check-bold",COLOR:"default"};var Dn=class extends la{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=_p.COLOR}setSelected(t){t?(this.iconName=_p.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(t){super.update(t),t.has("selected")&&this.setSelected(this.selected)}};Dn.styles=[...la.styles,...xb],h([u({type:Boolean,reflect:!0})],Dn.prototype,"selected",2);var wp=Dn;wp.register(Ab);var F0=wp;var $0=B`
4006
+ `,Ab=[P0];var Sb=V.constructTagName("filterchip"),_p={ICON_NAME:"check-bold",COLOR:"default"};var Pn=class extends la{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=_p.COLOR}setSelected(t){t?(this.iconName=_p.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(t){super.update(t),t.has("selected")&&this.setSelected(this.selected)}};Pn.styles=[...la.styles,...Ab],h([u({type:Boolean,reflect:!0})],Pn.prototype,"selected",2);var wp=Pn;wp.register(Sb);var F0=wp;var $0=B`
4007
4007
  :host {
4008
4008
  display: flex;
4009
4009
  flex-direction: column;
@@ -4015,10 +4015,10 @@
4015
4015
  flex-direction: column;
4016
4016
  gap: 0.25rem;
4017
4017
  }
4018
- `,Sb=[$0];var Jd=class extends Zt{constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){var t;super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0,this.role=this.isRadio?et.RADIOGROUP:et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.hasAttribute("aria-label")||this.setAttribute("aria-label",this.label||"")}update(t){super.update(t),t.has("label")&&!this.ariaLabel&&(this.ariaLabel=this.label||""),t.has("helpText")&&!this.ariaDescription&&(this.ariaDescription=this.helpText||"")}render(){return S`
4018
+ `,Ib=[$0];var Jd=class extends Zt{constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){var t;super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0,this.role=this.isRadio?et.RADIOGROUP:et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.hasAttribute("aria-label")||this.setAttribute("aria-label",this.label||"")}update(t){super.update(t),t.has("label")&&!this.ariaLabel&&(this.ariaLabel=this.label||""),t.has("helpText")&&!this.ariaDescription&&(this.ariaDescription=this.helpText||"")}render(){return S`
4019
4019
  <div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
4020
4020
  <slot></slot>
4021
- `}};Jd.styles=[...Zt.styles,...Sb];var kp=Jd;var Ib=V.constructTagName("formfieldgroup");kp.register(Ib);var tc=kp;on.register(Bl);var V0=on;mn.register(dd);var z0=mn;var vs=Oi(class extends li{constructor(a){if(super(a),a.type!==br.PROPERTY&&a.type!==br.ATTRIBUTE&&a.type!==br.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!jl(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[o]){if(o===$e||o===K)return o;let t=a.element,e=a.name;if(a.type===br.PROPERTY){if(o===t[e])return $e}else if(a.type===br.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return $e}else if(a.type===br.ATTRIBUTE&&t.getAttribute(e)===o+"")return $e;return ql(a),o}});var B0=B`
4021
+ `}};Jd.styles=[...Zt.styles,...Ib];var kp=Jd;var Cb=V.constructTagName("formfieldgroup");kp.register(Cb);var tc=kp;sn.register(Bl);var V0=sn;un.register(dd);var z0=un;var vs=Oi(class extends li{constructor(a){if(super(a),a.type!==br.PROPERTY&&a.type!==br.ATTRIBUTE&&a.type!==br.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!jl(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[o]){if(o===$e||o===K)return o;let t=a.element,e=a.name;if(a.type===br.PROPERTY){if(o===t[e])return $e}else if(a.type===br.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return $e}else if(a.type===br.ATTRIBUTE&&t.getAttribute(e)===o+"")return $e;return ql(a),o}});var B0=B`
4022
4022
  :host {
4023
4023
  --mdc-statusmessage-color: var(--mds-color-theme-text-secondary-normal);
4024
4024
  --mdc-statusmessage-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
@@ -4079,18 +4079,18 @@
4079
4079
  font-weight: inherit;
4080
4080
  line-height: inherit;
4081
4081
  }
4082
- `,Cb=[B0];var da=class extends Q{constructor(){super(...arguments);this.severity=bn.SEVERITY}renderIcon(){let t=Td[this.severity||bn.SEVERITY];return t?S`<mdc-icon part="icon" name="${t}"></mdc-icon>`:K}renderMessage(){return this.message?S`
4083
- <mdc-text part="text" tagname="${bn.TEXT_TAGNAME}" type="${bn.TEXT_TYPE}">${this.message}</mdc-text>
4082
+ `,_b=[B0];var da=class extends Q{constructor(){super(...arguments);this.severity=yn.SEVERITY}renderIcon(){let t=Td[this.severity||yn.SEVERITY];return t?S`<mdc-icon part="icon" name="${t}"></mdc-icon>`:K}renderMessage(){return this.message?S`
4083
+ <mdc-text part="text" tagname="${yn.TEXT_TAGNAME}" type="${yn.TEXT_TYPE}">${this.message}</mdc-text>
4084
4084
  `:K}render(){return S`
4085
4085
  <div part="container">
4086
4086
  <slot name="icon" part="icon">${this.renderIcon()}</slot>
4087
4087
  <slot part="text">${this.renderMessage()}</slot>
4088
4088
  </div>
4089
- `}};da.styles=[...Q.styles,...Cb],h([u({type:String,reflect:!0})],da.prototype,"severity",2),h([u({type:String,reflect:!0})],da.prototype,"message",2);var Np=da;Np.register(Jv);var H0=Np;Zt.register(tg);var dr=Zt;var ec=a=>{class o extends a{constructor(){super(...arguments);this.characterLimitExceedingFired=!1}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}announceCharacterLimitWarning(){this.characterLimitAriaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.characterLimitAriaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.characterLimitAriaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}renderCharacterCounter(){return this.maxCharacterLimit?S`
4089
+ `}};da.styles=[...Q.styles,..._b],h([u({type:String,reflect:!0})],da.prototype,"severity",2),h([u({type:String,reflect:!0})],da.prototype,"message",2);var Np=da;Np.register(tg);var H0=Np;Zt.register(eg);var dr=Zt;var ec=a=>{class o extends a{constructor(){super(...arguments);this.characterLimitExceedingFired=!1}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}announceCharacterLimitWarning(){this.characterLimitAriaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.characterLimitAriaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.characterLimitAriaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}renderCharacterCounter(){return this.maxCharacterLimit?S`
4090
4090
  <mdc-text part="character-counter" tagname="span" type="body-midsize-regular">
4091
4091
  ${this.value.length}/${this.maxCharacterLimit}
4092
4092
  </mdc-text>
4093
- `:K}}return h([u({type:Number,attribute:"max-character-limit"})],o.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],o.prototype,"characterLimitAnnouncement",2),h([dt()],o.prototype,"characterLimitAriaLiveAnnouncer",2),o};var _b=V.constructTagName("input"),rc={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ca={OFF:"off",ON:"on"},Ao={PASSWORD:"password",TEXT:"text",SEARCH:"search"},wb={MAX_LENGTH:10,VALIDATION:oe.ERROR},Hi={VALIDATION:oe.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Bt.TERTIARY,CLEAR_BUTTON_SIZE:Cr[20],PREFIX_TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:ca.OFF,INPUT_TYPE:Ao.TEXT};var U0=[B`
4093
+ `:K}}return h([u({type:Number,attribute:"max-character-limit"})],o.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],o.prototype,"characterLimitAnnouncement",2),h([dt()],o.prototype,"characterLimitAriaLiveAnnouncer",2),o};var wb=V.constructTagName("input"),rc={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ca={OFF:"off",ON:"on"},Ao={PASSWORD:"password",TEXT:"text",SEARCH:"search"},kb={MAX_LENGTH:10,VALIDATION:oe.ERROR},Hi={VALIDATION:oe.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Bt.TERTIARY,CLEAR_BUTTON_SIZE:Cr[20],PREFIX_TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:ca.OFF,INPUT_TYPE:Ao.TEXT};var U0=[B`
4094
4094
  :host {
4095
4095
  --mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
4096
4096
  --mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
@@ -4231,7 +4231,7 @@
4231
4231
  :host([disabled])::part(character-counter) {
4232
4232
  color: var(--mds-color-theme-text-primary-disabled);
4233
4233
  }
4234
- `,...xt(!0)],kb=U0;var be=class extends ec(Nt(Ve(me(re(dr))))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=rc.OFF;this.autocomplete=ca.OFF;this.clearAriaLabel="";this.dataAriaDescribedby=null}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(n=>{this.onerror&&this.onerror(n)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===oe.ERROR&&this.helpText&&this.inputElement.setCustomValidity(this.helpText),this.setValidity()}updated(t){super.updated(t),t.has("value")&&this.handleCharacterOverflowStateChange(),t.has("helpText")&&this.announceCharacterLimitWarning()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value),this.announceCharacterLimitWarning()}onInput(t){if(this.updateValue(),this.setInputValidity(),this.checkValidity(),!t.composed){let e=t.constructor;this.dispatchEvent(new e(t.type,t))}}onChange(t){this.updateValue(),this.setInputValidity();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleKeyDown(t){var e;this.getActionForKeyEvent(t)===G.ENTER&&this.getKeyboardNavMode()===te.DEFAULT&&((e=this.form)==null||e.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?S`
4234
+ `,...xt(!0)],Nb=U0;var be=class extends ec(Nt(Ve(me(re(dr))))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=rc.OFF;this.autocomplete=ca.OFF;this.clearAriaLabel="";this.dataAriaDescribedby=null}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(n=>{this.onerror&&this.onerror(n)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===oe.ERROR&&this.helpText&&this.inputElement.setCustomValidity(this.helpText),this.setValidity()}updated(t){super.updated(t),t.has("value")&&this.handleCharacterOverflowStateChange(),t.has("helpText")&&this.announceCharacterLimitWarning()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value),this.announceCharacterLimitWarning()}onInput(t){if(this.updateValue(),this.setInputValidity(),this.checkValidity(),!t.composed){let e=t.constructor;this.dispatchEvent(new e(t.type,t))}}onChange(t){this.updateValue(),this.setInputValidity();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleKeyDown(t){var e;this.getActionForKeyEvent(t)===G.ENTER&&this.getKeyboardNavMode()===te.DEFAULT&&((e=this.form)==null||e.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?S`
4235
4235
  <mdc-icon
4236
4236
  part="leading-icon"
4237
4237
  name=${this.leadingIcon}
@@ -4246,7 +4246,7 @@
4246
4246
  type="${Hi.PREFIX_TEXT_TYPE}"
4247
4247
  aria-hidden="true"
4248
4248
  >
4249
- ${this.prefixText.slice(0,wb.MAX_LENGTH)}
4249
+ ${this.prefixText.slice(0,kb.MAX_LENGTH)}
4250
4250
  </mdc-text>
4251
4251
  `:K}clearInputText(){var t;this.value="",(t=this.inputElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0}))}renderTrailingButton(t=!1){let e=t||this.value&&this.trailingButton;return e?S`
4252
4252
  <mdc-button
@@ -4300,7 +4300,7 @@
4300
4300
  delay="500"
4301
4301
  ></mdc-screenreaderannouncer>
4302
4302
  ${this.renderInputFooter()}
4303
- `}};be.styles=[...dr.styles,...kb],be.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:String})],be.prototype,"placeholder",2),h([u({type:String,attribute:"prefix-text"})],be.prototype,"prefixText",2),h([u({type:String,attribute:"leading-icon"})],be.prototype,"leadingIcon",2),h([u({type:Boolean,attribute:"trailing-button"})],be.prototype,"trailingButton",2),h([u({type:Number})],be.prototype,"maxlength",2),h([u({type:Number})],be.prototype,"minlength",2),h([u({type:String})],be.prototype,"autocapitalize",2),h([u({type:String})],be.prototype,"autocomplete",2),h([u({type:String})],be.prototype,"dirname",2),h([u({type:String})],be.prototype,"pattern",2),h([u({type:String})],be.prototype,"list",2),h([u({type:Number})],be.prototype,"size",2),h([u({type:String,attribute:"clear-aria-label"})],be.prototype,"clearAriaLabel",2),h([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],be.prototype,"dataAriaDescribedby",2);var qr=be;qr.register(_b);var G0=qr;var K0=B`
4303
+ `}};be.styles=[...dr.styles,...Nb],be.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:String})],be.prototype,"placeholder",2),h([u({type:String,attribute:"prefix-text"})],be.prototype,"prefixText",2),h([u({type:String,attribute:"leading-icon"})],be.prototype,"leadingIcon",2),h([u({type:Boolean,attribute:"trailing-button"})],be.prototype,"trailingButton",2),h([u({type:Number})],be.prototype,"maxlength",2),h([u({type:Number})],be.prototype,"minlength",2),h([u({type:String})],be.prototype,"autocapitalize",2),h([u({type:String})],be.prototype,"autocomplete",2),h([u({type:String})],be.prototype,"dirname",2),h([u({type:String})],be.prototype,"pattern",2),h([u({type:String})],be.prototype,"list",2),h([u({type:Number})],be.prototype,"size",2),h([u({type:String,attribute:"clear-aria-label"})],be.prototype,"clearAriaLabel",2),h([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],be.prototype,"dataAriaDescribedby",2);var qr=be;qr.register(wb);var G0=qr;var K0=B`
4304
4304
  :host {
4305
4305
  height: 1.5rem;
4306
4306
  gap: 0.25rem;
@@ -4336,7 +4336,7 @@
4336
4336
  width: 1.25rem;
4337
4337
  height: 1.25rem;
4338
4338
  }
4339
- `,Nb=[Tt,K0];var ha=V.constructTagName("inputchip"),ic={TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var gs=class extends he(Jt(Q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return S`
4339
+ `,Lb=[Tt,K0];var ha=V.constructTagName("inputchip"),ic={TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var gs=class extends he(Jt(Q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return S`
4340
4340
  <slot name="prefix">
4341
4341
  ${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:K}
4342
4342
  </slot>
@@ -4354,7 +4354,7 @@
4354
4354
  size="20"
4355
4355
  @click="${this.handleClose}"
4356
4356
  ></mdc-button>
4357
- `}};gs.styles=[...Q.styles,...Nb],h([u({type:String})],gs.prototype,"label",2),h([u({type:Boolean})],gs.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],gs.prototype,"clearAriaLabel",2);var Lp=gs;Lp.register(ha);var W0=Lp;var Y0=B`
4357
+ `}};gs.styles=[...Q.styles,...Lb],h([u({type:String})],gs.prototype,"label",2),h([u({type:Boolean})],gs.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],gs.prototype,"clearAriaLabel",2);var Lp=gs;Lp.register(ha);var W0=Lp;var Y0=B`
4358
4358
  :host([icon-name])::part(text) {
4359
4359
  margin-inline-end: 0.25rem;
4360
4360
  }
@@ -4425,7 +4425,7 @@
4425
4425
  text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
4426
4426
  text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
4427
4427
  }
4428
- `,Lb=[Y0];var Pn=class extends he(hi){constructor(){super(...arguments);this.size=ov.LINK_SIZE}getIconSize(){switch(this.size){case id.SMALL:return od.SMALL;case id.MIDSIZE:return od.MIDSIZE;default:return od.LARGE}}renderAnchorContent(){return S`<span part="text"><slot></slot></span>${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:K}`}};Pn.styles=[...hi.styles,...Lb],h([u({type:String,reflect:!0})],Pn.prototype,"size",2);var Mp=Pn;Mp.register(rd);var j0=Mp;var Mb=V.constructTagName("linkbutton"),pa={12:12,14:14,16:16},ma={SIZE:pa[16],ROLE:et.BUTTON,INLINE:Qs.INLINE,INVERTED:Qs.INVERTED};var Ob=a=>{switch(a){case pa[12]:return .75;case pa[14]:return .875;default:return 1}};var q0=B`
4428
+ `,Mb=[Y0];var Fn=class extends he(hi){constructor(){super(...arguments);this.size=sv.LINK_SIZE}getIconSize(){switch(this.size){case id.SMALL:return od.SMALL;case id.MIDSIZE:return od.MIDSIZE;default:return od.LARGE}}renderAnchorContent(){return S`<span part="text"><slot></slot></span>${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:K}`}};Fn.styles=[...hi.styles,...Mb],h([u({type:String,reflect:!0})],Fn.prototype,"size",2);var Mp=Fn;Mp.register(rd);var j0=Mp;var Ob=V.constructTagName("linkbutton"),pa={12:12,14:14,16:16},ma={SIZE:pa[16],ROLE:et.BUTTON,INLINE:Qs.INLINE,INVERTED:Qs.INVERTED};var Rb=a=>{switch(a){case pa[12]:return .75;case pa[14]:return .875;default:return 1}};var q0=B`
4429
4429
  :host {
4430
4430
  gap: 0.25rem;
4431
4431
  cursor: pointer;
@@ -4524,10 +4524,10 @@
4524
4524
  color: var(--mdc-link-color-disabled);
4525
4525
  pointer-events: none;
4526
4526
  }
4527
- `,Rb=[q0,...xt()];var bs=class extends he(ve){constructor(){super(...arguments);this.size=ma.SIZE;this.inline=ma.INLINE;this.inverted=ma.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=ma.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(pa).includes(t)?`${t}`:ma.SIZE.toString())}render(){return S`
4527
+ `,Db=[q0,...xt()];var bs=class extends he(ve){constructor(){super(...arguments);this.size=ma.SIZE;this.inline=ma.INLINE;this.inverted=ma.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=ma.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(pa).includes(t)?`${t}`:ma.SIZE.toString())}render(){return S`
4528
4528
  <slot></slot>
4529
- ${this.iconName?S` <mdc-icon name=${this.iconName} size=${Ob(this.size)} length-unit="rem"></mdc-icon> `:K}
4530
- `}};bs.styles=[...hi.styles,...Rb],h([u({type:Number,reflect:!0})],bs.prototype,"size",2),h([u({type:Boolean,reflect:!0})],bs.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],bs.prototype,"inverted",2);var Op=bs;Op.register(Mb);var X0=Op;hi.register(Hv);var Z0=hi;var Qt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var So=a=>{class o extends Ot(Nt(a)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:n}=i,c=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&n instanceof Q&&c&&n.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let n=i.target,c=this.getCurrentIndex(n);if(c!==-1){let f=document.activeElement===n,g=document.activeElement&&document.activeElement.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY,A=!(this.navItems.at(c)!==n&&(f||g));this.resetTabIndexAndSetFocus(c,void 0,A,!1)}};this.handleNavBeforeFocus=i=>{let n=uh(i.relatedTarget);if(this!==n&&!this.contains(document.activeElement)&&this.contains(n)){i.preventDefault();let c=this.navItems.find(g=>g.contains(n)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Qt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(i){super.firstUpdated(i),this.setInitialFocus()}setInitialFocus(){let i=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(i,void 0,!1)}handleNavigationKeyDown(i){let n=this.getActionForKeyEvent(i,!0),c=this.orientation==="vertical",f=new Set(c?[G.DOWN,G.UP,G.HOME,G.END]:[G.LEFT,G.RIGHT,G.HOME,G.END]);if(!n||!f.has(n))return;let g=i.target,A=this.getCurrentIndex(g);if(A===-1)return;this.resetTabIndexes(A);let R=!1;switch(n){case G.HOME:{R=this.resetTabIndexAndSetFocus(0,A);break}case G.END:{R=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case G.DOWN:case G.RIGHT:{let H=this.shouldLoop()?0:A,J=A+1===this.navItems.length?H:A+1;R=this.resetTabIndexAndSetFocus(J,A);break}case G.UP:case G.LEFT:{let H=this.shouldLoop()?this.navItems.length-1:A,J=A-1===-1?H:A-1;R=this.resetTabIndexAndSetFocus(J,A);break}default:break}R&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(n=>n===i||!!(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,n=!0){var c;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,g=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);g&&(g.setAttribute("tabindex","0"),n&&g.focus())}}resetTabIndexAndSetFocus(i,n,c=!0,f=!0){var R;let{navItems:g}=this;if(g.length===0)return!1;let A=(R=g.at(i))!=null?R:g.find(Boolean);return i===0&&n===0&&g.length===1||i===n&&A&&A.getAttribute("tabindex")==="0"?!1:(n===void 0?g.forEach(H=>H.setAttribute("tabindex","-1")):g.at(n)&&g.at(n).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),c&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===te.SPATIAL?!1:this.loop!=="false"}}return o};var oc=V.constructTagName("listitem"),Fn={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Db={VARIANT:Fn.FULL_WIDTH};var Q0=a=>!!a,Mr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{o.stopPropagation(),this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{o.stopPropagation(),this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||Q0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Qt.CREATED,this.itemCreationHandler),this.host.addEventListener(Qt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Qt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Qt.DESTROYED,this.itemDestroyHandler),this.reset()}add(o){this.addItem(o,void 0)}addAt(o,t){this.addItem(o,t)}getIndexToInsertInCache(o){if(!this.cache.length||!If(this.cache.at(-1),o))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let i=Math.floor((t+e)/2);Cf(this.cache[i],o)?t=i+1:e=i-1}return t}addItem(o,t=void 0){var i;let e=o;if(this.isValidItem(e)&&!this.cache.includes(e)){let n=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",n===-1?this.cache.length:n,this.cache.slice())),n===-1?this.cache.push(e):n>=0&&this.cache.splice(n,0,e)}}delete(o){var e;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var ui=a=>{class o extends a{constructor(...i){super(...i);this.handleItemCreation=i=>{let n=i.target;n&&n.addEventListener(Qt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Qt.DESTROYED&&(i.target.removeEventListener(Qt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Qt.CREATED,this.handleItemCreation)}}return o};var J0=B`
4529
+ ${this.iconName?S` <mdc-icon name=${this.iconName} size=${Rb(this.size)} length-unit="rem"></mdc-icon> `:K}
4530
+ `}};bs.styles=[...hi.styles,...Db],h([u({type:Number,reflect:!0})],bs.prototype,"size",2),h([u({type:Boolean,reflect:!0})],bs.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],bs.prototype,"inverted",2);var Op=bs;Op.register(Ob);var X0=Op;hi.register(Uv);var Z0=hi;var Qt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var So=a=>{class o extends Ot(Nt(a)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:n}=i,c=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&n instanceof Q&&c&&n.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let n=i.target,c=this.getCurrentIndex(n);if(c!==-1){let f=document.activeElement===n,g=document.activeElement&&document.activeElement.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY,A=!(this.navItems.at(c)!==n&&(f||g));this.resetTabIndexAndSetFocus(c,void 0,A,!1)}};this.handleNavBeforeFocus=i=>{let n=uh(i.relatedTarget);if(this!==n&&!this.contains(document.activeElement)&&this.contains(n)){i.preventDefault();let c=this.navItems.find(g=>g.contains(n)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Qt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(i){super.firstUpdated(i),this.setInitialFocus()}setInitialFocus(){let i=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(i,void 0,!1)}handleNavigationKeyDown(i){let n=this.getActionForKeyEvent(i,!0),c=this.orientation==="vertical",f=new Set(c?[G.DOWN,G.UP,G.HOME,G.END]:[G.LEFT,G.RIGHT,G.HOME,G.END]);if(!n||!f.has(n))return;let g=i.target,A=this.getCurrentIndex(g);if(A===-1)return;this.resetTabIndexes(A);let R=!1;switch(n){case G.HOME:{R=this.resetTabIndexAndSetFocus(0,A);break}case G.END:{R=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case G.DOWN:case G.RIGHT:{let H=this.shouldLoop()?0:A,J=A+1===this.navItems.length?H:A+1;R=this.resetTabIndexAndSetFocus(J,A);break}case G.UP:case G.LEFT:{let H=this.shouldLoop()?this.navItems.length-1:A,J=A-1===-1?H:A-1;R=this.resetTabIndexAndSetFocus(J,A);break}default:break}R&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(n=>n===i||!!(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,n=!0){var c;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,g=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);g&&(g.setAttribute("tabindex","0"),n&&g.focus())}}resetTabIndexAndSetFocus(i,n,c=!0,f=!0){var R;let{navItems:g}=this;if(g.length===0)return!1;let A=(R=g.at(i))!=null?R:g.find(Boolean);return i===0&&n===0&&g.length===1||i===n&&A&&A.getAttribute("tabindex")==="0"?!1:(n===void 0?g.forEach(H=>H.setAttribute("tabindex","-1")):g.at(n)&&g.at(n).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),c&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===te.SPATIAL?!1:this.loop!=="false"}}return o};var oc=V.constructTagName("listitem"),$n={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Pb={VARIANT:$n.FULL_WIDTH};var Q0=a=>!!a,Mr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{o.stopPropagation(),this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{o.stopPropagation(),this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||Q0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Qt.CREATED,this.itemCreationHandler),this.host.addEventListener(Qt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Qt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Qt.DESTROYED,this.itemDestroyHandler),this.reset()}add(o){this.addItem(o,void 0)}addAt(o,t){this.addItem(o,t)}getIndexToInsertInCache(o){if(!this.cache.length||!Cf(this.cache.at(-1),o))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let i=Math.floor((t+e)/2);_f(this.cache[i],o)?t=i+1:e=i-1}return t}addItem(o,t=void 0){var i;let e=o;if(this.isValidItem(e)&&!this.cache.includes(e)){let n=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",n===-1?this.cache.length:n,this.cache.slice())),n===-1?this.cache.push(e):n>=0&&this.cache.splice(n,0,e)}}delete(o){var e;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var ui=a=>{class o extends a{constructor(...i){super(...i);this.handleItemCreation=i=>{let n=i.target;n&&n.addEventListener(Qt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Qt.DESTROYED&&(i.target.removeEventListener(Qt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Qt.CREATED,this.handleItemCreation)}}return o};var J0=B`
4531
4531
  :host {
4532
4532
  display: flex;
4533
4533
  flex-direction: column;
@@ -4553,11 +4553,11 @@
4553
4553
  scroll-padding-left: 0.25rem;
4554
4554
  scroll-padding-right: 0.25rem;
4555
4555
  }
4556
- `,Pb=[J0];var Fb=V.constructTagName("list");var $n={VERTICAL:"vertical",HORIZONTAL:"horizontal"},sc={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:$n.VERTICAL};var ys=class extends So(ui(Q)){constructor(){super();this.loop=sc.LOOP;this.initialFocus=sc.INITIAL_FOCUS;this.orientation=sc.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let n=i+1;n>=this.navItems.length&&(n=i-1),this.resetTabIndexes(n,this.focusWithin)}}handleKeyDown(t){this.getActionForKeyEvent(t)===G.SPACE&&this.navItems.find(i=>i===t.target)&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${oc}:not([disabled])`)}render(){return S`
4556
+ `,Fb=[J0];var $b=V.constructTagName("list");var Vn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},sc={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:Vn.VERTICAL};var ys=class extends So(ui(Q)){constructor(){super();this.loop=sc.LOOP;this.initialFocus=sc.INITIAL_FOCUS;this.orientation=sc.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let n=i+1;n>=this.navItems.length&&(n=i-1),this.resetTabIndexes(n,this.focusWithin)}}handleKeyDown(t){this.getActionForKeyEvent(t)===G.SPACE&&this.navItems.find(i=>i===t.target)&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${oc}:not([disabled])`)}render(){return S`
4557
4557
  <slot name="list-header"></slot>
4558
4558
  <!-- make the container slot role presentation to keep it ignored in a11y tree -->
4559
4559
  <slot part="container" role="presentation"></slot>
4560
- `}};ys.styles=[...Q.styles,...Pb],h([u({type:String,reflect:!0})],ys.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],ys.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],ys.prototype,"orientation",2);var Ui=ys;Ui.register(Fb);var Rp=Ui;var tS=B`
4560
+ `}};ys.styles=[...Q.styles,...Fb],h([u({type:String,reflect:!0})],ys.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],ys.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],ys.prototype,"orientation",2);var Ui=ys;Ui.register($b);var Rp=Ui;var tS=B`
4561
4561
  :host {
4562
4562
  --mdc-listheader-padding: 0.5rem 0.75rem;
4563
4563
  --mdc-listheader-gap: 0.5rem;
@@ -4584,7 +4584,7 @@
4584
4584
  :host::part(postfix-icon) {
4585
4585
  flex-shrink: 0;
4586
4586
  }
4587
- `,$b=[tS];var Io=class extends Q{constructor(){super(...arguments);this.disabled=!1}render(){return S`
4587
+ `,Vb=[tS];var Io=class extends Q{constructor(){super(...arguments);this.disabled=!1}render(){return S`
4588
4588
  ${this.prefixIcon?S`<mdc-icon
4589
4589
  part="prefix-icon"
4590
4590
  name="${this.prefixIcon}"
@@ -4603,7 +4603,7 @@
4603
4603
  size="1"
4604
4604
  length-unit="rem"
4605
4605
  ></mdc-icon>`:K}
4606
- `}};Io.styles=[...Q.styles,...$b],h([u({type:String,attribute:"prefix-icon"})],Io.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon"})],Io.prototype,"postfixIcon",2),h([u({type:String,attribute:"header-text"})],Io.prototype,"headerText",2),h([u({type:Boolean,reflect:!0})],Io.prototype,"disabled",2);var Dp=Io;var Vb=V.constructTagName("listheader");Dp.register(Vb);var eS=Dp;var ac=a=>{class o extends a{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent(Qt.CREATED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}})),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Qt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new CustomEvent(Qt.DESTROYED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))}dispatchModifiedEvent(e){this.dispatchEvent(new CustomEvent(Qt.MODIFIED,{detail:{change:e,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var Vn=class{static dispatchListItemEvent(o,t){t.dispatchEvent(new Event(o,{composed:!0,bubbles:!0}))}static onDisableListItem(o){this.dispatchListItemEvent("disabled",o)}static onEnableListItem(o){this.dispatchListItemEvent("enabled",o)}static onCreatedListItem(o){setTimeout(()=>{this.dispatchListItemEvent("created",o)},0)}static onDestroyedListItem(o){this.dispatchListItemEvent("destroyed",o)}};var rS=B`
4606
+ `}};Io.styles=[...Q.styles,...Vb],h([u({type:String,attribute:"prefix-icon"})],Io.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon"})],Io.prototype,"postfixIcon",2),h([u({type:String,attribute:"header-text"})],Io.prototype,"headerText",2),h([u({type:Boolean,reflect:!0})],Io.prototype,"disabled",2);var Dp=Io;var zb=V.constructTagName("listheader");Dp.register(zb);var eS=Dp;var ac=a=>{class o extends a{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent(Qt.CREATED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}})),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Qt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new CustomEvent(Qt.DESTROYED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))}dispatchModifiedEvent(e){this.dispatchEvent(new CustomEvent(Qt.MODIFIED,{detail:{change:e,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var zn=class{static dispatchListItemEvent(o,t){t.dispatchEvent(new Event(o,{composed:!0,bubbles:!0}))}static onDisableListItem(o){this.dispatchListItemEvent("disabled",o)}static onEnableListItem(o){this.dispatchListItemEvent("enabled",o)}static onCreatedListItem(o){setTimeout(()=>{this.dispatchListItemEvent("created",o)},0)}static onDestroyedListItem(o){this.dispatchListItemEvent("destroyed",o)}};var rS=B`
4607
4607
  :host {
4608
4608
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
4609
4609
  --mdc-listitem-default-active-background-color: var(--mds-color-theme-background-primary-active);
@@ -4716,11 +4716,11 @@
4716
4716
  flex-direction: row;
4717
4717
  flex-shrink: 0;
4718
4718
  }
4719
- `,zb=[rS,...xt()];var Xe=class extends Ot(Nt(Jt(ii(ac(Q))))){constructor(){super();this.variant=Db.VARIANT;this.wasSpacePressed=!1;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||et.LISTITEM}handleBlur(){this.wasSpacePressed=!1}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let e=this.getActionForKeyEvent(t);this.isEventFromInsideListItem(t)||(!t.defaultPrevented&&e===G.ENTER?(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)):e===G.SPACE&&(this.wasSpacePressed=!0))}handleKeyUp(t){this.getActionForKeyEvent(t)===G.SPACE&&(!this.isEventFromInsideListItem(t)&&!t.defaultPrevented&&this.wasSpacePressed&&(t.preventDefault(),this.triggerClickEvent(t)),this.wasSpacePressed=!1)}isEventFromInsideListItem(t){let e=t.target;return e!==this&&document.activeElement===e&&this.contains(e)}triggerClickEvent(t){if(this.isEventFromInsideListItem(t))return;let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}getText(t,e,i){return S`
4719
+ `,Bb=[rS,...xt()];var Xe=class extends Ot(Nt(Jt(ii(ac(Q))))){constructor(){super();this.variant=Pb.VARIANT;this.wasSpacePressed=!1;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||et.LISTITEM}handleBlur(){this.wasSpacePressed=!1}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let e=this.getActionForKeyEvent(t);this.isEventFromInsideListItem(t)||(!t.defaultPrevented&&e===G.ENTER?(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)):e===G.SPACE&&(this.wasSpacePressed=!0))}handleKeyUp(t){this.getActionForKeyEvent(t)===G.SPACE&&(!this.isEventFromInsideListItem(t)&&!t.defaultPrevented&&this.wasSpacePressed&&(t.preventDefault(),this.triggerClickEvent(t)),this.wasSpacePressed=!1)}isEventFromInsideListItem(t){let e=t.target;return e!==this&&document.activeElement===e&&this.contains(e)}triggerClickEvent(t){if(this.isEventFromInsideListItem(t))return;let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}getText(t,e,i){return S`
4720
4720
  <slot name="${t}">
4721
4721
  ${i?S`<mdc-text part="${t}" type="${e}" tagname="${pt.SPAN}">${i}</mdc-text>`:K}
4722
4722
  </slot>
4723
- `}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(e=>{t?(e.setAttribute("disabled",""),Vn.onDisableListItem(this)):(e.removeAttribute("disabled"),Vn.onEnableListItem(this))}),this.setAttribute("aria-disabled",`${t}`)}update(t){super.update(t),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.dispatchModifiedEvent(this.disabled?"disabled":"enabled")),t.has("softDisabled")&&this.disableSlottedChildren(this.softDisabled),t.has("dataIndex")&&(this.ariaPosInSet=`${this.dataIndex!==void 0?this.dataIndex+1:""}`)}renderTrailingControls(){return S`<slot
4723
+ `}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(e=>{t?(e.setAttribute("disabled",""),zn.onDisableListItem(this)):(e.removeAttribute("disabled"),zn.onEnableListItem(this))}),this.setAttribute("aria-disabled",`${t}`)}update(t){super.update(t),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.dispatchModifiedEvent(this.disabled?"disabled":"enabled")),t.has("softDisabled")&&this.disableSlottedChildren(this.softDisabled),t.has("dataIndex")&&(this.ariaPosInSet=`${this.dataIndex!==void 0?this.dataIndex+1:""}`)}renderTrailingControls(){return S`<slot
4724
4724
  name="trailing-controls"
4725
4725
  @click=${this.stopEventPropagation}
4726
4726
  @keyup=${this.stopEventPropagation}
@@ -4748,7 +4748,7 @@
4748
4748
  ${this.renderTrailingControls()}
4749
4749
  </div>
4750
4750
  </slot>
4751
- `}};Xe.styles=[...Q.styles,...zb],h([qt({slot:"leading-controls"})],Xe.prototype,"leadingControlsSlot",2),h([qt({slot:"trailing-controls"})],Xe.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],Xe.prototype,"variant",2),h([u({type:String,reflect:!0})],Xe.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Xe.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],Xe.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],Xe.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],Xe.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Xe.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],Xe.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],Xe.prototype,"active",2);var Gi=Xe;Gi.register(oc);var iS=Gi;var oS=B`
4751
+ `}};Xe.styles=[...Q.styles,...Bb],h([qt({slot:"leading-controls"})],Xe.prototype,"leadingControlsSlot",2),h([qt({slot:"trailing-controls"})],Xe.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],Xe.prototype,"variant",2),h([u({type:String,reflect:!0})],Xe.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Xe.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],Xe.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],Xe.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],Xe.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Xe.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],Xe.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],Xe.prototype,"active",2);var Gi=Xe;Gi.register(oc);var iS=Gi;var oS=B`
4752
4752
  :host {
4753
4753
  --mdc-marker-width: 0.25rem;
4754
4754
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -4773,7 +4773,7 @@
4773
4773
  var(--mdc-marker-striped-background-color) 0.375rem
4774
4774
  );
4775
4775
  }
4776
- `,Bb=[oS];var Hb=V.constructTagName("marker"),Ub={SOLID:"solid",STRIPED:"striped"};var zn=class extends Q{constructor(){super(...arguments);this.variant=Ub.SOLID}};zn.styles=[...Q.styles,...Bb],h([u({type:String,reflect:!0})],zn.prototype,"variant",2);var Pp=zn;Pp.register(Hb);var sS=Pp;var ae=V.constructTagName("menupopover"),Fp={PLACEMENT:Mt.BOTTOM_START,ORIENTATION:"vertical"};var Ki=V.constructTagName("menusection"),Gb={DIVIDER_VARIANT:"solid"};var Co=V.constructTagName("sidenavigation"),cr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},_o={FLYOUT:"flyout",DROPDOWN:"dropdown"},ua={VARIANT:cr.FLEXIBLE,SUBMENU_TYPE:_o.FLYOUT};var Bn=V.constructTagName("menubar"),Kb={ORIENTATION:"vertical"};var aS=B`
4776
+ `,Hb=[oS];var Ub=V.constructTagName("marker"),Gb={SOLID:"solid",STRIPED:"striped"};var Bn=class extends Q{constructor(){super(...arguments);this.variant=Gb.SOLID}};Bn.styles=[...Q.styles,...Hb],h([u({type:String,reflect:!0})],Bn.prototype,"variant",2);var Pp=Bn;Pp.register(Ub);var sS=Pp;var ae=V.constructTagName("menupopover"),Fp={PLACEMENT:Mt.BOTTOM_START,ORIENTATION:"vertical"};var Ki=V.constructTagName("menusection"),Kb={DIVIDER_VARIANT:"solid"};var Co=V.constructTagName("sidenavigation"),cr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},_o={FLYOUT:"flyout",DROPDOWN:"dropdown"},ua={VARIANT:cr.FLEXIBLE,SUBMENU_TYPE:_o.FLYOUT};var Hn=V.constructTagName("menubar"),Wb={ORIENTATION:"vertical"};var aS=B`
4777
4777
  :host {
4778
4778
  display: flex;
4779
4779
  }
@@ -4785,7 +4785,7 @@
4785
4785
  :host([aria-orientation='vertical']) {
4786
4786
  flex-direction: column;
4787
4787
  }
4788
- `,Wb=[aS];var Hn=class extends Ot(Nt(Q)){constructor(){super();this.depthManager=new mo(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(e=>e===this)){let e=t.target;if(!e||!this.isTopLevelMenuItem(e))return;let i=this.menuItems.filter(c=>c!==e);this.getVisibleSubMenusOfItems(i).forEach(c=>{c.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=Kb.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(e=>{e.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var c,f;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],i=[],n=g=>{g.role===et.MENUITEM&&!g.hasAttribute("disabled")?i.push(g):g.tagName.toLowerCase()===Ki&&Array.from(g.children).forEach(n)};return e.forEach(n),i}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{var f;let n=i.getAttribute("id");if(!n)return;let c=(f=document.querySelector)==null?void 0:f.call(document,`${ae}[triggerid="${n}"]`);c&&c.visible&&e.push(c)}),e}getAllPopovers(){var n,c;if(!this.menuItems.length)return[];let t=(c=(n=this.menuItems[0])==null?void 0:n.closest(Co))!=null?c:this;if(!t)return[];let e=[],i=f=>{f.querySelectorAll(`${ae}`).forEach(g=>{e.push(g)}),f.querySelectorAll("slot").forEach(g=>{g.assignedElements({flatten:!0}).forEach(i)})};return i(t),e}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((e,i)=>{let n=i===0?"0":"-1";e==null||e.setAttribute("tabindex",n)})}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t||e===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(e=>e.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(n=>n.getAttribute("id")===t))return;let i=this.getSubmenu(t);i&&i.show()}updatePopoverPlacement(){let t=Mt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,i){var n,c;i<0||e<0||(e!==i&&((n=t[e])==null||n.setAttribute("tabindex","-1"),(c=t[i])==null||c.setAttribute("tabindex","0")),t[i]&&(t[i].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,i=!1){var g;let{length:n}=this.menuItems;if(n===0)return;let c=t;if(this.getKeyboardNavMode()===te.DEFAULT?c=e==="prev"?(t-1+n)%n:(t+1)%n:c=e==="prev"?Math.max(0,t-1):Math.min(t+1,n-1),c!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,c),i)){let A=(g=this.menuItems[c])==null?void 0:g.getAttribute("id");this.getSubmenu(A)&&!this.menuItems[c].hasAttribute("soft-disabled")&&(this.showSubmenu(A),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var c;let e=t.parentElement;if(!e||t.role!==et.MENUITEM)return!1;let i=e.tagName.toLowerCase(),n=(c=e.parentElement)==null?void 0:c.tagName.toLowerCase();return i===Bn||i===Co||i===Ki&&(n===Bn||n===Co)}isNestedMenuItem(t){return!!t.closest(ae)&&t.role===et.MENUITEM}async closeAllMenuPopovers(){let t=this.getAllPopovers(),e=this.depthManager.popUntil(i=>t.includes(i));await Promise.all(e.map(i=>i.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===et.MENUITEM){let i=t.closest(ae),n=i==null?void 0:i.getAttribute("triggerid"),c=this.menuItems.find(f=>f.getAttribute("id")===n);if(c){this.isTopLevelMenuItem(c)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let f=this.getCurrentIndex(c);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),e>=0&&this.navigateToMenuItem(e,"next",!0)}}getParentMenuItemIndex(t){let e=t.parentElement;for(;e;){if(e.tagName.toLowerCase()===ae){let i=e.getAttribute("triggerid"),n=this.menuItems.find(c=>c.getAttribute("id")===i);if(n)return this.isTopLevelMenuItem(n)?this.menuItems.findIndex(c=>c===n):this.getParentMenuItemIndex(n)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case G.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case G.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case G.LEFT:{let n=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(n);break}case G.RIGHT:{let n=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(n);break}case G.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case G.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return S`<slot></slot>`}};Hn.styles=[...Q.styles,...Wb],h([qt({selector:"mdc-menusection",flatten:!0})],Hn.prototype,"menusections",2);var $p=Hn;$p.register(Bn);var nS=$p;var Un=V.constructTagName("menuitem"),Gn={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Vp={POSITIVE:"positive",NEGATIVE:"negative"},zp={LEADING:"leading",TRAILING:"trailing"};var lS=B`
4788
+ `,Yb=[aS];var Un=class extends Ot(Nt(Q)){constructor(){super();this.depthManager=new mo(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(e=>e===this)){let e=t.target;if(!e||!this.isTopLevelMenuItem(e))return;let i=this.menuItems.filter(c=>c!==e);this.getVisibleSubMenusOfItems(i).forEach(c=>{c.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=Wb.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(e=>{e.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var c,f;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],i=[],n=g=>{g.role===et.MENUITEM&&!g.hasAttribute("disabled")?i.push(g):g.tagName.toLowerCase()===Ki&&Array.from(g.children).forEach(n)};return e.forEach(n),i}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{var f;let n=i.getAttribute("id");if(!n)return;let c=(f=document.querySelector)==null?void 0:f.call(document,`${ae}[triggerid="${n}"]`);c&&c.visible&&e.push(c)}),e}getAllPopovers(){var n,c;if(!this.menuItems.length)return[];let t=(c=(n=this.menuItems[0])==null?void 0:n.closest(Co))!=null?c:this;if(!t)return[];let e=[],i=f=>{f.querySelectorAll(`${ae}`).forEach(g=>{e.push(g)}),f.querySelectorAll("slot").forEach(g=>{g.assignedElements({flatten:!0}).forEach(i)})};return i(t),e}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((e,i)=>{let n=i===0?"0":"-1";e==null||e.setAttribute("tabindex",n)})}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t||e===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(e=>e.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(n=>n.getAttribute("id")===t))return;let i=this.getSubmenu(t);i&&i.show()}updatePopoverPlacement(){let t=Mt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,i){var n,c;i<0||e<0||(e!==i&&((n=t[e])==null||n.setAttribute("tabindex","-1"),(c=t[i])==null||c.setAttribute("tabindex","0")),t[i]&&(t[i].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,i=!1){var g;let{length:n}=this.menuItems;if(n===0)return;let c=t;if(this.getKeyboardNavMode()===te.DEFAULT?c=e==="prev"?(t-1+n)%n:(t+1)%n:c=e==="prev"?Math.max(0,t-1):Math.min(t+1,n-1),c!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,c),i)){let A=(g=this.menuItems[c])==null?void 0:g.getAttribute("id");this.getSubmenu(A)&&!this.menuItems[c].hasAttribute("soft-disabled")&&(this.showSubmenu(A),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var c;let e=t.parentElement;if(!e||t.role!==et.MENUITEM)return!1;let i=e.tagName.toLowerCase(),n=(c=e.parentElement)==null?void 0:c.tagName.toLowerCase();return i===Hn||i===Co||i===Ki&&(n===Hn||n===Co)}isNestedMenuItem(t){return!!t.closest(ae)&&t.role===et.MENUITEM}async closeAllMenuPopovers(){let t=this.getAllPopovers(),e=this.depthManager.popUntil(i=>t.includes(i));await Promise.all(e.map(i=>i.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===et.MENUITEM){let i=t.closest(ae),n=i==null?void 0:i.getAttribute("triggerid"),c=this.menuItems.find(f=>f.getAttribute("id")===n);if(c){this.isTopLevelMenuItem(c)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let f=this.getCurrentIndex(c);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),e>=0&&this.navigateToMenuItem(e,"next",!0)}}getParentMenuItemIndex(t){let e=t.parentElement;for(;e;){if(e.tagName.toLowerCase()===ae){let i=e.getAttribute("triggerid"),n=this.menuItems.find(c=>c.getAttribute("id")===i);if(n)return this.isTopLevelMenuItem(n)?this.menuItems.findIndex(c=>c===n):this.getParentMenuItemIndex(n)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case G.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case G.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case G.LEFT:{let n=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(n);break}case G.RIGHT:{let n=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(n);break}case G.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case G.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return S`<slot></slot>`}};Un.styles=[...Q.styles,...Yb],h([qt({selector:"mdc-menusection",flatten:!0})],Un.prototype,"menusections",2);var $p=Un;$p.register(Hn);var nS=$p;var Gn=V.constructTagName("menuitem"),Kn={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Vp={POSITIVE:"positive",NEGATIVE:"negative"},zp={LEADING:"leading",TRAILING:"trailing"};var lS=B`
4789
4789
  :host(:dir(rtl))::part(trailing-arrow),
4790
4790
  :host(:dir(rtl))::part(leading-arrow) {
4791
4791
  transform: rotate(180deg);
@@ -4794,7 +4794,7 @@
4794
4794
  :host::part(leading-arrow) {
4795
4795
  --mdc-icon-size: 1rem;
4796
4796
  }
4797
- `,Yb=[lS];var wo=class extends Gi{handleKeyDown(o){this.getActionForKeyEvent(o)===G.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===G.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=Fn.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Vp.NEGATIVE?Gn.LEFT:Gn.RIGHT;return S`
4797
+ `,jb=[lS];var wo=class extends Gi{handleKeyDown(o){this.getActionForKeyEvent(o)===G.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===G.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=$n.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Vp.NEGATIVE?Kn.LEFT:Kn.RIGHT;return S`
4798
4798
  <slot
4799
4799
  name="trailing-controls"
4800
4800
  @click=${this.stopEventPropagation}
@@ -4802,7 +4802,7 @@
4802
4802
  @keydown=${this.stopEventPropagation}
4803
4803
  ></slot>
4804
4804
  ${this.arrowPosition===zp.TRAILING?S`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:K}
4805
- `}renderLeadingControls(){let o=this.arrowDirection===Vp.POSITIVE?Gn.RIGHT:Gn.LEFT;return S`
4805
+ `}renderLeadingControls(){let o=this.arrowDirection===Vp.POSITIVE?Kn.RIGHT:Kn.LEFT;return S`
4806
4806
  <slot
4807
4807
  name="leading-controls"
4808
4808
  @click=${this.stopEventPropagation}
@@ -4810,7 +4810,7 @@
4810
4810
  @keydown=${this.stopEventPropagation}
4811
4811
  ></slot>
4812
4812
  ${this.arrowPosition===zp.LEADING?S`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:K}
4813
- `}};wo.styles=[...Gi.styles,...Yb],h([u({type:String,reflect:!0,attribute:"arrow-position"})],wo.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],wo.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],wo.prototype,"name",2),h([u({type:String,reflect:!0})],wo.prototype,"value",2);var Or=wo;Or.register(Un);var dS=Or;var jb=V.constructTagName("statictoggle"),cS={DEFAULT:"default",COMPACT:"compact"},Bp={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},qb={compact:.75,default:1.25},Xb={SIZE:cS.DEFAULT};var hS=[B`
4813
+ `}};wo.styles=[...Gi.styles,...jb],h([u({type:String,reflect:!0,attribute:"arrow-position"})],wo.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],wo.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],wo.prototype,"name",2),h([u({type:String,reflect:!0})],wo.prototype,"value",2);var Or=wo;Or.register(Gn);var dS=Or;var qb=V.constructTagName("statictoggle"),cS={DEFAULT:"default",COMPACT:"compact"},Bp={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Xb={compact:.75,default:1.25},Zb={SIZE:cS.DEFAULT};var hS=[B`
4814
4814
  :host {
4815
4815
  --mdc-statictoggle-width: 3rem;
4816
4816
  --mdc-statictoggle-height: 1.5rem;
@@ -4905,17 +4905,17 @@
4905
4905
  border: 1px solid GrayText;
4906
4906
  }
4907
4907
  }
4908
- `],Zb=hS;var ko=class extends Jt(Q){constructor(){super(...arguments);this.checked=!1;this.size=Xb.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return S`
4908
+ `],Qb=hS;var ko=class extends Jt(Q){constructor(){super(...arguments);this.checked=!1;this.size=Zb.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return S`
4909
4909
  <slot></slot>
4910
4910
  <div part="slider">
4911
4911
  <mdc-icon
4912
4912
  name="${this.checked?Bp.CHECKED:Bp.UNCHECKED}"
4913
4913
  part="toggle-icon"
4914
4914
  length-unit="rem"
4915
- size="${qb[this.size]}"
4915
+ size="${Xb[this.size]}"
4916
4916
  ></mdc-icon>
4917
4917
  </div>
4918
- `}};ko.styles=[...Q.styles,...Zb],h([u({type:Boolean,reflect:!0})],ko.prototype,"checked",2),h([u({type:String,reflect:!0})],ko.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ko.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ko.prototype,"softDisabled",2);var Hp=ko;Hp.register(jb);var pS=Hp;var Kn=V.constructTagName("tooltip"),Rr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Ze={ARIA_HIDDEN:"true",BACKDROP:!1,DELAY:"0,0",DISABLE_ARIA_EXPANDED:!0,HIDE_ON_BLUR:!0,HIDE_ON_ESCAPE:!0,TRIGGER:`${_e.MOUSEENTER} ${_e.FOCUSIN}`,OFFSET:4,PLACEMENT:Mt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Rr.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var mS=B`
4918
+ `}};ko.styles=[...Q.styles,...Qb],h([u({type:Boolean,reflect:!0})],ko.prototype,"checked",2),h([u({type:String,reflect:!0})],ko.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ko.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ko.prototype,"softDisabled",2);var Hp=ko;Hp.register(qb);var pS=Hp;var Wn=V.constructTagName("tooltip"),Rr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Ze={ARIA_HIDDEN:"true",BACKDROP:!1,DELAY:"0,0",DISABLE_ARIA_EXPANDED:!0,HIDE_ON_BLUR:!0,HIDE_ON_ESCAPE:!0,TRIGGER:`${_e.MOUSEENTER} ${_e.FOCUSIN}`,OFFSET:4,PLACEMENT:Mt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Rr.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var mS=B`
4919
4919
  :host {
4920
4920
  --mdc-tooltip-max-width: 400px;
4921
4921
  --mdc-tooltip-padding: 0.75rem;
@@ -4939,29 +4939,29 @@
4939
4939
  :host([color='contrast'])::part(popover-content) {
4940
4940
  color: var(--mdc-tooltip-text-color-contrast);
4941
4941
  }
4942
- `,Qb=[mS];var fa=class extends nr{constructor(){super(...arguments);this.tooltipType=Ze.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Ze.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS;this.autoGeneratedId=null}connectedCallback(){super.connectedCallback(),this.role=et.TOOLTIP,this.ariaHidden=Ze.ARIA_HIDDEN,this.backdrop=Ze.BACKDROP,this.delay=this.delay||Ze.DELAY,this.disableAriaExpanded=Ze.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Ze.HIDE_ON_BLUR,this.hideOnEscape=Ze.HIDE_ON_ESCAPE,this.offset=this.offset||Ze.OFFSET,this.placement=this.placement||Ze.PLACEMENT,this.trigger=Ze.TRIGGER,this.closeButton=Et.CLOSE_BUTTON,this.disableFlip=Et.DISABLE_FLIP,this.focusBackToTrigger=Et.FOCUS_BACK,this.focusTrap=Et.FOCUS_TRAP,this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE,this.interactive=Et.INTERACTIVE,this.preventScroll=Et.PREVENT_SCROLL,this.size=Et.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Rr).includes(t)?t:Ze.TOOLTIP_TYPE)}ensureId(){if(this.id.length>0){this.autoGeneratedId&&this.id!==this.autoGeneratedId&&(this.autoGeneratedId=null);return}this.autoGeneratedId||(this.autoGeneratedId=`mdc-tooltip-${ze()}`),this.id=this.autoGeneratedId}syncTriggerAriaForId(){if(this.triggerElement)switch(this.tooltipType){case Rr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Rr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=Ze.PLACEMENT)}onTooltipTypeUpdated(t){let e=t.get("tooltipType");if(Object.values(Rr).includes(this.tooltipType)||this.setTooltipType(Ze.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Rr.DESCRIPTION:e===Rr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Rr.LABEL:e===Rr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:e===Rr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):e===Rr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,e){let{triggerElement:i}=this;t===e||!i||(e||this.depthManager.remove([this]),await super.isOpenUpdated(t,e))}willUpdate(t){super.willUpdate(t);let e=t.has("id");e&&this.ensureId(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")?this.onTooltipTypeUpdated(t):e&&this.syncTriggerAriaForId()}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&Fl(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};fa.styles=[...nr.styles,...Qb],h([u({type:String,attribute:"tooltip-type",reflect:!0})],fa.prototype,"tooltipType",2),h([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],fa.prototype,"onlyShowWhenTriggerOverflows",2);var Up=fa;Up.register(Kn);var uS=Up;var Jb=V.constructTagName("toggle"),Wn={DEFAULT:"default",COMPACT:"compact"};var Gp={SIZE:Wn.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var fi=a=>{class o extends a{constructor(){super(...arguments);this.controlTypeProviderContext=Ie.consume({host:this,context:vp.Context})}willUpdate(){this.controlType&&Ud.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=Hd.CONTROL_TYPE)}}return h([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var nc=V.constructTagName("menuitemcheckbox"),Yn={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},ty={INDICATOR:Yn.CHECKBOX};var fS=B`
4942
+ `,Jb=[mS];var fa=class extends nr{constructor(){super(...arguments);this.tooltipType=Ze.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Ze.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS;this.autoGeneratedId=null}connectedCallback(){super.connectedCallback(),this.role=et.TOOLTIP,this.ariaHidden=Ze.ARIA_HIDDEN,this.backdrop=Ze.BACKDROP,this.delay=this.delay||Ze.DELAY,this.disableAriaExpanded=Ze.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Ze.HIDE_ON_BLUR,this.hideOnEscape=Ze.HIDE_ON_ESCAPE,this.offset=this.offset||Ze.OFFSET,this.placement=this.placement||Ze.PLACEMENT,this.trigger=Ze.TRIGGER,this.closeButton=Et.CLOSE_BUTTON,this.disableFlip=Et.DISABLE_FLIP,this.focusBackToTrigger=Et.FOCUS_BACK,this.focusTrap=Et.FOCUS_TRAP,this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE,this.interactive=Et.INTERACTIVE,this.preventScroll=Et.PREVENT_SCROLL,this.size=Et.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Rr).includes(t)?t:Ze.TOOLTIP_TYPE)}ensureId(){if(this.id.length>0){this.autoGeneratedId&&this.id!==this.autoGeneratedId&&(this.autoGeneratedId=null);return}this.autoGeneratedId||(this.autoGeneratedId=`mdc-tooltip-${ze()}`),this.id=this.autoGeneratedId}syncTriggerAriaForId(){if(this.triggerElement)switch(this.tooltipType){case Rr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Rr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=Ze.PLACEMENT)}onTooltipTypeUpdated(t){let e=t.get("tooltipType");if(Object.values(Rr).includes(this.tooltipType)||this.setTooltipType(Ze.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Rr.DESCRIPTION:e===Rr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Rr.LABEL:e===Rr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:e===Rr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):e===Rr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,e){let{triggerElement:i}=this;t===e||!i||(e||this.depthManager.remove([this]),await super.isOpenUpdated(t,e))}willUpdate(t){super.willUpdate(t);let e=t.has("id");e&&this.ensureId(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")?this.onTooltipTypeUpdated(t):e&&this.syncTriggerAriaForId()}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&Fl(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};fa.styles=[...nr.styles,...Jb],h([u({type:String,attribute:"tooltip-type",reflect:!0})],fa.prototype,"tooltipType",2),h([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],fa.prototype,"onlyShowWhenTriggerOverflows",2);var Up=fa;Up.register(Wn);var uS=Up;var ty=V.constructTagName("toggle"),Yn={DEFAULT:"default",COMPACT:"compact"};var Gp={SIZE:Yn.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var fi=a=>{class o extends a{constructor(){super(...arguments);this.controlTypeProviderContext=Ie.consume({host:this,context:vp.Context})}willUpdate(){this.controlType&&Ud.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=Hd.CONTROL_TYPE)}}return h([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var nc=V.constructTagName("menuitemcheckbox"),jn={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},ey={INDICATOR:jn.CHECKBOX};var fS=B`
4943
4943
  :host::part(checkmark-icon) {
4944
4944
  --mdc-icon-fill-color: currentColor;
4945
4945
  }
4946
4946
  :host .hidden-checkmark {
4947
4947
  visibility: hidden;
4948
4948
  }
4949
- `,ey=[fS];var va=class extends fi(Or){constructor(){super();this.checked=!1;this.indicator=ty.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||this.softDisabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===Yn.CHECKBOX?S`
4949
+ `,ry=[fS];var va=class extends fi(Or){constructor(){super();this.checked=!1;this.indicator=ey.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||this.softDisabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===jn.CHECKBOX?S`
4950
4950
  <mdc-staticcheckbox
4951
4951
  slot="leading-controls"
4952
4952
  ?checked="${this.checked}"
4953
4953
  ?disabled="${this.disabled}"
4954
4954
  ?soft-disabled="${this.softDisabled}"
4955
4955
  ></mdc-staticcheckbox>
4956
- `:K}staticToggle(){return this.indicator===Yn.TOGGLE?S`
4956
+ `:K}staticToggle(){return this.indicator===jn.TOGGLE?S`
4957
4957
  <mdc-statictoggle
4958
4958
  slot="trailing-controls"
4959
4959
  ?checked="${this.checked}"
4960
4960
  ?disabled="${this.disabled}"
4961
4961
  ?soft-disabled="${this.softDisabled}"
4962
- size="${Wn.COMPACT}"
4962
+ size="${Yn.COMPACT}"
4963
4963
  ></mdc-statictoggle>
4964
- `:K}getCheckmarkIcon(){return this.indicator===Yn.CHECKMARK?S`
4964
+ `:K}getCheckmarkIcon(){return this.indicator===jn.CHECKMARK?S`
4965
4965
  <mdc-icon
4966
4966
  slot="trailing-controls"
4967
4967
  name="check-bold"
@@ -4988,14 +4988,14 @@
4988
4988
  ${this.staticToggle()} ${this.getCheckmarkIcon()}
4989
4989
  </div>
4990
4990
  </slot>
4991
- `}};va.styles=[...Or.styles,...ey],h([u({type:Boolean,reflect:!0})],va.prototype,"checked",2),h([u({type:String,reflect:!0})],va.prototype,"indicator",2);var Kp=va;Kp.register(nc);var vS=Kp;var lc=V.constructTagName("menuitemradio"),dc={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},ry={INDICATOR:dc.RADIO};var gS=B`
4991
+ `}};va.styles=[...Or.styles,...ry],h([u({type:Boolean,reflect:!0})],va.prototype,"checked",2),h([u({type:String,reflect:!0})],va.prototype,"indicator",2);var Kp=va;Kp.register(nc);var vS=Kp;var lc=V.constructTagName("menuitemradio"),dc={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},iy={INDICATOR:dc.RADIO};var gS=B`
4992
4992
  :host::part(checkmark-icon) {
4993
4993
  --mdc-icon-fill-color: currentColor;
4994
4994
  }
4995
4995
  :host .hidden-checkmark {
4996
4996
  visibility: hidden;
4997
4997
  }
4998
- `,iy=[gS];var ga=class extends fi(Or){constructor(){super();this.checked=!1;this.indicator=ry.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Ki}, ${ae}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(e=>{e!==this&&e.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===dc.RADIO?S`
4998
+ `,oy=[gS];var ga=class extends fi(Or){constructor(){super();this.checked=!1;this.indicator=iy.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Ki}, ${ae}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(e=>{e!==this&&e.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===dc.RADIO?S`
4999
4999
  <mdc-staticradio
5000
5000
  slot="leading-controls"
5001
5001
  ?checked="${this.checked}"
@@ -5029,7 +5029,7 @@
5029
5029
  ${this.renderCheckmarkIcon()}
5030
5030
  </div>
5031
5031
  </slot>
5032
- `}};ga.styles=[...Or.styles,...iy],h([u({type:Boolean,reflect:!0})],ga.prototype,"checked",2),h([u({type:String,reflect:!0})],ga.prototype,"indicator",2);var Wp=ga;Wp.register(lc);var bS=Wp;var hr=V.constructTagName("navmenuitem"),oy={DOT:wr.DOT,COUNTER:wr.COUNTER},Yp={RIGHT_ARROW:"arrow-right-bold",DOWN_ARROW:"arrow-down-bold"},jp={MAX_COUNTER:99,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:Yo[24],VARIANT:cr.FLEXIBLE,CANNOT_ACTIVATE:!1};var yS=B`
5032
+ `}};ga.styles=[...Or.styles,...oy],h([u({type:Boolean,reflect:!0})],ga.prototype,"checked",2),h([u({type:String,reflect:!0})],ga.prototype,"indicator",2);var Wp=ga;Wp.register(lc);var bS=Wp;var hr=V.constructTagName("navmenuitem"),sy={DOT:wr.DOT,COUNTER:wr.COUNTER},Yp={RIGHT_ARROW:"arrow-right-bold",DOWN_ARROW:"arrow-down-bold"},jp={MAX_COUNTER:99,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:Yo[24],VARIANT:cr.FLEXIBLE,CANNOT_ACTIVATE:!1};var yS=B`
5033
5033
  :host::part(popover-content) {
5034
5034
  padding: 0.75rem 0.5rem;
5035
5035
  scroll-padding-block: 0.25rem;
@@ -5038,7 +5038,7 @@
5038
5038
  ::slotted(mdc-divider) {
5039
5039
  margin-block: 0.25rem;
5040
5040
  }
5041
- `,sy=[yS];var jn=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},qp=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===ae};var qn=class extends nr{constructor(){super();this.placement=Fp.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),n=this.backdropElement?e.includes(this.backdropElement):!1;(!i||n)&&(this.closeAllMenuPopovers(),n&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e,i;(e=this.triggerElement)!=null&&e.hasAttribute("disabled")||(i=this.triggerElement)!=null&&i.hasAttribute("soft-disabled")||(t.composedPath().find(n=>n.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;jn(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let i=t.target,n=this.getCurrentIndex(i);if(n===-1)return;switch(this.resetTabIndexes(n),this.getActionForKeyEvent(t,!0)){case G.HOME:{this.resetTabIndexAndSetFocus(0,n),e=!0;break}case G.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,n),e=!0;break}case G.DOWN:{let f=n+1===this.menuItems.length?0:n+1;this.resetTabIndexAndSetFocus(f,n),e=!0;break}case G.UP:{let f=n-1===-1?this.menuItems.length-1:n-1;this.resetTabIndexAndSetFocus(f,n),e=!0;break}case G.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&!i.hasAttribute("soft-disabled")&&(f.show(),e=!0);break}case G.LEFT:{qp(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,n),e=!0);break}case G.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,n),e=!0);break}case G.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case G.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,i=t.target;switch(this.getActionForKeyEvent(t)){case G.SPACE:{!i.matches(`${lc}, ${nc}`)&&!i.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(i)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var i,n;let e=t.getAttribute("id");return e?(n=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:n.call(i,`${ae}[triggerid="${e}"]`):null}collectMenuItems(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(n=>n.tagName.toLowerCase()===Ki?Array.from(n.children).filter(c=>jn(c)):jn(n)?n:[]).flat().filter(n=>!!n&&!n.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(n=>this.getSubMenuPopoverOfTarget(n))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{let n=this.getSubMenuPopoverOfTarget(i);n&&n.visible&&e.push(n)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=Fp.ORIENTATION,this.backdrop=!1,this.color=rs.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![Un,hr].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(i=>{let n=this.getSubMenuPopoverOfTarget(i);n&&n.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t)}resetTabIndexAndSetFocus(t,e){t!==e&&(this.menuItems[e].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&qp(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(n=>n!==t);this.getOpenSubMenusOfItems(e).forEach(n=>{n.hide()})}fireMenuItemAction(t){t.matches(Un)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!jn(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};qn.styles=[...nr.styles,...sy],h([u({type:String,reflect:!0})],qn.prototype,"placement",2);var Xp=qn;Xp.register(ae);var ES=Xp;var cc=class{constructor(o,t,e){this.variant=o,this.expanded=t,this.submenuType=e}get isDropdownSubmenuType(){return this.submenuType===_o.DROPDOWN}hasSiblingWithTriggerId(o){var i,n;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((n=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?n:[]).some(c=>c!==o&&c.tagName.toLowerCase()===ae&&c.getAttribute("triggerid")===t):!1}isDropDownParent(o){var i,n;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((n=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?n:[]).some(c=>c!==o&&c.matches(`div[data-trigger="${t}"]`)):!1}getParentNavMenuItems(o){var i;if(!o)return[];let t=[],e=o;for(;e;){let n=null,c=e==null?void 0:e.closest(ae);if(c)n=this.getTriggerElement(c,"triggerid");else{let f=(i=e==null?void 0:e.parentElement)==null?void 0:i.closest("div[data-trigger]");f&&(n=this.getTriggerElement(f,"data-trigger"))}if(n&&n.tagName.toLowerCase()===hr)t.push(n),e=n;else break}return t}getTriggerElement(o,t){let e=o.getAttribute(t);return e?document.getElementById(e):null}setCurrentActiveNavMenuItem(o){var n;let t=((n=this.currentActiveNavMenuItem)==null?void 0:n.navId)===(o==null?void 0:o.navId),e=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||this.isDropdownSubmenuType&&this.expanded&&this.isDropDownParent(o)||(o==null?void 0:o.softDisabled);if(t||e||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(c=>{c.hasActiveChild=!0,c.setAttribute("active","")})}};cc.context=Co;var hc=cc;var TS=B`
5041
+ `,ay=[yS];var qn=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},qp=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===ae};var Xn=class extends nr{constructor(){super();this.placement=Fp.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),n=this.backdropElement?e.includes(this.backdropElement):!1;(!i||n)&&(this.closeAllMenuPopovers(),n&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e,i;(e=this.triggerElement)!=null&&e.hasAttribute("disabled")||(i=this.triggerElement)!=null&&i.hasAttribute("soft-disabled")||(t.composedPath().find(n=>n.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;qn(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let i=t.target,n=this.getCurrentIndex(i);if(n===-1)return;switch(this.resetTabIndexes(n),this.getActionForKeyEvent(t,!0)){case G.HOME:{this.resetTabIndexAndSetFocus(0,n),e=!0;break}case G.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,n),e=!0;break}case G.DOWN:{let f=n+1===this.menuItems.length?0:n+1;this.resetTabIndexAndSetFocus(f,n),e=!0;break}case G.UP:{let f=n-1===-1?this.menuItems.length-1:n-1;this.resetTabIndexAndSetFocus(f,n),e=!0;break}case G.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&!i.hasAttribute("soft-disabled")&&(f.show(),e=!0);break}case G.LEFT:{qp(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,n),e=!0);break}case G.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,n),e=!0);break}case G.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case G.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,i=t.target;switch(this.getActionForKeyEvent(t)){case G.SPACE:{!i.matches(`${lc}, ${nc}`)&&!i.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(i)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var i,n;let e=t.getAttribute("id");return e?(n=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:n.call(i,`${ae}[triggerid="${e}"]`):null}collectMenuItems(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(n=>n.tagName.toLowerCase()===Ki?Array.from(n.children).filter(c=>qn(c)):qn(n)?n:[]).flat().filter(n=>!!n&&!n.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(n=>this.getSubMenuPopoverOfTarget(n))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{let n=this.getSubMenuPopoverOfTarget(i);n&&n.visible&&e.push(n)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=Fp.ORIENTATION,this.backdrop=!1,this.color=rs.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![Gn,hr].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(i=>{let n=this.getSubMenuPopoverOfTarget(i);n&&n.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t)}resetTabIndexAndSetFocus(t,e){t!==e&&(this.menuItems[e].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&qp(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(n=>n!==t);this.getOpenSubMenusOfItems(e).forEach(n=>{n.hide()})}fireMenuItemAction(t){t.matches(Gn)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!qn(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};Xn.styles=[...nr.styles,...ay],h([u({type:String,reflect:!0})],Xn.prototype,"placement",2);var Xp=Xn;Xp.register(ae);var ES=Xp;var cc=class{constructor(o,t,e){this.variant=o,this.expanded=t,this.submenuType=e}get isDropdownSubmenuType(){return this.submenuType===_o.DROPDOWN}hasSiblingWithTriggerId(o){var i,n;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((n=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?n:[]).some(c=>c!==o&&c.tagName.toLowerCase()===ae&&c.getAttribute("triggerid")===t):!1}isDropDownParent(o){var i,n;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((n=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?n:[]).some(c=>c!==o&&c.matches(`div[data-trigger="${t}"]`)):!1}getParentNavMenuItems(o){var i;if(!o)return[];let t=[],e=o;for(;e;){let n=null,c=e==null?void 0:e.closest(ae);if(c)n=this.getTriggerElement(c,"triggerid");else{let f=(i=e==null?void 0:e.parentElement)==null?void 0:i.closest("div[data-trigger]");f&&(n=this.getTriggerElement(f,"data-trigger"))}if(n&&n.tagName.toLowerCase()===hr)t.push(n),e=n;else break}return t}getTriggerElement(o,t){let e=o.getAttribute(t);return e?document.getElementById(e):null}setCurrentActiveNavMenuItem(o){var n;let t=((n=this.currentActiveNavMenuItem)==null?void 0:n.navId)===(o==null?void 0:o.navId),e=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||this.isDropdownSubmenuType&&this.expanded&&this.isDropDownParent(o)||(o==null?void 0:o.softDisabled);if(t||e||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(c=>{c.hasActiveChild=!0,c.setAttribute("active","")})}};cc.context=Co;var hc=cc;var TS=B`
5042
5042
  :host {
5043
5043
  --mdc-sidenavigation-expanded-width: 14.5rem;
5044
5044
  --mdc-sidenavigation-expanded-left-padding: 1rem;
@@ -5176,7 +5176,7 @@
5176
5176
  :host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
5177
5177
  opacity: 1;
5178
5178
  }
5179
- `,ay=[TS];var Zp=class extends Se{},ny=Zp;var vi=class extends Nt(ny){constructor(){super({context:hc.context,initialValue:new hc(ua.VARIANT,!0,ua.SUBMENU_TYPE)});this.variant=ua.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.submenuType=ua.SUBMENU_TYPE;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(e=>e===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===cr.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var e;if((e=this.context)!=null&&e.value){let i=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(i)}};this.findNav=(t,e)=>t.find(i=>i.navId===e);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this)),this.addEventListener("keydown",this.handleDropdownKeyDown.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return hc.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case cr.FIXED_EXPANDED:this.expanded=!0;break;case cr.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded")||t.has("submenuType"))&&this.updateContext(),(t.has("expanded")||t.has("submenuType"))&&((!this.expanded||this.submenuType!==_o.DROPDOWN)&&this.closeAllDropdowns(),this.submenuType===_o.DROPDOWN?this.expanded?this.convertFlyoutsToDropdowns():this.convertDropdownsToFlyouts():this.convertFlyoutsToDropdowns())}firstUpdated(t){super.firstUpdated(t),(this.variant===cr.FLEXIBLE||this.variant===cr.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext()),this.hideAllDropdownContainers(),this.submenuType===_o.DROPDOWN&&!this.expanded&&this.convertDropdownsToFlyouts()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.submenuType!==this.submenuType)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.submenuType=this.submenuType,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${hr}:not([disabled])`))}closeAllDropdowns(){this.navMenuItems.filter(t=>this.context.value.isDropDownParent(t)).forEach(t=>t.closeDropdown()),this.hideAllDropdownContainers()}hideAllDropdownContainers(){this.querySelectorAll("div[data-trigger]").forEach(e=>{Object.assign(e.style,{display:"none",flexDirection:"column",gap:"0.25rem"})})}convertDropdownsToFlyouts(){this.querySelectorAll("div[data-trigger]").forEach(e=>{var f;let i=e.getAttribute("data-trigger");if(!i||((f=e.parentElement)==null?void 0:f.querySelector(`${ae}[triggerid="${CSS.escape(i)}"][data-dynamic-popover]`)))return;let c=document.createElement(ae);for(c.setAttribute("triggerid",i),c.setAttribute("data-dynamic-popover",""),c.setAttribute("placement","right-start");e.firstChild;)c.appendChild(e.firstChild);e.after(c),Object.assign(e.style,{display:"none"})})}convertFlyoutsToDropdowns(){this.querySelectorAll(`${ae}[data-dynamic-popover]`).forEach(e=>{let i=e.getAttribute("triggerid");if(!i)return;let n=this.querySelector(`div[data-trigger="${CSS.escape(i)}"]`);if(n){for(;e.firstChild;)n.appendChild(e.firstChild);e.remove()}})}handleDropdownKeyDown(t){var J,q;if(this.submenuType!==_o.DROPDOWN||!this.expanded)return;let e=t.target;if(!(e.tagName.toLowerCase()===hr))return;let n=e,c=this.getActionForKeyEvent(t);if(c===G.ESCAPE){let Z=e.closest("div[data-trigger]");if(!Z)return;let ot=Z.getAttribute("data-trigger");if(!ot)return;let st=this.querySelector(`${hr}#${CSS.escape(ot)}`);st&&(st.closeDropdown(),st.focus(),t.stopPropagation());return}let f=this.context.value,g=n.hasAttribute("in-dropdown-container"),A=n.getAttribute("aria-expanded")==="true",R=Z=>{var ot,st;return(st=(ot=Z.parentElement)==null?void 0:ot.querySelector(`div[data-trigger="${Z.id}"]`))!=null?st:null},H=Z=>Z==null?void 0:Z.querySelector(`${hr}:not([disabled])`);if(g){let Z=e.closest("div[data-trigger]");if(!Z)return;let ot=Array.from(Z.querySelectorAll(`${hr}:not([disabled])`)),st=ot.indexOf(n);if(st===-1)return;switch(c){case G.DOWN:{let ht=st+1<ot.length?st+1:0;ot[ht].focus(),t.preventDefault();break}case G.UP:{let ht=st>0?st-1:ot.length-1;ot[ht].focus(),t.preventDefault();break}case G.RIGHT:{let ht=this.navMenuItems.filter(It=>!It.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(It=>It.id===bt);if(yt!==-1&&yt+1<ht.length){let It=ht[yt+1];if(It.focus(),f.isDropDownParent(It)){It.openDropdown();let Rt=R(It);(J=H(Rt))==null||J.focus()}}break}case G.LEFT:{let ht=this.navMenuItems.filter(It=>!It.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(It=>It.id===bt);if(yt>0){let It=ht[yt-1];if(It.focus(),f.isDropDownParent(It)){It.openDropdown();let Rt=R(It);(q=H(Rt))==null||q.focus()}}break}default:t.preventDefault()}}if(c===G.RIGHT){let Z=R(n);if(Z){A||n.openDropdown();let ot=H(Z);ot&&(ot.focus(),t.preventDefault())}}}setVariant(t){this.setAttribute("variant",Object.values(cr).includes(t)?t:ua.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===cr.FLEXIBLE_ON_HOVER&&t.pointerType==="mouse"&&(this.isHovered=!1,this.isFocused=!1,this.hideGrabberButton()),this.dispatchEvent(new CustomEvent("toggle",{detail:{expanded:this.expanded}}))}preventScrollOnSpace(t){this.getActionForKeyEvent(t)===G.SPACE&&t.preventDefault()}render(){var t;return this.variant===cr.HIDDEN?S``:S`
5179
+ `,ny=[TS];var Zp=class extends Se{},ly=Zp;var vi=class extends Nt(ly){constructor(){super({context:hc.context,initialValue:new hc(ua.VARIANT,!0,ua.SUBMENU_TYPE)});this.variant=ua.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.submenuType=ua.SUBMENU_TYPE;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(e=>e===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===cr.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var e;if((e=this.context)!=null&&e.value){let i=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(i)}};this.findNav=(t,e)=>t.find(i=>i.navId===e);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this)),this.addEventListener("keydown",this.handleDropdownKeyDown.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return hc.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case cr.FIXED_EXPANDED:this.expanded=!0;break;case cr.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded")||t.has("submenuType"))&&this.updateContext(),(t.has("expanded")||t.has("submenuType"))&&((!this.expanded||this.submenuType!==_o.DROPDOWN)&&this.closeAllDropdowns(),this.submenuType===_o.DROPDOWN?this.expanded?this.convertFlyoutsToDropdowns():this.convertDropdownsToFlyouts():this.convertFlyoutsToDropdowns())}firstUpdated(t){super.firstUpdated(t),(this.variant===cr.FLEXIBLE||this.variant===cr.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext()),this.hideAllDropdownContainers(),this.submenuType===_o.DROPDOWN&&!this.expanded&&this.convertDropdownsToFlyouts()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.submenuType!==this.submenuType)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.submenuType=this.submenuType,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${hr}:not([disabled])`))}closeAllDropdowns(){this.navMenuItems.filter(t=>this.context.value.isDropDownParent(t)).forEach(t=>t.closeDropdown()),this.hideAllDropdownContainers()}hideAllDropdownContainers(){this.querySelectorAll("div[data-trigger]").forEach(e=>{Object.assign(e.style,{display:"none",flexDirection:"column",gap:"0.25rem"})})}convertDropdownsToFlyouts(){this.querySelectorAll("div[data-trigger]").forEach(e=>{var f;let i=e.getAttribute("data-trigger");if(!i||((f=e.parentElement)==null?void 0:f.querySelector(`${ae}[triggerid="${CSS.escape(i)}"][data-dynamic-popover]`)))return;let c=document.createElement(ae);for(c.setAttribute("triggerid",i),c.setAttribute("data-dynamic-popover",""),c.setAttribute("placement","right-start");e.firstChild;)c.appendChild(e.firstChild);e.after(c),Object.assign(e.style,{display:"none"})})}convertFlyoutsToDropdowns(){this.querySelectorAll(`${ae}[data-dynamic-popover]`).forEach(e=>{let i=e.getAttribute("triggerid");if(!i)return;let n=this.querySelector(`div[data-trigger="${CSS.escape(i)}"]`);if(n){for(;e.firstChild;)n.appendChild(e.firstChild);e.remove()}})}handleDropdownKeyDown(t){var J,q;if(this.submenuType!==_o.DROPDOWN||!this.expanded)return;let e=t.target;if(!(e.tagName.toLowerCase()===hr))return;let n=e,c=this.getActionForKeyEvent(t);if(c===G.ESCAPE){let Z=e.closest("div[data-trigger]");if(!Z)return;let ot=Z.getAttribute("data-trigger");if(!ot)return;let st=this.querySelector(`${hr}#${CSS.escape(ot)}`);st&&(st.closeDropdown(),st.focus(),t.stopPropagation());return}let f=this.context.value,g=n.hasAttribute("in-dropdown-container"),A=n.getAttribute("aria-expanded")==="true",R=Z=>{var ot,st;return(st=(ot=Z.parentElement)==null?void 0:ot.querySelector(`div[data-trigger="${Z.id}"]`))!=null?st:null},H=Z=>Z==null?void 0:Z.querySelector(`${hr}:not([disabled])`);if(g){let Z=e.closest("div[data-trigger]");if(!Z)return;let ot=Array.from(Z.querySelectorAll(`${hr}:not([disabled])`)),st=ot.indexOf(n);if(st===-1)return;switch(c){case G.DOWN:{let ht=st+1<ot.length?st+1:0;ot[ht].focus(),t.preventDefault();break}case G.UP:{let ht=st>0?st-1:ot.length-1;ot[ht].focus(),t.preventDefault();break}case G.RIGHT:{let ht=this.navMenuItems.filter(It=>!It.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(It=>It.id===bt);if(yt!==-1&&yt+1<ht.length){let It=ht[yt+1];if(It.focus(),f.isDropDownParent(It)){It.openDropdown();let Rt=R(It);(J=H(Rt))==null||J.focus()}}break}case G.LEFT:{let ht=this.navMenuItems.filter(It=>!It.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(It=>It.id===bt);if(yt>0){let It=ht[yt-1];if(It.focus(),f.isDropDownParent(It)){It.openDropdown();let Rt=R(It);(q=H(Rt))==null||q.focus()}}break}default:t.preventDefault()}}if(c===G.RIGHT){let Z=R(n);if(Z){A||n.openDropdown();let ot=H(Z);ot&&(ot.focus(),t.preventDefault())}}}setVariant(t){this.setAttribute("variant",Object.values(cr).includes(t)?t:ua.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===cr.FLEXIBLE_ON_HOVER&&t.pointerType==="mouse"&&(this.isHovered=!1,this.isFocused=!1,this.hideGrabberButton()),this.dispatchEvent(new CustomEvent("toggle",{detail:{expanded:this.expanded}}))}preventScrollOnSpace(t){this.getActionForKeyEvent(t)===G.SPACE&&t.preventDefault()}render(){var t;return this.variant===cr.HIDDEN?S``:S`
5180
5180
  <div part="side-navigation-container" id="side-nav-container">
5181
5181
  <div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
5182
5182
  <slot name="scrollable-section">
@@ -5208,7 +5208,7 @@
5208
5208
  ${this.variant===cr.FLEXIBLE||this.variant===cr.FLEXIBLE_ON_HOVER?S`<mdc-divider
5209
5209
  part="vertical-divider"
5210
5210
  orientation=${us.VERTICAL}
5211
- variant=${On.GRADIENT}
5211
+ variant=${Rn.GRADIENT}
5212
5212
  arrow-direction=${this.expanded?Lr.NEGATIVE:Lr.POSITIVE}
5213
5213
  button-position=${Lr.POSITIVE}
5214
5214
  >
@@ -5220,7 +5220,7 @@
5220
5220
  aria-controls="side-nav-container"
5221
5221
  ></mdc-button>
5222
5222
  </mdc-divider>`:K}
5223
- `}};vi.styles=[...Q.styles,...ay],h([u({type:String,reflect:!0})],vi.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],vi.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],vi.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],vi.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],vi.prototype,"hideFixedSectionDivider",2),h([u({type:String,reflect:!0,attribute:"submenu-type"})],vi.prototype,"submenuType",2);var Es=vi;var xS=B`
5223
+ `}};vi.styles=[...Q.styles,...ny],h([u({type:String,reflect:!0})],vi.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],vi.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],vi.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],vi.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],vi.prototype,"hideFixedSectionDivider",2),h([u({type:String,reflect:!0,attribute:"submenu-type"})],vi.prototype,"submenuType",2);var Es=vi;var xS=B`
5224
5224
  :host {
5225
5225
  --mdc-menusection-divider-margin-block: 0.25rem;
5226
5226
  --mdc-menusection-gap: 0rem;
@@ -5241,7 +5241,7 @@
5241
5241
  :host::part(align-header) {
5242
5242
  --mdc-listheader-padding: var(--mdc-menusection-header-padding);
5243
5243
  }
5244
- `,ly=[xS];var gi=class extends Q{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=Gb.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Ie.consume({host:this,context:Es.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var n;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(n=this.sideNavigationContext)==null?void 0:n.value;if(!e)return;let{expanded:i}=e;this.hideHeaderText=!i}renderHeader(){var t,e;return this.headerText?S` <mdc-listheader
5244
+ `,dy=[xS];var gi=class extends Q{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=Kb.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Ie.consume({host:this,context:Es.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var n;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(n=this.sideNavigationContext)==null?void 0:n.value;if(!e)return;let{expanded:i}=e;this.hideHeaderText=!i}renderHeader(){var t,e;return this.headerText?S` <mdc-listheader
5245
5245
  part="header ${(e=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&e.expanded?"align-header":""}"
5246
5246
  header-text="${this.headerText}"
5247
5247
  prefix-icon="${tt(this.prefixIcon)}"
@@ -5250,7 +5250,7 @@
5250
5250
  ${this.hideHeaderText?null:this.renderHeader()}
5251
5251
  <slot part="container"></slot>
5252
5252
  ${this.showDivider?S`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
5253
- `}};gi.styles=[...Q.styles,...ly],h([u({type:String,reflect:!0,attribute:"aria-label"})],gi.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],gi.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],gi.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],gi.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],gi.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],gi.prototype,"hideHeaderText",2);var Qp=gi;Qp.register(Ki);var AS=Qp;var SS=[Tt,B`
5253
+ `}};gi.styles=[...Q.styles,...dy],h([u({type:String,reflect:!0,attribute:"aria-label"})],gi.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],gi.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],gi.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],gi.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],gi.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],gi.prototype,"hideHeaderText",2);var Qp=gi;Qp.register(Ki);var AS=Qp;var SS=[Tt,B`
5254
5254
  :host {
5255
5255
  --mdc-navmenuitem-in-sidenav-expanded-width: var(--mdc-sidenavigation-expanded-width, 100%);
5256
5256
  --mdc-navmenuitem-in-sidenav-expanded-margin-left: var(--mdc-sidenavigation-expanded-left-padding, 1rem);
@@ -5452,7 +5452,7 @@
5452
5452
  background-color: ButtonText;
5453
5453
  }
5454
5454
  }
5455
- `,...xt()],dy=SS;var le=class extends Or{constructor(){super();this.cannotActivate=jp.CANNOT_ACTIVATE;this.maxCounter=jp.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.dropdownOpen=!1;this.sideNavigationContext=Ie.consume({host:this,context:Es.Context});this.emitNavMenuItemActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(e)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested()),this.toggleAttribute("in-dropdown-container",this.isInsideDropdownContainer())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var i;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild")||t.has("dropdownOpen"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let e=(i=this.sideNavigationContext)==null?void 0:i.value;e&&(this.showLabel=this.isNested()||this.isInsideDropdownContainer()?!0:e.expanded,!e.expanded&&this.dropdownOpen&&this.closeDropdown(),!e.isDropdownSubmenuType&&this.dropdownOpen&&this.closeDropdown(),e.isDropdownSubmenuType&&this.hasActiveChild&&e.isDropDownParent(this)&&(e.expanded&&this.dropdownOpen?(this.removeAttribute("active"),this.active=!1):(this.setAttribute("active",""),this.active=!0)))}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.disabled||this.dropdownOpen||this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${ze()}`);let t=document.createElement(Kn);t.id=`mdc-navmenuitem-tooltip-${ze()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((e=this.tooltipBoundaryPadding)==null?void 0:e.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${Kn}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ae)return!0;t=t.parentElement}return!1}isInsideDropdownContainer(){let t=this.parentElement;for(;t;){if(t.matches("div[data-trigger]"))return!0;t=t.parentElement}return!1}handleClickEvent(){var e;if(this.disabled||this.cannotActivate||this.softDisabled)return;let t=(e=this.sideNavigationContext)==null?void 0:e.value;if(t!=null&&t.isDropdownSubmenuType&&(t!=null&&t.expanded)&&(t!=null&&t.isDropDownParent(this))){if(this.toggleDropdown(),this.dropdownOpen){let i=this.getDropdownContainer(),n=i==null?void 0:i.querySelector(hr);n==null||n.focus()}return}this.emitNavMenuItemActiveChange(this.active)}toggleDropdown(){let t=this.getDropdownContainer();t&&(this.dropdownOpen=!this.dropdownOpen,t.style.display=this.dropdownOpen?"flex":"none",this.dropdownOpen?this.setAttribute("aria-expanded","true"):this.removeAttribute("aria-expanded"))}openDropdown(){if(this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="flex"),this.dropdownOpen=!0,this.setAttribute("aria-expanded","true")}closeDropdown(){if(!this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="none"),this.dropdownOpen=!1,this.removeAttribute("aria-expanded")}getDropdownContainer(){var t;return this.id?(t=this.parentElement)==null?void 0:t.querySelector(`div[data-trigger="${this.id}"]`):null}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Xo(this.iconName)}-filled`}renderBadge(t){return Object.values(oy).includes(this.badgeType)?S`
5455
+ `,...xt()],cy=SS;var le=class extends Or{constructor(){super();this.cannotActivate=jp.CANNOT_ACTIVATE;this.maxCounter=jp.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.dropdownOpen=!1;this.sideNavigationContext=Ie.consume({host:this,context:Es.Context});this.emitNavMenuItemActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(e)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested()),this.toggleAttribute("in-dropdown-container",this.isInsideDropdownContainer())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var i;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild")||t.has("dropdownOpen"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let e=(i=this.sideNavigationContext)==null?void 0:i.value;e&&(this.showLabel=this.isNested()||this.isInsideDropdownContainer()?!0:e.expanded,!e.expanded&&this.dropdownOpen&&this.closeDropdown(),!e.isDropdownSubmenuType&&this.dropdownOpen&&this.closeDropdown(),e.isDropdownSubmenuType&&this.hasActiveChild&&e.isDropDownParent(this)&&(e.expanded&&this.dropdownOpen?(this.removeAttribute("active"),this.active=!1):(this.setAttribute("active",""),this.active=!0)))}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.disabled||this.dropdownOpen||this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${ze()}`);let t=document.createElement(Wn);t.id=`mdc-navmenuitem-tooltip-${ze()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((e=this.tooltipBoundaryPadding)==null?void 0:e.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${Wn}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ae)return!0;t=t.parentElement}return!1}isInsideDropdownContainer(){let t=this.parentElement;for(;t;){if(t.matches("div[data-trigger]"))return!0;t=t.parentElement}return!1}handleClickEvent(){var e;if(this.disabled||this.cannotActivate||this.softDisabled)return;let t=(e=this.sideNavigationContext)==null?void 0:e.value;if(t!=null&&t.isDropdownSubmenuType&&(t!=null&&t.expanded)&&(t!=null&&t.isDropDownParent(this))){if(this.toggleDropdown(),this.dropdownOpen){let i=this.getDropdownContainer(),n=i==null?void 0:i.querySelector(hr);n==null||n.focus()}return}this.emitNavMenuItemActiveChange(this.active)}toggleDropdown(){let t=this.getDropdownContainer();t&&(this.dropdownOpen=!this.dropdownOpen,t.style.display=this.dropdownOpen?"flex":"none",this.dropdownOpen?this.setAttribute("aria-expanded","true"):this.removeAttribute("aria-expanded"))}openDropdown(){if(this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="flex"),this.dropdownOpen=!0,this.setAttribute("aria-expanded","true")}closeDropdown(){if(!this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="none"),this.dropdownOpen=!1,this.removeAttribute("aria-expanded")}getDropdownContainer(){var t;return this.id?(t=this.parentElement)==null?void 0:t.querySelector(`div[data-trigger="${this.id}"]`):null}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Xo(this.iconName)}-filled`}renderBadge(t){return Object.values(sy).includes(this.badgeType)?S`
5456
5456
  <mdc-badge
5457
5457
  part="${t?"":"badge"}"
5458
5458
  type="${tt(this.badgeType)}"
@@ -5495,7 +5495,7 @@
5495
5495
  >
5496
5496
  </mdc-icon>`:K}
5497
5497
  ${n?S` <mdc-icon name=${Yp.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:K}
5498
- `}};le.styles=[...Or.styles,...dy],h([u({type:Boolean,reflect:!0})],le.prototype,"active",2),h([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],le.prototype,"cannotActivate",2),h([u({type:String,attribute:"icon-name",reflect:!0})],le.prototype,"iconName",2),h([u({type:String,reflect:!0,attribute:"badge-type"})],le.prototype,"badgeType",2),h([u({type:Number,reflect:!0})],le.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],le.prototype,"maxCounter",2),h([u({type:String,reflect:!0,attribute:"nav-id"})],le.prototype,"navId",2),h([u({type:Boolean,reflect:!0,attribute:"show-label"})],le.prototype,"showLabel",2),h([u({type:String,attribute:"aria-label"})],le.prototype,"ariaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],le.prototype,"disableAriaCurrent",2),h([u({type:String,reflect:!0,attribute:"tooltip-text"})],le.prototype,"tooltipText",2),h([u({type:String,reflect:!0,attribute:"tooltip-placement"})],le.prototype,"tooltipPlacement",2),h([u({type:String,reflect:!0,attribute:"tooltip-type"})],le.prototype,"tooltipType",2),h([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],le.prototype,"tooltipAppearance",2),h([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],le.prototype,"tooltipBoundaryPadding",2),h([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],le.prototype,"isActiveParentTooltipText",2),h([dt()],le.prototype,"hasActiveChild",2),h([dt()],le.prototype,"dropdownOpen",2);var Jp=le;Jp.register(hr);var IS=Jp;var cy="check-bold",xr=V.constructTagName("option");var pc=V.constructTagName("optgroup"),tm="header-id";var CS=B`
5498
+ `}};le.styles=[...Or.styles,...cy],h([u({type:Boolean,reflect:!0})],le.prototype,"active",2),h([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],le.prototype,"cannotActivate",2),h([u({type:String,attribute:"icon-name",reflect:!0})],le.prototype,"iconName",2),h([u({type:String,reflect:!0,attribute:"badge-type"})],le.prototype,"badgeType",2),h([u({type:Number,reflect:!0})],le.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],le.prototype,"maxCounter",2),h([u({type:String,reflect:!0,attribute:"nav-id"})],le.prototype,"navId",2),h([u({type:Boolean,reflect:!0,attribute:"show-label"})],le.prototype,"showLabel",2),h([u({type:String,attribute:"aria-label"})],le.prototype,"ariaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],le.prototype,"disableAriaCurrent",2),h([u({type:String,reflect:!0,attribute:"tooltip-text"})],le.prototype,"tooltipText",2),h([u({type:String,reflect:!0,attribute:"tooltip-placement"})],le.prototype,"tooltipPlacement",2),h([u({type:String,reflect:!0,attribute:"tooltip-type"})],le.prototype,"tooltipType",2),h([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],le.prototype,"tooltipAppearance",2),h([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],le.prototype,"tooltipBoundaryPadding",2),h([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],le.prototype,"isActiveParentTooltipText",2),h([dt()],le.prototype,"hasActiveChild",2),h([dt()],le.prototype,"dropdownOpen",2);var Jp=le;Jp.register(hr);var IS=Jp;var hy="check-bold",xr=V.constructTagName("option");var pc=V.constructTagName("optgroup"),tm="header-id";var CS=B`
5499
5499
  :host {
5500
5500
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
5501
5501
  }
@@ -5511,7 +5511,7 @@
5511
5511
  :host([data-hidden]) {
5512
5512
  display: none;
5513
5513
  }
5514
- `,hy=[CS];var ba=class extends re(Jt(Q)){setDisabledForAllOptions(){this.options.forEach(o=>{this.disabled?o.setAttribute("disabled",""):o.removeAttribute("disabled")})}updated(o){super.updated(o),o.has("disabled")&&this.setDisabledForAllOptions()}render(){var t;let o=this.label?S`
5514
+ `,py=[CS];var ba=class extends re(Jt(Q)){setDisabledForAllOptions(){this.options.forEach(o=>{this.disabled?o.setAttribute("disabled",""):o.removeAttribute("disabled")})}updated(o){super.updated(o),o.has("disabled")&&this.setDisabledForAllOptions()}render(){var t;let o=this.label?S`
5515
5515
  <mdc-text
5516
5516
  id="${tm}"
5517
5517
  part="header-text"
@@ -5528,7 +5528,7 @@
5528
5528
  ${o}
5529
5529
  <slot role="${et.PRESENTATION}"></slot>
5530
5530
  </div>
5531
- `}};ba.styles=[...Q.styles,...hy],h([u({type:String,reflect:!0})],ba.prototype,"label",2),h([qt({selector:xr})],ba.prototype,"options",2);var em=ba;em.register(pc);var _S=em;var wS=[$r,B`
5531
+ `}};ba.styles=[...Q.styles,...py],h([u({type:String,reflect:!0})],ba.prototype,"label",2),h([qt({selector:xr})],ba.prototype,"options",2);var em=ba;em.register(pc);var _S=em;var wS=[$r,B`
5532
5532
  :host {
5533
5533
  --mdc-listitem-column-gap: 0.75rem;
5534
5534
  --mdc-option-icon-width: 1rem;
@@ -5557,7 +5557,7 @@
5557
5557
  :host([data-hidden]) {
5558
5558
  display: none;
5559
5559
  }
5560
- `],py=wS;var Ts=class extends me(Gi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=Fn.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return S` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",cy):K;return S`
5560
+ `],my=wS;var Ts=class extends me(Gi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=$n.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return S` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",hy):K;return S`
5561
5561
  <div part="leading">
5562
5562
  <slot name="leading-controls">
5563
5563
  ${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):K}
@@ -5568,11 +5568,11 @@
5568
5568
  </div>
5569
5569
  </div>
5570
5570
  <div part="trailing">${t}</div>
5571
- `}};Ts.styles=[...Gi.styles,...py],h([u({type:Boolean,reflect:!0})],Ts.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],Ts.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Ts.prototype,"ariaLabel",2);var rm=Ts;rm.register(xr);var kS=rm;var im={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},my=V.constructTagName("password");var NS=[B`
5571
+ `}};Ts.styles=[...Gi.styles,...my],h([u({type:Boolean,reflect:!0})],Ts.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],Ts.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Ts.prototype,"ariaLabel",2);var rm=Ts;rm.register(xr);var kS=rm;var im={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},uy=V.constructTagName("password");var NS=[B`
5572
5572
  input::-ms-reveal {
5573
5573
  display: none;
5574
5574
  }
5575
- `],uy=NS;var xs=class extends qr{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let e=t||this.value;return e?S`
5575
+ `],fy=NS;var xs=class extends qr{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let e=t||this.value;return e?S`
5576
5576
  <mdc-button
5577
5577
  part="trailing-button"
5578
5578
  class="own-focus-ring ${e?"":"hidden"}"
@@ -5583,7 +5583,7 @@
5583
5583
  aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
5584
5584
  prefix-icon=${this.showPassword?im.HIDE_BOLD:im.SHOW_BOLD}
5585
5585
  ></mdc-button>
5586
- `:K}renderInputElement(t,e){let i=this.showPassword?Ao.TEXT:Ao.PASSWORD;return super.renderInputElement(i,e)}};xs.styles=[...qr.styles,...uy],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],xs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],xs.prototype,"hideButtonAriaLabel",2),h([dt()],xs.prototype,"showPassword",2);var om=xs;om.register(my);var LS=om;var mc=V.constructTagName("progressbar"),uc={DEFAULT:"default",INLINE:"inline"},fy={VARIANT:uc.DEFAULT,VALIDATION:oe.DEFAULT};var MS=[Tt,B`
5586
+ `:K}renderInputElement(t,e){let i=this.showPassword?Ao.TEXT:Ao.PASSWORD;return super.renderInputElement(i,e)}};xs.styles=[...qr.styles,...fy],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],xs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],xs.prototype,"hideButtonAriaLabel",2),h([dt()],xs.prototype,"showPassword",2);var om=xs;om.register(uy);var LS=om;var mc=V.constructTagName("progressbar"),uc={DEFAULT:"default",INLINE:"inline"},vy={VARIANT:uc.DEFAULT,VALIDATION:oe.DEFAULT};var MS=[Tt,B`
5587
5587
  :host {
5588
5588
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
5589
5589
  --mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
@@ -5656,7 +5656,7 @@
5656
5656
  border: var(--mdc-progressbar-border);
5657
5657
  }
5658
5658
  }
5659
- `],vy=MS;var As=class extends re(dr){constructor(){super(...arguments);this.variant=fy.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var n;let t=this.getValidationVariant(),e=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return S`
5659
+ `],gy=MS;var As=class extends re(dr){constructor(){super(...arguments);this.variant=vy.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var n;let t=this.getValidationVariant(),e=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return S`
5660
5660
  <div
5661
5661
  part="progress-container ${e?"gap":""}"
5662
5662
  role="${et.PROGRESSBAR}"
@@ -5676,7 +5676,7 @@
5676
5676
  </div>
5677
5677
  ${this.renderProgressbar()} ${this.renderHelperText()}
5678
5678
  `}
5679
- `}};As.styles=[...dr.styles,...vy],h([u({type:String,reflect:!0})],As.prototype,"variant",2),h([u({type:String,reflect:!0})],As.prototype,"value",2),h([u({type:Boolean,attribute:"error"})],As.prototype,"error",2);var Xn=As;Xn.register(mc);var OS=Xn;var gy=V.constructTagName("progressspinner"),ye={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},sm={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var am=a=>{if(a===0)return 0;let o=a/100*ye.CIRCUMFERENCE-ye.GAP_SIZE;return Math.max(o,.1*a)},by=a=>{let o=ye.CIRCUMFERENCE-am(a)-2*ye.GAP_SIZE;return a===0?ye.CIRCUMFERENCE:o<0?0:o},yy=a=>a===0?0:ye.GAP_SIZE*.5,Ey=(a,o)=>{let t=o+ye.GAP_SIZE*1.5;return a===0?0:t};var RS=B`
5679
+ `}};As.styles=[...dr.styles,...gy],h([u({type:String,reflect:!0})],As.prototype,"variant",2),h([u({type:String,reflect:!0})],As.prototype,"value",2),h([u({type:Boolean,attribute:"error"})],As.prototype,"error",2);var Zn=As;Zn.register(mc);var OS=Zn;var by=V.constructTagName("progressspinner"),ye={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},sm={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var am=a=>{if(a===0)return 0;let o=a/100*ye.CIRCUMFERENCE-ye.GAP_SIZE;return Math.max(o,.1*a)},yy=a=>{let o=ye.CIRCUMFERENCE-am(a)-2*ye.GAP_SIZE;return a===0?ye.CIRCUMFERENCE:o<0?0:o},Ey=a=>a===0?0:ye.GAP_SIZE*.5,Ty=(a,o)=>{let t=o+ye.GAP_SIZE*1.5;return a===0?0:t};var RS=B`
5680
5680
  :host {
5681
5681
  --mdc-spinner-size: 3rem;
5682
5682
  --mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
@@ -5723,7 +5723,7 @@
5723
5723
  color: var(--mdc-progress-error-color);
5724
5724
  margin: calc(1 / 6 * var(--mdc-spinner-size));
5725
5725
  }
5726
- `,Ty=[RS];var fc=class extends Xn{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var n;let o=am(this.clampedValue),t=by(this.clampedValue),e=yy(this.clampedValue),i=Ey(this.clampedValue,o);return S`
5726
+ `,xy=[RS];var fc=class extends Zn{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var n;let o=am(this.clampedValue),t=yy(this.clampedValue),e=Ey(this.clampedValue),i=Ty(this.clampedValue,o);return S`
5727
5727
  <div
5728
5728
  part="spinner-container ${this.variant}"
5729
5729
  role="${et.PROGRESSBAR}"
@@ -5769,7 +5769,7 @@
5769
5769
  size="${ye.SUCCESS_ICON_SIZE}"
5770
5770
  length-unit="${ye.ICON_LENGTH_UNIT}"
5771
5771
  ></mdc-icon>
5772
- `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():S` ${this.renderProgressSpinner()}`}};fc.styles=[...Q.styles,...Ty];var nm=fc;nm.register(gy);var DS=nm;var PS=[Tt,B`
5772
+ `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():S` ${this.renderProgressSpinner()}`}};fc.styles=[...Q.styles,...xy];var nm=fc;nm.register(by);var DS=nm;var PS=[Tt,B`
5773
5773
  :host {
5774
5774
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
5775
5775
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -5829,7 +5829,7 @@
5829
5829
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
5830
5830
  }
5831
5831
  }
5832
- `,...xt(!0,"parent-to-child")],xy=PS;var Zn=class extends Ot(Nt(Ve(me(Zt)))){constructor(){super();this.checked=!1;this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.role=et.RADIO,this.shouldRenderLabel=!1,this.helpTextType=void 0,this.toggletipPlacement=void 0,this.toggletipStrategy=void 0,this.updateAriaLabel()}firstUpdated(t){this.updateTabIndex(),this.autoFocusOnMount&&(this.elementToAutoFocus=this),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){let t=this.getRootNode();return Array.from(t.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(e=>{e.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(e=>{this.onerror&&this.onerror(e)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&this.setValidity(),this.updateTabIndex()}setGroupValidity(t,e){this.updateComplete.then(()=>{t.forEach(i=>i.setComponentValidity(e))}).catch(i=>{var n;return(n=this.onerror)==null?void 0:n.call(this,i)})}setActualFormValue(){let t=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(t,!0),this.internals.setFormValue(this.value||"on");else{let e=t.some(c=>c.required),i=t.some(c=>c.checked),n=e&&!i;this.setGroupValidity(t,!n),this.internals.setFormValue(null)}}handleChange(t=!1){if(this.checked||this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(i=>{i.checked=!1}),this.checked=!0,t&&super.click(),this.emitCheckedChangeEvent()}click(){this.handleChange(!0)}updateRadio(t,e){let i=t[e];i.focus(),i.handleChange()}handleClick(){this.handleChange()}emitCheckedChangeEvent(){this.checked&&(this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){var f;if(this.disabled)return;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===G.SPACE&&t.preventDefault();let n=this.getAllRadiosWithinSameGroup().filter(g=>!g.disabled),c=n.indexOf(this);if(this.getKeyboardNavMode()===te.SPATIAL){e===G.ENTER&&(this.updateRadio(n,c),this.keyDownEventHandled()),this.updateTabIndex();return}if(e===G.DOWN||e===G.RIGHT){let g=(c+1)%n.length;this.updateRadio(n,g)}else if(e===G.UP||e===G.LEFT){let g=(c-1+n.length)%n.length;this.updateRadio(n,g)}else e===G.SPACE&&this.updateRadio(n,c);this.updateTabIndex(),e===G.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getKeyboardNavMode()===te.SPATIAL,e=this.getAllRadiosWithinSameGroup(),i=e.find(c=>c.checked),n=e.find(c=>!c.disabled);e.forEach(c=>{c.tabIndex=-1,(t||c===i||!i&&c===n)&&(c.tabIndex=0)})}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=this.checked.toString(),this.setActualFormValue()),t.has("label")&&this.updateAriaLabel()}updateAriaLabel(){!this.ariaLabel&&this.ariaLabel!==this.label&&(this.ariaLabel=this.label||"")}setValidity(){this.required&&!this.checked&&this.validationMessage&&this.internals.setValidity({valueMissing:!0,customError:!0},this.validationMessage,this),this.internals.setValidity({})}handleIndicatorSlotChange(t){let i=t.target.assignedNodes({flatten:!0}).filter(n=>n.nodeType===Node.ELEMENT_NODE);this.classList.toggle("mdc-focus-ring",i.length>0)}render(){return S`
5832
+ `,...xt(!0,"parent-to-child")],Ay=PS;var Qn=class extends Ot(Nt(Ve(me(Zt)))){constructor(){super();this.checked=!1;this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.role=et.RADIO,this.shouldRenderLabel=!1,this.helpTextType=void 0,this.toggletipPlacement=void 0,this.toggletipStrategy=void 0,this.updateAriaLabel()}firstUpdated(t){this.updateTabIndex(),this.autoFocusOnMount&&(this.elementToAutoFocus=this),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){let t=this.getRootNode();return Array.from(t.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(e=>{e.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(e=>{this.onerror&&this.onerror(e)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&this.setValidity(),this.updateTabIndex()}setGroupValidity(t,e){this.updateComplete.then(()=>{t.forEach(i=>i.setComponentValidity(e))}).catch(i=>{var n;return(n=this.onerror)==null?void 0:n.call(this,i)})}setActualFormValue(){let t=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(t,!0),this.internals.setFormValue(this.value||"on");else{let e=t.some(c=>c.required),i=t.some(c=>c.checked),n=e&&!i;this.setGroupValidity(t,!n),this.internals.setFormValue(null)}}handleChange(t=!1){if(this.checked||this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(i=>{i.checked=!1}),this.checked=!0,t&&super.click(),this.emitCheckedChangeEvent()}click(){this.handleChange(!0)}updateRadio(t,e){let i=t[e];i.focus(),i.handleChange()}handleClick(){this.handleChange()}emitCheckedChangeEvent(){this.checked&&(this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){var f;if(this.disabled)return;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===G.SPACE&&t.preventDefault();let n=this.getAllRadiosWithinSameGroup().filter(g=>!g.disabled),c=n.indexOf(this);if(this.getKeyboardNavMode()===te.SPATIAL){e===G.ENTER&&(this.updateRadio(n,c),this.keyDownEventHandled()),this.updateTabIndex();return}if(e===G.DOWN||e===G.RIGHT){let g=(c+1)%n.length;this.updateRadio(n,g)}else if(e===G.UP||e===G.LEFT){let g=(c-1+n.length)%n.length;this.updateRadio(n,g)}else e===G.SPACE&&this.updateRadio(n,c);this.updateTabIndex(),e===G.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getKeyboardNavMode()===te.SPATIAL,e=this.getAllRadiosWithinSameGroup(),i=e.find(c=>c.checked),n=e.find(c=>!c.disabled);e.forEach(c=>{c.tabIndex=-1,(t||c===i||!i&&c===n)&&(c.tabIndex=0)})}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=this.checked.toString(),this.setActualFormValue()),t.has("label")&&this.updateAriaLabel()}updateAriaLabel(){!this.ariaLabel&&this.ariaLabel!==this.label&&(this.ariaLabel=this.label||"")}setValidity(){this.required&&!this.checked&&this.validationMessage&&this.internals.setValidity({valueMissing:!0,customError:!0},this.validationMessage,this),this.internals.setValidity({})}handleIndicatorSlotChange(t){let i=t.target.assignedNodes({flatten:!0}).filter(n=>n.nodeType===Node.ELEMENT_NODE);this.classList.toggle("mdc-focus-ring",i.length>0)}render(){return S`
5833
5833
  <slot name="indicator" @slotchange=${this.handleIndicatorSlotChange}>
5834
5834
  <mdc-staticradio
5835
5835
  part="radio-indicator"
@@ -5845,7 +5845,7 @@
5845
5845
  <div part="label-text">
5846
5846
  <slot name="label">${this.renderLabelElement()}</slot>
5847
5847
  </div>
5848
- `}};Zn.styles=[...Zt.styles,...xy],h([u({type:Boolean,reflect:!0})],Zn.prototype,"checked",2);var lm=Zn;var vc=V.constructTagName("radio");lm.register(vc);var FS=lm;var $S=new RegExp(`^(${vc}|${Ad})$`,"i"),Qn=class extends tc{constructor(){super();this.name="";this.isRadio=!0}connectedCallback(){super.connectedCallback(),this.toggletipPlacement=void 0,this.toggletipStrategy=void 0}firstUpdated(){var t;Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]).flatMap(e=>e.assignedElements({flatten:!0})).filter(e=>$S.test(e.tagName)).forEach(e=>{e.hasAttribute("name")||e.setAttribute("name",this.name),e.toggleAttribute("required",this.required)})}};Qn.styles=[...tc.styles],h([u({type:String,reflect:!0})],Qn.prototype,"name",2);var dm=Qn;var Ay=V.constructTagName("radiogroup");dm.register(Ay);var VS=dm;var zS=B`
5848
+ `}};Qn.styles=[...Zt.styles,...Ay],h([u({type:Boolean,reflect:!0})],Qn.prototype,"checked",2);var lm=Qn;var vc=V.constructTagName("radio");lm.register(vc);var FS=lm;var $S=new RegExp(`^(${vc}|${Ad})$`,"i"),Jn=class extends tc{constructor(){super();this.name="";this.isRadio=!0}connectedCallback(){super.connectedCallback(),this.toggletipPlacement=void 0,this.toggletipStrategy=void 0}firstUpdated(){var t;Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]).flatMap(e=>e.assignedElements({flatten:!0})).filter(e=>$S.test(e.tagName)).forEach(e=>{e.hasAttribute("name")||e.setAttribute("name",this.name),e.toggleAttribute("required",this.required)})}};Jn.styles=[...tc.styles],h([u({type:String,reflect:!0})],Jn.prototype,"name",2);var dm=Jn;var Sy=V.constructTagName("radiogroup");dm.register(Sy);var VS=dm;var zS=B`
5849
5849
  :host::part(input-text) {
5850
5850
  white-space: nowrap;
5851
5851
  flex: 0 0 auto;
@@ -5885,7 +5885,7 @@
5885
5885
  slot[name='filters']::slotted(:first-child) {
5886
5886
  margin-left: 0.25rem;
5887
5887
  }
5888
- `,Sy=[zS];var Iy=V.constructTagName("searchfield"),gc={TYPE:Ao.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var BS=[zd,ha,Yl],Cy=BS.join(", ");var Ss=class extends fi(Ot(qr)){constructor(){super(...arguments);this.isInputFocused=!1;this.hasChips=!1;this.focusedChipIndex=-1;this.navigatingToInput=!1;this.chipsWithListeners=new WeakMap;this.handleChipKeyDown=t=>{let e=this.getActionForKeyEvent(t);if(t.key==="Backspace"||t.key==="Delete"){t.preventDefault(),this.removeChipAtIndex(this.focusedChipIndex);return}if(e===G.LEFT){t.preventDefault(),this.focusedChipIndex>0&&this.focusChipAtIndex(this.focusedChipIndex-1);return}if(e===G.RIGHT){t.preventDefault(),this.chips&&this.focusedChipIndex<this.chips.length-1?this.focusChipAtIndex(this.focusedChipIndex+1):this.focusInputField();return}if(e===G.ESCAPE){t.preventDefault(),this.clearInputText(),this.keyDownEventHandled();return}if(e===G.HOME){t.preventDefault(),this.focusChipAtIndex(0);return}if(e===G.END){t.preventDefault(),this.focusInputField();let i=this.inputElement,n=i.value.length;i.setSelectionRange(n,n),this.scrollContainerToEnd();return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.focusInputField()};this.handleChipFocus=t=>{var c,f;let e=t.currentTarget,i=this.getChipForFocusTarget(e),n=i&&(f=(c=this.chips)==null?void 0:c.indexOf(i))!=null?f:-1;n>=0&&(this.focusedChipIndex=n,this.isInputFocused=!0)};this.handleFilterContainerClick=()=>{this.inputElement.focus()}}handleKeyDown(t){var c;super.handleKeyDown(t);let e=this.getActionForKeyEvent(t);if(e===G.ESCAPE){this.clearInputText(),this.keyDownEventHandled();return}if(!this.hasChips||!((c=this.chips)!=null&&c.length))return;let i=this.inputElement,n=i.selectionStart===0&&i.selectionEnd===0;if(e===G.BACKSPACE&&n){t.preventDefault(),this.removeChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}if(e===G.LEFT&&n){t.preventDefault(),this.focusChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}e===G.HOME&&(t.preventDefault(),this.focusChipAtIndex(0),this.keyDownEventHandled())}focus(t){var e;(e=this.inputElement)==null||e.focus(t)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.chips)==null||t.forEach(e=>this.removeChipListeners(e))}connectedCallback(){super.connectedCallback(),this.leadingIcon=gc.ICON,this.trailingButton=gc.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderChips(){var t;this.hasChips=!!((t=this.chips)!=null&&t.length),this.chips&&this.chips.forEach(e=>{if(!e.matches(Cy)){this.removeChip(e);return}if(e.setAttribute("tabindex","-1"),!this.chipsWithListeners.has(e)){let i=this.getFocusTargetForChip(e);i.addEventListener("keydown",this.handleChipKeyDown),i.addEventListener("focus",this.handleChipFocus),this.chipsWithListeners.set(e,i)}}),this.focusedChipIndex=-1}firstUpdated(t){this.inputElement.onfocus=()=>{if(this.isInputFocused=!0,this.focusedChipIndex=-1,this.resetChipTabIndices(),!this.navigatingToInput&&this.hasChips){let e=this.scrollContainer;e&&(e.scrollLeft=0)}this.navigatingToInput=!1},this.inputElement.onblur=()=>{requestAnimationFrame(()=>{this.focusedChipIndex<0&&(this.isInputFocused=!1)})},super.firstUpdated(t)}removeChip(t){this.dispatchEvent(new CustomEvent("chipRemove",{detail:{chip:t},bubbles:!0,composed:!0})),this.controlType!=="controlled"&&t.remove()}clearInputText(){var e;super.clearInputText(),[...(e=this.chips)!=null?e:[]].forEach(i=>{this.removeChip(i)})}removeChipListeners(t){let e=this.chipsWithListeners.get(t);e&&(e.removeEventListener("keydown",this.handleChipKeyDown),e.removeEventListener("focus",this.handleChipFocus),this.chipsWithListeners.delete(t))}focusChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;this.focusedChipIndex=t,this.resetChipTabIndices();let e=this.chips[t],i=this.getFocusTargetForChip(e);i.setAttribute("tabindex","0"),i.focus({preventScroll:!0}),this.scrollChipIntoView(e),this.isInputFocused=!1}focusInputField(){this.focusedChipIndex=-1,this.resetChipTabIndices(),this.navigatingToInput=!0,this.inputElement.focus({preventScroll:!0})}removeChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;let e=this.chips[t];this.removeChipListeners(e),this.removeChip(e),requestAnimationFrame(()=>{if(this.chips&&this.chips.length>0){let i=Math.min(t,this.chips.length-1);this.focusChipAtIndex(i)}else this.focusInputField()})}resetChipTabIndices(){var t;(t=this.chips)==null||t.forEach(e=>{this.getFocusTargetForChip(e).setAttribute("tabindex","-1")})}getFocusTargetForChip(t){var e;if(t.matches(ha)){let i=(e=t.shadowRoot)==null?void 0:e.querySelector('[part="close-icon"]');if(i)return i}return t}getChipForFocusTarget(t){var i,n,c;if((i=this.chips)!=null&&i.includes(t))return t;let e=(n=t.getRootNode())==null?void 0:n.host;return e&&((c=this.chips)!=null&&c.includes(e))?e:null}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="searchfield-container"]'))!=null?e:null}scrollChipIntoView(t){let e=this.scrollContainer;if(!e)return;if(this.chips&&this.chips.indexOf(t)===0){e.scrollLeft=0;return}let i=e.getBoundingClientRect(),n=t.getBoundingClientRect();n.left<i.left?e.scrollLeft-=i.left-n.left:n.right>i.right&&(e.scrollLeft+=n.right-i.right)}scrollContainerToEnd(){let t=this.scrollContainer,e=this.inputElement;if(!t||!e)return;let n=e.offsetLeft+e.offsetWidth-t.clientWidth;t.scrollLeft=Math.max(0,n)}render(){return S`
5888
+ `,Iy=[zS];var Cy=V.constructTagName("searchfield"),gc={TYPE:Ao.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var BS=[zd,ha,Yl],_y=BS.join(", ");var Ss=class extends fi(Ot(qr)){constructor(){super(...arguments);this.isInputFocused=!1;this.hasChips=!1;this.focusedChipIndex=-1;this.navigatingToInput=!1;this.chipsWithListeners=new WeakMap;this.handleChipKeyDown=t=>{let e=this.getActionForKeyEvent(t);if(t.key==="Backspace"||t.key==="Delete"){t.preventDefault(),this.removeChipAtIndex(this.focusedChipIndex);return}if(e===G.LEFT){t.preventDefault(),this.focusedChipIndex>0&&this.focusChipAtIndex(this.focusedChipIndex-1);return}if(e===G.RIGHT){t.preventDefault(),this.chips&&this.focusedChipIndex<this.chips.length-1?this.focusChipAtIndex(this.focusedChipIndex+1):this.focusInputField();return}if(e===G.ESCAPE){t.preventDefault(),this.clearInputText(),this.keyDownEventHandled();return}if(e===G.HOME){t.preventDefault(),this.focusChipAtIndex(0);return}if(e===G.END){t.preventDefault(),this.focusInputField();let i=this.inputElement,n=i.value.length;i.setSelectionRange(n,n),this.scrollContainerToEnd();return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.focusInputField()};this.handleChipFocus=t=>{var c,f;let e=t.currentTarget,i=this.getChipForFocusTarget(e),n=i&&(f=(c=this.chips)==null?void 0:c.indexOf(i))!=null?f:-1;n>=0&&(this.focusedChipIndex=n,this.isInputFocused=!0)};this.handleFilterContainerClick=()=>{this.inputElement.focus()}}handleKeyDown(t){var c;super.handleKeyDown(t);let e=this.getActionForKeyEvent(t);if(e===G.ESCAPE){this.clearInputText(),this.keyDownEventHandled();return}if(!this.hasChips||!((c=this.chips)!=null&&c.length))return;let i=this.inputElement,n=i.selectionStart===0&&i.selectionEnd===0;if(e===G.BACKSPACE&&n){t.preventDefault(),this.removeChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}if(e===G.LEFT&&n){t.preventDefault(),this.focusChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}e===G.HOME&&(t.preventDefault(),this.focusChipAtIndex(0),this.keyDownEventHandled())}focus(t){var e;(e=this.inputElement)==null||e.focus(t)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.chips)==null||t.forEach(e=>this.removeChipListeners(e))}connectedCallback(){super.connectedCallback(),this.leadingIcon=gc.ICON,this.trailingButton=gc.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderChips(){var t;this.hasChips=!!((t=this.chips)!=null&&t.length),this.chips&&this.chips.forEach(e=>{if(!e.matches(_y)){this.removeChip(e);return}if(e.setAttribute("tabindex","-1"),!this.chipsWithListeners.has(e)){let i=this.getFocusTargetForChip(e);i.addEventListener("keydown",this.handleChipKeyDown),i.addEventListener("focus",this.handleChipFocus),this.chipsWithListeners.set(e,i)}}),this.focusedChipIndex=-1}firstUpdated(t){this.inputElement.onfocus=()=>{if(this.isInputFocused=!0,this.focusedChipIndex=-1,this.resetChipTabIndices(),!this.navigatingToInput&&this.hasChips){let e=this.scrollContainer;e&&(e.scrollLeft=0)}this.navigatingToInput=!1},this.inputElement.onblur=()=>{requestAnimationFrame(()=>{this.focusedChipIndex<0&&(this.isInputFocused=!1)})},super.firstUpdated(t)}removeChip(t){this.dispatchEvent(new CustomEvent("chipRemove",{detail:{chip:t},bubbles:!0,composed:!0})),this.controlType!=="controlled"&&t.remove()}clearInputText(){var e;super.clearInputText(),[...(e=this.chips)!=null?e:[]].forEach(i=>{this.removeChip(i)})}removeChipListeners(t){let e=this.chipsWithListeners.get(t);e&&(e.removeEventListener("keydown",this.handleChipKeyDown),e.removeEventListener("focus",this.handleChipFocus),this.chipsWithListeners.delete(t))}focusChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;this.focusedChipIndex=t,this.resetChipTabIndices();let e=this.chips[t],i=this.getFocusTargetForChip(e);i.setAttribute("tabindex","0"),i.focus({preventScroll:!0}),this.scrollChipIntoView(e),this.isInputFocused=!1}focusInputField(){this.focusedChipIndex=-1,this.resetChipTabIndices(),this.navigatingToInput=!0,this.inputElement.focus({preventScroll:!0})}removeChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;let e=this.chips[t];this.removeChipListeners(e),this.removeChip(e),requestAnimationFrame(()=>{if(this.chips&&this.chips.length>0){let i=Math.min(t,this.chips.length-1);this.focusChipAtIndex(i)}else this.focusInputField()})}resetChipTabIndices(){var t;(t=this.chips)==null||t.forEach(e=>{this.getFocusTargetForChip(e).setAttribute("tabindex","-1")})}getFocusTargetForChip(t){var e;if(t.matches(ha)){let i=(e=t.shadowRoot)==null?void 0:e.querySelector('[part="close-icon"]');if(i)return i}return t}getChipForFocusTarget(t){var i,n,c;if((i=this.chips)!=null&&i.includes(t))return t;let e=(n=t.getRootNode())==null?void 0:n.host;return e&&((c=this.chips)!=null&&c.includes(e))?e:null}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="searchfield-container"]'))!=null?e:null}scrollChipIntoView(t){let e=this.scrollContainer;if(!e)return;if(this.chips&&this.chips.indexOf(t)===0){e.scrollLeft=0;return}let i=e.getBoundingClientRect(),n=t.getBoundingClientRect();n.left<i.left?e.scrollLeft-=i.left-n.left:n.right>i.right&&(e.scrollLeft+=n.right-i.right)}scrollContainerToEnd(){let t=this.scrollContainer,e=this.inputElement;if(!t||!e)return;let n=e.offsetLeft+e.offsetWidth-t.clientWidth;t.scrollLeft=Math.max(0,n)}render(){return S`
5889
5889
  ${this.renderLabelElement()}
5890
5890
  <div
5891
5891
  class="${jr({"mdc-focus-ring":this.isInputFocused})}"
@@ -5898,7 +5898,7 @@
5898
5898
  </div>
5899
5899
  ${this.renderTrailingButton(this.hasChips)}
5900
5900
  </div>
5901
- `}};Ss.styles=[...qr.styles,...Sy],h([qt({slot:"filters"})],Ss.prototype,"chips",2),h([dt()],Ss.prototype,"isInputFocused",2),h([dt()],Ss.prototype,"hasChips",2);var ya=Ss;ya.register(Iy);var HS=ya;var US=B`
5901
+ `}};Ss.styles=[...qr.styles,...Iy],h([qt({slot:"filters"})],Ss.prototype,"chips",2),h([dt()],Ss.prototype,"isInputFocused",2),h([dt()],Ss.prototype,"hasChips",2);var ya=Ss;ya.register(Cy);var HS=ya;var US=B`
5902
5902
  :host::part(filters-container) {
5903
5903
  display: flex;
5904
5904
  flex-wrap: nowrap;
@@ -5934,7 +5934,7 @@
5934
5934
  min-width: auto;
5935
5935
  padding: 0.75rem 0.5rem;
5936
5936
  }
5937
- `,_y=[US];var wy=V.constructTagName("searchpopover"),cm={TYPE:Ao.TEXT,DISPLAY_POPOVER:!1},hm="searchpopover-container-triggerid",bc="searchpopover-popoverid";var No=class extends ya{constructor(){super(...arguments);this.displayPopover=cm.DISPLAY_POPOVER;this.placement=Mt.BOTTOM_START;this.popoverZIndex=void 0}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="filters-container"]'))!=null?e:null}handlePopoverHidden(){var t;(this===document.activeElement||this.contains(document.activeElement))&&((t=this.inputElement)==null||t.focus())}renderInputElement(){var e,i;let t=this.hasChips?"":this.placeholder;return S`<input
5937
+ `,wy=[US];var ky=V.constructTagName("searchpopover"),cm={TYPE:Ao.TEXT,DISPLAY_POPOVER:!1},hm="searchpopover-container-triggerid",bc="searchpopover-popoverid";var No=class extends ya{constructor(){super(...arguments);this.displayPopover=cm.DISPLAY_POPOVER;this.placement=Mt.BOTTOM_START;this.popoverZIndex=void 0}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="filters-container"]'))!=null?e:null}handlePopoverHidden(){var t;(this===document.activeElement||this.contains(document.activeElement))&&((t=this.inputElement)==null||t.focus())}renderInputElement(){var e,i;let t=this.hasChips?"":this.placeholder;return S`<input
5938
5938
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
5939
5939
  part="input-text"
5940
5940
  id="${this.inputId}"
@@ -5995,7 +5995,7 @@
5995
5995
  >
5996
5996
  <slot></slot>
5997
5997
  </mdc-popover>
5998
- `}};No.styles=[...ya.styles,..._y],h([u({type:Boolean,reflect:!0,attribute:"display-popover"})],No.prototype,"displayPopover",2),h([u({type:String,reflect:!0})],No.prototype,"placement",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],No.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,attribute:"popover-aria-label"})],No.prototype,"popoverAriaLabel",2);var pm=No;pm.register(wy);var GS=pm;var ky=V.constructTagName("select"),mm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},yc="select-base-triggerid",Ny="select-listbox",Ly={DISABLE_FLIP:!1};var KS=B`
5998
+ `}};No.styles=[...ya.styles,...wy],h([u({type:Boolean,reflect:!0,attribute:"display-popover"})],No.prototype,"displayPopover",2),h([u({type:String,reflect:!0})],No.prototype,"placement",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],No.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,attribute:"popover-aria-label"})],No.prototype,"popoverAriaLabel",2);var pm=No;pm.register(ky);var GS=pm;var Ny=V.constructTagName("select"),mm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},yc="select-base-triggerid",Ly="select-listbox",My={DISABLE_FLIP:!1};var KS=B`
5999
5999
  :host {
6000
6000
  --mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
6001
6001
  --mdc-select-text-color: var(--mds-color-theme-text-secondary-normal);
@@ -6105,7 +6105,7 @@
6105
6105
  :host([soft-disabled])::part(base-text) {
6106
6106
  --mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
6107
6107
  }
6108
- `,My=[KS,...xt(!0)];var pr=class extends So(Nt(ui(Ve(me(re(Zt)))))){constructor(){super();this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=Ly.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,n)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&n.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||n.length===0)return;let c=i+1;if(c>=n.length&&(c=i-1),c===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(c),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?n[c]:n[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${xr}:not([disabled])`);this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,e,i){var n;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((n=this.selectedOption)==null?void 0:n.value)&&this.navItems.length){let c=this.getFirstSelectedOption(),f=this.getFirstOption(),g=this.navItems.find(R=>R.value===i),A=null;if(g)A=g;else if(this.placeholder)A=null;else if(f)A=f;else if(c)A=c;else return;this.updateComplete.then(()=>{this.setSelectedOption(A)}).catch(R=>{this.onerror&&this.onerror(R)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,i=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{i&&i!==this.selectedOption?this.setSelectedOption(i):this.setSelectedOption(e);break}case"unselected":{i?this.setSelectedOption(i):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(e);break}case"disabled":{this.itemsStore.delete(e);break}default:break}}async firstUpdated(t){await this.updateComplete;let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let i=this.getFirstOption();this.setSelectedOption(i),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let e=t.target;e&&e.tagName===xr.toUpperCase()&&!e.hasAttribute("disabled")&&!e.hasAttribute("soft-disabled")&&(this.setSelectedOption(e),e.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var e,i,n;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(i=(e=this.selectedOption)==null?void 0:e.value)!=null?i:"",this.internals.setFormValue(this.value),(n=this.inputElement)==null||n.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(e=>{e!==t&&e.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,e;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()}formResetCallback(){var e;let t=this.initialSelectedOption||null;((e=this.selectedOption)==null?void 0:e.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var i;let e=this.navItems.find(n=>n.value===t||n.label===t);((i=this.selectedOption)==null?void 0:i.value)!==(e==null?void 0:e.value)&&(this.setSelectedOption(e||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=$d(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var e;return(e=this.debounceSearch)==null||e.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,e){return t.filter(i=>{var n;return(n=i.getAttribute("label"))==null?void 0:n.toLowerCase().startsWith(e.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let e=this.navItems.findIndex(f=>f.tabIndex===0)+1,i=[...this.navItems.slice(e),...this.navItems.slice(0,e)],n=this.filterOptionsBySearchKey(i,t),c=null;if(n.length)[c]=n;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],g=this.filterOptionsBySearchKey(i,t[0]),A=g.filter(R=>R===f);c=A.length?A[0]:g[0]}this.navItems.indexOf(c)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(c))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===te.DEFAULT)switch(e){case G.DOWN:case G.UP:case G.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case G.SPACE:t.preventDefault(),t.stopPropagation();break;case G.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case G.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else e===G.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}handleKeyupCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===te.DEFAULT&&e===G.SPACE&&(this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let e=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(e)}handleKeydownPopover(t){this.getKeyboardNavMode()===te.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,n,c,f;return S`
6108
+ `,Oy=[KS,...xt(!0)];var pr=class extends So(Nt(ui(Ve(me(re(Zt)))))){constructor(){super();this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=My.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,n)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&n.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||n.length===0)return;let c=i+1;if(c>=n.length&&(c=i-1),c===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(c),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?n[c]:n[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${xr}:not([disabled])`);this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,e,i){var n;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((n=this.selectedOption)==null?void 0:n.value)&&this.navItems.length){let c=this.getFirstSelectedOption(),f=this.getFirstOption(),g=this.navItems.find(R=>R.value===i),A=null;if(g)A=g;else if(this.placeholder)A=null;else if(f)A=f;else if(c)A=c;else return;this.updateComplete.then(()=>{this.setSelectedOption(A)}).catch(R=>{this.onerror&&this.onerror(R)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,i=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{i&&i!==this.selectedOption?this.setSelectedOption(i):this.setSelectedOption(e);break}case"unselected":{i?this.setSelectedOption(i):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(e);break}case"disabled":{this.itemsStore.delete(e);break}default:break}}async firstUpdated(t){await this.updateComplete;let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let i=this.getFirstOption();this.setSelectedOption(i),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let e=t.target;e&&e.tagName===xr.toUpperCase()&&!e.hasAttribute("disabled")&&!e.hasAttribute("soft-disabled")&&(this.setSelectedOption(e),e.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var e,i,n;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(i=(e=this.selectedOption)==null?void 0:e.value)!=null?i:"",this.internals.setFormValue(this.value),(n=this.inputElement)==null||n.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(e=>{e!==t&&e.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,e;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()}formResetCallback(){var e;let t=this.initialSelectedOption||null;((e=this.selectedOption)==null?void 0:e.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var i;let e=this.navItems.find(n=>n.value===t||n.label===t);((i=this.selectedOption)==null?void 0:i.value)!==(e==null?void 0:e.value)&&(this.setSelectedOption(e||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=$d(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var e;return(e=this.debounceSearch)==null||e.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,e){return t.filter(i=>{var n;return(n=i.getAttribute("label"))==null?void 0:n.toLowerCase().startsWith(e.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let e=this.navItems.findIndex(f=>f.tabIndex===0)+1,i=[...this.navItems.slice(e),...this.navItems.slice(0,e)],n=this.filterOptionsBySearchKey(i,t),c=null;if(n.length)[c]=n;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],g=this.filterOptionsBySearchKey(i,t[0]),A=g.filter(R=>R===f);c=A.length?A[0]:g[0]}this.navItems.indexOf(c)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(c))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===te.DEFAULT)switch(e){case G.DOWN:case G.UP:case G.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case G.SPACE:t.preventDefault(),t.stopPropagation();break;case G.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case G.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else e===G.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}handleKeyupCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===te.DEFAULT&&e===G.SPACE&&(this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let e=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(e)}handleKeydownPopover(t){this.getKeyboardNavMode()===te.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,n,c,f;return S`
6109
6109
  ${this.renderLabel()}
6110
6110
  <div part="container">
6111
6111
  <div
@@ -6117,7 +6117,7 @@
6117
6117
  tabindex="${this.disabled?"-1":"0"}"
6118
6118
  class="${this.disabled?"":"mdc-focus-ring"}"
6119
6119
  role="${et.COMBOBOX}"
6120
- aria-controls="${Ny}"
6120
+ aria-controls="${Ly}"
6121
6121
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
6122
6122
  aria-labelledby="${this.label?Yt.HEADING_ID:""}"
6123
6123
  aria-expanded="${this.displayPopover?"true":"false"}"
@@ -6189,7 +6189,7 @@
6189
6189
  </mdc-popover>
6190
6190
  </div>
6191
6191
  ${this.renderHelperText()}
6192
- `}};pr.styles=[...Zt.styles,...My],h([u({type:String})],pr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],pr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],pr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],pr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],pr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],pr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],pr.prototype,"backdropAppendTo",2),h([zt(`[id="${yc}"]`)],pr.prototype,"visualCombobox",2),h([dt()],pr.prototype,"selectedOption",2),h([dt()],pr.prototype,"displayPopover",2);var um=pr;um.register(ky);var WS=um;var fm=class extends Q{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},vm=fm;var Ec=V.constructTagName("selectlistbox");vm.register(Ec);var YS=vm;Es.register(Co);var jS=Es;var Oy=V.constructTagName("skeleton"),Ry={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},Dy={VARIANT:Ry.RECTANGULAR};var qS=B`
6192
+ `}};pr.styles=[...Zt.styles,...Oy],h([u({type:String})],pr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],pr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],pr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],pr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],pr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],pr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],pr.prototype,"backdropAppendTo",2),h([zt(`[id="${yc}"]`)],pr.prototype,"visualCombobox",2),h([dt()],pr.prototype,"selectedOption",2),h([dt()],pr.prototype,"displayPopover",2);var um=pr;um.register(Ny);var WS=um;var fm=class extends Q{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},vm=fm;var Ec=V.constructTagName("selectlistbox");vm.register(Ec);var YS=vm;Es.register(Co);var jS=Es;var Ry=V.constructTagName("skeleton"),Dy={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},gm={MOTION:!1,VARIANT:Dy.RECTANGULAR};var qS=B`
6193
6193
  :host {
6194
6194
  --mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
6195
6195
  --mdc-skeleton-height: 100%;
@@ -6201,6 +6201,35 @@
6201
6201
  width: var(--mdc-skeleton-width);
6202
6202
  }
6203
6203
 
6204
+ :host([motion]) {
6205
+ background-image: linear-gradient(
6206
+ 90deg,
6207
+ var(--mds-color-theme-background-skeleton-shimmer-0) 0%,
6208
+ var(--mds-color-theme-background-skeleton-shimmer-1) 50%,
6209
+ var(--mds-color-theme-background-skeleton-shimmer-2) 100%
6210
+ );
6211
+ background-repeat: no-repeat;
6212
+ background-size: 200% 100%;
6213
+ animation: skeleton-shimmer 2s linear infinite;
6214
+ }
6215
+
6216
+ @media (prefers-reduced-motion: reduce) {
6217
+ :host([motion]) {
6218
+ animation: none;
6219
+ background-position: 50% 0;
6220
+ }
6221
+ }
6222
+
6223
+ @keyframes skeleton-shimmer {
6224
+ 0% {
6225
+ background-position: 200% 0;
6226
+ }
6227
+
6228
+ 100% {
6229
+ background-position: -200% 0;
6230
+ }
6231
+ }
6232
+
6204
6233
  :host([variant='rectangular']) {
6205
6234
  border-radius: 0.25rem;
6206
6235
  }
@@ -6226,7 +6255,7 @@
6226
6255
  ::slotted(*) {
6227
6256
  visibility: hidden;
6228
6257
  }
6229
- `,Py=qS;var Jn=class extends Q{constructor(){super(...arguments);this.variant=Dy.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return S`<slot @slotchange=${this.checkSlotContent}></slot>`}};Jn.styles=[...Q.styles,Py],h([u({type:String,reflect:!0})],Jn.prototype,"variant",2);var gm=Jn;gm.register(Oy);var XS=gm;var ZS=[Tt,B`
6258
+ `,Py=qS;var Ea=class extends Q{constructor(){super(...arguments);this.motion=gm.MOTION;this.variant=gm.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return S`<slot @slotchange=${this.checkSlotContent}></slot>`}};Ea.styles=[...Q.styles,Py],h([u({type:Boolean,reflect:!0})],Ea.prototype,"motion",2),h([u({type:String,reflect:!0})],Ea.prototype,"variant",2);var bm=Ea;bm.register(Ry);var XS=bm;var ZS=[Tt,B`
6230
6259
  :host {
6231
6260
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
6232
6261
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -6294,7 +6323,7 @@
6294
6323
  <svg part="container" viewBox="0 0 100 100">
6295
6324
  <circle part="circle" cx="50" cy="50" r="46"></circle>
6296
6325
  </svg>
6297
- `}};Lo.styles=[...Q.styles,...Fy],h([u({type:Boolean,reflect:!0})],Lo.prototype,"inverted",2),h([u({type:String,reflect:!0})],Lo.prototype,"size",2),h([u({type:String,attribute:"aria-label"})],Lo.prototype,"ariaLabel",2),h([u({type:String,reflect:!0})],Lo.prototype,"variant",2);var bm=Lo;bm.register($y);var tI=bm;Cn.register(Xg);var eI=Cn;var rI={COMPLETE:"complete",INCOMPLETE:"incomplete"},ym={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Em={STATUS:rI.INCOMPLETE,ORIENTATION:ym.HORIZONTAL},Vy=V.constructTagName("stepperconnector");var zy=V.constructTagName("stepperitem"),Tm={INLINE:"inline",STACKED:"stacked"},Wi={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},xc={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},xm={VARIANT:Tm.INLINE,STATUS:Wi.NOT_STARTED};var Ac=V.constructTagName("stepper"),tl={ORIENTATION:ym.HORIZONTAL,VARIANT:Tm.INLINE};var Sc=class{constructor(o,t){this.orientation=o,this.variant=t}};Sc.context=Ac;var Ic=Sc;var iI=B`
6326
+ `}};Lo.styles=[...Q.styles,...Fy],h([u({type:Boolean,reflect:!0})],Lo.prototype,"inverted",2),h([u({type:String,reflect:!0})],Lo.prototype,"size",2),h([u({type:String,attribute:"aria-label"})],Lo.prototype,"ariaLabel",2),h([u({type:String,reflect:!0})],Lo.prototype,"variant",2);var ym=Lo;ym.register($y);var tI=ym;_n.register(Zg);var eI=_n;var rI={COMPLETE:"complete",INCOMPLETE:"incomplete"},Em={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Tm={STATUS:rI.INCOMPLETE,ORIENTATION:Em.HORIZONTAL},Vy=V.constructTagName("stepperconnector");var zy=V.constructTagName("stepperitem"),xm={INLINE:"inline",STACKED:"stacked"},Wi={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},xc={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},Am={VARIANT:xm.INLINE,STATUS:Wi.NOT_STARTED};var Ac=V.constructTagName("stepper"),tl={ORIENTATION:Em.HORIZONTAL,VARIANT:xm.INLINE};var Sc=class{constructor(o,t){this.orientation=o,this.variant=t}};Sc.context=Ac;var Ic=Sc;var iI=B`
6298
6327
  :host {
6299
6328
  gap: 0.5rem;
6300
6329
  }
@@ -6331,7 +6360,7 @@
6331
6360
  padding-top: 0.9375rem;
6332
6361
  margin: 0 -3rem;
6333
6362
  }
6334
- `,By=[Tt,iI];var Ea=class extends Se{constructor(){super({context:Ic.context,initialValue:new Ic(tl.ORIENTATION,tl.VARIANT)});this.orientation=tl.ORIENTATION;this.variant=tl.VARIANT}connectedCallback(){super.connectedCallback(),this.role=et.LIST}static get Context(){return Ic.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return S` <slot></slot> `}};Ea.styles=[...Q.styles,...By],h([u({type:String,reflect:!0})],Ea.prototype,"orientation",2),h([u({type:String,reflect:!0})],Ea.prototype,"variant",2);var Is=Ea;Is.register(Ac);var oI=Is;var sI=B`
6363
+ `,By=[Tt,iI];var Ta=class extends Se{constructor(){super({context:Ic.context,initialValue:new Ic(tl.ORIENTATION,tl.VARIANT)});this.orientation=tl.ORIENTATION;this.variant=tl.VARIANT}connectedCallback(){super.connectedCallback(),this.role=et.LIST}static get Context(){return Ic.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return S` <slot></slot> `}};Ta.styles=[...Q.styles,...By],h([u({type:String,reflect:!0})],Ta.prototype,"orientation",2),h([u({type:String,reflect:!0})],Ta.prototype,"variant",2);var Is=Ta;Is.register(Ac);var oI=Is;var sI=B`
6335
6364
  :host {
6336
6365
  --mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
6337
6366
  --mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
@@ -6366,7 +6395,7 @@
6366
6395
  border-left: 1px solid var(--mdc-stepperconnector-complete-background);
6367
6396
  }
6368
6397
  }
6369
- `,Hy=[sI];var Ta=class extends Q{constructor(){super(...arguments);this.status=Em.STATUS;this.orientation=Em.ORIENTATION;this.stepperContext=Ie.consume({host:this,context:Is.Context})}updated(t){var i;super.updated(t);let e=(i=this.stepperContext)==null?void 0:i.value;!e||!e.orientation||(this.orientation=e.orientation)}render(){return S` <div part="connector"></div> `}};Ta.styles=[...Q.styles,...Hy],h([u({type:String,reflect:!0})],Ta.prototype,"status",2),h([u({type:String,reflect:!0})],Ta.prototype,"orientation",2);var Am=Ta;Am.register(Vy);var aI=Am;var nI=B`
6398
+ `,Hy=[sI];var xa=class extends Q{constructor(){super(...arguments);this.status=Tm.STATUS;this.orientation=Tm.ORIENTATION;this.stepperContext=Ie.consume({host:this,context:Is.Context})}updated(t){var i;super.updated(t);let e=(i=this.stepperContext)==null?void 0:i.value;!e||!e.orientation||(this.orientation=e.orientation)}render(){return S` <div part="connector"></div> `}};xa.styles=[...Q.styles,...Hy],h([u({type:String,reflect:!0})],xa.prototype,"status",2),h([u({type:String,reflect:!0})],xa.prototype,"orientation",2);var Sm=xa;Sm.register(Vy);var aI=Sm;var nI=B`
6370
6399
  :host {
6371
6400
  gap: 0.5rem;
6372
6401
  border-radius: 0.25rem;
@@ -6522,7 +6551,7 @@
6522
6551
  :host([status='error-incomplete']:active) {
6523
6552
  --mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
6524
6553
  }
6525
- `,Uy=[Tt,nI,...xt()];var Yi=class extends Ot(Nt(ii(Q))){constructor(){super();this.variant=xm.VARIANT;this.status=xm.STATUS;this.label="";this.stepperContext=Ie.consume({host:this,context:Is.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var i;super.updated(t);let e=(i=this.stepperContext)==null?void 0:i.value;!e||!e.variant||(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===G.ENTER||e===G.SPACE)&&(this.classList.add("pressed"),e===G.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let e=this.getActionForKeyEvent(t);(e===G.ENTER||e===G.SPACE)&&(this.classList.remove("pressed"),e===G.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Wi.COMPLETED?S`<mdc-icon part="status-icon" name=${xc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Wi.ERROR_CURRENT||this.status===Wi.CURRENT?S`<mdc-icon part="status-icon" name=${xc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Wi.NOT_STARTED||this.status===Wi.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
6554
+ `,Uy=[Tt,nI,...xt()];var Yi=class extends Ot(Nt(ii(Q))){constructor(){super();this.variant=Am.VARIANT;this.status=Am.STATUS;this.label="";this.stepperContext=Ie.consume({host:this,context:Is.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var i;super.updated(t);let e=(i=this.stepperContext)==null?void 0:i.value;!e||!e.variant||(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===G.ENTER||e===G.SPACE)&&(this.classList.add("pressed"),e===G.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let e=this.getActionForKeyEvent(t);(e===G.ENTER||e===G.SPACE)&&(this.classList.remove("pressed"),e===G.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Wi.COMPLETED?S`<mdc-icon part="status-icon" name=${xc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Wi.ERROR_CURRENT||this.status===Wi.CURRENT?S`<mdc-icon part="status-icon" name=${xc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Wi.NOT_STARTED||this.status===Wi.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
6526
6555
  >${this.stepNumber}</mdc-text
6527
6556
  >`:K}renderHelpText(){if(!this.helpText)return K;let t=S`<mdc-text
6528
6557
  part="help-text"
@@ -6538,7 +6567,7 @@
6538
6567
  >${this.label}</mdc-text
6539
6568
  >`:K}
6540
6569
  ${this.renderHelpText()}
6541
- </div>`}};Yi.styles=[...Q.styles,...Uy],h([u({type:String,reflect:!0})],Yi.prototype,"variant",2),h([u({type:String,reflect:!0})],Yi.prototype,"status",2),h([u({type:String,reflect:!0})],Yi.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"help-text"})],Yi.prototype,"helpText",2),h([u({type:Number,reflect:!0,attribute:"step-number"})],Yi.prototype,"stepNumber",2);var Sm=Yi;Sm.register(zy);var lI=Sm;var xa=V.constructTagName("tab"),Im={GLASS:"glass",LINE:"line",PILL:"pill"},Cm={32:32,28:28},Aa={VARIANT:Im.PILL,ACTIVE:!1,SIZE:Cm[32]};var dI=[Tt,B`
6570
+ </div>`}};Yi.styles=[...Q.styles,...Uy],h([u({type:String,reflect:!0})],Yi.prototype,"variant",2),h([u({type:String,reflect:!0})],Yi.prototype,"status",2),h([u({type:String,reflect:!0})],Yi.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"help-text"})],Yi.prototype,"helpText",2),h([u({type:Number,reflect:!0,attribute:"step-number"})],Yi.prototype,"stepNumber",2);var Im=Yi;Im.register(zy);var lI=Im;var Aa=V.constructTagName("tab"),Cm={GLASS:"glass",LINE:"line",PILL:"pill"},_m={32:32,28:28},Sa={VARIANT:Cm.PILL,ACTIVE:!1,SIZE:_m[32]};var dI=[Tt,B`
6542
6571
  :host {
6543
6572
  --mdc-tab-content-gap: 0.5rem;
6544
6573
  --mdc-tab-height: 2rem;
@@ -6772,7 +6801,7 @@
6772
6801
  --mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
6773
6802
  --mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
6774
6803
  }
6775
- `,...xt()],Gy=dI;var ji=class extends he(ac(ve)){constructor(){super(...arguments);this.active=Aa.ACTIVE;this.variant=Aa.VARIANT;this.size=Aa.SIZE;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=et.TAB,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}setVariant(t){this.setAttribute("variant",Object.values(Im).includes(t)?t:Aa.VARIANT)}setSize(t){this.setAttribute("size",Object.values(Cm).includes(t)?`${t}`:Aa.SIZE.toString())}getFilledIconName(){return this.iconName?this.iconName.endsWith("-filled")?this.iconName:`${Xo(this.iconName)}-filled`:void 0}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("size")&&this.setSize(this.size),t.has("variant")&&this.setVariant(this.variant)}render(){return S`
6804
+ `,...xt()],Gy=dI;var ji=class extends he(ac(ve)){constructor(){super(...arguments);this.active=Sa.ACTIVE;this.variant=Sa.VARIANT;this.size=Sa.SIZE;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=et.TAB,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}setVariant(t){this.setAttribute("variant",Object.values(Cm).includes(t)?t:Sa.VARIANT)}setSize(t){this.setAttribute("size",Object.values(_m).includes(t)?`${t}`:Sa.SIZE.toString())}getFilledIconName(){return this.iconName?this.iconName.endsWith("-filled")?this.iconName:`${Xo(this.iconName)}-filled`:void 0}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("size")&&this.setSize(this.size),t.has("variant")&&this.setVariant(this.variant)}render(){return S`
6776
6805
  <div part="container">
6777
6806
  <div part="leading">
6778
6807
  <slot name="prefix">
@@ -6804,7 +6833,7 @@
6804
6833
  <slot name="postfix"></slot>
6805
6834
  </div>
6806
6835
  <div part="indicator"></div>
6807
- `}};ji.styles=[...ve.styles,...Gy],h([u({type:Boolean,reflect:!0})],ji.prototype,"active",2),h([u({type:String,reflect:!0})],ji.prototype,"text",2),h([u({type:String,reflect:!0})],ji.prototype,"variant",2),h([u({type:Number,reflect:!0})],ji.prototype,"size",2),h([u({type:String,reflect:!0,attribute:"tab-id"})],ji.prototype,"tabId",2);var qi=ji;qi.register(xa);var Cc=qi;var _m=a=>a.at(0),Ky=a=>a.at(a.length-1),Wy=(a,o)=>a.find(t=>t.tabId===o),_c=a=>a.find(o=>o.active);var wc=a=>{class o extends a{constructor(...e){super(...e),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.navItems||!this.activeTabId)return;let i=Wy(this.navItems,this.activeTabId);if(!(i instanceof Cc))return;this.setActiveTab(i),e.get("activeTabId")&&this.fireTabChangeEvent(i)}}setActiveTab(e){var i;(i=this.navItems)==null||i.forEach(n=>{n===e?n.setAttribute("active",""):n.removeAttribute("active")})}fireTabChangeEvent(e){let i=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(i)}async handleNestedTabActiveChange(e){e.stopPropagation();let i=e.target;i instanceof Cc&&(this.activeTabId=i.tabId)}}return h([u({type:String,attribute:"active-tab-id",reflect:!0})],o.prototype,"activeTabId",2),o};var cI=[$r,B`
6836
+ `}};ji.styles=[...ve.styles,...Gy],h([u({type:Boolean,reflect:!0})],ji.prototype,"active",2),h([u({type:String,reflect:!0})],ji.prototype,"text",2),h([u({type:String,reflect:!0})],ji.prototype,"variant",2),h([u({type:Number,reflect:!0})],ji.prototype,"size",2),h([u({type:String,reflect:!0,attribute:"tab-id"})],ji.prototype,"tabId",2);var qi=ji;qi.register(Aa);var Cc=qi;var wm=a=>a.at(0),Ky=a=>a.at(a.length-1),Wy=(a,o)=>a.find(t=>t.tabId===o),_c=a=>a.find(o=>o.active);var wc=a=>{class o extends a{constructor(...e){super(...e),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.navItems||!this.activeTabId)return;let i=Wy(this.navItems,this.activeTabId);if(!(i instanceof Cc))return;this.setActiveTab(i),e.get("activeTabId")&&this.fireTabChangeEvent(i)}}setActiveTab(e){var i;(i=this.navItems)==null||i.forEach(n=>{n===e?n.setAttribute("active",""):n.removeAttribute("active")})}fireTabChangeEvent(e){let i=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(i)}async handleNestedTabActiveChange(e){e.stopPropagation();let i=e.target;i instanceof Cc&&(this.activeTabId=i.tabId)}}return h([u({type:String,attribute:"active-tab-id",reflect:!0})],o.prototype,"activeTabId",2),o};var cI=[$r,B`
6808
6837
  :host {
6809
6838
  --mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
6810
6839
  --mdc-tablist-gap: 0.5rem;
@@ -6834,16 +6863,16 @@
6834
6863
  :host mdc-button[prefix-icon='arrow-right-regular'] {
6835
6864
  margin-left: var(--mdc-tablist-arrow-button-margin);
6836
6865
  }
6837
- `],Yy=[...cI];var jy=V.constructTagName("tablist"),Sa={FORWARD:"forward",BACKWARD:"backward"};var bi=class extends So(ui(Ot(Nt(wc(Q))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}get navItems(){return this.itemsStore.items}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}isValidItem(t){return t.matches(`${xa}:not([disabled])`)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let n=i+1;n>=this.navItems.length&&(n=i-1);let c=this.navItems.at(n);c instanceof qi&&c.focus(),this.resetTabIndexes(n,!1)}}resetTabIndexAndSetFocus(t,e){var c;let i=super.resetTabIndexAndSetFocus(t,e,!1,!1),n=(c=this.navItems)==null?void 0:c.at(t);return n instanceof qi&&n.focus(),this.handleArrowButtonVisibility(),i}async firstUpdated(){var i,n;if(!this.navItems)return;if(Array.isArray(this.navItems)&&this.navItems.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.navItems.map(c=>c.tabId);new Set(t).size!==this.navItems.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(i=_m(this.navItems))==null?void 0:i.tabId),(n=this.tabsContainer)==null||n.addEventListener("focusin",this.handleFocus.bind(this))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus)}focus(t){let e=_c(this.navItems);e?e.focus(t):super.focus(t)}async handleFocus(t){if(t.relatedTarget instanceof qi||!(t.target instanceof qi))return;let e=_c(this.navItems||[]);if(!(e instanceof qi))return;let i=this.navItems.findIndex(n=>n===e);this.resetTabIndexAndSetFocus(i,void 0)}shouldShowArrowButton(t){return t===Sa.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=_c(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var H,J,q;if(!this.navItems||!this.tabsContainer)return;let t=!1;((H=this.shadowRoot)==null?void 0:H.activeElement)instanceof Zo&&(t=!0);let e=_m(this.navItems),i=Ky(this.navItems);if(!e||!i)return;let n=e.getBoundingClientRect().left,c=(J=this.tabsContainer)==null?void 0:J.getBoundingClientRect().left,f=i.getBoundingClientRect().right,g=(q=this.tabsContainer)==null?void 0:q.getBoundingClientRect().right,A=e.getBoundingClientRect().right,R=i.getBoundingClientRect().left;if(!this.isRtl()){n<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>g?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}A>g?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,R<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var n;let e=this.isRtl()?-1:1,i=this.isRtl()?1:-1;(n=this.tabsContainer)==null||n.scrollBy({left:this.tabsContainer.clientWidth*(t===Sa.FORWARD?e:i),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",i=n=>S` ${this.shouldShowArrowButton(n)?S`<mdc-button
6866
+ `],Yy=[...cI];var jy=V.constructTagName("tablist"),Ia={FORWARD:"forward",BACKWARD:"backward"};var bi=class extends So(ui(Ot(Nt(wc(Q))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}get navItems(){return this.itemsStore.items}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}isValidItem(t){return t.matches(`${Aa}:not([disabled])`)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let n=i+1;n>=this.navItems.length&&(n=i-1);let c=this.navItems.at(n);c instanceof qi&&c.focus(),this.resetTabIndexes(n,!1)}}resetTabIndexAndSetFocus(t,e){var c;let i=super.resetTabIndexAndSetFocus(t,e,!1,!1),n=(c=this.navItems)==null?void 0:c.at(t);return n instanceof qi&&n.focus(),this.handleArrowButtonVisibility(),i}async firstUpdated(){var i,n;if(!this.navItems)return;if(Array.isArray(this.navItems)&&this.navItems.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.navItems.map(c=>c.tabId);new Set(t).size!==this.navItems.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(i=wm(this.navItems))==null?void 0:i.tabId),(n=this.tabsContainer)==null||n.addEventListener("focusin",this.handleFocus.bind(this))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus)}focus(t){let e=_c(this.navItems);e?e.focus(t):super.focus(t)}async handleFocus(t){if(t.relatedTarget instanceof qi||!(t.target instanceof qi))return;let e=_c(this.navItems||[]);if(!(e instanceof qi))return;let i=this.navItems.findIndex(n=>n===e);this.resetTabIndexAndSetFocus(i,void 0)}shouldShowArrowButton(t){return t===Ia.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=_c(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var H,J,q;if(!this.navItems||!this.tabsContainer)return;let t=!1;((H=this.shadowRoot)==null?void 0:H.activeElement)instanceof Zo&&(t=!0);let e=wm(this.navItems),i=Ky(this.navItems);if(!e||!i)return;let n=e.getBoundingClientRect().left,c=(J=this.tabsContainer)==null?void 0:J.getBoundingClientRect().left,f=i.getBoundingClientRect().right,g=(q=this.tabsContainer)==null?void 0:q.getBoundingClientRect().right,A=e.getBoundingClientRect().right,R=i.getBoundingClientRect().left;if(!this.isRtl()){n<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>g?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}A>g?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,R<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var n;let e=this.isRtl()?-1:1,i=this.isRtl()?1:-1;(n=this.tabsContainer)==null||n.scrollBy({left:this.tabsContainer.clientWidth*(t===Ia.FORWARD?e:i),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",i=n=>S` ${this.shouldShowArrowButton(n)?S`<mdc-button
6838
6867
  variant="tertiary"
6839
- prefix-icon="arrow-${n===Sa.FORWARD?t:e}-regular"
6840
- aria-label="Scroll tabs ${n===Sa.FORWARD?t:e}"
6868
+ prefix-icon="arrow-${n===Ia.FORWARD?t:e}-regular"
6869
+ aria-label="Scroll tabs ${n===Ia.FORWARD?t:e}"
6841
6870
  @click="${()=>this.scrollTabs(n)}"
6842
6871
  ></mdc-button>`:K}`;return S` ${i("backward")}
6843
6872
  <div part="container" role="${et.TABLIST}" tabindex="-1" aria-label="${tt(this.dataAriaLabel)}">
6844
6873
  <slot></slot>
6845
6874
  </div>
6846
- ${i(Sa.FORWARD)}`}};bi.styles=[...Q.styles,...Yy],bi.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},h([u({type:String,attribute:"data-aria-label"})],bi.prototype,"dataAriaLabel",2),h([zt('[part="container"]')],bi.prototype,"tabsContainer",2),h([zt("mdc-button:not(:focus-visible)")],bi.prototype,"notFocusedArrowButton",2),h([dt()],bi.prototype,"showForwardArrowButton",2),h([dt()],bi.prototype,"showBackwardArrowButton",2);var wm=bi;wm.register(jy);var hI=wm;var qy=V.constructTagName("textarea"),km={HARD:"hard",SOFT:"soft"},Xy={OFF:"off",ON:"on"},kc={ROWS:5,COLS:40,WRAP:km.SOFT};var pI=[B`
6875
+ ${i(Ia.FORWARD)}`}};bi.styles=[...Q.styles,...Yy],bi.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},h([u({type:String,attribute:"data-aria-label"})],bi.prototype,"dataAriaLabel",2),h([zt('[part="container"]')],bi.prototype,"tabsContainer",2),h([zt("mdc-button:not(:focus-visible)")],bi.prototype,"notFocusedArrowButton",2),h([dt()],bi.prototype,"showForwardArrowButton",2),h([dt()],bi.prototype,"showBackwardArrowButton",2);var km=bi;km.register(jy);var hI=km;var qy=V.constructTagName("textarea"),Nm={HARD:"hard",SOFT:"soft"},Xy={OFF:"off",ON:"on"},kc={ROWS:5,COLS:40,WRAP:Nm.SOFT};var pI=[B`
6847
6876
  :host {
6848
6877
  --mdc-textarea-text-color: var(--mds-color-theme-text-primary-normal);
6849
6878
  --mdc-textarea-border-color: var(--mds-color-theme-outline-input-normal);
@@ -6968,7 +6997,7 @@
6968
6997
  :host([disabled])::part(resize-button) {
6969
6998
  cursor: default;
6970
6999
  }
6971
- `,...xt(!0)],Zy=pI;var He=class extends ec(Ot(Nt(Ve(me(re(dr)))))){constructor(){super(...arguments);this.rows=kc.ROWS;this.wrap=km.SOFT;this.autocapitalize=rc.OFF;this.autocomplete=Xy.OFF;this.resizable=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let e=t.currentTarget;e&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||kc.ROWS,e.setPointerCapture(t.pointerId),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let e=t.clientY-this.resizeStartY,i=parseFloat(window.getComputedStyle(this.textarea).lineHeight),n=Math.round(e/i);this.rows=Math.max(1,this.resizeStartRows+n)};this.handlePointerUp=t=>{let e=t.currentTarget;e&&(t.type==="pointerup"&&e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),e.removeEventListener("pointermove",this.handlePointerMove),e.removeEventListener("pointerup",this.handlePointerUp),e.removeEventListener("lostpointercapture",this.handlePointerUp))}}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(e=>{this.onerror&&this.onerror(e)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===oe.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange()),t.has("helpText")&&this.announceCharacterLimitWarning()}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceCharacterLimitWarning()}onChange(t){this.updateValue();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?K:S` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let e=this.rows||kc.ROWS,i,n=this.getActionForKeyEvent(t);n===G.UP?(i=Math.max(1,e-1),i!==e&&this.keyDownEventHandled()):n===G.DOWN&&(i=e+1,this.keyDownEventHandled()),i!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=i)}render(){var t,e;return S`
7000
+ `,...xt(!0)],Zy=pI;var He=class extends ec(Ot(Nt(Ve(me(re(dr)))))){constructor(){super(...arguments);this.rows=kc.ROWS;this.wrap=Nm.SOFT;this.autocapitalize=rc.OFF;this.autocomplete=Xy.OFF;this.resizable=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let e=t.currentTarget;e&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||kc.ROWS,e.setPointerCapture(t.pointerId),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let e=t.clientY-this.resizeStartY,i=parseFloat(window.getComputedStyle(this.textarea).lineHeight),n=Math.round(e/i);this.rows=Math.max(1,this.resizeStartRows+n)};this.handlePointerUp=t=>{let e=t.currentTarget;e&&(t.type==="pointerup"&&e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),e.removeEventListener("pointermove",this.handlePointerMove),e.removeEventListener("pointerup",this.handlePointerUp),e.removeEventListener("lostpointercapture",this.handlePointerUp))}}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(e=>{this.onerror&&this.onerror(e)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===oe.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange()),t.has("helpText")&&this.announceCharacterLimitWarning()}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceCharacterLimitWarning()}onChange(t){this.updateValue();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?K:S` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let e=this.rows||kc.ROWS,i,n=this.getActionForKeyEvent(t);n===G.UP?(i=Math.max(1,e-1),i!==e&&this.keyDownEventHandled()):n===G.DOWN&&(i=e+1,this.keyDownEventHandled()),i!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=i)}render(){var t,e;return S`
6972
7001
  ${this.renderLabel()}
6973
7002
  <div class="mdc-focus-ring" part="textarea-container">
6974
7003
  <textarea
@@ -7015,7 +7044,7 @@
7015
7044
  `:K}
7016
7045
  </div>
7017
7046
  ${this.renderTextareaFooter()}
7018
- `}};He.styles=[...dr.styles,...Zy],h([u({type:String})],He.prototype,"placeholder",2),h([u({type:Number,reflect:!0})],He.prototype,"rows",2),h([u({type:Number})],He.prototype,"cols",2),h([u({type:String})],He.prototype,"wrap",2),h([u({type:String})],He.prototype,"autocapitalize",2),h([u({type:String})],He.prototype,"autocomplete",2),h([u({type:String})],He.prototype,"dirname",2),h([u({type:Number})],He.prototype,"maxlength",2),h([u({type:Number})],He.prototype,"minlength",2),h([u({type:Boolean,reflect:!0})],He.prototype,"resizable",2),h([u({type:String,attribute:"resize-button-aria-label"})],He.prototype,"resizeButtonAriaLabel",2),h([zt("textarea")],He.prototype,"inputElement",2);var Nm=He;Nm.register(qy);var mI=Nm;var Qy=V.constructTagName("timepicker"),Lm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Mo={TWELVE_HOUR:"12h",TWENTY_FOUR_HOUR:"24h"},Mm="timepicker-triggerid",Om="timepicker-listbox",Ue={TIME_FORMAT:Mo.TWELVE_HOUR,INTERVAL:30,MIN_HOUR_12:1,MAX_HOUR_12:12,MIN_HOUR_24:0,MAX_HOUR_24:23,MIN_MINUTE:0,MAX_MINUTE:59,DISABLE_FLIP:!1};var uI=B`
7047
+ `}};He.styles=[...dr.styles,...Zy],h([u({type:String})],He.prototype,"placeholder",2),h([u({type:Number,reflect:!0})],He.prototype,"rows",2),h([u({type:Number})],He.prototype,"cols",2),h([u({type:String})],He.prototype,"wrap",2),h([u({type:String})],He.prototype,"autocapitalize",2),h([u({type:String})],He.prototype,"autocomplete",2),h([u({type:String})],He.prototype,"dirname",2),h([u({type:Number})],He.prototype,"maxlength",2),h([u({type:Number})],He.prototype,"minlength",2),h([u({type:Boolean,reflect:!0})],He.prototype,"resizable",2),h([u({type:String,attribute:"resize-button-aria-label"})],He.prototype,"resizeButtonAriaLabel",2),h([zt("textarea")],He.prototype,"inputElement",2);var Lm=He;Lm.register(qy);var mI=Lm;var Qy=V.constructTagName("timepicker"),Mm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Mo={TWELVE_HOUR:"12h",TWENTY_FOUR_HOUR:"24h"},Om="timepicker-triggerid",Rm="timepicker-listbox",Ue={TIME_FORMAT:Mo.TWELVE_HOUR,INTERVAL:30,MIN_HOUR_12:1,MAX_HOUR_12:12,MIN_HOUR_24:0,MAX_HOUR_24:23,MIN_MINUTE:0,MAX_MINUTE:59,DISABLE_FLIP:!1};var uI=B`
7019
7048
  :host {
7020
7049
  --mdc-timepicker-background-color: var(--mds-color-theme-background-primary-ghost);
7021
7050
  --mdc-timepicker-text-color: var(--mds-color-theme-text-primary-normal);
@@ -7202,7 +7231,7 @@
7202
7231
  --mdc-timepicker-text-color: var(--mds-color-theme-text-primary-disabled);
7203
7232
  color: var(--mds-color-theme-text-primary-disabled);
7204
7233
  }
7205
- `,Jy=[uI,...xt(!0)];var Dt=class extends me(re(Zt)){constructor(){super(...arguments);this.timeFormat=Ue.TIME_FORMAT;this.interval=Ue.INTERVAL;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=Ue.DISABLE_FLIP;this.localeHoursLabel="";this.localeMinutesLabel="";this.localePeriodLabel="";this.localeHoursPlaceholder="";this.localeMinutesPlaceholder="";this.localePeriodPlaceholder="";this.localeAmLabel="";this.localePmLabel="";this.localeShowTimePickerLabel="";this.localeTimeOptionsLabel="";this.localeSpinbuttonDescription="";this.displayPopover=!1;this.internalHours="";this.internalMinutes="";this.internalPeriod="AM";this.focusedOptionIndex=-1;this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover&&(this.parseValueToInternal(),this.syncFormValue()),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}updated(t){super.updated(t),t.has("displayPopover")&&this.displayPopover&&this.focusMenuItemOnOpen()}focusMenuItemOnOpen(){this.focusedOptionIndex=this.getMenuItemFocusIndex(),this.updateComplete.then(()=>{window.requestAnimationFrame(()=>{this.focusCurrentMenuItem()})}).catch(()=>{})}getMenuItemFocusIndex(){let t=this.getTimeOptions(),e=this.internalToValue(),i=t.findIndex(n=>n.value===e);return i>=0?i:0}focusCurrentMenuItem(){var n;let t=(n=this.shadowRoot)==null?void 0:n.querySelector(`#${Om}`);if(!t)return;let i=t.querySelectorAll("mdc-option")[this.focusedOptionIndex];i&&(i.focus({preventScroll:!0}),i.scrollIntoView({block:"nearest"}))}formResetCallback(){this.value="",this.internalHours="",this.internalMinutes="",this.internalPeriod="AM",this.syncFormValue(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t,this.parseValueToInternal()}parseValueToInternal(){if(!this.value){this.internalHours="",this.internalMinutes="",this.internalPeriod="AM";return}let t=this.value.match(/^(\d{1,2}):(\d{2})$/);if(!t)return;let e=parseInt(t[1],10),i=parseInt(t[2],10);e<0||e>23||i<0||i>59||(this.internalMinutes=String(i).padStart(2,"0"),this.timeFormat===Mo.TWELVE_HOUR?e===0?(this.internalPeriod="AM",this.internalHours="12"):e<12?(this.internalPeriod="AM",this.internalHours=String(e).padStart(2,"0")):e===12?(this.internalPeriod="PM",this.internalHours="12"):(this.internalPeriod="PM",this.internalHours=String(e-12).padStart(2,"0")):this.internalHours=String(e).padStart(2,"0"))}internalToValue(){if(!this.internalHours||!this.internalMinutes)return"";let t=parseInt(this.internalHours,10);return this.timeFormat===Mo.TWELVE_HOUR&&(this.internalPeriod==="AM"?t=t===12?0:t:t=t===12?12:t+12),`${String(t).padStart(2,"0")}:${this.internalMinutes}`}syncFormValue(){let t=this.internalToValue();this.internals.setFormValue(t||this.value)}commitValue(){let t=this.internalToValue();t&&t!==this.value&&(this.value=t,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})))}getTimeOptions(){let t=[],e=Math.max(1,Math.min(this.interval,60));for(let i=0;i<24*60;i+=e){let n=Math.floor(i/60),c=i%60,f=`${String(n).padStart(2,"0")}:${String(c).padStart(2,"0")}`,g;if(this.timeFormat===Mo.TWELVE_HOUR){let H=n<12?this.localeAmLabel:this.localePmLabel,J=n%12;J===0&&(J=12);let q=String(c).padStart(2,"0");g=`${J}:${q} ${H}`}else g=`${n}:${String(c).padStart(2,"0")}`;let A=!this.min||f>=this.min,R=!this.max||f<=this.max;A&&R&&t.push({label:g,value:f})}return t}handleOptionClick(t){var e;this.value=t,this.parseValueToInternal(),this.displayPopover=!1,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})),(e=this.dropdownButton)==null||e.focus()}handleDropdownClick(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleBaseContainerClick(t){var i,n,c;if(this.disabled||this.softDisabled||this.readonly)return;let e=t.target;if(e.getAttribute("role")!=="spinbutton"){if(e.getAttribute("part")==="base-container"||e.getAttribute("part")==="spinbutton-group"){this.displayPopover=!this.displayPopover,(i=this.dropdownButton)==null||i.focus(),t.stopPropagation();return}(n=this.hoursInput)==null||n.focus(),(c=this.hoursInput)==null||c.select()}}handleBaseKeydown(t){var e;this.disabled||this.softDisabled||this.readonly||t.key===Lt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var n;let e=this.getTimeOptions(),i=e.length;if(i!==0)switch(t.key){case Lt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%i,this.focusCurrentMenuItem();break}case Lt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+i)%i,this.focusCurrentMenuItem();break}case Lt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<i&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case Lt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(n=this.dropdownButton)==null||n.focus();break}default:break}}handleHoursKeydown(t){this.handleSpinbuttonKeydown(t,"hours")}handleMinutesKeydown(t){this.handleSpinbuttonKeydown(t,"minutes")}handlePeriodKeydown(t){var e,i;switch(t.key){case Lt.ARROW_UP:case Lt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case Lt.TAB:break;case Lt.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select();break;default:{t.preventDefault();let n=this.localeAmLabel.charAt(0).toLowerCase(),c=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===n?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===c&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,e){var A,R,H,J,q,Z;let i=this.timeFormat===Mo.TWELVE_HOUR,n,c;e==="hours"?(n=i?Ue.MIN_HOUR_12:Ue.MIN_HOUR_24,c=i?Ue.MAX_HOUR_12:Ue.MAX_HOUR_24):(n=Ue.MIN_MINUTE,c=Ue.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,g=f?parseInt(f,10):n;switch(t.key){case Lt.ARROW_UP:{t.preventDefault(),g=g>=c?n:g+1,this.setSpinbuttonValue(e,g),this.commitValue();break}case Lt.ARROW_DOWN:{t.preventDefault(),g=g<=n?c:g-1,this.setSpinbuttonValue(e,g),this.commitValue();break}case Lt.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((A=this.minutesInput)==null||A.focus(),(R=this.minutesInput)==null||R.select()):i&&((H=this.periodInput)==null||H.focus(),(J=this.periodInput)==null||J.select());break}case Lt.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((q=this.hoursInput)==null||q.focus(),(Z=this.hoursInput)==null||Z.select());break}case Lt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,n,c)):t.preventDefault();break}}}handleDigitInput(t,e,i,n){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let c=parseInt(this.pendingDigits,10);c>n&&(c=n),c<i&&(c=i),this.setSpinbuttonValue(e,c),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else{let c=parseInt(this.pendingDigits,10),f=Math.floor(n/10);if(c>f){let g=c;g>n&&(g=n),g<i&&(g=i),this.setSpinbuttonValue(e,g),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,c),this.pendingDigitTimeout=setTimeout(()=>{let g=c;g<i&&(g=i),this.setSpinbuttonValue(e,g),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}}setSpinbuttonValue(t,e){let i=String(e).padStart(2,"0");t==="hours"?this.internalHours=i:this.internalMinutes=i,this.requestUpdate()}advanceToNextField(t){t==="hours"?this.updateComplete.then(()=>{var e,i;(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select()}).catch(()=>{}):this.timeFormat===Mo.TWELVE_HOUR&&this.updateComplete.then(()=>{var e,i;(e=this.periodInput)==null||e.focus(),(i=this.periodInput)==null||i.select()}).catch(()=>{})}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}get displayPeriod(){return this.internalPeriod==="AM"?this.localeAmLabel:this.localePmLabel}get hoursPlaceholder(){return this.localeHoursPlaceholder}get minutesPlaceholder(){return this.localeMinutesPlaceholder}get periodPlaceholder(){return this.localePeriodPlaceholder}renderTimeOptions(){let t=this.getTimeOptions(),e=this.internalToValue();return t.map(i=>S`
7234
+ `,Jy=[uI,...xt(!0)];var Dt=class extends me(re(Zt)){constructor(){super(...arguments);this.timeFormat=Ue.TIME_FORMAT;this.interval=Ue.INTERVAL;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=Ue.DISABLE_FLIP;this.localeHoursLabel="";this.localeMinutesLabel="";this.localePeriodLabel="";this.localeHoursPlaceholder="";this.localeMinutesPlaceholder="";this.localePeriodPlaceholder="";this.localeAmLabel="";this.localePmLabel="";this.localeShowTimePickerLabel="";this.localeTimeOptionsLabel="";this.localeSpinbuttonDescription="";this.displayPopover=!1;this.internalHours="";this.internalMinutes="";this.internalPeriod="AM";this.focusedOptionIndex=-1;this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover&&(this.parseValueToInternal(),this.syncFormValue()),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}updated(t){super.updated(t),t.has("displayPopover")&&this.displayPopover&&this.focusMenuItemOnOpen()}focusMenuItemOnOpen(){this.focusedOptionIndex=this.getMenuItemFocusIndex(),this.updateComplete.then(()=>{window.requestAnimationFrame(()=>{this.focusCurrentMenuItem()})}).catch(()=>{})}getMenuItemFocusIndex(){let t=this.getTimeOptions(),e=this.internalToValue(),i=t.findIndex(n=>n.value===e);return i>=0?i:0}focusCurrentMenuItem(){var n;let t=(n=this.shadowRoot)==null?void 0:n.querySelector(`#${Rm}`);if(!t)return;let i=t.querySelectorAll("mdc-option")[this.focusedOptionIndex];i&&(i.focus({preventScroll:!0}),i.scrollIntoView({block:"nearest"}))}formResetCallback(){this.value="",this.internalHours="",this.internalMinutes="",this.internalPeriod="AM",this.syncFormValue(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t,this.parseValueToInternal()}parseValueToInternal(){if(!this.value){this.internalHours="",this.internalMinutes="",this.internalPeriod="AM";return}let t=this.value.match(/^(\d{1,2}):(\d{2})$/);if(!t)return;let e=parseInt(t[1],10),i=parseInt(t[2],10);e<0||e>23||i<0||i>59||(this.internalMinutes=String(i).padStart(2,"0"),this.timeFormat===Mo.TWELVE_HOUR?e===0?(this.internalPeriod="AM",this.internalHours="12"):e<12?(this.internalPeriod="AM",this.internalHours=String(e).padStart(2,"0")):e===12?(this.internalPeriod="PM",this.internalHours="12"):(this.internalPeriod="PM",this.internalHours=String(e-12).padStart(2,"0")):this.internalHours=String(e).padStart(2,"0"))}internalToValue(){if(!this.internalHours||!this.internalMinutes)return"";let t=parseInt(this.internalHours,10);return this.timeFormat===Mo.TWELVE_HOUR&&(this.internalPeriod==="AM"?t=t===12?0:t:t=t===12?12:t+12),`${String(t).padStart(2,"0")}:${this.internalMinutes}`}syncFormValue(){let t=this.internalToValue();this.internals.setFormValue(t||this.value)}commitValue(){let t=this.internalToValue();t&&t!==this.value&&(this.value=t,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})))}getTimeOptions(){let t=[],e=Math.max(1,Math.min(this.interval,60));for(let i=0;i<24*60;i+=e){let n=Math.floor(i/60),c=i%60,f=`${String(n).padStart(2,"0")}:${String(c).padStart(2,"0")}`,g;if(this.timeFormat===Mo.TWELVE_HOUR){let H=n<12?this.localeAmLabel:this.localePmLabel,J=n%12;J===0&&(J=12);let q=String(c).padStart(2,"0");g=`${J}:${q} ${H}`}else g=`${n}:${String(c).padStart(2,"0")}`;let A=!this.min||f>=this.min,R=!this.max||f<=this.max;A&&R&&t.push({label:g,value:f})}return t}handleOptionClick(t){var e;this.value=t,this.parseValueToInternal(),this.displayPopover=!1,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})),(e=this.dropdownButton)==null||e.focus()}handleDropdownClick(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleBaseContainerClick(t){var i,n,c;if(this.disabled||this.softDisabled||this.readonly)return;let e=t.target;if(e.getAttribute("role")!=="spinbutton"){if(e.getAttribute("part")==="base-container"||e.getAttribute("part")==="spinbutton-group"){this.displayPopover=!this.displayPopover,(i=this.dropdownButton)==null||i.focus(),t.stopPropagation();return}(n=this.hoursInput)==null||n.focus(),(c=this.hoursInput)==null||c.select()}}handleBaseKeydown(t){var e;this.disabled||this.softDisabled||this.readonly||t.key===Lt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var n;let e=this.getTimeOptions(),i=e.length;if(i!==0)switch(t.key){case Lt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%i,this.focusCurrentMenuItem();break}case Lt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+i)%i,this.focusCurrentMenuItem();break}case Lt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<i&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case Lt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(n=this.dropdownButton)==null||n.focus();break}default:break}}handleHoursKeydown(t){this.handleSpinbuttonKeydown(t,"hours")}handleMinutesKeydown(t){this.handleSpinbuttonKeydown(t,"minutes")}handlePeriodKeydown(t){var e,i;switch(t.key){case Lt.ARROW_UP:case Lt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case Lt.TAB:break;case Lt.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select();break;default:{t.preventDefault();let n=this.localeAmLabel.charAt(0).toLowerCase(),c=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===n?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===c&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,e){var A,R,H,J,q,Z;let i=this.timeFormat===Mo.TWELVE_HOUR,n,c;e==="hours"?(n=i?Ue.MIN_HOUR_12:Ue.MIN_HOUR_24,c=i?Ue.MAX_HOUR_12:Ue.MAX_HOUR_24):(n=Ue.MIN_MINUTE,c=Ue.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,g=f?parseInt(f,10):n;switch(t.key){case Lt.ARROW_UP:{t.preventDefault(),g=g>=c?n:g+1,this.setSpinbuttonValue(e,g),this.commitValue();break}case Lt.ARROW_DOWN:{t.preventDefault(),g=g<=n?c:g-1,this.setSpinbuttonValue(e,g),this.commitValue();break}case Lt.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((A=this.minutesInput)==null||A.focus(),(R=this.minutesInput)==null||R.select()):i&&((H=this.periodInput)==null||H.focus(),(J=this.periodInput)==null||J.select());break}case Lt.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((q=this.hoursInput)==null||q.focus(),(Z=this.hoursInput)==null||Z.select());break}case Lt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,n,c)):t.preventDefault();break}}}handleDigitInput(t,e,i,n){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let c=parseInt(this.pendingDigits,10);c>n&&(c=n),c<i&&(c=i),this.setSpinbuttonValue(e,c),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else{let c=parseInt(this.pendingDigits,10),f=Math.floor(n/10);if(c>f){let g=c;g>n&&(g=n),g<i&&(g=i),this.setSpinbuttonValue(e,g),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,c),this.pendingDigitTimeout=setTimeout(()=>{let g=c;g<i&&(g=i),this.setSpinbuttonValue(e,g),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}}setSpinbuttonValue(t,e){let i=String(e).padStart(2,"0");t==="hours"?this.internalHours=i:this.internalMinutes=i,this.requestUpdate()}advanceToNextField(t){t==="hours"?this.updateComplete.then(()=>{var e,i;(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select()}).catch(()=>{}):this.timeFormat===Mo.TWELVE_HOUR&&this.updateComplete.then(()=>{var e,i;(e=this.periodInput)==null||e.focus(),(i=this.periodInput)==null||i.select()}).catch(()=>{})}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}get displayPeriod(){return this.internalPeriod==="AM"?this.localeAmLabel:this.localePmLabel}get hoursPlaceholder(){return this.localeHoursPlaceholder}get minutesPlaceholder(){return this.localeMinutesPlaceholder}get periodPlaceholder(){return this.localePeriodPlaceholder}renderTimeOptions(){let t=this.getTimeOptions(),e=this.internalToValue();return t.map(i=>S`
7206
7235
  <mdc-option
7207
7236
  label="${this.optionLabelFormatter?this.optionLabelFormatter(i.label,i.value):i.label}"
7208
7237
  ?selected="${i.value===e}"
@@ -7213,7 +7242,7 @@
7213
7242
  ${this.renderLabel()}
7214
7243
  <div part="container">
7215
7244
  <div
7216
- id="${Mm}"
7245
+ id="${Om}"
7217
7246
  part="base-container"
7218
7247
  class="mdc-focus-ring"
7219
7248
  @click="${this.handleBaseContainerClick}"
@@ -7278,7 +7307,7 @@
7278
7307
  part="icon-container"
7279
7308
  class="own-focus-ring"
7280
7309
  variant="tertiary"
7281
- prefix-icon="${this.displayPopover?Lm.ARROW_UP:Lm.ARROW_DOWN}"
7310
+ prefix-icon="${this.displayPopover?Mm.ARROW_UP:Mm.ARROW_DOWN}"
7282
7311
  aria-label="${this.localeShowTimePickerLabel}"
7283
7312
  aria-expanded="${this.displayPopover?"true":"false"}"
7284
7313
  aria-haspopup="true"
@@ -7301,7 +7330,7 @@
7301
7330
  />
7302
7331
  <mdc-popover
7303
7332
  trigger="${_e.MANUAL}"
7304
- triggerid="${Mm}"
7333
+ triggerid="${Om}"
7305
7334
  interactive
7306
7335
  ?visible="${this.displayPopover}"
7307
7336
  role=""
@@ -7323,7 +7352,7 @@
7323
7352
  exportparts="popover-content"
7324
7353
  >
7325
7354
  <mdc-selectlistbox
7326
- id="${Om}"
7355
+ id="${Rm}"
7327
7356
  part="listbox"
7328
7357
  aria-label="${this.localeTimeOptionsLabel}"
7329
7358
  @keydown="${this.handleListboxKeydown}"
@@ -7333,7 +7362,7 @@
7333
7362
  </mdc-popover>
7334
7363
  </div>
7335
7364
  ${this.helpText?this.renderHelperText():K}
7336
- `}};Dt.styles=[...Zt.styles,...Jy],h([u({type:String,reflect:!0,attribute:"time-format"})],Dt.prototype,"timeFormat",2),h([u({type:Number,reflect:!0})],Dt.prototype,"interval",2),h([u({type:String,reflect:!0})],Dt.prototype,"placement",2),h([u({type:String,reflect:!0})],Dt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Dt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Dt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Dt.prototype,"backdropAppendTo",2),h([u({type:String,reflect:!0})],Dt.prototype,"min",2),h([u({type:String,reflect:!0})],Dt.prototype,"max",2),h([u({type:String,attribute:"locale-hours-label"})],Dt.prototype,"localeHoursLabel",2),h([u({type:String,attribute:"locale-minutes-label"})],Dt.prototype,"localeMinutesLabel",2),h([u({type:String,attribute:"locale-period-label"})],Dt.prototype,"localePeriodLabel",2),h([u({type:String,attribute:"locale-hours-placeholder"})],Dt.prototype,"localeHoursPlaceholder",2),h([u({type:String,attribute:"locale-minutes-placeholder"})],Dt.prototype,"localeMinutesPlaceholder",2),h([u({type:String,attribute:"locale-period-placeholder"})],Dt.prototype,"localePeriodPlaceholder",2),h([u({type:String,attribute:"locale-am-label"})],Dt.prototype,"localeAmLabel",2),h([u({type:String,attribute:"locale-pm-label"})],Dt.prototype,"localePmLabel",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],Dt.prototype,"prefixIcon",2),h([u({attribute:!1})],Dt.prototype,"optionLabelFormatter",2),h([u({type:String,attribute:"locale-show-time-picker-label"})],Dt.prototype,"localeShowTimePickerLabel",2),h([u({type:String,attribute:"locale-time-options-label"})],Dt.prototype,"localeTimeOptionsLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Dt.prototype,"localeSpinbuttonDescription",2),h([zt('mdc-button[part="icon-container"]')],Dt.prototype,"dropdownButton",2),h([zt("#hours-spinbutton")],Dt.prototype,"hoursInput",2),h([zt("#minutes-spinbutton")],Dt.prototype,"minutesInput",2),h([zt("#period-spinbutton")],Dt.prototype,"periodInput",2),h([dt()],Dt.prototype,"displayPopover",2),h([dt()],Dt.prototype,"internalHours",2),h([dt()],Dt.prototype,"internalMinutes",2),h([dt()],Dt.prototype,"internalPeriod",2),h([dt()],Dt.prototype,"focusedOptionIndex",2);var Rm=Dt;Rm.register(Qy);var fI=Rm;var vI=[B`
7365
+ `}};Dt.styles=[...Zt.styles,...Jy],h([u({type:String,reflect:!0,attribute:"time-format"})],Dt.prototype,"timeFormat",2),h([u({type:Number,reflect:!0})],Dt.prototype,"interval",2),h([u({type:String,reflect:!0})],Dt.prototype,"placement",2),h([u({type:String,reflect:!0})],Dt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Dt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Dt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Dt.prototype,"backdropAppendTo",2),h([u({type:String,reflect:!0})],Dt.prototype,"min",2),h([u({type:String,reflect:!0})],Dt.prototype,"max",2),h([u({type:String,attribute:"locale-hours-label"})],Dt.prototype,"localeHoursLabel",2),h([u({type:String,attribute:"locale-minutes-label"})],Dt.prototype,"localeMinutesLabel",2),h([u({type:String,attribute:"locale-period-label"})],Dt.prototype,"localePeriodLabel",2),h([u({type:String,attribute:"locale-hours-placeholder"})],Dt.prototype,"localeHoursPlaceholder",2),h([u({type:String,attribute:"locale-minutes-placeholder"})],Dt.prototype,"localeMinutesPlaceholder",2),h([u({type:String,attribute:"locale-period-placeholder"})],Dt.prototype,"localePeriodPlaceholder",2),h([u({type:String,attribute:"locale-am-label"})],Dt.prototype,"localeAmLabel",2),h([u({type:String,attribute:"locale-pm-label"})],Dt.prototype,"localePmLabel",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],Dt.prototype,"prefixIcon",2),h([u({attribute:!1})],Dt.prototype,"optionLabelFormatter",2),h([u({type:String,attribute:"locale-show-time-picker-label"})],Dt.prototype,"localeShowTimePickerLabel",2),h([u({type:String,attribute:"locale-time-options-label"})],Dt.prototype,"localeTimeOptionsLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Dt.prototype,"localeSpinbuttonDescription",2),h([zt('mdc-button[part="icon-container"]')],Dt.prototype,"dropdownButton",2),h([zt("#hours-spinbutton")],Dt.prototype,"hoursInput",2),h([zt("#minutes-spinbutton")],Dt.prototype,"minutesInput",2),h([zt("#period-spinbutton")],Dt.prototype,"periodInput",2),h([dt()],Dt.prototype,"displayPopover",2),h([dt()],Dt.prototype,"internalHours",2),h([dt()],Dt.prototype,"internalMinutes",2),h([dt()],Dt.prototype,"internalPeriod",2),h([dt()],Dt.prototype,"focusedOptionIndex",2);var Dm=Dt;Dm.register(Qy);var fI=Dm;var vI=[B`
7337
7366
  :host {
7338
7367
  display: block;
7339
7368
  position: relative;
@@ -7358,7 +7387,7 @@
7358
7387
  >
7359
7388
  <slot @slotchange=${this.handleSlotChange} part="${yi.CSS_PART_HIDDEN}"></slot>
7360
7389
  </div>
7361
- `}};Xr.styles=[...Q.styles,...tE],h([u({attribute:"type",reflect:!0,type:String})],Xr.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Xr.prototype,"tagname",2),h([u({attribute:"speed",reflect:!0})],Xr.prototype,"speed",2),h([u({attribute:"max-queue-size",type:Number,reflect:!0})],Xr.prototype,"maxQueueSize",2),h([dt()],Xr.prototype,"displayedText",2),h([dt()],Xr.prototype,"originalText",2),h([dt()],Xr.prototype,"typingComplete",2);var Dm=Xr;Dm.register(eE);var gI=Dm;var Nc=V.constructTagName("themeprovider"),Pm={THEMECLASS:"mds-theme-stable-darkWebex"};var Lc=class{constructor(o){this.themeclass=o}};Lc.context=Nc;var Mc=Lc;var bI=B`
7390
+ `}};Xr.styles=[...Q.styles,...tE],h([u({attribute:"type",reflect:!0,type:String})],Xr.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Xr.prototype,"tagname",2),h([u({attribute:"speed",reflect:!0})],Xr.prototype,"speed",2),h([u({attribute:"max-queue-size",type:Number,reflect:!0})],Xr.prototype,"maxQueueSize",2),h([dt()],Xr.prototype,"displayedText",2),h([dt()],Xr.prototype,"originalText",2),h([dt()],Xr.prototype,"typingComplete",2);var Pm=Xr;Pm.register(eE);var gI=Pm;var Nc=V.constructTagName("themeprovider"),Fm={THEMECLASS:"mds-theme-stable-darkWebex"};var Lc=class{constructor(o){this.themeclass=o}};Lc.context=Nc;var Mc=Lc;var bI=B`
7362
7391
  :host {
7363
7392
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
7364
7393
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -7378,7 +7407,7 @@
7378
7407
  * {
7379
7408
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
7380
7409
  }
7381
- `,rE=[bI];var Ia=class extends Se{constructor(){super({context:Mc.context,initialValue:new Mc(Pm.THEMECLASS)});this.themeclass=Pm.THEMECLASS}static get Context(){return Mc.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Ia.styles=[...Se.styles,...rE],h([dt()],Ia.prototype,"currentThemeClass",2),h([u({type:String})],Ia.prototype,"themeclass",2);var Fm=Ia;Fm.register(Nc);var yI=Fm;var iE=V.constructTagName("toast"),el={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Oc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},mr={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:Cr[20],BUTTON:ki,PRIMARY_BUTTON:Bt.PRIMARY,SECONDARY_BUTTON:Bt.SECONDARY,TERTIARY_BUTTON:Bt.TERTIARY,VARIANT:el.CUSTOM};var oE=a=>{switch(a){case el.SUCCESS:return Oc.SUCCESS_ICON_NAME;case el.WARNING:return Oc.WARNING_ICON_NAME;case el.ERROR:return Oc.ERROR_ICON_NAME;default:return null}};var EI=B`
7410
+ `,rE=[bI];var Ca=class extends Se{constructor(){super({context:Mc.context,initialValue:new Mc(Fm.THEMECLASS)});this.themeclass=Fm.THEMECLASS}static get Context(){return Mc.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Ca.styles=[...Se.styles,...rE],h([dt()],Ca.prototype,"currentThemeClass",2),h([u({type:String})],Ca.prototype,"themeclass",2);var $m=Ca;$m.register(Nc);var yI=$m;var iE=V.constructTagName("toast"),el={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Oc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},mr={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:Cr[20],BUTTON:ki,PRIMARY_BUTTON:Bt.PRIMARY,SECONDARY_BUTTON:Bt.SECONDARY,TERTIARY_BUTTON:Bt.TERTIARY,VARIANT:el.CUSTOM};var oE=a=>{switch(a){case el.SUCCESS:return Oc.SUCCESS_ICON_NAME;case el.WARNING:return Oc.WARNING_ICON_NAME;case el.ERROR:return Oc.ERROR_ICON_NAME;default:return null}};var EI=B`
7382
7411
  :host {
7383
7412
  --mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
7384
7413
  --mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
@@ -7473,7 +7502,7 @@
7473
7502
  mdc-text::part(text) {
7474
7503
  margin: 0;
7475
7504
  }
7476
- `,sE=[EI];var Re=class extends Ws(Q){constructor(){super(...arguments);this.variant=mr.VARIANT;this.headerTagName=mr.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasOverflowingHeaderText=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}updateDataExpanded(){this.isDetailVisible||!this.canRenderToggleButton()?this.setAttribute("data-expanded","true"):this.removeAttribute("data-expanded")}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible,this.updateDataExpanded()}updateDetailedSlotPresence(){var t,e;this.hasDetailedSlot=(e=(t=this.detailedElements)==null?void 0:t.some(i=>{var n;return(n=i.textContent)==null?void 0:n.trim()}))!=null?e:!1}updateFooterButtonsPresence(){var t,e,i,n;this.hasFooterButtons=((e=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?e:0)>0||((n=(i=this.footerButtonSecondary)==null?void 0:i.length)!=null?n:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}async firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence(),this.updateDataExpanded(),await this.updateComplete,Fl(this.headerTextElement)&&(this.hasOverflowingHeaderText=this.headerTextElement.isHeightOverflowing())}updated(t){(t.has("showMoreText")||t.has("showLessText"))&&this.updateDataExpanded()}renderIcon(t){return t?S`
7505
+ `,sE=[EI];var Re=class extends Ws(Q){constructor(){super(...arguments);this.variant=mr.VARIANT;this.headerTagName=mr.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasOverflowingHeaderText=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}updateDataExpanded(){this.isDetailVisible||!this.canRenderToggleButton()?this.setAttribute("data-expanded","true"):this.removeAttribute("data-expanded")}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible,this.updateDataExpanded()}updateDetailedSlotPresence(){var t,e;this.hasDetailedSlot=(e=(t=this.detailedElements)==null?void 0:t.some(i=>{var n;return(n=i.textContent)==null?void 0:n.trim()}))!=null?e:!1}updateFooterButtonsPresence(){var t,e,i,n;this.hasFooterButtons=((e=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?e:0)>0||((n=(i=this.footerButtonSecondary)==null?void 0:i.length)!=null?n:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}async firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence(),this.updateDataExpanded()}async updated(t){(t.has("showMoreText")||t.has("showLessText"))&&this.updateDataExpanded(),t.has("headerText")&&(await this.updateComplete,Fl(this.headerTextElement)&&(this.hasOverflowingHeaderText=this.headerTextElement.isHeightOverflowing()))}renderIcon(t){return t?S`
7477
7506
  <mdc-icon name="${t}" size="${mr.PREFIX_ICON_SIZE}" part="toast-prefix-icon"></mdc-icon>
7478
7507
  `:K}canRenderToggleButton(){return!!(this.showMoreText&&this.showLessText)}shouldRenderToggleButton(){return this.canRenderToggleButton()&&(this.hasDetailedSlot||this.hasOverflowingHeaderText)}renderToggleDetailButton(){return this.shouldRenderToggleButton()?S`
7479
7508
  <mdc-button
@@ -7520,7 +7549,7 @@
7520
7549
  ></mdc-button>
7521
7550
  </div>
7522
7551
  ${this.renderFooter()}
7523
- `}};Re.styles=[...Q.styles,...sE],h([zt("[part='toast-header']")],Re.prototype,"headerTextElement",2),h([u({type:String,reflect:!0})],Re.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],Re.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Re.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],Re.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Re.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"show-more-text"})],Re.prototype,"showMoreText",2),h([u({type:String,reflect:!0,attribute:"show-less-text"})],Re.prototype,"showLessText",2),h([dt()],Re.prototype,"isDetailVisible",2),h([dt()],Re.prototype,"hasDetailedSlot",2),h([dt()],Re.prototype,"hasOverflowingHeaderText",2),h([qt({slot:"toast-body-detailed",flatten:!0})],Re.prototype,"detailedElements",2),h([dt()],Re.prototype,"hasFooterButtons",2);var $m=Re;$m.register(iE);var TI=$m;var xI=[Tt,B`
7552
+ `}};Re.styles=[...Q.styles,...sE],h([zt("[part='toast-header']")],Re.prototype,"headerTextElement",2),h([u({type:String,reflect:!0})],Re.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],Re.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Re.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],Re.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Re.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"show-more-text"})],Re.prototype,"showMoreText",2),h([u({type:String,reflect:!0,attribute:"show-less-text"})],Re.prototype,"showLessText",2),h([dt()],Re.prototype,"isDetailVisible",2),h([dt()],Re.prototype,"hasDetailedSlot",2),h([dt()],Re.prototype,"hasOverflowingHeaderText",2),h([qt({slot:"toast-body-detailed",flatten:!0})],Re.prototype,"detailedElements",2),h([dt()],Re.prototype,"hasFooterButtons",2);var Vm=Re;Vm.register(iE);var TI=Vm;var xI=[Tt,B`
7524
7553
  :host {
7525
7554
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
7526
7555
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -7598,7 +7627,7 @@
7598
7627
  :host([soft-disabled]) {
7599
7628
  pointer-events: none;
7600
7629
  }
7601
- `,...xt(!0)],aE=xI;var _s=class extends Nt(fi(Ve(me(re(dr))))){constructor(){super(...arguments);this.checked=!1;this.size=Gp.SIZE;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:K}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===G.SPACE&&t.preventDefault(),e===G.ENTER&&this.getKeyboardNavMode()===te.DEFAULT&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(Wn).includes(t)?t:Gp.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return S`
7630
+ `,...xt(!0)],aE=xI;var _s=class extends Nt(fi(Ve(me(re(dr))))){constructor(){super(...arguments);this.checked=!1;this.size=Gp.SIZE;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:K}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===G.SPACE&&t.preventDefault(),e===G.ENTER&&this.getKeyboardNavMode()===te.DEFAULT&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(Yn).includes(t)?t:Gp.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return S`
7602
7631
  <mdc-statictoggle
7603
7632
  ?checked="${this.checked}"
7604
7633
  ?disabled="${this.disabled}"
@@ -7628,10 +7657,10 @@
7628
7657
  />
7629
7658
  </mdc-statictoggle>
7630
7659
  ${this.renderLabelAndHelperText()}
7631
- `}};_s.styles=[...dr.styles,...aE],_s.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],_s.prototype,"checked",2),h([u({type:String,reflect:!0})],_s.prototype,"size",2);var Vm=_s;Vm.register(Jb);var AI=Vm;function ws(a,o,t){var c;let e=(c=t.initialDeps)!=null?c:[],i;function n(){var f,g,A,R;let H;t.key&&((f=t.debug)!=null&&f.call(t))&&(H=Date.now());let J=a();if(!(J.length!==e.length||J.some((ot,st)=>e[st]!==ot)))return i;e=J;let Z;if(t.key&&((g=t.debug)!=null&&g.call(t))&&(Z=Date.now()),i=o(...J),t.key&&((A=t.debug)!=null&&A.call(t))){let ot=Math.round((Date.now()-H)*100)/100,st=Math.round((Date.now()-Z)*100)/100,ht=st/16,bt=(yt,It)=>{for(yt=String(yt);yt.length<It;)yt=" "+yt;return yt};console.info(`%c\u23F1 ${bt(st,5)} /${bt(ot,5)} ms`,`
7660
+ `}};_s.styles=[...dr.styles,...aE],_s.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],_s.prototype,"checked",2),h([u({type:String,reflect:!0})],_s.prototype,"size",2);var zm=_s;zm.register(ty);var AI=zm;function ws(a,o,t){var c;let e=(c=t.initialDeps)!=null?c:[],i;function n(){var f,g,A,R;let H;t.key&&((f=t.debug)!=null&&f.call(t))&&(H=Date.now());let J=a();if(!(J.length!==e.length||J.some((ot,st)=>e[st]!==ot)))return i;e=J;let Z;if(t.key&&((g=t.debug)!=null&&g.call(t))&&(Z=Date.now()),i=o(...J),t.key&&((A=t.debug)!=null&&A.call(t))){let ot=Math.round((Date.now()-H)*100)/100,st=Math.round((Date.now()-Z)*100)/100,ht=st/16,bt=(yt,It)=>{for(yt=String(yt);yt.length<It;)yt=" "+yt;return yt};console.info(`%c\u23F1 ${bt(st,5)} /${bt(ot,5)} ms`,`
7632
7661
  font-size: .6rem;
7633
7662
  font-weight: bold;
7634
- color: hsl(${Math.max(0,Math.min(120-120*ht,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(R=t==null?void 0:t.onChange)==null||R.call(t,i),i}return n.updateDeps=f=>{e=f},n}function zm(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var nE=(a,o)=>Math.abs(a-o)<1.01,lE=(a,o,t)=>{let e;return function(...i){a.clearTimeout(e),e=a.setTimeout(()=>o.apply(this,i),t)}};var dE=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},SI=a=>a,Bm=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),e=[];for(let i=o;i<=t;i++)e.push(i);return e},pE=(a,o)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let i=c=>{let{width:f,height:g}=c;o({width:Math.round(f),height:Math.round(g)})};if(i(dE(t)),!e.ResizeObserver)return()=>{};let n=new e.ResizeObserver(c=>{let f=()=>{let g=c[0];if(g!=null&&g.borderBoxSize){let A=g.borderBoxSize[0];if(A){i({width:A.inlineSize,height:A.blockSize});return}}i(dE(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return n.observe(t,{box:"border-box"}),()=>{n.unobserve(t)}},cE={passive:!0};var hE=typeof window>"u"?!0:"onscrollend"in window,mE=(a,o)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let i=0,n=a.options.useScrollendEvent&&hE?()=>{}:lE(e,()=>{o(i,!1)},a.options.isScrollingResetDelay),c=R=>()=>{let{horizontal:H,isRtl:J}=a.options;i=H?t.scrollLeft*(J&&-1||1):t.scrollTop,n(),o(i,R)},f=c(!0),g=c(!1);g(),t.addEventListener("scroll",f,cE);let A=a.options.useScrollendEvent&&hE;return A&&t.addEventListener("scrollend",g,cE),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",g)}};var II=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let e=o.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var uE=(a,{adjustments:o=0,behavior:t},e)=>{var i,n;let c=a+o;(n=(i=e.scrollElement)==null?void 0:i.scrollTo)==null||n.call(i,{[e.options.horizontal?"left":"top"]:c,behavior:t})},Rc=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,e=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(i=>{i.forEach(n=>{let c=()=>{this._measureElement(n.target,n)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var i;(i=e())==null||i.disconnect(),t=null},observe:i=>{var n;return(n=e())==null?void 0:n.observe(i,{box:"border-box"})},unobserve:i=>{var n;return(n=e())==null?void 0:n.unobserve(i)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([e,i])=>{typeof i>"u"&&delete t[e]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:SI,rangeExtractor:Bm,onChange:()=>{},measureElement:II,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var e,i;(i=(e=this.options).onChange)==null||i.call(e,this,t)},this.maybeNotify=ws(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var t;let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(t=this.scrollElement)==null?void 0:t.window)!=null?i:null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,e)=>{let i=new Map,n=new Map;for(let c=e-1;c>=0;c--){let f=t[c];if(i.has(f.lane))continue;let g=n.get(f.lane);if(g==null||f.end>g.end?n.set(f.lane,f):f.end<g.end&&i.set(f.lane,!0),i.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=ws(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,i,n,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:i,getItemKey:n,enabled:c}),{key:!1}),this.getMeasurements=ws(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:i,getItemKey:n,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(R=>{this.itemSizeCache.set(R.key,R.size)}));let g=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,g);for(let R=g;R<t;R++){let H=n(R),J=this.options.lanes===1?A[R-1]:this.getFurthestMeasurement(A,R),q=J?J.end+this.options.gap:e+i,Z=f.get(H),ot=typeof Z=="number"?Z:this.options.estimateSize(R),st=q+ot,ht=J?J.lane:R%this.options.lanes;A[R]={index:R,start:q,size:ot,end:st,key:H,lane:ht}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ws(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,i,n)=>this.range=t.length>0&&e>0?CI({measurements:t,outerSize:e,scrollOffset:i,lanes:n}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ws(()=>{let t=null,e=null,i=this.calculateRange();return i&&(t=i.startIndex,e=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,i,n,c)=>n===null||c===null?[]:t({startIndex:n,endIndex:c,overscan:e,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let e=this.options.indexAttribute,i=t.getAttribute(e);return i?parseInt(i,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{let i=this.indexFromElement(t),n=this.measurementsCache[i];if(!n)return;let c=n.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(i,this.options.measureElement(t,e,this))},this.resizeItem=(t,e)=>{var f;let i=this.measurementsCache[t];if(!i)return;let n=(f=this.itemSizeCache.get(i.key))!=null?f:i.size,c=e-n;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,c,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,e)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((e,i)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(i))});return}this._measureElement(t,void 0)},this.getVirtualItems=ws(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let i=[];for(let n=0,c=t.length;n<c;n++){let f=t[n],g=e[f];i.push(g)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return zm(e[fE(0,e.length-1,i=>zm(e[i]).start,t)])},this.getOffsetForAlignment=(t,e,i=0)=>{let n=this.getSize(),c=this.getScrollOffset();e==="auto"&&(e=t>=c+n?"end":"start"),e==="center"?t+=(i-n)/2:e==="end"&&(t-=n);let f=this.getTotalSize()+this.options.scrollMargin-n;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let i=this.measurementsCache[t];if(!i)return;let n=this.getSize(),c=this.getScrollOffset();if(e==="auto")if(i.end>=c+n-this.options.scrollPaddingEnd)e="end";else if(i.start<=c+this.options.scrollPaddingStart)e="start";else return[c,e];let f=e==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,e,i.size),e]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:e="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,e),{adjustments:void 0,behavior:i})},this.scrollToIndex=(t,{align:e="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let n=0,c=10,f=A=>{if(!this.targetWindow)return;let R=this.getOffsetForIndex(t,A);if(!R){console.warn("Failed to get offset for index:",t);return}let[H,J]=R;this._scrollToOffset(H,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{let q=this.getScrollOffset(),Z=this.getOffsetForIndex(t,J);if(!Z){console.warn("Failed to get offset for index:",t);return}nE(Z[0],q)||g(J)})},g=A=>{this.targetWindow&&(n++,n<c?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${c} attempts.`))};f(e)},this.scrollBy=(t,{behavior:e}={})=>{e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:e})},this.getTotalSize=()=>{var n;var t;let e=this.getMeasurements(),i;if(e.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=(n=(t=e[e.length-1])==null?void 0:t.end)!=null?n:0;else{let c=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&c.some(g=>g===null);){let g=e[f];c[g.lane]===null&&(c[g.lane]=g.end),f--}i=Math.max(...c.filter(g=>g!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:e,behavior:i})=>{this.options.scrollToFn(t,{behavior:i,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},fE=(a,o,t,e)=>{for(;a<=o;){let i=(a+o)/2|0,n=t(i);if(n<e)a=i+1;else if(n>e)o=i-1;else return i}return a>0?a-1:0};function CI({measurements:a,outerSize:o,scrollOffset:t,lanes:e}){let i=a.length-1,n=g=>a[g].start;if(a.length<=e)return{startIndex:0,endIndex:i};let c=fE(0,i,n,t),f=c;if(e===1)for(;f<i&&a[f].end<t+o;)f++;else if(e>1){let g=Array(e).fill(0);for(;f<i&&g.some(R=>R<t+o);){let R=a[f];g[R.lane]=R.end,f++}let A=Array(e).fill(t+o);for(;c>=0&&A.some(R=>R>=t);){let R=a[c];A[R.lane]=R.start,c--}c=Math.max(0,c-c%e),f=Math.min(i,f+(e-1-f%e))}return{startIndex:c,endIndex:f}}var Hm=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let e={...t,onChange:(i,n)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,i,n)}};this.virtualizer=new Rc(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Dc=class extends Hm{constructor(o,t){super(o,{observeElementRect:pE,observeElementOffset:mE,scrollToFn:uE,...t})}};var _I={includeEnd:!1},Pc=class{constructor(o,t,e={}){let i={..._I,...e};this.start=o,this.end=t,this.includeEnd=i.includeEnd}includes(o){let{start:t,end:e,includeEnd:i}=this,n=Math.min(t,e),c=Math.max(t,e);return i?o>=n&&o<=c:o>=n&&o<c}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:e,end:i}=this,n=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=n;return n+=t,(e?f>i:f>=i)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Fc=class{constructor(o,t,e){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=e}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((e,i,n)=>o.call(t,e,this.getIndex(e),n))}forEach(o,t){this.items.forEach((e,i,n)=>{o.call(t,e,this.getIndex(e),n)})}findIndex(o,t){let e=this.items.find((i,n,c)=>o.call(t,i,this.getIndex(i),c));return e?this.getIndex(e):-1}find(o,t){return this.items.find((e,i,n)=>o.call(t,e,this.getIndex(e),n))}};var wI=[B`
7663
+ color: hsl(${Math.max(0,Math.min(120-120*ht,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(R=t==null?void 0:t.onChange)==null||R.call(t,i),i}return n.updateDeps=f=>{e=f},n}function Bm(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var nE=(a,o)=>Math.abs(a-o)<1.01,lE=(a,o,t)=>{let e;return function(...i){a.clearTimeout(e),e=a.setTimeout(()=>o.apply(this,i),t)}};var dE=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},SI=a=>a,Hm=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),e=[];for(let i=o;i<=t;i++)e.push(i);return e},pE=(a,o)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let i=c=>{let{width:f,height:g}=c;o({width:Math.round(f),height:Math.round(g)})};if(i(dE(t)),!e.ResizeObserver)return()=>{};let n=new e.ResizeObserver(c=>{let f=()=>{let g=c[0];if(g!=null&&g.borderBoxSize){let A=g.borderBoxSize[0];if(A){i({width:A.inlineSize,height:A.blockSize});return}}i(dE(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return n.observe(t,{box:"border-box"}),()=>{n.unobserve(t)}},cE={passive:!0};var hE=typeof window>"u"?!0:"onscrollend"in window,mE=(a,o)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let i=0,n=a.options.useScrollendEvent&&hE?()=>{}:lE(e,()=>{o(i,!1)},a.options.isScrollingResetDelay),c=R=>()=>{let{horizontal:H,isRtl:J}=a.options;i=H?t.scrollLeft*(J&&-1||1):t.scrollTop,n(),o(i,R)},f=c(!0),g=c(!1);g(),t.addEventListener("scroll",f,cE);let A=a.options.useScrollendEvent&&hE;return A&&t.addEventListener("scrollend",g,cE),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",g)}};var II=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let e=o.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var uE=(a,{adjustments:o=0,behavior:t},e)=>{var i,n;let c=a+o;(n=(i=e.scrollElement)==null?void 0:i.scrollTo)==null||n.call(i,{[e.options.horizontal?"left":"top"]:c,behavior:t})},Rc=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,e=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(i=>{i.forEach(n=>{let c=()=>{this._measureElement(n.target,n)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var i;(i=e())==null||i.disconnect(),t=null},observe:i=>{var n;return(n=e())==null?void 0:n.observe(i,{box:"border-box"})},unobserve:i=>{var n;return(n=e())==null?void 0:n.unobserve(i)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([e,i])=>{typeof i>"u"&&delete t[e]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:SI,rangeExtractor:Hm,onChange:()=>{},measureElement:II,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var e,i;(i=(e=this.options).onChange)==null||i.call(e,this,t)},this.maybeNotify=ws(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var t;let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(t=this.scrollElement)==null?void 0:t.window)!=null?i:null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,e)=>{let i=new Map,n=new Map;for(let c=e-1;c>=0;c--){let f=t[c];if(i.has(f.lane))continue;let g=n.get(f.lane);if(g==null||f.end>g.end?n.set(f.lane,f):f.end<g.end&&i.set(f.lane,!0),i.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=ws(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,i,n,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:i,getItemKey:n,enabled:c}),{key:!1}),this.getMeasurements=ws(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:i,getItemKey:n,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(R=>{this.itemSizeCache.set(R.key,R.size)}));let g=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,g);for(let R=g;R<t;R++){let H=n(R),J=this.options.lanes===1?A[R-1]:this.getFurthestMeasurement(A,R),q=J?J.end+this.options.gap:e+i,Z=f.get(H),ot=typeof Z=="number"?Z:this.options.estimateSize(R),st=q+ot,ht=J?J.lane:R%this.options.lanes;A[R]={index:R,start:q,size:ot,end:st,key:H,lane:ht}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ws(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,i,n)=>this.range=t.length>0&&e>0?CI({measurements:t,outerSize:e,scrollOffset:i,lanes:n}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ws(()=>{let t=null,e=null,i=this.calculateRange();return i&&(t=i.startIndex,e=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,i,n,c)=>n===null||c===null?[]:t({startIndex:n,endIndex:c,overscan:e,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let e=this.options.indexAttribute,i=t.getAttribute(e);return i?parseInt(i,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{let i=this.indexFromElement(t),n=this.measurementsCache[i];if(!n)return;let c=n.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(i,this.options.measureElement(t,e,this))},this.resizeItem=(t,e)=>{var f;let i=this.measurementsCache[t];if(!i)return;let n=(f=this.itemSizeCache.get(i.key))!=null?f:i.size,c=e-n;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,c,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,e)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((e,i)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(i))});return}this._measureElement(t,void 0)},this.getVirtualItems=ws(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let i=[];for(let n=0,c=t.length;n<c;n++){let f=t[n],g=e[f];i.push(g)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return Bm(e[fE(0,e.length-1,i=>Bm(e[i]).start,t)])},this.getOffsetForAlignment=(t,e,i=0)=>{let n=this.getSize(),c=this.getScrollOffset();e==="auto"&&(e=t>=c+n?"end":"start"),e==="center"?t+=(i-n)/2:e==="end"&&(t-=n);let f=this.getTotalSize()+this.options.scrollMargin-n;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let i=this.measurementsCache[t];if(!i)return;let n=this.getSize(),c=this.getScrollOffset();if(e==="auto")if(i.end>=c+n-this.options.scrollPaddingEnd)e="end";else if(i.start<=c+this.options.scrollPaddingStart)e="start";else return[c,e];let f=e==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,e,i.size),e]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:e="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,e),{adjustments:void 0,behavior:i})},this.scrollToIndex=(t,{align:e="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let n=0,c=10,f=A=>{if(!this.targetWindow)return;let R=this.getOffsetForIndex(t,A);if(!R){console.warn("Failed to get offset for index:",t);return}let[H,J]=R;this._scrollToOffset(H,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{let q=this.getScrollOffset(),Z=this.getOffsetForIndex(t,J);if(!Z){console.warn("Failed to get offset for index:",t);return}nE(Z[0],q)||g(J)})},g=A=>{this.targetWindow&&(n++,n<c?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${c} attempts.`))};f(e)},this.scrollBy=(t,{behavior:e}={})=>{e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:e})},this.getTotalSize=()=>{var n;var t;let e=this.getMeasurements(),i;if(e.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=(n=(t=e[e.length-1])==null?void 0:t.end)!=null?n:0;else{let c=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&c.some(g=>g===null);){let g=e[f];c[g.lane]===null&&(c[g.lane]=g.end),f--}i=Math.max(...c.filter(g=>g!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:e,behavior:i})=>{this.options.scrollToFn(t,{behavior:i,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},fE=(a,o,t,e)=>{for(;a<=o;){let i=(a+o)/2|0,n=t(i);if(n<e)a=i+1;else if(n>e)o=i-1;else return i}return a>0?a-1:0};function CI({measurements:a,outerSize:o,scrollOffset:t,lanes:e}){let i=a.length-1,n=g=>a[g].start;if(a.length<=e)return{startIndex:0,endIndex:i};let c=fE(0,i,n,t),f=c;if(e===1)for(;f<i&&a[f].end<t+o;)f++;else if(e>1){let g=Array(e).fill(0);for(;f<i&&g.some(R=>R<t+o);){let R=a[f];g[R.lane]=R.end,f++}let A=Array(e).fill(t+o);for(;c>=0&&A.some(R=>R>=t);){let R=a[c];A[R.lane]=R.start,c--}c=Math.max(0,c-c%e),f=Math.min(i,f+(e-1-f%e))}return{startIndex:c,endIndex:f}}var Um=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let e={...t,onChange:(i,n)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,i,n)}};this.virtualizer=new Rc(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Dc=class extends Um{constructor(o,t){super(o,{observeElementRect:pE,observeElementOffset:mE,scrollToFn:uE,...t})}};var _I={includeEnd:!1},Pc=class{constructor(o,t,e={}){let i={..._I,...e};this.start=o,this.end=t,this.includeEnd=i.includeEnd}includes(o){let{start:t,end:e,includeEnd:i}=this,n=Math.min(t,e),c=Math.max(t,e);return i?o>=n&&o<=c:o>=n&&o<c}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:e,end:i}=this,n=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=n;return n+=t,(e?f>i:f>=i)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Fc=class{constructor(o,t,e){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=e}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((e,i,n)=>o.call(t,e,this.getIndex(e),n))}forEach(o,t){this.items.forEach((e,i,n)=>{o.call(t,e,this.getIndex(e),n)})}findIndex(o,t){let e=this.items.find((i,n,c)=>o.call(t,i,this.getIndex(i),c));return e?this.getIndex(e):-1}find(o,t){return this.items.find((e,i,n)=>o.call(t,e,this.getIndex(e),n))}};var wI=[B`
7635
7664
  :host {
7636
7665
  height: 100%;
7637
7666
  }
@@ -7661,7 +7690,7 @@
7661
7690
  ::slotted(mdc-listitem) {
7662
7691
  position: relative;
7663
7692
  }
7664
- `],vE=wI;var gE=V.constructTagName("virtualizedlist"),Rit=V.constructTagName("virtualizedwrapper"),Ca={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var ur=class extends re(Ui){constructor(){super();this.virtualizerProps=Ca.VIRTUALIZER_PROPS;this.loop=Ca.LOOP;this.scrollAnchoring=Ca.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=Ca.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var e,i;this.observeSizeChanges&&this.navItems.find(n=>n===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=$n.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Qt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:Ca.VIRTUALIZER_PROPS.isItemNavigable}get virtualItems(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?e:[]}get navItems(){var t,e,i,n;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let c=(n=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?n:"data-index";this.virtualizedNavItems=new Fc(super.navItems,f=>Number(f.getAttribute(c)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?e:0}connectedCallback(){this.virtualizerController=new Dc(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no",this.resizeObserver=new ResizeObserver(this.handleResizeObserverCallback.bind(this)),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}async update(t){super.update(t),t.has("orientation")&&this.orientation!==$n.VERTICAL&&(this.orientation=$n.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,n;this.observeSizeChanges&&((n=(i=this.virtualizer)==null?void 0:i.measureElement)==null||n.call(i,e))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var n,c;let{virtualizer:e}=this;if(!e)return;let i=e.measurementsCache.slice();if(e.setOptions({...e.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&i.length>0){let f=Math.abs(this.virtualizerProps.count-((n=t==null?void 0:t.count)!=null?n:0)),g=this.selectedIndex,A=this.firstKey,R=new Pc(g-f,g+f,{includeEnd:!0}),H=(c=Array.from(R).find(q=>e.options.getItemKey(q)===this.selectedKey))!=null?c:this.selectedIndex;if(this.setSelectedIndex(H),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&g!==this.selectedIndex||!this.focusWithin&&this.firstKey!==A){let q=e.measurementsCache[this.selectedIndex].end-i[g].end;this.scrollRef.scrollTop+=q}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var e,i,n,c,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(c=(n=this.virtualizer)==null?void 0:n.getVirtualItems)==null?void 0:c.call(n))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var g,A,R,H;let{navItems:e,virtualizerProps:i,virtualizer:n}=this,c=(A=(g=i.rangeExtractor)==null?void 0:g.call(i,t))!=null?A:Bm(t);return this.hiddenIndexes.forEach(J=>{let q=e.at(J);q&&(q.removeAttribute("data-virtualized-hidden"),q.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(H=(R=this.virtualizer)==null?void 0:R.options.getItemKey(this.firstIndex))!=null?H:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(J=>{var q;c.includes(J)||(J<t.startIndex&&J>=0&&(c.unshift(J),this.hiddenIndexes.push(J)),J>t.endIndex&&J<((q=n==null?void 0:n.options.count)!=null?q:0)&&(c.push(J),this.hiddenIndexes.push(J)))}),this.updateHiddenItemsPosition(t),c.sort((J,q)=>J-q),c}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:n}=this;if(!n||i.count===0)return;let{measurementsCache:c}=n;this.hiddenIndexes.forEach(f=>{let g=e.at(f);if(g){let A=Math.max(t.startIndex-t.overscan,0),R=c[A],H=c[f];g.setAttribute("data-virtualized-hidden","true"),g.style.setProperty("--mdc-virtualizedlist-hidden-top",`${H.start-R.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){var i;if(e==="added"){let n=this.isElementSelected(t);if(t.tabIndex=n?0:-1,!n&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let c=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);c!==void 0&&this.setSelectedIndex(c)}this.setAriaSetSize(t)}else e==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,e){this.syncUI(),await this.updateComplete,this.requestUpdate(),!e&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(i=>i()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let e=t.target;this.atBottom==="re-evaluate"||e.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=e.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&e>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=e-i<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var i,n,c,f;switch(this.getActionForKeyEvent(t)){case G.HOME:{(n=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||n.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case G.END:{let g=this.virtualizerProps.count-1;(f=(c=this.virtualizer)==null?void 0:c.scrollToIndex)==null||f.call(c,g,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(g));break}case G.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,e=!0){super.resetTabIndexes(t,e),this.setSelectedIndex(t)}findNextNavigableIndex(t,e){let{count:i}=this.virtualizerProps;for(let n=t;n>=0&&n<i;n+=e)if(this.isItemNavigable(n))return n;return null}resetTabIndexAndSetFocus(t,e,i=!0,n=i){if(this.navItems.find(g=>{var A;return((A=this.virtualizer)==null?void 0:A.indexFromElement(g))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let g=t>=e?1:-1,A=this.findNextNavigableIndex(t+g,g);return A!==null?this.resetTabIndexAndSetFocus(A,e,i,n):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,n),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,n);return this.setSelectedIndex(t),f}setAriaSetSize(t){var e,i;t.setAttribute("aria-setsize",`${(i=(e=this.virtualizer)==null?void 0:e.options.count)!=null?i:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=e-t-i),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,e){var i,n;(n=(i=this.virtualizer).scrollToIndex)==null||n.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var n;let t=this.virtualItems.find(({index:c})=>!this.hiddenIndexes.includes(c)),e=(n=t==null?void 0:t.start)!=null?n:0;window.getComputedStyle(this);let i=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(i=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${i+e}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return S`
7693
+ `],vE=wI;var gE=V.constructTagName("virtualizedlist"),Rit=V.constructTagName("virtualizedwrapper"),_a={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var ur=class extends re(Ui){constructor(){super();this.virtualizerProps=_a.VIRTUALIZER_PROPS;this.loop=_a.LOOP;this.scrollAnchoring=_a.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=_a.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var e,i;this.observeSizeChanges&&this.navItems.find(n=>n===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Vn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Qt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:_a.VIRTUALIZER_PROPS.isItemNavigable}get virtualItems(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?e:[]}get navItems(){var t,e,i,n;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let c=(n=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?n:"data-index";this.virtualizedNavItems=new Fc(super.navItems,f=>Number(f.getAttribute(c)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?e:0}connectedCallback(){this.virtualizerController=new Dc(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no",this.resizeObserver=new ResizeObserver(this.handleResizeObserverCallback.bind(this)),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}async update(t){super.update(t),t.has("orientation")&&this.orientation!==Vn.VERTICAL&&(this.orientation=Vn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,n;this.observeSizeChanges&&((n=(i=this.virtualizer)==null?void 0:i.measureElement)==null||n.call(i,e))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var n,c;let{virtualizer:e}=this;if(!e)return;let i=e.measurementsCache.slice();if(e.setOptions({...e.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&i.length>0){let f=Math.abs(this.virtualizerProps.count-((n=t==null?void 0:t.count)!=null?n:0)),g=this.selectedIndex,A=this.firstKey,R=new Pc(g-f,g+f,{includeEnd:!0}),H=(c=Array.from(R).find(q=>e.options.getItemKey(q)===this.selectedKey))!=null?c:this.selectedIndex;if(this.setSelectedIndex(H),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&g!==this.selectedIndex||!this.focusWithin&&this.firstKey!==A){let q=e.measurementsCache[this.selectedIndex].end-i[g].end;this.scrollRef.scrollTop+=q}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var e,i,n,c,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(c=(n=this.virtualizer)==null?void 0:n.getVirtualItems)==null?void 0:c.call(n))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var g,A,R,H;let{navItems:e,virtualizerProps:i,virtualizer:n}=this,c=(A=(g=i.rangeExtractor)==null?void 0:g.call(i,t))!=null?A:Hm(t);return this.hiddenIndexes.forEach(J=>{let q=e.at(J);q&&(q.removeAttribute("data-virtualized-hidden"),q.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(H=(R=this.virtualizer)==null?void 0:R.options.getItemKey(this.firstIndex))!=null?H:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(J=>{var q;c.includes(J)||(J<t.startIndex&&J>=0&&(c.unshift(J),this.hiddenIndexes.push(J)),J>t.endIndex&&J<((q=n==null?void 0:n.options.count)!=null?q:0)&&(c.push(J),this.hiddenIndexes.push(J)))}),this.updateHiddenItemsPosition(t),c.sort((J,q)=>J-q),c}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:n}=this;if(!n||i.count===0)return;let{measurementsCache:c}=n;this.hiddenIndexes.forEach(f=>{let g=e.at(f);if(g){let A=Math.max(t.startIndex-t.overscan,0),R=c[A],H=c[f];g.setAttribute("data-virtualized-hidden","true"),g.style.setProperty("--mdc-virtualizedlist-hidden-top",`${H.start-R.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){var i;if(e==="added"){let n=this.isElementSelected(t);if(t.tabIndex=n?0:-1,!n&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let c=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);c!==void 0&&this.setSelectedIndex(c)}this.setAriaSetSize(t)}else e==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,e){this.syncUI(),await this.updateComplete,this.requestUpdate(),!e&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(i=>i()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let e=t.target;this.atBottom==="re-evaluate"||e.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=e.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&e>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=e-i<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var i,n,c,f;switch(this.getActionForKeyEvent(t)){case G.HOME:{(n=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||n.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case G.END:{let g=this.virtualizerProps.count-1;(f=(c=this.virtualizer)==null?void 0:c.scrollToIndex)==null||f.call(c,g,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(g));break}case G.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,e=!0){super.resetTabIndexes(t,e),this.setSelectedIndex(t)}findNextNavigableIndex(t,e){let{count:i}=this.virtualizerProps;for(let n=t;n>=0&&n<i;n+=e)if(this.isItemNavigable(n))return n;return null}resetTabIndexAndSetFocus(t,e,i=!0,n=i){if(this.navItems.find(g=>{var A;return((A=this.virtualizer)==null?void 0:A.indexFromElement(g))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let g=t>=e?1:-1,A=this.findNextNavigableIndex(t+g,g);return A!==null?this.resetTabIndexAndSetFocus(A,e,i,n):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,n),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,n);return this.setSelectedIndex(t),f}setAriaSetSize(t){var e,i;t.setAttribute("aria-setsize",`${(i=(e=this.virtualizer)==null?void 0:e.options.count)!=null?i:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=e-t-i),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,e){var i,n;(n=(i=this.virtualizer).scrollToIndex)==null||n.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var n;let t=this.virtualItems.find(({index:c})=>!this.hiddenIndexes.includes(c)),e=(n=t==null?void 0:t.start)!=null?n:0;window.getComputedStyle(this);let i=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(i=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${i+e}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return S`
7665
7694
  <slot name="list-header"></slot>
7666
7695
  <div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
7667
7696
  <div part="wrapper">
@@ -7670,7 +7699,7 @@
7670
7699
  </div>
7671
7700
  </div>
7672
7701
  </div>
7673
- `}};ur.styles=[...Ui.styles,...vE],h([u({type:Object})],ur.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],ur.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],ur.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],ur.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],ur.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],ur.prototype,"atBottomThreshold",2),h([zt('[part="scroll"]',!0)],ur.prototype,"scrollRef",2),h([zt('[part="wrapper"]',!0)],ur.prototype,"wrapperRef",2),h([zt('[part="container"]',!0)],ur.prototype,"containerRef",2),h([ff({passive:!0})],ur.prototype,"onScrollHandler",1);var Um=ur;Um.register(gE);var kI=Um;ve.register(bf);var NI=ve;var bE=V.constructTagName("combobox"),Gm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Km={MATCH_STARTS_WITH:"match-starts-with",NONE:"none"},yE="list";var Wm="combobox-trigger-id";var Oo=class{static dispatchComboboxEvent(o,t,e,i=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:e==null?void 0:e.value,label:e==null?void 0:e.label},composed:!0,bubbles:i}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var LI=B`
7702
+ `}};ur.styles=[...Ui.styles,...vE],h([u({type:Object})],ur.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],ur.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],ur.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],ur.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],ur.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],ur.prototype,"atBottomThreshold",2),h([zt('[part="scroll"]',!0)],ur.prototype,"scrollRef",2),h([zt('[part="wrapper"]',!0)],ur.prototype,"wrapperRef",2),h([zt('[part="container"]',!0)],ur.prototype,"containerRef",2),h([vf({passive:!0})],ur.prototype,"onScrollHandler",1);var Gm=ur;Gm.register(gE);var kI=Gm;ve.register(yf);var NI=ve;var bE=V.constructTagName("combobox"),Km={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Wm={MATCH_STARTS_WITH:"match-starts-with",NONE:"none"},yE="list";var Ym="combobox-trigger-id";var Oo=class{static dispatchComboboxEvent(o,t,e,i=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:e==null?void 0:e.value,label:e==null?void 0:e.label},composed:!0,bubbles:i}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var LI=B`
7674
7703
  :host {
7675
7704
  --mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
7676
7705
  --mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
@@ -7779,7 +7808,7 @@
7779
7808
  --mdc-icon-fill-color: ButtonText;
7780
7809
  }
7781
7810
  }
7782
- `,EE=[LI];var ke=class extends Ot(Nt(ui(Ve(me(re(fi(Zt))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.filter=Km.MATCH_STARTS_WITH;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,i,n)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&n.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(c=>c.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let c=t;if(c&&(!this.isValidItem(c)||c.tabIndex!==0))return;let f=this.navItems.findIndex(A=>A===c);if(f===-1)return;let g=f+1;g>=this.navItems.length&&(g=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled"){this.updateHiddenOptions();return}let e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}get listboxId(){return`${this.inputId}-listbox`}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(xr)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}matchesFilter(t,e){return typeof this.filter=="function"?this.filter(t,e):this.filter===Km.NONE?!0:this.compareOptionWithValue(t,e)}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.matchesFilter(e,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,e=!0,i=!1){let n=(t==null?void 0:t.getAttribute("label"))||"",c=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===c&&this.filteredValue===n)){if(this.controlType==="controlled"&&!i){e&&(Oo.onInputCombobox(this,t),Oo.onChangeCombobox(this,t));return}this.filteredValue=n,this.value=c,this.lastCommittedValue=c,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!i&&t&&(Oo.onInputCombobox(this,t),Oo.onChangeCombobox(this,t))}}resetSelectedValue(){this.controlType!=="controlled"&&(this.value=""),this.internals.setFormValue(this.value),this.resetHelpText()}resetHelpText(){this.invalidCustomValueText&&this.helpText===this.invalidCustomValueText&&(this.helpText="",this.helpTextType=oe.DEFAULT)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t==="value"&&this.navItems.length&&!(e===null&&i==="")){let n=null;if(i!==""){let c=this.getFirstSelectedOption(),f=this.navItems.find(g=>g.value===i);if(f)n=f;else if(c)n=c;else if(this.placeholder)n=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(n,!1,!0)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let e=this.getFirstSelectedOption();e&&this.controlType!=="controlled"?(this.initialSelectedOption=e,this.setSelectedValue(e)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(i=>{i.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(e=>e.value===this.value);t&&this.setSelectedValue(t,!1,!0)}updated(t){var i,n;super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes));let e=(i=this.slottedListboxes)==null?void 0:i[0];e&&(e.id=this.listboxId,e.setAttribute("aria-label",this.label||this.dataAriaLabel||""),(n=this.visualCombobox)==null||n.setAttribute("aria-controls",this.listboxId)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,e;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var e;let t=this.initialSelectedOption||null;this.setSelectedValue(t,!1,!0),this.controlType!=="controlled"&&(this.filteredValue=(e=t==null?void 0:t.label)!=null?e:""),this.setInputValidity()}formStateRestoreCallback(t){let e=this.navItems.find(i=>i.value===t||i.label===t);this.setSelectedValue(e||null,!1,!0)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(e=>{e.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,e){t!==void 0&&(e?(t.setAttribute("data-focused",""),this.openTooltipIfExists(t)):(t.removeAttribute("data-focused"),this.closeTooltipIfExists(t)),t.setAttribute("aria-selected",e.toString()))}openTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"]`);i==null||i.setAttribute("visible","")}closeTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"][visible]`);i&&i.removeAttribute("visible")}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),e=t.findIndex(n=>n.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let i=this.navItems.find(n=>(n.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(i){this.setSelectedValue(i),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let n=this.navItems.find(c=>c.value===this.lastCommittedValue);this.setSelectedValue(n)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=oe.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,i){var n;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[i],!0),(n=t[i])==null||n.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let e=this.getVisibleOptions(this.filteredValue).filter(c=>!c.hasAttribute("disabled")),i=e.findIndex(c=>c.hasAttribute("data-focused")),n=this.getKeyboardNavMode()===te.SPATIAL;switch(this.getActionForKeyEvent(t)){case G.DOWN:{if(!n)this.openPopover();else if(!this.isOpen)break;let c=e.length-1===i?0:i+1;this.updateFocusAndScrollIntoView(e,i,c),t.preventDefault(),this.keyDownEventHandled();break}case G.UP:{if(!n)this.openPopover();else if(!this.isOpen)break;let c=i===-1||i===0?e.length-1:i-1;this.updateFocusAndScrollIntoView(e,i,c),t.preventDefault(),this.keyDownEventHandled();break}case G.ENTER:{if(n&&!this.isOpen)this.openPopover();else{if(i===-1)return;this.setSelectedValue(e[i]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case G.ESCAPE:{i!==-1&&this.updateOptionAttributes(e[i],!1),e.length&&this.shouldDisplayPopover(e.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case G.TAB:{this.closePopover(),this.keyDownEventHandled();break}case G.HOME:case G.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(i=>{var f;let n=this.matchesFilter(i,this.filteredValue);n?i.removeAttribute("data-hidden"):i.setAttribute("data-hidden","");let c=i.parentElement;if(c&&c.matches(pc)){let g=c;e.add(g),n&&t.set(g,((f=t.get(g))!=null?f:0)+1)}}),e.forEach(i=>{var f;let n=((f=t.get(i))!=null?f:0)>0,c=i.nextElementSibling;n?(i.removeAttribute("data-hidden"),c&&c.matches(Mn)&&c.removeAttribute("data-hidden")):(i.setAttribute("data-hidden",""),c&&c.matches(Mn)&&c.setAttribute("data-hidden",""))})}handleInputChange(t){var e;t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(e=this.getFirstSelectedOption())==null||e.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),Oo.onInputCombobox(this,{value:this.filteredValue})}handleOptionsClick(t){var i;t.preventDefault(),t.stopPropagation();let e=(i=t.target.closest(xr))!=null?i:null;e&&!e.hasAttribute("disabled")&&(this.setSelectedValue(e),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t||this.noResultText?this.isOpen:!1}renderNativeInput(){return S`
7811
+ `,EE=[LI];var ke=class extends Ot(Nt(ui(Ve(me(re(fi(Zt))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.filter=Wm.MATCH_STARTS_WITH;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,i,n)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&n.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(c=>c.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let c=t;if(c&&(!this.isValidItem(c)||c.tabIndex!==0))return;let f=this.navItems.findIndex(A=>A===c);if(f===-1)return;let g=f+1;g>=this.navItems.length&&(g=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled"){this.updateHiddenOptions();return}let e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}get listboxId(){return`${this.inputId}-listbox`}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(xr)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}matchesFilter(t,e){return typeof this.filter=="function"?this.filter(t,e):this.filter===Wm.NONE?!0:this.compareOptionWithValue(t,e)}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.matchesFilter(e,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,e=!0,i=!1){let n=(t==null?void 0:t.getAttribute("label"))||"",c=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===c&&this.filteredValue===n)){if(this.controlType==="controlled"&&!i){e&&(Oo.onInputCombobox(this,t),Oo.onChangeCombobox(this,t));return}this.filteredValue=n,this.value=c,this.lastCommittedValue=c,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!i&&t&&(Oo.onInputCombobox(this,t),Oo.onChangeCombobox(this,t))}}resetSelectedValue(){this.controlType!=="controlled"&&(this.value=""),this.internals.setFormValue(this.value),this.resetHelpText()}resetHelpText(){this.invalidCustomValueText&&this.helpText===this.invalidCustomValueText&&(this.helpText="",this.helpTextType=oe.DEFAULT)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t==="value"&&this.navItems.length&&!(e===null&&i==="")){let n=null;if(i!==""){let c=this.getFirstSelectedOption(),f=this.navItems.find(g=>g.value===i);if(f)n=f;else if(c)n=c;else if(this.placeholder)n=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(n,!1,!0)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let e=this.getFirstSelectedOption();e&&this.controlType!=="controlled"?(this.initialSelectedOption=e,this.setSelectedValue(e)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(i=>{i.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(e=>e.value===this.value);t&&this.setSelectedValue(t,!1,!0)}updated(t){var i,n;super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes));let e=(i=this.slottedListboxes)==null?void 0:i[0];e&&(e.id=this.listboxId,e.setAttribute("aria-label",this.label||this.dataAriaLabel||""),(n=this.visualCombobox)==null||n.setAttribute("aria-controls",this.listboxId)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,e;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var e;let t=this.initialSelectedOption||null;this.setSelectedValue(t,!1,!0),this.controlType!=="controlled"&&(this.filteredValue=(e=t==null?void 0:t.label)!=null?e:""),this.setInputValidity()}formStateRestoreCallback(t){let e=this.navItems.find(i=>i.value===t||i.label===t);this.setSelectedValue(e||null,!1,!0)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(e=>{e.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,e){t!==void 0&&(e?(t.setAttribute("data-focused",""),this.openTooltipIfExists(t)):(t.removeAttribute("data-focused"),this.closeTooltipIfExists(t)),t.setAttribute("aria-selected",e.toString()))}openTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"]`);i==null||i.setAttribute("visible","")}closeTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"][visible]`);i&&i.removeAttribute("visible")}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),e=t.findIndex(n=>n.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let i=this.navItems.find(n=>(n.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(i){this.setSelectedValue(i),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let n=this.navItems.find(c=>c.value===this.lastCommittedValue);this.setSelectedValue(n)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=oe.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,i){var n;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[i],!0),(n=t[i])==null||n.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let e=this.getVisibleOptions(this.filteredValue).filter(c=>!c.hasAttribute("disabled")),i=e.findIndex(c=>c.hasAttribute("data-focused")),n=this.getKeyboardNavMode()===te.SPATIAL;switch(this.getActionForKeyEvent(t)){case G.DOWN:{if(!n)this.openPopover();else if(!this.isOpen)break;let c=e.length-1===i?0:i+1;this.updateFocusAndScrollIntoView(e,i,c),t.preventDefault(),this.keyDownEventHandled();break}case G.UP:{if(!n)this.openPopover();else if(!this.isOpen)break;let c=i===-1||i===0?e.length-1:i-1;this.updateFocusAndScrollIntoView(e,i,c),t.preventDefault(),this.keyDownEventHandled();break}case G.ENTER:{if(n&&!this.isOpen)this.openPopover();else{if(i===-1)return;this.setSelectedValue(e[i]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case G.ESCAPE:{i!==-1&&this.updateOptionAttributes(e[i],!1),e.length&&this.shouldDisplayPopover(e.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case G.TAB:{this.closePopover(),this.keyDownEventHandled();break}case G.HOME:case G.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(i=>{var f;let n=this.matchesFilter(i,this.filteredValue);n?i.removeAttribute("data-hidden"):i.setAttribute("data-hidden","");let c=i.parentElement;if(c&&c.matches(pc)){let g=c;e.add(g),n&&t.set(g,((f=t.get(g))!=null?f:0)+1)}}),e.forEach(i=>{var f;let n=((f=t.get(i))!=null?f:0)>0,c=i.nextElementSibling;n?(i.removeAttribute("data-hidden"),c&&c.matches(On)&&c.removeAttribute("data-hidden")):(i.setAttribute("data-hidden",""),c&&c.matches(On)&&c.setAttribute("data-hidden",""))})}handleInputChange(t){var e;t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(e=this.getFirstSelectedOption())==null||e.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),Oo.onInputCombobox(this,{value:this.filteredValue})}handleOptionsClick(t){var i;t.preventDefault(),t.stopPropagation();let e=(i=t.target.closest(xr))!=null?i:null;e&&!e.hasAttribute("disabled")&&(this.setSelectedValue(e),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t||this.noResultText?this.isOpen:!1}renderNativeInput(){return S`
7783
7812
  <input
7784
7813
  id="${this.inputId}"
7785
7814
  name="${this.name}"
@@ -7825,7 +7854,7 @@
7825
7854
  />
7826
7855
  `}renderNoResultsText(t){return t===0&&this.noResultText?S`<mdc-listitem part="no-result-text" tabindex="-1" role="" label="${this.noResultText}"></mdc-listitem>`:K}render(){var e;let t=this.getVisibleOptions(this.filteredValue);return S`
7827
7856
  ${this.renderLabel()}
7828
- <div part="combobox-base" id="${Wm}">
7857
+ <div part="combobox-base" id="${Ym}">
7829
7858
  ${this.renderNativeInput()}
7830
7859
  <mdc-input
7831
7860
  @click="${this.handleTriggerClick}"
@@ -7845,7 +7874,7 @@
7845
7874
  >
7846
7875
  <mdc-icon
7847
7876
  part="combobox-button-icon"
7848
- name="${this.shouldDisplayPopover(t.length)?Gm.ARROW_UP:Gm.ARROW_DOWN}"
7877
+ name="${this.shouldDisplayPopover(t.length)?Km.ARROW_UP:Km.ARROW_DOWN}"
7849
7878
  size="1"
7850
7879
  length-unit="rem"
7851
7880
  ></mdc-icon>
@@ -7867,7 +7896,7 @@
7867
7896
  size
7868
7897
  strategy="${tt(this.strategy)}"
7869
7898
  trigger="${_e.MANUAL}"
7870
- triggerid="${Wm}"
7899
+ triggerid="${Ym}"
7871
7900
  z-index="${tt(this.popoverZIndex)}"
7872
7901
  >
7873
7902
  ${this.renderNoResultsText(t.length)}
@@ -7875,7 +7904,7 @@
7875
7904
  </mdc-popover>
7876
7905
  </div>
7877
7906
  ${this.renderHelperText()}
7878
- `}};ke.styles=[...qr.styles,...Zt.styles,...EE],h([u({type:String})],ke.prototype,"placeholder",2),h([u({type:String,reflect:!0})],ke.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],ke.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],ke.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],ke.prototype,"boundary",2),h([u({type:String,reflect:!0})],ke.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ke.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,converter:{toAttribute(t){return typeof t=="string"?t:null}}})],ke.prototype,"filter",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],ke.prototype,"backdropAppendTo",2),h([zt(`[role="${et.COMBOBOX}"]`)],ke.prototype,"visualCombobox",2),h([zt('[part="combobox-button"]')],ke.prototype,"dropDownButton",2),h([qt({selector:Ec})],ke.prototype,"slottedListboxes",2),h([dt()],ke.prototype,"isOpen",2),h([dt()],ke.prototype,"filteredValue",2);var Ym=ke;Ym.register(bE);var MI=Ym;var TE=(a,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(a[i],i);return e},xE=Oi(class extends li{constructor(a){if(super(a),a.type!==br.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let i=[],n=[],c=0;for(let f of a)i[c]=e?e(f,c):c,n[c]=t(f,c),c++;return{values:n,keys:i}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,e]){var ot;let i=Xf(a),{values:n,keys:c}=this.dt(o,t,e);if(!Array.isArray(i))return this.ut=c,n;let f=(ot=this.ut)!=null?ot:this.ut=[],g=[],A,R,H=0,J=i.length-1,q=0,Z=n.length-1;for(;H<=J&&q<=Z;)if(i[H]===null)H++;else if(i[J]===null)J--;else if(f[H]===c[q])g[q]=po(i[H],n[q]),H++,q++;else if(f[J]===c[Z])g[Z]=po(i[J],n[Z]),J--,Z--;else if(f[H]===c[Z])g[Z]=po(i[H],n[Z]),Ks(a,g[Z+1],i[H]),H++,Z--;else if(f[J]===c[q])g[q]=po(i[J],n[q]),Ks(a,i[H],i[J]),J--,q++;else if(A===void 0&&(A=TE(c,q,Z),R=TE(f,H,J)),A.has(f[H]))if(A.has(f[J])){let st=R.get(c[q]),ht=st!==void 0?i[st]:null;if(ht===null){let bt=Ks(a,i[H]);po(bt,n[q]),g[q]=bt}else g[q]=po(ht,n[q]),Ks(a,i[H],ht),i[st]=null;q++}else Xl(i[J]),J--;else Xl(i[H]),H++;for(;q<=Z;){let st=Ks(a,g[Z+1]);po(st,n[q]),g[q++]=st}for(;H<=J;){let st=i[H++];st!==null&&Xl(st)}return this.ut=c,ql(a,g),$e}});var AE=V.constructTagName("slider"),OI={START:"start",END:"end",UNDEFINED:void 0},Ro={MIN:0,MAX:100,STEP:1,STATE:OI.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var RI=B`
7907
+ `}};ke.styles=[...qr.styles,...Zt.styles,...EE],h([u({type:String})],ke.prototype,"placeholder",2),h([u({type:String,reflect:!0})],ke.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],ke.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],ke.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],ke.prototype,"boundary",2),h([u({type:String,reflect:!0})],ke.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ke.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,converter:{toAttribute(t){return typeof t=="string"?t:null}}})],ke.prototype,"filter",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],ke.prototype,"backdropAppendTo",2),h([zt(`[role="${et.COMBOBOX}"]`)],ke.prototype,"visualCombobox",2),h([zt('[part="combobox-button"]')],ke.prototype,"dropDownButton",2),h([qt({selector:Ec})],ke.prototype,"slottedListboxes",2),h([dt()],ke.prototype,"isOpen",2),h([dt()],ke.prototype,"filteredValue",2);var jm=ke;jm.register(bE);var MI=jm;var TE=(a,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(a[i],i);return e},xE=Oi(class extends li{constructor(a){if(super(a),a.type!==br.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let i=[],n=[],c=0;for(let f of a)i[c]=e?e(f,c):c,n[c]=t(f,c),c++;return{values:n,keys:i}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,e]){var ot;let i=Zf(a),{values:n,keys:c}=this.dt(o,t,e);if(!Array.isArray(i))return this.ut=c,n;let f=(ot=this.ut)!=null?ot:this.ut=[],g=[],A,R,H=0,J=i.length-1,q=0,Z=n.length-1;for(;H<=J&&q<=Z;)if(i[H]===null)H++;else if(i[J]===null)J--;else if(f[H]===c[q])g[q]=po(i[H],n[q]),H++,q++;else if(f[J]===c[Z])g[Z]=po(i[J],n[Z]),J--,Z--;else if(f[H]===c[Z])g[Z]=po(i[H],n[Z]),Ks(a,g[Z+1],i[H]),H++,Z--;else if(f[J]===c[q])g[q]=po(i[J],n[q]),Ks(a,i[H],i[J]),J--,q++;else if(A===void 0&&(A=TE(c,q,Z),R=TE(f,H,J)),A.has(f[H]))if(A.has(f[J])){let st=R.get(c[q]),ht=st!==void 0?i[st]:null;if(ht===null){let bt=Ks(a,i[H]);po(bt,n[q]),g[q]=bt}else g[q]=po(ht,n[q]),Ks(a,i[H],ht),i[st]=null;q++}else Xl(i[J]),J--;else Xl(i[H]),H++;for(;q<=Z;){let st=Ks(a,g[Z+1]);po(st,n[q]),g[q++]=st}for(;H<=J;){let st=i[H++];st!==null&&Xl(st)}return this.ut=c,ql(a,g),$e}});var AE=V.constructTagName("slider"),OI={START:"start",END:"end",UNDEFINED:void 0},Ro={MIN:0,MAX:100,STEP:1,STATE:OI.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var RI=B`
7879
7908
  :host {
7880
7909
  width: 100%;
7881
7910
  --mdc-slider-tooltip-left: 0;
@@ -8204,7 +8233,7 @@
8204
8233
  ${this.labelStart?S`<span part="slider-label-start">${this.labelStart}</span>`:null}
8205
8234
  ${this.labelEnd?S`<span part="slider-label-end">${this.labelEnd}</span>`:null}
8206
8235
  </div>
8207
- `}};Ft.styles=[...Q.styles,...SE],h([dt()],Ft.prototype,"thumbFocused",2),h([dt()],Ft.prototype,"thumbHovered",2),h([u({reflect:!0,type:Boolean})],Ft.prototype,"range",2),h([u({reflect:!0,type:Number})],Ft.prototype,"min",2),h([u({reflect:!0,type:Number})],Ft.prototype,"max",2),h([u({reflect:!0,type:Boolean})],Ft.prototype,"disabled",2),h([u({reflect:!0,type:Boolean,attribute:"soft-disabled"})],Ft.prototype,"softDisabled",2),h([u({reflect:!0,type:String,attribute:"leading-icon"})],Ft.prototype,"leadingIcon",2),h([u({reflect:!0,type:String,attribute:"trailing-icon"})],Ft.prototype,"trailingIcon",2),h([u({reflect:!0,type:Number})],Ft.prototype,"value",2),h([u({reflect:!0,type:Number,attribute:"value-start"})],Ft.prototype,"valueStart",2),h([u({reflect:!0,type:Number,attribute:"value-end"})],Ft.prototype,"valueEnd",2),h([u({reflect:!0,type:Number})],Ft.prototype,"step",2),h([u({reflect:!0,type:String})],Ft.prototype,"label",2),h([u({reflect:!0,type:String,attribute:"label-start"})],Ft.prototype,"labelStart",2),h([u({reflect:!0,type:String,attribute:"label-end"})],Ft.prototype,"labelEnd",2),h([u({reflect:!0,type:String,attribute:"value-label"})],Ft.prototype,"valueLabel",2),h([u({reflect:!0,type:String,attribute:"value-label-start"})],Ft.prototype,"valueLabelStart",2),h([u({reflect:!0,type:String,attribute:"value-label-end"})],Ft.prototype,"valueLabelEnd",2),h([u({reflect:!0,type:String})],Ft.prototype,"name",2),h([u({reflect:!0,type:String,attribute:"name-start"})],Ft.prototype,"nameStart",2),h([u({reflect:!0,type:String,attribute:"name-end"})],Ft.prototype,"nameEnd",2),h([u({reflect:!0,type:String,attribute:"data-aria-label"})],Ft.prototype,"dataAriaLabel",2),h([u({reflect:!0,type:String,attribute:"start-aria-label"})],Ft.prototype,"startAriaLabel",2),h([u({reflect:!0,type:String,attribute:"end-aria-label"})],Ft.prototype,"endAriaLabel",2),h([u({reflect:!0,type:String,attribute:"data-aria-valuetext"})],Ft.prototype,"dataAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"start-aria-valuetext"})],Ft.prototype,"startAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"end-aria-valuetext"})],Ft.prototype,"endAriaValueText",2),h([u({reflect:!0,type:Boolean,attribute:"hide-tooltip"})],Ft.prototype,"hideTooltip",2),h([vf('input[type="range"]')],Ft.prototype,"inputElements",2);var jm=Ft;jm.register(AE);var DI=jm;var PI=B`
8236
+ `}};Ft.styles=[...Q.styles,...SE],h([dt()],Ft.prototype,"thumbFocused",2),h([dt()],Ft.prototype,"thumbHovered",2),h([u({reflect:!0,type:Boolean})],Ft.prototype,"range",2),h([u({reflect:!0,type:Number})],Ft.prototype,"min",2),h([u({reflect:!0,type:Number})],Ft.prototype,"max",2),h([u({reflect:!0,type:Boolean})],Ft.prototype,"disabled",2),h([u({reflect:!0,type:Boolean,attribute:"soft-disabled"})],Ft.prototype,"softDisabled",2),h([u({reflect:!0,type:String,attribute:"leading-icon"})],Ft.prototype,"leadingIcon",2),h([u({reflect:!0,type:String,attribute:"trailing-icon"})],Ft.prototype,"trailingIcon",2),h([u({reflect:!0,type:Number})],Ft.prototype,"value",2),h([u({reflect:!0,type:Number,attribute:"value-start"})],Ft.prototype,"valueStart",2),h([u({reflect:!0,type:Number,attribute:"value-end"})],Ft.prototype,"valueEnd",2),h([u({reflect:!0,type:Number})],Ft.prototype,"step",2),h([u({reflect:!0,type:String})],Ft.prototype,"label",2),h([u({reflect:!0,type:String,attribute:"label-start"})],Ft.prototype,"labelStart",2),h([u({reflect:!0,type:String,attribute:"label-end"})],Ft.prototype,"labelEnd",2),h([u({reflect:!0,type:String,attribute:"value-label"})],Ft.prototype,"valueLabel",2),h([u({reflect:!0,type:String,attribute:"value-label-start"})],Ft.prototype,"valueLabelStart",2),h([u({reflect:!0,type:String,attribute:"value-label-end"})],Ft.prototype,"valueLabelEnd",2),h([u({reflect:!0,type:String})],Ft.prototype,"name",2),h([u({reflect:!0,type:String,attribute:"name-start"})],Ft.prototype,"nameStart",2),h([u({reflect:!0,type:String,attribute:"name-end"})],Ft.prototype,"nameEnd",2),h([u({reflect:!0,type:String,attribute:"data-aria-label"})],Ft.prototype,"dataAriaLabel",2),h([u({reflect:!0,type:String,attribute:"start-aria-label"})],Ft.prototype,"startAriaLabel",2),h([u({reflect:!0,type:String,attribute:"end-aria-label"})],Ft.prototype,"endAriaLabel",2),h([u({reflect:!0,type:String,attribute:"data-aria-valuetext"})],Ft.prototype,"dataAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"start-aria-valuetext"})],Ft.prototype,"startAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"end-aria-valuetext"})],Ft.prototype,"endAriaValueText",2),h([u({reflect:!0,type:Boolean,attribute:"hide-tooltip"})],Ft.prototype,"hideTooltip",2),h([gf('input[type="range"]')],Ft.prototype,"inputElements",2);var qm=Ft;qm.register(AE);var DI=qm;var PI=B`
8208
8237
  :host {
8209
8238
  --mdc-listbox-max-height: auto;
8210
8239
 
@@ -8221,7 +8250,7 @@
8221
8250
  ::slotted(mdc-option) {
8222
8251
  width: 100%;
8223
8252
  }
8224
- `,IE=[PI];var Do=class extends So(ui(Q)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.multiple=!1;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}handleModifiedEvent(t){let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;case"selected":this.multiple?this.syncValueToFirstSelected():this.setSelectedOption(e,!1,!1);break;case"unselected":this.multiple?this.syncValueToFirstSelected():this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${xr}:not([disabled])`)}handleClick(t){let i=t.target.closest(xr);!i||!this.isValidItem(i)||(this.multiple?this.toggleOptionSelection(i):this.setSelectedOption(i))}toggleOptionSelection(t){if(t.disabled||t.softDisabled)return;let e=t.hasAttribute("selected");t.toggleAttribute("selected",!e),this.syncValueToFirstSelected(),this.fireEvents()}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}syncValueToFirstSelected(){let t=this.getFirstSelectedOption();this.value=t==null?void 0:t.value,this.selectedOption=t!=null?t:null}getSelectedValues(){return this.itemsStore.items.reduce((t,e)=>{let{value:i}=e;return e.hasAttribute("selected")&&i!==void 0&&t.push(i),t},[])}setInitialFocus(){let t=this.getFirstSelectedOption();if(t){let e=this.itemsStore.items.indexOf(t);if(e!==-1){this.resetTabIndexAndSetFocus(e,void 0,!1);return}}super.setInitialFocus()}updated(t){if(t.has("multiple")&&(this.multiple?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")),t.has("value")&&!this.multiple){let e=this.itemsStore.items.find(i=>i.value===this.value);e?this.setSelectedOption(e,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,e=!0,i=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(i&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,e&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(e=>e.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selectedValues:this.getSelectedValues()},composed:!0,bubbles:!0}))}render(){return S`<slot part="container"></slot>`}};Do.styles=[...Rp.styles,...IE],h([u({type:String,reflect:!0})],Do.prototype,"name",2),h([u({type:String,reflect:!0})],Do.prototype,"value",2),h([u({type:Boolean,reflect:!0})],Do.prototype,"multiple",2),h([dt()],Do.prototype,"selectedOption",2);var qm=Do;var CE=V.constructTagName("listbox");qm.register(CE);var FI=qm;var _E=V.constructTagName("banner"),_a={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},rl={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},$c={VARIANT:_a.CUSTOM,PREFIX_ICON_SIZE:1.25};var $I=B`
8253
+ `,IE=[PI];var Do=class extends So(ui(Q)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.multiple=!1;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}handleModifiedEvent(t){let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;case"selected":this.multiple?this.syncValueToFirstSelected():this.setSelectedOption(e,!1,!1);break;case"unselected":this.multiple?this.syncValueToFirstSelected():this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${xr}:not([disabled])`)}handleClick(t){let i=t.target.closest(xr);!i||!this.isValidItem(i)||(this.multiple?this.toggleOptionSelection(i):this.setSelectedOption(i))}toggleOptionSelection(t){if(t.disabled||t.softDisabled)return;let e=t.hasAttribute("selected");t.toggleAttribute("selected",!e),this.syncValueToFirstSelected(),this.fireEvents()}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}syncValueToFirstSelected(){let t=this.getFirstSelectedOption();this.value=t==null?void 0:t.value,this.selectedOption=t!=null?t:null}getSelectedValues(){return this.itemsStore.items.reduce((t,e)=>{let{value:i}=e;return e.hasAttribute("selected")&&i!==void 0&&t.push(i),t},[])}setInitialFocus(){let t=this.getFirstSelectedOption();if(t){let e=this.itemsStore.items.indexOf(t);if(e!==-1){this.resetTabIndexAndSetFocus(e,void 0,!1);return}}super.setInitialFocus()}updated(t){if(t.has("multiple")&&(this.multiple?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")),t.has("value")&&!this.multiple){let e=this.itemsStore.items.find(i=>i.value===this.value);e?this.setSelectedOption(e,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,e=!0,i=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(i&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,e&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(e=>e.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selectedValues:this.getSelectedValues()},composed:!0,bubbles:!0}))}render(){return S`<slot part="container"></slot>`}};Do.styles=[...Rp.styles,...IE],h([u({type:String,reflect:!0})],Do.prototype,"name",2),h([u({type:String,reflect:!0})],Do.prototype,"value",2),h([u({type:Boolean,reflect:!0})],Do.prototype,"multiple",2),h([dt()],Do.prototype,"selectedOption",2);var Xm=Do;var CE=V.constructTagName("listbox");Xm.register(CE);var FI=Xm;var _E=V.constructTagName("banner"),wa={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},rl={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},$c={VARIANT:wa.CUSTOM,PREFIX_ICON_SIZE:1.25};var $I=B`
8225
8254
  :host {
8226
8255
  --mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
8227
8256
  --mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
@@ -8304,7 +8333,7 @@
8304
8333
  gap: var(--mdc-banner-gap);
8305
8334
  flex-wrap: wrap;
8306
8335
  }
8307
- `,wE=[$I];var kE=a=>{switch(a){case _a.INFORMATIONAL:return rl.INFORMATIONAL_ICON_NAME;case _a.SUCCESS:return rl.SUCCESS_ICON_NAME;case _a.WARNING:return rl.WARNING_ICON_NAME;case _a.ERROR:return rl.ERROR_ICON_NAME;default:return null}};var ks=class extends Q{constructor(){super(...arguments);this.variant=$c.VARIANT}renderIcon(t){return t?S`
8336
+ `,wE=[$I];var kE=a=>{switch(a){case wa.INFORMATIONAL:return rl.INFORMATIONAL_ICON_NAME;case wa.SUCCESS:return rl.SUCCESS_ICON_NAME;case wa.WARNING:return rl.WARNING_ICON_NAME;case wa.ERROR:return rl.ERROR_ICON_NAME;default:return null}};var ks=class extends Q{constructor(){super(...arguments);this.variant=$c.VARIANT}renderIcon(t){return t?S`
8308
8337
  <mdc-icon name="${t}" size="${$c.PREFIX_ICON_SIZE}" part="leading-icon" length-unit="rem"></mdc-icon>
8309
8338
  `:K}getTextLabel(){return this.label?S`
8310
8339
  <mdc-text
@@ -8333,7 +8362,7 @@
8333
8362
  <slot name="trailing-actions"></slot>
8334
8363
  </div>
8335
8364
  </slot>
8336
- `}};ks.styles=[...Q.styles,...wE],h([u({type:String,reflect:!0})],ks.prototype,"variant",2),h([u({type:String,reflect:!0})],ks.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],ks.prototype,"secondaryLabel",2);var Xm=ks;Xm.register(_E);var VI=Xm;var zI=B`
8365
+ `}};ks.styles=[...Q.styles,...wE],h([u({type:String,reflect:!0})],ks.prototype,"variant",2),h([u({type:String,reflect:!0})],ks.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],ks.prototype,"secondaryLabel",2);var Zm=ks;Zm.register(_E);var VI=Zm;var zI=B`
8337
8366
  :host {
8338
8367
  --mdc-verticaltablist-width: 100%;
8339
8368
 
@@ -8354,10 +8383,10 @@
8354
8383
  --mdc-tab-line-active-indicator-width: 0.125rem;
8355
8384
  --mdc-tab-content-justification: space-between;
8356
8385
  }
8357
- `,NE=[zI];var Vc=class extends wc(Ui){constructor(){super(...arguments);this.orientation="vertical"}isValidItem(t){return t.matches(`${xa}:not([disabled])`)}onElementStoreUpdate(t,e,i){super.onElementStoreUpdate(t,e,i),e==="added"&&t.setAttribute("variant","line")}connectedCallback(){super.connectedCallback(),this.role=et.TABLIST,this.setAttribute("aria-orientation","vertical")}render(){return S`
8386
+ `,NE=[zI];var Vc=class extends wc(Ui){constructor(){super(...arguments);this.orientation="vertical"}isValidItem(t){return t.matches(`${Aa}:not([disabled])`)}onElementStoreUpdate(t,e,i){super.onElementStoreUpdate(t,e,i),e==="added"&&t.setAttribute("variant","line")}connectedCallback(){super.connectedCallback(),this.role=et.TABLIST,this.setAttribute("aria-orientation","vertical")}render(){return S`
8358
8387
  <!-- make the container slot role presentation to keep it ignored in a11y tree -->
8359
8388
  <slot part="container" role="presentation"></slot>
8360
- `}};Vc.styles=[...Ui.styles,...NE];var Zm=Vc;var LE=V.constructTagName("verticaltablist");Zm.register(LE);var BI=Zm;})();
8389
+ `}};Vc.styles=[...Ui.styles,...NE];var Qm=Vc;var LE=V.constructTagName("verticaltablist");Qm.register(LE);var BI=Qm;})();
8361
8390
  /*! Bundled license information:
8362
8391
 
8363
8392
  lottie-web/build/player/lottie_light.js: