@momentum-design/components 0.71.2 → 0.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +350 -339
- package/dist/browser/index.js.map +4 -4
- package/dist/components/animation/animation.component.d.ts +77 -0
- package/dist/components/animation/animation.component.js +171 -0
- package/dist/components/animation/animation.constants.d.ts +7 -0
- package/dist/components/animation/animation.constants.js +8 -0
- package/dist/components/animation/animation.styles.d.ts +2 -0
- package/dist/components/animation/animation.styles.js +3 -0
- package/dist/components/animation/animation.types.d.ts +12 -0
- package/dist/components/animation/animation.types.js +1 -0
- package/dist/components/animation/index.d.ts +7 -0
- package/dist/components/animation/index.js +4 -0
- package/dist/custom-elements.json +814 -602
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/animation/index.d.ts +20 -0
- package/dist/react/animation/index.js +28 -0
- package/dist/react/index.d.ts +3 -2
- package/dist/react/index.js +3 -2
- package/package.json +3 -1
package/dist/browser/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
"use strict";(()=>{var dd=Object.defineProperty;var md=Object.getOwnPropertyDescriptor;var n=(i,t,e,r)=>{for(var o=r>1?void 0:r?md(t,e):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&dd(t,e,o),o};var So=globalThis,Io=So.ShadowRoot&&(So.ShadyCSS===void 0||So.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fi=Symbol(),ks=new WeakMap,Mr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Fi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Io&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=ks.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ks.set(e,t))}return t}toString(){return this.cssText}},ws=i=>new Mr(typeof i=="string"?i:i+"",void 0,Fi),u=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[a+1],i[0]);return new Mr(e,i,Fi)},Bi=(i,t)=>{if(Io)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=So.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},Co=Io?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return ws(e)})(i):i;var{is:pd,defineProperty:hd,getOwnPropertyDescriptor:ud,getOwnPropertyNames:fd,getOwnPropertySymbols:bd,getPrototypeOf:gd}=Object,st=globalThis,Ns=st.trustedTypes,vd=Ns?Ns.emptyScript:"",Hi=st.reactiveElementPolyfillSupport,Dr=(i,t)=>i,$r={toAttribute(i,t){switch(t){case Boolean:i=i?vd:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},ko=(i,t)=>!pd(i,t),Ls={attribute:!0,type:String,converter:$r,reflect:!1,hasChanged:ko},_s,Rs;(_s=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Rs=st.litPropertyMetadata)!=null||(st.litPropertyMetadata=new WeakMap);var Pe=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ls){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&hd(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var s;let{get:o,set:a}=(s=ud(this.prototype,t))!=null?s:{get(){return this[e]},set(c){this[e]=c}};return{get(){return o==null?void 0:o.call(this)},set(c){let d=o==null?void 0:o.call(this);a.call(this,c),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Ls}static _$Ei(){if(this.hasOwnProperty(Dr("elementProperties")))return;let t=gd(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Dr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Dr("properties"))){let e=this.properties,r=[...fd(e),...bd(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(Co(o))}else t!==void 0&&e.push(Co(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Bi(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var a;let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let s=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:$r).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var a;let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),c=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:$r;this._$Em=o,this[o]=c.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var o;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((o=r.hasChanged)!=null?o:ko)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var o;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[s,c]of a)c.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],c)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(e)):this._$EU()}catch(a){throw t=!1,this._$EU(),a}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},Os;Pe.elementStyles=[],Pe.shadowRootOptions={mode:"open"},Pe[Dr("elementProperties")]=new Map,Pe[Dr("finalized")]=new Map,Hi==null||Hi({ReactiveElement:Pe}),((Os=st.reactiveElementVersions)!=null?Os:st.reactiveElementVersions=[]).push("2.0.4");var Pr=globalThis,wo=Pr.trustedTypes,Ms=wo?wo.createPolicy("lit-html",{createHTML:i=>i}):void 0,Wi="$lit$",Ue=`lit$${Math.random().toFixed(9).slice(2)}$`,qi="?"+Ue,yd=`<${qi}>`,xt=document,Ur=()=>xt.createComment(""),Vr=i=>i===null||typeof i!="object"&&typeof i!="function",Ki=Array.isArray,Fs=i=>Ki(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Gi=`[
|
2
|
-
\f\r]`,zr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ds=/-->/g,$s=/>/g,vt=RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
|
3
|
-
\f\r
|
1
|
+
"use strict";(()=>{var cf=Object.create;var na=Object.defineProperty;var _d=Object.getOwnPropertyDescriptor;var df=Object.getOwnPropertyNames;var hf=Object.getPrototypeOf,mf=Object.prototype.hasOwnProperty;var pf=(l,o)=>()=>(o||l((o={exports:{}}).exports,o),o.exports),uf=(l,o)=>{for(var e in o)na(l,e,{get:o[e],enumerable:!0})},ff=(l,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of df(o))!mf.call(l,n)&&n!==e&&na(l,n,{get:()=>o[n],enumerable:!(s=_d(o,n))||s.enumerable});return l};var vf=(l,o,e)=>(e=l!=null?cf(hf(l)):{},ff(o||!l||!l.__esModule?na(e,"default",{value:l,enumerable:!0}):e,l));var y=(l,o,e,s)=>{for(var n=s>1?void 0:s?_d(o,e):o,h=l.length-1,f;h>=0;h--)(f=l[h])&&(n=(s?f(o,e,n):f(n))||n);return s&&n&&na(o,e,n),n};var ou=pf((Vs,wn)=>{typeof navigator<"u"&&function(l,o){typeof Vs=="object"&&typeof wn<"u"?wn.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=o())}(Vs,function(){"use strict";var l="http://www.w3.org/2000/svg",o="",e=!1,s=-999999,n=function(r){e=!!r},h=function(){return e},f=function(r){o=r},S=function(){return o};function M(t){return document.createElement(t)}function B(t,r){var i,a=t.length,d;for(i=0;i<a;i+=1){d=t[i].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function G(t,r){return Object.getOwnPropertyDescriptor(t,r)}function q(t){function r(){}return r.prototype=t,r}var ot=function(){function t(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].pause()},resume:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].resume()},setRate:function(i){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),Q=function(){function t(i,a){var d=0,c=[],p;switch(i){case"int16":case"uint8c":p=1;break;default:p=1.1;break}for(d=0;d<a;d+=1)c.push(p);return c}function r(i,a){return i==="float32"?new Float32Array(a):i==="int16"?new Int16Array(a):i==="uint8c"?new Uint8ClampedArray(a):t(i,a)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:t}();function et(t){return Array.apply(null,{length:t})}function ct(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ct=function(i){return typeof i}:ct=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ct(t)}var bt=!0,gt=null,yt=null,St="",$t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Mt=!1,Pt=Math.pow,ve=Math.sqrt,Qt=Math.floor,Ue=Math.max,we=Math.min,Re={};(function(){var t=["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"],r,i=t.length;for(r=0;r<i;r+=1)Re[t[r]]=Math[t[r]]})();function He(){return{}}Re.random=Math.random,Re.abs=function(t){var r=ct(t);if(r==="object"&&t.length){var i=et(t.length),a,d=t.length;for(a=0;a<d;a+=1)i[a]=Math.abs(t[a]);return i}return Math.abs(t)};var Ge=150,Tt=Math.PI/180,de=.5519;function Oe(t){Mt=!!t}function je(t){return Mt?Math.round(t):t}function dr(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function Pe(t,r,i,a){this.type=t,this.currentTime=r,this.totalTime=i,this.direction=a<0?-1:1}function Bs(t,r){this.type=t,this.direction=r<0?-1:1}function Mc(t,r,i,a){this.type=t,this.currentLoop=i,this.totalLoops=r,this.direction=a<0?-1:1}function Nc(t,r,i){this.type=t,this.firstFrame=r,this.totalFrames=i}function Rc(t,r){this.type=t,this.target=r}function lu(t,r){this.type="renderFrameError",this.nativeError=t,this.currentTime=r}function cu(t){this.type="configError",this.nativeError=t}function h0(t,r){this.type=t,this.nativeError=r}var ge=function(){var t=0;return function(){return t+=1,St+"__lottie_element_"+t}}();function Mn(t,r,i){var a,d,c,p,x,u,k,I;switch(p=Math.floor(t*6),x=t*6-p,u=i*(1-r),k=i*(1-x*r),I=i*(1-(1-x)*r),p%6){case 0:a=i,d=I,c=u;break;case 1:a=k,d=i,c=u;break;case 2:a=u,d=i,c=I;break;case 3:a=u,d=k,c=i;break;case 4:a=I,d=u,c=i;break;case 5:a=i,d=u,c=k;break;default:break}return[a,d,c]}function Nn(t,r,i){var a=Math.max(t,r,i),d=Math.min(t,r,i),c=a-d,p,x=a===0?0:c/a,u=a/255;switch(a){case d:p=0;break;case t:p=r-i+c*(r<i?6:0),p/=6*c;break;case r:p=i-t+c*2,p/=6*c;break;case i:p=t-r+c*4,p/=6*c;break;default:break}return[p,x,u]}function Oc(t,r){var i=Nn(t[0]*255,t[1]*255,t[2]*255);return i[1]+=r,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),Mn(i[0],i[1],i[2])}function Pc(t,r){var i=Nn(t[0]*255,t[1]*255,t[2]*255);return i[2]+=r,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),Mn(i[0],i[1],i[2])}function Dc(t,r){var i=Nn(t[0]*255,t[1]*255,t[2]*255);return i[0]+=r/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),Mn(i[0],i[1],i[2])}var m0=function(){var t=[],r,i;for(r=0;r<256;r+=1)i=r.toString(16),t[r]=i.length===1?"0"+i:i;return function(a,d,c){return a<0&&(a=0),d<0&&(d=0),c<0&&(c=0),"#"+t[a]+t[d]+t[c]}}(),du=function(r){bt=!!r},hu=function(){return bt},mu=function(r){gt=r},Us=function(){return gt},p0=function(r){yt=r},Fc=function(){return yt},Hs=function(r){Ge=r},Oo=function(){return Ge},pu=function(r){St=r},u0=function(){return St};function ft(t){return document.createElementNS(l,t)}function Gs(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gs=function(i){return typeof i}:Gs=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Gs(t)}var Po=function(){var t=1,r=[],i,a,d={onmessage:function(){},postMessage:function(L){i({data:L})}},c={postMessage:function(L){d.onmessage({data:L})}};function p(b){if(window.Worker&&window.Blob&&h()){var L=new Blob(["var _workerSelf = self; self.onmessage = ",b.toString()],{type:"text/javascript"}),O=URL.createObjectURL(L);return new Worker(O)}return i=b,d}function x(){a||(a=p(function(L){function O(){function z(Y,T){var R,m,v=Y.length,U,D,it,ht;for(m=0;m<v;m+=1)if(R=Y[m],"ks"in R&&!R.completed){if(R.completed=!0,R.hasMask){var ut=R.masksProperties;for(D=ut.length,U=0;U<D;U+=1)if(ut[U].pt.k.i)C(ut[U].pt.k);else for(ht=ut[U].pt.k.length,it=0;it<ht;it+=1)ut[U].pt.k[it].s&&C(ut[U].pt.k[it].s[0]),ut[U].pt.k[it].e&&C(ut[U].pt.k[it].e[0])}R.ty===0?(R.layers=g(R.refId,T),z(R.layers,T)):R.ty===4?E(R.shapes):R.ty===5&&vt(R)}}function w(Y,T){if(Y){var R=0,m=Y.length;for(R=0;R<m;R+=1)Y[R].t===1&&(Y[R].data.layers=g(Y[R].data.refId,T),z(Y[R].data.layers,T))}}function _(Y,T){for(var R=0,m=T.length;R<m;){if(T[R].id===Y)return T[R];R+=1}return null}function g(Y,T){var R=_(Y,T);return R?R.layers.__used?JSON.parse(JSON.stringify(R.layers)):(R.layers.__used=!0,R.layers):null}function E(Y){var T,R=Y.length,m,v;for(T=R-1;T>=0;T-=1)if(Y[T].ty==="sh")if(Y[T].ks.k.i)C(Y[T].ks.k);else for(v=Y[T].ks.k.length,m=0;m<v;m+=1)Y[T].ks.k[m].s&&C(Y[T].ks.k[m].s[0]),Y[T].ks.k[m].e&&C(Y[T].ks.k[m].e[0]);else Y[T].ty==="gr"&&E(Y[T].it)}function C(Y){var T,R=Y.i.length;for(T=0;T<R;T+=1)Y.i[T][0]+=Y.v[T][0],Y.i[T][1]+=Y.v[T][1],Y.o[T][0]+=Y.v[T][0],Y.o[T][1]+=Y.v[T][1]}function P(Y,T){var R=T?T.split("."):[100,100,100];return Y[0]>R[0]?!0:R[0]>Y[0]?!1:Y[1]>R[1]?!0:R[1]>Y[1]?!1:Y[2]>R[2]?!0:R[2]>Y[2]?!1:null}var $=function(){var Y=[4,4,14];function T(m){var v=m.t.d;m.t.d={k:[{s:v,t:0}]}}function R(m){var v,U=m.length;for(v=0;v<U;v+=1)m[v].ty===5&&T(m[v])}return function(m){if(P(Y,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}(),H=function(){var Y=[4,7,99];return function(T){if(T.chars&&!P(Y,T.v)){var R,m=T.chars.length;for(R=0;R<m;R+=1){var v=T.chars[R];v.data&&v.data.shapes&&(E(v.data.shapes),v.data.ip=0,v.data.op=99999,v.data.st=0,v.data.sr=1,v.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}},T.chars[R].t||(v.data.shapes.push({ty:"no"}),v.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"})))}}}}(),K=function(){var Y=[5,7,15];function T(m){var v=m.t.p;typeof v.a=="number"&&(v.a={a:0,k:v.a}),typeof v.p=="number"&&(v.p={a:0,k:v.p}),typeof v.r=="number"&&(v.r={a:0,k:v.r})}function R(m){var v,U=m.length;for(v=0;v<U;v+=1)m[v].ty===5&&T(m[v])}return function(m){if(P(Y,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}(),pt=function(){var Y=[4,1,9];function T(m){var v,U=m.length,D,it;for(v=0;v<U;v+=1)if(m[v].ty==="gr")T(m[v].it);else if(m[v].ty==="fl"||m[v].ty==="st")if(m[v].c.k&&m[v].c.k[0].i)for(it=m[v].c.k.length,D=0;D<it;D+=1)m[v].c.k[D].s&&(m[v].c.k[D].s[0]/=255,m[v].c.k[D].s[1]/=255,m[v].c.k[D].s[2]/=255,m[v].c.k[D].s[3]/=255),m[v].c.k[D].e&&(m[v].c.k[D].e[0]/=255,m[v].c.k[D].e[1]/=255,m[v].c.k[D].e[2]/=255,m[v].c.k[D].e[3]/=255);else m[v].c.k[0]/=255,m[v].c.k[1]/=255,m[v].c.k[2]/=255,m[v].c.k[3]/=255}function R(m){var v,U=m.length;for(v=0;v<U;v+=1)m[v].ty===4&&T(m[v].shapes)}return function(m){if(P(Y,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}(),nt=function(){var Y=[4,4,18];function T(m){var v,U=m.length,D,it;for(v=U-1;v>=0;v-=1)if(m[v].ty==="sh")if(m[v].ks.k.i)m[v].ks.k.c=m[v].closed;else for(it=m[v].ks.k.length,D=0;D<it;D+=1)m[v].ks.k[D].s&&(m[v].ks.k[D].s[0].c=m[v].closed),m[v].ks.k[D].e&&(m[v].ks.k[D].e[0].c=m[v].closed);else m[v].ty==="gr"&&T(m[v].it)}function R(m){var v,U,D=m.length,it,ht,ut,kt;for(U=0;U<D;U+=1){if(v=m[U],v.hasMask){var Ct=v.masksProperties;for(ht=Ct.length,it=0;it<ht;it+=1)if(Ct[it].pt.k.i)Ct[it].pt.k.c=Ct[it].cl;else for(kt=Ct[it].pt.k.length,ut=0;ut<kt;ut+=1)Ct[it].pt.k[ut].s&&(Ct[it].pt.k[ut].s[0].c=Ct[it].cl),Ct[it].pt.k[ut].e&&(Ct[it].pt.k[ut].e[0].c=Ct[it].cl)}v.ty===4&&T(v.shapes)}}return function(m){if(P(Y,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}();function tt(Y){Y.__complete||(pt(Y),$(Y),H(Y),K(Y),nt(Y),z(Y.layers,Y.assets),w(Y.chars,Y.assets),Y.__complete=!0)}function vt(Y){Y.t.a.length===0&&"m"in Y.t.p}var st={};return st.completeData=tt,st.checkColors=pt,st.checkChars=H,st.checkPathProperties=K,st.checkShapes=nt,st.completeLayers=z,st}if(c.dataManager||(c.dataManager=O()),c.assetLoader||(c.assetLoader=function(){function z(_){var g=_.getResponseHeader("content-type");return g&&_.responseType==="json"&&g.indexOf("json")!==-1||_.response&&Gs(_.response)==="object"?_.response:_.response&&typeof _.response=="string"?JSON.parse(_.response):_.responseText?JSON.parse(_.responseText):null}function w(_,g,E,C){var P,$=new XMLHttpRequest;try{$.responseType="json"}catch{}$.onreadystatechange=function(){if($.readyState===4)if($.status===200)P=z($),E(P);else try{P=z($),E(P)}catch(H){C&&C(H)}};try{$.open(["G","E","T"].join(""),_,!0)}catch{$.open(["G","E","T"].join(""),g+"/"+_,!0)}$.send()}return{load:w}}()),L.data.type==="loadAnimation")c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})});else if(L.data.type==="complete"){var N=L.data.animation;c.dataManager.completeData(N),c.postMessage({id:L.data.id,payload:N,status:"success"})}else L.data.type==="loadData"&&c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})})}),a.onmessage=function(b){var L=b.data,O=L.id,N=r[O];r[O]=null,L.status==="success"?N.onComplete(L.payload):N.onError&&N.onError()})}function u(b,L){t+=1;var O="processId_"+t;return r[O]={onComplete:b,onError:L},O}function k(b,L,O){x();var N=u(L,O);a.postMessage({type:"loadAnimation",path:b,fullPath:window.location.origin+window.location.pathname,id:N})}function I(b,L,O){x();var N=u(L,O);a.postMessage({type:"loadData",path:b,fullPath:window.location.origin+window.location.pathname,id:N})}function V(b,L,O){x();var N=u(L,O);a.postMessage({type:"complete",animation:b,id:N})}return{loadAnimation:k,loadData:I,completeAnimation:V}}(),uu=function(){var t=function(){var w=M("canvas");w.width=1,w.height=1;var _=w.getContext("2d");return _.fillStyle="rgba(0,0,0,0)",_.fillRect(0,0,1,1),w}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(w,_,g){var E="";if(w.e)E=w.p;else if(_){var C=w.p;C.indexOf("images/")!==-1&&(C=C.split("/")[1]),E=_+C}else E=g,E+=w.u?w.u:"",E+=w.p;return E}function d(w){var _=0,g=setInterval((function(){var E=w.getBBox();(E.width||_>500)&&(this._imageLoaded(),clearInterval(g)),_+=1}).bind(this),50)}function c(w){var _=a(w,this.assetsPath,this.path),g=ft("image");$t?this.testImageLoaded(g):g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",(function(){E.img=t,this._imageLoaded()}).bind(this),!1),g.setAttributeNS("http://www.w3.org/1999/xlink","href",_),this._elementHelper.append?this._elementHelper.append(g):this._elementHelper.appendChild(g);var E={img:g,assetData:w};return E}function p(w){var _=a(w,this.assetsPath,this.path),g=M("img");g.crossOrigin="anonymous",g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",(function(){E.img=t,this._imageLoaded()}).bind(this),!1),g.src=_;var E={img:g,assetData:w};return E}function x(w){var _={assetData:w},g=a(w,this.assetsPath,this.path);return Po.loadData(g,(function(E){_.img=E,this._footageLoaded()}).bind(this),(function(){_.img={},this._footageLoaded()}).bind(this)),_}function u(w,_){this.imagesLoadedCb=_;var g,E=w.length;for(g=0;g<E;g+=1)w[g].layers||(!w[g].t||w[g].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(w[g]))):w[g].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(w[g]))))}function k(w){this.path=w||""}function I(w){this.assetsPath=w||""}function V(w){for(var _=0,g=this.images.length;_<g;){if(this.images[_].assetData===w)return this.images[_].img;_+=1}return null}function b(){this.imagesLoadedCb=null,this.images.length=0}function L(){return this.totalImages===this.loadedAssets}function O(){return this.totalFootages===this.loadedFootagesCount}function N(w,_){w==="svg"?(this._elementHelper=_,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function z(){this._imageLoaded=r.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=x.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return z.prototype={loadAssets:u,setAssetsPath:I,setPath:k,loadedImages:L,loadedFootages:O,destroy:b,getAsset:V,createImgData:p,createImageData:c,imageLoaded:r,footageLoaded:i,setCacheType:N},z}();function zc(){}zc.prototype={triggerEvent:function(r,i){if(this._cbs[r])for(var a=this._cbs[r],d=0;d<a.length;d+=1)a[d](i)},addEventListener:function(r,i){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(i),(function(){this.removeEventListener(r,i)}).bind(this)},removeEventListener:function(r,i){if(!i)this._cbs[r]=null;else if(this._cbs[r]){for(var a=0,d=this._cbs[r].length;a<d;)this._cbs[r][a]===i&&(this._cbs[r].splice(a,1),a-=1,d-=1),a+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var fu=function(){function t(r){for(var i=r.split(`\r
|
2
|
+
`),a={},d,c=0,p=0;p<i.length;p+=1)d=i[p].split(":"),d.length===2&&(a[d[0]]=d[1].trim(),c+=1);if(c===0)throw new Error;return a}return function(r){for(var i=[],a=0;a<r.length;a+=1){var d=r[a],c={time:d.tm,duration:d.dr};try{c.payload=JSON.parse(r[a].cm)}catch{try{c.payload=t(r[a].cm)}catch{c.payload={name:r[a].cm}}}i.push(c)}return i}}(),vu=function(){function t(r){this.compositions.push(r)}return function(){function r(i){for(var a=0,d=this.compositions.length;a<d;){if(this.compositions[a].data&&this.compositions[a].data.nm===i)return this.compositions[a].prepareFrame&&this.compositions[a].data.xt&&this.compositions[a].prepareFrame(this.currentFrame),this.compositions[a].compInterface;a+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=t,r}}(),Do={},gu=function(r,i){Do[r]=i};function bu(t){return Do[t]}function yu(){if(Do.canvas)return"canvas";for(var t in Do)if(Do[t])return t;return""}function Fo(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fo=function(i){return typeof i}:Fo=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Fo(t)}var dt=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=ge(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=hu(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=vu(),this.imagePreloader=new uu,this.audioController=ot(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Pe("drawnFrame",0,0,0),this.expressionsPlugin=Us()};B([zc],dt),dt.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var r="svg";t.animType?r=t.animType:t.renderer&&(r=t.renderer);var i=bu(r);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay="autoplay"in t?t.autoplay:!0,this.name=t.name?t.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(t,"autoloadSegments")?t.autoloadSegments:!0,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf("\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Po.loadAnimation(t.path,this.configAnimation,this.onSetupError))},dt.prototype.onSetupError=function(){this.trigger("data_failed")},dt.prototype.setupAnimation=function(t){Po.completeAnimation(t,this.configAnimation)},dt.prototype.setData=function(t,r){r&&Fo(r)!=="object"&&(r=JSON.parse(r));var i={wrapper:t,animationData:r},a=t.attributes;i.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",i.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:yu()||"canvas";var d=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";d==="false"?i.loop=!1:d==="true"?i.loop=!0:d!==""&&(i.loop=parseInt(d,10));var c=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:a.getNamedItem("bm-autoplay")?a.getNamedItem("bm-autoplay").value:!0;i.autoplay=c!=="false",i.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"";var p=a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"";p==="false"&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},dt.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var r=this.animationData.layers,i,a=r.length,d=t.layers,c,p=d.length;for(c=0;c<p;c+=1)for(i=0;i<a;){if(r[i].id===d[c].id){r[i]=d[c];break}i+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(a=t.assets.length,i=0;i<a;i+=1)this.animationData.assets.push(t.assets[i]);this.animationData.__complete=!1,Po.completeAnimation(this.animationData,this.onSegmentComplete)},dt.prototype.onSegmentComplete=function(t){this.animationData=t;var r=Us();r&&r.initExpressions(this),this.loadNextSegment()},dt.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=t.shift();this.timeCompleted=r.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Po.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},dt.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},dt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},dt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},dt.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,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(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=fu(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},dt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},dt.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 t=Us();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},dt.prototype.resize=function(t,r){var i=typeof t=="number"?t:void 0,a=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(i,a)},dt.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},dt.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")},dt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},dt.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},dt.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},dt.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},dt.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},dt.prototype.getMarkerData=function(t){for(var r,i=0;i<this.markers.length;i+=1)if(r=this.markers[i],r.payload&&r.payload.name===t)return r;return null},dt.prototype.goToAndStop=function(t,r,i){if(!(i&&this.name!==i)){var a=Number(t);if(isNaN(a)){var d=this.getMarkerData(t);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},dt.prototype.goToAndPlay=function(t,r,i){if(!(i&&this.name!==i)){var a=Number(t);if(isNaN(a)){var d=this.getMarkerData(t);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(a,r,i);this.play()}},dt.prototype.advanceTime=function(t){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+t*this.frameModifier,i=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(i=!0,r=this.totalFrames-1):r>=this.totalFrames?(this.playCount+=1,this.checkSegments(r%this.totalFrames)||(this.setCurrentRawFrameValue(r%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(r):r<0?this.checkSegments(r%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+r%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,r=0)):this.setCurrentRawFrameValue(r),i&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},dt.prototype.adjustSegment=function(t,r){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},dt.prototype.setSegment=function(t,r){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>r&&(i=r-t)),this.firstFrame=t,this.totalFrames=r-t,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},dt.prototype.playSegments=function(t,r){if(r&&(this.segments.length=0),Fo(t[0])==="object"){var i,a=t.length;for(i=0;i<a;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},dt.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},dt.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},dt.prototype.destroy=function(t){t&&this.name!==t||!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)},dt.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},dt.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},dt.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},dt.prototype.setLoop=function(t){this.loop=t},dt.prototype.setVolume=function(t,r){r&&this.name!==r||this.audioController.setVolume(t)},dt.prototype.getVolume=function(){return this.audioController.getVolume()},dt.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},dt.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},dt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},dt.prototype.getPath=function(){return this.path},dt.prototype.getAssetsPath=function(t){var r="";if(t.e)r=t.p;else if(this.assetsPath){var i=t.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),r=this.assetsPath+i}else r=this.path,r+=t.u?t.u:"",r+=t.p;return r},dt.prototype.getAssetData=function(t){for(var r=0,i=this.assets.length;r<i;){if(t===this.assets[r].id)return this.assets[r];r+=1}return null},dt.prototype.hide=function(){this.renderer.hide()},dt.prototype.show=function(){this.renderer.show()},dt.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},dt.prototype.updateDocumentData=function(t,r,i){try{var a=this.renderer.getElementByPath(t);a.updateDocumentData(r,i)}catch{}},dt.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new Pe(t,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(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new Mc(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new Bs(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new Nc(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new Rc(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Pe(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Mc(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new Bs(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Nc(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Rc(t,this))},dt.prototype.triggerRenderFrameError=function(t){var r=new lu(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},dt.prototype.triggerConfigError=function(t){var r=new cu(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var Ut=function(){var t={},r=[],i=0,a=0,d=0,c=!0,p=!1;function x(T){for(var R=0,m=T.target;R<a;)r[R].animation===m&&(r.splice(R,1),R-=1,a-=1,m.isPaused||V()),R+=1}function u(T,R){if(!T)return null;for(var m=0;m<a;){if(r[m].elem===T&&r[m].elem!==null)return r[m].animation;m+=1}var v=new dt;return b(v,T),v.setData(T,R),v}function k(){var T,R=r.length,m=[];for(T=0;T<R;T+=1)m.push(r[T].animation);return m}function I(){d+=1,pt()}function V(){d-=1}function b(T,R){T.addEventListener("destroy",x),T.addEventListener("_active",I),T.addEventListener("_idle",V),r.push({elem:R,animation:T}),a+=1}function L(T){var R=new dt;return b(R,null),R.setParams(T),R}function O(T,R){var m;for(m=0;m<a;m+=1)r[m].animation.setSpeed(T,R)}function N(T,R){var m;for(m=0;m<a;m+=1)r[m].animation.setDirection(T,R)}function z(T){var R;for(R=0;R<a;R+=1)r[R].animation.play(T)}function w(T){var R=T-i,m;for(m=0;m<a;m+=1)r[m].animation.advanceTime(R);i=T,d&&!p?window.requestAnimationFrame(w):c=!0}function _(T){i=T,window.requestAnimationFrame(w)}function g(T){var R;for(R=0;R<a;R+=1)r[R].animation.pause(T)}function E(T,R,m){var v;for(v=0;v<a;v+=1)r[v].animation.goToAndStop(T,R,m)}function C(T){var R;for(R=0;R<a;R+=1)r[R].animation.stop(T)}function P(T){var R;for(R=0;R<a;R+=1)r[R].animation.togglePause(T)}function $(T){var R;for(R=a-1;R>=0;R-=1)r[R].animation.destroy(T)}function H(T,R,m){var v=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,D=v.length;for(U=0;U<D;U+=1)m&&v[U].setAttribute("data-bm-type",m),u(v[U],T);if(R&&D===0){m||(m="svg");var it=document.getElementsByTagName("body")[0];it.innerText="";var ht=M("div");ht.style.width="100%",ht.style.height="100%",ht.setAttribute("data-bm-type",m),it.appendChild(ht),u(ht,T)}}function K(){var T;for(T=0;T<a;T+=1)r[T].animation.resize()}function pt(){!p&&d&&c&&(window.requestAnimationFrame(_),c=!1)}function nt(){p=!0}function tt(){p=!1,pt()}function vt(T,R){var m;for(m=0;m<a;m+=1)r[m].animation.setVolume(T,R)}function st(T){var R;for(R=0;R<a;R+=1)r[R].animation.mute(T)}function Y(T){var R;for(R=0;R<a;R+=1)r[R].animation.unmute(T)}return t.registerAnimation=u,t.loadAnimation=L,t.setSpeed=O,t.setDirection=N,t.play=z,t.pause=g,t.stop=C,t.togglePause=P,t.searchAnimations=H,t.resize=K,t.goToAndStop=E,t.destroy=$,t.freeze=nt,t.unfreeze=tt,t.setVolume=vt,t.mute=st,t.unmute=Y,t.getRegisteredAnimations=k,t}(),zo=function(){var t={};t.getBezierEasing=i;var r={};function i(_,g,E,C,P){var $=P||("bez_"+_+"_"+g+"_"+E+"_"+C).replace(/\./g,"p");if(r[$])return r[$];var H=new w([_,g,E,C]);return r[$]=H,H}var a=4,d=.001,c=1e-7,p=10,x=11,u=1/(x-1),k=typeof Float32Array=="function";function I(_,g){return 1-3*g+3*_}function V(_,g){return 3*g-6*_}function b(_){return 3*_}function L(_,g,E){return((I(g,E)*_+V(g,E))*_+b(g))*_}function O(_,g,E){return 3*I(g,E)*_*_+2*V(g,E)*_+b(g)}function N(_,g,E,C,P){var $,H,K=0;do H=g+(E-g)/2,$=L(H,C,P)-_,$>0?E=H:g=H;while(Math.abs($)>c&&++K<p);return H}function z(_,g,E,C){for(var P=0;P<a;++P){var $=O(g,E,C);if($===0)return g;var H=L(g,E,C)-_;g-=H/$}return g}function w(_){this._p=_,this._mSampleValues=k?new Float32Array(x):new Array(x),this._precomputed=!1,this.get=this.get.bind(this)}return w.prototype={get:function(g){var E=this._p[0],C=this._p[1],P=this._p[2],$=this._p[3];return this._precomputed||this._precompute(),E===C&&P===$?g:g===0?0:g===1?1:L(this._getTForX(g),C,$)},_precompute:function(){var g=this._p[0],E=this._p[1],C=this._p[2],P=this._p[3];this._precomputed=!0,(g!==E||C!==P)&&this._calcSampleValues()},_calcSampleValues:function(){for(var g=this._p[0],E=this._p[2],C=0;C<x;++C)this._mSampleValues[C]=L(C*u,g,E)},_getTForX:function(g){for(var E=this._p[0],C=this._p[2],P=this._mSampleValues,$=0,H=1,K=x-1;H!==K&&P[H]<=g;++H)$+=u;--H;var pt=(g-P[H])/(P[H+1]-P[H]),nt=$+pt*u,tt=O(nt,E,C);return tt>=d?z(g,nt,E,C):tt===0?nt:N(g,$,$+u,E,C)}},t}(),$c=function(){function t(r){return r.concat(et(r.length))}return{double:t}}(),js=function(){return function(t,r,i){var a=0,d=t,c=et(d),p={newElement:x,release:u};function x(){var k;return a?(a-=1,k=c[a]):k=r(),k}function u(k){a===d&&(c=$c.double(c),d*=2),i&&i(k),c[a]=k,a+=1}return p}}(),Vc=function(){function t(){return{addedLength:0,percents:Q("float32",Oo()),lengths:Q("float32",Oo())}}return js(8,t)}(),Bc=function(){function t(){return{lengths:[],totalLength:0}}function r(i){var a,d=i.lengths.length;for(a=0;a<d;a+=1)Vc.release(i.lengths[a]);i.lengths.length=0}return js(8,t,r)}();function xu(){var t=Math;function r(b,L,O,N,z,w){var _=b*N+L*z+O*w-z*N-w*b-O*L;return _>-.001&&_<.001}function i(b,L,O,N,z,w,_,g,E){if(O===0&&w===0&&E===0)return r(b,L,N,z,_,g);var C=t.sqrt(t.pow(N-b,2)+t.pow(z-L,2)+t.pow(w-O,2)),P=t.sqrt(t.pow(_-b,2)+t.pow(g-L,2)+t.pow(E-O,2)),$=t.sqrt(t.pow(_-N,2)+t.pow(g-z,2)+t.pow(E-w,2)),H;return C>P?C>$?H=C-P-$:H=$-P-C:$>P?H=$-P-C:H=P-C-$,H>-1e-4&&H<1e-4}var a=function(){return function(b,L,O,N){var z=Oo(),w,_,g,E,C,P=0,$,H=[],K=[],pt=Vc.newElement();for(g=O.length,w=0;w<z;w+=1){for(C=w/(z-1),$=0,_=0;_<g;_+=1)E=Pt(1-C,3)*b[_]+3*Pt(1-C,2)*C*O[_]+3*(1-C)*Pt(C,2)*N[_]+Pt(C,3)*L[_],H[_]=E,K[_]!==null&&($+=Pt(H[_]-K[_],2)),K[_]=H[_];$&&($=ve($),P+=$),pt.percents[w]=C,pt.lengths[w]=P}return pt.addedLength=P,pt}}();function d(b){var L=Bc.newElement(),O=b.c,N=b.v,z=b.o,w=b.i,_,g=b._length,E=L.lengths,C=0;for(_=0;_<g-1;_+=1)E[_]=a(N[_],N[_+1],z[_],w[_+1]),C+=E[_].addedLength;return O&&g&&(E[_]=a(N[_],N[0],z[_],w[0]),C+=E[_].addedLength),L.totalLength=C,L}function c(b){this.segmentLength=0,this.points=new Array(b)}function p(b,L){this.partialLength=b,this.point=L}var x=function(){var b={};return function(L,O,N,z){var w=(L[0]+"_"+L[1]+"_"+O[0]+"_"+O[1]+"_"+N[0]+"_"+N[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!b[w]){var _=Oo(),g,E,C,P,$,H=0,K,pt,nt=null;L.length===2&&(L[0]!==O[0]||L[1]!==O[1])&&r(L[0],L[1],O[0],O[1],L[0]+N[0],L[1]+N[1])&&r(L[0],L[1],O[0],O[1],O[0]+z[0],O[1]+z[1])&&(_=2);var tt=new c(_);for(C=N.length,g=0;g<_;g+=1){for(pt=et(C),$=g/(_-1),K=0,E=0;E<C;E+=1)P=Pt(1-$,3)*L[E]+3*Pt(1-$,2)*$*(L[E]+N[E])+3*(1-$)*Pt($,2)*(O[E]+z[E])+Pt($,3)*O[E],pt[E]=P,nt!==null&&(K+=Pt(pt[E]-nt[E],2));K=ve(K),H+=K,tt.points[g]=new p(K,pt),nt=pt}tt.segmentLength=H,b[w]=tt}return b[w]}}();function u(b,L){var O=L.percents,N=L.lengths,z=O.length,w=Qt((z-1)*b),_=b*L.addedLength,g=0;if(w===z-1||w===0||_===N[w])return O[w];for(var E=N[w]>_?-1:1,C=!0;C;)if(N[w]<=_&&N[w+1]>_?(g=(_-N[w])/(N[w+1]-N[w]),C=!1):w+=E,w<0||w>=z-1){if(w===z-1)return O[w];C=!1}return O[w]+(O[w+1]-O[w])*g}function k(b,L,O,N,z,w){var _=u(z,w),g=1-_,E=t.round((g*g*g*b[0]+(_*g*g+g*_*g+g*g*_)*O[0]+(_*_*g+g*_*_+_*g*_)*N[0]+_*_*_*L[0])*1e3)/1e3,C=t.round((g*g*g*b[1]+(_*g*g+g*_*g+g*g*_)*O[1]+(_*_*g+g*_*_+_*g*_)*N[1]+_*_*_*L[1])*1e3)/1e3;return[E,C]}var I=Q("float32",8);function V(b,L,O,N,z,w,_){z<0?z=0:z>1&&(z=1);var g=u(z,_);w=w>1?1:w;var E=u(w,_),C,P=b.length,$=1-g,H=1-E,K=$*$*$,pt=g*$*$*3,nt=g*g*$*3,tt=g*g*g,vt=$*$*H,st=g*$*H+$*g*H+$*$*E,Y=g*g*H+$*g*E+g*$*E,T=g*g*E,R=$*H*H,m=g*H*H+$*E*H+$*H*E,v=g*E*H+$*E*E+g*H*E,U=g*E*E,D=H*H*H,it=E*H*H+H*E*H+H*H*E,ht=E*E*H+H*E*E+E*H*E,ut=E*E*E;for(C=0;C<P;C+=1)I[C*4]=t.round((K*b[C]+pt*O[C]+nt*N[C]+tt*L[C])*1e3)/1e3,I[C*4+1]=t.round((vt*b[C]+st*O[C]+Y*N[C]+T*L[C])*1e3)/1e3,I[C*4+2]=t.round((R*b[C]+m*O[C]+v*N[C]+U*L[C])*1e3)/1e3,I[C*4+3]=t.round((D*b[C]+it*O[C]+ht*N[C]+ut*L[C])*1e3)/1e3;return I}return{getSegmentsLength:d,getNewSegment:V,getPointInSegment:k,buildBezierData:x,pointOnLine2D:r,pointOnLine3D:i}}var rr=xu(),si=s,Uc=Math.abs;function Hc(t,r){var i=this.offsetTime,a;this.propType==="multidimensional"&&(a=Q("float32",this.pv.length));for(var d=r.lastIndex,c=d,p=this.keyframes.length-1,x=!0,u,k,I;x;){if(u=this.keyframes[c],k=this.keyframes[c+1],c===p-1&&t>=k.t-i){u.h&&(u=k),d=0;break}if(k.t-i>t){d=c;break}c<p-1?c+=1:(d=0,x=!1)}I=this.keyframesMetadata[c]||{};var V,b,L,O,N,z,w=k.t-i,_=u.t-i,g;if(u.to){I.bezierData||(I.bezierData=rr.buildBezierData(u.s,k.s||u.e,u.to,u.ti));var E=I.bezierData;if(t>=w||t<_){var C=t>=w?E.points.length-1:0;for(b=E.points[C].point.length,V=0;V<b;V+=1)a[V]=E.points[C].point[V]}else{I.__fnct?z=I.__fnct:(z=zo.getBezierEasing(u.o.x,u.o.y,u.i.x,u.i.y,u.n).get,I.__fnct=z),L=z((t-_)/(w-_));var P=E.segmentLength*L,$,H=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(N=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastPoint:0,x=!0,O=E.points.length;x;){if(H+=E.points[N].partialLength,P===0||L===0||N===E.points.length-1){for(b=E.points[N].point.length,V=0;V<b;V+=1)a[V]=E.points[N].point[V];break}else if(P>=H&&P<H+E.points[N+1].partialLength){for($=(P-H)/E.points[N+1].partialLength,b=E.points[N].point.length,V=0;V<b;V+=1)a[V]=E.points[N].point[V]+(E.points[N+1].point[V]-E.points[N].point[V])*$;break}N<O-1?N+=1:x=!1}r._lastPoint=N,r._lastAddedLength=H-E.points[N].partialLength,r._lastKeyframeIndex=c}}else{var K,pt,nt,tt,vt;if(p=u.s.length,g=k.s||u.e,this.sh&&u.h!==1)if(t>=w)a[0]=g[0],a[1]=g[1],a[2]=g[2];else if(t<=_)a[0]=u.s[0],a[1]=u.s[1],a[2]=u.s[2];else{var st=Gc(u.s),Y=Gc(g),T=(t-_)/(w-_);Tu(a,Eu(st,Y,T))}else for(c=0;c<p;c+=1)u.h!==1&&(t>=w?L=1:t<_?L=0:(u.o.x.constructor===Array?(I.__fnct||(I.__fnct=[]),I.__fnct[c]?z=I.__fnct[c]:(K=u.o.x[c]===void 0?u.o.x[0]:u.o.x[c],pt=u.o.y[c]===void 0?u.o.y[0]:u.o.y[c],nt=u.i.x[c]===void 0?u.i.x[0]:u.i.x[c],tt=u.i.y[c]===void 0?u.i.y[0]:u.i.y[c],z=zo.getBezierEasing(K,pt,nt,tt).get,I.__fnct[c]=z)):I.__fnct?z=I.__fnct:(K=u.o.x,pt=u.o.y,nt=u.i.x,tt=u.i.y,z=zo.getBezierEasing(K,pt,nt,tt).get,u.keyframeMetadata=z),L=z((t-_)/(w-_)))),g=k.s||u.e,vt=u.h===1?u.s[c]:u.s[c]+(g[c]-u.s[c])*L,this.propType==="multidimensional"?a[c]=vt:a=vt}return r.lastIndex=d,a}function Eu(t,r,i){var a=[],d=t[0],c=t[1],p=t[2],x=t[3],u=r[0],k=r[1],I=r[2],V=r[3],b,L,O,N,z;return L=d*u+c*k+p*I+x*V,L<0&&(L=-L,u=-u,k=-k,I=-I,V=-V),1-L>1e-6?(b=Math.acos(L),O=Math.sin(b),N=Math.sin((1-i)*b)/O,z=Math.sin(i*b)/O):(N=1-i,z=i),a[0]=N*d+z*u,a[1]=N*c+z*k,a[2]=N*p+z*I,a[3]=N*x+z*V,a}function Tu(t,r){var i=r[0],a=r[1],d=r[2],c=r[3],p=Math.atan2(2*a*c-2*i*d,1-2*a*a-2*d*d),x=Math.asin(2*i*a+2*d*c),u=Math.atan2(2*i*c-2*a*d,1-2*i*i-2*d*d);t[0]=p/Tt,t[1]=x/Tt,t[2]=u/Tt}function Gc(t){var r=t[0]*Tt,i=t[1]*Tt,a=t[2]*Tt,d=Math.cos(r/2),c=Math.cos(i/2),p=Math.cos(a/2),x=Math.sin(r/2),u=Math.sin(i/2),k=Math.sin(a/2),I=d*c*p-x*u*k,V=x*u*p+d*c*k,b=x*c*p+d*u*k,L=d*u*p-x*c*k;return[V,b,L,I]}function jc(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==si&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<r&&t<r))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(t,this._caching);this.pv=a}return this._caching.lastFrame=t,this.pv}function Ws(t){var r;if(this.propType==="unidimensional")r=t*this.mult,Uc(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var i=0,a=this.v.length;i<a;)r=t[i]*this.mult,Uc(this.v[i]-r)>1e-5&&(this.v[i]=r,this._mdf=!0),i+=1}function qs(){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 t,r=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<r;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Ys(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function Au(t,r,i,a){this.propType="unidimensional",this.mult=i||1,this.data=r,this.v=i?r.k*i:r.k,this.pv=r.k,this._mdf=!1,this.elem=t,this.container=a,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=qs,this.setVValue=Ws,this.addEffect=Ys}function _u(t,r,i,a){this.propType="multidimensional",this.mult=i||1,this.data=r,this._mdf=!1,this.elem=t,this.container=a,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var d,c=r.k.length;for(this.v=Q("float32",c),this.pv=Q("float32",c),this.vel=Q("float32",c),d=0;d<c;d+=1)this.v[d]=r.k[d]*this.mult,this.pv[d]=r.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=qs,this.setVValue=Ws,this.addEffect=Ys}function Su(t,r,i,a){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:si,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=i||1,this.elem=t,this.container=a,this.comp=t.comp,this.v=si,this.pv=si,this._isFirstFrame=!0,this.getValue=qs,this.setVValue=Ws,this.interpolateValue=Hc,this.effectsSequence=[jc.bind(this)],this.addEffect=Ys}function ku(t,r,i,a){this.propType="multidimensional";var d,c=r.k.length,p,x,u,k;for(d=0;d<c-1;d+=1)r.k[d].to&&r.k[d].s&&r.k[d+1]&&r.k[d+1].s&&(p=r.k[d].s,x=r.k[d+1].s,u=r.k[d].to,k=r.k[d].ti,(p.length===2&&!(p[0]===x[0]&&p[1]===x[1])&&rr.pointOnLine2D(p[0],p[1],x[0],x[1],p[0]+u[0],p[1]+u[1])&&rr.pointOnLine2D(p[0],p[1],x[0],x[1],x[0]+k[0],x[1]+k[1])||p.length===3&&!(p[0]===x[0]&&p[1]===x[1]&&p[2]===x[2])&&rr.pointOnLine3D(p[0],p[1],p[2],x[0],x[1],x[2],p[0]+u[0],p[1]+u[1],p[2]+u[2])&&rr.pointOnLine3D(p[0],p[1],p[2],x[0],x[1],x[2],x[0]+k[0],x[1]+k[1],x[2]+k[2]))&&(r.k[d].to=null,r.k[d].ti=null),p[0]===x[0]&&p[1]===x[1]&&u[0]===0&&u[1]===0&&k[0]===0&&k[1]===0&&(p.length===2||p[2]===x[2]&&u[2]===0&&k[2]===0)&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[jc.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=a,this.comp=t.comp,this.getValue=qs,this.setVValue=Ws,this.interpolateValue=Hc,this.frameId=-1;var I=r.k[0].s.length;for(this.v=Q("float32",I),this.pv=Q("float32",I),d=0;d<I;d+=1)this.v[d]=si,this.pv[d]=si;this._caching={lastFrame:si,lastIndex:0,value:Q("float32",I)},this.addEffect=Ys}var rt=function(){function t(i,a,d,c,p){a.sid&&(a=i.globalData.slotManager.getProp(a));var x;if(!a.k.length)x=new Au(i,a,c,p);else if(typeof a.k[0]=="number")x=new _u(i,a,c,p);else switch(d){case 0:x=new Su(i,a,c,p);break;case 1:x=new ku(i,a,c,p);break;default:break}return x.effectsSequence.length&&p.addDynamicProperty(x),x}var r={getProp:t};return r}();function te(){}te.prototype={addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&(this.dynamicProperties.push(r),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(r){this.container=r,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var ai=function(){function t(){return Q("float32",2)}return js(8,t)}();function hr(){this.c=!1,this._length=0,this._maxLength=8,this.v=et(this._maxLength),this.o=et(this._maxLength),this.i=et(this._maxLength)}hr.prototype.setPathData=function(t,r){this.c=t,this.setLength(r);for(var i=0;i<r;)this.v[i]=ai.newElement(),this.o[i]=ai.newElement(),this.i[i]=ai.newElement(),i+=1},hr.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},hr.prototype.doubleArrayLength=function(){this.v=this.v.concat(et(this._maxLength)),this.i=this.i.concat(et(this._maxLength)),this.o=this.o.concat(et(this._maxLength)),this._maxLength*=2},hr.prototype.setXYAt=function(t,r,i,a,d){var c;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[a]||c[a]&&!d)&&(c[a]=ai.newElement()),c[a][0]=t,c[a][1]=r},hr.prototype.setTripleAt=function(t,r,i,a,d,c,p,x){this.setXYAt(t,r,"v",p,x),this.setXYAt(i,a,"o",p,x),this.setXYAt(d,c,"i",p,x)},hr.prototype.reverse=function(){var t=new hr;t.setPathData(this.c,this._length);var r=this.v,i=this.o,a=this.i,d=0;this.c&&(t.setTripleAt(r[0][0],r[0][1],a[0][0],a[0][1],i[0][0],i[0][1],0,!1),d=1);var c=this._length-1,p=this._length,x;for(x=d;x<p;x+=1)t.setTripleAt(r[c][0],r[c][1],a[c][0],a[c][1],i[c][0],i[c][1],x,!1),c-=1;return t},hr.prototype.length=function(){return this._length};var se=function(){function t(){return new hr}function r(d){var c=d._length,p;for(p=0;p<c;p+=1)ai.release(d.v[p]),ai.release(d.i[p]),ai.release(d.o[p]),d.v[p]=null,d.i[p]=null,d.o[p]=null;d._length=0,d.c=!1}function i(d){var c=a.newElement(),p,x=d._length===void 0?d.v.length:d._length;for(c.setLength(x),c.c=d.c,p=0;p<x;p+=1)c.setTripleAt(d.v[p][0],d.v[p][1],d.o[p][0],d.o[p][1],d.i[p][0],d.i[p][1],p);return c}var a=js(4,t,r);return a.clone=i,a}();function Rn(){this._length=0,this._maxLength=4,this.shapes=et(this._maxLength)}Rn.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(et(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},Rn.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)se.release(this.shapes[t]);this._length=0};var Wi=function(){var t={newShapeCollection:d,release:c},r=0,i=4,a=et(i);function d(){var p;return r?(r-=1,p=a[r]):p=new Rn,p}function c(p){var x,u=p._length;for(x=0;x<u;x+=1)se.release(p.shapes[x]);p._length=0,r===i&&(a=$c.double(a),i*=2),a[r]=p,r+=1}return t}(),Ks=function(){var t=-999999;function r(w,_,g){var E=g.lastIndex,C,P,$,H,K,pt,nt,tt,vt,st=this.keyframes;if(w<st[0].t-this.offsetTime)C=st[0].s[0],$=!0,E=0;else if(w>=st[st.length-1].t-this.offsetTime)C=st[st.length-1].s?st[st.length-1].s[0]:st[st.length-2].e[0],$=!0;else{for(var Y=E,T=st.length-1,R=!0,m,v,U;R&&(m=st[Y],v=st[Y+1],!(v.t-this.offsetTime>w));)Y<T-1?Y+=1:R=!1;if(U=this.keyframesMetadata[Y]||{},$=m.h===1,E=Y,!$){if(w>=v.t-this.offsetTime)tt=1;else if(w<m.t-this.offsetTime)tt=0;else{var D;U.__fnct?D=U.__fnct:(D=zo.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,U.__fnct=D),tt=D((w-(m.t-this.offsetTime))/(v.t-this.offsetTime-(m.t-this.offsetTime)))}P=v.s?v.s[0]:m.e[0]}C=m.s[0]}for(pt=_._length,nt=C.i[0].length,g.lastIndex=E,H=0;H<pt;H+=1)for(K=0;K<nt;K+=1)vt=$?C.i[H][K]:C.i[H][K]+(P.i[H][K]-C.i[H][K])*tt,_.i[H][K]=vt,vt=$?C.o[H][K]:C.o[H][K]+(P.o[H][K]-C.o[H][K])*tt,_.o[H][K]=vt,vt=$?C.v[H][K]:C.v[H][K]+(P.v[H][K]-C.v[H][K])*tt,_.v[H][K]=vt}function i(){var w=this.comp.renderedFrame-this.offsetTime,_=this.keyframes[0].t-this.offsetTime,g=this.keyframes[this.keyframes.length-1].t-this.offsetTime,E=this._caching.lastFrame;return E!==t&&(E<_&&w<_||E>g&&w>g)||(this._caching.lastIndex=E<w?this._caching.lastIndex:0,this.interpolateShape(w,this.pv,this._caching)),this._caching.lastFrame=w,this.pv}function a(){this.paths=this.localShapeCollection}function d(w,_){if(w._length!==_._length||w.c!==_.c)return!1;var g,E=w._length;for(g=0;g<E;g+=1)if(w.v[g][0]!==_.v[g][0]||w.v[g][1]!==_.v[g][1]||w.o[g][0]!==_.o[g][0]||w.o[g][1]!==_.o[g][1]||w.i[g][0]!==_.i[g][0]||w.i[g][1]!==_.i[g][1])return!1;return!0}function c(w){d(this.v,w)||(this.v=se.clone(w),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function p(){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 w;this.kf?w=this.pv:this.data.ks?w=this.data.ks.k:w=this.data.pt.k;var _,g=this.effectsSequence.length;for(_=0;_<g;_+=1)w=this.effectsSequence[_](w);this.setVValue(w),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function x(w,_,g){this.propType="shape",this.comp=w.comp,this.container=w,this.elem=w,this.data=_,this.k=!1,this.kf=!1,this._mdf=!1;var E=g===3?_.pt.k:_.ks.k;this.v=se.clone(E),this.pv=se.clone(this.v),this.localShapeCollection=Wi.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function u(w){this.effectsSequence.push(w),this.container.addDynamicProperty(this)}x.prototype.interpolateShape=r,x.prototype.getValue=p,x.prototype.setVValue=c,x.prototype.addEffect=u;function k(w,_,g){this.propType="shape",this.comp=w.comp,this.elem=w,this.container=w,this.offsetTime=w.data.st,this.keyframes=g===3?_.pt.k:_.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var E=this.keyframes[0].s[0].i.length;this.v=se.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,E),this.pv=se.clone(this.v),this.localShapeCollection=Wi.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=a,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}k.prototype.getValue=p,k.prototype.interpolateShape=r,k.prototype.setVValue=c,k.prototype.addEffect=u;var I=function(){var w=de;function _(g,E){this.v=se.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Wi.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=E.d,this.elem=g,this.comp=g.comp,this.frameId=-1,this.initDynamicPropertyContainer(g),this.p=rt.getProp(g,E.p,1,0,this),this.s=rt.getProp(g,E.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return _.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var E=this.p.v[0],C=this.p.v[1],P=this.s.v[0]/2,$=this.s.v[1]/2,H=this.d!==3,K=this.v;K.v[0][0]=E,K.v[0][1]=C-$,K.v[1][0]=H?E+P:E-P,K.v[1][1]=C,K.v[2][0]=E,K.v[2][1]=C+$,K.v[3][0]=H?E-P:E+P,K.v[3][1]=C,K.i[0][0]=H?E-P*w:E+P*w,K.i[0][1]=C-$,K.i[1][0]=H?E+P:E-P,K.i[1][1]=C-$*w,K.i[2][0]=H?E+P*w:E-P*w,K.i[2][1]=C+$,K.i[3][0]=H?E-P:E+P,K.i[3][1]=C+$*w,K.o[0][0]=H?E+P*w:E-P*w,K.o[0][1]=C-$,K.o[1][0]=H?E+P:E-P,K.o[1][1]=C+$*w,K.o[2][0]=H?E-P*w:E+P*w,K.o[2][1]=C+$,K.o[3][0]=H?E-P:E+P,K.o[3][1]=C-$*w}},B([te],_),_}(),V=function(){function w(_,g){this.v=se.newElement(),this.v.setPathData(!0,0),this.elem=_,this.comp=_.comp,this.data=g,this.frameId=-1,this.d=g.d,this.initDynamicPropertyContainer(_),g.sy===1?(this.ir=rt.getProp(_,g.ir,0,0,this),this.is=rt.getProp(_,g.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=rt.getProp(_,g.pt,0,0,this),this.p=rt.getProp(_,g.p,1,0,this),this.r=rt.getProp(_,g.r,0,Tt,this),this.or=rt.getProp(_,g.or,0,0,this),this.os=rt.getProp(_,g.os,0,.01,this),this.localShapeCollection=Wi.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return w.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var g=Math.floor(this.pt.v)*2,E=Math.PI*2/g,C=!0,P=this.or.v,$=this.ir.v,H=this.os.v,K=this.is.v,pt=2*Math.PI*P/(g*2),nt=2*Math.PI*$/(g*2),tt,vt,st,Y,T=-Math.PI/2;T+=this.r.v;var R=this.data.d===3?-1:1;for(this.v._length=0,tt=0;tt<g;tt+=1){vt=C?P:$,st=C?H:K,Y=C?pt:nt;var m=vt*Math.cos(T),v=vt*Math.sin(T),U=m===0&&v===0?0:v/Math.sqrt(m*m+v*v),D=m===0&&v===0?0:-m/Math.sqrt(m*m+v*v);m+=+this.p.v[0],v+=+this.p.v[1],this.v.setTripleAt(m,v,m-U*Y*st*R,v-D*Y*st*R,m+U*Y*st*R,v+D*Y*st*R,tt,!0),C=!C,T+=E*R}},convertPolygonToPath:function(){var g=Math.floor(this.pt.v),E=Math.PI*2/g,C=this.or.v,P=this.os.v,$=2*Math.PI*C/(g*4),H,K=-Math.PI*.5,pt=this.data.d===3?-1:1;for(K+=this.r.v,this.v._length=0,H=0;H<g;H+=1){var nt=C*Math.cos(K),tt=C*Math.sin(K),vt=nt===0&&tt===0?0:tt/Math.sqrt(nt*nt+tt*tt),st=nt===0&&tt===0?0:-nt/Math.sqrt(nt*nt+tt*tt);nt+=+this.p.v[0],tt+=+this.p.v[1],this.v.setTripleAt(nt,tt,nt-vt*$*P*pt,tt-st*$*P*pt,nt+vt*$*P*pt,tt+st*$*P*pt,H,!0),K+=E*pt}this.paths.length=0,this.paths[0]=this.v}},B([te],w),w}(),b=function(){function w(_,g){this.v=se.newElement(),this.v.c=!0,this.localShapeCollection=Wi.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=_,this.comp=_.comp,this.frameId=-1,this.d=g.d,this.initDynamicPropertyContainer(_),this.p=rt.getProp(_,g.p,1,0,this),this.s=rt.getProp(_,g.s,1,0,this),this.r=rt.getProp(_,g.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return w.prototype={convertRectToPath:function(){var g=this.p.v[0],E=this.p.v[1],C=this.s.v[0]/2,P=this.s.v[1]/2,$=we(C,P,this.r.v),H=$*(1-de);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(g+C,E-P+$,g+C,E-P+$,g+C,E-P+H,0,!0),this.v.setTripleAt(g+C,E+P-$,g+C,E+P-H,g+C,E+P-$,1,!0),$!==0?(this.v.setTripleAt(g+C-$,E+P,g+C-$,E+P,g+C-H,E+P,2,!0),this.v.setTripleAt(g-C+$,E+P,g-C+H,E+P,g-C+$,E+P,3,!0),this.v.setTripleAt(g-C,E+P-$,g-C,E+P-$,g-C,E+P-H,4,!0),this.v.setTripleAt(g-C,E-P+$,g-C,E-P+H,g-C,E-P+$,5,!0),this.v.setTripleAt(g-C+$,E-P,g-C+$,E-P,g-C+H,E-P,6,!0),this.v.setTripleAt(g+C-$,E-P,g+C-H,E-P,g+C-$,E-P,7,!0)):(this.v.setTripleAt(g-C,E+P,g-C+H,E+P,g-C,E+P,2),this.v.setTripleAt(g-C,E-P,g-C,E-P+H,g-C,E-P,3))):(this.v.setTripleAt(g+C,E-P+$,g+C,E-P+H,g+C,E-P+$,0,!0),$!==0?(this.v.setTripleAt(g+C-$,E-P,g+C-$,E-P,g+C-H,E-P,1,!0),this.v.setTripleAt(g-C+$,E-P,g-C+H,E-P,g-C+$,E-P,2,!0),this.v.setTripleAt(g-C,E-P+$,g-C,E-P+$,g-C,E-P+H,3,!0),this.v.setTripleAt(g-C,E+P-$,g-C,E+P-H,g-C,E+P-$,4,!0),this.v.setTripleAt(g-C+$,E+P,g-C+$,E+P,g-C+H,E+P,5,!0),this.v.setTripleAt(g+C-$,E+P,g+C-H,E+P,g+C-$,E+P,6,!0),this.v.setTripleAt(g+C,E+P-$,g+C,E+P-$,g+C,E+P-H,7,!0)):(this.v.setTripleAt(g-C,E-P,g-C+H,E-P,g-C,E-P,1,!0),this.v.setTripleAt(g-C,E+P,g-C,E+P-H,g-C,E+P,2,!0),this.v.setTripleAt(g+C,E+P,g+C-H,E+P,g+C,E+P,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},B([te],w),w}();function L(w,_,g){var E;if(g===3||g===4){var C=g===3?_.pt:_.ks,P=C.k;P.length?E=new k(w,_,g):E=new x(w,_,g)}else g===5?E=new b(w,_):g===6?E=new I(w,_):g===7&&(E=new V(w,_));return E.k&&w.addDynamicProperty(E),E}function O(){return x}function N(){return k}var z={};return z.getShapeProp=L,z.getConstructorFunction=O,z.getKeyframedConstructorFunction=N,z}();var ae=function(){var t=Math.cos,r=Math.sin,i=Math.tan,a=Math.round;function d(){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 c(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(v,-U,0,0,U,v,0,0,0,0,1,0,0,0,0,1)}function p(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(1,0,0,0,0,v,-U,0,0,U,v,0,0,0,0,1)}function x(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(v,0,U,0,0,1,0,0,-U,0,v,0,0,0,0,1)}function u(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(v,-U,0,0,U,v,0,0,0,0,1,0,0,0,0,1)}function k(m,v){return this._t(1,v,m,1,0,0)}function I(m,v){return this.shear(i(m),i(v))}function V(m,v){var U=t(v),D=r(v);return this._t(U,D,0,0,-D,U,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(m),1,0,0,0,0,1,0,0,0,0,1)._t(U,-D,0,0,D,U,0,0,0,0,1,0,0,0,0,1)}function b(m,v,U){return!U&&U!==0&&(U=1),m===1&&v===1&&U===1?this:this._t(m,0,0,0,0,v,0,0,0,0,U,0,0,0,0,1)}function L(m,v,U,D,it,ht,ut,kt,Ct,Ht,ye,or,xe,ee,Ie,Lt){return this.props[0]=m,this.props[1]=v,this.props[2]=U,this.props[3]=D,this.props[4]=it,this.props[5]=ht,this.props[6]=ut,this.props[7]=kt,this.props[8]=Ct,this.props[9]=Ht,this.props[10]=ye,this.props[11]=or,this.props[12]=xe,this.props[13]=ee,this.props[14]=Ie,this.props[15]=Lt,this}function O(m,v,U){return U=U||0,m!==0||v!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,m,v,U,1):this}function N(m,v,U,D,it,ht,ut,kt,Ct,Ht,ye,or,xe,ee,Ie,Lt){var at=this.props;if(m===1&&v===0&&U===0&&D===0&&it===0&&ht===1&&ut===0&&kt===0&&Ct===0&&Ht===0&&ye===1&&or===0)return at[12]=at[12]*m+at[15]*xe,at[13]=at[13]*ht+at[15]*ee,at[14]=at[14]*ye+at[15]*Ie,at[15]*=Lt,this._identityCalculated=!1,this;var ur=at[0],Hr=at[1],fr=at[2],sr=at[3],vr=at[4],gr=at[5],Ee=at[6],Gr=at[7],jr=at[8],qe=at[9],Wr=at[10],Ye=at[11],di=at[12],oa=at[13],sa=at[14],aa=at[15];return at[0]=ur*m+Hr*it+fr*Ct+sr*xe,at[1]=ur*v+Hr*ht+fr*Ht+sr*ee,at[2]=ur*U+Hr*ut+fr*ye+sr*Ie,at[3]=ur*D+Hr*kt+fr*or+sr*Lt,at[4]=vr*m+gr*it+Ee*Ct+Gr*xe,at[5]=vr*v+gr*ht+Ee*Ht+Gr*ee,at[6]=vr*U+gr*ut+Ee*ye+Gr*Ie,at[7]=vr*D+gr*kt+Ee*or+Gr*Lt,at[8]=jr*m+qe*it+Wr*Ct+Ye*xe,at[9]=jr*v+qe*ht+Wr*Ht+Ye*ee,at[10]=jr*U+qe*ut+Wr*ye+Ye*Ie,at[11]=jr*D+qe*kt+Wr*or+Ye*Lt,at[12]=di*m+oa*it+sa*Ct+aa*xe,at[13]=di*v+oa*ht+sa*Ht+aa*ee,at[14]=di*U+oa*ut+sa*ye+aa*Ie,at[15]=di*D+oa*kt+sa*or+aa*Lt,this._identityCalculated=!1,this}function z(m){var v=m.props;return this.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15])}function w(){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 _(m){for(var v=0;v<16;){if(m.props[v]!==this.props[v])return!1;v+=1}return!0}function g(m){var v;for(v=0;v<16;v+=1)m.props[v]=this.props[v];return m}function E(m){var v;for(v=0;v<16;v+=1)this.props[v]=m[v]}function C(m,v,U){return{x:m*this.props[0]+v*this.props[4]+U*this.props[8]+this.props[12],y:m*this.props[1]+v*this.props[5]+U*this.props[9]+this.props[13],z:m*this.props[2]+v*this.props[6]+U*this.props[10]+this.props[14]}}function P(m,v,U){return m*this.props[0]+v*this.props[4]+U*this.props[8]+this.props[12]}function $(m,v,U){return m*this.props[1]+v*this.props[5]+U*this.props[9]+this.props[13]}function H(m,v,U){return m*this.props[2]+v*this.props[6]+U*this.props[10]+this.props[14]}function K(){var m=this.props[0]*this.props[5]-this.props[1]*this.props[4],v=this.props[5]/m,U=-this.props[1]/m,D=-this.props[4]/m,it=this.props[0]/m,ht=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/m,ut=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/m,kt=new ae;return kt.props[0]=v,kt.props[1]=U,kt.props[4]=D,kt.props[5]=it,kt.props[12]=ht,kt.props[13]=ut,kt}function pt(m){var v=this.getInverseMatrix();return v.applyToPointArray(m[0],m[1],m[2]||0)}function nt(m){var v,U=m.length,D=[];for(v=0;v<U;v+=1)D[v]=pt(m[v]);return D}function tt(m,v,U){var D=Q("float32",6);if(this.isIdentity())D[0]=m[0],D[1]=m[1],D[2]=v[0],D[3]=v[1],D[4]=U[0],D[5]=U[1];else{var it=this.props[0],ht=this.props[1],ut=this.props[4],kt=this.props[5],Ct=this.props[12],Ht=this.props[13];D[0]=m[0]*it+m[1]*ut+Ct,D[1]=m[0]*ht+m[1]*kt+Ht,D[2]=v[0]*it+v[1]*ut+Ct,D[3]=v[0]*ht+v[1]*kt+Ht,D[4]=U[0]*it+U[1]*ut+Ct,D[5]=U[0]*ht+U[1]*kt+Ht}return D}function vt(m,v,U){var D;return this.isIdentity()?D=[m,v,U]:D=[m*this.props[0]+v*this.props[4]+U*this.props[8]+this.props[12],m*this.props[1]+v*this.props[5]+U*this.props[9]+this.props[13],m*this.props[2]+v*this.props[6]+U*this.props[10]+this.props[14]],D}function st(m,v){if(this.isIdentity())return m+","+v;var U=this.props;return Math.round((m*U[0]+v*U[4]+U[12])*100)/100+","+Math.round((m*U[1]+v*U[5]+U[13])*100)/100}function Y(){for(var m=0,v=this.props,U="matrix3d(",D=1e4;m<16;)U+=a(v[m]*D)/D,U+=m===15?")":",",m+=1;return U}function T(m){var v=1e4;return m<1e-6&&m>0||m>-1e-6&&m<0?a(m*v)/v:m}function R(){var m=this.props,v=T(m[0]),U=T(m[1]),D=T(m[4]),it=T(m[5]),ht=T(m[12]),ut=T(m[13]);return"matrix("+v+","+U+","+D+","+it+","+ht+","+ut+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=p,this.rotateY=x,this.rotateZ=u,this.skew=I,this.skewFromAxis=V,this.shear=k,this.scale=b,this.setTransform=L,this.translate=O,this.transform=N,this.multiply=z,this.applyToPoint=C,this.applyToX=P,this.applyToY=$,this.applyToZ=H,this.applyToPointArray=vt,this.applyToTriplePoints=tt,this.applyToPointStringified=st,this.toCSS=Y,this.to2dCSS=R,this.clone=g,this.cloneFromProps=E,this.equals=_,this.inversePoints=nt,this.inversePoint=pt,this.getInverseMatrix=K,this._t=this.transform,this.isIdentity=w,this._identity=!0,this._identityCalculated=!1,this.props=Q("float32",16),this.reset()}}();function Xs(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xs=function(i){return typeof i}:Xs=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Xs(t)}var It={},Zs="__[STANDALONE]__",Wc="__[ANIMATIONDATA]__",qc="";function Cu(t){f(t)}function Yc(){Zs===!0?Ut.searchAnimations(Wc,Zs,qc):Ut.searchAnimations()}function wu(t){du(t)}function Iu(t){pu(t)}function Lu(t){return Zs===!0&&(t.animationData=JSON.parse(Wc)),Ut.loadAnimation(t)}function Mu(t){if(typeof t=="string")switch(t){case"high":Hs(200);break;default:case"medium":Hs(50);break;case"low":Hs(10);break}else!isNaN(t)&&t>1&&Hs(t);Oo()>=50?Oe(!1):Oe(!0)}function Nu(){return typeof navigator<"u"}function Ru(t,r){t==="expressions"&&mu(r)}function Ou(t){switch(t){case"propertyFactory":return rt;case"shapePropertyFactory":return Ks;case"matrix":return ae;default:return null}}It.play=Ut.play,It.pause=Ut.pause,It.setLocationHref=Cu,It.togglePause=Ut.togglePause,It.setSpeed=Ut.setSpeed,It.setDirection=Ut.setDirection,It.stop=Ut.stop,It.searchAnimations=Yc,It.registerAnimation=Ut.registerAnimation,It.loadAnimation=Lu,It.setSubframeRendering=wu,It.resize=Ut.resize,It.goToAndStop=Ut.goToAndStop,It.destroy=Ut.destroy,It.setQuality=Mu,It.inBrowser=Nu,It.installPlugin=Ru,It.freeze=Ut.freeze,It.unfreeze=Ut.unfreeze,It.setVolume=Ut.setVolume,It.mute=Ut.mute,It.unmute=Ut.unmute,It.getRegisteredAnimations=Ut.getRegisteredAnimations,It.useWebWorker=n,It.setIDPrefix=Iu,It.__getFactory=Ou,It.version="5.12.2";function Pu(){document.readyState==="complete"&&(clearInterval(zu),Yc())}function Du(t){for(var r=Kc.split("&"),i=0;i<r.length;i+=1){var a=r[i].split("=");if(decodeURIComponent(a[0])==t)return decodeURIComponent(a[1])}return null}var Kc="";if(Zs){var Xc=document.getElementsByTagName("script"),Fu=Xc.length-1,Zc=Xc[Fu]||{src:""};Kc=Zc.src?Zc.src.replace(/^[^\?]+\??/,""):"",qc=Du("renderer")}var zu=setInterval(Pu,100);try{!((typeof Vs>"u"?"undefined":Xs(Vs))==="object"&&typeof wn<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=It)}catch{}var Fr=function(){var t={},r={};t.registerModifier=i,t.getModifier=a;function i(d,c){r[d]||(r[d]=c)}function a(d,c,p){return new r[d](c,p)}return t}();function De(){}De.prototype.initModifierProperties=function(){},De.prototype.addShapeToModifier=function(){},De.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var r={shape:t.sh,data:t,localShapeCollection:Wi.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&t.setAsAnimated()}},De.prototype.init=function(t,r){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,r),this.frameId=s,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},De.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},B([te],De);function We(){}B([De],We),We.prototype.initModifierProperties=function(t,r){this.s=rt.getProp(t,r.s,0,.01,this),this.e=rt.getProp(t,r.e,0,.01,this),this.o=rt.getProp(t,r.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=r.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},We.prototype.addShapeToModifier=function(t){t.pathsData=[]},We.prototype.calculateShapeEdges=function(t,r,i,a,d){var c=[];r<=1?c.push({s:t,e:r}):t>=1?c.push({s:t-1,e:r-1}):(c.push({s:t,e:1}),c.push({s:0,e:r-1}));var p=[],x,u=c.length,k;for(x=0;x<u;x+=1)if(k=c[x],!(k.e*d<a||k.s*d>a+i)){var I,V;k.s*d<=a?I=0:I=(k.s*d-a)/i,k.e*d>=a+i?V=1:V=(k.e*d-a)/i,p.push([I,V])}return p.length||p.push([0,0]),p},We.prototype.releasePathsData=function(t){var r,i=t.length;for(r=0;r<i;r+=1)Bc.release(t[r]);return t.length=0,t},We.prototype.processShapes=function(t){var r,i;if(this._mdf||t){var a=this.o.v%360/360;if(a<0&&(a+=1),this.s.v>1?r=1+a:this.s.v<0?r=0+a:r=this.s.v+a,this.e.v>1?i=1+a:this.e.v<0?i=0+a:i=this.e.v+a,r>i){var d=r;r=i,i=d}r=Math.round(r*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=r,this.eValue=i}else r=this.sValue,i=this.eValue;var c,p,x=this.shapes.length,u,k,I,V,b,L=0;if(i===r)for(p=0;p<x;p+=1)this.shapes[p].localShapeCollection.releaseShapes(),this.shapes[p].shape._mdf=!0,this.shapes[p].shape.paths=this.shapes[p].localShapeCollection,this._mdf&&(this.shapes[p].pathsData.length=0);else if(i===1&&r===0||i===0&&r===1){if(this._mdf)for(p=0;p<x;p+=1)this.shapes[p].pathsData.length=0,this.shapes[p].shape._mdf=!0}else{var O=[],N,z;for(p=0;p<x;p+=1)if(N=this.shapes[p],!N.shape._mdf&&!this._mdf&&!t&&this.m!==2)N.shape.paths=N.localShapeCollection;else{if(c=N.shape.paths,k=c._length,b=0,!N.shape._mdf&&N.pathsData.length)b=N.totalShapeLength;else{for(I=this.releasePathsData(N.pathsData),u=0;u<k;u+=1)V=rr.getSegmentsLength(c.shapes[u]),I.push(V),b+=V.totalLength;N.totalShapeLength=b,N.pathsData=I}L+=b,N.shape._mdf=!0}var w=r,_=i,g=0,E;for(p=x-1;p>=0;p-=1)if(N=this.shapes[p],N.shape._mdf){for(z=N.localShapeCollection,z.releaseShapes(),this.m===2&&x>1?(E=this.calculateShapeEdges(r,i,N.totalShapeLength,g,L),g+=N.totalShapeLength):E=[[w,_]],k=E.length,u=0;u<k;u+=1){w=E[u][0],_=E[u][1],O.length=0,_<=1?O.push({s:N.totalShapeLength*w,e:N.totalShapeLength*_}):w>=1?O.push({s:N.totalShapeLength*(w-1),e:N.totalShapeLength*(_-1)}):(O.push({s:N.totalShapeLength*w,e:N.totalShapeLength}),O.push({s:0,e:N.totalShapeLength*(_-1)}));var C=this.addShapes(N,O[0]);if(O[0].s!==O[0].e){if(O.length>1){var P=N.shape.paths.shapes[N.shape.paths._length-1];if(P.c){var $=C.pop();this.addPaths(C,z),C=this.addShapes(N,O[1],$)}else this.addPaths(C,z),C=this.addShapes(N,O[1])}this.addPaths(C,z)}}N.shape.paths=z}}},We.prototype.addPaths=function(t,r){var i,a=t.length;for(i=0;i<a;i+=1)r.addShape(t[i])},We.prototype.addSegment=function(t,r,i,a,d,c,p){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(i[0],i[1],"i",c+1),p&&d.setXYAt(t[0],t[1],"v",c),d.setXYAt(a[0],a[1],"v",c+1)},We.prototype.addSegmentFromArray=function(t,r,i,a){r.setXYAt(t[1],t[5],"o",i),r.setXYAt(t[2],t[6],"i",i+1),a&&r.setXYAt(t[0],t[4],"v",i),r.setXYAt(t[3],t[7],"v",i+1)},We.prototype.addShapes=function(t,r,i){var a=t.pathsData,d=t.shape.paths.shapes,c,p=t.shape.paths._length,x,u,k=0,I,V,b,L,O=[],N,z=!0;for(i?(V=i._length,N=i._length):(i=se.newElement(),V=0,N=0),O.push(i),c=0;c<p;c+=1){for(b=a[c].lengths,i.c=d[c].c,u=d[c].c?b.length:b.length+1,x=1;x<u;x+=1)if(I=b[x-1],k+I.addedLength<r.s)k+=I.addedLength,i.c=!1;else if(k>r.e){i.c=!1;break}else r.s<=k&&r.e>=k+I.addedLength?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[x],d[c].v[x],i,V,z),z=!1):(L=rr.getNewSegment(d[c].v[x-1],d[c].v[x],d[c].o[x-1],d[c].i[x],(r.s-k)/I.addedLength,(r.e-k)/I.addedLength,b[x-1]),this.addSegmentFromArray(L,i,V,z),z=!1,i.c=!1),k+=I.addedLength,V+=1;if(d[c].c&&b.length){if(I=b[x-1],k<=r.e){var w=b[x-1].addedLength;r.s<=k&&r.e>=k+w?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[0],d[c].v[0],i,V,z),z=!1):(L=rr.getNewSegment(d[c].v[x-1],d[c].v[0],d[c].o[x-1],d[c].i[0],(r.s-k)/w,(r.e-k)/w,b[x-1]),this.addSegmentFromArray(L,i,V,z),z=!1,i.c=!1)}else i.c=!1;k+=I.addedLength,V+=1}if(i._length&&(i.setXYAt(i.v[N][0],i.v[N][1],"i",N),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),k>r.e)break;c<p-1&&(i=se.newElement(),z=!0,O.push(i),V=0)}return O};function $o(){}B([De],$o),$o.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=rt.getProp(t,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},$o.prototype.processPath=function(t,r){var i=r/100,a=[0,0],d=t._length,c=0;for(c=0;c<d;c+=1)a[0]+=t.v[c][0],a[1]+=t.v[c][1];a[0]/=d,a[1]/=d;var p=se.newElement();p.c=t.c;var x,u,k,I,V,b;for(c=0;c<d;c+=1)x=t.v[c][0]+(a[0]-t.v[c][0])*i,u=t.v[c][1]+(a[1]-t.v[c][1])*i,k=t.o[c][0]+(a[0]-t.o[c][0])*-i,I=t.o[c][1]+(a[1]-t.o[c][1])*-i,V=t.i[c][0]+(a[0]-t.i[c][0])*-i,b=t.i[c][1]+(a[1]-t.i[c][1])*-i,p.setTripleAt(x,u,k,I,V,b,c);return p},$o.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,p=this.amount.v;if(p!==0){var x,u;for(i=0;i<a;i+=1){if(x=this.shapes[i],u=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!t))for(u.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)u.addShape(this.processPath(r[d],p));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var On=function(){var t=[0,0];function r(u){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&u.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&u.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&u.skewFromAxis(-this.sk.v,this.sa.v),this.r?u.rotate(-this.r.v):u.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?u.translate(this.px.v,this.py.v,-this.pz.v):u.translate(this.px.v,this.py.v,0):u.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(u){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||u){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 I,V;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?(I=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),V=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?(I=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),V=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(I=this.p.pv,V=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){I=[],V=[];var b=this.px,L=this.py;b._caching.lastFrame+b.offsetTime<=b.keyframes[0].t?(I[0]=b.getValueAtTime((b.keyframes[0].t+.01)/k,0),I[1]=L.getValueAtTime((L.keyframes[0].t+.01)/k,0),V[0]=b.getValueAtTime(b.keyframes[0].t/k,0),V[1]=L.getValueAtTime(L.keyframes[0].t/k,0)):b._caching.lastFrame+b.offsetTime>=b.keyframes[b.keyframes.length-1].t?(I[0]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/k,0),I[1]=L.getValueAtTime(L.keyframes[L.keyframes.length-1].t/k,0),V[0]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/k,0),V[1]=L.getValueAtTime((L.keyframes[L.keyframes.length-1].t-.01)/k,0)):(I=[b.pv,L.pv],V[0]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/k,b.offsetTime),V[1]=L.getValueAtTime((L._caching.lastFrame+L.offsetTime-.01)/k,L.offsetTime))}else V=t,I=V;this.v.rotate(-Math.atan2(I[1]-V[1],I[0]-V[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 a(){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 d(){}function c(u){this._addDynamicProperty(u),this.elem.addDynamicProperty(u),this._isDirty=!0}function p(u,k,I){if(this.elem=u,this.frameId=-1,this.propType="transform",this.data=k,this.v=new ae,this.pre=new ae,this.appliedTransformations=0,this.initDynamicPropertyContainer(I||u),k.p&&k.p.s?(this.px=rt.getProp(u,k.p.x,0,0,this),this.py=rt.getProp(u,k.p.y,0,0,this),k.p.z&&(this.pz=rt.getProp(u,k.p.z,0,0,this))):this.p=rt.getProp(u,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=rt.getProp(u,k.rx,0,Tt,this),this.ry=rt.getProp(u,k.ry,0,Tt,this),this.rz=rt.getProp(u,k.rz,0,Tt,this),k.or.k[0].ti){var V,b=k.or.k.length;for(V=0;V<b;V+=1)k.or.k[V].to=null,k.or.k[V].ti=null}this.or=rt.getProp(u,k.or,1,Tt,this),this.or.sh=!0}else this.r=rt.getProp(u,k.r||{k:0},0,Tt,this);k.sk&&(this.sk=rt.getProp(u,k.sk,0,Tt,this),this.sa=rt.getProp(u,k.sa,0,Tt,this)),this.a=rt.getProp(u,k.a||{k:[0,0,0]},1,0,this),this.s=rt.getProp(u,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=rt.getProp(u,k.o,0,.01,u):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}p.prototype={applyToMatrix:r,getValue:i,precalculateMatrix:a,autoOrient:d},B([te],p),p.prototype.addDynamicProperty=c,p.prototype._addDynamicProperty=te.prototype.addDynamicProperty;function x(u,k,I){return new p(u,k,I)}return{getTransformProperty:x}}();function ir(){}B([De],ir),ir.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.c=rt.getProp(t,r.c,0,null,this),this.o=rt.getProp(t,r.o,0,null,this),this.tr=On.getTransformProperty(t,r.tr,this),this.so=rt.getProp(t,r.tr.so,0,.01,this),this.eo=rt.getProp(t,r.tr.eo,0,.01,this),this.data=r,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new ae,this.rMatrix=new ae,this.sMatrix=new ae,this.tMatrix=new ae,this.matrix=new ae},ir.prototype.applyTransforms=function(t,r,i,a,d,c){var p=c?-1:1,x=a.s.v[0]+(1-a.s.v[0])*(1-d),u=a.s.v[1]+(1-a.s.v[1])*(1-d);t.translate(a.p.v[0]*p*d,a.p.v[1]*p*d,a.p.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.rotate(-a.r.v*p*d),r.translate(a.a.v[0],a.a.v[1],a.a.v[2]),i.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),i.scale(c?1/x:x,c?1/u:u),i.translate(a.a.v[0],a.a.v[1],a.a.v[2])},ir.prototype.init=function(t,r,i,a){for(this.elem=t,this.arr=r,this.pos=i,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,r[i]);i>0;)i-=1,this._elements.unshift(r[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ir.prototype.resetElements=function(t){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._processed=!1,t[r].ty==="gr"&&this.resetElements(t[r].it)},ir.prototype.cloneElements=function(t){var r=JSON.parse(JSON.stringify(t));return this.resetElements(r),r},ir.prototype.changeGroupRender=function(t,r){var i,a=t.length;for(i=0;i<a;i+=1)t[i]._render=r,t[i].ty==="gr"&&this.changeGroupRender(t[i].it,r)},ir.prototype.processShapes=function(t){var r,i,a,d,c,p=!1;if(this._mdf||t){var x=Math.ceil(this.c.v);if(this._groups.length<x){for(;this._groups.length<x;){var u={it:this.cloneElements(this._elements),ty:"gr"};u.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,u),this._groups.splice(0,0,u),this._currentCopies+=1}this.elem.reloadShapes(),p=!0}c=0;var k;for(a=0;a<=this._groups.length-1;a+=1){if(k=c<x,this._groups[a]._render=k,this.changeGroupRender(this._groups[a].it,k),!k){var I=this.elemsData[a].it,V=I[I.length-1];V.transform.op.v!==0?(V.transform.op._mdf=!0,V.transform.op.v=0):V.transform.op._mdf=!1}c+=1}this._currentCopies=x;var b=this.o.v,L=b%1,O=b>0?Math.floor(b):Math.ceil(b),N=this.pMatrix.props,z=this.rMatrix.props,w=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(b>0){for(;_<O;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,L,!1),_+=L)}else if(b<0){for(;_>O;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-L,!0),_-=L)}a=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,c=this._currentCopies;for(var g,E;c;){if(r=this.elemsData[a].it,i=r[r.length-1].transform.mProps.v.props,E=i.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),_!==0){for((a!==0&&d===1||a!==this._currentCopies-1&&d===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7],z[8],z[9],z[10],z[11],z[12],z[13],z[14],z[15]),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15]),g=0;g<E;g+=1)i[g]=this.matrix.props[g];this.matrix.reset()}else for(this.matrix.reset(),g=0;g<E;g+=1)i[g]=this.matrix.props[g];_+=1,c-=1,a+=d}}else for(c=this._currentCopies,a=0,d=1;c;)r=this.elemsData[a].it,i=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.length-1].transform.op._mdf=!1,c-=1,a+=d;return p},ir.prototype.addShape=function(){};function Vo(){}B([De],Vo),Vo.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.rd=rt.getProp(t,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Vo.prototype.processPath=function(t,r){var i=se.newElement();i.c=t.c;var a,d=t._length,c,p,x,u,k,I,V=0,b,L,O,N,z,w;for(a=0;a<d;a+=1)c=t.v[a],x=t.o[a],p=t.i[a],c[0]===x[0]&&c[1]===x[1]&&c[0]===p[0]&&c[1]===p[1]?(a===0||a===d-1)&&!t.c?(i.setTripleAt(c[0],c[1],x[0],x[1],p[0],p[1],V),V+=1):(a===0?u=t.v[d-1]:u=t.v[a-1],k=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)),I=k?Math.min(k/2,r)/k:0,z=c[0]+(u[0]-c[0])*I,b=z,w=c[1]-(c[1]-u[1])*I,L=w,O=b-(b-c[0])*de,N=L-(L-c[1])*de,i.setTripleAt(b,L,O,N,z,w,V),V+=1,a===d-1?u=t.v[0]:u=t.v[a+1],k=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)),I=k?Math.min(k/2,r)/k:0,O=c[0]+(u[0]-c[0])*I,b=O,N=c[1]+(u[1]-c[1])*I,L=N,z=b-(b-c[0])*de,w=L-(L-c[1])*de,i.setTripleAt(b,L,O,N,z,w,V),V+=1):(i.setTripleAt(t.v[a][0],t.v[a][1],t.o[a][0],t.o[a][1],t.i[a][0],t.i[a][1],V),V+=1);return i},Vo.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,p=this.rd.v;if(p!==0){var x,u;for(i=0;i<a;i+=1){if(x=this.shapes[i],u=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!t))for(u.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)u.addShape(this.processPath(r[d],p));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Js(t,r){return Math.abs(t-r)*1e5<=Math.min(Math.abs(t),Math.abs(r))}function Pn(t){return Math.abs(t)<=1e-5}function Jc(t,r,i){return t*(1-i)+r*i}function zr(t,r,i){return[Jc(t[0],r[0],i),Jc(t[1],r[1],i)]}function $u(t,r,i){if(t===0)return[];var a=r*r-4*t*i;if(a<0)return[];var d=-r/(2*t);if(a===0)return[d];var c=Math.sqrt(a)/(2*t);return[d-c,d+c]}function Qc(t,r,i,a){return[-t+3*r-3*i+a,3*t-6*r+3*i,-3*t+3*r,t]}function td(t){return new Ft(t,t,t,t,!1)}function Ft(t,r,i,a,d){d&&Yi(t,r)&&(r=zr(t,a,1/3)),d&&Yi(i,a)&&(i=zr(t,a,2/3));var c=Qc(t[0],r[0],i[0],a[0]),p=Qc(t[1],r[1],i[1],a[1]);this.a=[c[0],p[0]],this.b=[c[1],p[1]],this.c=[c[2],p[2]],this.d=[c[3],p[3]],this.points=[t,r,i,a]}Ft.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Ft.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Ft.prototype.tangentAngle=function(t){var r=this.derivative(t);return Math.atan2(r[1],r[0])},Ft.prototype.normalAngle=function(t){var r=this.derivative(t);return Math.atan2(r[0],r[1])},Ft.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Pn(t))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var a=Math.sqrt(i);return Pn(a)?a>0&&a<1?[r]:[]:[r-a,r+a].filter(function(d){return d>0&&d<1})},Ft.prototype.split=function(t){if(t<=0)return[td(this.points[0]),this];if(t>=1)return[this,td(this.points[this.points.length-1])];var r=zr(this.points[0],this.points[1],t),i=zr(this.points[1],this.points[2],t),a=zr(this.points[2],this.points[3],t),d=zr(r,i,t),c=zr(i,a,t),p=zr(d,c,t);return[new Ft(this.points[0],r,d,p,!0),new Ft(p,c,a,this.points[3],!0)]};function ed(t,r){var i=t.points[0][r],a=t.points[t.points.length-1][r];if(i>a){var d=a;a=i,i=d}for(var c=$u(3*t.a[r],2*t.b[r],t.c[r]),p=0;p<c.length;p+=1)if(c[p]>0&&c[p]<1){var x=t.point(c[p])[r];x<i?i=x:x>a&&(a=x)}return{min:i,max:a}}Ft.prototype.bounds=function(){return{x:ed(this,0),y:ed(this,1)}},Ft.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function Qs(t,r,i){var a=t.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:t,t:(r+i)/2,t1:r,t2:i}}function rd(t){var r=t.bez.split(.5);return[Qs(r[0],t.t1,t.t),Qs(r[1],t.t,t.t2)]}function Vu(t,r){return Math.abs(t.cx-r.cx)*2<t.width+r.width&&Math.abs(t.cy-r.cy)*2<t.height+r.height}function Bo(t,r,i,a,d,c){if(Vu(t,r)){if(i>=c||t.width<=a&&t.height<=a&&r.width<=a&&r.height<=a){d.push([t.t,r.t]);return}var p=rd(t),x=rd(r);Bo(p[0],x[0],i+1,a,d,c),Bo(p[0],x[1],i+1,a,d,c),Bo(p[1],x[0],i+1,a,d,c),Bo(p[1],x[1],i+1,a,d,c)}}Ft.prototype.intersections=function(t,r,i){r===void 0&&(r=2),i===void 0&&(i=7);var a=[];return Bo(Qs(this,0,1),Qs(t,0,1),0,r,a,i),a},Ft.shapeSegment=function(t,r){var i=(r+1)%t.length();return new Ft(t.v[r],t.o[r],t.i[i],t.v[i],!0)},Ft.shapeSegmentInverted=function(t,r){var i=(r+1)%t.length();return new Ft(t.v[i],t.i[i],t.o[r],t.v[r],!0)};function Dn(t,r){return[t[1]*r[2]-t[2]*r[1],t[2]*r[0]-t[0]*r[2],t[0]*r[1]-t[1]*r[0]]}function ta(t,r,i,a){var d=[t[0],t[1],1],c=[r[0],r[1],1],p=[i[0],i[1],1],x=[a[0],a[1],1],u=Dn(Dn(d,c),Dn(p,x));return Pn(u[2])?null:[u[0]/u[2],u[1]/u[2]]}function qi(t,r,i){return[t[0]+Math.cos(r)*i,t[1]-Math.sin(r)*i]}function Fn(t,r){return Math.hypot(t[0]-r[0],t[1]-r[1])}function Yi(t,r){return Js(t[0],r[0])&&Js(t[1],r[1])}function Uo(){}B([De],Uo),Uo.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amplitude=rt.getProp(t,r.s,0,null,this),this.frequency=rt.getProp(t,r.r,0,null,this),this.pointsType=rt.getProp(t,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function id(t,r,i,a,d,c,p){var x=i-Math.PI/2,u=i+Math.PI/2,k=r[0]+Math.cos(i)*a*d,I=r[1]-Math.sin(i)*a*d;t.setTripleAt(k,I,k+Math.cos(x)*c,I-Math.sin(x)*c,k+Math.cos(u)*p,I-Math.sin(u)*p,t.length())}function Bu(t,r){var i=[r[0]-t[0],r[1]-t[1]],a=-Math.PI*.5,d=[Math.cos(a)*i[0]-Math.sin(a)*i[1],Math.sin(a)*i[0]+Math.cos(a)*i[1]];return d}function Uu(t,r){var i=r===0?t.length()-1:r-1,a=(r+1)%t.length(),d=t.v[i],c=t.v[a],p=Bu(d,c);return Math.atan2(0,1)-Math.atan2(p[1],p[0])}function od(t,r,i,a,d,c,p){var x=Uu(r,i),u=r.v[i%r._length],k=r.v[i===0?r._length-1:i-1],I=r.v[(i+1)%r._length],V=c===2?Math.sqrt(Math.pow(u[0]-k[0],2)+Math.pow(u[1]-k[1],2)):0,b=c===2?Math.sqrt(Math.pow(u[0]-I[0],2)+Math.pow(u[1]-I[1],2)):0;id(t,r.v[i%r._length],x,p,a,b/((d+1)*2),V/((d+1)*2),c)}function Hu(t,r,i,a,d,c){for(var p=0;p<a;p+=1){var x=(p+1)/(a+1),u=d===2?Math.sqrt(Math.pow(r.points[3][0]-r.points[0][0],2)+Math.pow(r.points[3][1]-r.points[0][1],2)):0,k=r.normalAngle(x),I=r.point(x);id(t,I,k,c,i,u/((a+1)*2),u/((a+1)*2),d),c=-c}return c}Uo.prototype.processPath=function(t,r,i,a){var d=t._length,c=se.newElement();if(c.c=t.c,t.c||(d-=1),d===0)return c;var p=-1,x=Ft.shapeSegment(t,0);od(c,t,0,r,i,a,p);for(var u=0;u<d;u+=1)p=Hu(c,x,r,i,a,-p),u===d-1&&!t.c?x=null:x=Ft.shapeSegment(t,(u+1)%d),od(c,t,u+1,r,i,a,p);return c},Uo.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,p=this.amplitude.v,x=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(p!==0){var k,I;for(i=0;i<a;i+=1){if(k=this.shapes[i],I=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!t))for(I.releaseShapes(),k.shape._mdf=!0,r=k.shape.paths.shapes,c=k.shape.paths._length,d=0;d<c;d+=1)I.addShape(this.processPath(r[d],p,x,u));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function zn(t,r,i){var a=Math.atan2(r[0]-t[0],r[1]-t[1]);return[qi(t,a,i),qi(r,a,i)]}function Ki(t,r){var i,a,d,c,p,x,u;u=zn(t.points[0],t.points[1],r),i=u[0],a=u[1],u=zn(t.points[1],t.points[2],r),d=u[0],c=u[1],u=zn(t.points[2],t.points[3],r),p=u[0],x=u[1];var k=ta(i,a,d,c);k===null&&(k=a);var I=ta(p,x,d,c);return I===null&&(I=p),new Ft(i,k,I,x)}function sd(t,r,i,a,d){var c=r.points[3],p=i.points[0];if(a===3||Yi(c,p))return c;if(a===2){var x=-r.tangentAngle(1),u=-i.tangentAngle(0)+Math.PI,k=ta(c,qi(c,x+Math.PI/2,100),p,qi(p,x+Math.PI/2,100)),I=k?Fn(k,c):Fn(c,p)/2,V=qi(c,x,2*I*de);return t.setXYAt(V[0],V[1],"o",t.length()-1),V=qi(p,u,2*I*de),t.setTripleAt(p[0],p[1],p[0],p[1],V[0],V[1],t.length()),p}var b=Yi(c,r.points[2])?r.points[0]:r.points[2],L=Yi(p,i.points[1])?i.points[3]:i.points[1],O=ta(b,c,p,L);return O&&Fn(O,c)<d?(t.setTripleAt(O[0],O[1],O[0],O[1],O[0],O[1],t.length()),O):c}function ad(t,r){var i=t.intersections(r);return i.length&&Js(i[0][0],1)&&i.shift(),i.length?i[0]:null}function nd(t,r){var i=t.slice(),a=r.slice(),d=ad(t[t.length-1],r[0]);return d&&(i[t.length-1]=t[t.length-1].split(d[0])[0],a[0]=r[0].split(d[1])[1]),t.length>1&&r.length>1&&(d=ad(t[0],r[r.length-1]),d)?[[t[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[i,a]}function Gu(t){for(var r,i=1;i<t.length;i+=1)r=nd(t[i-1],t[i]),t[i-1]=r[0],t[i]=r[1];return t.length>1&&(r=nd(t[t.length-1],t[0]),t[t.length-1]=r[0],t[0]=r[1]),t}function ld(t,r){var i=t.inflectionPoints(),a,d,c,p;if(i.length===0)return[Ki(t,r)];if(i.length===1||Js(i[1],1))return c=t.split(i[0]),a=c[0],d=c[1],[Ki(a,r),Ki(d,r)];c=t.split(i[0]),a=c[0];var x=(i[1]-i[0])/(1-i[0]);return c=c[1].split(x),p=c[0],d=c[1],[Ki(a,r),Ki(p,r),Ki(d,r)]}function Ho(){}B([De],Ho),Ho.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=rt.getProp(t,r.a,0,null,this),this.miterLimit=rt.getProp(t,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ho.prototype.processPath=function(t,r,i,a){var d=se.newElement();d.c=t.c;var c=t.length();t.c||(c-=1);var p,x,u,k=[];for(p=0;p<c;p+=1)u=Ft.shapeSegment(t,p),k.push(ld(u,r));if(!t.c)for(p=c-1;p>=0;p-=1)u=Ft.shapeSegmentInverted(t,p),k.push(ld(u,r));k=Gu(k);var I=null,V=null;for(p=0;p<k.length;p+=1){var b=k[p];for(V&&(I=sd(d,V,b[0],i,a)),V=b[b.length-1],x=0;x<b.length;x+=1)u=b[x],I&&Yi(u.points[0],I)?d.setXYAt(u.points[1][0],u.points[1][1],"o",d.length()-1):d.setTripleAt(u.points[0][0],u.points[0][1],u.points[1][0],u.points[1][1],u.points[0][0],u.points[0][1],d.length()),d.setTripleAt(u.points[3][0],u.points[3][1],u.points[3][0],u.points[3][1],u.points[2][0],u.points[2][1],d.length()),I=u.points[3]}return k.length&&sd(d,V,k[0][0],i,a),d},Ho.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,p=this.amount.v,x=this.miterLimit.v,u=this.lineJoin;if(p!==0){var k,I;for(i=0;i<a;i+=1){if(k=this.shapes[i],I=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!t))for(I.releaseShapes(),k.shape._mdf=!0,r=k.shape.paths.shapes,c=k.shape.paths._length,d=0;d<c;d+=1)I.addShape(this.processPath(r[d],p,u,x));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function cd(t){for(var r=t.fStyle?t.fStyle.split(" "):[],i="normal",a="normal",d=r.length,c,p=0;p<d;p+=1)switch(c=r[p].toLowerCase(),c){case"italic":a="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200";break;default:break}return{style:a,weight:t.fWeight||i}}var ni=function(){var t=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.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 a=127988,d=917631,c=917601,p=917626,x=65039,u=8205,k=127462,I=127487,V=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function b(T){var R=T.split(","),m,v=R.length,U=[];for(m=0;m<v;m+=1)R[m]!=="sans-serif"&&R[m]!=="monospace"&&U.push(R[m]);return U.join(",")}function L(T,R){var m=M("span");m.setAttribute("aria-hidden",!0),m.style.fontFamily=R;var v=M("span");v.innerText="giItT1WQy@!-/#",m.style.position="absolute",m.style.left="-10000px",m.style.top="-10000px",m.style.fontSize="300px",m.style.fontVariant="normal",m.style.fontStyle="normal",m.style.fontWeight="normal",m.style.letterSpacing="0",m.appendChild(v),document.body.appendChild(m);var U=v.offsetWidth;return v.style.fontFamily=b(T)+", "+R,{node:v,w:U,parent:m}}function O(){var T,R=this.fonts.length,m,v,U=R;for(T=0;T<R;T+=1)this.fonts[T].loaded?U-=1:this.fonts[T].fOrigin==="n"||this.fonts[T].origin===0?this.fonts[T].loaded=!0:(m=this.fonts[T].monoCase.node,v=this.fonts[T].monoCase.w,m.offsetWidth!==v?(U-=1,this.fonts[T].loaded=!0):(m=this.fonts[T].sansCase.node,v=this.fonts[T].sansCase.w,m.offsetWidth!==v&&(U-=1,this.fonts[T].loaded=!0)),this.fonts[T].loaded&&(this.fonts[T].sansCase.parent.parentNode.removeChild(this.fonts[T].sansCase.parent),this.fonts[T].monoCase.parent.parentNode.removeChild(this.fonts[T].monoCase.parent)));U!==0&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function N(T,R){var m=document.body&&R?"svg":"canvas",v,U=cd(T);if(m==="svg"){var D=ft("text");D.style.fontSize="100px",D.setAttribute("font-family",T.fFamily),D.setAttribute("font-style",U.style),D.setAttribute("font-weight",U.weight),D.textContent="1",T.fClass?(D.style.fontFamily="inherit",D.setAttribute("class",T.fClass)):D.style.fontFamily=T.fFamily,R.appendChild(D),v=D}else{var it=new OffscreenCanvas(500,500).getContext("2d");it.font=U.style+" "+U.weight+" 100px "+T.fFamily,v=it}function ht(ut){return m==="svg"?(v.textContent=ut,v.getComputedTextLength()):v.measureText(ut).width}return{measureText:ht}}function z(T,R){if(!T){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=T.list;return}if(!document.body){this.isLoaded=!0,T.list.forEach(function(ye){ye.helper=N(ye),ye.cache={}}),this.fonts=T.list;return}var m=T.list,v,U=m.length,D=U;for(v=0;v<U;v+=1){var it=!0,ht,ut;if(m[v].loaded=!1,m[v].monoCase=L(m[v].fFamily,"monospace"),m[v].sansCase=L(m[v].fFamily,"sans-serif"),!m[v].fPath)m[v].loaded=!0,D-=1;else if(m[v].fOrigin==="p"||m[v].origin===3){if(ht=document.querySelectorAll('style[f-forigin="p"][f-family="'+m[v].fFamily+'"], style[f-origin="3"][f-family="'+m[v].fFamily+'"]'),ht.length>0&&(it=!1),it){var kt=M("style");kt.setAttribute("f-forigin",m[v].fOrigin),kt.setAttribute("f-origin",m[v].origin),kt.setAttribute("f-family",m[v].fFamily),kt.type="text/css",kt.innerText="@font-face {font-family: "+m[v].fFamily+"; font-style: normal; src: url('"+m[v].fPath+"');}",R.appendChild(kt)}}else if(m[v].fOrigin==="g"||m[v].origin===1){for(ht=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ut=0;ut<ht.length;ut+=1)ht[ut].href.indexOf(m[v].fPath)!==-1&&(it=!1);if(it){var Ct=M("link");Ct.setAttribute("f-forigin",m[v].fOrigin),Ct.setAttribute("f-origin",m[v].origin),Ct.type="text/css",Ct.rel="stylesheet",Ct.href=m[v].fPath,document.body.appendChild(Ct)}}else if(m[v].fOrigin==="t"||m[v].origin===2){for(ht=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ut=0;ut<ht.length;ut+=1)m[v].fPath===ht[ut].src&&(it=!1);if(it){var Ht=M("link");Ht.setAttribute("f-forigin",m[v].fOrigin),Ht.setAttribute("f-origin",m[v].origin),Ht.setAttribute("rel","stylesheet"),Ht.setAttribute("href",m[v].fPath),R.appendChild(Ht)}}m[v].helper=N(m[v],R),m[v].cache={},this.fonts.push(m[v])}D===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function w(T){if(T){this.chars||(this.chars=[]);var R,m=T.length,v,U=this.chars.length,D;for(R=0;R<m;R+=1){for(v=0,D=!1;v<U;)this.chars[v].style===T[R].style&&this.chars[v].fFamily===T[R].fFamily&&this.chars[v].ch===T[R].ch&&(D=!0),v+=1;D||(this.chars.push(T[R]),U+=1)}}}function _(T,R,m){for(var v=0,U=this.chars.length;v<U;){if(this.chars[v].ch===T&&this.chars[v].style===R&&this.chars[v].fFamily===m)return this.chars[v];v+=1}return(typeof T=="string"&&T.charCodeAt(0)!==13||!T)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",T,R,m)),r}function g(T,R,m){var v=this.getFontByName(R),U=T;if(!v.cache[U]){var D=v.helper;if(T===" "){var it=D.measureText("|"+T+"|"),ht=D.measureText("||");v.cache[U]=(it-ht)/100}else v.cache[U]=D.measureText(T)/100}return v.cache[U]*m}function E(T){for(var R=0,m=this.fonts.length;R<m;){if(this.fonts[R].fName===T)return this.fonts[R];R+=1}return this.fonts[0]}function C(T){var R=0,m=T.charCodeAt(0);if(m>=55296&&m<=56319){var v=T.charCodeAt(1);v>=56320&&v<=57343&&(R=(m-55296)*1024+v-56320+65536)}return R}function P(T,R){var m=T.toString(16)+R.toString(16);return V.indexOf(m)!==-1}function $(T){return T===u}function H(T){return T===x}function K(T){var R=C(T);return R>=k&&R<=I}function pt(T){return K(T.substr(0,2))&&K(T.substr(2,2))}function nt(T){return i.indexOf(T)!==-1}function tt(T,R){var m=C(T.substr(R,2));if(m!==a)return!1;var v=0;for(R+=2;v<5;){if(m=C(T.substr(R,2)),m<c||m>p)return!1;v+=1,R+=2}return C(T.substr(R,2))===d}function vt(){this.isLoaded=!0}var st=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)};st.isModifier=P,st.isZeroWidthJoiner=$,st.isFlagEmoji=pt,st.isRegionalCode=K,st.isCombinedCharacter=nt,st.isRegionalFlag=tt,st.isVariationSelector=H,st.BLACK_FLAG_CODE_POINT=a;var Y={addChars:w,addFonts:z,getCharData:_,getFontByName:E,measureText:g,checkLoadedFonts:O,setIsLoaded:vt};return st.prototype=Y,st}();function dd(t){this.animationData=t}dd.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function ju(t){return new dd(t)}function ea(){}ea.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(r){this.renderableComponents.indexOf(r)===-1&&this.renderableComponents.push(r)},removeRenderableComponent:function(r){this.renderableComponents.indexOf(r)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(r),1)},prepareRenderableFrame:function(r){this.checkLayerLimits(r)},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(r){this.data.ip-this.data.st<=r&&this.data.op-this.data.st>r?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 r,i=this.renderableComponents.length;for(r=0;r<i;r+=1)this.renderableComponents[r].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 $n=function(){var t={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(r){return t[r]||""}}();function Wu(t,r,i){this.p=rt.getProp(r,t.v,0,0,i)}function qu(t,r,i){this.p=rt.getProp(r,t.v,0,0,i)}function Yu(t,r,i){this.p=rt.getProp(r,t.v,1,0,i)}function Ku(t,r,i){this.p=rt.getProp(r,t.v,1,0,i)}function Xu(t,r,i){this.p=rt.getProp(r,t.v,0,0,i)}function Zu(t,r,i){this.p=rt.getProp(r,t.v,0,0,i)}function Ju(t,r,i){this.p=rt.getProp(r,t.v,0,0,i)}function Qu(){this.p={}}function hd(t,r){var i=t.ef||[];this.effectElements=[];var a,d=i.length,c;for(a=0;a<d;a+=1)c=new Go(i[a],r),this.effectElements.push(c)}function Go(t,r){this.init(t,r)}B([te],Go),Go.prototype.getValue=Go.prototype.iterateDynamicProperties,Go.prototype.init=function(t,r){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(r);var i,a=this.data.ef.length,d,c=this.data.ef;for(i=0;i<a;i+=1){switch(d=null,c[i].ty){case 0:d=new Wu(c[i],r,this);break;case 1:d=new qu(c[i],r,this);break;case 2:d=new Yu(c[i],r,this);break;case 3:d=new Ku(c[i],r,this);break;case 4:case 7:d=new Ju(c[i],r,this);break;case 10:d=new Xu(c[i],r,this);break;case 11:d=new Zu(c[i],r,this);break;case 5:d=new hd(c[i],r,this);break;default:d=new Qu(c[i],r,this);break}d&&this.effectElements.push(d)}};function $r(){}$r.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,i=this.data.masksProperties.length;r<i;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=Fc();if(r){var i=r("layer"),a=r("effects"),d=r("shape"),c=r("text"),p=r("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var x=a.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(x),this.data.ty===0||this.data.xt?this.compInterface=p(this):this.data.ty===4?(this.layerInterface.shapeInterface=d(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var r=$n(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=r},initBaseData:function(r,i,a){this.globalData=i,this.comp=a,this.data=r,this.layerId=ge(),this.data.sr||(this.data.sr=1),this.effectsManager=new hd(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Vr(){}Vr.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,i){var a,d=this.dynamicProperties.length;for(a=0;a<d;a+=1)(i||this._isParent&&this.dynamicProperties[a].propType==="transform")&&(this.dynamicProperties[a].getValue(),this.dynamicProperties[a]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function Br(t,r,i){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(t,r,i)}Br.prototype.prepareFrame=function(){},B([ea,$r,Vr],Br),Br.prototype.getBaseElement=function(){return null},Br.prototype.renderFrame=function(){},Br.prototype.destroy=function(){},Br.prototype.initExpressions=function(){var t=Fc();if(t){var r=t("footage");this.layerInterface=r(this)}},Br.prototype.getFootageData=function(){return this.footageData};function be(t,r,i){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.initBaseData(t,r,i),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?rt.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=rt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}be.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},B([ea,$r,Vr],be),be.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))},be.prototype.show=function(){},be.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},be.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},be.prototype.resume=function(){this._canPlay=!0},be.prototype.setRate=function(t){this.audio.rate(t)},be.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},be.prototype.getBaseElement=function(){return null},be.prototype.destroy=function(){},be.prototype.sourceRectAtTime=function(){},be.prototype.initExpressions=function(){};function ne(){}ne.prototype.checkLayers=function(t){var r,i=this.layers.length,a;for(this.completeLayers=!0,r=i-1;r>=0;r-=1)this.elements[r]||(a=this.layers[r],a.ip-a.st<=t-this.layers[r].st&&a.op-a.st>t-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},ne.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},ne.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ne.prototype.createAudio=function(t){return new be(t,this.globalData,this)},ne.prototype.createFootage=function(t){return new Br(t,this.globalData,this)},ne.prototype.buildAllItems=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.buildItem(t);this.checkPendingElements()},ne.prototype.includeLayers=function(t){this.completeLayers=!1;var r,i=t.length,a,d=this.layers.length;for(r=0;r<i;r+=1)for(a=0;a<d;){if(this.layers[a].id===t[r].id){this.layers[a]=t[r];break}a+=1}},ne.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},ne.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ne.prototype.buildElementParenting=function(t,r,i){for(var a=this.elements,d=this.layers,c=0,p=d.length;c<p;)d[c].ind==r&&(!a[c]||a[c]===!0?(this.buildItem(c),this.addPendingElement(t)):(i.push(a[c]),a[c].setAsParent(),d[c].parent!==void 0?this.buildElementParenting(t,d[c].parent,i):t.setHierarchy(i))),c+=1},ne.prototype.addPendingElement=function(t){this.pendingElements.push(t)},ne.prototype.searchExtraCompositions=function(t){var r,i=t.length;for(r=0;r<i;r+=1)if(t[r].xt){var a=this.createComp(t[r]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},ne.prototype.getElementById=function(t){var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.ind===t)return this.elements[r];return null},ne.prototype.getElementByPath=function(t){var r=t.shift(),i;if(typeof r=="number")i=this.elements[r];else{var a,d=this.elements.length;for(a=0;a<d;a+=1)if(this.elements[a].data.nm===r){i=this.elements[a];break}}return t.length===0?i:i.getElementByPath(t)},ne.prototype.setupGlobalData=function(t,r){this.globalData.fontManager=new ni,this.globalData.slotManager=ju(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,r),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=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var tf={TRANSFORM_EFFECT:"transformEFfect"};function Xi(){}Xi.prototype={initTransform:function(){var r=new ae;this.finalTransform={mProp:this.data.ks?On.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:r,localMat:r,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 r,i=this.finalTransform.mat,a=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;a<d;){if(this.hierarchy[a].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}a+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,i.cloneFromProps(r),a=0;a<d;a+=1)i.multiply(this.hierarchy[a].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 r=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<i;)this.localTransforms[r]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[r]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),r+=1;if(this.finalTransform._localMatMdf){var a=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(a),r=1;r<i;r+=1){var d=this.localTransforms[r].matrix;a.multiply(d)}a.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(r=0;r<i;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(tf.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new ae;var i=0,a=r.length;for(i=0;i<a;i+=1)this.localTransforms.push(r[i])}}},globalToLocal:function(r){var i=[];i.push(this.finalTransform);for(var a=!0,d=this.comp;a;)d.finalTransform?(d.data.hasMask&&i.splice(0,0,d.finalTransform),d=d.comp):a=!1;var c,p=i.length,x;for(c=0;c<p;c+=1)x=i[c].mat.applyToPointArray(0,0,0),r=[r[0]-x[0],r[1]-x[1],0];return r},mHelper:new ae};function li(t,r,i){this.data=t,this.element=r,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a=this.globalData.defs,d,c=this.masksProperties?this.masksProperties.length:0;this.viewData=et(c),this.solidPath="";var p,x=this.masksProperties,u=0,k=[],I,V,b=ge(),L,O,N,z,w="clipPath",_="clip-path";for(d=0;d<c;d+=1)if((x[d].mode!=="a"&&x[d].mode!=="n"||x[d].inv||x[d].o.k!==100||x[d].o.x)&&(w="mask",_="mask"),(x[d].mode==="s"||x[d].mode==="i")&&u===0?(L=ft("rect"),L.setAttribute("fill","#ffffff"),L.setAttribute("width",this.element.comp.data.w||0),L.setAttribute("height",this.element.comp.data.h||0),k.push(L)):L=null,p=ft("path"),x[d].mode==="n")this.viewData[d]={op:rt.getProp(this.element,x[d].o,0,.01,this.element),prop:Ks.getShapeProp(this.element,x[d],3),elem:p,lastPath:""},a.appendChild(p);else{u+=1,p.setAttribute("fill",x[d].mode==="s"?"#000000":"#ffffff"),p.setAttribute("clip-rule","nonzero");var g;if(x[d].x.k!==0?(w="mask",_="mask",z=rt.getProp(this.element,x[d].x,0,null,this.element),g=ge(),O=ft("filter"),O.setAttribute("id",g),N=ft("feMorphology"),N.setAttribute("operator","erode"),N.setAttribute("in","SourceGraphic"),N.setAttribute("radius","0"),O.appendChild(N),a.appendChild(O),p.setAttribute("stroke",x[d].mode==="s"?"#000000":"#ffffff")):(N=null,z=null),this.storedData[d]={elem:p,x:z,expan:N,lastPath:"",lastOperator:"",filterId:g,lastRadius:0},x[d].mode==="i"){V=k.length;var E=ft("g");for(I=0;I<V;I+=1)E.appendChild(k[I]);var C=ft("mask");C.setAttribute("mask-type","alpha"),C.setAttribute("id",b+"_"+u),C.appendChild(p),a.appendChild(C),E.setAttribute("mask","url("+S()+"#"+b+"_"+u+")"),k.length=0,k.push(E)}else k.push(p);x[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:p,lastPath:"",op:rt.getProp(this.element,x[d].o,0,.01,this.element),prop:Ks.getShapeProp(this.element,x[d],3),invRect:L},this.viewData[d].prop.k||this.drawPath(x[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=ft(w),c=k.length,d=0;d<c;d+=1)this.maskElement.appendChild(k[d]);u>0&&(this.maskElement.setAttribute("id",b),this.element.maskedElement.setAttribute(_,"url("+S()+"#"+b+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}li.prototype.getMaskProperty=function(t){return this.viewData[t].prop},li.prototype.renderFrame=function(t){var r=this.element.finalTransform.mat,i,a=this.masksProperties.length;for(i=0;i<a;i+=1)if((this.viewData[i].prop._mdf||t)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||t)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[i].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||t))){var d=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+S()+"#"+this.storedData[i].filterId+")")),d.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].x.v*2))}},li.prototype.getMaskelement=function(){return this.maskElement},li.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" ",t},li.prototype.drawPath=function(t,r,i){var a=" M"+r.v[0][0]+","+r.v[0][1],d,c;for(c=r._length,d=1;d<c;d+=1)a+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[d][0]+","+r.i[d][1]+" "+r.v[d][0]+","+r.v[d][1];if(r.c&&c>1&&(a+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),i.lastPath!==a){var p="";i.elem&&(r.c&&(p=t.inv?this.solidPath+a:a),i.elem.setAttribute("d",p)),i.lastPath=a}},li.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var jo=function(){var t={};t.createFilter=r,t.createAlphaToLuminanceFilter=i;function r(a,d){var c=ft("filter");return c.setAttribute("id",a),d!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function i(){var a=ft("feColorMatrix");return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),a}return t}(),md=function(){var t={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))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),ra={},pd="filter_result_";function Vn(t){var r,i="SourceGraphic",a=t.data.ef?t.data.ef.length:0,d=ge(),c=jo.createFilter(d,!0),p=0;this.filters=[];var x;for(r=0;r<a;r+=1){x=null;var u=t.data.ef[r].ty;if(ra[u]){var k=ra[u].effect;x=new k(c,t.effectsManager.effectElements[r],t,pd+p,i),i=pd+p,ra[u].countsAsEffect&&(p+=1)}x&&this.filters.push(x)}p&&(t.globalData.defs.appendChild(c),t.layerElement.setAttribute("filter","url("+S()+"#"+d+")")),this.filters.length&&t.addRenderableComponent(this)}Vn.prototype.renderFrame=function(t){var r,i=this.filters.length;for(r=0;r<i;r+=1)this.filters[r].renderFrame(t)},Vn.prototype.getEffects=function(t){var r,i=this.filters.length,a=[];for(r=0;r<i;r+=1)this.filters[r].type===t&&a.push(this.filters[r]);return a};function f0(t,r,i){ra[t]={effect:r,countsAsEffect:i}}function Wo(){}Wo.prototype={initRendererElement:function(){this.layerElement=ft("g")},createContainerElements:function(){this.matteElement=ft("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var i=ft("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),r=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=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 a=ft("clipPath"),d=ft("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=ge();if(a.setAttribute("id",c),a.appendChild(d),this.globalData.defs.appendChild(a),this.checkMasks()){var p=ft("g");p.setAttribute("clip-path","url("+S()+"#"+c+")"),p.appendChild(this.layerElement),this.transformedElement=p,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+S()+"#"+c+")")}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 li(this.data,this,this.globalData),this.renderableEffectsManager=new Vn(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var i=this.layerId+"_"+r,a,d,c,p;if(r===1||r===3){var x=ft("mask");x.setAttribute("id",i),x.setAttribute("mask-type",r===3?"luminance":"alpha"),c=ft("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),x.appendChild(c),this.globalData.defs.appendChild(x),!md.maskType&&r===1&&(x.setAttribute("mask-type","luminance"),a=ge(),d=jo.createFilter(a),this.globalData.defs.appendChild(d),d.appendChild(jo.createAlphaToLuminanceFilter()),p=ft("g"),p.appendChild(c),x.appendChild(p),p.setAttribute("filter","url("+S()+"#"+a+")"))}else if(r===2){var u=ft("mask");u.setAttribute("id",i),u.setAttribute("mask-type","alpha");var k=ft("g");u.appendChild(k),a=ge(),d=jo.createFilter(a);var I=ft("feComponentTransfer");I.setAttribute("in","SourceGraphic"),d.appendChild(I);var V=ft("feFuncA");V.setAttribute("type","table"),V.setAttribute("tableValues","1.0 0.0"),I.appendChild(V),this.globalData.defs.appendChild(d);var b=ft("rect");b.setAttribute("width",this.comp.data.w),b.setAttribute("height",this.comp.data.h),b.setAttribute("x","0"),b.setAttribute("y","0"),b.setAttribute("fill","#ffffff"),b.setAttribute("opacity","0"),k.setAttribute("filter","url("+S()+"#"+a+")"),k.appendChild(b),c=ft("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(c),md.maskType||(u.setAttribute("mask-type","luminance"),d.appendChild(jo.createAlphaToLuminanceFilter()),p=ft("g"),k.appendChild(b),p.appendChild(this.layerElement),k.appendChild(p)),this.globalData.defs.appendChild(u)}this.matteMasks[r]=i}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+S()+"#"+r+")")}};function Zi(){}Zi.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(r){this.hierarchy=r},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function qo(){}(function(){var t={initElement:function(i,a,d){this.initFrame(),this.initBaseData(i,a,d),this.initTransform(i,a,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.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(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};B([ea,q(t)],qo)})();function Yo(t,r,i){this.assetData=r.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(t,r,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}B([$r,Xi,Wo,Zi,Vr,qo],Yo),Yo.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=ft("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",t),this.layerElement.appendChild(this.innerElem)},Yo.prototype.sourceRectAtTime=function(){return this.sourceRect};function ef(t,r){this.elem=t,this.pos=r}function ud(){}ud.prototype={addShapeToModifiers:function(r){var i,a=this.shapeModifiers.length;for(i=0;i<a;i+=1)this.shapeModifiers[i].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var i=0,a=this.shapeModifiers.length;i<a;)if(this.shapeModifiers[i].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,i=this.shapes.length;for(r=0;r<i;r+=1)this.shapes[r].sh.reset();i=this.shapeModifiers.length;var a;for(r=i-1;r>=0&&(a=this.shapeModifiers[r].processShapes(this._isFirstFrame),!a);r-=1);}},searchProcessedElement:function(r){for(var i=this.processedElements,a=0,d=i.length;a<d;){if(i[a].elem===r)return i[a].pos;a+=1}return 0},addProcessedElement:function(r,i){for(var a=this.processedElements,d=a.length;d;)if(d-=1,a[d].elem===r){a[d].pos=i;return}a.push(new ef(r,i))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var fd={1:"butt",2:"round",3:"square"},vd={1:"miter",2:"round",3:"bevel"};function gd(t,r,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=r,this._isAnimated=!!i.k;for(var a=0,d=t.length;a<d;){if(t[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}gd.prototype.setAsAnimated=function(){this._isAnimated=!0};function bd(t,r){this.data=t,this.type=t.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=t.hd===!0,this.pElem=ft("path"),this.msElem=null}bd.prototype.reset=function(){this.d="",this._mdf=!1};function ia(t,r,i,a){this.elem=t,this.frameId=-1,this.dataProps=et(r.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=Q("float32",r.length?r.length-1:0),this.dashoffset=Q("float32",1),this.initDynamicPropertyContainer(a);var d,c=r.length||0,p;for(d=0;d<c;d+=1)p=rt.getProp(t,r[d].v,0,0,this),this.k=p.k||this.k,this.dataProps[d]={n:r[d].n,p};this.k||this.getValue(!0),this._isAnimated=this.k}ia.prototype.getValue=function(t){if(!(this.elem.globalData.frameId===this.frameId&&!t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var r=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<i;r+=1)this.dataProps[r].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[r].p.v:this.dashArray[r]=this.dataProps[r].p.v:this.dashoffset[0]=this.dataProps[r].p.v}},B([te],ia);function yd(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=rt.getProp(t,r.o,0,.01,this),this.w=rt.getProp(t,r.w,0,null,this),this.d=new ia(t,r.d||{},"svg",this),this.c=rt.getProp(t,r.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}B([te],yd);function xd(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=rt.getProp(t,r.o,0,.01,this),this.c=rt.getProp(t,r.c,1,255,this),this.style=i}B([te],xd);function Ed(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}B([te],Ed);function Ko(t,r,i){this.data=r,this.c=Q("uint8c",r.p*4);var a=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=Q("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(i),this.prop=rt.getProp(t,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ko.prototype.comparePoints=function(t,r){for(var i=0,a=this.o.length/2,d;i<a;){if(d=Math.abs(t[i*4]-t[r*4+i*2]),d>.01)return!1;i+=1}return!0},Ko.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,r=this.data.k.k.length;t<r;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Ko.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var r,i=this.data.p*4,a,d;for(r=0;r<i;r+=1)a=r%4===0?100:255,d=Math.round(this.prop.v[r]*a),this.c[r]!==d&&(this.c[r]=d,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,r=this.data.p*4;r<i;r+=1)a=r%2===0?100:1,d=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==d&&(this.o[r-this.data.p*4]=d,this._omdf=!t);this._mdf=!t}},B([te],Ko);function Ji(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,r,i)}Ji.prototype.initGradientData=function(t,r,i){this.o=rt.getProp(t,r.o,0,.01,this),this.s=rt.getProp(t,r.s,1,null,this),this.e=rt.getProp(t,r.e,1,null,this),this.h=rt.getProp(t,r.h||{k:0},0,.01,this),this.a=rt.getProp(t,r.a||{k:0},0,Tt,this),this.g=new Ko(t,r.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,r),this.setGradientOpacity(r,i),this._isAnimated=!!this._isAnimated},Ji.prototype.setGradientData=function(t,r){var i=ge(),a=ft(r.t===1?"linearGradient":"radialGradient");a.setAttribute("id",i),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,p,x;for(x=r.g.p*4,p=0;p<x;p+=4)c=ft("stop"),a.appendChild(c),d.push(c);t.setAttribute(r.ty==="gf"?"fill":"stroke","url("+S()+"#"+i+")"),this.gf=a,this.cst=d},Ji.prototype.setGradientOpacity=function(t,r){if(this.g._hasOpacity&&!this.g._collapsable){var i,a,d,c=ft("mask"),p=ft("path");c.appendChild(p);var x=ge(),u=ge();c.setAttribute("id",u);var k=ft(t.t===1?"linearGradient":"radialGradient");k.setAttribute("id",x),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),d=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var I=this.stops;for(a=t.g.p*4;a<d;a+=2)i=ft("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(i),I.push(i);p.setAttribute(t.ty==="gf"?"fill":"stroke","url("+S()+"#"+x+")"),t.ty==="gs"&&(p.setAttribute("stroke-linecap",fd[t.lc||2]),p.setAttribute("stroke-linejoin",vd[t.lj||2]),t.lj===1&&p.setAttribute("stroke-miterlimit",t.ml)),this.of=k,this.ms=c,this.ost=I,this.maskId=u,r.msElem=p}},B([te],Ji);function Td(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=rt.getProp(t,r.w,0,null,this),this.d=new ia(t,r.d||{},"svg",this),this.initGradientData(t,r,i),this._isAnimated=!!this._isAnimated}B([Ji,te],Td);function rf(){this.it=[],this.prevViewData=[],this.gr=ft("g")}function of(t,r,i){this.transform={mProps:t,op:r,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Ad=function(r,i,a,d){if(i===0)return"";var c=r.o,p=r.i,x=r.v,u,k=" M"+d.applyToPointStringified(x[0][0],x[0][1]);for(u=1;u<i;u+=1)k+=" C"+d.applyToPointStringified(c[u-1][0],c[u-1][1])+" "+d.applyToPointStringified(p[u][0],p[u][1])+" "+d.applyToPointStringified(x[u][0],x[u][1]);return a&&i&&(k+=" C"+d.applyToPointStringified(c[u-1][0],c[u-1][1])+" "+d.applyToPointStringified(p[0][0],p[0][1])+" "+d.applyToPointStringified(x[0][0],x[0][1]),k+="z"),k},sf=function(){var t=new ae,r=new ae,i={createRenderFunction:a};function a(V){switch(V.ty){case"fl":return x;case"gf":return k;case"gs":return u;case"st":return I;case"sh":case"el":case"rc":case"sr":return p;case"tr":return d;case"no":return c;default:return null}}function d(V,b,L){(L||b.transform.op._mdf)&&b.transform.container.setAttribute("opacity",b.transform.op.v),(L||b.transform.mProps._mdf)&&b.transform.container.setAttribute("transform",b.transform.mProps.v.to2dCSS())}function c(){}function p(V,b,L){var O,N,z,w,_,g,E=b.styles.length,C=b.lvl,P,$,H,K;for(g=0;g<E;g+=1){if(w=b.sh._mdf||L,b.styles[g].lvl<C){for($=r.reset(),H=C-b.styles[g].lvl,K=b.transformers.length-1;!w&&H>0;)w=b.transformers[K].mProps._mdf||w,H-=1,K-=1;if(w)for(H=C-b.styles[g].lvl,K=b.transformers.length-1;H>0;)$.multiply(b.transformers[K].mProps.v),H-=1,K-=1}else $=t;if(P=b.sh.paths,N=P._length,w){for(z="",O=0;O<N;O+=1)_=P.shapes[O],_&&_._length&&(z+=Ad(_,_._length,_.c,$));b.caches[g]=z}else z=b.caches[g];b.styles[g].d+=V.hd===!0?"":z,b.styles[g]._mdf=w||b.styles[g]._mdf}}function x(V,b,L){var O=b.style;(b.c._mdf||L)&&O.pElem.setAttribute("fill","rgb("+Qt(b.c.v[0])+","+Qt(b.c.v[1])+","+Qt(b.c.v[2])+")"),(b.o._mdf||L)&&O.pElem.setAttribute("fill-opacity",b.o.v)}function u(V,b,L){k(V,b,L),I(V,b,L)}function k(V,b,L){var O=b.gf,N=b.g._hasOpacity,z=b.s.v,w=b.e.v;if(b.o._mdf||L){var _=V.ty==="gf"?"fill-opacity":"stroke-opacity";b.style.pElem.setAttribute(_,b.o.v)}if(b.s._mdf||L){var g=V.t===1?"x1":"cx",E=g==="x1"?"y1":"cy";O.setAttribute(g,z[0]),O.setAttribute(E,z[1]),N&&!b.g._collapsable&&(b.of.setAttribute(g,z[0]),b.of.setAttribute(E,z[1]))}var C,P,$,H;if(b.g._cmdf||L){C=b.cst;var K=b.g.c;for($=C.length,P=0;P<$;P+=1)H=C[P],H.setAttribute("offset",K[P*4]+"%"),H.setAttribute("stop-color","rgb("+K[P*4+1]+","+K[P*4+2]+","+K[P*4+3]+")")}if(N&&(b.g._omdf||L)){var pt=b.g.o;for(b.g._collapsable?C=b.cst:C=b.ost,$=C.length,P=0;P<$;P+=1)H=C[P],b.g._collapsable||H.setAttribute("offset",pt[P*2]+"%"),H.setAttribute("stop-opacity",pt[P*2+1])}if(V.t===1)(b.e._mdf||L)&&(O.setAttribute("x2",w[0]),O.setAttribute("y2",w[1]),N&&!b.g._collapsable&&(b.of.setAttribute("x2",w[0]),b.of.setAttribute("y2",w[1])));else{var nt;if((b.s._mdf||b.e._mdf||L)&&(nt=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)),O.setAttribute("r",nt),N&&!b.g._collapsable&&b.of.setAttribute("r",nt)),b.e._mdf||b.h._mdf||b.a._mdf||L){nt||(nt=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)));var tt=Math.atan2(w[1]-z[1],w[0]-z[0]),vt=b.h.v;vt>=1?vt=.99:vt<=-1&&(vt=-.99);var st=nt*vt,Y=Math.cos(tt+b.a.v)*st+z[0],T=Math.sin(tt+b.a.v)*st+z[1];O.setAttribute("fx",Y),O.setAttribute("fy",T),N&&!b.g._collapsable&&(b.of.setAttribute("fx",Y),b.of.setAttribute("fy",T))}}}function I(V,b,L){var O=b.style,N=b.d;N&&(N._mdf||L)&&N.dashStr&&(O.pElem.setAttribute("stroke-dasharray",N.dashStr),O.pElem.setAttribute("stroke-dashoffset",N.dashoffset[0])),b.c&&(b.c._mdf||L)&&O.pElem.setAttribute("stroke","rgb("+Qt(b.c.v[0])+","+Qt(b.c.v[1])+","+Qt(b.c.v[2])+")"),(b.o._mdf||L)&&O.pElem.setAttribute("stroke-opacity",b.o.v),(b.w._mdf||L)&&(O.pElem.setAttribute("stroke-width",b.w.v),O.msElem&&O.msElem.setAttribute("stroke-width",b.w.v))}return i}();function Vt(t,r,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,r,i),this.prevViewData=[]}B([$r,Xi,Wo,ud,Zi,Vr,qo],Vt),Vt.prototype.initSecondaryElement=function(){},Vt.prototype.identityMatrix=new ae,Vt.prototype.buildExpressionInterface=function(){},Vt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Vt.prototype.filterUniqueShapes=function(){var t,r=this.shapes.length,i,a,d=this.stylesList.length,c,p=[],x=!1;for(a=0;a<d;a+=1){for(c=this.stylesList[a],x=!1,p.length=0,t=0;t<r;t+=1)i=this.shapes[t],i.styles.indexOf(c)!==-1&&(p.push(i),x=i._isAnimated||x);p.length>1&&x&&this.setShapesAsAnimated(p)}},Vt.prototype.setShapesAsAnimated=function(t){var r,i=t.length;for(r=0;r<i;r+=1)t[r].setAsAnimated()},Vt.prototype.createStyleElement=function(t,r){var i,a=new bd(t,r),d=a.pElem;if(t.ty==="st")i=new yd(this,t,a);else if(t.ty==="fl")i=new xd(this,t,a);else if(t.ty==="gf"||t.ty==="gs"){var c=t.ty==="gf"?Ji:Td;i=new c(this,t,a),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),d.setAttribute("mask","url("+S()+"#"+i.maskId+")"))}else t.ty==="no"&&(i=new Ed(this,t,a));return(t.ty==="st"||t.ty==="gs")&&(d.setAttribute("stroke-linecap",fd[t.lc||2]),d.setAttribute("stroke-linejoin",vd[t.lj||2]),d.setAttribute("fill-opacity","0"),t.lj===1&&d.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&d.setAttribute("fill-rule","evenodd"),t.ln&&d.setAttribute("id",t.ln),t.cl&&d.setAttribute("class",t.cl),t.bm&&(d.style["mix-blend-mode"]=$n(t.bm)),this.stylesList.push(a),this.addToAnimatedContents(t,i),i},Vt.prototype.createGroupElement=function(t){var r=new rf;return t.ln&&r.gr.setAttribute("id",t.ln),t.cl&&r.gr.setAttribute("class",t.cl),t.bm&&(r.gr.style["mix-blend-mode"]=$n(t.bm)),r},Vt.prototype.createTransformElement=function(t,r){var i=On.getTransformProperty(this,t,this),a=new of(i,i.o,r);return this.addToAnimatedContents(t,a),a},Vt.prototype.createShapeElement=function(t,r,i){var a=4;t.ty==="rc"?a=5:t.ty==="el"?a=6:t.ty==="sr"&&(a=7);var d=Ks.getShapeProp(this,t,a,this),c=new gd(r,i,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(t,c),c},Vt.prototype.addToAnimatedContents=function(t,r){for(var i=0,a=this.animatedContents.length;i<a;){if(this.animatedContents[i].element===r)return;i+=1}this.animatedContents.push({fn:sf.createRenderFunction(t),element:r,data:t})},Vt.prototype.setElementStyles=function(t){var r=t.styles,i,a=this.stylesList.length;for(i=0;i<a;i+=1)this.stylesList[i].closed||r.push(this.stylesList[i])},Vt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,r=this.itemsData.length;for(t=0;t<r;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,t=0;t<r;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},Vt.prototype.searchShapes=function(t,r,i,a,d,c,p){var x=[].concat(c),u,k=t.length-1,I,V,b=[],L=[],O,N,z;for(u=k;u>=0;u-=1){if(z=this.searchProcessedElement(t[u]),z?r[u]=i[z-1]:t[u]._render=p,t[u].ty==="fl"||t[u].ty==="st"||t[u].ty==="gf"||t[u].ty==="gs"||t[u].ty==="no")z?r[u].style.closed=!1:r[u]=this.createStyleElement(t[u],d),t[u]._render&&r[u].style.pElem.parentNode!==a&&a.appendChild(r[u].style.pElem),b.push(r[u].style);else if(t[u].ty==="gr"){if(!z)r[u]=this.createGroupElement(t[u]);else for(V=r[u].it.length,I=0;I<V;I+=1)r[u].prevViewData[I]=r[u].it[I];this.searchShapes(t[u].it,r[u].it,r[u].prevViewData,r[u].gr,d+1,x,p),t[u]._render&&r[u].gr.parentNode!==a&&a.appendChild(r[u].gr)}else t[u].ty==="tr"?(z||(r[u]=this.createTransformElement(t[u],a)),O=r[u].transform,x.push(O)):t[u].ty==="sh"||t[u].ty==="rc"||t[u].ty==="el"||t[u].ty==="sr"?(z||(r[u]=this.createShapeElement(t[u],x,d)),this.setElementStyles(r[u])):t[u].ty==="tm"||t[u].ty==="rd"||t[u].ty==="ms"||t[u].ty==="pb"||t[u].ty==="zz"||t[u].ty==="op"?(z?(N=r[u],N.closed=!1):(N=Fr.getModifier(t[u].ty),N.init(this,t[u]),r[u]=N,this.shapeModifiers.push(N)),L.push(N)):t[u].ty==="rp"&&(z?(N=r[u],N.closed=!0):(N=Fr.getModifier(t[u].ty),r[u]=N,N.init(this,t,u,r),this.shapeModifiers.push(N),p=!1),L.push(N));this.addProcessedElement(t[u],u+1)}for(k=b.length,u=0;u<k;u+=1)b[u].closed=!0;for(k=L.length,u=0;u<k;u+=1)L[u].closed=!0},Vt.prototype.renderInnerContent=function(){this.renderModifiers();var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<r;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},Vt.prototype.renderShape=function(){var t,r=this.animatedContents.length,i;for(t=0;t<r;t+=1)i=this.animatedContents[t],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},Vt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Bn(t,r,i,a,d,c){this.o=t,this.sw=r,this.sc=i,this.fc=a,this.m=d,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!i,fc:!!a,m:!0,p:!0}}Bn.prototype.update=function(t,r,i,a,d,c){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 p=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,p=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,p=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,p=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,p=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,p=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,p=!0),p};function he(t,r){this._frameId=s,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=t.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=t,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)}he.prototype.defaultBoxWidth=[0,0],he.prototype.copyData=function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},he.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},he.prototype.searchProperty=function(){return this.searchKeyframes()},he.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},he.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},he.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,d=this.effectsSequence.length,c=t||this.data.d.k[this.keysIndex].s;for(a=0;a<d;a+=1)i!==this.keysIndex?c=this.effectsSequence[a](c,c.t):c=this.effectsSequence[a](this.currentData,c.t);r!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},he.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,r=this.elem.comp.renderedFrame,i=0,a=t.length;i<=a-1&&!(i===a-1||t[i+1].t>r);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},he.prototype.buildFinalText=function(t){for(var r=[],i=0,a=t.length,d,c,p=!1,x=!1,u="";i<a;)p=x,x=!1,d=t.charCodeAt(i),u=t.charAt(i),ni.isCombinedCharacter(d)?p=!0:d>=55296&&d<=56319?ni.isRegionalFlag(t,i)?u=t.substr(i,14):(c=t.charCodeAt(i+1),c>=56320&&c<=57343&&(ni.isModifier(d,c)?(u=t.substr(i,2),p=!0):ni.isFlagEmoji(t.substr(i,4))?u=t.substr(i,4):u=t.substr(i,2))):d>56319?(c=t.charCodeAt(i+1),ni.isVariationSelector(d)&&(p=!0)):ni.isZeroWidthJoiner(d)&&(p=!0,x=!0),p?(r[r.length-1]+=u,p=!1):r.push(u),i+=u.length;return r},he.prototype.completeTextData=function(t){t.__complete=!0;var r=this.elem.globalData.fontManager,i=this.data,a=[],d,c,p,x=0,u,k=i.m.g,I=0,V=0,b=0,L=[],O=0,N=0,z,w,_=r.getFontByName(t.f),g,E=0,C=cd(_);t.fWeight=C.weight,t.fStyle=C.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),c=t.finalText.length,t.finalLineHeight=t.lh;var P=t.tr/1e3*t.finalSize,$;if(t.sz)for(var H=!0,K=t.sz[0],pt=t.sz[1],nt,tt;H;){tt=this.buildFinalText(t.t),nt=0,O=0,c=tt.length,P=t.tr/1e3*t.finalSize;var vt=-1;for(d=0;d<c;d+=1)$=tt[d].charCodeAt(0),p=!1,tt[d]===" "?vt=d:($===13||$===3)&&(O=0,p=!0,nt+=t.finalLineHeight||t.finalSize*1.2),r.chars?(g=r.getCharData(tt[d],_.fStyle,_.fFamily),E=p?0:g.w*t.finalSize/100):E=r.measureText(tt[d],t.f,t.finalSize),O+E>K&&tt[d]!==" "?(vt===-1?c+=1:d=vt,nt+=t.finalLineHeight||t.finalSize*1.2,tt.splice(d,vt===d?1:0,"\r"),vt=-1,O=0):(O+=E,O+=P);nt+=_.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&pt<nt?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=tt,c=t.finalText.length,H=!1)}O=-P,E=0;var st=0,Y;for(d=0;d<c;d+=1)if(p=!1,Y=t.finalText[d],$=Y.charCodeAt(0),$===13||$===3?(st=0,L.push(O),N=O>N?O:N,O=-2*P,u="",p=!0,b+=1):u=Y,r.chars?(g=r.getCharData(Y,_.fStyle,r.getFontByName(t.f).fFamily),E=p?0:g.w*t.finalSize/100):E=r.measureText(u,t.f,t.finalSize),Y===" "?st+=E+P:(O+=E+P+st,st=0),a.push({l:E,an:E,add:I,n:p,anIndexes:[],val:u,line:b,animatorJustifyOffset:0}),k==2){if(I+=E,u===""||u===" "||d===c-1){for((u===""||u===" ")&&(I-=E);V<=d;)a[V].an=I,a[V].ind=x,a[V].extra=E,V+=1;x+=1,I=0}}else if(k==3){if(I+=E,u===""||d===c-1){for(u===""&&(I-=E);V<=d;)a[V].an=I,a[V].ind=x,a[V].extra=E,V+=1;I=0,x+=1}}else a[x].ind=x,a[x].extra=0,x+=1;if(t.l=a,N=O>N?O:N,L.push(O),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=N,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=L;var T=i.a,R,m;w=T.length;var v,U,D=[];for(z=0;z<w;z+=1){for(R=T[z],R.a.sc&&(t.strokeColorAnim=!0),R.a.sw&&(t.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(t.fillColorAnim=!0),U=0,v=R.s.b,d=0;d<c;d+=1)m=a[d],m.anIndexes[z]=U,(v==1&&m.val!==""||v==2&&m.val!==""&&m.val!==" "||v==3&&(m.n||m.val==" "||d==c-1)||v==4&&(m.n||d==c-1))&&(R.s.rn===1&&D.push(U),U+=1);i.a[z].s.totalChars=U;var it=-1,ht;if(R.s.rn===1)for(d=0;d<c;d+=1)m=a[d],it!=m.anIndexes[z]&&(it=m.anIndexes[z],ht=D.splice(Math.floor(Math.random()*D.length),1)[0]),m.anIndexes[z]=ht}t.yOffset=t.finalLineHeight||t.finalSize*1.2,t.ls=t.ls||0,t.ascent=_.ascent*t.finalSize/100},he.prototype.updateDocumentData=function(t,r){r=r===void 0?this.keysIndex:r;var i=this.copyData({},this.data.d.k[r].s);i=this.copyData(i,t),this.data.d.k[r].s=i,this.recalculate(r),this.setCurrentData(i),this.elem.addDynamicProperty(this)},he.prototype.recalculate=function(t){var r=this.data.d.k[t].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},he.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},he.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var af=function(){var t=Math.max,r=Math.min,i=Math.floor;function a(c,p){this._currentTextLength=-1,this.k=!1,this.data=p,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=rt.getProp(c,p.s||{k:0},0,0,this),"e"in p?this.e=rt.getProp(c,p.e,0,0,this):this.e={v:100},this.o=rt.getProp(c,p.o||{k:0},0,0,this),this.xe=rt.getProp(c,p.xe||{k:0},0,0,this),this.ne=rt.getProp(c,p.ne||{k:0},0,0,this),this.sm=rt.getProp(c,p.sm||{k:100},0,0,this),this.a=rt.getProp(c,p.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(p){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var x=0,u=0,k=1,I=1;this.ne.v>0?x=this.ne.v/100:u=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:I=1+this.xe.v/100;var V=zo.getBezierEasing(x,u,k,I).get,b=0,L=this.finalS,O=this.finalE,N=this.data.sh;if(N===2)O===L?b=p>=O?1:0:b=t(0,r(.5/(O-L)+(p-L)/(O-L),1)),b=V(b);else if(N===3)O===L?b=p>=O?0:1:b=1-t(0,r(.5/(O-L)+(p-L)/(O-L),1)),b=V(b);else if(N===4)O===L?b=0:(b=t(0,r(.5/(O-L)+(p-L)/(O-L),1)),b<.5?b*=2:b=1-2*(b-.5)),b=V(b);else if(N===5){if(O===L)b=0;else{var z=O-L;p=r(t(0,p+.5-L),O-L);var w=-z/2+p,_=z/2;b=Math.sqrt(1-w*w/(_*_))}b=V(b)}else N===6?(O===L?b=0:(p=r(t(0,p+.5-L),O-L),b=(1+Math.cos(Math.PI+Math.PI*2*p/(O-L)))/2),b=V(b)):(p>=i(L)&&(p-L<0?b=t(0,r(r(O,1)-(L-p),1)):b=t(0,r(O-p,1))),b=V(b));if(this.sm.v!==100){var g=this.sm.v*.01;g===0&&(g=1e-8);var E=.5-g*.5;b<E?b=0:(b=(b-E)/g,b>1&&(b=1))}return b*this.a.v},getValue:function(p){this.iterateDynamicProperties(),this._mdf=p||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,p&&this.data.r===2&&(this.e.v=this._currentTextLength);var x=this.data.r===2?1:100/this.data.totalChars,u=this.o.v/x,k=this.s.v/x+u,I=this.e.v/x+u;if(k>I){var V=k;k=I,I=V}this.finalS=k,this.finalE=I}},B([te],a);function d(c,p,x){return new a(c,p,x)}return{getTextSelectorProp:d}}();function nf(t,r,i){var a={propType:!1},d=rt.getProp,c=r.a;this.a={r:c.r?d(t,c.r,0,Tt,i):a,rx:c.rx?d(t,c.rx,0,Tt,i):a,ry:c.ry?d(t,c.ry,0,Tt,i):a,sk:c.sk?d(t,c.sk,0,Tt,i):a,sa:c.sa?d(t,c.sa,0,Tt,i):a,s:c.s?d(t,c.s,1,.01,i):a,a:c.a?d(t,c.a,1,0,i):a,o:c.o?d(t,c.o,0,.01,i):a,p:c.p?d(t,c.p,1,0,i):a,sw:c.sw?d(t,c.sw,0,0,i):a,sc:c.sc?d(t,c.sc,1,0,i):a,fc:c.fc?d(t,c.fc,1,0,i):a,fh:c.fh?d(t,c.fh,0,0,i):a,fs:c.fs?d(t,c.fs,0,.01,i):a,fb:c.fb?d(t,c.fb,0,.01,i):a,t:c.t?d(t,c.t,0,0,i):a},this.s=af.getTextSelectorProp(t,r.s,i),this.s.t=r.s.t}function ci(t,r,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=r,this._elem=i,this._animatorsData=et(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}ci.prototype.searchProperties=function(){var t,r=this._textData.a.length,i,a=rt.getProp;for(t=0;t<r;t+=1)i=this._textData.a[t],this._animatorsData[t]=new nf(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(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=a(this._elem,this._textData.m.a,1,0,this)},ci.prototype.getMeasures=function(t,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,a=this._animatorsData,d=this._textData,c=this.mHelper,p=this._renderType,x=this.renderedLetters.length,u,k,I,V,b=t.l,L,O,N,z,w,_,g,E,C,P,$,H,K,pt,nt;if(this._hasMaskedPath){if(nt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var tt=nt.v;this._pathData.r.v&&(tt=tt.reverse()),L={tLength:0,segments:[]},V=tt._length-1;var vt;for(H=0,I=0;I<V;I+=1)vt=rr.buildBezierData(tt.v[I],tt.v[I+1],[tt.o[I][0]-tt.v[I][0],tt.o[I][1]-tt.v[I][1]],[tt.i[I+1][0]-tt.v[I+1][0],tt.i[I+1][1]-tt.v[I+1][1]]),L.tLength+=vt.segmentLength,L.segments.push(vt),H+=vt.segmentLength;I=V,nt.v.c&&(vt=rr.buildBezierData(tt.v[I],tt.v[0],[tt.o[I][0]-tt.v[I][0],tt.o[I][1]-tt.v[I][1]],[tt.i[0][0]-tt.v[0][0],tt.i[0][1]-tt.v[0][1]]),L.tLength+=vt.segmentLength,L.segments.push(vt),H+=vt.segmentLength),this._pathData.pi=L}if(L=this._pathData.pi,O=this._pathData.f.v,g=0,_=1,z=0,w=!0,P=L.segments,O<0&&nt.v.c)for(L.tLength<Math.abs(O)&&(O=-Math.abs(O)%L.tLength),g=P.length-1,C=P[g].points,_=C.length-1;O<0;)O+=C[_].partialLength,_-=1,_<0&&(g-=1,C=P[g].points,_=C.length-1);C=P[g].points,E=C[_-1],N=C[_],$=N.partialLength}V=b.length,u=0,k=0;var st=t.finalSize*1.2*.714,Y=!0,T,R,m,v,U;v=a.length;var D,it=-1,ht,ut,kt,Ct=O,Ht=g,ye=_,or=-1,xe,ee,Ie,Lt,at,ur,Hr,fr,sr="",vr=this.defaultPropsArray,gr;if(t.j===2||t.j===1){var Ee=0,Gr=0,jr=t.j===2?-.5:-1,qe=0,Wr=!0;for(I=0;I<V;I+=1)if(b[I].n){for(Ee&&(Ee+=Gr);qe<I;)b[qe].animatorJustifyOffset=Ee,qe+=1;Ee=0,Wr=!0}else{for(m=0;m<v;m+=1)T=a[m].a,T.t.propType&&(Wr&&t.j===2&&(Gr+=T.t.v*jr),R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?Ee+=T.t.v*D[0]*jr:Ee+=T.t.v*D*jr);Wr=!1}for(Ee&&(Ee+=Gr);qe<I;)b[qe].animatorJustifyOffset=Ee,qe+=1}for(I=0;I<V;I+=1){if(c.reset(),xe=1,b[I].n)u=0,k+=t.yOffset,k+=Y?1:0,O=Ct,Y=!1,this._hasMaskedPath&&(g=Ht,_=ye,C=P[g].points,E=C[_-1],N=C[_],$=N.partialLength,z=0),sr="",fr="",ur="",gr="",vr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(or!==b[I].line){switch(t.j){case 1:O+=H-t.lineWidths[b[I].line];break;case 2:O+=(H-t.lineWidths[b[I].line])/2;break;default:break}or=b[I].line}it!==b[I].ind&&(b[it]&&(O+=b[it].extra),O+=b[I].an/2,it=b[I].ind),O+=i[0]*b[I].an*.005;var Ye=0;for(m=0;m<v;m+=1)T=a[m].a,T.p.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?Ye+=T.p.v[0]*D[0]:Ye+=T.p.v[0]*D),T.a.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?Ye+=T.a.v[0]*D[0]:Ye+=T.a.v[0]*D);for(w=!0,this._pathData.a.v&&(O=b[0].an*.5+(H-this._pathData.f.v-b[0].an*.5-b[b.length-1].an*.5)*it/(V-1),O+=this._pathData.f.v);w;)z+$>=O+Ye||!C?(K=(O+Ye-z)/N.partialLength,ut=E.point[0]+(N.point[0]-E.point[0])*K,kt=E.point[1]+(N.point[1]-E.point[1])*K,c.translate(-i[0]*b[I].an*.005,-(i[1]*st)*.01),w=!1):C&&(z+=N.partialLength,_+=1,_>=C.length&&(_=0,g+=1,P[g]?C=P[g].points:nt.v.c?(_=0,g=0,C=P[g].points):(z-=N.partialLength,C=null)),C&&(E=N,N=C[_],$=N.partialLength));ht=b[I].an/2-b[I].add,c.translate(-ht,0,0)}else ht=b[I].an/2-b[I].add,c.translate(-ht,0,0),c.translate(-i[0]*b[I].an*.005,-i[1]*st*.01,0);for(m=0;m<v;m+=1)T=a[m].a,T.t.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),(u!==0||t.j!==0)&&(this._hasMaskedPath?D.length?O+=T.t.v*D[0]:O+=T.t.v*D:D.length?u+=T.t.v*D[0]:u+=T.t.v*D));for(t.strokeWidthAnim&&(Ie=t.sw||0),t.strokeColorAnim&&(t.sc?ee=[t.sc[0],t.sc[1],t.sc[2]]:ee=[0,0,0]),t.fillColorAnim&&t.fc&&(Lt=[t.fc[0],t.fc[1],t.fc[2]]),m=0;m<v;m+=1)T=a[m].a,T.a.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?c.translate(-T.a.v[0]*D[0],-T.a.v[1]*D[1],T.a.v[2]*D[2]):c.translate(-T.a.v[0]*D,-T.a.v[1]*D,T.a.v[2]*D));for(m=0;m<v;m+=1)T=a[m].a,T.s.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),D.length?c.scale(1+(T.s.v[0]-1)*D[0],1+(T.s.v[1]-1)*D[1],1):c.scale(1+(T.s.v[0]-1)*D,1+(T.s.v[1]-1)*D,1));for(m=0;m<v;m+=1){if(T=a[m].a,R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),T.sk.propType&&(D.length?c.skewFromAxis(-T.sk.v*D[0],T.sa.v*D[1]):c.skewFromAxis(-T.sk.v*D,T.sa.v*D)),T.r.propType&&(D.length?c.rotateZ(-T.r.v*D[2]):c.rotateZ(-T.r.v*D)),T.ry.propType&&(D.length?c.rotateY(T.ry.v*D[1]):c.rotateY(T.ry.v*D)),T.rx.propType&&(D.length?c.rotateX(T.rx.v*D[0]):c.rotateX(T.rx.v*D)),T.o.propType&&(D.length?xe+=(T.o.v*D[0]-xe)*D[0]:xe+=(T.o.v*D-xe)*D),t.strokeWidthAnim&&T.sw.propType&&(D.length?Ie+=T.sw.v*D[0]:Ie+=T.sw.v*D),t.strokeColorAnim&&T.sc.propType)for(at=0;at<3;at+=1)D.length?ee[at]+=(T.sc.v[at]-ee[at])*D[0]:ee[at]+=(T.sc.v[at]-ee[at])*D;if(t.fillColorAnim&&t.fc){if(T.fc.propType)for(at=0;at<3;at+=1)D.length?Lt[at]+=(T.fc.v[at]-Lt[at])*D[0]:Lt[at]+=(T.fc.v[at]-Lt[at])*D;T.fh.propType&&(D.length?Lt=Dc(Lt,T.fh.v*D[0]):Lt=Dc(Lt,T.fh.v*D)),T.fs.propType&&(D.length?Lt=Oc(Lt,T.fs.v*D[0]):Lt=Oc(Lt,T.fs.v*D)),T.fb.propType&&(D.length?Lt=Pc(Lt,T.fb.v*D[0]):Lt=Pc(Lt,T.fb.v*D))}}for(m=0;m<v;m+=1)T=a[m].a,T.p.propType&&(R=a[m].s,D=R.getMult(b[I].anIndexes[m],d.a[m].s.totalChars),this._hasMaskedPath?D.length?c.translate(0,T.p.v[1]*D[0],-T.p.v[2]*D[1]):c.translate(0,T.p.v[1]*D,-T.p.v[2]*D):D.length?c.translate(T.p.v[0]*D[0],T.p.v[1]*D[1],-T.p.v[2]*D[2]):c.translate(T.p.v[0]*D,T.p.v[1]*D,-T.p.v[2]*D));if(t.strokeWidthAnim&&(ur=Ie<0?0:Ie),t.strokeColorAnim&&(Hr="rgb("+Math.round(ee[0]*255)+","+Math.round(ee[1]*255)+","+Math.round(ee[2]*255)+")"),t.fillColorAnim&&t.fc&&(fr="rgb("+Math.round(Lt[0]*255)+","+Math.round(Lt[1]*255)+","+Math.round(Lt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-t.ls),c.translate(0,i[1]*st*.01+k,0),this._pathData.p.v){pt=(N.point[1]-E.point[1])/(N.point[0]-E.point[0]);var di=Math.atan(pt)*180/Math.PI;N.point[0]<E.point[0]&&(di+=180),c.rotate(-di*Math.PI/180)}c.translate(ut,kt,0),O-=i[0]*b[I].an*.005,b[I+1]&&it!==b[I+1].ind&&(O+=b[I].an/2,O+=t.tr*.001*t.finalSize)}else{switch(c.translate(u,k,0),t.ps&&c.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:c.translate(b[I].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[b[I].line]),0,0);break;case 2:c.translate(b[I].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[b[I].line])/2,0,0);break;default:break}c.translate(0,-t.ls),c.translate(ht,0,0),c.translate(i[0]*b[I].an*.005,i[1]*st*.01,0),u+=b[I].l+t.tr*.001*t.finalSize}p==="html"?sr=c.toCSS():p==="svg"?sr=c.to2dCSS():vr=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],gr=xe}x<=I?(U=new Bn(gr,ur,Hr,fr,sr,vr),this.renderedLetters.push(U),x+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[I],this.lettersChangedFlag=U.update(gr,ur,Hr,fr,sr,vr)||this.lettersChangedFlag)}}},ci.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},ci.prototype.mHelper=new ae,ci.prototype.defaultPropsArray=[],B([te],ci);function Fe(){}Fe.prototype.initElement=function(t,r,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,r,i),this.textProperty=new he(this,t.t,this.dynamicProperties),this.textAnimator=new ci(t.t,this.renderType,this),this.initTransform(t,r,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Fe.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},Fe.prototype.createPathShape=function(t,r){var i,a=r.length,d,c="";for(i=0;i<a;i+=1)r[i].ty==="sh"&&(d=r[i].ks.k,c+=Ad(d,d.i.length,!0,t));return c},Fe.prototype.updateDocumentData=function(t,r){this.textProperty.updateDocumentData(t,r)},Fe.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},Fe.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},Fe.prototype.applyTextPropertiesToMatrix=function(t,r,i,a,d){switch(t.ps&&r.translate(t.ps[0],t.ps[1]+t.ascent,0),r.translate(0,-t.ls,0),t.j){case 1:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0);break;default:break}r.translate(a,d,0)},Fe.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"},Fe.prototype.emptyProp=new Bn,Fe.prototype.destroy=function(){},Fe.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var lf={shapes:[]};function mr(t,r,i){this.textSpans=[],this.renderType="svg",this.initElement(t,r,i)}B([$r,Xi,Wo,Zi,Vr,qo,Fe],mr),mr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=ft("text"))},mr.prototype.buildTextContents=function(t){for(var r=0,i=t.length,a=[],d="";r<i;)t[r]==="\r"||t[r]===""?(a.push(d),d=""):d+=t[r],r+=1;return a.push(d),a},mr.prototype.buildShapeData=function(t,r){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var a=i.it[i.it.length-1];a.s&&(a.s.k[0]=r,a.s.k[1]=r)}}return t},mr.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,r,i=this.textProperty.currentData;this.renderedLetters=et(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var a=this.globalData.fontManager.getFontByName(i.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var d=i.fWeight,c=i.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",i.t);var p=i.l||[],x=!!this.globalData.fontManager.chars;r=p.length;var u,k=this.mHelper,I="",V=this.data.singleShape,b=0,L=0,O=!0,N=i.tr*.001*i.finalSize;if(V&&!x&&!i.sz){var z=this.textContainer,w="start";switch(i.j){case 1:w="end";break;case 2:w="middle";break;default:w="start";break}z.setAttribute("text-anchor",w),z.setAttribute("letter-spacing",N);var _=this.buildTextContents(i.finalText);for(r=_.length,L=i.ps?i.ps[1]+i.ascent:0,t=0;t<r;t+=1)u=this.textSpans[t].span||ft("tspan"),u.textContent=_[t],u.setAttribute("x",0),u.setAttribute("y",L),u.style.display="inherit",z.appendChild(u),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=u,L+=i.finalLineHeight;this.layerElement.appendChild(z)}else{var g=this.textSpans.length,E;for(t=0;t<r;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!x||!V||t===0){if(u=g>t?this.textSpans[t].span:ft(x?"g":"text"),g<=t){if(u.setAttribute("stroke-linecap","butt"),u.setAttribute("stroke-linejoin","round"),u.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=u,x){var C=ft("g");u.appendChild(C),this.textSpans[t].childSpan=C}this.textSpans[t].span=u,this.layerElement.appendChild(u)}u.style.display="inherit"}if(k.reset(),V&&(p[t].n&&(b=-N,L+=i.yOffset,L+=O?1:0,O=!1),this.applyTextPropertiesToMatrix(i,k,p[t].line,b,L),b+=p[t].l||0,b+=N),x){E=this.globalData.fontManager.getCharData(i.finalText[t],a.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var P;if(E.t===1)P=new Xo(E.data,this.globalData,this);else{var $=lf;E.data&&E.data.shapes&&($=this.buildShapeData(E.data,i.finalSize)),P=new Vt($,this.globalData,this)}if(this.textSpans[t].glyph){var H=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(H.layerElement),H.destroy()}this.textSpans[t].glyph=P,P._debug=!0,P.prepareFrame(0),P.renderFrame(),this.textSpans[t].childSpan.appendChild(P.layerElement),E.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else V&&u.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),u.textContent=p[t].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}V&&u&&u.setAttribute("d",I)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},mr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},mr.prototype.getValue=function(){var t,r=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)i=this.textSpans[t].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._mdf&&(this._mdf=!0))},mr.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 t,r,i=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;r=a.length;var d,c,p;for(t=0;t<r;t+=1)a[t].n||(d=i[t],c=this.textSpans[t].span,p=this.textSpans[t].glyph,p&&p.renderFrame(),d._mdf.m&&c.setAttribute("transform",d.m),d._mdf.o&&c.setAttribute("opacity",d.o),d._mdf.sw&&c.setAttribute("stroke-width",d.sw),d._mdf.sc&&c.setAttribute("stroke",d.sc),d._mdf.fc&&c.setAttribute("fill",d.fc))}};function Un(t,r,i){this.initElement(t,r,i)}B([Yo],Un),Un.prototype.createContent=function(){var t=ft("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function Ur(t,r,i){this.initFrame(),this.initBaseData(t,r,i),this.initFrame(),this.initTransform(t,r,i),this.initHierarchy()}Ur.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},Ur.prototype.renderFrame=function(){},Ur.prototype.getBaseElement=function(){return null},Ur.prototype.destroy=function(){},Ur.prototype.sourceRectAtTime=function(){},Ur.prototype.hide=function(){},B([$r,Xi,Zi,Vr],Ur);function Yt(){}B([ne],Yt),Yt.prototype.createNull=function(t){return new Ur(t,this.globalData,this)},Yt.prototype.createShape=function(t){return new Vt(t,this.globalData,this)},Yt.prototype.createText=function(t){return new mr(t,this.globalData,this)},Yt.prototype.createImage=function(t){return new Yo(t,this.globalData,this)},Yt.prototype.createSolid=function(t){return new Un(t,this.globalData,this)},Yt.prototype.configAnimation=function(t){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 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.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 r=this.globalData.defs;this.setupGlobalData(t,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=ft("clipPath"),a=ft("rect");a.setAttribute("width",t.w),a.setAttribute("height",t.h),a.setAttribute("x",0),a.setAttribute("y",0);var d=ge();i.setAttribute("id",d),i.appendChild(a),this.layerElement.setAttribute("clip-path","url("+S()+"#"+d+")"),r.appendChild(i),this.layers=t.layers,this.elements=et(t.layers.length)},Yt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t,r=this.layers?this.layers.length:0;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Yt.prototype.updateContainerSize=function(){},Yt.prototype.findIndexByInd=function(t){var r=0,i=this.layers.length;for(r=0;r<i;r+=1)if(this.layers[r].ind===t)return r;return-1},Yt.prototype.buildItem=function(t){var r=this.elements;if(!(r[t]||this.layers[t].ty===99)){r[t]=!0;var i=this.createItem(this.layers[t]);if(r[t]=i,Us()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var a="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(i);else{var d=r[a],c=d.getMatte(this.layers[t].tt);i.setMatte(c)}}}},Yt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var r=0,i=this.elements.length;r<i;){if(this.elements[r]===t){var a="tp"in t.data?this.findIndexByInd(t.data.tp):r-1,d=this.elements[a],c=d.getMatte(this.layers[r].tt);t.setMatte(c);break}r+=1}}},Yt.prototype.renderFrame=function(t){if(!(this.renderedFrame===t||this.destroyed)){t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<i;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},Yt.prototype.appendElementInPos=function(t,r){var i=t.getBaseElement();if(i){for(var a=0,d;a<r;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement()&&(d=this.elements[a].getBaseElement()),a+=1;d?this.layerElement.insertBefore(i,d):this.layerElement.appendChild(i)}},Yt.prototype.hide=function(){this.layerElement.style.display="none"},Yt.prototype.show=function(){this.layerElement.style.display="block"};function pr(){}B([$r,Xi,Zi,Vr,qo],pr),pr.prototype.initElement=function(t,r,i){this.initFrame(),this.initBaseData(t,r,i),this.initTransform(t,r,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},pr.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var i,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},pr.prototype.renderInnerContent=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},pr.prototype.setElements=function(t){this.elements=t},pr.prototype.getElements=function(){return this.elements},pr.prototype.destroyElements=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy()},pr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Xo(t,r,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?et(this.layers.length):[],this.initElement(t,r,i),this.tm=t.tm?rt.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0}}B([Yt,pr,Wo],Xo),Xo.prototype.createComp=function(t){return new Xo(t,this.globalData,this)};function Hn(t,r){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=ft("svg");var i="";if(r&&r.title){var a=ft("title"),d=ge();a.setAttribute("id",d),a.textContent=r.title,this.svgElement.appendChild(a),i+=d}if(r&&r.description){var c=ft("desc"),p=ge();c.setAttribute("id",p),c.textContent=r.description,this.svgElement.appendChild(c),i+=" "+p}i&&this.svgElement.setAttribute("aria-labelledby",i);var x=ft("defs");this.svgElement.appendChild(x);var u=ft("g");this.svgElement.appendChild(u),this.layerElement=u,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:x,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return B([Yt],Hn),Hn.prototype.createComp=function(t){return new Xo(t,this.globalData,this)},gu("svg",Hn),Fr.registerModifier("tm",We),Fr.registerModifier("pb",$o),Fr.registerModifier("rp",ir),Fr.registerModifier("rd",Vo),Fr.registerModifier("zz",Uo),Fr.registerModifier("op",Ho),It})});var la=globalThis,ca=la.ShadowRoot&&(la.ShadyCSS===void 0||la.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Gn=Symbol(),Sd=new WeakMap,Zo=class{constructor(o,e,s){if(this._$cssResult$=!0,s!==Gn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o,e=this.t;if(ca&&o===void 0){let s=e!==void 0&&e.length===1;s&&(o=Sd.get(e)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),s&&Sd.set(e,o))}return o}toString(){return this.cssText}},kd=l=>new Zo(typeof l=="string"?l:l+"",void 0,Gn),W=(l,...o)=>{let e=l.length===1?l[0]:o.reduce((s,n,h)=>s+(f=>{if(f._$cssResult$===!0)return f.cssText;if(typeof f=="number")return f;throw Error("Value passed to 'css' function must be a 'css' function result: "+f+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+l[h+1],l[0]);return new Zo(e,l,Gn)},jn=(l,o)=>{if(ca)l.adoptedStyleSheets=o.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of o){let s=document.createElement("style"),n=la.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,l.appendChild(s)}},da=ca?l=>l:l=>l instanceof CSSStyleSheet?(o=>{let e="";for(let s of o.cssRules)e+=s.cssText;return kd(e)})(l):l;var{is:gf,defineProperty:bf,getOwnPropertyDescriptor:yf,getOwnPropertyNames:xf,getOwnPropertySymbols:Ef,getPrototypeOf:Tf}=Object,qr=globalThis,Cd=qr.trustedTypes,Af=Cd?Cd.emptyScript:"",Wn=qr.reactiveElementPolyfillSupport,Jo=(l,o)=>l,Qo={toAttribute(l,o){switch(o){case Boolean:l=l?Af:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,o){let e=l;switch(o){case Boolean:e=l!==null;break;case Number:e=l===null?null:Number(l);break;case Object:case Array:try{e=JSON.parse(l)}catch{e=null}}return e}},ha=(l,o)=>!gf(l,o),wd={attribute:!0,type:String,converter:Qo,reflect:!1,hasChanged:ha},Id,Ld;(Id=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ld=qr.litPropertyMetadata)!=null||(qr.litPropertyMetadata=new WeakMap);var br=class extends HTMLElement{static addInitializer(o){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,e=wd){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(o,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(o,s,e);n!==void 0&&bf(this.prototype,o,n)}}static getPropertyDescriptor(o,e,s){var f;let{get:n,set:h}=(f=yf(this.prototype,o))!=null?f:{get(){return this[e]},set(S){this[e]=S}};return{get(){return n==null?void 0:n.call(this)},set(S){let M=n==null?void 0:n.call(this);h.call(this,S),this.requestUpdate(o,M,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var e;return(e=this.elementProperties.get(o))!=null?e:wd}static _$Ei(){if(this.hasOwnProperty(Jo("elementProperties")))return;let o=Tf(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Jo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jo("properties"))){let e=this.properties,s=[...xf(e),...Ef(e)];for(let n of s)this.createProperty(n,e[n])}let o=this[Symbol.metadata];if(o!==null){let e=litPropertyMetadata.get(o);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let e=[];if(Array.isArray(o)){let s=new Set(o.flat(1/0).reverse());for(let n of s)e.unshift(da(n))}else o!==void 0&&e.push(da(o));return e}static _$Eu(o,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(e=>e(this))}addController(o){var e,s;((e=this._$EO)!=null?e:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((s=o.hostConnected)==null||s.call(o))}removeController(o){var e;(e=this._$EO)==null||e.delete(o)}_$E_(){let o=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(o.set(s,this[s]),delete this[s]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var e;let o=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return jn(o,this.constructor.elementStyles),o}connectedCallback(){var o,e;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostConnected)==null?void 0:n.call(s)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(o,e,s){this._$AK(o,s)}_$EC(o,e){var h;let s=this.constructor.elementProperties.get(o),n=this.constructor._$Eu(o,s);if(n!==void 0&&s.reflect===!0){let f=(((h=s.converter)==null?void 0:h.toAttribute)!==void 0?s.converter:Qo).toAttribute(e,s.type);this._$Em=o,f==null?this.removeAttribute(n):this.setAttribute(n,f),this._$Em=null}}_$AK(o,e){var h;let s=this.constructor,n=s._$Eh.get(o);if(n!==void 0&&this._$Em!==n){let f=s.getPropertyOptions(n),S=typeof f.converter=="function"?{fromAttribute:f.converter}:((h=f.converter)==null?void 0:h.fromAttribute)!==void 0?f.converter:Qo;this._$Em=n,this[n]=S.fromAttribute(e,f.type),this._$Em=null}}requestUpdate(o,e,s){var n;if(o!==void 0){if(s!=null||(s=this.constructor.getPropertyOptions(o)),!((n=s.hasChanged)!=null?n:ha)(this[o],e))return;this.P(o,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,e,s){var n;this._$AL.has(o)||this._$AL.set(o,e),s.reflect===!0&&this._$Em!==o&&((n=this._$Ej)!=null?n:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s,n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((s=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[f,S]of this._$Ep)this[f]=S;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[f,S]of h)S.wrapped!==!0||this._$AL.has(f)||this[f]===void 0||this.P(f,this[f],S)}let o=!1,e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(h=>{var f;return(f=h.hostUpdate)==null?void 0:f.call(h)}),this.update(e)):this._$EU()}catch(h){throw o=!1,this._$EU(),h}o&&this._$AE(e)}willUpdate(o){}_$AE(o){var e;(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),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(e=>this._$EC(e,this[e]))),this._$EU()}updated(o){}firstUpdated(o){}},Md;br.elementStyles=[],br.shadowRootOptions={mode:"open"},br[Jo("elementProperties")]=new Map,br[Jo("finalized")]=new Map,Wn==null||Wn({ReactiveElement:br}),((Md=qr.reactiveElementVersions)!=null?Md:qr.reactiveElementVersions=[]).push("2.0.4");var es=globalThis,ma=es.trustedTypes,Nd=ma?ma.createPolicy("lit-html",{createHTML:l=>l}):void 0,Kn="$lit$",yr=`lit$${Math.random().toFixed(9).slice(2)}$`,Xn="?"+yr,_f=`<${Xn}>`,pi=document,rs=()=>pi.createComment(""),is=l=>l===null||typeof l!="object"&&typeof l!="function",Zn=Array.isArray,$d=l=>Zn(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",qn=`[
|
3
|
+
\f\r]`,ts=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rd=/-->/g,Od=/>/g,hi=RegExp(`>|${qn}(?:([^\\s"'>=/]+)(${qn}*=${qn}*(?:[^
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Pd=/'/g,Dd=/"/g,Vd=/^(?:script|style|textarea|title)$/i,Jn=l=>(o,...e)=>({_$litType$:l,strings:o,values:e}),F=Jn(1),E0=Jn(2),T0=Jn(3),xr=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),Fd=new WeakMap,mi=pi.createTreeWalker(pi,129);function Bd(l,o){if(!Zn(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nd!==void 0?Nd.createHTML(o):o}var Ud=(l,o)=>{let e=l.length-1,s=[],n,h=o===2?"<svg>":o===3?"<math>":"",f=ts;for(let S=0;S<e;S++){let M=l[S],B,G,q=-1,ot=0;for(;ot<M.length&&(f.lastIndex=ot,G=f.exec(M),G!==null);)ot=f.lastIndex,f===ts?G[1]==="!--"?f=Rd:G[1]!==void 0?f=Od:G[2]!==void 0?(Vd.test(G[2])&&(n=RegExp("</"+G[2],"g")),f=hi):G[3]!==void 0&&(f=hi):f===hi?G[0]===">"?(f=n!=null?n:ts,q=-1):G[1]===void 0?q=-2:(q=f.lastIndex-G[2].length,B=G[1],f=G[3]===void 0?hi:G[3]==='"'?Dd:Pd):f===Dd||f===Pd?f=hi:f===Rd||f===Od?f=ts:(f=hi,n=void 0);let Q=f===hi&&l[S+1].startsWith("/>")?" ":"";h+=f===ts?M+_f:q>=0?(s.push(B),M.slice(0,q)+Kn+M.slice(q)+yr+Q):M+yr+(q===-2?S:Q)}return[Bd(l,h+(l[e]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),s]},os=class l{constructor({strings:o,_$litType$:e},s){let n;this.parts=[];let h=0,f=0,S=o.length-1,M=this.parts,[B,G]=Ud(o,e);if(this.el=l.createElement(B,s),mi.currentNode=this.el.content,e===2||e===3){let q=this.el.content.firstChild;q.replaceWith(...q.childNodes)}for(;(n=mi.nextNode())!==null&&M.length<S;){if(n.nodeType===1){if(n.hasAttributes())for(let q of n.getAttributeNames())if(q.endsWith(Kn)){let ot=G[f++],Q=n.getAttribute(q).split(yr),et=/([.?@])?(.*)/.exec(ot);M.push({type:1,index:h,name:et[2],strings:Q,ctor:et[1]==="."?ua:et[1]==="?"?fa:et[1]==="@"?va:fi}),n.removeAttribute(q)}else q.startsWith(yr)&&(M.push({type:6,index:h}),n.removeAttribute(q));if(Vd.test(n.tagName)){let q=n.textContent.split(yr),ot=q.length-1;if(ot>0){n.textContent=ma?ma.emptyScript:"";for(let Q=0;Q<ot;Q++)n.append(q[Q],rs()),mi.nextNode(),M.push({type:2,index:++h});n.append(q[ot],rs())}}}else if(n.nodeType===8)if(n.data===Xn)M.push({type:2,index:h});else{let q=-1;for(;(q=n.data.indexOf(yr,q+1))!==-1;)M.push({type:7,index:h}),q+=yr.length-1}h++}}static createElement(o,e){let s=pi.createElement("template");return s.innerHTML=o,s}};function ui(l,o,e=l,s){var f,S,M;if(o===xr)return o;let n=s!==void 0?(f=e.o)==null?void 0:f[s]:e.l,h=is(o)?void 0:o._$litDirective$;return(n==null?void 0:n.constructor)!==h&&((S=n==null?void 0:n._$AO)==null||S.call(n,!1),h===void 0?n=void 0:(n=new h(l),n._$AT(l,e,s)),s!==void 0?((M=e.o)!=null?M:e.o=[])[s]=n:e.l=n),n!==void 0&&(o=ui(l,n._$AS(l,o.values),n,s)),o}var pa=class{constructor(o,e){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var B;let{el:{content:e},parts:s}=this._$AD,n=((B=o==null?void 0:o.creationScope)!=null?B:pi).importNode(e,!0);mi.currentNode=n;let h=mi.nextNode(),f=0,S=0,M=s[0];for(;M!==void 0;){if(f===M.index){let G;M.type===2?G=new Qi(h,h.nextSibling,this,o):M.type===1?G=new M.ctor(h,M.name,M.strings,this,o):M.type===6&&(G=new ga(h,this,o)),this._$AV.push(G),M=s[++S]}f!==(M==null?void 0:M.index)&&(h=mi.nextNode(),f++)}return mi.currentNode=pi,n}p(o){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(o,s,e),e+=s.strings.length-2):s._$AI(o[e])),e++}},Qi=class l{get _$AU(){var o,e;return(e=(o=this._$AM)==null?void 0:o._$AU)!=null?e:this.v}constructor(o,e,s,n){var h;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=o,this._$AB=e,this._$AM=s,this.options=n,this.v=(h=n==null?void 0:n.isConnected)!=null?h:!0}get parentNode(){let o=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=e.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,e=this){o=ui(this,o,e),is(o)?o===Z||o==null||o===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):o!==this._$AH&&o!==xr&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):$d(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!==Z&&is(this._$AH)?this._$AA.nextSibling.data=o:this.T(pi.createTextNode(o)),this._$AH=o}$(o){var h;let{values:e,_$litType$:s}=o,n=typeof s=="number"?this._$AC(o):(s.el===void 0&&(s.el=os.createElement(Bd(s.h,s.h[0]),this.options)),s);if(((h=this._$AH)==null?void 0:h._$AD)===n)this._$AH.p(e);else{let f=new pa(n,this),S=f.u(this.options);f.p(e),this.T(S),this._$AH=f}}_$AC(o){let e=Fd.get(o.strings);return e===void 0&&Fd.set(o.strings,e=new os(o)),e}k(o){Zn(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let h of o)n===e.length?e.push(s=new l(this.O(rs()),this.O(rs()),this,this.options)):s=e[n],s._$AI(h),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(o=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);o&&o!==this._$AB;){let n=o.nextSibling;o.remove(),o=n}}setConnected(o){var e;this._$AM===void 0&&(this.v=o,(e=this._$AP)==null||e.call(this,o))}},fi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,e,s,n,h){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=o,this.name=e,this._$AM=n,this.options=h,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=Z}_$AI(o,e=this,s,n){let h=this.strings,f=!1;if(h===void 0)o=ui(this,o,e,0),f=!is(o)||o!==this._$AH&&o!==xr,f&&(this._$AH=o);else{let S=o,M,B;for(o=h[0],M=0;M<h.length-1;M++)B=ui(this,S[s+M],e,M),B===xr&&(B=this._$AH[M]),f||(f=!is(B)||B!==this._$AH[M]),B===Z?o=Z:o!==Z&&(o+=(B!=null?B:"")+h[M+1]),this._$AH[M]=B}f&&!n&&this.j(o)}j(o){o===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},ua=class extends fi{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===Z?void 0:o}},fa=class extends fi{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==Z)}},va=class extends fi{constructor(o,e,s,n,h){super(o,e,s,n,h),this.type=5}_$AI(o,e=this){var f;if((o=(f=ui(this,o,e,0))!=null?f:Z)===xr)return;let s=this._$AH,n=o===Z&&s!==Z||o.capture!==s.capture||o.once!==s.once||o.passive!==s.passive,h=o!==Z&&(s===Z||n);n&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)==null?void 0:e.host)!=null?s:this.element,o):this._$AH.handleEvent(o)}},ga=class{constructor(o,e,s){this.element=o,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(o){ui(this,o)}},Hd={M:Kn,P:yr,A:Xn,C:1,L:Ud,R:pa,D:$d,V:ui,I:Qi,H:fi,N:fa,U:va,B:ua,F:ga},Yn=es.litHtmlPolyfillSupport,zd;Yn==null||Yn(os,Qi),((zd=es.litHtmlVersions)!=null?zd:es.litHtmlVersions=[]).push("3.2.0");var Gd=(l,o,e)=>{var h,f;let s=(h=e==null?void 0:e.renderBefore)!=null?h:o,n=s._$litPart$;if(n===void 0){let S=(f=e==null?void 0:e.renderBefore)!=null?f:null;s._$litPart$=n=new Qi(o.insertBefore(rs(),S),S,void 0,e!=null?e:{})}return n._$AI(l),n};var Yr=class extends br{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,s;let o=super.createRenderRoot();return(s=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=o.firstChild),o}update(o){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Gd(e,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 xr}},jd;Yr._$litElement$=!0,Yr.finalized=!0,(jd=globalThis.litElementHydrateSupport)==null||jd.call(globalThis,{LitElement:Yr});var Qn=globalThis.litElementPolyfillSupport;Qn==null||Qn({LitElement:Yr});var Wd;((Wd=globalThis.litElementVersions)!=null?Wd:globalThis.litElementVersions=[]).push("4.1.0");var Sf={attribute:!0,type:String,converter:Qo,reflect:!1,hasChanged:ha},kf=(l=Sf,o,e)=>{let{kind:s,metadata:n}=e,h=globalThis.litPropertyMetadata.get(n);if(h===void 0&&globalThis.litPropertyMetadata.set(n,h=new Map),h.set(e.name,l),s==="accessor"){let{name:f}=e;return{set(S){let M=o.get.call(this);o.set.call(this,S),this.requestUpdate(f,M,l)},init(S){return S!==void 0&&this.P(f,void 0,l),S}}}if(s==="setter"){let{name:f}=e;return function(S){let M=this[f];o.call(this,S),this.requestUpdate(f,M,l)}}throw Error("Unsupported decorator location: "+s)};function A(l){return(o,e)=>typeof e=="object"?kf(l,o,e):((s,n,h)=>{let f=n.hasOwnProperty(h);return n.constructor.createProperty(h,f?{...s,wrapped:!0}:s),f?Object.getOwnPropertyDescriptor(n,h):void 0})(l,o,e)}function At(l){return A({...l,state:!0,attribute:!1})}var Er=(l,o,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(l,o,e),e);function Tr(l,o){return(e,s,n)=>{let h=f=>{var S,M;return(M=(S=f.renderRoot)==null?void 0:S.querySelector(l))!=null?M:null};if(o){let{get:f,set:S}=typeof s=="object"?e:n!=null?n:(()=>{let M=Symbol();return{get(){return this[M]},set(B){this[M]=B}}})();return Er(e,s,{get(){let M=f.call(this);return M===void 0&&(M=h(this),(M!==null||this.hasUpdated)&&S.call(this,M)),M}})}return Er(e,s,{get(){return h(this)}})}}function Gt(l){return(o,e)=>{let{slot:s,selector:n}=l!=null?l:{},h="slot"+(s?`[name=${s}]`:":not([name])");return Er(o,e,{get(){var M,B;let f=(M=this.renderRoot)==null?void 0:M.querySelector(h),S=(B=f==null?void 0:f.assignedElements(l))!=null?B:[];return n===void 0?S:S.filter(G=>G.matches(n))}})}}function ba(l){return(o,e)=>{let{slot:s}=l!=null?l:{},n="slot"+(s?`[name=${s}]`:":not([name])");return Er(o,e,{get(){var f,S;let h=(f=this.renderRoot)==null?void 0:f.querySelector(n);return(S=h==null?void 0:h.assignedNodes(l))!=null?S:[]}})}}var Et=W`
|
4
5
|
:host {
|
5
6
|
align-items: center;
|
6
7
|
display: flex;
|
@@ -8,7 +9,7 @@
|
|
8
9
|
justify-content: center;
|
9
10
|
width: fit-content;
|
10
11
|
}
|
11
|
-
`,
|
12
|
+
`,ya=W`
|
12
13
|
:host {
|
13
14
|
--mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
|
14
15
|
--mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
|
@@ -21,10 +22,10 @@
|
|
21
22
|
--mdc-focus-ring-middle-offset: var(--mdc-focus-ring-inner-width);
|
22
23
|
--mdc-focus-ring-outer-offset: calc(var(--mdc-focus-ring-inner-width) + var(--mdc-focus-ring-middle-width));
|
23
24
|
}
|
24
|
-
`,
|
25
|
+
`,_t=(l=!1)=>{let o=W`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
|
25
26
|
0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
|
26
27
|
0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
|
27
|
-
`;return
|
28
|
+
`;return l?[ya,W`
|
28
29
|
.mdc-focus-ring:focus-visible {
|
29
30
|
outline: none;
|
30
31
|
}
|
@@ -34,7 +35,7 @@
|
|
34
35
|
/* Add focus ring to parent when child is focused. The parent element must have class name mdc-focus-ring */
|
35
36
|
.mdc-focus-ring:focus-within {
|
36
37
|
position: relative;
|
37
|
-
box-shadow: ${
|
38
|
+
box-shadow: ${o};
|
38
39
|
}
|
39
40
|
/* Remove focus ring from parent when children has its own focus ring.
|
40
41
|
The child element must have class name own-focus-ring */
|
@@ -48,14 +49,14 @@
|
|
48
49
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
49
50
|
}
|
50
51
|
}
|
51
|
-
`]:[
|
52
|
+
`]:[ya,W`
|
52
53
|
:host([disabled]:focus) {
|
53
54
|
box-shadow: none;
|
54
55
|
}
|
55
56
|
:host(:focus-visible) {
|
56
57
|
outline: none;
|
57
58
|
position: relative;
|
58
|
-
box-shadow: ${
|
59
|
+
box-shadow: ${o};
|
59
60
|
}
|
60
61
|
/* High Contrast Mode */
|
61
62
|
@media (forced-colors: active) {
|
@@ -63,7 +64,7 @@
|
|
63
64
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
64
65
|
}
|
65
66
|
}
|
66
|
-
`]};var
|
67
|
+
`]};var Cf=W`
|
67
68
|
:host {
|
68
69
|
height: 1.5rem;
|
69
70
|
gap: 0.25rem;
|
@@ -166,7 +167,7 @@
|
|
166
167
|
:host([variant="informational"]:active){
|
167
168
|
--mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
|
168
169
|
}
|
169
|
-
`,
|
170
|
+
`,qd=[Et,Cf,..._t()];var Yd=W`
|
170
171
|
:host {
|
171
172
|
box-sizing: border-box;
|
172
173
|
}
|
@@ -176,11 +177,11 @@
|
|
176
177
|
:host *::after {
|
177
178
|
box-sizing: inherit;
|
178
179
|
}
|
179
|
-
`;var
|
180
|
+
`;var xa=class extends Yr{static register(o){customElements.get(o)||customElements.define(o,this)}};xa.styles=[Yd];var Kd=xa;var J=Kd;var Kr=class extends Event{constructor(o,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=e,this.subscribe=s!=null?s:!1}};var to=class{constructor(o,e,s,n){var h;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(f,S)=>{this.unsubscribe&&(this.unsubscribe!==S&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=f,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(f,S)),this.unsubscribe=S},this.host=o,e.context!==void 0){let f=e;this.context=f.context,this.callback=f.callback,this.subscribe=(h=f.subscribe)!=null?h:!1}else this.context=e,this.callback=s,this.subscribe=n!=null?n:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Kr(this.context,this.t,this.subscribe))}};var Ea=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,e=!1){let s=e||!Object.is(o,this.o);this.o=o,s&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:s}]of this.subscriptions)e(this.o,s)},o!==void 0&&(this.value=o)}addCallback(o,e,s){if(!s)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:e});let{disposer:n}=this.subscriptions.get(o);o(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var tl=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},eo=class extends Ea{constructor(o,e,s){var n,h;super(e.context!==void 0?e.initialValue:s),this.onContextRequest=f=>{let S=f.composedPath()[0];f.context===this.context&&S!==this.host&&(f.stopPropagation(),this.addCallback(f.callback,S,f.subscribe))},this.onProviderRequest=f=>{let S=f.composedPath()[0];if(f.context!==this.context||S===this.host)return;let M=new Set;for(let[B,{consumerHost:G}]of this.subscriptions)M.has(B)||(M.add(B),G.dispatchEvent(new Kr(this.context,B,!0)));f.stopPropagation()},this.host=o,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(h=(n=this.host).addController)==null||h.call(n,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new tl(this.context))}};var wf=W`
|
180
181
|
:host {
|
181
182
|
display: contents;
|
182
183
|
}
|
183
|
-
`,
|
184
|
+
`,Zd=wf;var Ta=class extends J{constructor({context:o,initialValue:e}){super(),this.context=new eo(this,{context:o,initialValue:e})}render(){return this.updateContext(),F`<slot></slot>`}};Ta.styles=[...J.styles,Zd];var Jd=Ta;var ro=Jd;var If={PREFIX:"mdc",SEPARATOR:"-"},Lf={NAMESPACE:If},el=Lf;var Mf=l=>[el.NAMESPACE.PREFIX,l].join(el.NAMESPACE.SEPARATOR),j={constructTagName:Mf};var cE=j.constructTagName("buttonsimple"),ss={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},io={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},as={SIZE:ss[32],TYPE:io.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var ns=j.constructTagName("text"),lt={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"},xt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Le={TYPE:lt.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:xt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Qd=j.constructTagName("alertchip"),vi={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},oo={VARIANT:vi.NEUTRAL,TEXT_TYPE:lt.BODY_MIDSIZE_REGULAR,TAG_NAME:xt.SPAN,SIZE:ss[24],ROLE:"button"};var th=l=>({[vi.ERROR]:"error-legacy-badge-filled",[vi.WARNING]:"warning-badge-filled",[vi.SUCCESS]:"check-circle-badge-filled",[vi.INFORMATIONAL]:"info-badge-filled",[vi.NEUTRAL]:"dnd-presence-badge-filled"})[l];var Dt=l=>{class o extends l{}return y([A({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ar=l=>{class o extends l{constructor(){super(...arguments);this.tabIndex=0}}return y([A({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Nf=[Et,W`
|
184
185
|
:host {
|
185
186
|
border: 0.0625rem solid transparent;
|
186
187
|
cursor: pointer;
|
@@ -237,10 +238,10 @@
|
|
237
238
|
:host([size="20"]){
|
238
239
|
height: var(--mdc-button-height-size-20);
|
239
240
|
}
|
240
|
-
`,...
|
241
|
-
<mdc-icon part="icon" name="${
|
242
|
-
<mdc-text part="label" type="${
|
243
|
-
`}};
|
241
|
+
`,..._t()],eh=Nf;var Ke=class extends ar(Dt(J)){constructor(){super();this.size=as.SIZE;this.role=as.ROLE;this.type=as.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(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||as.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===io.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===io.RESET&&this.form&&this.form.reset()}setActive(e,s){this.ariaStateKey&&this.ariaStateKey.split(",").filter(h=>h.trim().startsWith("aria-")).forEach(h=>{s===!0?e.setAttribute(h.trim(),"true"):s===!1?e.setAttribute(h.trim(),"false"):e.removeAttribute(h.trim())})}setSoftDisabled(e,s){s?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,s){s?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent(),e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return F` <slot></slot> `}};Ke.formAssociated=!0,Ke.styles=[...J.styles,...eh],y([A({type:Boolean,reflect:!0})],Ke.prototype,"active",2),y([A({type:Boolean,attribute:"soft-disabled",reflect:!0})],Ke.prototype,"softDisabled",2),y([A({type:Number,reflect:!0})],Ke.prototype,"size",2),y([A({type:String,reflect:!0})],Ke.prototype,"role",2),y([A({type:String,reflect:!0})],Ke.prototype,"ariaStateKey",2),y([A({reflect:!0})],Ke.prototype,"type",2);var Te=Ke;var so=class extends Te{constructor(){super(...arguments);this.variant=oo.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=oo.SIZE,this.role=oo.ROLE}render(){return F`
|
242
|
+
<mdc-icon part="icon" name="${th(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
243
|
+
<mdc-text part="label" type="${oo.TEXT_TYPE}" tagname="${oo.TAG_NAME}">${this.label}</mdc-text>
|
244
|
+
`}};so.styles=[...J.styles,...qd],y([A({type:String})],so.prototype,"variant",2),y([A({type:String})],so.prototype,"label",2);var rl=so;var rh=W`
|
244
245
|
:host::part(text) {
|
245
246
|
font-size: unset;
|
246
247
|
font-weight: unset;
|
@@ -483,14 +484,14 @@
|
|
483
484
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
484
485
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
485
486
|
}
|
486
|
-
`;var
|
487
|
+
`;var Rf=[W`
|
487
488
|
:host {
|
488
489
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
489
490
|
|
490
491
|
display: block;
|
491
492
|
font-family: var(--mdc-text-font-family);
|
492
493
|
}
|
493
|
-
`,
|
494
|
+
`,rh],ih=Rf;var ao=class extends J{constructor(){super(...arguments);this.type=Le.TYPE;this.tagname=Le.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case xt.H1:return F`<h1 part=${Le.CSS_PART_TEXT}><slot></slot></h1>`;case xt.H2:return F`<h2 part=${Le.CSS_PART_TEXT}><slot></slot></h2>`;case xt.H3:return F`<h3 part=${Le.CSS_PART_TEXT}><slot></slot></h3>`;case xt.H4:return F`<h4 part=${Le.CSS_PART_TEXT}><slot></slot></h4>`;case xt.H5:return F`<h5 part=${Le.CSS_PART_TEXT}><slot></slot></h5>`;case xt.H6:return F`<h6 part=${Le.CSS_PART_TEXT}><slot></slot></h6>`;case xt.DIV:return F`<div part=${Le.CSS_PART_TEXT}><slot></slot></div>`;case xt.SPAN:return F`<span part=${Le.CSS_PART_TEXT}><slot></slot></span>`;case xt.SMALL:return F`<small part=${Le.CSS_PART_TEXT}><slot></slot></small>`;case xt.P:default:return F`<p part=${Le.CSS_PART_TEXT}><slot></slot></p>`}}};ao.styles=[...J.styles,...ih],y([A({attribute:"type",reflect:!0,type:String})],ao.prototype,"type",2),y([A({attribute:"tagname",reflect:!0,type:String})],ao.prototype,"tagname",2);var il=ao;il.register(ns);var Of=il;var Pf=[Et,W`
|
494
495
|
:host {
|
495
496
|
--mdc-icon-fill-color: currentColor;
|
496
497
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -505,7 +506,7 @@
|
|
505
506
|
width: 100%;
|
506
507
|
fill: var(--mdc-icon-fill-color);
|
507
508
|
}
|
508
|
-
`,...
|
509
|
+
`,..._t()],oh=Pf;var Df=l=>{let{host:o,context:e,subscribe:s}=l;return new to(o,{context:e,subscribe:s!=null?s:!0})},Ff={consume:Df},sh=Ff;var Aa=j.constructTagName("iconprovider"),ah=["svg"],nh=["em","rem","px","%"],zf={px:16,em:1,rem:1,"%":100},Ar={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:zf.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var _a=class{};_a.context=Aa;var Sa=_a;var nr=class extends ro{constructor(){super({context:Sa.context,initialValue:new Sa});this.iconSet=Ar.ICON_SET;this.fileExtension=Ar.FILE_EXTENSION;this.lengthUnit=Ar.LENGTH_UNIT;this.size=Ar.SIZE}static get Context(){return Sa.context}updateValuesInContext(){this.fileExtension&&ah.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ar.FILE_EXTENSION,this.context.value.fileExtension=Ar.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&&nh.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ar.LENGTH_UNIT,this.context.value.lengthUnit=Ar.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())}};y([A({type:String,attribute:"icon-set",reflect:!0})],nr.prototype,"iconSet",2),y([A({type:String})],nr.prototype,"url",2),y([A({type:String,attribute:"file-extension",reflect:!0})],nr.prototype,"fileExtension",2),y([A({type:String,attribute:"length-unit",reflect:!0})],nr.prototype,"lengthUnit",2),y([A({type:Number,reflect:!0})],nr.prototype,"size",2),y([A({type:String,attribute:"cache-strategy"})],nr.prototype,"cacheStrategy",2),y([A({type:String,attribute:"cache-name"})],nr.prototype,"cacheName",2);var ls=nr;var cs={},lh=async l=>(cs[l]===void 0&&(cs[l]=new Map),{async set(o,e){cs[l].set(o.url,await e.text())},async get(o){return cs[l].get(o.url)},async delete(o){cs[l].delete(o.url)}}),ch=async l=>{let o=await caches.open(l);return{set:async(e,s)=>{await o.put(e,s)},get:async e=>{let s=await o.match(e);return s==null?void 0:s.text()},delete:async e=>{await o.delete(e)}}},dh=async(l,o)=>o==="in-memory-cache"?lh(l):ch(l);var hh=async l=>fetch(l).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),mh=async({url:l,name:o,fileExtension:e,cacheStrategy:s,cacheName:n,renewSignal:h})=>{let f=h(),S=new Request(`${l}/${o}.${e}`,{signal:f});return!n||!s||!["in-memory-cache","web-cache-api"].includes(s)?hh(S).then(M=>M.text()):dh(n,s).then(M=>M.get(S).then(B=>B||hh(S.clone()).then(G=>{var q;return G.status<400&&G.headers.has("content-type")?(q=M.set)==null?void 0:q.call(M,S,G.clone()).then(()=>G.text()):G.text()})).catch(B=>{throw new Error(`Error in caching the Icon ${o}, ${B}`)}))};var ph=j.constructTagName("icon"),ol={NAME:void 0,SIZE:1};var Me=class extends J{constructor(){super();this.name=ol.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=sh.consume({host:this,context:ls.Context});this.abortController=new AbortController}prepareIconElement(e){let s=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&s.setAttribute("data-name",this.name),s.setAttribute("part","icon"),s.setAttribute("aria-hidden","true"),s}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:s,url:n,cacheName:h,iconSet:f,cacheStrategy:S}=this.iconProviderContext.value;if(f==="custom-icons"&&n&&s&&this.name){let M=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return mh({url:n,name:this.name,fileExtension:s,cacheName:h,cacheStrategy:S,renewSignal:M}).then(B=>{let G=this.prepareIconElement(B);this.handleIconLoadedSuccess(G)}).catch(B=>{this.handleIconLoadedFailure(B)})}if(f==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(M=>{this.handleIconLoadedSuccess(M.default())}).catch(M=>{this.handleIconLoadedFailure(M)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let s=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(s)}handleIconLoadedFailure(e){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(s)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let s=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",s)}}get computedIconSize(){var e,s;return(s=(e=this.size)!=null?e:this.sizeFromContext)!=null?s:ol.SIZE}updated(e){var s,n,h,f;super.updated(e),e.has("name")&&this.getIconData().catch(S=>{S.name!=="AbortError"&&this.onerror&&this.onerror(S)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.lengthUnit)&&(this.lengthUnitFromContext=(n=this.iconProviderContext.value)==null?void 0:n.lengthUnit,this.updateSize()),this.sizeFromContext!==((h=this.iconProviderContext.value)==null?void 0:h.size)&&(this.sizeFromContext=(f=this.iconProviderContext.value)==null?void 0:f.size,this.updateSize())}render(){return F` ${this.iconData} `}};Me.styles=[...J.styles,...oh],y([At()],Me.prototype,"iconData",2),y([At()],Me.prototype,"lengthUnitFromContext",2),y([At()],Me.prototype,"sizeFromContext",2),y([A({type:String,reflect:!0})],Me.prototype,"name",2),y([A({type:Number})],Me.prototype,"size",2),y([A({type:String,attribute:"length-unit"})],Me.prototype,"lengthUnit",2),y([A({type:String,attribute:"aria-label"})],Me.prototype,"ariaLabel",2),y([A({type:String,attribute:"aria-labelledby"})],Me.prototype,"ariaLabelledBy",2),y([At()],Me.prototype,"abortController",2);var sl=Me;sl.register(ph);var $f=sl;rl.register(Qd);var Vf=rl;var Bf=W`
|
509
510
|
:host {
|
510
511
|
--mdc-appheader-height: 4rem;
|
511
512
|
}
|
@@ -539,7 +540,7 @@
|
|
539
540
|
:host::part(trailing-section) {
|
540
541
|
justify-content: flex-end;
|
541
542
|
}
|
542
|
-
`,
|
543
|
+
`,uh=[Bf];var ka=class extends J{render(){return F`
|
543
544
|
<header part="container">
|
544
545
|
<div part="leading-section">
|
545
546
|
<slot name="leading"></slot>
|
@@ -550,7 +551,7 @@
|
|
550
551
|
<div part="trailing-section">
|
551
552
|
<slot name="trailing"></slot>
|
552
553
|
</div>
|
553
|
-
</header>`}};
|
554
|
+
</header>`}};ka.styles=[...J.styles,...uh];var al=ka;var fh=j.constructTagName("appheader");al.register(fh);var Uf=al;var mt=l=>l!=null?l:Z;var vh=j.constructTagName("avatar"),me={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},nl=99,Hf="user-regular",Nt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},no={TYPE:me.PHOTO,SIZE:Nt[32],ICON_NAME:Hf};var Ca=l=>{class o extends l{constructor(){super(...arguments);this.size=no.SIZE;this.isTyping=!1}}return y([A({type:String})],o.prototype,"src",2),y([A({type:String})],o.prototype,"initials",2),y([A({type:String})],o.prototype,"presence",2),y([A({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),y([A({type:Number})],o.prototype,"counter",2),y([A({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var Ae=l=>{class o extends l{}return y([A({type:String,attribute:"icon-name"})],o.prototype,"iconName",2),o};var Gf=[Et,W`
|
554
555
|
:host {
|
555
556
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
556
557
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -673,38 +674,38 @@
|
|
673
674
|
outline: 0.125rem solid;
|
674
675
|
}
|
675
676
|
}
|
676
|
-
`],
|
677
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
678
|
-
`:
|
677
|
+
`],gh=Gf;var bh=j.constructTagName("presence"),le={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"},Kt={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},lo={TYPE:le.ACTIVE,SIZE:Kt.SMALL};var yh=l=>({[Nt[124]]:Kt.XX_LARGE,[Nt[88]]:Kt.X_LARGE,[Nt[72]]:Kt.LARGE,[Nt[64]]:Kt.MIDSIZE,[Nt[48]]:Kt.SMALL,[Nt[32]]:Kt.X_SMALL,[Nt[24]]:Kt.XX_SMALL})[l]||Kt.X_SMALL,xh=l=>({[Nt[124]]:4.75,[Nt[88]]:3,[Nt[72]]:2.5,[Nt[64]]:2.25,[Nt[48]]:1.75,[Nt[32]]:1.25,[Nt[24]]:1})[l]||1.25,Eh=l=>({[Nt[124]]:lt.HEADING_XLARGE_MEDIUM,[Nt[88]]:lt.HEADING_LARGE_MEDIUM,[Nt[72]]:lt.HEADING_MIDSIZE_MEDIUM,[Nt[64]]:lt.HEADING_SMALL_MEDIUM,[Nt[48]]:lt.HEADING_SMALL_MEDIUM,[Nt[32]]:lt.BODY_MIDSIZE_MEDIUM,[Nt[24]]:lt.BODY_SMALL_MEDIUM})[l]||lt.BODY_MIDSIZE_MEDIUM;var ds=class extends Ca(Ae(J)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===me.COUNTER&&(this.counter||this.counter===0)||this.isTyping?Z:this.presence?F`
|
678
|
+
<mdc-presence part="presence" type="${this.presence}" size="${yh(this.size)}"></mdc-presence>
|
679
|
+
`:Z}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 F`
|
679
680
|
<img
|
680
681
|
part="photo"
|
681
|
-
src="${
|
682
|
+
src="${mt(this.src)}"
|
682
683
|
aria-hidden="true"
|
683
684
|
?hidden="${!this.isPhotoLoaded}"
|
684
685
|
@load="${this.handleOnLoad}"
|
685
686
|
@error="${this.handleOnError}"
|
686
687
|
/>
|
687
|
-
`}iconTemplate(){let e=this.iconName||
|
688
|
+
`}iconTemplate(){let e=this.iconName||no.ICON_NAME;return F`
|
688
689
|
<mdc-icon
|
689
|
-
name="${
|
690
|
+
name="${mt(e)}"
|
690
691
|
length-unit="rem"
|
691
|
-
size="${
|
692
|
+
size="${xh(this.size)}"
|
692
693
|
></mdc-icon>
|
693
|
-
`}textTemplate(e){return
|
694
|
+
`}textTemplate(e){return F`
|
694
695
|
<mdc-text
|
695
|
-
type="${
|
696
|
+
type="${Eh(this.size)}"
|
696
697
|
tagname="span"
|
697
698
|
>
|
698
699
|
${e}
|
699
700
|
</mdc-text>
|
700
|
-
`}generateCounterText(e){return e<0?"0":e>
|
701
|
+
`}generateCounterText(e){return e<0?"0":e>nl?`${nl}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let s="";return e===me.TEXT&&this.initials&&(s=this.generateInitialsText(this.initials)),e===me.COUNTER&&(this.counter||this.counter===0)&&(s=this.generateCounterText(this.counter)),this.textTemplate(s)}getTypeBasedOnInputs(){return this.src?me.PHOTO:this.iconName?me.ICON:this.initials?me.TEXT:this.counter||this.counter===0?me.COUNTER:me.ICON}getTemplateBasedOnType(e){switch(e){case me.PHOTO:return this.photoTemplate();case me.TEXT:case me.COUNTER:return this.generateTextContent(e);case me.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?F`<div part="loading-wrapper"><div part="loader"></div></div>`:Z}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?Z:e===me.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():Z}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return F`
|
701
702
|
<div part="content" aria-hidden="true">
|
702
703
|
${this.getPhotoPlaceHolderContent(e)}
|
703
704
|
${this.getTemplateBasedOnType(e)}
|
704
705
|
${this.getLoadingContent()}
|
705
706
|
${this.getPresenceTemplateBasedOnType(e)}
|
706
707
|
</div>
|
707
|
-
`}};
|
708
|
+
`}};ds.styles=[...J.styles,...gh],y([At()],ds.prototype,"isPhotoLoaded",2);var ll=ds;var jf=[Et,W`
|
708
709
|
:host {
|
709
710
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
710
711
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -798,7 +799,7 @@
|
|
798
799
|
.mdc-presence-icon__scheduled {
|
799
800
|
color: var(--mdc-presence-scheduled-background-color);
|
800
801
|
}
|
801
|
-
`],
|
802
|
+
`],Th=jf;var Ah=l=>{switch(l){case le.AWAY:return"recents-presence-badge-filled";case le.AWAY_CALLING:return"away-calling-presence-filled";case le.BUSY:return"busy-presence-bold";case le.DND:return"dnd-presence-badge-filled";case le.MEETING:return"camera-filled";case le.ON_CALL:return"handset-filled";case le.ON_DEVICE:return"generic-device-video-badge-filled";case le.ON_MOBILE:return"phone-badge-filled";case le.PAUSE:return"pause-badge-filled";case le.PTO:return"pto-presence-filled";case le.PRESENTING:return"share-screen-badge-filled";case le.QUIET:return"quiet-hours-presence-filled";case le.SCHEDULED:return"meetings-presence-badge-filled";case le.ACTIVE:default:return"active-presence-small-filled"}};var gi=class extends J{constructor(){super(...arguments);this.type=lo.TYPE;this.size=lo.SIZE;this.currentIconType=lo.TYPE}get iconSize(){switch(this.size){case Kt.MIDSIZE:return 1.16125;case Kt.LARGE:return 1.30625;case Kt.X_LARGE:return 1.596875;case Kt.XX_LARGE:return 2.25;case Kt.XX_SMALL:case Kt.X_SMALL:case Kt.SMALL:default:return this.size=lo.SIZE,.875}}get icon(){let e=Ah(this.type);return e==="active-presence-small-filled"&&(this.type=lo.TYPE),e}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 F`
|
802
803
|
<div class="mdc-presence mdc-presence__${this.size}">
|
803
804
|
<mdc-icon
|
804
805
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -808,7 +809,7 @@
|
|
808
809
|
@error="${this.handleOnError}"
|
809
810
|
></mdc-icon>
|
810
811
|
</div>
|
811
|
-
`}};
|
812
|
+
`}};gi.styles=[...J.styles,...Th],y([A({type:String,reflect:!0})],gi.prototype,"type",2),y([A({type:String,reflect:!0})],gi.prototype,"size",2),y([At()],gi.prototype,"currentIconType",2);var cl=gi;cl.register(bh);var Wf=cl;ll.register(vh);var qf=ll;var bi=j.constructTagName("button"),re={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},hs={40:40,32:32,28:28,24:24},Xr={64:64,52:52,20:20,...hs},yi={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},co={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},_e={VARIANT:re.PRIMARY,SIZE:hs[32],COLOR:yi.DEFAULT,TYPE_INTERNAL:co.ICON,TYPE:io.BUTTON,INVERTED:!1};var Yf=[Et,W`
|
812
813
|
:host {
|
813
814
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
814
815
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
@@ -837,18 +838,18 @@
|
|
837
838
|
:host::part(presence) {
|
838
839
|
z-index: 2;
|
839
840
|
}
|
840
|
-
`,...
|
841
|
+
`,..._t()],_h=Yf;var ms=class extends Ca(Ae(Te)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=_e.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(Nt).includes(e)?`${e}`:no.SIZE.toString())}render(){return F`
|
841
842
|
<div part="overlay" aria-hidden="true"></div>
|
842
843
|
<mdc-avatar
|
843
844
|
?is-typing="${this.isTyping}"
|
844
|
-
counter="${
|
845
|
-
icon-name="${
|
846
|
-
initials="${
|
847
|
-
presence="${
|
848
|
-
size="${
|
849
|
-
src="${
|
845
|
+
counter="${mt(this.counter)}"
|
846
|
+
icon-name="${mt(this.iconName)}"
|
847
|
+
initials="${mt(this.initials)}"
|
848
|
+
presence="${mt(this.presence)}"
|
849
|
+
size="${mt(this.size)}"
|
850
|
+
src="${mt(this.src)}"
|
850
851
|
></mdc-avatar>
|
851
|
-
`}};
|
852
|
+
`}};ms.styles=[..._h],y([A({type:String,attribute:"aria-label"})],ms.prototype,"ariaLabel",2);var dl=ms;var Sh=j.constructTagName("avatarbutton");dl.register(Sh);var Kf=dl;var wa={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ps=l=>(...o)=>({_$litDirective$:l,values:o}),ho=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,e,s){this.t=o,this._$AM=e,this.i=s}_$AS(o,e){return this.update(o,e)}update(o,e){return this.render(...e)}};var mo=ps(class extends ho{constructor(l){var o;if(super(l),l.type!==wa.ATTRIBUTE||l.name!=="class"||((o=l.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(l){return" "+Object.keys(l).filter(o=>l[o]).join(" ")+" "}update(l,[o]){var s,n;if(this.st===void 0){this.st=new Set,l.strings!==void 0&&(this.nt=new Set(l.strings.join(" ").split(/\s/).filter(h=>h!=="")));for(let h in o)o[h]&&!((s=this.nt)!=null&&s.has(h))&&this.st.add(h);return this.render(o)}let e=l.element.classList;for(let h of this.st)h in o||(e.remove(h),this.st.delete(h));for(let h in o){let f=!!o[h];f===this.st.has(h)||(n=this.nt)!=null&&n.has(h)||(f?(e.add(h),this.st.add(h)):(e.remove(h),this.st.delete(h)))}return xr}});var kh=j.constructTagName("badge"),_r={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Ia={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},La={PRIMARY:"primary",SECONDARY:"secondary"},us={SUCCESS:"success",WARNING:"warning",ERROR:"error"},H_={...La,...us},Zr={TYPE:_r.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:La.PRIMARY,ICON_SIZE:1};var Xf=[Et,W`
|
852
853
|
:host {
|
853
854
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
854
855
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -917,21 +918,21 @@
|
|
917
918
|
outline: 0.125rem solid;
|
918
919
|
}
|
919
920
|
}
|
920
|
-
`],
|
921
|
+
`],Ch=Xf;var lr=class extends Ae(J){constructor(){super(...arguments);this.variant=Zr.VARIANT;this.maxCounter=Zr.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,s){return s===void 0||typeof s!="number"||e===0?"":s>e?`${e}+`:e>Zr.MAX_COUNTER_LIMIT||s>Zr.MAX_COUNTER_LIMIT?`${Zr.MAX_COUNTER_LIMIT}+`:s.toString()}getBadgeIcon(e,s){return F`
|
921
922
|
<mdc-icon
|
922
|
-
class="mdc-badge-icon ${
|
923
|
-
name="${
|
924
|
-
size="${
|
923
|
+
class="mdc-badge-icon ${mo({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${s}`]:!0})}"
|
924
|
+
name="${mt(e)}"
|
925
|
+
size="${Zr.ICON_SIZE}"
|
925
926
|
></mdc-icon>
|
926
|
-
`}getBadgeDot(){return
|
927
|
+
`}getBadgeDot(){return F`<div class="mdc-badge-dot ${mo({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return F`
|
927
928
|
<mdc-text
|
928
|
-
type="${
|
929
|
-
tagname="${
|
930
|
-
class="mdc-badge-text ${
|
929
|
+
type="${lt.BODY_SMALL_MEDIUM}"
|
930
|
+
tagname="${xt.DIV}"
|
931
|
+
class="mdc-badge-text ${mo({"mdc-badge-overlay":this.overlay})}"
|
931
932
|
>
|
932
933
|
${this.getCounterText(this.maxCounter,this.counter)}
|
933
934
|
</mdc-text>
|
934
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(
|
935
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(La).includes(this.variant)&&(this.variant=Zr.VARIANT);let{iconName:e,type:s,variant:n}=this;switch(s){case _r.ICON:return this.getBadgeIcon(e||"",n);case _r.COUNTER:return this.getBadgeCounterText();case _r.SUCCESS:return this.getBadgeIcon(Ia.SUCCESS_ICON_NAME,us.SUCCESS);case _r.WARNING:return this.getBadgeIcon(Ia.WARNING_ICON_NAME,us.WARNING);case _r.ERROR:return this.getBadgeIcon(Ia.ERROR_ICON_NAME,us.ERROR);case _r.DOT:default:return this.type=_r.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};lr.styles=[...J.styles,...Ch],y([A({type:String,reflect:!0})],lr.prototype,"type",2),y([A({type:String,reflect:!0})],lr.prototype,"variant",2),y([A({type:Number})],lr.prototype,"counter",2),y([A({type:Number,attribute:"max-counter",reflect:!0})],lr.prototype,"maxCounter",2),y([A({type:Boolean})],lr.prototype,"overlay",2),y([A({type:String,attribute:"aria-label"})],lr.prototype,"ariaLabel",2);var hl=lr;hl.register(kh);var Zf=hl;var Jf=W`
|
935
936
|
:host {
|
936
937
|
display: block;
|
937
938
|
height: 100%;
|
@@ -940,7 +941,7 @@
|
|
940
941
|
height: 100%;
|
941
942
|
width: 100%;
|
942
943
|
}
|
943
|
-
`,
|
944
|
+
`,wh=[Jf];var Ih=j.constructTagName("brandvisual"),Lh={NAME:void 0};var po=class extends J{constructor(){super(...arguments);this.name=Lh.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(e=>{this.handleBrandVisualLoadedSuccess(e.default())}).catch(e=>{this.handleBrandVisualLoadedFailure(e)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(e){super.updated(e),e.has("name")&&this.getBrandVisualData().catch(s=>{this.onerror&&this.onerror(s)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let s=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(s)}handleBrandVisualLoadedFailure(e){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(s)}render(){return F` ${this.brandVisualData} `}};po.styles=[...J.styles,...wh],y([At()],po.prototype,"brandVisualData",2),y([A({type:String,reflect:!0})],po.prototype,"name",2);var ml=po;ml.register(Ih);var Qf=ml;var tv=W`
|
944
945
|
:host {
|
945
946
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
946
947
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -961,7 +962,7 @@
|
|
961
962
|
:host([size="large"]) {
|
962
963
|
height: var(--mdc-bullet-size-large);
|
963
964
|
}
|
964
|
-
`,
|
965
|
+
`,Mh=[tv];var Nh=j.constructTagName("bullet"),Rh={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var fs=class extends J{constructor(){super(...arguments);this.size=Rh.SMALL}};fs.styles=[...J.styles,...Mh],y([A({type:String,reflect:!0})],fs.prototype,"size",2);var pl=fs;pl.register(Nh);var ev=pl;var Ma=l=>{class o extends l{constructor(){super(...arguments);this.variant=_e.VARIANT;this.color=_e.COLOR;this.typeInternal=_e.TYPE_INTERNAL}setVariant(n){this.setAttribute("variant",Object.values(re).includes(n)?n:_e.VARIANT)}setColor(n){!Object.values(yi).includes(n)||this.variant===re.TERTIARY?this.setAttribute("color",`${_e.COLOR}`):this.setAttribute("color",n)}setSize(n){let f=this.typeInternal===co.ICON?Object.values(Xr).includes(n)&&!(n===Xr[20]&&this.variant!==re.TERTIARY):Object.values(hs).includes(n);this.setAttribute("size",f?`${n}`:`${_e.SIZE}`)}inferButtonType(){var h,f;let n=(f=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"))==null?void 0:f.assignedNodes().filter(S=>{var M;return S.nodeType!==Node.TEXT_NODE||((M=S.textContent)==null?void 0:M.trim())}).length;n&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=co.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!n&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=co.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=co.PILL,this.setAttribute("data-btn-type","pill"))}}return y([A({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),y([A({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),y([A({type:String})],o.prototype,"variant",2),y([A({type:String})],o.prototype,"color",2),y([At()],o.prototype,"typeInternal",2),o};var rv=W`
|
965
966
|
:host {
|
966
967
|
background-color: transparent;
|
967
968
|
border-radius: 1.25rem;
|
@@ -1197,13 +1198,13 @@
|
|
1197
1198
|
--mdc-button-primary-disabled-background-color: var(--mds-color-theme-inverted-button-primary-disabled);
|
1198
1199
|
--mdc-button-primary-disabled-color: var(--mds-color-theme-inverted-text-primary-disabled);
|
1199
1200
|
}
|
1200
|
-
`,
|
1201
|
-
${this.prefixFilledIconName?
|
1201
|
+
`,Oh=[rv];var vs=l=>{let o=l.split("-"),e=["bold","filled","regular","light"];return o.filter(s=>!e.includes(s)).join("-")};var Sr=class extends Ma(Te){constructor(){super(...arguments);this.size=_e.SIZE;this.inverted=_e.INVERTED;this.role="button"}update(e){super.update(e),e.has("active")&&this.inferFilledIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(e){e?(this.prefixIcon&&(this.prefixFilledIconName=`${vs(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${vs(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return F`
|
1202
|
+
${this.prefixFilledIconName?F` <mdc-icon name="${this.prefixFilledIconName}"
|
1202
1203
|
part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
1203
1204
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1204
|
-
${this.postfixFilledIconName?
|
1205
|
+
${this.postfixFilledIconName?F` <mdc-icon name="${this.postfixFilledIconName}"
|
1205
1206
|
part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1206
|
-
`}};
|
1207
|
+
`}};Sr.styles=[...Te.styles,...Oh],y([A({type:Number})],Sr.prototype,"size",2),y([A({type:Boolean,reflect:!0})],Sr.prototype,"inverted",2),y([A({type:String,reflect:!0})],Sr.prototype,"role",2),y([At()],Sr.prototype,"prefixFilledIconName",2),y([At()],Sr.prototype,"postfixFilledIconName",2);var xi=Sr;xi.register(bi);var iv=xi;var Ph=j.constructTagName("linksimple"),ul={INLINE:!1,INVERTED:!1};var ov=[Et,W`
|
1207
1208
|
:host {
|
1208
1209
|
--mdc-link-border-radius: 0.25rem;
|
1209
1210
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
@@ -1270,15 +1271,15 @@
|
|
1270
1271
|
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
|
1271
1272
|
}
|
1272
1273
|
|
1273
|
-
`,...
|
1274
|
+
`,..._t()],Dh=ov;var kr=class extends Dt(ar(J)){constructor(){super(...arguments);this.inline=ul.INLINE;this.inverted=ul.INVERTED;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=e=>{if((e.type==="click"||e instanceof KeyboardEvent&&e.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation),this.addEventListener("keydown",this.handleNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation),this.removeEventListener("keydown",this.handleNavigation)}setDisabled(e){e?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return F`
|
1274
1275
|
<slot></slot>
|
1275
|
-
`}};
|
1276
|
-
${this.prefixIcon?
|
1276
|
+
`}};kr.styles=[...J.styles,...Dh],y([A({type:Boolean,reflect:!0})],kr.prototype,"inline",2),y([A({type:Boolean,reflect:!0})],kr.prototype,"inverted",2),y([A({type:String,reflect:!0})],kr.prototype,"href",2),y([A({type:String,reflect:!0})],kr.prototype,"target",2),y([A({type:String,reflect:!0})],kr.prototype,"rel",2);var Jr=kr;var uo=class extends Ma(Jr){constructor(){super(...arguments);this.size=_e.SIZE}setSoftDisabled(e,s){s?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}update(e){super.update(e),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}render(){return F`
|
1277
|
+
${this.prefixIcon?F` <mdc-icon name="${this.prefixIcon}"
|
1277
1278
|
part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
1278
1279
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1279
|
-
${this.postfixIcon?
|
1280
|
+
${this.postfixIcon?F` <mdc-icon name="${this.postfixIcon}"
|
1280
1281
|
part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1281
|
-
`}};
|
1282
|
+
`}};uo.styles=[...xi.styles],y([A({type:Number,reflect:!0})],uo.prototype,"size",2),y([A({type:Boolean,attribute:"soft-disabled",reflect:!0})],uo.prototype,"softDisabled",2);var fl=uo;var Fh=j.constructTagName("buttonlink");fl.register(Fh);var sv=fl;var av=W`
|
1282
1283
|
:host {
|
1283
1284
|
align-items: flex-start;
|
1284
1285
|
border-radius: 0.5rem;
|
@@ -1362,27 +1363,27 @@
|
|
1362
1363
|
margin-bottom: 0.5rem;
|
1363
1364
|
}
|
1364
1365
|
|
1365
|
-
`,
|
1366
|
+
`,zh=[Et,av];var Na=j.constructTagName("link"),Ra={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Oa={LARGE:1,MIDSIZE:.875,SMALL:.75},$h={LINK_SIZE:Ra.LARGE};var Vh=j.constructTagName("card"),vl={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},nv={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Xt={VARIANT:vl.BORDER,ORIENTATION:nv.VERTICAL,TITLE_TYPE:lt.HEADING_SMALL_BOLD,SUBTITLE_TYPE:lt.BODY_MIDSIZE_MEDIUM,TAGNAME:xt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Na,BUTTON:bi};var Pa=l=>{class o extends l{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=Xt.VARIANT;this.orientation=Xt.ORIENTATION;this.titleTagName=Xt.TAGNAME;this.subtitleTagName=Xt.TAGNAME}renderImage(){return this.imageSrc?F`<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />`:Z}renderIcon(){return this.iconName?F`<mdc-icon
|
1366
1367
|
part="icon"
|
1367
|
-
size="${
|
1368
|
-
length-unit="${
|
1368
|
+
size="${Xt.ICON_SIZE}"
|
1369
|
+
length-unit="${Xt.ICON_LENGTH_UNIT}"
|
1369
1370
|
name="${this.iconName}"
|
1370
|
-
></mdc-icon>`:
|
1371
|
-
<mdc-text part="title" type="${
|
1372
|
-
${this.subtitle?
|
1371
|
+
></mdc-icon>`:Z}renderTitle(){return F`<div part="title-container">
|
1372
|
+
<mdc-text part="title" type="${Xt.TITLE_TYPE}" tagname="${this.titleTagName}">${this.cardTitle}</mdc-text>
|
1373
|
+
${this.subtitle?F`<mdc-text part="subtitle" type="${Xt.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
|
1373
1374
|
>${this.subtitle}</mdc-text
|
1374
|
-
>`:
|
1375
|
-
</div>`}}return
|
1376
|
-
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(
|
1375
|
+
>`:Z}
|
1376
|
+
</div>`}}return y([A({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),y([A({type:String,reflect:!0})],o.prototype,"subtitle",2),y([A({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),y([A({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),y([A({type:String,reflect:!0})],o.prototype,"variant",2),y([A({type:String,reflect:!0})],o.prototype,"orientation",2),y([A({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),y([A({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),y([A({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var Da=l=>{class o extends l{updateFooterButtonColors(s){let n=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];n==null||n.forEach(h=>{s===vl.PROMOTIONAL?h.setAttribute("color",yi.PROMOTIONAL):h.setAttribute("color",yi.DEFAULT)})}handleFooterSlot(s,n){var f,S,M;let h=[];s===Xt.LINK&&((f=this.footerLink)!=null&&f.length)?h=this.footerLink:s===Xt.BUTTON&&n===re.PRIMARY&&((S=this.footerButtonPrimary)!=null&&S.length)?h=this.footerButtonPrimary:s===Xt.BUTTON&&n===re.SECONDARY&&((M=this.footerButtonSecondary)!=null&&M.length)&&(h=this.footerButtonSecondary);for(let B=1;B<h.length;B+=1)h[B].remove();h.forEach(B=>{B.matches(s)||B.remove(),n&&B.setAttribute("variant",n)})}renderFooter(){return F`<div part="footer">
|
1377
|
+
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(Xt.LINK)}></slot>
|
1377
1378
|
<slot name="footer-button-secondary"
|
1378
|
-
@slotchange=${()=>this.handleFooterSlot(
|
1379
|
+
@slotchange=${()=>this.handleFooterSlot(Xt.BUTTON,re.SECONDARY)}></slot>
|
1379
1380
|
<slot name="footer-button-primary"
|
1380
|
-
@slotchange=${()=>this.handleFooterSlot(
|
1381
|
-
</div>`}}return
|
1381
|
+
@slotchange=${()=>this.handleFooterSlot(Xt.BUTTON,re.PRIMARY)}></slot>
|
1382
|
+
</div>`}}return y([Gt({slot:"footer-link"})],o.prototype,"footerLink",2),y([Gt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),y([Gt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var gs=class extends Pa(Da(J)){constructor(){super(...arguments);this.handleIconButtons=()=>{var e;if((e=this.iconButtons)==null||e.forEach(s=>{!s.matches(Xt.BUTTON)&&s.getAttribute("data-btn-type")!=="icon"?s.remove():(s.setAttribute("variant",re.TERTIARY),s.setAttribute("size","32"))}),this.iconButtons&&this.iconButtons.length>3)for(let s=3;s<this.iconButtons.length;s+=1)this.iconButtons[s].remove()}}update(e){super.update(e),e.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return this.cardTitle?F`<div part="header">
|
1382
1383
|
${this.renderIcon()}
|
1383
1384
|
${this.renderTitle()}
|
1384
1385
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
1385
|
-
</div>`:
|
1386
|
+
</div>`:Z}render(){return F`
|
1386
1387
|
${this.renderImage()}
|
1387
1388
|
<div part="body">
|
1388
1389
|
${this.renderHeader()}
|
@@ -1391,7 +1392,7 @@
|
|
1391
1392
|
<slot name="after-body"></slot>
|
1392
1393
|
${this.renderFooter()}
|
1393
1394
|
</div>
|
1394
|
-
`}};
|
1395
|
+
`}};gs.styles=[...J.styles,...zh],y([Gt({slot:"icon-button"})],gs.prototype,"iconButtons",2);var Xe=gs;Xe.register(Vh);var lv=Xe;var cv=W`
|
1395
1396
|
:host {
|
1396
1397
|
cursor: pointer;
|
1397
1398
|
user-select: none;
|
@@ -1413,10 +1414,10 @@
|
|
1413
1414
|
:host([disabled])::part(image){
|
1414
1415
|
opacity: 0.5;
|
1415
1416
|
}
|
1416
|
-
`,
|
1417
|
+
`,Bh=[cv,..._t()];var Fa=class extends Pa(Te){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?F`<div part="header">
|
1417
1418
|
${this.renderIcon()}
|
1418
1419
|
${this.renderTitle()}
|
1419
|
-
</div>`:
|
1420
|
+
</div>`:Z}render(){return F`
|
1420
1421
|
${this.renderImage()}
|
1421
1422
|
<div part="body">
|
1422
1423
|
${this.renderHeader()}
|
@@ -1424,7 +1425,7 @@
|
|
1424
1425
|
<slot name="body"></slot>
|
1425
1426
|
<slot name="after-body"></slot>
|
1426
1427
|
</div>
|
1427
|
-
`}};
|
1428
|
+
`}};Fa.styles=[...Xe.styles,...Bh];var gl=Fa;var Uh=j.constructTagName("cardbutton");gl.register(Uh);var dv=gl;var hv=W`
|
1428
1429
|
:host {
|
1429
1430
|
cursor: pointer;
|
1430
1431
|
user-select: none;
|
@@ -1481,16 +1482,16 @@
|
|
1481
1482
|
:host([disabled])::part(check-icon){
|
1482
1483
|
color: var(--mds-color-theme-text-primary-disabled);
|
1483
1484
|
}
|
1484
|
-
`,
|
1485
|
-
size="${
|
1486
|
-
length-unit="${
|
1487
|
-
name="${e}"></mdc-icon>`;case
|
1485
|
+
`,Hh=[hv,..._t()];var Gh=j.constructTagName("cardcheckbox"),bl={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},za={CHECK:"check",CHECKBOX:"checkbox"},$a={SELECTION_TYPE:za.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var jt={BUTTON:"button",CHECKBOX:"checkbox",GROUP:"group",LIST:"list",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",RADIO:"radio",RADIOGROUP:"radiogroup",TOOLTIP:"tooltip"};var fo=class extends Dt(ar(Xe)){constructor(){super();this.checked=!1;this.selectionType=$a.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=jt.CHECKBOX}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderSelection(){let e=this.checked?bl.CHECKED:bl.DEFAULT;switch(this.selectionType){case za.CHECK:return F`<mdc-icon part="check check-icon"
|
1486
|
+
size="${$a.ICON_SIZE}"
|
1487
|
+
length-unit="${$a.ICON_LENGTH_UNIT}"
|
1488
|
+
name="${e}"></mdc-icon>`;case za.CHECKBOX:return F`<mdc-staticcheckbox part="check"
|
1488
1489
|
?checked="${this.checked}"
|
1489
|
-
?disabled="${this.disabled}"></mdc-staticcheckbox>`;default:return
|
1490
|
+
?disabled="${this.disabled}"></mdc-staticcheckbox>`;default:return Z}}renderHeader(){return this.cardTitle?F`<div part="header">
|
1490
1491
|
${this.renderIcon()}
|
1491
1492
|
${this.renderTitle()}
|
1492
1493
|
${this.renderSelection()}
|
1493
|
-
</div>`:
|
1494
|
+
</div>`:Z}render(){return F`
|
1494
1495
|
${this.renderImage()}
|
1495
1496
|
<div part="body">
|
1496
1497
|
${this.renderHeader()}
|
@@ -1498,7 +1499,7 @@
|
|
1498
1499
|
<slot name="body"></slot>
|
1499
1500
|
<slot name="after-body"></slot>
|
1500
1501
|
</div>
|
1501
|
-
`}};
|
1502
|
+
`}};fo.styles=[...Xe.styles,...Hh],y([A({type:Boolean,reflect:!0})],fo.prototype,"checked",2),y([A({type:String,attribute:"selection-type",reflect:!0})],fo.prototype,"selectionType",2);var yl=fo;var mv=[W`
|
1502
1503
|
:host{
|
1503
1504
|
margin: 0.125rem 0;
|
1504
1505
|
border-radius: 0.125rem;
|
@@ -1555,15 +1556,15 @@
|
|
1555
1556
|
border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
|
1556
1557
|
}
|
1557
1558
|
}
|
1558
|
-
`],
|
1559
|
+
`],jh=mv;var Wh=j.constructTagName("checkbox"),Va={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var qh=j.constructTagName("staticcheckbox");var vo=class extends Dt(J){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let e=this.checked||this.indeterminate?F`
|
1559
1560
|
<mdc-icon
|
1560
1561
|
class="icon"
|
1561
|
-
name="${this.indeterminate?
|
1562
|
+
name="${this.indeterminate?Va.INDETERMINATE:Va.CHECKED}"
|
1562
1563
|
size="1"
|
1563
1564
|
length-unit="rem"
|
1564
1565
|
></mdc-icon>
|
1565
|
-
`:
|
1566
|
-
<div part="icon-container">${e}</div>`}};
|
1566
|
+
`:Z;return F`<slot></slot>
|
1567
|
+
<div part="icon-container">${e}</div>`}};vo.styles=[...J.styles,...jh],y([A({type:Boolean,reflect:!0})],vo.prototype,"checked",2),y([A({type:Boolean,reflect:!0})],vo.prototype,"indeterminate",2);var xl=vo;xl.register(qh);var pv=xl;yl.register(Gh);var uv=yl;var fv=W`
|
1567
1568
|
:host {
|
1568
1569
|
cursor: pointer;
|
1569
1570
|
user-select: none;
|
@@ -1616,13 +1617,13 @@
|
|
1616
1617
|
:host([disabled])::part(image){
|
1617
1618
|
opacity: 0.5;
|
1618
1619
|
}
|
1619
|
-
`,
|
1620
|
+
`,Yh=[fv,..._t()];var go=class extends Dt(ar(Xe)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=jt.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled)return;this.getAllCardsWithinSameGroup().forEach(s=>{s.checked=!1}),this.checked=!0}setDisabled(e){this.setAttribute("aria-disabled",`${e}`),this.tabIndex=e?-1:0}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(e,s){e[s].focus(),e[s].toggleChecked()}toggleOnEnter(e){if(this.disabled)return;let n=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),h=n.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let f=(h+1)%n.length;this.updateCardRadio(n,f)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let f=(h-1+n.length)%n.length;this.updateCardRadio(n,f)}e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderHeader(){return this.cardTitle?F`<div part="header">
|
1620
1621
|
${this.renderIcon()}
|
1621
1622
|
${this.renderTitle()}
|
1622
1623
|
<mdc-staticradio part="check"
|
1623
1624
|
?checked="${this.checked}"
|
1624
1625
|
?disabled="${this.disabled}"></mdc-staticradio>
|
1625
|
-
</div>`:
|
1626
|
+
</div>`:Z}render(){return F`
|
1626
1627
|
${this.renderImage()}
|
1627
1628
|
<div part="body">
|
1628
1629
|
${this.renderHeader()}
|
@@ -1630,7 +1631,7 @@
|
|
1630
1631
|
<slot name="body"></slot>
|
1631
1632
|
<slot name="after-body"></slot>
|
1632
1633
|
</div>
|
1633
|
-
`}};
|
1634
|
+
`}};go.styles=[...Xe.styles,...Yh],y([A({type:Boolean,reflect:!0})],go.prototype,"checked",2),y([A({type:String})],go.prototype,"name",2);var El=go;var Ba=j.constructTagName("cardradio");var vv=[W`
|
1634
1635
|
:host{
|
1635
1636
|
display: block;
|
1636
1637
|
position: relative;
|
@@ -1713,9 +1714,9 @@
|
|
1713
1714
|
:host([readonly][checked]) .icon:after{
|
1714
1715
|
background-color: var(--mdc-staticradio-text-disabled-color);
|
1715
1716
|
}
|
1716
|
-
`],
|
1717
|
+
`],Kh=vv;var bo=class extends Dt(J){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return F`
|
1717
1718
|
<slot></slot>
|
1718
|
-
<span part="radio-icon" class="icon"></span>`}};
|
1719
|
+
<span part="radio-icon" class="icon"></span>`}};bo.styles=[...J.styles,...Kh],y([A({type:Boolean,reflect:!0})],bo.prototype,"checked",2),y([A({type:Boolean,reflect:!0})],bo.prototype,"readonly",2);var Tl=bo;var Xh=j.constructTagName("staticradio");Tl.register(Xh);var gv=Tl;El.register(Ba);var bv=El;var Bt=l=>{class o extends l{constructor(){super(...arguments);this.dataAriaLabel=null}}return y([A({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var ie=[];for(let l=0;l<256;++l)ie.push((l+256).toString(16).slice(1));function Zh(l,o=0){return(ie[l[o+0]]+ie[l[o+1]]+ie[l[o+2]]+ie[l[o+3]]+"-"+ie[l[o+4]]+ie[l[o+5]]+"-"+ie[l[o+6]]+ie[l[o+7]]+"-"+ie[l[o+8]]+ie[l[o+9]]+"-"+ie[l[o+10]]+ie[l[o+11]]+ie[l[o+12]]+ie[l[o+13]]+ie[l[o+14]]+ie[l[o+15]]).toLowerCase()}var Al,yv=new Uint8Array(16);function _l(){if(!Al){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Al=crypto.getRandomValues.bind(crypto)}return Al(yv)}var xv=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Sl={randomUUID:xv};function Ev(l,o,e){var n,h,f;if(Sl.randomUUID&&!o&&!l)return Sl.randomUUID();l=l||{};let s=(f=(h=l.random)!=null?h:(n=l.rng)==null?void 0:n.call(l))!=null?f:_l();if(s.length<16)throw new Error("Random bytes length must be >= 16");if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,o){if(e=e||0,e<0||e+16>o.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let S=0;S<16;++S)o[e+S]=s[S];return o}return Zh(s)}var Cr=Ev;var Se=l=>{class o extends l{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}connectedCallback(){super.connectedCallback(),this.id=`mdc-input-${Cr()}`}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,y([A({reflect:!0,type:String})],o.prototype,"name",2),y([A({reflect:!0,type:String})],o.prototype,"value",2),y([A({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),y([Tr("input")],o.prototype,"inputElement",2),o};var Jh=j.constructTagName("formfieldwrapper"),Zt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},zt={VALIDATION:Zt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},Ei={TAGNAME:xt.SPAN,TYPE:lt.BODY_MIDSIZE_REGULAR,HEADER_TYPE:lt.BODY_MIDSIZE_BOLD};var Tv=[Et,W`
|
1719
1720
|
:host {
|
1720
1721
|
flex-direction: column;
|
1721
1722
|
align-items: flex-start;
|
@@ -1768,33 +1769,33 @@
|
|
1768
1769
|
:host([help-text-type='priority']) .mdc-help-text {
|
1769
1770
|
color: var(--mds-color-theme-text-accent-normal);
|
1770
1771
|
}
|
1771
|
-
`],
|
1772
|
-
id="${
|
1773
|
-
tagname="${
|
1774
|
-
type="${
|
1772
|
+
`],Qh=Tv;var tm=l=>({[Zt.ERROR]:"error-legacy-badge-filled",[Zt.WARNING]:"warning-badge-filled",[Zt.SUCCESS]:"check-circle-badge-filled",[Zt.PRIORITY]:"priority-badge-filled",[Zt.DEFAULT]:""})[l]||"";var wr=class extends Dt(J){constructor(){super(...arguments);this.id="";this.helpTextType=zt.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?F`<label for="${this.id}" id="${zt.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:F` <mdc-text
|
1773
|
+
id="${zt.HEADING_ID}"
|
1774
|
+
tagname="${Ei.TAGNAME}"
|
1775
|
+
type="${Ei.HEADER_TYPE}"
|
1775
1776
|
part="label"
|
1776
1777
|
>${this.label}</mdc-text
|
1777
|
-
>`:
|
1778
|
-
<mdc-text part="required-label" tagname=${
|
1778
|
+
>`:Z}renderRequiredLabel(){return this.requiredLabel?F`
|
1779
|
+
<mdc-text part="required-label" tagname=${Ei.TAGNAME} type=${Ei.TYPE}>
|
1779
1780
|
(${this.requiredLabel})
|
1780
1781
|
</mdc-text>
|
1781
|
-
`:
|
1782
|
+
`:Z}renderHelpTextIcon(){if(!this.helpText)return Z;let e=tm(this.helpTextType||zt.VALIDATION);return e&&!this.disabled?F`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:Z}renderHelpText(){return this.helpText?F`
|
1782
1783
|
<mdc-text
|
1783
|
-
id="${
|
1784
|
+
id="${zt.HELPER_TEXT_ID}"
|
1784
1785
|
part="help-text"
|
1785
|
-
tagname=${
|
1786
|
-
type=${
|
1786
|
+
tagname=${Ei.TAGNAME}
|
1787
|
+
type=${Ei.TYPE}
|
1787
1788
|
>
|
1788
1789
|
${this.helpText}
|
1789
1790
|
</mdc-text>
|
1790
|
-
`:
|
1791
|
+
`:Z}renderLabel(){return this.label?F`<div class="mdc-label-text" part="label-text">
|
1791
1792
|
<slot name="label">${this.renderLabelElement()}</slot>
|
1792
1793
|
<slot name="required-label">${this.renderRequiredLabel()}</slot>
|
1793
1794
|
<slot name="label-info"></slot>
|
1794
|
-
</div>`:
|
1795
|
+
</div>`:Z}renderHelperText(){return this.helpText?F`<div class="mdc-help-text" part="mdc-help-text">
|
1795
1796
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
1796
1797
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
1797
|
-
</div>`:
|
1798
|
+
</div>`:Z}};wr.styles=[...J.styles,...Qh],y([A({reflect:!0,type:String})],wr.prototype,"label",2),y([A({type:String,reflect:!0,attribute:"required-label"})],wr.prototype,"requiredLabel",2),y([A({type:String})],wr.prototype,"id",2),y([A({reflect:!0,attribute:"help-text-type"})],wr.prototype,"helpTextType",2),y([A({type:String,reflect:!0,attribute:"help-text"})],wr.prototype,"helpText",2);var pe=wr;var Av=[W`
|
1798
1799
|
:host {
|
1799
1800
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
1800
1801
|
--mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
|
@@ -1861,10 +1862,10 @@
|
|
1861
1862
|
}
|
1862
1863
|
|
1863
1864
|
|
1864
|
-
`,...
|
1865
|
+
`,..._t(!0)],em=Av;var Ti=class extends Se(Bt(pe)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?F`<div class="text-container">
|
1865
1866
|
${this.renderLabel()}
|
1866
1867
|
${this.renderHelperText()}
|
1867
|
-
</div>`:
|
1868
|
+
</div>`:Z}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var s;e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}handleChange(e){this.toggleState();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var e;return F`
|
1868
1869
|
<mdc-staticcheckbox
|
1869
1870
|
class="mdc-focus-ring"
|
1870
1871
|
?checked="${this.checked}"
|
@@ -1875,8 +1876,8 @@
|
|
1875
1876
|
type="checkbox"
|
1876
1877
|
class="input"
|
1877
1878
|
?autofocus="${this.autofocus}"
|
1878
|
-
name="${
|
1879
|
-
value="${
|
1879
|
+
name="${mt(this.name)}"
|
1880
|
+
value="${mt(this.value)}"
|
1880
1881
|
?required="${!!this.requiredLabel}"
|
1881
1882
|
.checked="${this.checked}"
|
1882
1883
|
aria-checked="${this.indeterminate?"mixed":this.checked}"
|
@@ -1884,13 +1885,13 @@
|
|
1884
1885
|
.disabled="${this.disabled}"
|
1885
1886
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
1886
1887
|
tabindex="${this.disabled?-1:0}"
|
1887
|
-
aria-describedby="${
|
1888
|
+
aria-describedby="${mt(this.helpText?zt.HELPER_TEXT_ID:"")}"
|
1888
1889
|
@change=${this.handleChange}
|
1889
1890
|
@keydown=${this.handleKeyDown}
|
1890
1891
|
/>
|
1891
1892
|
</mdc-staticcheckbox>
|
1892
1893
|
${this.renderLabelAndHelperText()}
|
1893
|
-
`}};
|
1894
|
+
`}};Ti.styles=[...pe.styles,...em],y([A({type:Boolean,reflect:!0})],Ti.prototype,"checked",2),y([A({type:Boolean,reflect:!0})],Ti.prototype,"indeterminate",2),y([A({type:Boolean,reflect:!0})],Ti.prototype,"autofocus",2);var kl=Ti;kl.register(Wh);var _v=kl;var Sv=W`
|
1894
1895
|
:host {
|
1895
1896
|
height: 1.5rem;
|
1896
1897
|
gap: 0.25rem;
|
@@ -2027,15 +2028,15 @@
|
|
2027
2028
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2028
2029
|
cursor: auto;
|
2029
2030
|
}
|
2030
|
-
`,
|
2031
|
+
`,rm=[Et,Sv,..._t()];var im=j.constructTagName("chip"),kv={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},yo={COLOR:kv.DEFAULT,TEXT_TYPE:lt.BODY_MIDSIZE_REGULAR,TAG_NAME:xt.SPAN,SIZE:ss[24],ROLE:"button"};var xo=class extends Ae(Te){constructor(){super(...arguments);this.color=yo.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=yo.ROLE,this.size=yo.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?F`
|
2031
2032
|
<mdc-icon
|
2032
2033
|
name="${this.iconName}"
|
2033
2034
|
length-unit="rem"
|
2034
2035
|
size="1"></mdc-icon>
|
2035
|
-
`:
|
2036
|
+
`:Z}render(){return F`
|
2036
2037
|
${this.renderIcon()}
|
2037
|
-
<mdc-text type="${
|
2038
|
-
`}};xr.styles=[...v.styles,...al],n([l({type:String,reflect:!0})],xr.prototype,"color",2),n([l({type:String})],xr.prototype,"label",2);var Er=xr;Er.register(sl);var Tm=Er;var De=Math.min,ie=Math.max,ro=Math.round,oo=Math.floor,Se=i=>({x:i,y:i}),Am={left:"right",right:"left",bottom:"top",top:"bottom"},Sm={start:"end",end:"start"};function ai(i,t,e){return ie(i,De(t,e))}function Lt(i,t){return typeof i=="function"?i(t):i}function Ze(i){return i.split("-")[0]}function _t(i){return i.split("-")[1]}function Sa(i){return i==="x"?"y":"x"}function si(i){return i==="y"?"height":"width"}function pt(i){return["top","bottom"].includes(Ze(i))?"y":"x"}function ni(i){return Sa(pt(i))}function nl(i,t,e){e===void 0&&(e=!1);let r=_t(i),o=ni(i),a=si(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=to(s)),[s,to(s)]}function ll(i){let t=to(i);return[ii(i),t,ii(t)]}function ii(i){return i.replace(/start|end/g,t=>Sm[t])}function Im(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function cl(i,t,e,r){let o=_t(i),a=Im(Ze(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(ii)))),a}function to(i){return i.replace(/left|right|bottom|top/g,t=>Am[t])}function Cm(i){return{top:0,right:0,bottom:0,left:0,...i}}function Ia(i){return typeof i!="number"?Cm(i):{top:i,right:i,bottom:i,left:i}}function Rt(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function dl(i,t,e){let{reference:r,floating:o}=i,a=pt(t),s=ni(t),c=si(s),d=Ze(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[c]/2-o[c]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:b};break;case"left":y={x:r.x-o.width,y:b};break;default:y={x:r.x,y:r.y}}switch(_t(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var ml=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,c=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:b}=dl(p,r,d),x=r,y={},T=0;for(let S=0;S<c.length;S++){let{name:k,fn:I}=c[S],{x:w,y:O,data:Y,reset:z}=await I({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=w!=null?w:h,b=O!=null?O:b,y={...y,[k]:{...y[k],...Y}},z&&T<=50&&(T++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:b}=dl(p,x,d)),S=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function li(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:c,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=Lt(t,i),T=Ia(y),k=c[x?b==="floating"?"reference":"floating":b],I=Rt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(k)))==null||e?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:d})),w=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),Y=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},z=Rt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:O,strategy:d}):w);return{top:(I.top-z.top+T.top)/Y.y,bottom:(z.bottom-I.bottom+T.bottom)/Y.y,left:(I.left-z.left+T.left)/Y.x,right:(z.right-I.right+T.right)/Y.x}}var pl=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=Lt(i,t)||{};if(p==null)return{};let b=Ia(h),x={x:e,y:r},y=ni(o),T=si(y),S=await s.getDimensions(p),k=y==="y",I=k?"top":"left",w=k?"bottom":"right",O=k?"clientHeight":"clientWidth",Y=a.reference[T]+a.reference[y]-x[y]-a.floating[T],z=x[y]-a.reference[y],fe=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),xe=fe?fe[O]:0;(!xe||!await(s.isElement==null?void 0:s.isElement(fe)))&&(xe=c.floating[O]||a.floating[T]);let $e=Y/2-z/2,Ne=xe/2-S[T]/2-1,Ee=De(b[I],Ne),rt=De(b[w],Ne),Le=Ee,ot=xe-S[T]-rt,te=xe/2-S[T]/2+$e,Jt=ai(Le,te,ot),ze=!d.arrow&&_t(o)!=null&&te!==Jt&&a.reference[T]/2-(te<Le?Ee:rt)-S[T]/2<0,_e=ze?te<Le?te-Le:te-ot:0;return{[y]:x[y]+_e,data:{[y]:Jt,centerOffset:te-Jt-_e,...ze&&{alignmentOffset:_e}},reset:ze}}});var hl=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:S=!0,...k}=Lt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let I=Ze(o),w=pt(c),O=Ze(c)===c,Y=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(O||!S?[to(c)]:ll(c)),fe=T!=="none";!x&&fe&&z.push(...cl(c,S,T,Y));let xe=[c,...z],$e=await li(t,k),Ne=[],Ee=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Ne.push($e[I]),b){let te=nl(o,s,Y);Ne.push($e[te[0]],$e[te[1]])}if(Ee=[...Ee,{placement:o,overflows:Ne}],!Ne.every(te=>te<=0)){var rt,Le;let te=(((rt=a.flip)==null?void 0:rt.index)||0)+1,Jt=xe[te];if(Jt)return{data:{index:te,overflows:Ee},reset:{placement:Jt}};let ze=(Le=Ee.filter(_e=>_e.overflows[0]<=0).sort((_e,it)=>_e.overflows[1]-it.overflows[1])[0])==null?void 0:Le.placement;if(!ze)switch(y){case"bestFit":{var ot;let _e=(ot=Ee.filter(it=>{if(fe){let at=pt(it.placement);return at===w||at==="y"}return!0}).map(it=>[it.placement,it.overflows.filter(at=>at>0).reduce((at,cd)=>at+cd,0)]).sort((it,at)=>it[1]-at[1])[0])==null?void 0:ot[0];_e&&(ze=_e);break}case"initialPlacement":ze=c;break}if(o!==ze)return{reset:{placement:ze}}}return{}}}};async function km(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(e),c=_t(e),d=pt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=Lt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return c&&typeof T=="number"&&(y=c==="end"?T*-1:T),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var ul=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:c}=t,d=await km(t,i);return s===((e=c.offset)==null?void 0:e.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},fl=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:k=>{let{x:I,y:w}=k;return{x:I,y:w}}},...d}=Lt(i,t),p={x:e,y:r},h=await li(t,d),b=pt(Ze(o)),x=Sa(b),y=p[x],T=p[b];if(a){let k=x==="y"?"top":"left",I=x==="y"?"bottom":"right",w=y+h[k],O=y-h[I];y=ai(w,y,O)}if(s){let k=b==="y"?"top":"left",I=b==="y"?"bottom":"right",w=T+h[k],O=T-h[I];T=ai(w,T,O)}let S=c.fn({...t,[x]:y,[b]:T});return{...S,data:{x:S.x-e,y:S.y-r,enabled:{[x]:a,[b]:s}}}}}};var bl=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:c}=t,{apply:d=()=>{},...p}=Lt(i,t),h=await li(t,p),b=Ze(o),x=_t(o),y=pt(o)==="y",{width:T,height:S}=a.floating,k,I;b==="top"||b==="bottom"?(k=b,I=x===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(I=b,k=x==="end"?"top":"bottom");let w=S-h.top-h.bottom,O=T-h.left-h.right,Y=De(S-h[k],w),z=De(T-h[I],O),fe=!t.middlewareData.shift,xe=Y,$e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&($e=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(xe=w),fe&&!x){let Ee=ie(h.left,0),rt=ie(h.right,0),Le=ie(h.top,0),ot=ie(h.bottom,0);y?$e=T-2*(Ee!==0||rt!==0?Ee+rt:ie(h.left,h.right)):xe=S-2*(Le!==0||ot!==0?Le+ot:ie(h.top,h.bottom))}await d({...t,availableWidth:$e,availableHeight:xe});let Ne=await s.getDimensions(c.floating);return T!==Ne.width||S!==Ne.height?{reset:{rects:!0}}:{}}}};function ci(){return typeof window<"u"}function Ot(i){return vl(i)?(i.nodeName||"").toLowerCase():"#document"}function de(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(i){var t;return(t=(vl(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function vl(i){return ci()?i instanceof Node||i instanceof de(i).Node:!1}function be(i){return ci()?i instanceof Element||i instanceof de(i).Element:!1}function Ce(i){return ci()?i instanceof HTMLElement||i instanceof de(i).HTMLElement:!1}function gl(i){return!ci()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof de(i).ShadowRoot}function Ar(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=ge(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function yl(i){return["table","td","th"].includes(Ot(i))}function io(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function di(i){let t=mi(),e=be(i)?ge(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function xl(i){let t=Xe(i);for(;Ce(t)&&!Mt(t);){if(di(t))return t;if(io(t))return null;t=Xe(t)}return null}function mi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mt(i){return["html","body","#document"].includes(Ot(i))}function ge(i){return de(i).getComputedStyle(i)}function ao(i){return be(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Xe(i){if(Ot(i)==="html")return i;let t=i.assignedSlot||i.parentNode||gl(i)&&i.host||Ie(i);return gl(t)?t.host:t}function El(i){let t=Xe(i);return Mt(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ce(t)&&Ar(t)?t:El(t)}function Tr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=El(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=de(o);if(a){let c=pi(s);return t.concat(s,s.visualViewport||[],Ar(o)?o:[],c&&e?Tr(c):[])}return t.concat(o,Tr(o,[],e))}function pi(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Sl(i){let t=ge(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ce(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,c=ro(e)!==a||ro(r)!==s;return c&&(e=a,r=s),{width:e,height:r,$:c}}function ka(i){return be(i)?i:i.contextElement}function Sr(i){let t=ka(i);if(!Ce(t))return Se(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=Sl(t),s=(a?ro(e.width):e.width)/r,c=(a?ro(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var wm=Se(0);function Il(i){let t=de(i);return!mi()||!t.visualViewport?wm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nm(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==de(i)?!1:t}function Dt(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=ka(i),s=Se(1);t&&(r?be(r)&&(s=Sr(r)):s=Sr(i));let c=Nm(a,e,r)?Il(a):Se(0),d=(o.left+c.x)/s.x,p=(o.top+c.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=de(a),y=r&&be(r)?de(r):r,T=x,S=pi(T);for(;S&&r&&y!==T;){let k=Sr(S),I=S.getBoundingClientRect(),w=ge(S),O=I.left+(S.clientLeft+parseFloat(w.paddingLeft))*k.x,Y=I.top+(S.clientTop+parseFloat(w.paddingTop))*k.y;d*=k.x,p*=k.y,h*=k.x,b*=k.y,d+=O,p+=Y,T=de(S),S=pi(T)}}return Rt({width:h,height:b,x:d,y:p})}function wa(i,t){let e=ao(i).scrollLeft;return t?t.left+e:Dt(Ie(i)).left+e}function Cl(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:wa(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Lm(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=Ie(r),c=t?io(t.floating):!1;if(r===s||c&&a)return e;let d={scrollLeft:0,scrollTop:0},p=Se(1),h=Se(0),b=Ce(r);if((b||!b&&!a)&&((Ot(r)!=="body"||Ar(s))&&(d=ao(r)),Ce(r))){let y=Dt(r);p=Sr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?Cl(s,d,!0):Se(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function _m(i){return Array.from(i.getClientRects())}function Rm(i){let t=Ie(i),e=ao(i),r=i.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+wa(i),c=-e.scrollTop;return ge(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Om(i,t){let e=de(i),r=Ie(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,c=0,d=0;if(o){a=o.width,s=o.height;let p=mi();(!p||p&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:c,y:d}}function Mm(i,t){let e=Dt(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ce(i)?Sr(i):Se(1),s=i.clientWidth*a.x,c=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:c,x:d,y:p}}function Tl(i,t,e){let r;if(t==="viewport")r=Om(i,e);else if(t==="document")r=Rm(Ie(i));else if(be(t))r=Mm(t,e);else{let o=Il(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rt(r)}function kl(i,t){let e=Xe(i);return e===t||!be(e)||Mt(e)?!1:ge(e).position==="fixed"||kl(e,t)}function Dm(i,t){let e=t.get(i);if(e)return e;let r=Tr(i,[],!1).filter(c=>be(c)&&Ot(c)!=="body"),o=null,a=ge(i).position==="fixed",s=a?Xe(i):i;for(;be(s)&&!Mt(s);){let c=ge(s),d=di(s);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ar(s)&&!d&&kl(i,s))?r=r.filter(h=>h!==s):o=c,s=Xe(s)}return t.set(i,r),r}function $m(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?io(t)?[]:Dm(t,this._c):[].concat(e),r],c=s[0],d=s.reduce((p,h)=>{let b=Tl(t,h,o);return p.top=ie(b.top,p.top),p.right=De(b.right,p.right),p.bottom=De(b.bottom,p.bottom),p.left=ie(b.left,p.left),p},Tl(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function zm(i){let{width:t,height:e}=Sl(i);return{width:t,height:e}}function Pm(i,t,e){let r=Ce(t),o=Ie(t),a=e==="fixed",s=Dt(i,!0,a,t),c={scrollLeft:0,scrollTop:0},d=Se(0);if(r||!r&&!a)if((Ot(t)!=="body"||Ar(o))&&(c=ao(t)),r){let x=Dt(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=wa(o));let p=o&&!r&&!a?Cl(o,c):Se(0),h=s.left+c.scrollLeft-d.x-p.x,b=s.top+c.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function Ca(i){return ge(i).position==="static"}function Al(i,t){if(!Ce(i)||ge(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return Ie(i)===e&&(e=e.ownerDocument.body),e}function wl(i,t){let e=de(i);if(io(i))return e;if(!Ce(i)){let o=Xe(i);for(;o&&!Mt(o);){if(be(o)&&!Ca(o))return o;o=Xe(o)}return e}let r=Al(i,t);for(;r&&yl(r)&&Ca(r);)r=Al(r,t);return r&&Mt(r)&&Ca(r)&&!di(r)?e:r||xl(i)||e}var Um=async function(i){let t=this.getOffsetParent||wl,e=this.getDimensions,r=await e(i.floating);return{reference:Pm(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vm(i){return ge(i).direction==="rtl"}var Fm={convertOffsetParentRelativeRectToViewportRelativeRect:Lm,getDocumentElement:Ie,getClippingRect:$m,getOffsetParent:wl,getElementRects:Um,getClientRects:_m,getDimensions:zm,getScale:Sr,isElement:be,isRTL:Vm};function Bm(i,t){let e=null,r,o=Ie(i);function a(){var c;clearTimeout(r),(c=e)==null||c.disconnect(),e=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(c||t(),!b||!x)return;let y=oo(h),T=oo(o.clientWidth-(p+b)),S=oo(o.clientHeight-(h+x)),k=oo(p),w={rootMargin:-y+"px "+-T+"px "+-S+"px "+-k+"px",threshold:ie(0,De(1,d))||1},O=!0;function Y(z){let fe=z[0].intersectionRatio;if(fe!==d){if(!O)return s();fe?s(!1,fe):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O=!1}try{e=new IntersectionObserver(Y,{...w,root:o.ownerDocument})}catch{e=new IntersectionObserver(Y,w)}e.observe(i)}return s(!0),a}function Nl(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=ka(i),h=o||a?[...p?Tr(p):[],...Tr(t)]:[];h.forEach(I=>{o&&I.addEventListener("scroll",e,{passive:!0}),a&&I.addEventListener("resize",e)});let b=p&&c?Bm(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(I=>{let[w]=I;w&&w.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let T,S=d?Dt(i):null;d&&k();function k(){let I=Dt(i);S&&(I.x!==S.x||I.y!==S.y||I.width!==S.width||I.height!==S.height)&&e(),S=I,T=requestAnimationFrame(k)}return e(),()=>{var I;h.forEach(w=>{o&&w.removeEventListener("scroll",e),a&&w.removeEventListener("resize",e)}),b==null||b(),(I=y)==null||I.disconnect(),y=null,d&&cancelAnimationFrame(T)}}var Ll=ul;var _l=fl,Rl=hl,Ol=bl;var Ml=pl;var Dl=(i,t,e)=>{let r=new Map,o={platform:Fm,...e},a={...o.platform,_c:r};return ml(i,t,{...o,platform:a})};var hi=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=!1;this.enabledPreventScroll=!1;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:c,offsetHeight:d}=o;return c+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:c}=o.style;return a==="none"||s==="0"||c==="hidden"||c==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(c=>{let d=c;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,c=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return c?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let c=this.focusableElements[this.focusTrapIndex];c&&c.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([l({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([l({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var $l=f.constructTagName("popover"),ae={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"},$t={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},so={TONAL:"tonal",CONTRAST:"contrast"},D={PLACEMENT:ae.BOTTOM,TRIGGER:$t.CLICK,COLOR:so.TONAL,OFFSET:4,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,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var zt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var Na=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},Pt=new Na;var Hm=u`
|
2038
|
+
<mdc-text type="${yo.TEXT_TYPE}" tagname="${yo.TAG_NAME}">${this.label}</mdc-text>
|
2039
|
+
`}};xo.styles=[...J.styles,...rm],y([A({type:String,reflect:!0})],xo.prototype,"color",2),y([A({type:String})],xo.prototype,"label",2);var Eo=xo;Eo.register(im);var Cv=Eo;var cr=Math.min,ue=Math.max,ys=Math.round,xs=Math.floor,Ze=l=>({x:l,y:l}),wv={left:"right",right:"left",bottom:"top",top:"bottom"},Iv={start:"end",end:"start"};function Ha(l,o,e){return ue(l,cr(o,e))}function Ai(l,o){return typeof l=="function"?l(o):l}function Ir(l){return l.split("-")[0]}function _i(l){return l.split("-")[1]}function Cl(l){return l==="x"?"y":"x"}function Ga(l){return l==="y"?"height":"width"}function Qr(l){return["top","bottom"].includes(Ir(l))?"y":"x"}function ja(l){return Cl(Qr(l))}function om(l,o,e){e===void 0&&(e=!1);let s=_i(l),n=ja(l),h=Ga(n),f=n==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return o.reference[h]>o.floating[h]&&(f=bs(f)),[f,bs(f)]}function sm(l){let o=bs(l);return[Ua(l),o,Ua(o)]}function Ua(l){return l.replace(/start|end/g,o=>Iv[o])}function Lv(l,o,e){let s=["left","right"],n=["right","left"],h=["top","bottom"],f=["bottom","top"];switch(l){case"top":case"bottom":return e?o?n:s:o?s:n;case"left":case"right":return o?h:f;default:return[]}}function am(l,o,e,s){let n=_i(l),h=Lv(Ir(l),e==="start",s);return n&&(h=h.map(f=>f+"-"+n),o&&(h=h.concat(h.map(Ua)))),h}function bs(l){return l.replace(/left|right|bottom|top/g,o=>wv[o])}function Mv(l){return{top:0,right:0,bottom:0,left:0,...l}}function wl(l){return typeof l!="number"?Mv(l):{top:l,right:l,bottom:l,left:l}}function Si(l){let{x:o,y:e,width:s,height:n}=l;return{width:s,height:n,top:e,left:o,right:o+s,bottom:e+n,x:o,y:e}}function nm(l,o,e){let{reference:s,floating:n}=l,h=Qr(o),f=ja(o),S=Ga(f),M=Ir(o),B=h==="y",G=s.x+s.width/2-n.width/2,q=s.y+s.height/2-n.height/2,ot=s[S]/2-n[S]/2,Q;switch(M){case"top":Q={x:G,y:s.y-n.height};break;case"bottom":Q={x:G,y:s.y+s.height};break;case"right":Q={x:s.x+s.width,y:q};break;case"left":Q={x:s.x-n.width,y:q};break;default:Q={x:s.x,y:s.y}}switch(_i(o)){case"start":Q[f]-=ot*(e&&B?-1:1);break;case"end":Q[f]+=ot*(e&&B?-1:1);break}return Q}var lm=async(l,o,e)=>{let{placement:s="bottom",strategy:n="absolute",middleware:h=[],platform:f}=e,S=h.filter(Boolean),M=await(f.isRTL==null?void 0:f.isRTL(o)),B=await f.getElementRects({reference:l,floating:o,strategy:n}),{x:G,y:q}=nm(B,s,M),ot=s,Q={},et=0;for(let ct=0;ct<S.length;ct++){let{name:bt,fn:gt}=S[ct],{x:yt,y:St,data:$t,reset:Mt}=await gt({x:G,y:q,initialPlacement:s,placement:ot,strategy:n,middlewareData:Q,rects:B,platform:f,elements:{reference:l,floating:o}});G=yt!=null?yt:G,q=St!=null?St:q,Q={...Q,[bt]:{...Q[bt],...$t}},Mt&&et<=50&&(et++,typeof Mt=="object"&&(Mt.placement&&(ot=Mt.placement),Mt.rects&&(B=Mt.rects===!0?await f.getElementRects({reference:l,floating:o,strategy:n}):Mt.rects),{x:G,y:q}=nm(B,ot,M)),ct=-1)}return{x:G,y:q,placement:ot,strategy:n,middlewareData:Q}};async function Wa(l,o){var e;o===void 0&&(o={});let{x:s,y:n,platform:h,rects:f,elements:S,strategy:M}=l,{boundary:B="clippingAncestors",rootBoundary:G="viewport",elementContext:q="floating",altBoundary:ot=!1,padding:Q=0}=Ai(o,l),et=wl(Q),bt=S[ot?q==="floating"?"reference":"floating":q],gt=Si(await h.getClippingRect({element:(e=await(h.isElement==null?void 0:h.isElement(bt)))==null||e?bt:bt.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(S.floating)),boundary:B,rootBoundary:G,strategy:M})),yt=q==="floating"?{x:s,y:n,width:f.floating.width,height:f.floating.height}:f.reference,St=await(h.getOffsetParent==null?void 0:h.getOffsetParent(S.floating)),$t=await(h.isElement==null?void 0:h.isElement(St))?await(h.getScale==null?void 0:h.getScale(St))||{x:1,y:1}:{x:1,y:1},Mt=Si(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:S,rect:yt,offsetParent:St,strategy:M}):yt);return{top:(gt.top-Mt.top+et.top)/$t.y,bottom:(Mt.bottom-gt.bottom+et.bottom)/$t.y,left:(gt.left-Mt.left+et.left)/$t.x,right:(Mt.right-gt.right+et.right)/$t.x}}var cm=l=>({name:"arrow",options:l,async fn(o){let{x:e,y:s,placement:n,rects:h,platform:f,elements:S,middlewareData:M}=o,{element:B,padding:G=0}=Ai(l,o)||{};if(B==null)return{};let q=wl(G),ot={x:e,y:s},Q=ja(n),et=Ga(Q),ct=await f.getDimensions(B),bt=Q==="y",gt=bt?"top":"left",yt=bt?"bottom":"right",St=bt?"clientHeight":"clientWidth",$t=h.reference[et]+h.reference[Q]-ot[Q]-h.floating[et],Mt=ot[Q]-h.reference[Q],Pt=await(f.getOffsetParent==null?void 0:f.getOffsetParent(B)),ve=Pt?Pt[St]:0;(!ve||!await(f.isElement==null?void 0:f.isElement(Pt)))&&(ve=S.floating[St]||h.floating[et]);let Qt=$t/2-Mt/2,Ue=ve/2-ct[et]/2-1,we=cr(q[gt],Ue),Re=cr(q[yt],Ue),He=we,Ge=ve-ct[et]-Re,Tt=ve/2-ct[et]/2+Qt,de=Ha(He,Tt,Ge),Oe=!M.arrow&&_i(n)!=null&&Tt!==de&&h.reference[et]/2-(Tt<He?we:Re)-ct[et]/2<0,je=Oe?Tt<He?Tt-He:Tt-Ge:0;return{[Q]:ot[Q]+je,data:{[Q]:de,centerOffset:Tt-de-je,...Oe&&{alignmentOffset:je}},reset:Oe}}});var dm=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(o){var e,s;let{placement:n,middlewareData:h,rects:f,initialPlacement:S,platform:M,elements:B}=o,{mainAxis:G=!0,crossAxis:q=!0,fallbackPlacements:ot,fallbackStrategy:Q="bestFit",fallbackAxisSideDirection:et="none",flipAlignment:ct=!0,...bt}=Ai(l,o);if((e=h.arrow)!=null&&e.alignmentOffset)return{};let gt=Ir(n),yt=Qr(S),St=Ir(S)===S,$t=await(M.isRTL==null?void 0:M.isRTL(B.floating)),Mt=ot||(St||!ct?[bs(S)]:sm(S)),Pt=et!=="none";!ot&&Pt&&Mt.push(...am(S,ct,et,$t));let ve=[S,...Mt],Qt=await Wa(o,bt),Ue=[],we=((s=h.flip)==null?void 0:s.overflows)||[];if(G&&Ue.push(Qt[gt]),q){let Tt=om(n,f,$t);Ue.push(Qt[Tt[0]],Qt[Tt[1]])}if(we=[...we,{placement:n,overflows:Ue}],!Ue.every(Tt=>Tt<=0)){var Re,He;let Tt=(((Re=h.flip)==null?void 0:Re.index)||0)+1,de=ve[Tt];if(de)return{data:{index:Tt,overflows:we},reset:{placement:de}};let Oe=(He=we.filter(je=>je.overflows[0]<=0).sort((je,dr)=>je.overflows[1]-dr.overflows[1])[0])==null?void 0:He.placement;if(!Oe)switch(Q){case"bestFit":{var Ge;let je=(Ge=we.filter(dr=>{if(Pt){let Pe=Qr(dr.placement);return Pe===yt||Pe==="y"}return!0}).map(dr=>[dr.placement,dr.overflows.filter(Pe=>Pe>0).reduce((Pe,Bs)=>Pe+Bs,0)]).sort((dr,Pe)=>dr[1]-Pe[1])[0])==null?void 0:Ge[0];je&&(Oe=je);break}case"initialPlacement":Oe=S;break}if(n!==Oe)return{reset:{placement:Oe}}}return{}}}};async function Nv(l,o){let{placement:e,platform:s,elements:n}=l,h=await(s.isRTL==null?void 0:s.isRTL(n.floating)),f=Ir(e),S=_i(e),M=Qr(e)==="y",B=["left","top"].includes(f)?-1:1,G=h&&M?-1:1,q=Ai(o,l),{mainAxis:ot,crossAxis:Q,alignmentAxis:et}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return S&&typeof et=="number"&&(Q=S==="end"?et*-1:et),M?{x:Q*G,y:ot*B}:{x:ot*B,y:Q*G}}var hm=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(o){var e,s;let{x:n,y:h,placement:f,middlewareData:S}=o,M=await Nv(o,l);return f===((e=S.offset)==null?void 0:e.placement)&&(s=S.arrow)!=null&&s.alignmentOffset?{}:{x:n+M.x,y:h+M.y,data:{...M,placement:f}}}}},mm=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(o){let{x:e,y:s,placement:n}=o,{mainAxis:h=!0,crossAxis:f=!1,limiter:S={fn:bt=>{let{x:gt,y:yt}=bt;return{x:gt,y:yt}}},...M}=Ai(l,o),B={x:e,y:s},G=await Wa(o,M),q=Qr(Ir(n)),ot=Cl(q),Q=B[ot],et=B[q];if(h){let bt=ot==="y"?"top":"left",gt=ot==="y"?"bottom":"right",yt=Q+G[bt],St=Q-G[gt];Q=Ha(yt,Q,St)}if(f){let bt=q==="y"?"top":"left",gt=q==="y"?"bottom":"right",yt=et+G[bt],St=et-G[gt];et=Ha(yt,et,St)}let ct=S.fn({...o,[ot]:Q,[q]:et});return{...ct,data:{x:ct.x-e,y:ct.y-s,enabled:{[ot]:h,[q]:f}}}}}};var pm=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(o){var e,s;let{placement:n,rects:h,platform:f,elements:S}=o,{apply:M=()=>{},...B}=Ai(l,o),G=await Wa(o,B),q=Ir(n),ot=_i(n),Q=Qr(n)==="y",{width:et,height:ct}=h.floating,bt,gt;q==="top"||q==="bottom"?(bt=q,gt=ot===(await(f.isRTL==null?void 0:f.isRTL(S.floating))?"start":"end")?"left":"right"):(gt=q,bt=ot==="end"?"top":"bottom");let yt=ct-G.top-G.bottom,St=et-G.left-G.right,$t=cr(ct-G[bt],yt),Mt=cr(et-G[gt],St),Pt=!o.middlewareData.shift,ve=$t,Qt=Mt;if((e=o.middlewareData.shift)!=null&&e.enabled.x&&(Qt=St),(s=o.middlewareData.shift)!=null&&s.enabled.y&&(ve=yt),Pt&&!ot){let we=ue(G.left,0),Re=ue(G.right,0),He=ue(G.top,0),Ge=ue(G.bottom,0);Q?Qt=et-2*(we!==0||Re!==0?we+Re:ue(G.left,G.right)):ve=ct-2*(He!==0||Ge!==0?He+Ge:ue(G.top,G.bottom))}await M({...o,availableWidth:Qt,availableHeight:ve});let Ue=await f.getDimensions(S.floating);return et!==Ue.width||ct!==Ue.height?{reset:{rects:!0}}:{}}}};function qa(){return typeof window<"u"}function ki(l){return fm(l)?(l.nodeName||"").toLowerCase():"#document"}function ke(l){var o;return(l==null||(o=l.ownerDocument)==null?void 0:o.defaultView)||window}function Je(l){var o;return(o=(fm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:o.documentElement}function fm(l){return qa()?l instanceof Node||l instanceof ke(l).Node:!1}function ze(l){return qa()?l instanceof Element||l instanceof ke(l).Element:!1}function Qe(l){return qa()?l instanceof HTMLElement||l instanceof ke(l).HTMLElement:!1}function um(l){return!qa()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof ke(l).ShadowRoot}function Ao(l){let{overflow:o,overflowX:e,overflowY:s,display:n}=$e(l);return/auto|scroll|overlay|hidden|clip/.test(o+s+e)&&!["inline","contents"].includes(n)}function vm(l){return["table","td","th"].includes(ki(l))}function Es(l){return[":popover-open",":modal"].some(o=>{try{return l.matches(o)}catch{return!1}})}function Ya(l){let o=Ka(),e=ze(l)?$e(l):l;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!o&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!o&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(e.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(e.contain||"").includes(s))}function gm(l){let o=Lr(l);for(;Qe(o)&&!Ci(o);){if(Ya(o))return o;if(Es(o))return null;o=Lr(o)}return null}function Ka(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ci(l){return["html","body","#document"].includes(ki(l))}function $e(l){return ke(l).getComputedStyle(l)}function Ts(l){return ze(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Lr(l){if(ki(l)==="html")return l;let o=l.assignedSlot||l.parentNode||um(l)&&l.host||Je(l);return um(o)?o.host:o}function bm(l){let o=Lr(l);return Ci(o)?l.ownerDocument?l.ownerDocument.body:l.body:Qe(o)&&Ao(o)?o:bm(o)}function To(l,o,e){var s;o===void 0&&(o=[]),e===void 0&&(e=!0);let n=bm(l),h=n===((s=l.ownerDocument)==null?void 0:s.body),f=ke(n);if(h){let S=Xa(f);return o.concat(f,f.visualViewport||[],Ao(n)?n:[],S&&e?To(S):[])}return o.concat(n,To(n,[],e))}function Xa(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function Em(l){let o=$e(l),e=parseFloat(o.width)||0,s=parseFloat(o.height)||0,n=Qe(l),h=n?l.offsetWidth:e,f=n?l.offsetHeight:s,S=ys(e)!==h||ys(s)!==f;return S&&(e=h,s=f),{width:e,height:s,$:S}}function Ll(l){return ze(l)?l:l.contextElement}function _o(l){let o=Ll(l);if(!Qe(o))return Ze(1);let e=o.getBoundingClientRect(),{width:s,height:n,$:h}=Em(o),f=(h?ys(e.width):e.width)/s,S=(h?ys(e.height):e.height)/n;return(!f||!Number.isFinite(f))&&(f=1),(!S||!Number.isFinite(S))&&(S=1),{x:f,y:S}}var Rv=Ze(0);function Tm(l){let o=ke(l);return!Ka()||!o.visualViewport?Rv:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Ov(l,o,e){return o===void 0&&(o=!1),!e||o&&e!==ke(l)?!1:o}function wi(l,o,e,s){o===void 0&&(o=!1),e===void 0&&(e=!1);let n=l.getBoundingClientRect(),h=Ll(l),f=Ze(1);o&&(s?ze(s)&&(f=_o(s)):f=_o(l));let S=Ov(h,e,s)?Tm(h):Ze(0),M=(n.left+S.x)/f.x,B=(n.top+S.y)/f.y,G=n.width/f.x,q=n.height/f.y;if(h){let ot=ke(h),Q=s&&ze(s)?ke(s):s,et=ot,ct=Xa(et);for(;ct&&s&&Q!==et;){let bt=_o(ct),gt=ct.getBoundingClientRect(),yt=$e(ct),St=gt.left+(ct.clientLeft+parseFloat(yt.paddingLeft))*bt.x,$t=gt.top+(ct.clientTop+parseFloat(yt.paddingTop))*bt.y;M*=bt.x,B*=bt.y,G*=bt.x,q*=bt.y,M+=St,B+=$t,et=ke(ct),ct=Xa(et)}}return Si({width:G,height:q,x:M,y:B})}function Ml(l,o){let e=Ts(l).scrollLeft;return o?o.left+e:wi(Je(l)).left+e}function Am(l,o,e){e===void 0&&(e=!1);let s=l.getBoundingClientRect(),n=s.left+o.scrollLeft-(e?0:Ml(l,s)),h=s.top+o.scrollTop;return{x:n,y:h}}function Pv(l){let{elements:o,rect:e,offsetParent:s,strategy:n}=l,h=n==="fixed",f=Je(s),S=o?Es(o.floating):!1;if(s===f||S&&h)return e;let M={scrollLeft:0,scrollTop:0},B=Ze(1),G=Ze(0),q=Qe(s);if((q||!q&&!h)&&((ki(s)!=="body"||Ao(f))&&(M=Ts(s)),Qe(s))){let Q=wi(s);B=_o(s),G.x=Q.x+s.clientLeft,G.y=Q.y+s.clientTop}let ot=f&&!q&&!h?Am(f,M,!0):Ze(0);return{width:e.width*B.x,height:e.height*B.y,x:e.x*B.x-M.scrollLeft*B.x+G.x+ot.x,y:e.y*B.y-M.scrollTop*B.y+G.y+ot.y}}function Dv(l){return Array.from(l.getClientRects())}function Fv(l){let o=Je(l),e=Ts(l),s=l.ownerDocument.body,n=ue(o.scrollWidth,o.clientWidth,s.scrollWidth,s.clientWidth),h=ue(o.scrollHeight,o.clientHeight,s.scrollHeight,s.clientHeight),f=-e.scrollLeft+Ml(l),S=-e.scrollTop;return $e(s).direction==="rtl"&&(f+=ue(o.clientWidth,s.clientWidth)-n),{width:n,height:h,x:f,y:S}}function zv(l,o){let e=ke(l),s=Je(l),n=e.visualViewport,h=s.clientWidth,f=s.clientHeight,S=0,M=0;if(n){h=n.width,f=n.height;let B=Ka();(!B||B&&o==="fixed")&&(S=n.offsetLeft,M=n.offsetTop)}return{width:h,height:f,x:S,y:M}}function $v(l,o){let e=wi(l,!0,o==="fixed"),s=e.top+l.clientTop,n=e.left+l.clientLeft,h=Qe(l)?_o(l):Ze(1),f=l.clientWidth*h.x,S=l.clientHeight*h.y,M=n*h.x,B=s*h.y;return{width:f,height:S,x:M,y:B}}function ym(l,o,e){let s;if(o==="viewport")s=zv(l,e);else if(o==="document")s=Fv(Je(l));else if(ze(o))s=$v(o,e);else{let n=Tm(l);s={x:o.x-n.x,y:o.y-n.y,width:o.width,height:o.height}}return Si(s)}function _m(l,o){let e=Lr(l);return e===o||!ze(e)||Ci(e)?!1:$e(e).position==="fixed"||_m(e,o)}function Vv(l,o){let e=o.get(l);if(e)return e;let s=To(l,[],!1).filter(S=>ze(S)&&ki(S)!=="body"),n=null,h=$e(l).position==="fixed",f=h?Lr(l):l;for(;ze(f)&&!Ci(f);){let S=$e(f),M=Ya(f);!M&&S.position==="fixed"&&(n=null),(h?!M&&!n:!M&&S.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ao(f)&&!M&&_m(l,f))?s=s.filter(G=>G!==f):n=S,f=Lr(f)}return o.set(l,s),s}function Bv(l){let{element:o,boundary:e,rootBoundary:s,strategy:n}=l,f=[...e==="clippingAncestors"?Es(o)?[]:Vv(o,this._c):[].concat(e),s],S=f[0],M=f.reduce((B,G)=>{let q=ym(o,G,n);return B.top=ue(q.top,B.top),B.right=cr(q.right,B.right),B.bottom=cr(q.bottom,B.bottom),B.left=ue(q.left,B.left),B},ym(o,S,n));return{width:M.right-M.left,height:M.bottom-M.top,x:M.left,y:M.top}}function Uv(l){let{width:o,height:e}=Em(l);return{width:o,height:e}}function Hv(l,o,e){let s=Qe(o),n=Je(o),h=e==="fixed",f=wi(l,!0,h,o),S={scrollLeft:0,scrollTop:0},M=Ze(0);if(s||!s&&!h)if((ki(o)!=="body"||Ao(n))&&(S=Ts(o)),s){let ot=wi(o,!0,h,o);M.x=ot.x+o.clientLeft,M.y=ot.y+o.clientTop}else n&&(M.x=Ml(n));let B=n&&!s&&!h?Am(n,S):Ze(0),G=f.left+S.scrollLeft-M.x-B.x,q=f.top+S.scrollTop-M.y-B.y;return{x:G,y:q,width:f.width,height:f.height}}function Il(l){return $e(l).position==="static"}function xm(l,o){if(!Qe(l)||$e(l).position==="fixed")return null;if(o)return o(l);let e=l.offsetParent;return Je(l)===e&&(e=e.ownerDocument.body),e}function Sm(l,o){let e=ke(l);if(Es(l))return e;if(!Qe(l)){let n=Lr(l);for(;n&&!Ci(n);){if(ze(n)&&!Il(n))return n;n=Lr(n)}return e}let s=xm(l,o);for(;s&&vm(s)&&Il(s);)s=xm(s,o);return s&&Ci(s)&&Il(s)&&!Ya(s)?e:s||gm(l)||e}var Gv=async function(l){let o=this.getOffsetParent||Sm,e=this.getDimensions,s=await e(l.floating);return{reference:Hv(l.reference,await o(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function jv(l){return $e(l).direction==="rtl"}var Wv={convertOffsetParentRelativeRectToViewportRelativeRect:Pv,getDocumentElement:Je,getClippingRect:Bv,getOffsetParent:Sm,getElementRects:Gv,getClientRects:Dv,getDimensions:Uv,getScale:_o,isElement:ze,isRTL:jv};function qv(l,o){let e=null,s,n=Je(l);function h(){var S;clearTimeout(s),(S=e)==null||S.disconnect(),e=null}function f(S,M){S===void 0&&(S=!1),M===void 0&&(M=1),h();let{left:B,top:G,width:q,height:ot}=l.getBoundingClientRect();if(S||o(),!q||!ot)return;let Q=xs(G),et=xs(n.clientWidth-(B+q)),ct=xs(n.clientHeight-(G+ot)),bt=xs(B),yt={rootMargin:-Q+"px "+-et+"px "+-ct+"px "+-bt+"px",threshold:ue(0,cr(1,M))||1},St=!0;function $t(Mt){let Pt=Mt[0].intersectionRatio;if(Pt!==M){if(!St)return f();Pt?f(!1,Pt):s=setTimeout(()=>{f(!1,1e-7)},1e3)}St=!1}try{e=new IntersectionObserver($t,{...yt,root:n.ownerDocument})}catch{e=new IntersectionObserver($t,yt)}e.observe(l)}return f(!0),h}function km(l,o,e,s){s===void 0&&(s={});let{ancestorScroll:n=!0,ancestorResize:h=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:S=typeof IntersectionObserver=="function",animationFrame:M=!1}=s,B=Ll(l),G=n||h?[...B?To(B):[],...To(o)]:[];G.forEach(gt=>{n&>.addEventListener("scroll",e,{passive:!0}),h&>.addEventListener("resize",e)});let q=B&&S?qv(B,e):null,ot=-1,Q=null;f&&(Q=new ResizeObserver(gt=>{let[yt]=gt;yt&&yt.target===B&&Q&&(Q.unobserve(o),cancelAnimationFrame(ot),ot=requestAnimationFrame(()=>{var St;(St=Q)==null||St.observe(o)})),e()}),B&&!M&&Q.observe(B),Q.observe(o));let et,ct=M?wi(l):null;M&&bt();function bt(){let gt=wi(l);ct&&(gt.x!==ct.x||gt.y!==ct.y||gt.width!==ct.width||gt.height!==ct.height)&&e(),ct=gt,et=requestAnimationFrame(bt)}return e(),()=>{var gt;G.forEach(yt=>{n&&yt.removeEventListener("scroll",e),h&&yt.removeEventListener("resize",e)}),q==null||q(),(gt=Q)==null||gt.disconnect(),Q=null,M&&cancelAnimationFrame(et)}}var Cm=hm;var wm=mm,Im=dm,Lm=pm;var Mm=cm;var Nm=(l,o,e)=>{let s=new Map,n={platform:Wv,...e},h={...n.platform,_c:s};return lm(l,o,{...n,platform:h})};var Za=l=>{class o extends l{constructor(...n){super(...n);this.enabledFocusTrap=!1;this.enabledPreventScroll=!1;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(n){return n.getClientRects().length===0}hasZeroDimensions(n){let{width:h,height:f}=n.getBoundingClientRect(),{offsetWidth:S,offsetHeight:M}=n;return S+M+f+h===0}isNotVisible(n){return this.hasZeroDimensions(n)||this.hasNoClientRects(n)}hasHiddenStyle(n){let{display:h,opacity:f,visibility:S}=n.style;return h==="none"||f==="0"||S==="hidden"||S==="collapse"}hasComputedHidden(n){let h=getComputedStyle(n);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(n){return n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(n)||this.isNotVisible(n)||this.hasComputedHidden(n)}isNotTabbable(n){return n.getAttribute("tabindex")==="-1"}isInteractiveElement(n){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(n.tagName)||n instanceof HTMLAnchorElement&&n.hasAttribute("href")||n instanceof HTMLInputElement&&n.type!=="hidden"||(n instanceof HTMLAudioElement||n instanceof HTMLVideoElement)&&n.hasAttribute("controls")||(n instanceof HTMLImageElement||n instanceof HTMLObjectElement)&&n.hasAttribute("usemap")||n.hasAttribute("tabindex")&&n.tabIndex>-1)}isFocusable(n){return this.isHidden(n)||this.isNotTabbable(n)?!1:this.isInteractiveElement(n)}findFocusable(n,h=new Set){return n instanceof HTMLElement&&this.isFocusable(n)&&h.add(n),Array.from(n.children).forEach(S=>{let M=S;this.isFocusable(M)&&h.add(M),M.shadowRoot?this.findFocusable(M.shadowRoot,h):M.tagName==="SLOT"?M.assignedElements({flatten:!0}).forEach(G=>{G instanceof HTMLElement&&this.findFocusable(G,h)}):this.findFocusable(M,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(n=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[n]&&(this.focusTrapIndex=n,this.focusableElements[n].focus()))}calculateNextIndex(n,h){let{length:f}=this.focusableElements,S=this.shouldWrapFocus();if(n===-1)return h>0?0:f-1;let M=n+h;return S?(M<0&&(M=f-1),M>=f&&(M=0)):(M<0&&(M=0),M>=f&&(M=f-1)),M}getDeepActiveElement(){var h;let n=document.activeElement||document.body;for(;n instanceof HTMLElement&&((h=n.shadowRoot)!=null&&h.activeElement);)n=n.shadowRoot.activeElement;return n||document.body}findElement(n){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(n,h))}isEqualFocusNode(n,h){return n.nodeType>=0?h.isEqualNode(n)&&h===n:!1}trapFocus(n){if(this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),f=this.findElement(h);n?this.focusTrapIndex=this.calculateNextIndex(f,-1):this.focusTrapIndex=this.calculateNextIndex(f,1);let S=this.focusableElements[this.focusTrapIndex];S&&S.focus()}handleKeydown(n){!this.enabledFocusTrap||!this.focusableElements.length||n.key==="Tab"&&(n.preventDefault(),this.trapFocus(n.shiftKey))}}return y([A({type:Boolean})],o.prototype,"enabledFocusTrap",2),y([A({type:Boolean})],o.prototype,"enabledPreventScroll",2),o};var Rm=j.constructTagName("popover"),fe={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"},Ii={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},As={TONAL:"tonal",CONTRAST:"contrast"},Rt={PLACEMENT:fe.BOTTOM,TRIGGER:Ii.CLICK,COLOR:As.TONAL,OFFSET:4,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,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var Li=class{static dispatchPopoverEvent(o,e){e.dispatchEvent(new CustomEvent(o,{detail:{show:e.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)}};var Nl=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(e=>e!==o)}clear(){this.stack=[]}},Mi=new Nl;var Yv=W`
|
2039
2040
|
:host {
|
2040
2041
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
2041
2042
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -2150,7 +2151,7 @@
|
|
2150
2151
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
2151
2152
|
border-bottom-left-radius: 100%;
|
2152
2153
|
}
|
2153
|
-
`,
|
2154
|
+
`,Om=[Yv];var Ja=class{constructor(o){this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,e]=this.popover.delay.split(",").map(s=>{let n=parseInt(s,10);if(Number.isNaN(n)||n<0)throw new Error(`Invalid delay value: ${s}`);return n});return[o,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let s=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,n=this.popover.offsetHeight||0,h=this.popover.offsetWidth||0;if(e)switch(o.split("-")[0]){case"top":e.style.height=s,e.style.bottom=`calc(-1 * (${s}))`,e.style.left="50%",e.style.width=`${h}px`;break;case"left":e.style.height=`${n}px`,e.style.width=s,e.style.right=`calc(-1.5 * (${s}))`;break;case"right":e.style.height=`${n}px`,e.style.width=s,e.style.left=`calc(-0.5 * (${s}))`;break;case"bottom":default:e.style.height=s,e.style.top=`calc(-1 * (${s}))`,e.style.left="50%",e.style.width=`${h}px`;break}}setupAppendTo(){if(this.popover.appendTo){let o=document.getElementById(this.popover.appendTo);o&&o.appendChild(this.popover)}}setupAccessibility(){var o,e,s;(this.popover.role==="dialog"||this.popover.role==="alertdialog")&&this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive?(this.popover.setAttribute("aria-modal","true"),this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((s=this.popover.triggerElement)==null?void 0:s.id)||"")):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var o,e,s;this.popover.interactive?(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((o=this.popover.triggerElement)==null?void 0:o.getAttribute("aria-haspopup"))||"dialog"):(s=this.popover.triggerElement)==null||s.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var o,e;this.popover.disableAriaExpanded?(o=this.popover.triggerElement)==null||o.removeAttribute("aria-expanded"):(e=this.popover.triggerElement)==null||e.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(o,e){var G;if(!this.popover.arrowElement)return;let s=e.split("-")[0],n={top:"bottom",right:"left",bottom:"top",left:"right"}[s],{x:h,y:f}=o,S=this.popover.arrowElement.getBoundingClientRect(),M=(G=this.popover.arrowElement.offsetParent)==null?void 0:G.getBoundingClientRect();if(!this.arrowPixelChange){let q=M!=null&&M[n]?12-Math.abs(S[n]-M[n]):0;Math.round(q)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let B=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",s),Object.assign(this.popover.arrowElement.style,{left:h!=null?`${h}px`:"",top:f!=null?`${f}px`:"",[n]:`${-this.popover.arrowElement.offsetHeight/2-B}px`})}updatePopoverStyle(o,e){Object.assign(this.popover.style,{left:`${o}px`,top:`${e}px`})}createBackdrop(){var o;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(o=this.popover.parentElement)==null||o.appendChild(e);let s=document.createElement("style");s.textContent=`
|
2154
2155
|
.popover-backdrop {
|
2155
2156
|
position: fixed;
|
2156
2157
|
top: 0;
|
@@ -2160,21 +2161,21 @@
|
|
2160
2161
|
background: transparent;
|
2161
2162
|
z-index: ${this.popover.zIndex-1};
|
2162
2163
|
}
|
2163
|
-
`,e.appendChild(
|
2164
|
+
`,e.appendChild(s),this.popover.backdropElement=e}}};var wt=class extends Za(J){constructor(){super();this.id="";this.triggerID="";this.trigger=Rt.TRIGGER;this.placement=Rt.PLACEMENT;this.color=Rt.COLOR;this.visible=Rt.VISIBLE;this.offset=Rt.OFFSET;this.focusTrap=Rt.FOCUS_TRAP;this.preventScroll=Rt.PREVENT_SCROLL;this.showArrow=Rt.ARROW;this.closeButton=Rt.CLOSE_BUTTON;this.interactive=Rt.INTERACTIVE;this.delay=Rt.DELAY;this.hideOnEscape=Rt.HIDE_ON_ESCAPE;this.hideOnBlur=Rt.HIDE_ON_BLUR;this.hideOnOutsideClick=Rt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Rt.FOCUS_BACK;this.backdrop=Rt.BACKDROP;this.flip=Rt.FLIP;this.size=Rt.SIZE;this.zIndex=Rt.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=Rt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Rt.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(Mi.peek()!==this)return;let s=!1,n=e.composedPath();s=this.contains(e.target)||n.includes(this.triggerElement);let h=this.backdropElement?n.includes(this.backdropElement):!1;(!s||h)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{Mi.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Ja(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,Li.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),Li.onDestroyedPopover(this),Mi.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let s=e.get("visible")||!1;await this.isOpenUpdated(s,this.visible),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values(fe).includes(this.placement)?this.placement:Rt.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let n=this.trigger.split(" ").filter(h=>Object.values(Ii).includes(h));this.setAttribute("trigger",n.length>0?this.trigger:Rt.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(As).includes(this.color)?this.color:Rt.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility(),e.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),e.has("interactive")&&this.utils.updateAriaHasPopupAttribute()}async isOpenUpdated(e,s){var n,h,f;if(!(e===s||!this.triggerElement))if(s)Mi.peek()!==this&&Mi.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),Li.onShowPopover(this);else{if(Mi.pop(),this.backdropElement&&((n=this.backdropElement)==null||n.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(h=this.deactivateFocusTrap)==null||h.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){let S=this.triggerElement.getAttribute("aria-haspopup");(S==="dialog"||S==="alertdialog")&&this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&((f=this.triggerElement)==null||f.focus()),Li.onHidePopover(this)}}async handleCreatePopoverFirstUpdate(){var e,s;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(s=this.setInitialFocus)==null||s.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[wm()],s=this.offset;if(this.flip&&e.push(Im()),this.size){let n=this.renderRoot.querySelector('[part="popover-content"]');e.push(Lm({apply({availableHeight:h}){n&&Object.assign(n.style,{maxHeight:`${h}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let n=this.arrowElement.offsetHeight;s=Math.sqrt(2*n**2)/2+this.offset,e.push(Mm({element:this.arrowElement,padding:12}))}e.push(Cm(s)),km(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:n,y:h,middlewareData:f,placement:S}=await Nm(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(n,h),f.arrow&&this.arrowElement&&this.utils.updateArrowStyle(f.arrow,S),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(S)})}render(){return F`
|
2164
2165
|
<div class="popover-hover-bridge"></div>
|
2165
|
-
${this.closeButton?
|
2166
|
+
${this.closeButton?F` <mdc-button
|
2166
2167
|
class="popover-close"
|
2167
2168
|
prefix-icon="cancel-bold"
|
2168
2169
|
variant="tertiary"
|
2169
2170
|
size="20"
|
2170
|
-
aria-label=${
|
2171
|
+
aria-label=${mt(this.closeButtonAriaLabel)||""}
|
2171
2172
|
@click="${this.hidePopover}"
|
2172
|
-
></mdc-button>`:
|
2173
|
-
${this.showArrow?
|
2173
|
+
></mdc-button>`:Z}
|
2174
|
+
${this.showArrow?F`<div class="popover-arrow"></div>`:Z}
|
2174
2175
|
<div part="popover-content">
|
2175
2176
|
<slot></slot>
|
2176
2177
|
</div>
|
2177
|
-
`}};
|
2178
|
+
`}};wt.styles=[...J.styles,...Om],y([A({type:String,reflect:!0})],wt.prototype,"id",2),y([A({type:String,reflect:!0})],wt.prototype,"triggerID",2),y([A({type:String,reflect:!0})],wt.prototype,"trigger",2),y([A({type:String,reflect:!0})],wt.prototype,"placement",2),y([A({type:String,reflect:!0})],wt.prototype,"color",2),y([A({type:Boolean,reflect:!0})],wt.prototype,"visible",2),y([A({type:Number,reflect:!0})],wt.prototype,"offset",2),y([A({type:Boolean,reflect:!0,attribute:"focus-trap"})],wt.prototype,"focusTrap",2),y([A({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],wt.prototype,"preventScroll",2),y([A({type:Boolean,reflect:!0,attribute:"show-arrow"})],wt.prototype,"showArrow",2),y([A({type:Boolean,reflect:!0,attribute:"close-button"})],wt.prototype,"closeButton",2),y([A({type:Boolean,reflect:!0})],wt.prototype,"interactive",2),y([A({type:String,reflect:!0})],wt.prototype,"delay",2),y([A({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],wt.prototype,"hideOnEscape",2),y([A({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],wt.prototype,"hideOnBlur",2),y([A({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],wt.prototype,"hideOnOutsideClick",2),y([A({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],wt.prototype,"focusBackToTrigger",2),y([A({type:Boolean,reflect:!0})],wt.prototype,"backdrop",2),y([A({type:Boolean,reflect:!0})],wt.prototype,"flip",2),y([A({type:Boolean,reflect:!0})],wt.prototype,"size",2),y([A({type:Number,reflect:!0,attribute:"z-index"})],wt.prototype,"zIndex",2),y([A({type:String,reflect:!0,attribute:"append-to"})],wt.prototype,"appendTo",2),y([A({type:String,attribute:"close-button-aria-label",reflect:!0})],wt.prototype,"closeButtonAriaLabel",2),y([A({type:String,reflect:!0})],wt.prototype,"role",2),y([A({type:String,reflect:!0,attribute:"aria-labelledby"})],wt.prototype,"ariaLabelledby",2),y([A({type:String,reflect:!0,attribute:"aria-describedby"})],wt.prototype,"ariaDescribedby",2),y([A({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],wt.prototype,"disableAriaExpanded",2);var tr=wt;var Pm=j.constructTagName("coachmark"),Ni={COLOR:As.CONTRAST,TRIGGER:Ii.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Ri=class extends tr{constructor(){super(...arguments);this.trigger=Ni.TRIGGER;this.showArrow=Ni.ARROW;this.closeButton=Ni.CLOSE_BUTTON;this.disableAriaExpanded=Ni.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Ni.COLOR,this.showArrow=Ni.ARROW}};y([A({type:String,reflect:!0})],Ri.prototype,"trigger",2),y([A({type:Boolean,attribute:"show-arrow"})],Ri.prototype,"showArrow",2),y([A({type:Boolean,reflect:!0,attribute:"close-button"})],Ri.prototype,"closeButton",2),y([A({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Ri.prototype,"disableAriaExpanded",2);var Rl=Ri;Rl.register(Pm);var Kv=Rl;var Xv=W`
|
2178
2179
|
:host {
|
2179
2180
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
2180
2181
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2279,7 +2280,7 @@
|
|
2279
2280
|
mdc-text::part(text) {
|
2280
2281
|
margin: 0;
|
2281
2282
|
}
|
2282
|
-
`,
|
2283
|
+
`,Dm=[Xv];var Fm=j.constructTagName("dialog"),Zv={DEFAULT:"default",PROMOTIONAL:"promotional"},Mr={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:Zv.DEFAULT};var Qa=class{constructor(o){this.dialog=o}setupAriaAttributes(){this.dialog.headerText&&!this.dialog.ariaLabel&&!this.dialog.ariaLabelledby?this.dialog.setAttribute("aria-labelledby",this.dialog.headerText):!this.dialog.headerText&&!this.dialog.ariaLabel&&!this.dialog.ariaLabelledby&&this.dialog.setAttribute("aria-labelledby",this.dialog.triggerId)}createBackdrop(){var s;let o=document.createElement("div");o.classList.add("dialog-backdrop");let e=document.createElement("style");e.textContent=`
|
2283
2284
|
.dialog-backdrop {
|
2284
2285
|
position: fixed;
|
2285
2286
|
top: 0;
|
@@ -2289,37 +2290,37 @@
|
|
2289
2290
|
background: var(--mds-color-theme-common-overlays-secondary-normal);
|
2290
2291
|
z-index: ${this.dialog.zIndex-1};
|
2291
2292
|
}
|
2292
|
-
`,
|
2293
|
-
${this.headerText?
|
2293
|
+
`,o.appendChild(e),(s=this.dialog.parentElement)==null||s.appendChild(o),this.dialog.backdropElement=o}};var Oi=class{static dispatchDialogEvent(o,e){e.dispatchEvent(new CustomEvent(o,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var Jt=class extends Za(Da(J)){constructor(){super();this.id="";this.triggerId="";this.visible=Mr.VISIBLE;this.zIndex=Mr.Z_INDEX;this.size=Mr.SIZE;this.variant=Mr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabelledby=null;this.ariaLabel=null;this.headerText="";this.descriptionText="";this.headerTagName=Mr.HEADER_TAG_NAME;this.descriptionTagName=Mr.DESCRIPTION_TAG_NAME;this.role=Mr.ROLE;this.triggerElement=null;this.backdropElement=null;this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hideDialog())};this.hideDialog=()=>{this.visible=!1};this.utils=new Qa(this),document.addEventListener("keydown",this.onEscapeKeydown)}async firstUpdated(e){super.firstUpdated(e),this.setupTriggerListener(),this.utils.setupAriaAttributes(),this.style.zIndex=`${this.zIndex}`,Oi.onCreatedDialog(this),this.visible&&await this.handleCreateDialogFirstUpdate()}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),document.removeEventListener("keydown",this.onEscapeKeydown),Oi.onDestroyedDialog(this)}setupTriggerListener(){this.triggerId&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.triggerElement&&this.addEventListener("focus-trap-exit",this.hideDialog))}removeEventListeners(){this.triggerElement&&this.removeEventListener("focus-trap-exit",this.hideDialog)}async updated(e){if(super.updated(e),e.has("visible")){let s=e.get("visible");await this.isOpenUpdated(s,this.visible)}e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("variant")&&this.updateFooterButtonColors(this.variant),(e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAriaAttributes()}async isOpenUpdated(e,s){var n,h,f;e===s||!this.triggerElement||(s?(this.enabledFocusTrap=!0,this.enabledPreventScroll=!0,this.utils.createBackdrop(),await this.handleCreateDialogFirstUpdate(),this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),Oi.onShowDialog(this)):((n=this.backdropElement)==null||n.remove(),this.backdropElement=null,(h=this.deactivateFocusTrap)==null||h.call(this),this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.removeAttribute("aria-haspopup"),(f=this.triggerElement)==null||f.focus(),Oi.onHideDialog(this)))}async handleCreateDialogFirstUpdate(){var e,s;this.visible&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(s=this.setInitialFocus)==null||s.call(this))}render(){var e;return F`
|
2294
|
+
${this.headerText?F`
|
2294
2295
|
<div part="header">
|
2295
2296
|
<mdc-text
|
2296
2297
|
part="header-text"
|
2297
|
-
tagname="${
|
2298
|
-
type="${
|
2298
|
+
tagname="${xt[this.headerTagName.toUpperCase()]}"
|
2299
|
+
type="${lt.BODY_LARGE_BOLD}"
|
2299
2300
|
>
|
2300
2301
|
${this.headerText}
|
2301
2302
|
</mdc-text>
|
2302
2303
|
<mdc-text
|
2303
2304
|
part="description-text"
|
2304
|
-
tagname="${
|
2305
|
-
type="${
|
2305
|
+
tagname="${xt[this.descriptionTagName.toUpperCase()]}"
|
2306
|
+
type="${lt.BODY_MIDSIZE_REGULAR}"
|
2306
2307
|
>
|
2307
|
-
${(e=this.descriptionText)!=null?e:
|
2308
|
+
${(e=this.descriptionText)!=null?e:Z}
|
2308
2309
|
</mdc-text>
|
2309
|
-
</div>`:
|
2310
|
+
</div>`:Z}
|
2310
2311
|
<mdc-button
|
2311
2312
|
part="dialog-close-btn"
|
2312
|
-
prefix-icon="${
|
2313
|
-
variant="${
|
2314
|
-
size="${
|
2315
|
-
aria-label="${
|
2313
|
+
prefix-icon="${Mr.CANCEL_ICON}"
|
2314
|
+
variant="${re.TERTIARY}"
|
2315
|
+
size="${Xr[20]}"
|
2316
|
+
aria-label="${mt(this.closeButtonAriaLabel)||""}"
|
2316
2317
|
@click="${this.hideDialog}"
|
2317
2318
|
></mdc-button>
|
2318
2319
|
<div part="body">
|
2319
2320
|
<slot name="dialog-body"></slot>
|
2320
2321
|
</div>
|
2321
2322
|
${this.renderFooter()}
|
2322
|
-
`}};
|
2323
|
+
`}};Jt.styles=[...J.styles,...Dm],y([A({type:String,reflect:!0})],Jt.prototype,"id",2),y([A({type:String,reflect:!0})],Jt.prototype,"triggerId",2),y([A({type:Boolean,reflect:!0})],Jt.prototype,"visible",2),y([A({type:Number,reflect:!0,attribute:"z-index"})],Jt.prototype,"zIndex",2),y([A({type:String,reflect:!0})],Jt.prototype,"size",2),y([A({type:String,reflect:!0})],Jt.prototype,"variant",2),y([A({type:String,attribute:"close-button-aria-label"})],Jt.prototype,"closeButtonAriaLabel",2),y([A({type:String,reflect:!0,attribute:"aria-labelledby"})],Jt.prototype,"ariaLabelledby",2),y([A({type:String,reflect:!0,attribute:"aria-label"})],Jt.prototype,"ariaLabel",2),y([A({type:String,reflect:!0,attribute:"header-text"})],Jt.prototype,"headerText",2),y([A({type:String,reflect:!0,attribute:"description-text"})],Jt.prototype,"descriptionText",2),y([A({type:String,reflect:!0,attribute:"header-tag-name"})],Jt.prototype,"headerTagName",2),y([A({type:String,reflect:!0,attribute:"description-tag-name"})],Jt.prototype,"descriptionTagName",2),y([A({type:String,reflect:!0})],Jt.prototype,"role",2);var Ol=Jt;Ol.register(Fm);var Jv=Ol;var zm=j.constructTagName("divider"),_s={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Pl={SOLID:"solid",GRADIENT:"gradient"},ti={POSITIVE:"positive",NEGATIVE:"negative"},Ss={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Pi={ORIENTATION:_s.HORIZONTAL,VARIANT:Pl.SOLID,ARROW_DIRECTION:ti.NEGATIVE,BUTTON_DIRECTION:ti.NEGATIVE};var Qv=[Et,W`
|
2323
2324
|
:host {
|
2324
2325
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
2325
2326
|
--mdc-divider-width: 0.0625rem;
|
@@ -2530,11 +2531,11 @@
|
|
2530
2531
|
font-size: var(--mdc-divider-text-size);
|
2531
2532
|
line-height: var(--mdc-divider-text-line-height);
|
2532
2533
|
}
|
2533
|
-
`]
|
2534
|
+
`],$m=Qv;var ei=class extends J{constructor(){super(...arguments);this.orientation=Pi.ORIENTATION;this.variant=Pi.VARIANT;this.arrowDirection=Pi.ARROW_DIRECTION;this.buttonPosition=Pi.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(Pl).includes(e)?e:Pi.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(_s).includes(e)?e:Pi.ORIENTATION)}ensureValidDirections(){let e=this.orientation===_s.HORIZONTAL?ti.NEGATIVE:ti.POSITIVE;Object.values(ti).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(ti).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let s=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",s)}}getArrowIcon(){let e=this.orientation===_s.HORIZONTAL,s=this.arrowDirection===ti.POSITIVE;return e?s?Ss.UP:Ss.DOWN:s?Ss.RIGHT:Ss.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var f;let e=(f=this.shadowRoot)==null?void 0:f.querySelector("slot"),s=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(s.length>1)return;let n=s.some(S=>S.tagName===ns.toUpperCase()),h=s.some(S=>S.tagName===bi.toUpperCase());n&&!h?this.setAttribute("data-type","mdc-text-divider"):!n&&h&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return F`
|
2534
2535
|
<div></div>
|
2535
2536
|
<slot @slotchange=${this.inferDividerType}></slot>
|
2536
2537
|
<div></div>
|
2537
|
-
`}};
|
2538
|
+
`}};ei.styles=[...J.styles,...$m],y([A({type:String,reflect:!0})],ei.prototype,"orientation",2),y([A({type:String,reflect:!0})],ei.prototype,"variant",2),y([A({type:String,attribute:"arrow-direction",reflect:!0})],ei.prototype,"arrowDirection",2),y([A({type:String,attribute:"button-position",reflect:!0})],ei.prototype,"buttonPosition",2);var Dl=ei;Dl.register(zm);var tg=Dl;var eg=W`
|
2538
2539
|
:host([selected]){
|
2539
2540
|
border: 2px solid;
|
2540
2541
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
@@ -2554,7 +2555,7 @@
|
|
2554
2555
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2555
2556
|
cursor: auto;
|
2556
2557
|
}
|
2557
|
-
`,
|
2558
|
+
`,Vm=[eg];var Bm=j.constructTagName("filterchip"),Fl={ICON_NAME:"check-bold",COLOR:"default"};var ks=class extends Eo{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Fl.COLOR}setSelected(e){e?(this.iconName=Fl.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(e){super.update(e),e.has("selected")&&this.setSelected(this.selected)}};ks.styles=[...Eo.styles,...Vm],y([A({type:Boolean,reflect:!0})],ks.prototype,"selected",2);var zl=ks;zl.register(Bm);var rg=zl;var ig=W`
|
2558
2559
|
|
2559
2560
|
:host::part(container) {
|
2560
2561
|
display: flex;
|
@@ -2571,12 +2572,12 @@
|
|
2571
2572
|
:host::part(label-text){
|
2572
2573
|
font-weight: bold;
|
2573
2574
|
}
|
2574
|
-
`,
|
2575
|
+
`,Um=[ig];var tn=class extends Bt(pe){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return F`
|
2575
2576
|
<div
|
2576
2577
|
part="container"
|
2577
|
-
role="${this.isRadio?
|
2578
|
-
aria-labelledby="${
|
2579
|
-
aria-describedby="${
|
2578
|
+
role="${this.isRadio?jt.RADIOGROUP:jt.GROUP}"
|
2579
|
+
aria-labelledby="${zt.HEADING_ID}"
|
2580
|
+
aria-describedby="${mt(this.helpText?zt.HELPER_TEXT_ID:"")}"
|
2580
2581
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
2581
2582
|
>
|
2582
2583
|
<div part="group-header">
|
@@ -2585,7 +2586,7 @@
|
|
2585
2586
|
</div>
|
2586
2587
|
<slot></slot>
|
2587
2588
|
</div>
|
2588
|
-
`}};
|
2589
|
+
`}};tn.styles=[...pe.styles,...Um];var $l=tn;var Hm=j.constructTagName("formfieldgroup");$l.register(Hm);var en=$l;ls.register(Aa);var og=ls;var sg=[W`
|
2589
2590
|
:host{
|
2590
2591
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
2591
2592
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2701,36 +2702,36 @@
|
|
2701
2702
|
opacity: 0;
|
2702
2703
|
pointer-events: none;
|
2703
2704
|
}
|
2704
|
-
`,...
|
2705
|
+
`,..._t(!0)],Gm=sg;pe.register(Jh);var Ve=pe;var jm=j.constructTagName("input"),rn={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Vl={OFF:"off",ON:"on"},Bl={TEXT:"text",SEARCH:"search"},Wm={MAX_LENGTH:10,VALIDATION:Zt.ERROR},Nr={VALIDATION:Zt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:re.TERTIARY,CLEAR_BUTTON_SIZE:Xr[20],PREFIX_TEXT_TYPE:lt.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:xt.SPAN,AUTO_COMPLETE:Vl.OFF,INPUT_TYPE:Bl.TEXT};var Wt=class extends Se(Bt(Ve)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=rn.OFF;this.autocomplete=Vl.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,s,n){super.attributeChangedCallback(e,s,n),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(f=>{this.onerror&&this.onerror(f)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}handleKeyDown(e){var s;e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?F`
|
2705
2706
|
<mdc-icon
|
2706
2707
|
class="leading-icon"
|
2707
2708
|
part="leading-icon"
|
2708
2709
|
name=${this.leadingIcon}
|
2709
|
-
size="${
|
2710
|
-
length-unit="${
|
2710
|
+
size="${Nr.ICON_SIZE_VALUE}"
|
2711
|
+
length-unit="${Nr.ICON_SIZE_UNIT}">
|
2711
2712
|
</mdc-icon>
|
2712
|
-
`:
|
2713
|
+
`:Z}renderPrefixText(){return this.prefixText?F`
|
2713
2714
|
<mdc-text
|
2714
2715
|
class="prefix-text"
|
2715
|
-
tagname="${
|
2716
|
-
type="${
|
2716
|
+
tagname="${Nr.PREFIX_TEXT_TAG}"
|
2717
|
+
type="${Nr.PREFIX_TEXT_TYPE}"
|
2717
2718
|
aria-hidden="true"
|
2718
2719
|
>
|
2719
|
-
${this.prefixText.slice(0,
|
2720
|
+
${this.prefixText.slice(0,Wm.MAX_LENGTH)}
|
2720
2721
|
</mdc-text>
|
2721
|
-
`:
|
2722
|
+
`:Z}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(e=!1){let s=e||this.value&&this.trailingButton;return s?F`
|
2722
2723
|
<mdc-button
|
2723
2724
|
part='trailing-button'
|
2724
|
-
class='own-focus-ring ${
|
2725
|
-
prefix-icon='${
|
2726
|
-
variant='${
|
2727
|
-
size="${
|
2725
|
+
class='own-focus-ring ${s?"":"hidden"}'
|
2726
|
+
prefix-icon='${Nr.CLEAR_BUTTON_ICON}'
|
2727
|
+
variant='${Nr.CLEAR_BUTTON_VARIANT}'
|
2728
|
+
size="${Nr.CLEAR_BUTTON_SIZE}"
|
2728
2729
|
aria-label="${this.clearAriaLabel}"
|
2729
2730
|
@click=${this.clearInputText}
|
2730
|
-
?disabled=${this.disabled||this.readonly||!
|
2731
|
+
?disabled=${this.disabled||this.readonly||!s}
|
2731
2732
|
></mdc-button>
|
2732
|
-
`:
|
2733
|
-
aria-label="${(
|
2733
|
+
`:Z}renderInputElement(e,s=!1){var h;let n=s?"":this.placeholder;return F`<input
|
2734
|
+
aria-label="${(h=this.dataAriaLabel)!=null?h:""}"
|
2734
2735
|
class='input'
|
2735
2736
|
part='input'
|
2736
2737
|
id="${this.id}"
|
@@ -2740,33 +2741,33 @@
|
|
2740
2741
|
?readonly="${this.readonly}"
|
2741
2742
|
?required="${!!this.requiredLabel}"
|
2742
2743
|
type="${e}"
|
2743
|
-
aria-describedby="${
|
2744
|
+
aria-describedby="${mt(this.helpText?zt.HELPER_TEXT_ID:"")}"
|
2744
2745
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
2745
|
-
placeholder=${
|
2746
|
-
minlength=${
|
2747
|
-
maxlength=${
|
2746
|
+
placeholder=${mt(n)}
|
2747
|
+
minlength=${mt(this.minlength)}
|
2748
|
+
maxlength=${mt(this.maxlength)}
|
2748
2749
|
autocapitalize=${this.autocapitalize}
|
2749
2750
|
autocomplete=${this.autocomplete}
|
2750
2751
|
?autofocus="${this.autofocus}"
|
2751
|
-
dirname=${
|
2752
|
-
pattern=${
|
2753
|
-
list=${
|
2754
|
-
size=${
|
2752
|
+
dirname=${mt(this.dirname)}
|
2753
|
+
pattern=${mt(this.pattern)}
|
2754
|
+
list=${mt(this.list)}
|
2755
|
+
size=${mt(this.size)}
|
2755
2756
|
@input=${this.onInput}
|
2756
2757
|
@change=${this.onChange}
|
2757
2758
|
@keydown=${this.handleKeyDown}
|
2758
|
-
/>`}render(){return
|
2759
|
+
/>`}render(){return F`
|
2759
2760
|
${this.renderLabel()}
|
2760
2761
|
<div class="input-container mdc-focus-ring" part="input-container">
|
2761
2762
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
2762
2763
|
<div class="input-section" part="input-section">
|
2763
2764
|
<slot name="input-prefix-text">${this.renderPrefixText()}</slot>
|
2764
|
-
<slot name="input">${this.renderInputElement(
|
2765
|
+
<slot name="input">${this.renderInputElement(Nr.INPUT_TYPE)}</slot>
|
2765
2766
|
</div>
|
2766
2767
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
2767
2768
|
</div>
|
2768
|
-
${this.helpText?this.renderHelperText():
|
2769
|
-
`}};
|
2769
|
+
${this.helpText?this.renderHelperText():Z}
|
2770
|
+
`}};Wt.styles=[...Ve.styles,...Gm],y([A({type:String})],Wt.prototype,"placeholder",2),y([A({type:Boolean})],Wt.prototype,"readonly",2),y([A({type:String,attribute:"prefix-text"})],Wt.prototype,"prefixText",2),y([A({type:String,attribute:"leading-icon"})],Wt.prototype,"leadingIcon",2),y([A({type:Boolean,attribute:"trailing-button"})],Wt.prototype,"trailingButton",2),y([A({type:Number})],Wt.prototype,"maxlength",2),y([A({type:Number})],Wt.prototype,"minlength",2),y([A({type:String})],Wt.prototype,"autocapitalize",2),y([A({type:String})],Wt.prototype,"autocomplete",2),y([A({type:Boolean})],Wt.prototype,"autofocus",2),y([A({type:String})],Wt.prototype,"dirname",2),y([A({type:String})],Wt.prototype,"pattern",2),y([A({type:String})],Wt.prototype,"list",2),y([A({type:Number})],Wt.prototype,"size",2),y([A({type:String,attribute:"clear-aria-label"})],Wt.prototype,"clearAriaLabel",2);var So=Wt;So.register(jm);var ag=So;var ng=W`
|
2770
2771
|
:host {
|
2771
2772
|
height: 1.5rem;
|
2772
2773
|
gap: 0.25rem;
|
@@ -2795,24 +2796,24 @@
|
|
2795
2796
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2796
2797
|
cursor: auto;
|
2797
2798
|
}
|
2798
|
-
`,
|
2799
|
+
`,qm=[Et,ng];var on=j.constructTagName("inputchip"),sn={TEXT_TYPE:lt.BODY_MIDSIZE_REGULAR,TAG_NAME:xt.SPAN,CLOSE_ICON:"cancel-bold"};var Di=class extends Ae(Dt(J)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?F`
|
2799
2800
|
<mdc-icon
|
2800
2801
|
name="${this.iconName}"
|
2801
2802
|
length-unit="rem"
|
2802
2803
|
size="1"></mdc-icon>
|
2803
|
-
`:
|
2804
|
+
`:Z}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return F`
|
2804
2805
|
${this.renderIcon()}
|
2805
|
-
<mdc-text part="label" type="${
|
2806
|
+
<mdc-text part="label" type="${sn.TEXT_TYPE}" tagname="${sn.TAG_NAME}">${this.label}</mdc-text>
|
2806
2807
|
<mdc-button
|
2807
2808
|
?disabled="${this.disabled}"
|
2808
2809
|
variant="tertiary"
|
2809
2810
|
part="close-icon"
|
2810
2811
|
aria-label="${this.clearAriaLabel}"
|
2811
|
-
prefix-icon="${
|
2812
|
+
prefix-icon="${sn.CLOSE_ICON}"
|
2812
2813
|
size="20"
|
2813
2814
|
@click="${this.handleClose}"
|
2814
2815
|
></mdc-button>
|
2815
|
-
`}};
|
2816
|
+
`}};Di.styles=[...J.styles,...qm],y([A({type:String})],Di.prototype,"label",2),y([A({type:Boolean})],Di.prototype,"error",2),y([A({type:String,attribute:"clear-aria-label"})],Di.prototype,"clearAriaLabel",2);var Ul=Di;Ul.register(on);var lg=Ul;var cg=W`
|
2816
2817
|
:host {
|
2817
2818
|
gap: 0.25rem;
|
2818
2819
|
}
|
@@ -2870,36 +2871,36 @@
|
|
2870
2871
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
2871
2872
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
2872
2873
|
}
|
2873
|
-
`,
|
2874
|
+
`,Ym=[cg];var Cs=class extends Ae(Jr){constructor(){super(...arguments);this.size=$h.LINK_SIZE}getIconSize(){switch(this.size){case Ra.SMALL:return Oa.SMALL;case Ra.MIDSIZE:return Oa.MIDSIZE;default:return Oa.LARGE}}render(){return F`
|
2874
2875
|
<slot></slot>
|
2875
|
-
${this.iconName?
|
2876
|
+
${this.iconName?F`
|
2876
2877
|
<mdc-icon
|
2877
2878
|
name=${this.iconName}
|
2878
2879
|
size=${this.getIconSize()}
|
2879
2880
|
length-unit="rem"
|
2880
2881
|
></mdc-icon>
|
2881
|
-
`:
|
2882
|
-
`}};
|
2882
|
+
`:Z}
|
2883
|
+
`}};Cs.styles=[...Jr.styles,...Ym],y([A({type:String,reflect:!0})],Cs.prototype,"size",2);var Hl=Cs;Hl.register(Na);var dg=Hl;Jr.register(Ph);var hg=Jr;var Ot={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var an=j.constructTagName("listitem"),Gl="dynamic-listitem-tooltip-popover",jl="dynamic-listitem-tooltip-triggerid",ws={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Wl={VARIANT:ws.FULL_WIDTH,TOOLTIP_PLACEMENT:fe.TOP};var Km=j.constructTagName("list"),ql="header-id";var mg=W`
|
2883
2884
|
:host::part(header-text) {
|
2884
2885
|
padding: 0.5rem 0.75rem;
|
2885
2886
|
}
|
2886
|
-
`,
|
2887
|
+
`,Xm=[mg];var ko=class extends Bt(J){constructor(){super();this.dataRole=jt.LIST;this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(e){var h;let s=this.getCurrentIndex(e.target),n=this.getNewIndexBasedOnKey(e.key,s,this.listItems.length);n!==void 0&&((h=this.listItems[n])==null||h.focus(),this.resetTabIndexAndSetActiveTabIndex(n))}getCurrentIndex(e){return this.listItems.findIndex(s=>s===e||s===e.parentElement)}getNewIndexBasedOnKey(e,s,n){switch(e){case Ot.ARROW_DOWN:return(s+1)%n;case Ot.ARROW_UP:return(s-1+n)%n;case Ot.HOME:return 0;case Ot.END:return n-1;default:return}}handleMouseClick(e){let s=this.getCurrentIndex(e.target);this.resetTabIndexAndSetActiveTabIndex(s)}resetTabIndexAndSetActiveTabIndex(e){this.listItems.forEach((s,n)=>{let h=e===n?"0":"-1";s==null||s.setAttribute("tabindex",h)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var s;let e=this.headerText?F`
|
2887
2888
|
<mdc-text
|
2888
|
-
id="${
|
2889
|
+
id="${ql}"
|
2889
2890
|
part="header-text"
|
2890
|
-
type="${
|
2891
|
-
tagname="${
|
2891
|
+
type="${lt.BODY_MIDSIZE_BOLD}"
|
2892
|
+
tagname="${xt.SPAN}"
|
2892
2893
|
>${this.headerText}</mdc-text>
|
2893
|
-
`:
|
2894
|
+
`:Z;return F`
|
2894
2895
|
<div
|
2895
2896
|
role="${this.dataRole}"
|
2896
|
-
aria-labelledby="${this.headerText?
|
2897
|
-
aria-label="${(
|
2897
|
+
aria-labelledby="${this.headerText?ql:""}"
|
2898
|
+
aria-label="${(s=this.dataAriaLabel)!=null?s:""}"
|
2898
2899
|
>
|
2899
2900
|
${e}
|
2900
2901
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
2901
2902
|
</div>
|
2902
|
-
`}};
|
2903
|
+
`}};ko.styles=[...J.styles,...Xm],y([Gt({selector:`${an}:not([disabled])`})],ko.prototype,"listItems",2),y([A({type:String,attribute:"header-text",reflect:!0})],ko.prototype,"headerText",2);var Yl=ko;Yl.register(Km);var pg=Yl;var nn=j.constructTagName("tooltip"),Ne={DESCRIPTION:"description",LABEL:"label",NONE:"none"},ri={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:fe.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Ne.DESCRIPTION};var ug=W`
|
2903
2904
|
|
2904
2905
|
:host {
|
2905
2906
|
--mdc-tooltip-max-width: 400px;
|
@@ -2924,7 +2925,7 @@
|
|
2924
2925
|
:host([color='contrast'])::part(popover-content) {
|
2925
2926
|
color: var(--mdc-tooltip-text-color-contrast);
|
2926
2927
|
}
|
2927
|
-
`,
|
2928
|
+
`,Zm=[ug];var Co=class extends tr{constructor(){super(...arguments);this.tooltipType=ri.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||ri.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||ri.OFFSET,this.placement=this.placement||ri.PLACEMENT,this.role=jt.TOOLTIP,this.trigger="mouseenter focusin",this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,s;return((s=(e=this.defaultSlotNodes)==null?void 0:e.map(n=>n.textContent).join(" "))==null?void 0:s.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(Ne).includes(e)?e:ri.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${Cr()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case Ne.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case Ne.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(fe).includes(this.placement)||(this.placement=ri.PLACEMENT)}onTooltipTypeUpdated(e){let s=e.get("tooltipType");Object.values(Ne).includes(this.tooltipType)||this.setTooltipType(ri.TOOLTIP_TYPE);let n=document.getElementById(this.triggerID);if(n){let h=this.getTooltipText();switch(this.tooltipType){case Ne.DESCRIPTION:s===Ne.LABEL&&n.removeAttribute("aria-labelledby"),n.setAttribute("aria-describedby",this.id);break;case Ne.LABEL:s===Ne.DESCRIPTION&&n.removeAttribute("aria-describedby"),n.setAttribute("aria-labelledby",this.id);break;default:s===Ne.DESCRIPTION?n.removeAttribute("aria-describedby"):s===Ne.LABEL&&n.removeAttribute("aria-labelledby");break}h.length>0&&this.tooltipType!==Ne.NONE&&!this.ariaLabel&&(this.ariaLabel=h)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};Co.styles=[...tr.styles,...Zm],y([A({type:String,attribute:"tooltip-type",reflect:!0})],Co.prototype,"tooltipType",2),y([ba()],Co.prototype,"defaultSlotNodes",2);var Kl=Co;Kl.register(nn);var fg=Kl;var vg=W`
|
2928
2929
|
:host {
|
2929
2930
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
2930
2931
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -3006,27 +3007,27 @@
|
|
3006
3007
|
display: flex;
|
3007
3008
|
flex-direction: row;
|
3008
3009
|
}
|
3009
|
-
`,
|
3010
|
+
`,Jm=[vg,..._t()];var Ce=class extends Dt(ar(J)){constructor(){super();this.variant=Wl.VARIANT;this.tooltipPlacement=Wl.TOOLTIP_PLACEMENT;this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}connectedCallback(){super.connectedCallback(),this.role=this.role||jt.LISTITEM}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(){var s;if(!this.tooltipText)return;this.id=this.id||jl;let e=document.createElement(nn);e.id=Gl,e.textContent=this.tooltipText,e.setAttribute("triggerid",this.id),e.setAttribute("placement",this.tooltipPlacement),e.setAttribute("visible",""),e.setAttribute("show-arrow",""),(s=this.parentElement)==null||s.after(e)}hideTooltipOnLeave(){this.id=this.id===jl?"":this.id;let e=document.querySelector(`#${Gl}`);e==null||e.remove()}getText(e,s,n){return n?F`
|
3010
3011
|
<slot name="${e}">
|
3011
|
-
<mdc-text part="${e}" type="${
|
3012
|
+
<mdc-text part="${e}" type="${s}" tagname="${xt.SPAN}">${n}</mdc-text>
|
3012
3013
|
</slot>
|
3013
|
-
`:
|
3014
|
+
`:Z}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(s=>{e?s.setAttribute("disabled",""):s.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.setAttribute("aria-disabled",`${this.disabled}`))}render(){return F`
|
3014
3015
|
<div part="leading">
|
3015
3016
|
<slot name="leading-controls"></slot>
|
3016
3017
|
<div part="leading-text">
|
3017
|
-
${this.getText("leading-text-primary-label",
|
3018
|
-
${this.getText("leading-text-secondary-label",
|
3019
|
-
${this.getText("leading-text-tertiary-label",
|
3018
|
+
${this.getText("leading-text-primary-label",lt.BODY_MIDSIZE_REGULAR,this.label)}
|
3019
|
+
${this.getText("leading-text-secondary-label",lt.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3020
|
+
${this.getText("leading-text-tertiary-label",lt.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
3020
3021
|
</div>
|
3021
3022
|
</div>
|
3022
3023
|
<div part="trailing">
|
3023
3024
|
<div part="trailing-text">
|
3024
|
-
${this.getText("trailing-text-side-header",
|
3025
|
-
${this.getText("trailing-text-subline",
|
3025
|
+
${this.getText("trailing-text-side-header",lt.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
3026
|
+
${this.getText("trailing-text-subline",lt.BODY_SMALL_REGULAR,this.sublineText)}
|
3026
3027
|
</div>
|
3027
3028
|
<slot name="trailing-controls"></slot>
|
3028
3029
|
</div>
|
3029
|
-
`}};
|
3030
|
+
`}};Ce.styles=[...J.styles,...Jm],y([Gt({slot:"leading-controls"})],Ce.prototype,"leadingControlsSlot",2),y([Gt({slot:"trailing-controls"})],Ce.prototype,"trailingControlsSlot",2),y([A({type:String,reflect:!0})],Ce.prototype,"variant",2),y([A({type:String,reflect:!0})],Ce.prototype,"label",2),y([A({type:String,reflect:!0,attribute:"secondary-label"})],Ce.prototype,"secondaryLabel",2),y([A({type:String,reflect:!0,attribute:"tertiary-label"})],Ce.prototype,"tertiaryLabel",2),y([A({type:String,reflect:!0,attribute:"side-header-text"})],Ce.prototype,"sideHeaderText",2),y([A({type:String,reflect:!0,attribute:"subline-text"})],Ce.prototype,"sublineText",2),y([A({type:String,reflect:!0,attribute:"tooltip-text"})],Ce.prototype,"tooltipText",2),y([A({type:String,reflect:!0,attribute:"tooltip-placement"})],Ce.prototype,"tooltipPlacement",2);var Rr=Ce;Rr.register(an);var gg=Rr;var bg=W`
|
3030
3031
|
:host {
|
3031
3032
|
--mdc-marker-width: 0.25rem;
|
3032
3033
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -3051,7 +3052,7 @@
|
|
3051
3052
|
var(--mdc-marker-striped-background-color) 0.375rem
|
3052
3053
|
);
|
3053
3054
|
}
|
3054
|
-
`,
|
3055
|
+
`,Qm=[bg];var tp=j.constructTagName("marker"),ep={SOLID:"solid",STRIPED:"striped"};var Is=class extends J{constructor(){super(...arguments);this.variant=ep.SOLID}};Is.styles=[...J.styles,...Qm],y([A({type:String,reflect:!0})],Is.prototype,"variant",2);var Xl=Is;Xl.register(tp);var yg=Xl;var ln=class extends Rr{connectedCallback(){super.connectedCallback(),this.role=jt.MENUITEM,this.variant=ws.INSET_RECTANGLE}};ln.styles=[...Rr.styles];var Or=ln;var rp=j.constructTagName("menuitem");Or.register(rp);var xg=Or;var cn=j.constructTagName("optgroup"),Zl="header-id";var Eg=W`
|
3055
3056
|
:host {
|
3056
3057
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
3057
3058
|
}
|
@@ -3064,23 +3065,23 @@
|
|
3064
3065
|
color: var(--mdc-optgroup-disabled-color);
|
3065
3066
|
cursor: default;
|
3066
3067
|
}
|
3067
|
-
`,
|
3068
|
+
`,ip=[Eg];var wo=class extends Bt(Dt(J)){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 e;let o=this.label?F`
|
3068
3069
|
<mdc-text
|
3069
|
-
id="${
|
3070
|
+
id="${Zl}"
|
3070
3071
|
part="header-text"
|
3071
|
-
type="${
|
3072
|
-
tagname="${
|
3072
|
+
type="${lt.BODY_MIDSIZE_BOLD}"
|
3073
|
+
tagname="${xt.SPAN}"
|
3073
3074
|
>${this.label}</mdc-text>
|
3074
|
-
`:
|
3075
|
+
`:Z;return F`
|
3075
3076
|
<div
|
3076
3077
|
role="group"
|
3077
|
-
aria-labelledby="${this.label?
|
3078
|
+
aria-labelledby="${this.label?Zl:""}"
|
3078
3079
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
3079
3080
|
>
|
3080
|
-
${
|
3081
|
+
${o}
|
3081
3082
|
<slot role="presentation"></slot>
|
3082
3083
|
</div>
|
3083
|
-
`}};
|
3084
|
+
`}};wo.styles=[...J.styles,...ip],y([A({type:String,reflect:!0})],wo.prototype,"label",2),y([Gt({selector:"mdc-option"})],wo.prototype,"options",2);var Jl=wo;Jl.register(cn);var Tg=Jl;var op="check-bold",Ls=j.constructTagName("option");var Ag=W`
|
3084
3085
|
:host {
|
3085
3086
|
--mdc-option-icon-width: 1rem;
|
3086
3087
|
|
@@ -3104,22 +3105,22 @@
|
|
3104
3105
|
/** 2x of leading and trailing icon width + 2x of column gap on both sides of the label text */
|
3105
3106
|
width: calc(100% - (2 * var(--mdc-option-icon-width)) - (2 * var(--mdc-listitem-column-gap)));
|
3106
3107
|
}
|
3107
|
-
`,
|
3108
|
+
`,sp=[Ag];var Fi=class extends Se(Rr){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=ws.INSET_RECTANGLE,this.updateAttribute("aria-selected",`${this.selected}`),this.updateAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.secondaryLabel=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}handleDefaultSlotChange(){var s,n,h;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot");e&&!this.label&&(this.label=(h=(n=e.assignedNodes()[0])==null?void 0:n.textContent)==null?void 0:h.trim())}updateAttribute(e,s){this.setAttribute(e,s)}update(e){super.update(e),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?F`
|
3108
3109
|
<div part="leading-icon">
|
3109
|
-
<mdc-icon length-unit="rem" slot="leading-controls" name="${
|
3110
|
+
<mdc-icon length-unit="rem" slot="leading-controls" name="${mt(this.prefixIcon)}"></mdc-icon>
|
3110
3111
|
</div>
|
3111
|
-
`:
|
3112
|
-
<mdc-icon length-unit="rem" slot="trailing-controls" name="${
|
3113
|
-
`:
|
3112
|
+
`:Z,s=this.selected?F`
|
3113
|
+
<mdc-icon length-unit="rem" slot="trailing-controls" name="${op}"></mdc-icon>
|
3114
|
+
`:Z;return F`
|
3114
3115
|
${e}
|
3115
3116
|
<div part="leading-text">
|
3116
|
-
${this.getText("leading-text-primary-label",
|
3117
|
+
${this.getText("leading-text-primary-label",lt.BODY_MIDSIZE_REGULAR,this.label)}
|
3117
3118
|
</div>
|
3118
3119
|
<div part="trailing">
|
3119
|
-
${
|
3120
|
+
${s}
|
3120
3121
|
</div>
|
3121
3122
|
<slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
|
3122
|
-
`}};
|
3123
|
+
`}};Fi.styles=[...Rr.styles,...sp],y([A({type:Boolean,reflect:!0})],Fi.prototype,"selected",2),y([A({type:String,reflect:!0,attribute:"prefix-icon"})],Fi.prototype,"prefixIcon",2),y([A({type:String,reflect:!0,attribute:"aria-label"})],Fi.prototype,"ariaLabel",2);var Ql=Fi;Ql.register(Ls);var _g=Ql;tr.register(Rm);var Sg=tr;var kg=[Et,W`
|
3123
3124
|
:host {
|
3124
3125
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
3125
3126
|
--mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
|
@@ -3203,28 +3204,28 @@
|
|
3203
3204
|
border: var(--mdc-progressbar-border);
|
3204
3205
|
}
|
3205
3206
|
}
|
3206
|
-
`],
|
3207
|
+
`],ap=kg;var np=j.constructTagName("progressbar"),dn={DEFAULT:"default",INLINE:"inline"},lp={VARIANT:dn.DEFAULT,VALIDATION:Zt.DEFAULT};var zi=class extends Bt(Ve){constructor(){super(...arguments);this.variant=lp.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var h;let e=this.getValidationVariant(),s=this.clampedValue>0&&this.clampedValue<100,n=this.error?"100":`${this.clampedValue}`;return F`
|
3207
3208
|
<div
|
3208
|
-
part="progress-container ${
|
3209
|
+
part="progress-container ${s?"gap":""}"
|
3209
3210
|
role="progressbar"
|
3210
3211
|
aria-valuenow="${this.clampedValue}"
|
3211
3212
|
aria-valuemin="0"
|
3212
3213
|
aria-valuemax="100"
|
3213
|
-
aria-label="${(
|
3214
|
+
aria-label="${(h=this.dataAriaLabel)!=null?h:""}"
|
3214
3215
|
>
|
3215
|
-
<div part="progress-bar ${e}" style="width: ${
|
3216
|
+
<div part="progress-bar ${e}" style="width: ${n}%"></div>
|
3216
3217
|
<div part="remaining"></div>
|
3217
3218
|
</div>
|
3218
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${
|
3219
|
-
${e?
|
3219
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${Cr()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=Zt.ERROR:this.clampedValue===100?this.helpTextType=Zt.SUCCESS:this.helpTextType=Zt.DEFAULT,this.helpTextType}render(){let e=this.variant===dn.INLINE;return F`
|
3220
|
+
${e?F`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:F`
|
3220
3221
|
<div part="label-container">
|
3221
3222
|
${this.renderLabelElement()}
|
3222
|
-
${this.variant===
|
3223
|
+
${this.variant===dn.DEFAULT&&this.label?F`<span part="percentage">${this.clampedValue}%</span>`:""}
|
3223
3224
|
</div>
|
3224
3225
|
${this.renderProgressbar()}
|
3225
3226
|
${this.renderHelperText()}
|
3226
3227
|
`}
|
3227
|
-
`}};
|
3228
|
+
`}};zi.styles=[...Ve.styles,...ap],y([A({type:String,reflect:!0})],zi.prototype,"variant",2),y([A({type:String,reflect:!0})],zi.prototype,"value",2),y([A({type:Boolean,attribute:"error"})],zi.prototype,"error",2);var Ms=zi;Ms.register(np);var Cg=Ms;var wg=W`
|
3228
3229
|
:host {
|
3229
3230
|
--mdc-spinner-size: 3rem;
|
3230
3231
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
@@ -3268,52 +3269,52 @@
|
|
3268
3269
|
color: var(--mdc-progress-error-color);
|
3269
3270
|
margin: 0.5rem;
|
3270
3271
|
}
|
3271
|
-
`,
|
3272
|
+
`,cp=[wg];var dp=j.constructTagName("progressspinner"),qt={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"},tc={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var ec=l=>{if(l===0)return 0;let o=l/100*qt.CIRCUMFERENCE-qt.GAP_SIZE;return Math.max(o,.1*l)},hp=l=>{let o=qt.CIRCUMFERENCE-ec(l)-2*qt.GAP_SIZE;return l===0?qt.CIRCUMFERENCE:o<0?0:o},mp=l=>l===0?0:qt.GAP_SIZE*.5,pp=(l,o)=>{let e=o+qt.GAP_SIZE*1.5;return l===0?0:e};var hn=class extends Ms{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.requiredLabel=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var h;let o=ec(this.clampedValue),e=hp(this.clampedValue),s=mp(this.clampedValue),n=pp(this.clampedValue,o);return F`
|
3272
3273
|
<div
|
3273
3274
|
part="spinner-container ${this.variant}"
|
3274
3275
|
role="progressbar"
|
3275
3276
|
aria-valuenow="${this.clampedValue}"
|
3276
3277
|
aria-valuemin="0"
|
3277
3278
|
aria-valuemax="100"
|
3278
|
-
aria-label="${(
|
3279
|
+
aria-label="${(h=this.dataAriaLabel)!=null?h:""}"
|
3279
3280
|
>
|
3280
3281
|
<svg part="spinner-base">
|
3281
3282
|
<circle
|
3282
3283
|
part="spinner-track"
|
3283
3284
|
cx="24"
|
3284
3285
|
cy="24"
|
3285
|
-
r="${
|
3286
|
-
stroke-width="${e===0?0:
|
3287
|
-
stroke-dasharray="${e} ${
|
3288
|
-
stroke-dashoffset="-${
|
3286
|
+
r="${qt.RADIUS}"
|
3287
|
+
stroke-width="${e===0?0:qt.STROKE_WIDTH}"
|
3288
|
+
stroke-dasharray="${e} ${qt.CIRCUMFERENCE}"
|
3289
|
+
stroke-dashoffset="-${n}"
|
3289
3290
|
/>
|
3290
3291
|
<circle
|
3291
3292
|
part="spinner-progress"
|
3292
3293
|
cx="24"
|
3293
3294
|
cy="24"
|
3294
|
-
r="${
|
3295
|
-
stroke-width="${
|
3296
|
-
stroke-dasharray="${
|
3297
|
-
stroke-dashoffset="-${
|
3295
|
+
r="${qt.RADIUS}"
|
3296
|
+
stroke-width="${o===0?0:qt.STROKE_WIDTH}"
|
3297
|
+
stroke-dasharray="${o} ${qt.CIRCUMFERENCE}"
|
3298
|
+
stroke-dashoffset="-${s}"
|
3298
3299
|
/>
|
3299
3300
|
</svg>
|
3300
3301
|
</div>
|
3301
|
-
`}renderErrorState(){var
|
3302
|
+
`}renderErrorState(){var o;return F`
|
3302
3303
|
<mdc-icon
|
3303
3304
|
part="error-icon"
|
3304
|
-
aria-label="${(
|
3305
|
-
name="${
|
3306
|
-
size="${
|
3307
|
-
length-unit="${
|
3308
|
-
`}renderSuccessState(){var
|
3305
|
+
aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
|
3306
|
+
name="${tc.ERROR_LEGACY_FILLED}"
|
3307
|
+
size="${qt.ERROR_ICON_SIZE}"
|
3308
|
+
length-unit="${qt.ICON_LENGTH_UNIT}"></mdc-icon>
|
3309
|
+
`}renderSuccessState(){var o;return F`
|
3309
3310
|
<mdc-icon
|
3310
3311
|
part="success-icon"
|
3311
|
-
aria-label="${(
|
3312
|
-
name="${
|
3313
|
-
size="${
|
3314
|
-
length-unit="${
|
3315
|
-
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():
|
3316
|
-
${this.renderProgressSpinner()}`}};
|
3312
|
+
aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
|
3313
|
+
name="${tc.CHECK_CIRCLE_BOLD}"
|
3314
|
+
size="${qt.SUCCESS_ICON_SIZE}"
|
3315
|
+
length-unit="${qt.ICON_LENGTH_UNIT}"></mdc-icon>
|
3316
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():F`
|
3317
|
+
${this.renderProgressSpinner()}`}};hn.styles=[...J.styles,...cp];var rc=hn;rc.register(dp);var Ig=rc;var Lg=[Et,W`
|
3317
3318
|
:host{
|
3318
3319
|
display: flex;
|
3319
3320
|
flex-direction: row;
|
@@ -3400,10 +3401,10 @@
|
|
3400
3401
|
display: none;
|
3401
3402
|
}
|
3402
3403
|
|
3403
|
-
`,...
|
3404
|
+
`,..._t(!0)],up=Lg;var $i=class extends Se(Bt(pe)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?F`<div class="mdc-radio__label-container">
|
3404
3405
|
${this.renderLabel()}
|
3405
3406
|
${this.renderHelperText()}
|
3406
|
-
</div>`:
|
3407
|
+
</div>`:Z}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let s=e.constructor;this.dispatchEvent(new s(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(s=>{s.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(s=>{this.onerror&&this.onerror(s)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,s){this.updateComplete.then(()=>{e.forEach(n=>{n.setComponentValidity(s)})}).catch(n=>{this.onerror&&this.onerror(n)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let s=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(s,!0);else{let n=s.some(S=>S.requiredLabel),h=!!s.find(S=>S.checked),f=n&&!h;this.setGroupValidity(s,!f)}this.internals.setFormValue(e)}handleChange(e){var h;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(f=>{var M;let S=(M=f.shadowRoot)==null?void 0:M.querySelector("input");S&&(f.checked=!1,S.checked=!1)}),this.checked=!0;let n=(h=this.shadowRoot)==null?void 0:h.querySelector("input");n&&(n.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,s,n){var h,f;(f=(h=e[s].shadowRoot)==null?void 0:h.querySelector("input"))==null||f.focus(),e[s].handleChange(n)}handleKeyDown(e){var f;if(this.disabled)return;let n=this.getAllRadiosWithinSameGroup().filter(S=>!S.disabled),h=n.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let S=(h+1)%n.length;this.updateRadio(n,S,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let S=(h-1+n.length)%n.length;this.updateRadio(n,S,e)}else e.key===" "&&this.updateRadio(n,h,e);this.updateTabIndex(),e.key==="Enter"&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),s=e.find(h=>h.checked),n=e.find(h=>!h.disabled);e.forEach(h=>{var S;let f=(S=h.shadowRoot)==null?void 0:S.querySelector("input");f&&(f.tabIndex=-1,(h===s||!s&&h===n)&&(f.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return F`
|
3407
3408
|
<mdc-staticradio
|
3408
3409
|
class="mdc-focus-ring"
|
3409
3410
|
?checked="${this.checked}"
|
@@ -3415,8 +3416,8 @@
|
|
3415
3416
|
type="radio"
|
3416
3417
|
role="radio"
|
3417
3418
|
?autofocus="${this.autofocus}"
|
3418
|
-
name="${
|
3419
|
-
value="${
|
3419
|
+
name="${mt(this.name)}"
|
3420
|
+
value="${mt(this.value)}"
|
3420
3421
|
?required="${!!this.requiredLabel}"
|
3421
3422
|
@change=${this.handleChange}
|
3422
3423
|
@keydown=${this.handleKeyDown}
|
@@ -3425,17 +3426,17 @@
|
|
3425
3426
|
?disabled=${this.disabled}
|
3426
3427
|
class="mdc-radio__input"
|
3427
3428
|
aria-checked="${this.checked}"
|
3428
|
-
aria-describedby="${
|
3429
|
+
aria-describedby="${mt(this.helpText?zt.HELPER_TEXT_ID:"")}"
|
3429
3430
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
3430
3431
|
/>
|
3431
3432
|
</mdc-staticradio>
|
3432
3433
|
${this.renderLabelAndHelperText()}
|
3433
|
-
`}}
|
3434
|
+
`}};$i.styles=[...pe.styles,...up],y([A({type:Boolean,reflect:!0})],$i.prototype,"checked",2),y([A({type:Boolean,reflect:!0})],$i.prototype,"readonly",2),y([A({type:Boolean,reflect:!0})],$i.prototype,"autofocus",2);var ic=$i;var mn=j.constructTagName("radio");ic.register(mn);var Mg=ic;var Ns=class extends en{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,s,n,h,f;(f=(h=(n=(s=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:s.flatMap(S=>S.assignedElements({flatten:!0})))==null?void 0:n.filter(S=>S.tagName.toLowerCase()===mn||S.tagName.toLowerCase()===Ba))==null?void 0:h.filter(S=>!S.hasAttribute("name")))==null||f.forEach(S=>{S.setAttribute("name",this.name),this.requiredLabel&&S.setAttribute("required-label",this.requiredLabel)})}};Ns.styles=[...en.styles],y([A({type:String})],Ns.prototype,"name",2);var oc=Ns;var fp=j.constructTagName("radiogroup");oc.register(fp);var Ng=oc;var vp=j.constructTagName("screenreaderannouncer"),Rg={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Io={ARIA_LIVE:Rg.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Og=[W`
|
3434
3435
|
:host {
|
3435
3436
|
display: none;
|
3436
3437
|
visibility: hidden;
|
3437
3438
|
}
|
3438
|
-
`],
|
3439
|
+
`],gp=Og;var Pr=class extends J{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=Io.ARIA_LIVE;this.delay=Io.DELAY;this.timeout=Io.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,s,n,h){var f;if(e.length>0){let S=`mdc-screenreaderannouncer-announcement-${Cr()}`,M=document.createElement("div");M.id=S,M.ariaLive=h,(f=document.getElementById(this.identity))==null||f.appendChild(M);let B=window.setTimeout(()=>{let G=document.createElement("p");G.textContent=e,M.appendChild(G),this.ariaLiveAnnouncementIds.push(S);let q=window.setTimeout(()=>{var ot;(ot=document.getElementById(S))==null||ot.remove()},n);this.timeOutIds.push(q)},s);this.timeOutIds.push(B)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var s;(s=document.getElementById(e))==null||s.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let s=document.createElement("style");s.textContent=`
|
3439
3440
|
.mdc-screenreaderannouncer__visually-hidden {
|
3440
3441
|
clip: rect(0 0 0 0);
|
3441
3442
|
clip-path: inset(50%);
|
@@ -3445,7 +3446,7 @@
|
|
3445
3446
|
white-space: nowrap;
|
3446
3447
|
width: 1px;
|
3447
3448
|
}
|
3448
|
-
`,e.appendChild(
|
3449
|
+
`,e.appendChild(s),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Io.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=Io.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Pr.styles=[...J.styles,...gp],y([A({type:String,reflect:!0})],Pr.prototype,"announcement",2),y([A({type:String,reflect:!0})],Pr.prototype,"identity",2),y([A({type:String,reflect:!0,attribute:"data-aria-live"})],Pr.prototype,"dataAriaLive",2),y([A({type:Number,reflect:!0})],Pr.prototype,"delay",2),y([A({type:Number,reflect:!0})],Pr.prototype,"timeout",2);var sc=Pr;sc.register(vp);var Pg=sc;var Dg=W`
|
3449
3450
|
|
3450
3451
|
:host::part(filters-container){
|
3451
3452
|
display: flex;
|
@@ -3472,9 +3473,9 @@
|
|
3472
3473
|
scrollbar-width: none;
|
3473
3474
|
}
|
3474
3475
|
|
3475
|
-
`,
|
3476
|
+
`,bp=[Dg];var yp=j.constructTagName("searchfield"),Rs={TYPE:Bl.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:on};var Vi=class extends So{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(e){super.handleKeyDown(e),e.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=Rs.ICON,this.trailingButton=Rs.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var e;this.hasInputChips=!!((e=this.inputChips)!=null&&e.length),this.inputChips&&this.inputChips.forEach(s=>{s.matches(Rs.INPUT_CHIP_TAG)||s.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var e;super.clearInputText(),(e=this.inputChips)==null||e.forEach(s=>{s.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return F`
|
3476
3477
|
${this.renderLabelElement()}
|
3477
|
-
<div class="${
|
3478
|
+
<div class="${mo({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
|
3478
3479
|
${this.renderLeadingIcon()}
|
3479
3480
|
<div part='scrollable-container' tabindex='-1'>
|
3480
3481
|
<div part="filters-container"
|
@@ -3482,11 +3483,11 @@
|
|
3482
3483
|
@keydown=${e=>e.key==="Enter"?this.inputElement.focus():null}
|
3483
3484
|
@keyup=${e=>e.key===" "?this.inputElement.focus():null}>
|
3484
3485
|
<slot name="filters" @slotchange=${this.renderInputChips}></slot></div>
|
3485
|
-
${this.renderInputElement(
|
3486
|
+
${this.renderInputElement(Rs.TYPE,this.hasInputChips)}
|
3486
3487
|
</div>
|
3487
3488
|
${this.renderTrailingButton(this.hasInputChips)}
|
3488
3489
|
</div>
|
3489
|
-
`}};
|
3490
|
+
`}};Vi.styles=[...So.styles,...bp],y([Gt({slot:"filters"})],Vi.prototype,"inputChips",2),y([At()],Vi.prototype,"isInputFocused",2),y([At()],Vi.prototype,"hasInputChips",2);var ac=Vi;ac.register(yp);var Fg=ac;var xp=j.constructTagName("select"),pn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var zg=W`
|
3490
3491
|
:host {
|
3491
3492
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
3492
3493
|
--mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
|
@@ -3592,7 +3593,7 @@
|
|
3592
3593
|
:host([help-text-type="warning"])::part(base-container) {
|
3593
3594
|
border-color: var(--mdc-select-warning-border-color);
|
3594
3595
|
}
|
3595
|
-
`,
|
3596
|
+
`,Ep=[zg,..._t(!0)];var ce=class extends Se(Bt(pe)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=pn.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant="";this.popoverWidth="100%"}connectedCallback(){super.connectedCallback(),this.value=void 0,this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown)}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(s=>s.tagName.toLowerCase()===Ls?s:s.tagName.toLowerCase()===cn?Array.from(s.children).filter(n=>n.tagName.toLowerCase()===Ls):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=pn.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=pn.ARROW_DOWN}updateTabIndexForAllOptions(e){var n;let s=!1;this.getAllValidOptions().forEach(h=>{h===e?(this.setSelectedValue(h),s=!0,h.setAttribute("selected",""),h.setAttribute("tabindex","0")):(h==null||h.setAttribute("tabindex","-1"),h==null||h.removeAttribute("selected"))}),!s&&((n=this.getAllValidOptions()[0])==null||n.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var s,n,h,f;this.selectedValueText=(n=(s=e==null?void 0:e.getAttribute("label"))!=null?s:e==null?void 0:e.textContent)!=null?n:"",this.selectedIcon=e==null?void 0:e.getAttribute("prefix-icon"),this.selectedValue=(f=(h=e==null?void 0:e.getAttribute("value"))!=null?h:e==null?void 0:e.textContent)!=null?f:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.selectedIcon=null,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var s;switch(e.key){case Ot.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case Ot.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(s=this.form)==null||s.requestSubmit();break;case Ot.ESCAPE:this.closePopover(),e.stopPropagation();break;case Ot.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case Ot.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case Ot.ARROW_DOWN:case Ot.ARROW_UP:case Ot.PAGE_DOWN:case Ot.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case Ot.ARROW_DOWN:case Ot.ARROW_UP:case Ot.ENTER:case Ot.SPACE:this.openPopover(),e.preventDefault();break;case Ot.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case Ot.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let s=this.getAllValidOptions(),n=s.findIndex(f=>f===e.target),h=this.getNewIndexBasedOnKey(e.key,n,s.length);h!==-1&&(this.setFocusAndTabIndex(h),e.preventDefault())}getNewIndexBasedOnKey(e,s,n){return e===Ot.ARROW_DOWN&&s!==n-1?s+1:e===Ot.ARROW_UP&&s>0?s-1:e===Ot.PAGE_DOWN?s+10>n?n-1:s+10:e===Ot.PAGE_UP?s-10<0?0:s-10:-1}updateActivedescendant(e){var n,h;let s=this.getAllValidOptions().findIndex(f=>f===e);this.activeDescendant=(h=(n=this.getAllValidOptions()[s])==null?void 0:n.id)!=null?h:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var s;(s=this.getAllValidOptions()[e])==null||s.focus(),this.getAllValidOptions().forEach((n,h)=>{let f=e===h?"0":"-1";n==null||n.setAttribute("tabindex",f)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),s=e.findIndex(n=>n==null?void 0:n.hasAttribute("selected"));s!==-1?(this.setSelectedValue(e[s]),this.updateTabIndexForAllOptions(e[s])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){return F`
|
3596
3597
|
<select
|
3597
3598
|
part="native-select"
|
3598
3599
|
id="${this.id}"
|
@@ -3607,17 +3608,17 @@
|
|
3607
3608
|
>
|
3608
3609
|
${this.getOptionsContentFromSlot()}
|
3609
3610
|
</select>
|
3610
|
-
`}getOptionsContentFromSlot(){return this.getAllValidOptions().map(e=>{var
|
3611
|
+
`}getOptionsContentFromSlot(){return this.getAllValidOptions().map(e=>{var s,n;return F`
|
3611
3612
|
<option
|
3612
3613
|
part="native-select"
|
3613
|
-
value="${(
|
3614
|
-
label="${(
|
3614
|
+
value="${(s=e.getAttribute("value"))!=null?s:""}"
|
3615
|
+
label="${(n=e.getAttribute("label"))!=null?n:""}"
|
3615
3616
|
?disabled="${!!e.hasAttribute("disabled")}"
|
3616
3617
|
?selected="${!!e.hasAttribute("selected")}"
|
3617
3618
|
>
|
3618
3619
|
${e.textContent}
|
3619
3620
|
</option>
|
3620
|
-
`})}getPopoverContent(){return this.disabled||this.readonly?
|
3621
|
+
`})}getPopoverContent(){return this.disabled||this.readonly?Z:F`
|
3621
3622
|
<mdc-popover
|
3622
3623
|
id="options-popover"
|
3623
3624
|
triggerid="select-base-triggerid"
|
@@ -3627,14 +3628,14 @@
|
|
3627
3628
|
focus-back-to-trigger
|
3628
3629
|
focus-trap
|
3629
3630
|
role="listbox"
|
3630
|
-
placement="${
|
3631
|
+
placement="${fe.BOTTOM_START}"
|
3631
3632
|
@shown="${this.handlePopoverOpen}"
|
3632
3633
|
@hidden="${this.handlePopoverClose}"
|
3633
3634
|
style="--mdc-popover-max-width: ${this.popoverWidth}; --mdc-popover-max-height: ${this.height};"
|
3634
3635
|
>
|
3635
3636
|
<slot @click="${this.handleOptionsClick}"></slot>
|
3636
3637
|
</mdc-popover>
|
3637
|
-
`}updated(e){super.updated(e),(e.has("disabled")||e.has("readonly"))&&(this.closePopover(),this.handlePopoverClose())}render(){var e,
|
3638
|
+
`}updated(e){super.updated(e),(e.has("disabled")||e.has("readonly"))&&(this.closePopover(),this.handlePopoverClose())}render(){var e,s;return F`
|
3638
3639
|
${this.renderLabel()}
|
3639
3640
|
<div part="container">
|
3640
3641
|
<div
|
@@ -3646,16 +3647,16 @@
|
|
3646
3647
|
aria-activedescendant="${this.activeDescendant}"
|
3647
3648
|
aria-haspopup="listbox"
|
3648
3649
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
3649
|
-
aria-labelledby="${this.label?
|
3650
|
+
aria-labelledby="${this.label?zt.HEADING_ID:""}"
|
3650
3651
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
3651
3652
|
>
|
3652
|
-
${this.selectedIcon?
|
3653
|
+
${this.selectedIcon?F`<mdc-icon length-unit="rem" size="1" name="${this.selectedIcon}" part="selected-icon"></mdc-icon>`:Z}
|
3653
3654
|
<mdc-text
|
3654
3655
|
part="base-text ${this.selectedValueText?"selected":""}"
|
3655
|
-
type="${
|
3656
|
-
tagname="${
|
3656
|
+
type="${lt.BODY_MIDSIZE_REGULAR}"
|
3657
|
+
tagname="${xt.SPAN}"
|
3657
3658
|
>
|
3658
|
-
${(
|
3659
|
+
${(s=this.selectedValueText)!=null?s:this.placeholder}
|
3659
3660
|
</mdc-text>
|
3660
3661
|
<div part="icon-container">
|
3661
3662
|
<mdc-icon size="1" length-unit="rem" name="${this.baseIconName}"></mdc-icon>
|
@@ -3665,7 +3666,7 @@
|
|
3665
3666
|
${this.getPopoverContent()}
|
3666
3667
|
</div>
|
3667
3668
|
${this.renderHelperText()}
|
3668
|
-
`}};
|
3669
|
+
`}};ce.styles=[...pe.styles,...Ep],y([A({type:String})],ce.prototype,"placeholder",2),y([A({type:Boolean})],ce.prototype,"readonly",2),y([A({type:String})],ce.prototype,"height",2),y([Gt()],ce.prototype,"optionsList",2),y([At()],ce.prototype,"baseIconName",2),y([At()],ce.prototype,"selectedValueText",2),y([At()],ce.prototype,"selectedIcon",2),y([At()],ce.prototype,"selectedValue",2),y([At()],ce.prototype,"displayPopover",2),y([At()],ce.prototype,"activeDescendant",2),y([At()],ce.prototype,"popoverWidth",2),y([Tr("select")],ce.prototype,"inputElement",2);var nc=ce;nc.register(xp);var $g=nc;var Vg=[Et,W`
|
3669
3670
|
:host {
|
3670
3671
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
3671
3672
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -3727,11 +3728,11 @@
|
|
3727
3728
|
stroke-dashoffset: -292;
|
3728
3729
|
}
|
3729
3730
|
}
|
3730
|
-
`],
|
3731
|
+
`],Tp=Vg;var Ap=j.constructTagName("spinner"),Bg={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ug={STANDALONE:"standalone",BUTTON:"button"},un={VARIANT:Ug.STANDALONE,SIZE:Bg.MIDSIZE,INVERTED:!1};var ii=class extends J{constructor(){super(...arguments);this.inverted=un.INVERTED;this.size=un.SIZE;this.ariaLabel=null;this.variant=un.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return F`
|
3731
3732
|
<svg part="container" viewBox="0 0 100 100">
|
3732
3733
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
3733
3734
|
</svg>
|
3734
|
-
`}};
|
3735
|
+
`}};ii.styles=[...J.styles,...Tp],y([A({type:Boolean,reflect:!0})],ii.prototype,"inverted",2),y([A({type:String,reflect:!0})],ii.prototype,"size",2),y([A({type:String,attribute:"aria-label"})],ii.prototype,"ariaLabel",2),y([A({type:String,reflect:!0})],ii.prototype,"variant",2);var lc=ii;lc.register(Ap);var Hg=lc;var _p=j.constructTagName("statictoggle"),Gg={DEFAULT:"default",COMPACT:"compact"},cc={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Sp={compact:.75,default:1.25},kp={SIZE:Gg.DEFAULT};var jg=[W`
|
3735
3736
|
:host {
|
3736
3737
|
--mdc-statictoggle-width: 3rem;
|
3737
3738
|
--mdc-statictoggle-height: 1.5rem;
|
@@ -3810,17 +3811,17 @@
|
|
3810
3811
|
border: var(--mdc-statictoggle-border);
|
3811
3812
|
}
|
3812
3813
|
}
|
3813
|
-
`],
|
3814
|
+
`],Cp=jg;var Lo=class extends Dt(J){constructor(){super(...arguments);this.checked=!1;this.size=kp.SIZE}render(){return F`
|
3814
3815
|
<slot></slot>
|
3815
3816
|
<div part="slider">
|
3816
3817
|
<mdc-icon
|
3817
|
-
name="${this.checked?
|
3818
|
+
name="${this.checked?cc.CHECKED:cc.UNCHECKED}"
|
3818
3819
|
class="icon"
|
3819
3820
|
length-unit="rem"
|
3820
|
-
size="${
|
3821
|
+
size="${Sp[this.size]}"
|
3821
3822
|
></mdc-icon>
|
3822
3823
|
</div>
|
3823
|
-
`}};
|
3824
|
+
`}};Lo.styles=[...J.styles,...Cp],y([A({type:Boolean,reflect:!0})],Lo.prototype,"checked",2),y([A({type:String,reflect:!0})],Lo.prototype,"size",2);var dc=Lo;dc.register(_p);var Wg=dc;var qg=[Et,W`
|
3824
3825
|
|
3825
3826
|
:host {
|
3826
3827
|
--mdc-tab-content-gap: 0.5rem;
|
@@ -4064,21 +4065,21 @@
|
|
4064
4065
|
color: var(--mdc-tab-pill-active-color-disabled);
|
4065
4066
|
}
|
4066
4067
|
|
4067
|
-
`,...
|
4068
|
+
`,..._t()],wp=qg;var Ip=j.constructTagName("tab"),hc={GLASS:"glass",LINE:"line",PILL:"pill"},fn={VARIANT:hc.PILL,ACTIVE:!1};var oi=class extends Ae(Te){constructor(){super(...arguments);this.active=fn.ACTIVE;this.variant=fn.VARIANT;this.handleTabActiveChange=e=>{let s=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(s)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${vs(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(hc).includes(e)?e:fn.VARIANT)}setActive(e,s){super.setActive(e,s),this.modifyIconName(s)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return F`
|
4068
4069
|
<div part="container">
|
4069
|
-
${this.iconName?
|
4070
|
-
${this.text?
|
4071
|
-
type=${this.active?
|
4072
|
-
tagname=${
|
4070
|
+
${this.iconName?F` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:Z}
|
4071
|
+
${this.text?F` <mdc-text
|
4072
|
+
type=${this.active?lt.BODY_MIDSIZE_BOLD:lt.BODY_MIDSIZE_MEDIUM}
|
4073
|
+
tagname=${xt.SPAN}
|
4073
4074
|
data-text=${this.text}
|
4074
4075
|
part="text"
|
4075
4076
|
>${this.text}</mdc-text
|
4076
|
-
>`:
|
4077
|
+
>`:Z}
|
4077
4078
|
<slot name="badge"></slot>
|
4078
4079
|
<slot name="chip"></slot>
|
4079
4080
|
</div>
|
4080
4081
|
<div part="indicator"></div>
|
4081
|
-
`}};
|
4082
|
+
`}};oi.styles=[...Te.styles,...wp],y([A({type:Boolean,reflect:!0})],oi.prototype,"active",2),y([A({type:String,reflect:!0})],oi.prototype,"text",2),y([A({type:String,reflect:!0})],oi.prototype,"variant",2),y([A({type:String,reflect:!0,attribute:"tab-id"})],oi.prototype,"tabId",2);var Be=oi;Be.register(Ip);var Yg=Be;var Kg=[ya,W`
|
4082
4083
|
:host {
|
4083
4084
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
4084
4085
|
--mdc-tablist-gap: 0.5rem;
|
@@ -4108,20 +4109,20 @@
|
|
4108
4109
|
:host mdc-button[prefix-icon="arrow-right-regular"] {
|
4109
4110
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
4110
4111
|
}
|
4111
|
-
`],
|
4112
|
+
`],Lp=[...Kg];var Mp=j.constructTagName("tablist"),Os={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Mo={FORWARD:"forward",BACKWARD:"backward"};var vn=l=>l[0],mc=l=>l[l.length-1],Np=(l,o)=>{let e=l.findIndex(s=>o===s)-1;return l[(e+l.length)%l.length]},Rp=(l,o)=>{let e=l.findIndex(s=>o===s)+1;return l[e%l.length]},Op=(l,o)=>l.find(e=>e.tabId===o),pc=l=>l.find(o=>o.active);var er=class extends J{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.fireTabChangeEvent=e=>{let s=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(s)};this.handleFocus=async e=>{if(e.relatedTarget instanceof Be||!(e.target instanceof Be))return;let s=pc(this.tabs||[]);s instanceof Be&&await this.focusTab(s)};this.handleMousedown=e=>{e.target instanceof Be&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let s=e.target;s instanceof Be&&(this.setActiveTab(s),await this.focusTab(s),this.activeTabId=s.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var s;(s=this.tabs)==null||s.forEach(n=>{n.setAttribute("tabindex",n===e?"0":"-1")})};this.setActiveTab=e=>{var s;(s=this.tabs)==null||s.forEach(n=>{n===e?n.setAttribute("active",""):n.removeAttribute("active")})};this.focusTab=async e=>{e instanceof Be&&(e!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let s=e.target;if(!(s instanceof Be)||!this.tabs)return;let n=Np(this.tabs,s),h=Rp(this.tabs,s),f=vn(this.tabs),S=mc(this.tabs);switch(e.code){case Os.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?h:n);break;case Os.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?n:h);break;case Os.HOME:await this.focusTab(f);break;case Os.END:await this.focusTab(S);break;default:}};this.shouldShowArrowButton=e=>e===Mo.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,s;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=pc(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((s=this.notFocusedArrowButton)==null||s.focus())};this.handleArrowButtonVisibility=async()=>{var q,ot,Q;if(!this.tabs||!this.tabsContainer)return;let e=!1;((q=this.shadowRoot)==null?void 0:q.activeElement)instanceof xi&&(e=!0);let s=vn(this.tabs),n=mc(this.tabs),h=s.getBoundingClientRect().left,f=(ot=this.tabsContainer)==null?void 0:ot.getBoundingClientRect().left,S=n.getBoundingClientRect().right,M=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().right,B=s.getBoundingClientRect().right,G=n.getBoundingClientRect().left;if(!this.isRtl()){h<=f?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,S>M?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}B>M?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,G<f?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var h;let s=this.isRtl()?-1:1,n=this.isRtl()?1:-1;(h=this.tabsContainer)==null||h.scrollBy({left:this.tabsContainer.clientWidth*(e===Mo.FORWARD?s:n),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var n,h,f;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(S=>S.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(n=vn(this.tabs))==null?void 0:n.tabId),(h=this.tabsContainer)==null||h.addEventListener("focusin",this.handleFocus),(f=this.tabsContainer)==null||f.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let s=Op(this.tabs,this.activeTabId);if(!(s instanceof Be))return;this.setActiveTab(s),e.get("activeTabId")?(this.fireTabChangeEvent(s),await this.focusTab(s)):this.resetTabIndexAndSetNewTabIndex(s)}}render(){let e=this.isRtl()?"left":"right",s=this.isRtl()?"right":"left",n=h=>F` ${this.shouldShowArrowButton(h)?F`<mdc-button
|
4112
4113
|
variant="tertiary"
|
4113
|
-
prefix-icon="arrow-${
|
4114
|
-
aria-label="Scroll tabs ${
|
4115
|
-
@click="${()=>this.scrollTabs(
|
4116
|
-
></mdc-button>`:
|
4114
|
+
prefix-icon="arrow-${h===Mo.FORWARD?e:s}-regular"
|
4115
|
+
aria-label="Scroll tabs ${h===Mo.FORWARD?e:s}"
|
4116
|
+
@click="${()=>this.scrollTabs(h)}"
|
4117
|
+
></mdc-button>`:Z}`;return F` ${n("backward")}
|
4117
4118
|
<div
|
4118
4119
|
class="container"
|
4119
4120
|
role="tablist"
|
4120
4121
|
tabindex="-1"
|
4121
|
-
aria-label="${
|
4122
|
+
aria-label="${mt(this.dataAriaLabel)}">
|
4122
4123
|
<slot></slot>
|
4123
4124
|
</div>
|
4124
|
-
${
|
4125
|
+
${n(Mo.FORWARD)}`}};er.styles=[...J.styles,...Lp],y([A({type:String,attribute:"active-tab-id",reflect:!0})],er.prototype,"activeTabId",2),y([A({type:String,attribute:"data-aria-label"})],er.prototype,"dataAriaLabel",2),y([Tr(".container")],er.prototype,"tabsContainer",2),y([Tr("mdc-button:not(:focus-visible)")],er.prototype,"notFocusedArrowButton",2),y([Gt({selector:"mdc-tab"})],er.prototype,"tabs",2),y([At()],er.prototype,"showForwardArrowButton",2),y([At()],er.prototype,"showBackwardArrowButton",2);var uc=er;uc.register(Mp);var Xg=uc;var Zg=[W`
|
4125
4126
|
:host {
|
4126
4127
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
4127
4128
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -4242,20 +4243,20 @@
|
|
4242
4243
|
pointer-events: none;
|
4243
4244
|
}
|
4244
4245
|
|
4245
|
-
`,...
|
4246
|
+
`,..._t(!0)],Pp=Zg;var Dp=j.constructTagName("textarea"),fc={HARD:"hard",SOFT:"soft"},Fp={OFF:"off",ON:"on"},gn={CHARACTER_COUNTER_TYPE:lt.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:fc.SOFT};var oe=class extends Se(Bt(Ve)){constructor(){super(...arguments);this.readonly=!1;this.rows=gn.ROWS;this.cols=gn.COLS;this.wrap=fc.SOFT;this.autocapitalize=rn.OFF;this.autocomplete=Fp.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(s=>{this.onerror&&this.onerror(s)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Zt.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,s,n){super.attributeChangedCallback(e,s,n),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(f=>{this.onerror&&this.onerror(f)})}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))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?F`
|
4246
4247
|
<mdc-text
|
4247
4248
|
part="character-counter"
|
4248
4249
|
tagname="span"
|
4249
|
-
type=${
|
4250
|
+
type=${gn.CHARACTER_COUNTER_TYPE}
|
4250
4251
|
>
|
4251
4252
|
${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
|
4252
4253
|
</mdc-text>
|
4253
|
-
`:
|
4254
|
+
`:Z}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?Z:F`
|
4254
4255
|
<div part="textarea-footer">
|
4255
4256
|
${this.renderHelperText()}
|
4256
4257
|
${this.renderCharacterCounter()}
|
4257
4258
|
</div>
|
4258
|
-
`}render(){var e;return
|
4259
|
+
`}render(){var e;return F`
|
4259
4260
|
${this.renderLabel()}
|
4260
4261
|
<div class="textarea-container mdc-focus-ring" part="textarea-container">
|
4261
4262
|
<textarea
|
@@ -4267,24 +4268,24 @@
|
|
4267
4268
|
?disabled="${this.disabled}"
|
4268
4269
|
?readonly="${this.readonly}"
|
4269
4270
|
?required="${!!this.requiredLabel}"
|
4270
|
-
placeholder=${
|
4271
|
-
rows=${
|
4272
|
-
cols=${
|
4273
|
-
wrap=${
|
4271
|
+
placeholder=${mt(this.placeholder)}
|
4272
|
+
rows=${mt(this.rows)}
|
4273
|
+
cols=${mt(this.cols)}
|
4274
|
+
wrap=${mt(this.wrap)}
|
4274
4275
|
?autofocus="${this.autofocus}"
|
4275
4276
|
autocapitalize=${this.autocapitalize}
|
4276
4277
|
autocomplete=${this.autocomplete}
|
4277
|
-
minlength=${
|
4278
|
-
maxlength=${
|
4279
|
-
dirname=${
|
4278
|
+
minlength=${mt(this.minlength)}
|
4279
|
+
maxlength=${mt(this.maxlength)}
|
4280
|
+
dirname=${mt(this.dirname)}
|
4280
4281
|
@input=${this.updateValue}
|
4281
4282
|
@change=${this.onChange}
|
4282
|
-
aria-describedby="${
|
4283
|
+
aria-describedby="${mt(this.helpText?zt.HELPER_TEXT_ID:"")}"
|
4283
4284
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
4284
4285
|
></textarea>
|
4285
4286
|
</div>
|
4286
4287
|
${this.renderTextareaFooter()}
|
4287
|
-
`}};
|
4288
|
+
`}};oe.styles=[...Ve.styles,...Pp],y([A({type:String})],oe.prototype,"placeholder",2),y([A({type:Boolean})],oe.prototype,"readonly",2),y([A({type:Number})],oe.prototype,"rows",2),y([A({type:Number})],oe.prototype,"cols",2),y([A({type:String})],oe.prototype,"wrap",2),y([A({type:String})],oe.prototype,"autocapitalize",2),y([A({type:String})],oe.prototype,"autocomplete",2),y([A({type:Boolean})],oe.prototype,"autofocus",2),y([A({type:String})],oe.prototype,"dirname",2),y([A({type:Number})],oe.prototype,"maxlength",2),y([A({type:Number})],oe.prototype,"minlength",2),y([A({type:Number,attribute:"max-character-limit"})],oe.prototype,"maxCharacterLimit",2),y([Tr("textarea")],oe.prototype,"inputElement",2);var vc=oe;vc.register(Dp);var Jg=vc;var bn=j.constructTagName("themeprovider"),gc={THEMECLASS:"mds-theme-stable-darkWebex"};var yn=class{constructor(o){this.themeclass=o}};yn.context=bn;var xn=yn;var Qg=W`
|
4288
4289
|
:host {
|
4289
4290
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
4290
4291
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -4313,7 +4314,7 @@
|
|
4313
4314
|
* {
|
4314
4315
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
4315
4316
|
}
|
4316
|
-
`,
|
4317
|
+
`,zp=[Qg];var No=class extends ro{constructor(){super({context:xn.context,initialValue:new xn(gc.THEMECLASS)});this.themeclass=gc.THEMECLASS}static get Context(){return xn.context}updated(e){super.updated(e),e.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(" "))}};No.styles=[...ro.styles,...zp],y([At()],No.prototype,"currentThemeClass",2),y([A({type:String})],No.prototype,"themeclass",2);var bc=No;bc.register(bn);var tb=bc;var $p=j.constructTagName("toggle"),Ps={DEFAULT:"default",COMPACT:"compact"};var yc={SIZE:Ps.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var eb=[Et,W`
|
4317
4318
|
:host {
|
4318
4319
|
--mdc-toggle-width: 3rem;
|
4319
4320
|
--mdc-toggle-height: 1.5rem;
|
@@ -4395,7 +4396,7 @@
|
|
4395
4396
|
:host([disabled]) .mdc-label-text, :host([disabled]) .mdc-help-text {
|
4396
4397
|
color: var(--mdc-toggle-label-color-disabled);
|
4397
4398
|
}
|
4398
|
-
`,...
|
4399
|
+
`,..._t(!0)],Vp=eb;var Bi=class extends Se(Bt(Ve)){constructor(){super(...arguments);this.checked=!1;this.size=yc.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var s;e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}handleChange(e){this.toggleState();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(Ps).includes(e)?e:yc.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return F`
|
4399
4400
|
<mdc-statictoggle
|
4400
4401
|
?checked="${this.checked}"
|
4401
4402
|
?disabled="${this.disabled}"
|
@@ -4410,12 +4411,12 @@
|
|
4410
4411
|
role="switch"
|
4411
4412
|
?autofocus="${this.autofocus}"
|
4412
4413
|
?required="${!!this.requiredLabel}"
|
4413
|
-
name="${
|
4414
|
-
value="${
|
4414
|
+
name="${mt(this.name)}"
|
4415
|
+
value="${mt(this.value)}"
|
4415
4416
|
.checked="${this.checked}"
|
4416
4417
|
aria-checked="${this.checked}"
|
4417
4418
|
.disabled="${this.disabled}"
|
4418
|
-
aria-describedby="${
|
4419
|
+
aria-describedby="${mt(this.helpText?zt.HELPER_TEXT_ID:"")}"
|
4419
4420
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
4420
4421
|
tabindex="${this.disabled?-1:0}"
|
4421
4422
|
@change="${this.handleChange}"
|
@@ -4424,7 +4425,7 @@
|
|
4424
4425
|
</mdc-statictoggle>
|
4425
4426
|
${this.renderLabel()}
|
4426
4427
|
${this.renderHelperText()}
|
4427
|
-
`}};
|
4428
|
+
`}};Bi.styles=[...Ve.styles,...Vp],y([A({type:Boolean,reflect:!0})],Bi.prototype,"checked",2),y([A({type:String,reflect:!0})],Bi.prototype,"size",2),y([A({type:Boolean,reflect:!0})],Bi.prototype,"autofocus",2);var xc=Bi;xc.register($p);var rb=xc;var Bp=j.constructTagName("toggletip"),Ui={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:fe.TOP,CLICK:Ii.CLICK,SHOW_ARROW:!0};var ib=W`
|
4428
4429
|
:host {
|
4429
4430
|
--mdc-toggletip-max-width: 400px;
|
4430
4431
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
@@ -4454,17 +4455,17 @@
|
|
4454
4455
|
:host(:dir(rtl))::part(popover-content) {
|
4455
4456
|
margin-left: 2rem;
|
4456
4457
|
}
|
4457
|
-
`,
|
4458
|
+
`,Up=[ib];var Hi=class extends tr{constructor(){super(...arguments);this.currentAnnouncement="";this.screenreaderAnnouncerIdentity=""}connectedCallback(){super.connectedCallback(),this.closeButton=Ui.CLOSE_BUTTON,this.closeButtonAriaLabel=Ui.CLOSE_BUTTON_ARIA_LABEL,this.placement=Ui.PLACEMENT,this.trigger=Ui.CLICK,this.showArrow=Ui.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0}getToggleTipText(){var e,s;return((s=(e=this.defaultSlotNodes)==null?void 0:e.map(n=>n.textContent).join(" "))==null?void 0:s.trim())||""}onPlacementUpdated(){Object.values(fe).includes(this.placement)||(this.placement=Ui.PLACEMENT)}update(e){super.update(e),e.has("placement")&&this.onPlacementUpdated(),e.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return F`
|
4458
4459
|
${super.render()}
|
4459
4460
|
<mdc-screenreaderannouncer
|
4460
4461
|
identity="${this.screenreaderAnnouncerIdentity}"
|
4461
4462
|
announcement="${this.currentAnnouncement}"
|
4462
4463
|
delay="300">
|
4463
4464
|
</mdc-screenreaderannouncer>
|
4464
|
-
`}};
|
4465
|
+
`}};Hi.styles=[...tr.styles,...Up],y([ba()],Hi.prototype,"defaultSlotNodes",2),y([At()],Hi.prototype,"currentAnnouncement",2),y([A({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Hi.prototype,"screenreaderAnnouncerIdentity",2);var Ec=Hi;Ec.register(Bp);var ob=Ec;function Gi(l,o,e){var h;let s=(h=e.initialDeps)!=null?h:[],n;return()=>{var f,S,M,B;let G;e.key&&((f=e.debug)!=null&&f.call(e))&&(G=Date.now());let q=l();if(!(q.length!==s.length||q.some((et,ct)=>s[ct]!==et)))return n;s=q;let Q;if(e.key&&((S=e.debug)!=null&&S.call(e))&&(Q=Date.now()),n=o(...q),e.key&&((M=e.debug)!=null&&M.call(e))){let et=Math.round((Date.now()-G)*100)/100,ct=Math.round((Date.now()-Q)*100)/100,bt=ct/16,gt=(yt,St)=>{for(yt=String(yt);yt.length<St;)yt=" "+yt;return yt};console.info(`%c\u23F1 ${gt(ct,5)} /${gt(et,5)} ms`,`
|
4465
4466
|
font-size: .6rem;
|
4466
4467
|
font-weight: bold;
|
4467
|
-
color: hsl(${Math.max(0,Math.min(120-120*k,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(p=e==null?void 0:e.onChange)==null||p.call(e,o),o}}function $i(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var Wc=(i,t)=>Math.abs(i-t)<1,qc=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var eh=i=>i,th=i=>{let t=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),r=[];for(let o=t;o<=e;o++)r.push(o);return r},Zc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:c,height:d}=s;t({width:Math.round(c),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(s=>{let c=s[0];if(c!=null&&c.borderBoxSize){let d=c.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},Kc={passive:!0};var rh=typeof window>"u"?!0:"onscrollend"in window,Xc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,a=i.options.useScrollendEvent&&rh?()=>{}:qc(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),s=p=>()=>{let{horizontal:h,isRtl:b}=i.options;o=h?e.scrollLeft*(b&&-1||1):e.scrollTop,a(),t(o,p)},c=s(!0),d=s(!1);return d(),e.addEventListener("scroll",c,Kc),e.addEventListener("scrollend",d,Kc),()=>{e.removeEventListener("scroll",c),e.removeEventListener("scrollend",d)}};var oh=(i,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var jc=(i,{adjustments:t=0,behavior:e},r)=>{var o,a;let s=i+t;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:e})},zi=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,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 e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,o])=>{typeof o>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:eh,rangeExtractor:th,onChange:()=>{},measureElement:oh,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,o;(o=(r=this.options).onChange)==null||o.call(r,this,e)},this.maybeNotify=jt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{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(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let o=new Map,a=new Map;for(let s=r-1;s>=0;s--){let c=e[s];if(o.has(c.lane))continue;let d=a.get(c.lane);if(d==null||c.end>d.end?a.set(c.lane,c):c.end<d.end&&o.set(c.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,c)=>s.end===c.end?s.index-c.index:s.end-c.end)[0]:void 0},this.getMeasurementOptions=jt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=jt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s},c)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let p=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let b=a(h),x=this.options.lanes===1?p[h-1]:this.getFurthestMeasurement(p,h),y=x?x.end+this.options.gap:r+o,T=c.get(b),S=typeof T=="number"?T:this.options.estimateSize(h),k=y+S,I=x?x.lane:h%this.options.lanes;p[h]={index:h,start:y,size:S,end:k,key:b,lane:I}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=jt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?ih({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=jt(()=>{let e=null,r=null,o=this.calculateRange();return o&&(e=o.startIndex,r=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,o,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,o=e.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let o=this.indexFromElement(e),a=this.measurementsCache[o];if(!a)return;let s=a.key,c=this.elementsCache.get(s);c!==e&&(c&&this.observer.unobserve(c),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var c;let o=this.measurementsCache[e];if(!o)return;let a=(c=this.itemSizeCache.get(o.key))!=null?c:o.size,s=r-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=jt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let c=e[a],d=r[c];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return $i(r[Qc(0,r.length-1,o=>$i(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),a=this.getScrollOffset();r==="auto"&&e>=a+o&&(r="end"),r==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(d,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let o=this.measurementsCache[e];if(!o)return;let a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let c=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(r){case"center":return[this.getOffsetForAlignment(c,r),r];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(e,{align:r="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let a=this.getOffsetForIndex(e,r);if(!a)return;let[s,c]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[p]=$i(this.getOffsetForIndex(e,c));Wc(p,this.getScrollOffset())||this.scrollToIndex(e,{align:c,behavior:o})}else this.scrollToIndex(e,{align:c,behavior:o})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var a;var e;let r=this.getMeasurements(),o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=r[r.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},Qc=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,a=e(o);if(a<r)i=o+1;else if(a>r)t=o-1;else return o}return i>0?i-1:0};function ih({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,a=Qc(0,r,c=>i[c].start,e),s=a;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var ys=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new zi(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Pi=class extends ys{constructor(t,e){super(t,{observeElementRect:Zc,observeElementOffset:Xc,scrollToFn:jc,...e})}};var{I:LD}=Ys;var Jc=i=>i.strings===void 0;var xo=(i,t)=>{var r;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(r=o._$AO)==null||r.call(o,t,!1),xo(o,t);return!0},Ui=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},ed=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),nh(t)}};function ah(i){this._$AN!==void 0?(Ui(this),this._$AM=i,ed(this)):this._$AM=i}function sh(i,t=!1,e=0){let r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(r))for(let a=e;a<r.length;a++)xo(r[a],!1),Ui(r[a]);else r!=null&&(xo(r,!1),Ui(r));else xo(this,i)}var nh=i=>{var t,e;i.type==Go.CHILD&&((t=i._$AP)!=null||(i._$AP=sh),(e=i._$AQ)!=null||(i._$AQ=ah))},Vi=class extends mr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),ed(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,o;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),e&&(xo(this,t),Ui(this))}setValue(t){if(Jc(this.t))this.t._$AI(t,this);else{let e=[...this.t._$AH];e[this.i]=t,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var td=()=>new Es,Es=class{},xs=new WeakMap,rd=Xr(class extends Vi{render(i){return g}update(i,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=i.options)==null?void 0:r.host,this.rt(this.ct=i.element)),g}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=xs.get(e);r===void 0&&(r=new WeakMap,xs.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t,e;return typeof this.Y=="function"?(t=xs.get((i=this.ht)!=null?i:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var lh=[u`
|
4468
|
+
color: hsl(${Math.max(0,Math.min(120-120*bt,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(B=e==null?void 0:e.onChange)==null||B.call(e,n),n}}function En(l,o){if(l===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return l}var Hp=(l,o)=>Math.abs(l-o)<1,Gp=(l,o,e)=>{let s;return function(...n){l.clearTimeout(s),s=l.setTimeout(()=>o.apply(this,n),e)}};var sb=l=>l,ab=l=>{let o=Math.max(l.startIndex-l.overscan,0),e=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let n=o;n<=e;n++)s.push(n);return s},Wp=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=f=>{let{width:S,height:M}=f;o({width:Math.round(S),height:Math.round(M)})};if(n(e.getBoundingClientRect()),!s.ResizeObserver)return()=>{};let h=new s.ResizeObserver(f=>{let S=f[0];if(S!=null&&S.borderBoxSize){let M=S.borderBoxSize[0];if(M){n({width:M.inlineSize,height:M.blockSize});return}}n(e.getBoundingClientRect())});return h.observe(e,{box:"border-box"}),()=>{h.unobserve(e)}},jp={passive:!0};var nb=typeof window>"u"?!0:"onscrollend"in window,qp=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=0,h=l.options.useScrollendEvent&&nb?()=>{}:Gp(s,()=>{o(n,!1)},l.options.isScrollingResetDelay),f=B=>()=>{let{horizontal:G,isRtl:q}=l.options;n=G?e.scrollLeft*(q&&-1||1):e.scrollTop,h(),o(n,B)},S=f(!0),M=f(!1);return M(),e.addEventListener("scroll",S,jp),e.addEventListener("scrollend",M,jp),()=>{e.removeEventListener("scroll",S),e.removeEventListener("scrollend",M)}};var lb=(l,o,e)=>{if(o!=null&&o.borderBoxSize){let s=o.borderBoxSize[0];if(s)return Math.round(s[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Yp=(l,{adjustments:o=0,behavior:e},s)=>{var n,h;let f=l+o;(h=(n=s.scrollElement)==null?void 0:n.scrollTo)==null||h.call(n,{[s.options.horizontal?"left":"top"]:f,behavior:e})},Tn=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,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 e=null,s=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(n=>{n.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var n;(n=s())==null||n.disconnect(),e=null},observe:n=>{var h;return(h=s())==null?void 0:h.observe(n,{box:"border-box"})},unobserve:n=>{var h;return(h=s())==null?void 0:h.unobserve(n)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([s,n])=>{typeof n>"u"&&delete e[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:sb,rangeExtractor:ab,onChange:()=>{},measureElement:lb,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var s,n;(n=(s=this.options).onChange)==null||n.call(s,this,e)},this.maybeNotify=Gi(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{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(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;var e;let s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(n=(e=this.scrollElement)==null?void 0:e.window)!=null?n:null,this.elementsCache.forEach(h=>{this.observer.observe(h)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,h=>{this.scrollRect=h,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(h,f)=>{this.scrollAdjustments=0,this.scrollDirection=f?this.getScrollOffset()<h?"forward":"backward":null,this.scrollOffset=h,this.isScrolling=f,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,s)=>{let n=new Map,h=new Map;for(let f=s-1;f>=0;f--){let S=e[f];if(n.has(S.lane))continue;let M=h.get(S.lane);if(M==null||S.end>M.end?h.set(S.lane,S):S.end<M.end&&n.set(S.lane,!0),n.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((f,S)=>f.end===S.end?f.index-S.index:f.end-S.end)[0]:void 0},this.getMeasurementOptions=Gi(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,s,n,h,f)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:f}),{key:!1}),this.getMeasurements=Gi(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:f},S)=>{if(!f)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(G=>{this.itemSizeCache.set(G.key,G.size)}));let M=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let B=this.measurementsCache.slice(0,M);for(let G=M;G<e;G++){let q=h(G),ot=this.options.lanes===1?B[G-1]:this.getFurthestMeasurement(B,G),Q=ot?ot.end+this.options.gap:s+n,et=S.get(q),ct=typeof et=="number"?et:this.options.estimateSize(G),bt=Q+ct,gt=ot?ot.lane:G%this.options.lanes;B[G]={index:G,start:Q,size:ct,end:bt,key:q,lane:gt}}return this.measurementsCache=B,B},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Gi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,s,n)=>this.range=e.length>0&&s>0?cb({measurements:e,outerSize:s,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Gi(()=>{let e=null,s=null,n=this.calculateRange();return n&&(e=n.startIndex,s=n.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,s]},(e,s,n,h,f)=>h===null||f===null?[]:e({startIndex:h,endIndex:f,overscan:s,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let s=this.options.indexAttribute,n=e.getAttribute(s);return n?parseInt(n,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(e,s)=>{let n=this.indexFromElement(e),h=this.measurementsCache[n];if(!h)return;let f=h.key,S=this.elementsCache.get(f);S!==e&&(S&&this.observer.unobserve(S),this.observer.observe(e),this.elementsCache.set(f,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,s,this))},this.resizeItem=(e,s)=>{var S;let n=this.measurementsCache[e];if(!n)return;let h=(S=this.itemSizeCache.get(n.key))!=null?S:n.size,f=s-h;f!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,f,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=f,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,s)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((s,n)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(n))});return}this._measureElement(e,void 0)},this.getVirtualItems=Gi(()=>[this.getIndexes(),this.getMeasurements()],(e,s)=>{let n=[];for(let h=0,f=e.length;h<f;h++){let S=e[h],M=s[S];n.push(M)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let s=this.getMeasurements();if(s.length!==0)return En(s[Kp(0,s.length-1,n=>En(s[n]).start,e)])},this.getOffsetForAlignment=(e,s)=>{let n=this.getSize(),h=this.getScrollOffset();s==="auto"&&e>=h+n&&(s="end"),s==="end"&&(e-=n);let f=this.options.horizontal?"scrollWidth":"scrollHeight",M=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[f]:this.scrollElement[f]:0)-n;return Math.max(Math.min(M,e),0)},this.getOffsetForIndex=(e,s="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let h=this.getSize(),f=this.getScrollOffset();if(s==="auto")if(n.end>=f+h-this.options.scrollPaddingEnd)s="end";else if(n.start<=f+this.options.scrollPaddingStart)s="start";else return[f,s];let S=n.start-this.options.scrollPaddingStart+(n.size-h)/2;switch(s){case"center":return[this.getOffsetForAlignment(S,s),s];case"end":return[this.getOffsetForAlignment(n.end+this.options.scrollPaddingEnd,s),s];default:return[this.getOffsetForAlignment(n.start-this.options.scrollPaddingStart,s),s]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:s="start",behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,s),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:s="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let h=this.getOffsetForIndex(e,s);if(!h)return;let[f,S]=h;this._scrollToOffset(f,{adjustments:void 0,behavior:n}),n!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[B]=En(this.getOffsetForIndex(e,S));Hp(B,this.getScrollOffset())||this.scrollToIndex(e,{align:S,behavior:n})}else this.scrollToIndex(e,{align:S,behavior:n})}))},this.scrollBy=(e,{behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var h;var e;let s=this.getMeasurements(),n;return s.length===0?n=this.options.paddingStart:n=this.options.lanes===1?(h=(e=s[s.length-1])==null?void 0:e.end)!=null?h:0:Math.max(...s.slice(-this.options.lanes).map(f=>f.end)),Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:s,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},Kp=(l,o,e,s)=>{for(;l<=o;){let n=(l+o)/2|0,h=e(n);if(h<s)l=n+1;else if(h>s)o=n-1;else return n}return l>0?l-1:0};function cb({measurements:l,outerSize:o,scrollOffset:e}){let s=l.length-1,h=Kp(0,s,S=>l[S].start,e),f=h;for(;f<s&&l[f].end<e+o;)f++;return{startIndex:h,endIndex:f}}var Tc=class{constructor(o,e){this.cleanup=()=>{},(this.host=o).addController(this);let s={...e,onChange:(n,h)=>{var f;this.host.updateComplete.then(()=>this.host.requestUpdate()),(f=e.onChange)==null||f.call(e,n,h)}};this.virtualizer=new Tn(s)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},An=class extends Tc{constructor(o,e){super(o,{observeElementRect:Wp,observeElementOffset:qp,scrollToFn:Yp,...e})}};var{I:N2}=Hd;var Xp=l=>l.strings===void 0;var Ds=(l,o)=>{var s;let e=l._$AN;if(e===void 0)return!1;for(let n of e)(s=n._$AO)==null||s.call(n,o,!1),Ds(n,o);return!0},_n=l=>{let o,e;do{if((o=l._$AM)===void 0)break;e=o._$AN,e.delete(l),l=o}while((e==null?void 0:e.size)===0)},Zp=l=>{for(let o;o=l._$AM;l=o){let e=o._$AN;if(e===void 0)o._$AN=e=new Set;else if(e.has(l))break;e.add(l),mb(o)}};function db(l){this._$AN!==void 0?(_n(this),this._$AM=l,Zp(this)):this._$AM=l}function hb(l,o=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(o)if(Array.isArray(s))for(let h=e;h<s.length;h++)Ds(s[h],!1),_n(s[h]);else s!=null&&(Ds(s,!1),_n(s));else Ds(this,l)}var mb=l=>{var o,e;l.type==wa.CHILD&&((o=l._$AP)!=null||(l._$AP=hb),(e=l._$AQ)!=null||(l._$AQ=db))},Sn=class extends ho{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,e,s){super._$AT(o,e,s),Zp(this),this.isConnected=o._$AU}_$AO(o,e=!0){var s,n;o!==this.isConnected&&(this.isConnected=o,o?(s=this.reconnected)==null||s.call(this):(n=this.disconnected)==null||n.call(this)),e&&(Ds(this,o),_n(this))}setValue(o){if(Xp(this.t))this.t._$AI(o,this);else{let e=[...this.t._$AH];e[this.i]=o,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var kn=()=>new _c,_c=class{},Ac=new WeakMap,Cn=ps(class extends Sn{render(l){return Z}update(l,[o]){var s;let e=o!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=o,this.ht=(s=l.options)==null?void 0:s.host,this.rt(this.ct=l.element)),Z}rt(l){var o;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let e=(o=this.ht)!=null?o:globalThis,s=Ac.get(e);s===void 0&&(s=new WeakMap,Ac.set(e,s)),s.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),s.set(this.Y,l),l!==void 0&&this.Y.call(this.ht,l)}else this.Y.value=l}get lt(){var l,o,e;return typeof this.Y=="function"?(o=Ac.get((l=this.ht)!=null?l:globalThis))==null?void 0:o.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var pb=[W`
|
4468
4469
|
:host::part(scroll) {
|
4469
4470
|
height: 100%;
|
4470
4471
|
width: 100%;
|
@@ -4474,31 +4475,31 @@
|
|
4474
4475
|
position: relative;
|
4475
4476
|
width: 100%;
|
4476
4477
|
}
|
4477
|
-
`],
|
4478
|
+
`],Jp=pb;var Qp=j.constructTagName("virtualizedlist"),Y2=j.constructTagName("virtualizedwrapper"),tu={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var ji=class extends J{constructor(){super();this.virtualizerProps=tu.VIRTUALIZER_PROPS;this.scrollElementRef=kn();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new An(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var S,M;this.virtualizer=e.getVirtualizer();let{getTotalSize:s,getVirtualItems:n,measureElement:h}=this.virtualizer,f=n();if(f!==this.virtualItems){this.virtualItems=f;let B=n(),G={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(M=(S=B[0])==null?void 0:S.start)!=null?M:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:B,measureElement:h,listStyle:G})}return F`<div
|
4478
4479
|
part="container"
|
4479
|
-
style="height: ${
|
4480
|
+
style="height: ${s()}px;"
|
4480
4481
|
>
|
4481
4482
|
<slot></slot>
|
4482
|
-
</div>`}render(){return
|
4483
|
-
${
|
4483
|
+
</div>`}render(){return F`<div
|
4484
|
+
${Cn(this.scrollElementRef)}
|
4484
4485
|
part="scroll"
|
4485
4486
|
@scroll=${this.onscroll&&this.onscroll}
|
4486
4487
|
>
|
4487
|
-
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):
|
4488
|
+
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):F``}
|
4488
4489
|
</div>
|
4489
|
-
`}};
|
4490
|
+
`}};ji.styles=[...J.styles,...Jp],y([A({type:Function,attribute:"onscroll"})],ji.prototype,"onscroll",2),y([A({type:Object,attribute:"virtualizerprops"})],ji.prototype,"virtualizerProps",2),y([A({type:Function,attribute:"setlistdata"})],ji.prototype,"setlistdata",2);var Sc=ji;Sc.register(Qp);var ub=Sc;var eu=j.constructTagName("menuitemradio"),kc={TRUE:"true",FALSE:"false"};var Fs=class extends Or{constructor(){super(...arguments);this.ariaChecked=kc.FALSE}connectedCallback(){super.connectedCallback(),this.role=jt.MENUITEMRADIO}render(){return F`
|
4490
4491
|
<div part="leading-controls">
|
4491
4492
|
<mdc-staticradio
|
4492
4493
|
slot="leading-controls"
|
4493
|
-
?checked="${this.ariaChecked===
|
4494
|
+
?checked="${this.ariaChecked===kc.TRUE}"
|
4494
4495
|
?disabled="${this.disabled}"
|
4495
4496
|
></mdc-staticradio>
|
4496
4497
|
</div>
|
4497
4498
|
<div part="leading-text">
|
4498
|
-
${this.getText("leading-text-primary-label",
|
4499
|
-
${this.getText("leading-text-secondary-label",
|
4499
|
+
${this.getText("leading-text-primary-label",lt.BODY_MIDSIZE_REGULAR,this.label)}
|
4500
|
+
${this.getText("leading-text-secondary-label",lt.BODY_MIDSIZE_REGULAR,this.secondaryLabel)}
|
4500
4501
|
</div>
|
4501
|
-
`}};
|
4502
|
+
`}};Fs.styles=[...Or.styles],y([A({type:String,reflect:!0,attribute:"aria-checked"})],Fs.prototype,"ariaChecked",2);var Cc=Fs;Cc.register(eu);var fb=Cc;var ru=j.constructTagName("menuitemcheckbox"),zs={FALSE:"false",TRUE:"true"},$s={CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},wc={ARIA_CHECKED:zs.FALSE,INDICATOR:$s.CHECKBOX};var vb=W`
|
4502
4503
|
:host {
|
4503
4504
|
--mdc-checkmark-indicator-color: var(--mds-color-theme-control-active-normal);
|
4504
4505
|
}
|
@@ -4508,47 +4509,57 @@
|
|
4508
4509
|
:host([disabled])::part(checkmark-icon) {
|
4509
4510
|
--mdc-icon-fill-color: currentColor;
|
4510
4511
|
}
|
4511
|
-
`,
|
4512
|
+
`,iu=[vb];var Ro=class extends Or{constructor(){super(...arguments);this.ariaChecked=wc.ARIA_CHECKED;this.indicator=wc.INDICATOR}connectedCallback(){super.connectedCallback(),this.role=jt.MENUITEMCHECKBOX}staticCheckbox(){return this.indicator!==$s.CHECKBOX?Z:F`
|
4512
4513
|
<mdc-staticcheckbox
|
4513
4514
|
slot="leading-controls"
|
4514
|
-
?checked="${this.ariaChecked===
|
4515
|
+
?checked="${this.ariaChecked===zs.TRUE}"
|
4515
4516
|
?disabled="${this.disabled}"
|
4516
4517
|
></mdc-staticcheckbox>
|
4517
|
-
`}staticToggle(){return this.indicator
|
4518
|
+
`}staticToggle(){return this.indicator!==$s.TOGGLE?Z:F`
|
4518
4519
|
<mdc-statictoggle
|
4519
4520
|
slot="trailing-controls"
|
4520
|
-
?checked="${this.ariaChecked===
|
4521
|
+
?checked="${this.ariaChecked===zs.TRUE}"
|
4521
4522
|
?disabled="${this.disabled}"
|
4522
|
-
size="${
|
4523
|
+
size="${Ps.COMPACT}"
|
4523
4524
|
></mdc-statictoggle>
|
4524
|
-
`}getCheckmarkIcon(){return this.indicator
|
4525
|
+
`}getCheckmarkIcon(){return this.indicator!==$s.CHECKMARK||this.ariaChecked===zs.FALSE?Z:F`
|
4525
4526
|
<mdc-icon
|
4526
4527
|
slot="trailing-controls"
|
4527
4528
|
name="check-bold"
|
4528
4529
|
part="checkmark-icon"
|
4529
4530
|
></mdc-icon>
|
4530
|
-
`}render(){return
|
4531
|
+
`}render(){return F`
|
4531
4532
|
<div part="leading">
|
4532
4533
|
${this.staticCheckbox()}
|
4533
4534
|
<slot name="leading-controls"></slot>
|
4534
4535
|
<div part="leading-text">
|
4535
|
-
${this.getText("leading-text-primary-label",
|
4536
|
-
${this.getText("leading-text-secondary-label",
|
4537
|
-
${this.getText("leading-text-tertiary-label",
|
4536
|
+
${this.getText("leading-text-primary-label",lt.BODY_MIDSIZE_REGULAR,this.label)}
|
4537
|
+
${this.getText("leading-text-secondary-label",lt.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
4538
|
+
${this.getText("leading-text-tertiary-label",lt.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
4538
4539
|
</div>
|
4539
4540
|
</div>
|
4540
4541
|
<div part="trailing">
|
4541
4542
|
<div part="trailing-text">
|
4542
|
-
${this.getText("trailing-text-side-header",
|
4543
|
-
${this.getText("trailing-text-subline",
|
4543
|
+
${this.getText("trailing-text-side-header",lt.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
4544
|
+
${this.getText("trailing-text-subline",lt.BODY_SMALL_REGULAR,this.sublineText)}
|
4544
4545
|
</div>
|
4545
4546
|
<slot name="trailing-controls"></slot>
|
4546
4547
|
${this.staticToggle()}
|
4547
4548
|
${this.getCheckmarkIcon()}
|
4548
4549
|
</div>
|
4549
|
-
`}};Or.styles=[...et.styles,...ld],n([l({type:String,reflect:!0,attribute:"aria-checked"})],Or.prototype,"ariaChecked",2),n([l({type:String,reflect:!0})],Or.prototype,"indicator",2);var Cs=Or;Cs.register(nd);var ph=Cs;})();
|
4550
|
+
`}};Ro.styles=[...Or.styles,...iu],y([A({type:String,reflect:!0,attribute:"aria-checked"})],Ro.prototype,"ariaChecked",2),y([A({type:String,reflect:!0})],Ro.prototype,"indicator",2);var Ic=Ro;Ic.register(ru);var gb=Ic;var nu=vf(ou());var In={};uf(In,{alert_32px_loop:()=>xb,audio_video:()=>bb,calling:()=>yb,celebrate:()=>Rb,clap_dark:()=>Ob,clap_light:()=>Pb,clap_medium:()=>zb,clap_medium_dark:()=>Db,clap_medium_light:()=>Fb,clap_yellow:()=>$b,contacts:()=>wb,default:()=>l0,discoverability_badge:()=>Ib,fire:()=>Vb,haha:()=>Bb,heart:()=>Ub,heart_opacity_test:()=>Lb,hello_32px:()=>Eb,meeting:()=>Mb,on_video_celebrate:()=>Hb,on_video_clap_dark:()=>Gb,on_video_clap_light:()=>jb,on_video_clap_medium:()=>Yb,on_video_clap_medium_dark:()=>Wb,on_video_clap_medium_light:()=>qb,on_video_clap_yellow:()=>Kb,on_video_fire:()=>Xb,on_video_haha:()=>Zb,on_video_heart:()=>Jb,on_video_prayer_dark:()=>Qb,on_video_prayer_light:()=>ty,on_video_prayer_medium:()=>iy,on_video_prayer_medium_dark:()=>ey,on_video_prayer_medium_light:()=>ry,on_video_prayer_yellow:()=>oy,on_video_raise_hand_dark:()=>sy,on_video_raise_hand_light:()=>ay,on_video_raise_hand_medium:()=>cy,on_video_raise_hand_medium_dark:()=>ny,on_video_raise_hand_medium_light:()=>ly,on_video_raise_hand_yellow:()=>dy,on_video_sad:()=>hy,on_video_slow_down:()=>my,on_video_smile:()=>py,on_video_speed_up:()=>uy,on_video_thumb_down_dark:()=>fy,on_video_thumb_down_light:()=>vy,on_video_thumb_down_medium:()=>yy,on_video_thumb_down_medium_dark:()=>gy,on_video_thumb_down_medium_light:()=>by,on_video_thumb_down_yellow:()=>xy,on_video_thumb_up_dark:()=>Ey,on_video_thumb_up_light:()=>Ty,on_video_thumb_up_medium:()=>Sy,on_video_thumb_up_medium_dark:()=>Ay,on_video_thumb_up_medium_light:()=>_y,on_video_thumb_up_yellow:()=>ky,on_video_wow:()=>Cy,personal_insight:()=>Nb,prayer_dark:()=>wy,prayer_light:()=>Iy,prayer_medium:()=>Ny,prayer_medium_dark:()=>Ly,prayer_medium_light:()=>My,prayer_yellow:()=>Ry,processing_32px_end:()=>Tb,processing_32px_loop:()=>Ab,processing_32px_start:()=>_b,raise_hand_dark:()=>Oy,raise_hand_light:()=>Py,raise_hand_medium:()=>zy,raise_hand_medium_dark:()=>Dy,raise_hand_medium_light:()=>Fy,raise_hand_yellow:()=>$y,responding_32px_end:()=>Sb,responding_32px_loop:()=>kb,responding_32px_start:()=>Cb,sad:()=>Vy,slow_down:()=>By,smile:()=>Uy,space:()=>i0,speed_up:()=>Hy,success:()=>o0,teams:()=>s0,thumb_down_dark:()=>Gy,thumb_down_light:()=>jy,thumb_down_medium:()=>Yy,thumb_down_medium_dark:()=>Wy,thumb_down_medium_light:()=>qy,thumb_down_yellow:()=>Ky,thumb_up_dark:()=>Xy,thumb_up_light:()=>Zy,thumb_up_medium:()=>t0,thumb_up_medium_dark:()=>Jy,thumb_up_medium_light:()=>Qy,thumb_up_yellow:()=>e0,webex_logo_loop:()=>a0,welcome:()=>n0,wow:()=>r0});var bb="./lottie/audio_video.json",yb="./lottie/calling.json",xb="./lottie/cisco-ai-assistant/alert_32px_loop.json",Eb="./lottie/cisco-ai-assistant/hello_32px.json",Tb="./lottie/cisco-ai-assistant/processing_32px_end.json",Ab="./lottie/cisco-ai-assistant/processing_32px_loop.json",_b="./lottie/cisco-ai-assistant/processing_32px_start.json",Sb="./lottie/cisco-ai-assistant/responding_32px_end.json",kb="./lottie/cisco-ai-assistant/responding_32px_loop.json",Cb="./lottie/cisco-ai-assistant/responding_32px_start.json",wb="./lottie/contacts.json",Ib="./lottie/discoverability_badge.json",Lb="./lottie/heart_opacity_test.json",Mb="./lottie/meeting.json",Nb="./lottie/personal_insight.json",Rb="./lottie/reactions/celebrate.json",Ob="./lottie/reactions/clap_dark.json",Pb="./lottie/reactions/clap_light.json",Db="./lottie/reactions/clap_medium_dark.json",Fb="./lottie/reactions/clap_medium_light.json",zb="./lottie/reactions/clap_medium.json",$b="./lottie/reactions/clap_yellow.json",Vb="./lottie/reactions/fire.json",Bb="./lottie/reactions/haha.json",Ub="./lottie/reactions/heart.json",Hb="./lottie/reactions/on_video/on_video_celebrate.json",Gb="./lottie/reactions/on_video/on_video_clap_dark.json",jb="./lottie/reactions/on_video/on_video_clap_light.json",Wb="./lottie/reactions/on_video/on_video_clap_medium_dark.json",qb="./lottie/reactions/on_video/on_video_clap_medium_light.json",Yb="./lottie/reactions/on_video/on_video_clap_medium.json",Kb="./lottie/reactions/on_video/on_video_clap_yellow.json",Xb="./lottie/reactions/on_video/on_video_fire.json",Zb="./lottie/reactions/on_video/on_video_haha.json",Jb="./lottie/reactions/on_video/on_video_heart.json",Qb="./lottie/reactions/on_video/on_video_prayer_dark.json",ty="./lottie/reactions/on_video/on_video_prayer_light.json",ey="./lottie/reactions/on_video/on_video_prayer_medium_dark.json",ry="./lottie/reactions/on_video/on_video_prayer_medium_light.json",iy="./lottie/reactions/on_video/on_video_prayer_medium.json",oy="./lottie/reactions/on_video/on_video_prayer_yellow.json",sy="./lottie/reactions/on_video/on_video_raise_hand_dark.json",ay="./lottie/reactions/on_video/on_video_raise_hand_light.json",ny="./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",ly="./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",cy="./lottie/reactions/on_video/on_video_raise_hand_medium.json",dy="./lottie/reactions/on_video/on_video_raise_hand_yellow.json",hy="./lottie/reactions/on_video/on_video_sad.json",my="./lottie/reactions/on_video/on_video_slow_down.json",py="./lottie/reactions/on_video/on_video_smile.json",uy="./lottie/reactions/on_video/on_video_speed_up.json",fy="./lottie/reactions/on_video/on_video_thumb_down_dark.json",vy="./lottie/reactions/on_video/on_video_thumb_down_light.json",gy="./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",by="./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",yy="./lottie/reactions/on_video/on_video_thumb_down_medium.json",xy="./lottie/reactions/on_video/on_video_thumb_down_yellow.json",Ey="./lottie/reactions/on_video/on_video_thumb_up_dark.json",Ty="./lottie/reactions/on_video/on_video_thumb_up_light.json",Ay="./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",_y="./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",Sy="./lottie/reactions/on_video/on_video_thumb_up_medium.json",ky="./lottie/reactions/on_video/on_video_thumb_up_yellow.json",Cy="./lottie/reactions/on_video/on_video_wow.json",wy="./lottie/reactions/prayer_dark.json",Iy="./lottie/reactions/prayer_light.json",Ly="./lottie/reactions/prayer_medium_dark.json",My="./lottie/reactions/prayer_medium_light.json",Ny="./lottie/reactions/prayer_medium.json",Ry="./lottie/reactions/prayer_yellow.json",Oy="./lottie/reactions/raise_hand_dark.json",Py="./lottie/reactions/raise_hand_light.json",Dy="./lottie/reactions/raise_hand_medium_dark.json",Fy="./lottie/reactions/raise_hand_medium_light.json",zy="./lottie/reactions/raise_hand_medium.json",$y="./lottie/reactions/raise_hand_yellow.json",Vy="./lottie/reactions/sad.json",By="./lottie/reactions/slow_down.json",Uy="./lottie/reactions/smile.json",Hy="./lottie/reactions/speed_up.json",Gy="./lottie/reactions/thumb_down_dark.json",jy="./lottie/reactions/thumb_down_light.json",Wy="./lottie/reactions/thumb_down_medium_dark.json",qy="./lottie/reactions/thumb_down_medium_light.json",Yy="./lottie/reactions/thumb_down_medium.json",Ky="./lottie/reactions/thumb_down_yellow.json",Xy="./lottie/reactions/thumb_up_dark.json",Zy="./lottie/reactions/thumb_up_light.json",Jy="./lottie/reactions/thumb_up_medium_dark.json",Qy="./lottie/reactions/thumb_up_medium_light.json",t0="./lottie/reactions/thumb_up_medium.json",e0="./lottie/reactions/thumb_up_yellow.json",r0="./lottie/reactions/wow.json",i0="./lottie/space.json",o0="./lottie/success.json",s0="./lottie/teams.json",a0="./lottie/webex_logo_loop.json",n0="./lottie/welcome.json",l0={audio_video:bb,calling:yb,alert_32px_loop:xb,hello_32px:Eb,processing_32px_end:Tb,processing_32px_loop:Ab,processing_32px_start:_b,responding_32px_end:Sb,responding_32px_loop:kb,responding_32px_start:Cb,contacts:wb,discoverability_badge:Ib,heart_opacity_test:Lb,meeting:Mb,personal_insight:Nb,celebrate:Rb,clap_dark:Ob,clap_light:Pb,clap_medium_dark:Db,clap_medium_light:Fb,clap_medium:zb,clap_yellow:$b,fire:Vb,haha:Bb,heart:Ub,on_video_celebrate:Hb,on_video_clap_dark:Gb,on_video_clap_light:jb,on_video_clap_medium_dark:Wb,on_video_clap_medium_light:qb,on_video_clap_medium:Yb,on_video_clap_yellow:Kb,on_video_fire:Xb,on_video_haha:Zb,on_video_heart:Jb,on_video_prayer_dark:Qb,on_video_prayer_light:ty,on_video_prayer_medium_dark:ey,on_video_prayer_medium_light:ry,on_video_prayer_medium:iy,on_video_prayer_yellow:oy,on_video_raise_hand_dark:sy,on_video_raise_hand_light:ay,on_video_raise_hand_medium_dark:ny,on_video_raise_hand_medium_light:ly,on_video_raise_hand_medium:cy,on_video_raise_hand_yellow:dy,on_video_sad:hy,on_video_slow_down:my,on_video_smile:py,on_video_speed_up:uy,on_video_thumb_down_dark:fy,on_video_thumb_down_light:vy,on_video_thumb_down_medium_dark:gy,on_video_thumb_down_medium_light:by,on_video_thumb_down_medium:yy,on_video_thumb_down_yellow:xy,on_video_thumb_up_dark:Ey,on_video_thumb_up_light:Ty,on_video_thumb_up_medium_dark:Ay,on_video_thumb_up_medium_light:_y,on_video_thumb_up_medium:Sy,on_video_thumb_up_yellow:ky,on_video_wow:Cy,prayer_dark:wy,prayer_light:Iy,prayer_medium_dark:Ly,prayer_medium_light:My,prayer_medium:Ny,prayer_yellow:Ry,raise_hand_dark:Oy,raise_hand_light:Py,raise_hand_medium_dark:Dy,raise_hand_medium_light:Fy,raise_hand_medium:zy,raise_hand_yellow:$y,sad:Vy,slow_down:By,smile:Uy,speed_up:Hy,thumb_down_dark:Gy,thumb_down_light:jy,thumb_down_medium_dark:Wy,thumb_down_medium_light:qy,thumb_down_medium:Yy,thumb_down_yellow:Ky,thumb_up_dark:Xy,thumb_up_light:Zy,thumb_up_medium_dark:Jy,thumb_up_medium_light:Qy,thumb_up_medium:t0,thumb_up_yellow:e0,wow:r0,space:i0,success:o0,teams:s0,webex_logo_loop:a0,welcome:n0};var c0=[Et],su=c0;var au=j.constructTagName("animation"),Ln={NAME:void 0,AUTO_PLAY:!0,LOOP:"true"};var Dr=class extends J{constructor(){super(...arguments);this.name=Ln.NAME;this.loop=Ln.LOOP;this.autoplay=Ln.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledBy=null;this.containerRef=kn();this.onCompleteHandler=()=>{let e=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(e)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(e){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=nu.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:e,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(e){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(s)}getAnimationData(){return this.name&&In[this.name]?import(`@momentum-design/animations/dist${In[this.name].replace(/^\./,"")}`).then(s=>this.onLoadSuccessHandler(s.default)).catch(s=>this.onLoadFailHandler(s)):Promise.reject(new Error(`Invalid animation name: ${this.name}`))}updated(e){super.updated(e),(e.has("name")||e.has("loop")||e.has("autoplay"))&&this.getAnimationData().catch(s=>{var n;return(n=this.onerror)==null?void 0:n.call(this,s.message)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null)}render(){return F`<div aria-hidden="true" ${Cn(this.containerRef)}></div>`}};Dr.styles=[...J.styles,...su],y([A({type:String,reflect:!0})],Dr.prototype,"name",2),y([A({type:String,reflect:!0})],Dr.prototype,"loop",2),y([A({type:Boolean,reflect:!0})],Dr.prototype,"autoplay",2),y([A({type:String,attribute:"aria-label"})],Dr.prototype,"ariaLabel",2),y([A({type:String,attribute:"aria-labelledby"})],Dr.prototype,"ariaLabelledBy",2);var Lc=Dr;Lc.register(au);var d0=Lc;})();
|
4550
4551
|
/*! Bundled license information:
|
4551
4552
|
|
4553
|
+
lottie-web/build/player/lottie_light.js:
|
4554
|
+
(*!
|
4555
|
+
Transformation Matrix v2.0
|
4556
|
+
(c) Epistemex 2014-2015
|
4557
|
+
www.epistemex.com
|
4558
|
+
By Ken Fyrstenberg
|
4559
|
+
Contributions by leeoniya.
|
4560
|
+
License: MIT, header required.
|
4561
|
+
*)
|
4562
|
+
|
4552
4563
|
@lit/reactive-element/css-tag.js:
|
4553
4564
|
(**
|
4554
4565
|
* @license
|