@momentum-design/components 0.85.6 → 0.85.7
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 +225 -201
- package/dist/browser/index.js.map +4 -4
- package/dist/components/menuitem/menuitem.component.d.ts +21 -1
- package/dist/components/menuitem/menuitem.component.js +29 -1
- package/dist/components/menuitemcheckbox/menuitemcheckbox.component.d.ts +26 -15
- package/dist/components/menuitemcheckbox/menuitemcheckbox.component.js +42 -25
- package/dist/components/menuitemcheckbox/menuitemcheckbox.constants.d.ts +1 -1
- package/dist/components/menuitemcheckbox/menuitemcheckbox.constants.js +1 -2
- package/dist/components/menuitemcheckbox/menuitemcheckbox.styles.js +0 -6
- package/dist/components/menuitemradio/menuitemradio.component.d.ts +61 -12
- package/dist/components/menuitemradio/menuitemradio.component.js +125 -40
- package/dist/components/menuitemradio/menuitemradio.constants.d.ts +9 -1
- package/dist/components/menuitemradio/menuitemradio.constants.js +9 -1
- package/dist/components/menuitemradio/menuitemradio.styles.d.ts +2 -0
- package/dist/components/menuitemradio/menuitemradio.styles.js +7 -0
- package/dist/components/menuitemradio/menuitemradio.types.d.ts +4 -1
- package/dist/components/menupopover/menupopover.component.d.ts +6 -0
- package/dist/components/menupopover/menupopover.component.js +11 -3
- package/dist/components/menupopover/menupopover.styles.js +4 -0
- package/dist/components/menupopover/menupopover.types.d.ts +11 -0
- package/dist/components/menupopover/menupopover.types.js +1 -0
- package/dist/components/menupopover/menupopover.utils.d.ts +4 -2
- package/dist/components/menupopover/menupopover.utils.js +1 -1
- package/dist/components/menusection/menusection.component.d.ts +15 -2
- package/dist/components/menusection/menusection.component.js +55 -4
- package/dist/components/menusection/menusection.constants.d.ts +1 -5
- package/dist/components/menusection/menusection.constants.js +1 -5
- package/dist/components/menusection/menusection.styles.d.ts +2 -0
- package/dist/components/menusection/menusection.styles.js +11 -0
- package/dist/components/menusection/menusection.types.d.ts +7 -4
- package/dist/custom-elements.json +611 -293
- package/dist/index.d.ts +3 -1
- package/dist/react/menuitem/index.d.ts +12 -1
- package/dist/react/menuitem/index.js +12 -1
- package/dist/react/menuitemcheckbox/index.d.ts +18 -7
- package/dist/react/menuitemcheckbox/index.js +18 -7
- package/dist/react/menuitemradio/index.d.ts +25 -2
- package/dist/react/menuitemradio/index.js +25 -2
- package/dist/react/menupopover/index.d.ts +8 -0
- package/dist/react/menupopover/index.js +8 -0
- package/dist/react/menusection/index.d.ts +6 -1
- package/dist/react/menusection/index.js +5 -1
- package/dist/utils/types.d.ts +10 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
"use strict";(()=>{var av=Object.create;var vl=Object.defineProperty;var nh=Object.getOwnPropertyDescriptor;var nv=Object.getOwnPropertyNames;var lv=Object.getPrototypeOf,cv=Object.prototype.hasOwnProperty;var dv=(l,o)=>()=>(o||l((o={exports:{}}).exports,o),o.exports);var hv=(l,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of nv(o))!cv.call(l,n)&&n!==e&&vl(l,n,{get:()=>o[n],enumerable:!(s=nh(o,n))||s.enumerable});return l};var mv=(l,o,e)=>(e=l!=null?av(lv(l)):{},hv(o||!l||!l.__esModule?vl(e,"default",{value:l,enumerable:!0}):e,l));var v=(l,o,e,s)=>{for(var n=s>1?void 0:s?nh(o,e):o,h=l.length-1,p;h>=0;h--)(p=l[h])&&(n=(s?p(o,e,n):p(n))||n);return s&&n&&vl(o,e,n),n};var Jh=dv((Cs,Ka)=>{typeof navigator<"u"&&function(l,o){typeof Cs=="object"&&typeof Ka<"u"?Ka.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=o())}(Cs,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},p=function(r){o=r},T=function(){return o};function L(t){return document.createElement(t)}function $(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 W(t,r){return Object.getOwnPropertyDescriptor(t,r)}function K(t){function r(){}return r.prototype=t,r}var it=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}}(),J=function(){function t(i,a){var d=0,c=[],u;switch(i){case"int16":case"uint8c":u=1;break;default:u=1.1;break}for(d=0;d<a;d+=1)c.push(u);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 tt(t){return Array.apply(null,{length:t})}function ht(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ht=function(i){return typeof i}:ht=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ht(t)}var Tt=!0,bt=null,xt=null,kt="",Gt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Dt=Math.pow,Te=Math.sqrt,ee=Math.floor,Ze=Math.max,Me=Math.min,Fe={};(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)Fe[t[r]]=Math[t[r]]})();function Je(){return{}}Fe.random=Math.random,Fe.abs=function(t){var r=ht(t);if(r==="object"&&t.length){var i=tt(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 Qe=150,At=Math.PI/180,he=.5519;function $e(t){Rt=!!t}function tr(t){return Rt?Math.round(t):t}function Tr(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 ze(t,r,i,a){this.type=t,this.currentTime=r,this.totalTime=i,this.direction=a<0?-1:1}function aa(t,r){this.type=t,this.direction=r<0?-1:1}function ud(t,r,i,a){this.type=t,this.currentLoop=i,this.totalLoops=r,this.direction=a<0?-1:1}function fd(t,r,i){this.type=t,this.firstFrame=r,this.totalFrames=i}function vd(t,r){this.type=t,this.target=r}function af(t,r){this.type="renderFrameError",this.nativeError=t,this.currentTime=r}function nf(t){this.type="configError",this.nativeError=t}function Py(t,r){this.type=t,this.nativeError=r}var xe=function(){var t=0;return function(){return t+=1,kt+"__lottie_element_"+t}}();function il(t,r,i){var a,d,c,u,x,f,I,w;switch(u=Math.floor(t*6),x=t*6-u,f=i*(1-r),I=i*(1-x*r),w=i*(1-(1-x)*r),u%6){case 0:a=i,d=w,c=f;break;case 1:a=I,d=i,c=f;break;case 2:a=f,d=i,c=w;break;case 3:a=f,d=I,c=i;break;case 4:a=w,d=f,c=i;break;case 5:a=i,d=f,c=I;break;default:break}return[a,d,c]}function ol(t,r,i){var a=Math.max(t,r,i),d=Math.min(t,r,i),c=a-d,u,x=a===0?0:c/a,f=a/255;switch(a){case d:u=0;break;case t:u=r-i+c*(r<i?6:0),u/=6*c;break;case r:u=i-t+c*2,u/=6*c;break;case i:u=t-r+c*4,u/=6*c;break;default:break}return[u,x,f]}function gd(t,r){var i=ol(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),il(i[0],i[1],i[2])}function bd(t,r){var i=ol(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),il(i[0],i[1],i[2])}function yd(t,r){var i=ol(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),il(i[0],i[1],i[2])}var Dy=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]}}(),lf=function(r){Tt=!!r},cf=function(){return Tt},df=function(r){bt=r},na=function(){return bt},Fy=function(r){xt=r},Ed=function(){return xt},la=function(r){Qe=r},Zo=function(){return Qe},hf=function(r){kt=r},$y=function(){return kt};function vt(t){return document.createElementNS(l,t)}function ca(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ca=function(i){return typeof i}:ca=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ca(t)}var Jo=function(){var t=1,r=[],i,a,d={onmessage:function(){},postMessage:function(N){i({data:N})}},c={postMessage:function(N){d.onmessage({data:N})}};function u(y){if(window.Worker&&window.Blob&&h()){var N=new Blob(["var _workerSelf = self; self.onmessage = ",y.toString()],{type:"text/javascript"}),P=URL.createObjectURL(N);return new Worker(P)}return i=y,d}function x(){a||(a=u(function(N){function P(){function z(X,_){var R,m,g=X.length,U,F,rt,pt;for(m=0;m<g;m+=1)if(R=X[m],"ks"in R&&!R.completed){if(R.completed=!0,R.hasMask){var ft=R.masksProperties;for(F=ft.length,U=0;U<F;U+=1)if(ft[U].pt.k.i)k(ft[U].pt.k);else for(pt=ft[U].pt.k.length,rt=0;rt<pt;rt+=1)ft[U].pt.k[rt].s&&k(ft[U].pt.k[rt].s[0]),ft[U].pt.k[rt].e&&k(ft[U].pt.k[rt].e[0])}R.ty===0?(R.layers=b(R.refId,_),z(R.layers,_)):R.ty===4?A(R.shapes):R.ty===5&>(R)}}function C(X,_){if(X){var R=0,m=X.length;for(R=0;R<m;R+=1)X[R].t===1&&(X[R].data.layers=b(X[R].data.refId,_),z(X[R].data.layers,_))}}function S(X,_){for(var R=0,m=_.length;R<m;){if(_[R].id===X)return _[R];R+=1}return null}function b(X,_){var R=S(X,_);return R?R.layers.__used?JSON.parse(JSON.stringify(R.layers)):(R.layers.__used=!0,R.layers):null}function A(X){var _,R=X.length,m,g;for(_=R-1;_>=0;_-=1)if(X[_].ty==="sh")if(X[_].ks.k.i)k(X[_].ks.k);else for(g=X[_].ks.k.length,m=0;m<g;m+=1)X[_].ks.k[m].s&&k(X[_].ks.k[m].s[0]),X[_].ks.k[m].e&&k(X[_].ks.k[m].e[0]);else X[_].ty==="gr"&&A(X[_].it)}function k(X){var _,R=X.i.length;for(_=0;_<R;_+=1)X.i[_][0]+=X.v[_][0],X.i[_][1]+=X.v[_][1],X.o[_][0]+=X.v[_][0],X.o[_][1]+=X.v[_][1]}function D(X,_){var R=_?_.split("."):[100,100,100];return X[0]>R[0]?!0:R[0]>X[0]?!1:X[1]>R[1]?!0:R[1]>X[1]?!1:X[2]>R[2]?!0:R[2]>X[2]?!1:null}var V=function(){var X=[4,4,14];function _(m){var g=m.t.d;m.t.d={k:[{s:g,t:0}]}}function R(m){var g,U=m.length;for(g=0;g<U;g+=1)m[g].ty===5&&_(m[g])}return function(m){if(D(X,m.v)&&(R(m.layers),m.assets)){var g,U=m.assets.length;for(g=0;g<U;g+=1)m.assets[g].layers&&R(m.assets[g].layers)}}}(),G=function(){var X=[4,7,99];return function(_){if(_.chars&&!D(X,_.v)){var R,m=_.chars.length;for(R=0;R<m;R+=1){var g=_.chars[R];g.data&&g.data.shapes&&(A(g.data.shapes),g.data.ip=0,g.data.op=99999,g.data.st=0,g.data.sr=1,g.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[R].t||(g.data.shapes.push({ty:"no"}),g.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"})))}}}}(),Z=function(){var X=[5,7,15];function _(m){var g=m.t.p;typeof g.a=="number"&&(g.a={a:0,k:g.a}),typeof g.p=="number"&&(g.p={a:0,k:g.p}),typeof g.r=="number"&&(g.r={a:0,k:g.r})}function R(m){var g,U=m.length;for(g=0;g<U;g+=1)m[g].ty===5&&_(m[g])}return function(m){if(D(X,m.v)&&(R(m.layers),m.assets)){var g,U=m.assets.length;for(g=0;g<U;g+=1)m.assets[g].layers&&R(m.assets[g].layers)}}}(),ut=function(){var X=[4,1,9];function _(m){var g,U=m.length,F,rt;for(g=0;g<U;g+=1)if(m[g].ty==="gr")_(m[g].it);else if(m[g].ty==="fl"||m[g].ty==="st")if(m[g].c.k&&m[g].c.k[0].i)for(rt=m[g].c.k.length,F=0;F<rt;F+=1)m[g].c.k[F].s&&(m[g].c.k[F].s[0]/=255,m[g].c.k[F].s[1]/=255,m[g].c.k[F].s[2]/=255,m[g].c.k[F].s[3]/=255),m[g].c.k[F].e&&(m[g].c.k[F].e[0]/=255,m[g].c.k[F].e[1]/=255,m[g].c.k[F].e[2]/=255,m[g].c.k[F].e[3]/=255);else m[g].c.k[0]/=255,m[g].c.k[1]/=255,m[g].c.k[2]/=255,m[g].c.k[3]/=255}function R(m){var g,U=m.length;for(g=0;g<U;g+=1)m[g].ty===4&&_(m[g].shapes)}return function(m){if(D(X,m.v)&&(R(m.layers),m.assets)){var g,U=m.assets.length;for(g=0;g<U;g+=1)m.assets[g].layers&&R(m.assets[g].layers)}}}(),ct=function(){var X=[4,4,18];function _(m){var g,U=m.length,F,rt;for(g=U-1;g>=0;g-=1)if(m[g].ty==="sh")if(m[g].ks.k.i)m[g].ks.k.c=m[g].closed;else for(rt=m[g].ks.k.length,F=0;F<rt;F+=1)m[g].ks.k[F].s&&(m[g].ks.k[F].s[0].c=m[g].closed),m[g].ks.k[F].e&&(m[g].ks.k[F].e[0].c=m[g].closed);else m[g].ty==="gr"&&_(m[g].it)}function R(m){var g,U,F=m.length,rt,pt,ft,Ct;for(U=0;U<F;U+=1){if(g=m[U],g.hasMask){var wt=g.masksProperties;for(pt=wt.length,rt=0;rt<pt;rt+=1)if(wt[rt].pt.k.i)wt[rt].pt.k.c=wt[rt].cl;else for(Ct=wt[rt].pt.k.length,ft=0;ft<Ct;ft+=1)wt[rt].pt.k[ft].s&&(wt[rt].pt.k[ft].s[0].c=wt[rt].cl),wt[rt].pt.k[ft].e&&(wt[rt].pt.k[ft].e[0].c=wt[rt].cl)}g.ty===4&&_(g.shapes)}}return function(m){if(D(X,m.v)&&(R(m.layers),m.assets)){var g,U=m.assets.length;for(g=0;g<U;g+=1)m.assets[g].layers&&R(m.assets[g].layers)}}}();function Q(X){X.__complete||(ut(X),V(X),G(X),Z(X),ct(X),z(X.layers,X.assets),C(X.chars,X.assets),X.__complete=!0)}function gt(X){X.t.a.length===0&&"m"in X.t.p}var st={};return st.completeData=Q,st.checkColors=ut,st.checkChars=G,st.checkPathProperties=Z,st.checkShapes=ct,st.completeLayers=z,st}if(c.dataManager||(c.dataManager=P()),c.assetLoader||(c.assetLoader=function(){function z(S){var b=S.getResponseHeader("content-type");return b&&S.responseType==="json"&&b.indexOf("json")!==-1||S.response&&ca(S.response)==="object"?S.response:S.response&&typeof S.response=="string"?JSON.parse(S.response):S.responseText?JSON.parse(S.responseText):null}function C(S,b,A,k){var D,V=new XMLHttpRequest;try{V.responseType="json"}catch{}V.onreadystatechange=function(){if(V.readyState===4)if(V.status===200)D=z(V),A(D);else try{D=z(V),A(D)}catch(G){k&&k(G)}};try{V.open(["G","E","T"].join(""),S,!0)}catch{V.open(["G","E","T"].join(""),b+"/"+S,!0)}V.send()}return{load:C}}()),N.data.type==="loadAnimation")c.assetLoader.load(N.data.path,N.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:N.data.id,payload:z,status:"success"})},function(){c.postMessage({id:N.data.id,status:"error"})});else if(N.data.type==="complete"){var M=N.data.animation;c.dataManager.completeData(M),c.postMessage({id:N.data.id,payload:M,status:"success"})}else N.data.type==="loadData"&&c.assetLoader.load(N.data.path,N.data.fullPath,function(z){c.postMessage({id:N.data.id,payload:z,status:"success"})},function(){c.postMessage({id:N.data.id,status:"error"})})}),a.onmessage=function(y){var N=y.data,P=N.id,M=r[P];r[P]=null,N.status==="success"?M.onComplete(N.payload):M.onError&&M.onError()})}function f(y,N){t+=1;var P="processId_"+t;return r[P]={onComplete:y,onError:N},P}function I(y,N,P){x();var M=f(N,P);a.postMessage({type:"loadAnimation",path:y,fullPath:window.location.origin+window.location.pathname,id:M})}function w(y,N,P){x();var M=f(N,P);a.postMessage({type:"loadData",path:y,fullPath:window.location.origin+window.location.pathname,id:M})}function B(y,N,P){x();var M=f(N,P);a.postMessage({type:"complete",animation:y,id:M})}return{loadAnimation:I,loadData:w,completeAnimation:B}}(),mf=function(){var t=function(){var C=L("canvas");C.width=1,C.height=1;var S=C.getContext("2d");return S.fillStyle="rgba(0,0,0,0)",S.fillRect(0,0,1,1),C}();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(C,S,b){var A="";if(C.e)A=C.p;else if(S){var k=C.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),A=S+k}else A=b,A+=C.u?C.u:"",A+=C.p;return A}function d(C){var S=0,b=setInterval((function(){var A=C.getBBox();(A.width||S>500)&&(this._imageLoaded(),clearInterval(b)),S+=1}).bind(this),50)}function c(C){var S=a(C,this.assetsPath,this.path),b=vt("image");Gt?this.testImageLoaded(b):b.addEventListener("load",this._imageLoaded,!1),b.addEventListener("error",(function(){A.img=t,this._imageLoaded()}).bind(this),!1),b.setAttributeNS("http://www.w3.org/1999/xlink","href",S),this._elementHelper.append?this._elementHelper.append(b):this._elementHelper.appendChild(b);var A={img:b,assetData:C};return A}function u(C){var S=a(C,this.assetsPath,this.path),b=L("img");b.crossOrigin="anonymous",b.addEventListener("load",this._imageLoaded,!1),b.addEventListener("error",(function(){A.img=t,this._imageLoaded()}).bind(this),!1),b.src=S;var A={img:b,assetData:C};return A}function x(C){var S={assetData:C},b=a(C,this.assetsPath,this.path);return Jo.loadData(b,(function(A){S.img=A,this._footageLoaded()}).bind(this),(function(){S.img={},this._footageLoaded()}).bind(this)),S}function f(C,S){this.imagesLoadedCb=S;var b,A=C.length;for(b=0;b<A;b+=1)C[b].layers||(!C[b].t||C[b].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(C[b]))):C[b].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(C[b]))))}function I(C){this.path=C||""}function w(C){this.assetsPath=C||""}function B(C){for(var S=0,b=this.images.length;S<b;){if(this.images[S].assetData===C)return this.images[S].img;S+=1}return null}function y(){this.imagesLoadedCb=null,this.images.length=0}function N(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function M(C,S){C==="svg"?(this._elementHelper=S,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:f,setAssetsPath:w,setPath:I,loadedImages:N,loadedFootages:P,destroy:y,getAsset:B,createImgData:u,createImageData:c,imageLoaded:r,footageLoaded:i,setCacheType:M},z}();function Td(){}Td.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 pf=function(){function t(r){for(var i=r.split(`\r
|
2
|
-
`),a={},d,c=0,u=0;u<i.length;u+=1)d=i[u].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}}(),uf=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}}(),Qo={},ff=function(r,i){Qo[r]=i};function vf(t){return Qo[t]}function gf(){if(Qo.canvas)return"canvas";for(var t in Qo)if(Qo[t])return t;return""}function ts(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ts=function(i){return typeof i}:ts=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ts(t)}var mt=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=xe(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=cf(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=uf(),this.imagePreloader=new mf,this.audioController=it(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new ze("drawnFrame",0,0,0),this.expressionsPlugin=na()};$([Td],mt),mt.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=vf(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")),Jo.loadAnimation(t.path,this.configAnimation,this.onSetupError))},mt.prototype.onSetupError=function(){this.trigger("data_failed")},mt.prototype.setupAnimation=function(t){Jo.completeAnimation(t,this.configAnimation)},mt.prototype.setData=function(t,r){r&&ts(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:gf()||"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 u=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:"";u==="false"&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},mt.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,u=d.length;for(c=0;c<u;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,Jo.completeAnimation(this.animationData,this.onSegmentComplete)},mt.prototype.onSegmentComplete=function(t){this.animationData=t;var r=na();r&&r.initExpressions(this),this.loadNextSegment()},mt.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,Jo.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},mt.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},mt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},mt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},mt.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=pf(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},mt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},mt.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=na();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},mt.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)},mt.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},mt.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")},mt.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)}},mt.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")))},mt.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())},mt.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},mt.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},mt.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},mt.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()}},mt.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()}},mt.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"))}},mt.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")},mt.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)},mt.prototype.playSegments=function(t,r){if(r&&(this.segments.length=0),ts(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()},mt.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},mt.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},mt.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)},mt.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},mt.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},mt.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},mt.prototype.setLoop=function(t){this.loop=t},mt.prototype.setVolume=function(t,r){r&&this.name!==r||this.audioController.setVolume(t)},mt.prototype.getVolume=function(){return this.audioController.getVolume()},mt.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},mt.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},mt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},mt.prototype.getPath=function(){return this.path},mt.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},mt.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},mt.prototype.hide=function(){this.renderer.hide()},mt.prototype.show=function(){this.renderer.show()},mt.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},mt.prototype.updateDocumentData=function(t,r,i){try{var a=this.renderer.getElementByPath(t);a.updateDocumentData(r,i)}catch{}},mt.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new ze(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 ud(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new aa(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new fd(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new vd(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new ze(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new ud(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new aa(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new fd(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new vd(t,this))},mt.prototype.triggerRenderFrameError=function(t){var r=new af(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},mt.prototype.triggerConfigError=function(t){var r=new nf(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var Yt=function(){var t={},r=[],i=0,a=0,d=0,c=!0,u=!1;function x(_){for(var R=0,m=_.target;R<a;)r[R].animation===m&&(r.splice(R,1),R-=1,a-=1,m.isPaused||B()),R+=1}function f(_,R){if(!_)return null;for(var m=0;m<a;){if(r[m].elem===_&&r[m].elem!==null)return r[m].animation;m+=1}var g=new mt;return y(g,_),g.setData(_,R),g}function I(){var _,R=r.length,m=[];for(_=0;_<R;_+=1)m.push(r[_].animation);return m}function w(){d+=1,ut()}function B(){d-=1}function y(_,R){_.addEventListener("destroy",x),_.addEventListener("_active",w),_.addEventListener("_idle",B),r.push({elem:R,animation:_}),a+=1}function N(_){var R=new mt;return y(R,null),R.setParams(_),R}function P(_,R){var m;for(m=0;m<a;m+=1)r[m].animation.setSpeed(_,R)}function M(_,R){var m;for(m=0;m<a;m+=1)r[m].animation.setDirection(_,R)}function z(_){var R;for(R=0;R<a;R+=1)r[R].animation.play(_)}function C(_){var R=_-i,m;for(m=0;m<a;m+=1)r[m].animation.advanceTime(R);i=_,d&&!u?window.requestAnimationFrame(C):c=!0}function S(_){i=_,window.requestAnimationFrame(C)}function b(_){var R;for(R=0;R<a;R+=1)r[R].animation.pause(_)}function A(_,R,m){var g;for(g=0;g<a;g+=1)r[g].animation.goToAndStop(_,R,m)}function k(_){var R;for(R=0;R<a;R+=1)r[R].animation.stop(_)}function D(_){var R;for(R=0;R<a;R+=1)r[R].animation.togglePause(_)}function V(_){var R;for(R=a-1;R>=0;R-=1)r[R].animation.destroy(_)}function G(_,R,m){var g=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,F=g.length;for(U=0;U<F;U+=1)m&&g[U].setAttribute("data-bm-type",m),f(g[U],_);if(R&&F===0){m||(m="svg");var rt=document.getElementsByTagName("body")[0];rt.innerText="";var pt=L("div");pt.style.width="100%",pt.style.height="100%",pt.setAttribute("data-bm-type",m),rt.appendChild(pt),f(pt,_)}}function Z(){var _;for(_=0;_<a;_+=1)r[_].animation.resize()}function ut(){!u&&d&&c&&(window.requestAnimationFrame(S),c=!1)}function ct(){u=!0}function Q(){u=!1,ut()}function gt(_,R){var m;for(m=0;m<a;m+=1)r[m].animation.setVolume(_,R)}function st(_){var R;for(R=0;R<a;R+=1)r[R].animation.mute(_)}function X(_){var R;for(R=0;R<a;R+=1)r[R].animation.unmute(_)}return t.registerAnimation=f,t.loadAnimation=N,t.setSpeed=P,t.setDirection=M,t.play=z,t.pause=b,t.stop=k,t.togglePause=D,t.searchAnimations=G,t.resize=Z,t.goToAndStop=A,t.destroy=V,t.freeze=ct,t.unfreeze=Q,t.setVolume=gt,t.mute=st,t.unmute=X,t.getRegisteredAnimations=I,t}(),es=function(){var t={};t.getBezierEasing=i;var r={};function i(S,b,A,k,D){var V=D||("bez_"+S+"_"+b+"_"+A+"_"+k).replace(/\./g,"p");if(r[V])return r[V];var G=new C([S,b,A,k]);return r[V]=G,G}var a=4,d=.001,c=1e-7,u=10,x=11,f=1/(x-1),I=typeof Float32Array=="function";function w(S,b){return 1-3*b+3*S}function B(S,b){return 3*b-6*S}function y(S){return 3*S}function N(S,b,A){return((w(b,A)*S+B(b,A))*S+y(b))*S}function P(S,b,A){return 3*w(b,A)*S*S+2*B(b,A)*S+y(b)}function M(S,b,A,k,D){var V,G,Z=0;do G=b+(A-b)/2,V=N(G,k,D)-S,V>0?A=G:b=G;while(Math.abs(V)>c&&++Z<u);return G}function z(S,b,A,k){for(var D=0;D<a;++D){var V=P(b,A,k);if(V===0)return b;var G=N(b,A,k)-S;b-=G/V}return b}function C(S){this._p=S,this._mSampleValues=I?new Float32Array(x):new Array(x),this._precomputed=!1,this.get=this.get.bind(this)}return C.prototype={get:function(b){var A=this._p[0],k=this._p[1],D=this._p[2],V=this._p[3];return this._precomputed||this._precompute(),A===k&&D===V?b:b===0?0:b===1?1:N(this._getTForX(b),k,V)},_precompute:function(){var b=this._p[0],A=this._p[1],k=this._p[2],D=this._p[3];this._precomputed=!0,(b!==A||k!==D)&&this._calcSampleValues()},_calcSampleValues:function(){for(var b=this._p[0],A=this._p[2],k=0;k<x;++k)this._mSampleValues[k]=N(k*f,b,A)},_getTForX:function(b){for(var A=this._p[0],k=this._p[2],D=this._mSampleValues,V=0,G=1,Z=x-1;G!==Z&&D[G]<=b;++G)V+=f;--G;var ut=(b-D[G])/(D[G+1]-D[G]),ct=V+ut*f,Q=P(ct,A,k);return Q>=d?z(b,ct,A,k):Q===0?ct:M(b,V,V+f,A,k)}},t}(),xd=function(){function t(r){return r.concat(tt(r.length))}return{double:t}}(),da=function(){return function(t,r,i){var a=0,d=t,c=tt(d),u={newElement:x,release:f};function x(){var I;return a?(a-=1,I=c[a]):I=r(),I}function f(I){a===d&&(c=xd.double(c),d*=2),i&&i(I),c[a]=I,a+=1}return u}}(),Ad=function(){function t(){return{addedLength:0,percents:J("float32",Zo()),lengths:J("float32",Zo())}}return da(8,t)}(),_d=function(){function t(){return{lengths:[],totalLength:0}}function r(i){var a,d=i.lengths.length;for(a=0;a<d;a+=1)Ad.release(i.lengths[a]);i.lengths.length=0}return da(8,t,r)}();function bf(){var t=Math;function r(y,N,P,M,z,C){var S=y*M+N*z+P*C-z*M-C*y-P*N;return S>-.001&&S<.001}function i(y,N,P,M,z,C,S,b,A){if(P===0&&C===0&&A===0)return r(y,N,M,z,S,b);var k=t.sqrt(t.pow(M-y,2)+t.pow(z-N,2)+t.pow(C-P,2)),D=t.sqrt(t.pow(S-y,2)+t.pow(b-N,2)+t.pow(A-P,2)),V=t.sqrt(t.pow(S-M,2)+t.pow(b-z,2)+t.pow(A-C,2)),G;return k>D?k>V?G=k-D-V:G=V-D-k:V>D?G=V-D-k:G=D-k-V,G>-1e-4&&G<1e-4}var a=function(){return function(y,N,P,M){var z=Zo(),C,S,b,A,k,D=0,V,G=[],Z=[],ut=Ad.newElement();for(b=P.length,C=0;C<z;C+=1){for(k=C/(z-1),V=0,S=0;S<b;S+=1)A=Dt(1-k,3)*y[S]+3*Dt(1-k,2)*k*P[S]+3*(1-k)*Dt(k,2)*M[S]+Dt(k,3)*N[S],G[S]=A,Z[S]!==null&&(V+=Dt(G[S]-Z[S],2)),Z[S]=G[S];V&&(V=Te(V),D+=V),ut.percents[C]=k,ut.lengths[C]=D}return ut.addedLength=D,ut}}();function d(y){var N=_d.newElement(),P=y.c,M=y.v,z=y.o,C=y.i,S,b=y._length,A=N.lengths,k=0;for(S=0;S<b-1;S+=1)A[S]=a(M[S],M[S+1],z[S],C[S+1]),k+=A[S].addedLength;return P&&b&&(A[S]=a(M[S],M[0],z[S],C[0]),k+=A[S].addedLength),N.totalLength=k,N}function c(y){this.segmentLength=0,this.points=new Array(y)}function u(y,N){this.partialLength=y,this.point=N}var x=function(){var y={};return function(N,P,M,z){var C=(N[0]+"_"+N[1]+"_"+P[0]+"_"+P[1]+"_"+M[0]+"_"+M[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!y[C]){var S=Zo(),b,A,k,D,V,G=0,Z,ut,ct=null;N.length===2&&(N[0]!==P[0]||N[1]!==P[1])&&r(N[0],N[1],P[0],P[1],N[0]+M[0],N[1]+M[1])&&r(N[0],N[1],P[0],P[1],P[0]+z[0],P[1]+z[1])&&(S=2);var Q=new c(S);for(k=M.length,b=0;b<S;b+=1){for(ut=tt(k),V=b/(S-1),Z=0,A=0;A<k;A+=1)D=Dt(1-V,3)*N[A]+3*Dt(1-V,2)*V*(N[A]+M[A])+3*(1-V)*Dt(V,2)*(P[A]+z[A])+Dt(V,3)*P[A],ut[A]=D,ct!==null&&(Z+=Dt(ut[A]-ct[A],2));Z=Te(Z),G+=Z,Q.points[b]=new u(Z,ut),ct=ut}Q.segmentLength=G,y[C]=Q}return y[C]}}();function f(y,N){var P=N.percents,M=N.lengths,z=P.length,C=ee((z-1)*y),S=y*N.addedLength,b=0;if(C===z-1||C===0||S===M[C])return P[C];for(var A=M[C]>S?-1:1,k=!0;k;)if(M[C]<=S&&M[C+1]>S?(b=(S-M[C])/(M[C+1]-M[C]),k=!1):C+=A,C<0||C>=z-1){if(C===z-1)return P[C];k=!1}return P[C]+(P[C+1]-P[C])*b}function I(y,N,P,M,z,C){var S=f(z,C),b=1-S,A=t.round((b*b*b*y[0]+(S*b*b+b*S*b+b*b*S)*P[0]+(S*S*b+b*S*S+S*b*S)*M[0]+S*S*S*N[0])*1e3)/1e3,k=t.round((b*b*b*y[1]+(S*b*b+b*S*b+b*b*S)*P[1]+(S*S*b+b*S*S+S*b*S)*M[1]+S*S*S*N[1])*1e3)/1e3;return[A,k]}var w=J("float32",8);function B(y,N,P,M,z,C,S){z<0?z=0:z>1&&(z=1);var b=f(z,S);C=C>1?1:C;var A=f(C,S),k,D=y.length,V=1-b,G=1-A,Z=V*V*V,ut=b*V*V*3,ct=b*b*V*3,Q=b*b*b,gt=V*V*G,st=b*V*G+V*b*G+V*V*A,X=b*b*G+V*b*A+b*V*A,_=b*b*A,R=V*G*G,m=b*G*G+V*A*G+V*G*A,g=b*A*G+V*A*A+b*G*A,U=b*A*A,F=G*G*G,rt=A*G*G+G*A*G+G*G*A,pt=A*A*G+G*A*A+A*G*A,ft=A*A*A;for(k=0;k<D;k+=1)w[k*4]=t.round((Z*y[k]+ut*P[k]+ct*M[k]+Q*N[k])*1e3)/1e3,w[k*4+1]=t.round((gt*y[k]+st*P[k]+X*M[k]+_*N[k])*1e3)/1e3,w[k*4+2]=t.round((R*y[k]+m*P[k]+g*M[k]+U*N[k])*1e3)/1e3,w[k*4+3]=t.round((F*y[k]+rt*P[k]+pt*M[k]+ft*N[k])*1e3)/1e3;return w}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:x,pointOnLine2D:r,pointOnLine3D:i}}var mr=bf(),fi=s,Sd=Math.abs;function Id(t,r){var i=this.offsetTime,a;this.propType==="multidimensional"&&(a=J("float32",this.pv.length));for(var d=r.lastIndex,c=d,u=this.keyframes.length-1,x=!0,f,I,w;x;){if(f=this.keyframes[c],I=this.keyframes[c+1],c===u-1&&t>=I.t-i){f.h&&(f=I),d=0;break}if(I.t-i>t){d=c;break}c<u-1?c+=1:(d=0,x=!1)}w=this.keyframesMetadata[c]||{};var B,y,N,P,M,z,C=I.t-i,S=f.t-i,b;if(f.to){w.bezierData||(w.bezierData=mr.buildBezierData(f.s,I.s||f.e,f.to,f.ti));var A=w.bezierData;if(t>=C||t<S){var k=t>=C?A.points.length-1:0;for(y=A.points[k].point.length,B=0;B<y;B+=1)a[B]=A.points[k].point[B]}else{w.__fnct?z=w.__fnct:(z=es.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y,f.n).get,w.__fnct=z),N=z((t-S)/(C-S));var D=A.segmentLength*N,V,G=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(M=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastPoint:0,x=!0,P=A.points.length;x;){if(G+=A.points[M].partialLength,D===0||N===0||M===A.points.length-1){for(y=A.points[M].point.length,B=0;B<y;B+=1)a[B]=A.points[M].point[B];break}else if(D>=G&&D<G+A.points[M+1].partialLength){for(V=(D-G)/A.points[M+1].partialLength,y=A.points[M].point.length,B=0;B<y;B+=1)a[B]=A.points[M].point[B]+(A.points[M+1].point[B]-A.points[M].point[B])*V;break}M<P-1?M+=1:x=!1}r._lastPoint=M,r._lastAddedLength=G-A.points[M].partialLength,r._lastKeyframeIndex=c}}else{var Z,ut,ct,Q,gt;if(u=f.s.length,b=I.s||f.e,this.sh&&f.h!==1)if(t>=C)a[0]=b[0],a[1]=b[1],a[2]=b[2];else if(t<=S)a[0]=f.s[0],a[1]=f.s[1],a[2]=f.s[2];else{var st=kd(f.s),X=kd(b),_=(t-S)/(C-S);Ef(a,yf(st,X,_))}else for(c=0;c<u;c+=1)f.h!==1&&(t>=C?N=1:t<S?N=0:(f.o.x.constructor===Array?(w.__fnct||(w.__fnct=[]),w.__fnct[c]?z=w.__fnct[c]:(Z=f.o.x[c]===void 0?f.o.x[0]:f.o.x[c],ut=f.o.y[c]===void 0?f.o.y[0]:f.o.y[c],ct=f.i.x[c]===void 0?f.i.x[0]:f.i.x[c],Q=f.i.y[c]===void 0?f.i.y[0]:f.i.y[c],z=es.getBezierEasing(Z,ut,ct,Q).get,w.__fnct[c]=z)):w.__fnct?z=w.__fnct:(Z=f.o.x,ut=f.o.y,ct=f.i.x,Q=f.i.y,z=es.getBezierEasing(Z,ut,ct,Q).get,f.keyframeMetadata=z),N=z((t-S)/(C-S)))),b=I.s||f.e,gt=f.h===1?f.s[c]:f.s[c]+(b[c]-f.s[c])*N,this.propType==="multidimensional"?a[c]=gt:a=gt}return r.lastIndex=d,a}function yf(t,r,i){var a=[],d=t[0],c=t[1],u=t[2],x=t[3],f=r[0],I=r[1],w=r[2],B=r[3],y,N,P,M,z;return N=d*f+c*I+u*w+x*B,N<0&&(N=-N,f=-f,I=-I,w=-w,B=-B),1-N>1e-6?(y=Math.acos(N),P=Math.sin(y),M=Math.sin((1-i)*y)/P,z=Math.sin(i*y)/P):(M=1-i,z=i),a[0]=M*d+z*f,a[1]=M*c+z*I,a[2]=M*u+z*w,a[3]=M*x+z*B,a}function Ef(t,r){var i=r[0],a=r[1],d=r[2],c=r[3],u=Math.atan2(2*a*c-2*i*d,1-2*a*a-2*d*d),x=Math.asin(2*i*a+2*d*c),f=Math.atan2(2*i*c-2*a*d,1-2*i*i-2*d*d);t[0]=u/At,t[1]=x/At,t[2]=f/At}function kd(t){var r=t[0]*At,i=t[1]*At,a=t[2]*At,d=Math.cos(r/2),c=Math.cos(i/2),u=Math.cos(a/2),x=Math.sin(r/2),f=Math.sin(i/2),I=Math.sin(a/2),w=d*c*u-x*f*I,B=x*f*u+d*c*I,y=x*c*u+d*f*I,N=d*f*u-x*c*I;return[B,y,N,w]}function Cd(){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!==fi&&(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 ha(t){var r;if(this.propType==="unidimensional")r=t*this.mult,Sd(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,Sd(this.v[i]-r)>1e-5&&(this.v[i]=r,this._mdf=!0),i+=1}function ma(){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 pa(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function Tf(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=ma,this.setVValue=ha,this.addEffect=pa}function xf(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=J("float32",c),this.pv=J("float32",c),this.vel=J("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=ma,this.setVValue=ha,this.addEffect=pa}function Af(t,r,i,a){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:fi,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=fi,this.pv=fi,this._isFirstFrame=!0,this.getValue=ma,this.setVValue=ha,this.interpolateValue=Id,this.effectsSequence=[Cd.bind(this)],this.addEffect=pa}function _f(t,r,i,a){this.propType="multidimensional";var d,c=r.k.length,u,x,f,I;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&&(u=r.k[d].s,x=r.k[d+1].s,f=r.k[d].to,I=r.k[d].ti,(u.length===2&&!(u[0]===x[0]&&u[1]===x[1])&&mr.pointOnLine2D(u[0],u[1],x[0],x[1],u[0]+f[0],u[1]+f[1])&&mr.pointOnLine2D(u[0],u[1],x[0],x[1],x[0]+I[0],x[1]+I[1])||u.length===3&&!(u[0]===x[0]&&u[1]===x[1]&&u[2]===x[2])&&mr.pointOnLine3D(u[0],u[1],u[2],x[0],x[1],x[2],u[0]+f[0],u[1]+f[1],u[2]+f[2])&&mr.pointOnLine3D(u[0],u[1],u[2],x[0],x[1],x[2],x[0]+I[0],x[1]+I[1],x[2]+I[2]))&&(r.k[d].to=null,r.k[d].ti=null),u[0]===x[0]&&u[1]===x[1]&&f[0]===0&&f[1]===0&&I[0]===0&&I[1]===0&&(u.length===2||u[2]===x[2]&&f[2]===0&&I[2]===0)&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[Cd.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=ma,this.setVValue=ha,this.interpolateValue=Id,this.frameId=-1;var w=r.k[0].s.length;for(this.v=J("float32",w),this.pv=J("float32",w),d=0;d<w;d+=1)this.v[d]=fi,this.pv[d]=fi;this._caching={lastFrame:fi,lastIndex:0,value:J("float32",w)},this.addEffect=pa}var et=function(){function t(i,a,d,c,u){a.sid&&(a=i.globalData.slotManager.getProp(a));var x;if(!a.k.length)x=new Tf(i,a,c,u);else if(typeof a.k[0]=="number")x=new xf(i,a,c,u);else switch(d){case 0:x=new Af(i,a,c,u);break;case 1:x=new _f(i,a,c,u);break;default:break}return x.effectsSequence.length&&u.addDynamicProperty(x),x}var r={getProp:t};return r}();function re(){}re.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 vi=function(){function t(){return J("float32",2)}return da(8,t)}();function xr(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}xr.prototype.setPathData=function(t,r){this.c=t,this.setLength(r);for(var i=0;i<r;)this.v[i]=vi.newElement(),this.o[i]=vi.newElement(),this.i[i]=vi.newElement(),i+=1},xr.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},xr.prototype.doubleArrayLength=function(){this.v=this.v.concat(tt(this._maxLength)),this.i=this.i.concat(tt(this._maxLength)),this.o=this.o.concat(tt(this._maxLength)),this._maxLength*=2},xr.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]=vi.newElement()),c[a][0]=t,c[a][1]=r},xr.prototype.setTripleAt=function(t,r,i,a,d,c,u,x){this.setXYAt(t,r,"v",u,x),this.setXYAt(i,a,"o",u,x),this.setXYAt(d,c,"i",u,x)},xr.prototype.reverse=function(){var t=new xr;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,u=this._length,x;for(x=d;x<u;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},xr.prototype.length=function(){return this._length};var ae=function(){function t(){return new xr}function r(d){var c=d._length,u;for(u=0;u<c;u+=1)vi.release(d.v[u]),vi.release(d.i[u]),vi.release(d.o[u]),d.v[u]=null,d.i[u]=null,d.o[u]=null;d._length=0,d.c=!1}function i(d){var c=a.newElement(),u,x=d._length===void 0?d.v.length:d._length;for(c.setLength(x),c.c=d.c,u=0;u<x;u+=1)c.setTripleAt(d.v[u][0],d.v[u][1],d.o[u][0],d.o[u][1],d.i[u][0],d.i[u][1],u);return c}var a=da(4,t,r);return a.clone=i,a}();function sl(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}sl.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},sl.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)ae.release(this.shapes[t]);this._length=0};var io=function(){var t={newShapeCollection:d,release:c},r=0,i=4,a=tt(i);function d(){var u;return r?(r-=1,u=a[r]):u=new sl,u}function c(u){var x,f=u._length;for(x=0;x<f;x+=1)ae.release(u.shapes[x]);u._length=0,r===i&&(a=xd.double(a),i*=2),a[r]=u,r+=1}return t}(),ua=function(){var t=-999999;function r(C,S,b){var A=b.lastIndex,k,D,V,G,Z,ut,ct,Q,gt,st=this.keyframes;if(C<st[0].t-this.offsetTime)k=st[0].s[0],V=!0,A=0;else if(C>=st[st.length-1].t-this.offsetTime)k=st[st.length-1].s?st[st.length-1].s[0]:st[st.length-2].e[0],V=!0;else{for(var X=A,_=st.length-1,R=!0,m,g,U;R&&(m=st[X],g=st[X+1],!(g.t-this.offsetTime>C));)X<_-1?X+=1:R=!1;if(U=this.keyframesMetadata[X]||{},V=m.h===1,A=X,!V){if(C>=g.t-this.offsetTime)Q=1;else if(C<m.t-this.offsetTime)Q=0;else{var F;U.__fnct?F=U.__fnct:(F=es.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,U.__fnct=F),Q=F((C-(m.t-this.offsetTime))/(g.t-this.offsetTime-(m.t-this.offsetTime)))}D=g.s?g.s[0]:m.e[0]}k=m.s[0]}for(ut=S._length,ct=k.i[0].length,b.lastIndex=A,G=0;G<ut;G+=1)for(Z=0;Z<ct;Z+=1)gt=V?k.i[G][Z]:k.i[G][Z]+(D.i[G][Z]-k.i[G][Z])*Q,S.i[G][Z]=gt,gt=V?k.o[G][Z]:k.o[G][Z]+(D.o[G][Z]-k.o[G][Z])*Q,S.o[G][Z]=gt,gt=V?k.v[G][Z]:k.v[G][Z]+(D.v[G][Z]-k.v[G][Z])*Q,S.v[G][Z]=gt}function i(){var C=this.comp.renderedFrame-this.offsetTime,S=this.keyframes[0].t-this.offsetTime,b=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==t&&(A<S&&C<S||A>b&&C>b)||(this._caching.lastIndex=A<C?this._caching.lastIndex:0,this.interpolateShape(C,this.pv,this._caching)),this._caching.lastFrame=C,this.pv}function a(){this.paths=this.localShapeCollection}function d(C,S){if(C._length!==S._length||C.c!==S.c)return!1;var b,A=C._length;for(b=0;b<A;b+=1)if(C.v[b][0]!==S.v[b][0]||C.v[b][1]!==S.v[b][1]||C.o[b][0]!==S.o[b][0]||C.o[b][1]!==S.o[b][1]||C.i[b][0]!==S.i[b][0]||C.i[b][1]!==S.i[b][1])return!1;return!0}function c(C){d(this.v,C)||(this.v=ae.clone(C),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function u(){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 C;this.kf?C=this.pv:this.data.ks?C=this.data.ks.k:C=this.data.pt.k;var S,b=this.effectsSequence.length;for(S=0;S<b;S+=1)C=this.effectsSequence[S](C);this.setVValue(C),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function x(C,S,b){this.propType="shape",this.comp=C.comp,this.container=C,this.elem=C,this.data=S,this.k=!1,this.kf=!1,this._mdf=!1;var A=b===3?S.pt.k:S.ks.k;this.v=ae.clone(A),this.pv=ae.clone(this.v),this.localShapeCollection=io.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function f(C){this.effectsSequence.push(C),this.container.addDynamicProperty(this)}x.prototype.interpolateShape=r,x.prototype.getValue=u,x.prototype.setVValue=c,x.prototype.addEffect=f;function I(C,S,b){this.propType="shape",this.comp=C.comp,this.elem=C,this.container=C,this.offsetTime=C.data.st,this.keyframes=b===3?S.pt.k:S.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var A=this.keyframes[0].s[0].i.length;this.v=ae.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,A),this.pv=ae.clone(this.v),this.localShapeCollection=io.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)]}I.prototype.getValue=u,I.prototype.interpolateShape=r,I.prototype.setVValue=c,I.prototype.addEffect=f;var w=function(){var C=he;function S(b,A){this.v=ae.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=io.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=A.d,this.elem=b,this.comp=b.comp,this.frameId=-1,this.initDynamicPropertyContainer(b),this.p=et.getProp(b,A.p,1,0,this),this.s=et.getProp(b,A.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return S.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 A=this.p.v[0],k=this.p.v[1],D=this.s.v[0]/2,V=this.s.v[1]/2,G=this.d!==3,Z=this.v;Z.v[0][0]=A,Z.v[0][1]=k-V,Z.v[1][0]=G?A+D:A-D,Z.v[1][1]=k,Z.v[2][0]=A,Z.v[2][1]=k+V,Z.v[3][0]=G?A-D:A+D,Z.v[3][1]=k,Z.i[0][0]=G?A-D*C:A+D*C,Z.i[0][1]=k-V,Z.i[1][0]=G?A+D:A-D,Z.i[1][1]=k-V*C,Z.i[2][0]=G?A+D*C:A-D*C,Z.i[2][1]=k+V,Z.i[3][0]=G?A-D:A+D,Z.i[3][1]=k+V*C,Z.o[0][0]=G?A+D*C:A-D*C,Z.o[0][1]=k-V,Z.o[1][0]=G?A+D:A-D,Z.o[1][1]=k+V*C,Z.o[2][0]=G?A-D*C:A+D*C,Z.o[2][1]=k+V,Z.o[3][0]=G?A-D:A+D,Z.o[3][1]=k-V*C}},$([re],S),S}(),B=function(){function C(S,b){this.v=ae.newElement(),this.v.setPathData(!0,0),this.elem=S,this.comp=S.comp,this.data=b,this.frameId=-1,this.d=b.d,this.initDynamicPropertyContainer(S),b.sy===1?(this.ir=et.getProp(S,b.ir,0,0,this),this.is=et.getProp(S,b.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=et.getProp(S,b.pt,0,0,this),this.p=et.getProp(S,b.p,1,0,this),this.r=et.getProp(S,b.r,0,At,this),this.or=et.getProp(S,b.or,0,0,this),this.os=et.getProp(S,b.os,0,.01,this),this.localShapeCollection=io.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return C.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 b=Math.floor(this.pt.v)*2,A=Math.PI*2/b,k=!0,D=this.or.v,V=this.ir.v,G=this.os.v,Z=this.is.v,ut=2*Math.PI*D/(b*2),ct=2*Math.PI*V/(b*2),Q,gt,st,X,_=-Math.PI/2;_+=this.r.v;var R=this.data.d===3?-1:1;for(this.v._length=0,Q=0;Q<b;Q+=1){gt=k?D:V,st=k?G:Z,X=k?ut:ct;var m=gt*Math.cos(_),g=gt*Math.sin(_),U=m===0&&g===0?0:g/Math.sqrt(m*m+g*g),F=m===0&&g===0?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-U*X*st*R,g-F*X*st*R,m+U*X*st*R,g+F*X*st*R,Q,!0),k=!k,_+=A*R}},convertPolygonToPath:function(){var b=Math.floor(this.pt.v),A=Math.PI*2/b,k=this.or.v,D=this.os.v,V=2*Math.PI*k/(b*4),G,Z=-Math.PI*.5,ut=this.data.d===3?-1:1;for(Z+=this.r.v,this.v._length=0,G=0;G<b;G+=1){var ct=k*Math.cos(Z),Q=k*Math.sin(Z),gt=ct===0&&Q===0?0:Q/Math.sqrt(ct*ct+Q*Q),st=ct===0&&Q===0?0:-ct/Math.sqrt(ct*ct+Q*Q);ct+=+this.p.v[0],Q+=+this.p.v[1],this.v.setTripleAt(ct,Q,ct-gt*V*D*ut,Q-st*V*D*ut,ct+gt*V*D*ut,Q+st*V*D*ut,G,!0),Z+=A*ut}this.paths.length=0,this.paths[0]=this.v}},$([re],C),C}(),y=function(){function C(S,b){this.v=ae.newElement(),this.v.c=!0,this.localShapeCollection=io.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=S,this.comp=S.comp,this.frameId=-1,this.d=b.d,this.initDynamicPropertyContainer(S),this.p=et.getProp(S,b.p,1,0,this),this.s=et.getProp(S,b.s,1,0,this),this.r=et.getProp(S,b.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return C.prototype={convertRectToPath:function(){var b=this.p.v[0],A=this.p.v[1],k=this.s.v[0]/2,D=this.s.v[1]/2,V=Me(k,D,this.r.v),G=V*(1-he);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(b+k,A-D+V,b+k,A-D+V,b+k,A-D+G,0,!0),this.v.setTripleAt(b+k,A+D-V,b+k,A+D-G,b+k,A+D-V,1,!0),V!==0?(this.v.setTripleAt(b+k-V,A+D,b+k-V,A+D,b+k-G,A+D,2,!0),this.v.setTripleAt(b-k+V,A+D,b-k+G,A+D,b-k+V,A+D,3,!0),this.v.setTripleAt(b-k,A+D-V,b-k,A+D-V,b-k,A+D-G,4,!0),this.v.setTripleAt(b-k,A-D+V,b-k,A-D+G,b-k,A-D+V,5,!0),this.v.setTripleAt(b-k+V,A-D,b-k+V,A-D,b-k+G,A-D,6,!0),this.v.setTripleAt(b+k-V,A-D,b+k-G,A-D,b+k-V,A-D,7,!0)):(this.v.setTripleAt(b-k,A+D,b-k+G,A+D,b-k,A+D,2),this.v.setTripleAt(b-k,A-D,b-k,A-D+G,b-k,A-D,3))):(this.v.setTripleAt(b+k,A-D+V,b+k,A-D+G,b+k,A-D+V,0,!0),V!==0?(this.v.setTripleAt(b+k-V,A-D,b+k-V,A-D,b+k-G,A-D,1,!0),this.v.setTripleAt(b-k+V,A-D,b-k+G,A-D,b-k+V,A-D,2,!0),this.v.setTripleAt(b-k,A-D+V,b-k,A-D+V,b-k,A-D+G,3,!0),this.v.setTripleAt(b-k,A+D-V,b-k,A+D-G,b-k,A+D-V,4,!0),this.v.setTripleAt(b-k+V,A+D,b-k+V,A+D,b-k+G,A+D,5,!0),this.v.setTripleAt(b+k-V,A+D,b+k-G,A+D,b+k-V,A+D,6,!0),this.v.setTripleAt(b+k,A+D-V,b+k,A+D-V,b+k,A+D-G,7,!0)):(this.v.setTripleAt(b-k,A-D,b-k+G,A-D,b-k,A-D,1,!0),this.v.setTripleAt(b-k,A+D,b-k,A+D-G,b-k,A+D,2,!0),this.v.setTripleAt(b+k,A+D,b+k-G,A+D,b+k,A+D,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},$([re],C),C}();function N(C,S,b){var A;if(b===3||b===4){var k=b===3?S.pt:S.ks,D=k.k;D.length?A=new I(C,S,b):A=new x(C,S,b)}else b===5?A=new y(C,S):b===6?A=new w(C,S):b===7&&(A=new B(C,S));return A.k&&C.addDynamicProperty(A),A}function P(){return x}function M(){return I}var z={};return z.getShapeProp=N,z.getConstructorFunction=P,z.getKeyframedConstructorFunction=M,z}();var ne=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 g=t(m),U=r(m);return this._t(g,-U,0,0,U,g,0,0,0,0,1,0,0,0,0,1)}function u(m){if(m===0)return this;var g=t(m),U=r(m);return this._t(1,0,0,0,0,g,-U,0,0,U,g,0,0,0,0,1)}function x(m){if(m===0)return this;var g=t(m),U=r(m);return this._t(g,0,U,0,0,1,0,0,-U,0,g,0,0,0,0,1)}function f(m){if(m===0)return this;var g=t(m),U=r(m);return this._t(g,-U,0,0,U,g,0,0,0,0,1,0,0,0,0,1)}function I(m,g){return this._t(1,g,m,1,0,0)}function w(m,g){return this.shear(i(m),i(g))}function B(m,g){var U=t(g),F=r(g);return this._t(U,F,0,0,-F,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,-F,0,0,F,U,0,0,0,0,1,0,0,0,0,1)}function y(m,g,U){return!U&&U!==0&&(U=1),m===1&&g===1&&U===1?this:this._t(m,0,0,0,0,g,0,0,0,0,U,0,0,0,0,1)}function N(m,g,U,F,rt,pt,ft,Ct,wt,qt,_e,ur,Se,ie,Re,Nt){return this.props[0]=m,this.props[1]=g,this.props[2]=U,this.props[3]=F,this.props[4]=rt,this.props[5]=pt,this.props[6]=ft,this.props[7]=Ct,this.props[8]=wt,this.props[9]=qt,this.props[10]=_e,this.props[11]=ur,this.props[12]=Se,this.props[13]=ie,this.props[14]=Re,this.props[15]=Nt,this}function P(m,g,U){return U=U||0,m!==0||g!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,m,g,U,1):this}function M(m,g,U,F,rt,pt,ft,Ct,wt,qt,_e,ur,Se,ie,Re,Nt){var nt=this.props;if(m===1&&g===0&&U===0&&F===0&&rt===0&&pt===1&&ft===0&&Ct===0&&wt===0&&qt===0&&_e===1&&ur===0)return nt[12]=nt[12]*m+nt[15]*Se,nt[13]=nt[13]*pt+nt[15]*ie,nt[14]=nt[14]*_e+nt[15]*Re,nt[15]*=Nt,this._identityCalculated=!1,this;var Sr=nt[0],Zr=nt[1],Ir=nt[2],fr=nt[3],kr=nt[4],Cr=nt[5],Ie=nt[6],Jr=nt[7],Qr=nt[8],rr=nt[9],ti=nt[10],ir=nt[11],Ei=nt[12],Aa=nt[13],_a=nt[14],Sa=nt[15];return nt[0]=Sr*m+Zr*rt+Ir*wt+fr*Se,nt[1]=Sr*g+Zr*pt+Ir*qt+fr*ie,nt[2]=Sr*U+Zr*ft+Ir*_e+fr*Re,nt[3]=Sr*F+Zr*Ct+Ir*ur+fr*Nt,nt[4]=kr*m+Cr*rt+Ie*wt+Jr*Se,nt[5]=kr*g+Cr*pt+Ie*qt+Jr*ie,nt[6]=kr*U+Cr*ft+Ie*_e+Jr*Re,nt[7]=kr*F+Cr*Ct+Ie*ur+Jr*Nt,nt[8]=Qr*m+rr*rt+ti*wt+ir*Se,nt[9]=Qr*g+rr*pt+ti*qt+ir*ie,nt[10]=Qr*U+rr*ft+ti*_e+ir*Re,nt[11]=Qr*F+rr*Ct+ti*ur+ir*Nt,nt[12]=Ei*m+Aa*rt+_a*wt+Sa*Se,nt[13]=Ei*g+Aa*pt+_a*qt+Sa*ie,nt[14]=Ei*U+Aa*ft+_a*_e+Sa*Re,nt[15]=Ei*F+Aa*Ct+_a*ur+Sa*Nt,this._identityCalculated=!1,this}function z(m){var g=m.props;return this.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15])}function C(){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 S(m){for(var g=0;g<16;){if(m.props[g]!==this.props[g])return!1;g+=1}return!0}function b(m){var g;for(g=0;g<16;g+=1)m.props[g]=this.props[g];return m}function A(m){var g;for(g=0;g<16;g+=1)this.props[g]=m[g]}function k(m,g,U){return{x:m*this.props[0]+g*this.props[4]+U*this.props[8]+this.props[12],y:m*this.props[1]+g*this.props[5]+U*this.props[9]+this.props[13],z:m*this.props[2]+g*this.props[6]+U*this.props[10]+this.props[14]}}function D(m,g,U){return m*this.props[0]+g*this.props[4]+U*this.props[8]+this.props[12]}function V(m,g,U){return m*this.props[1]+g*this.props[5]+U*this.props[9]+this.props[13]}function G(m,g,U){return m*this.props[2]+g*this.props[6]+U*this.props[10]+this.props[14]}function Z(){var m=this.props[0]*this.props[5]-this.props[1]*this.props[4],g=this.props[5]/m,U=-this.props[1]/m,F=-this.props[4]/m,rt=this.props[0]/m,pt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/m,ft=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/m,Ct=new ne;return Ct.props[0]=g,Ct.props[1]=U,Ct.props[4]=F,Ct.props[5]=rt,Ct.props[12]=pt,Ct.props[13]=ft,Ct}function ut(m){var g=this.getInverseMatrix();return g.applyToPointArray(m[0],m[1],m[2]||0)}function ct(m){var g,U=m.length,F=[];for(g=0;g<U;g+=1)F[g]=ut(m[g]);return F}function Q(m,g,U){var F=J("float32",6);if(this.isIdentity())F[0]=m[0],F[1]=m[1],F[2]=g[0],F[3]=g[1],F[4]=U[0],F[5]=U[1];else{var rt=this.props[0],pt=this.props[1],ft=this.props[4],Ct=this.props[5],wt=this.props[12],qt=this.props[13];F[0]=m[0]*rt+m[1]*ft+wt,F[1]=m[0]*pt+m[1]*Ct+qt,F[2]=g[0]*rt+g[1]*ft+wt,F[3]=g[0]*pt+g[1]*Ct+qt,F[4]=U[0]*rt+U[1]*ft+wt,F[5]=U[0]*pt+U[1]*Ct+qt}return F}function gt(m,g,U){var F;return this.isIdentity()?F=[m,g,U]:F=[m*this.props[0]+g*this.props[4]+U*this.props[8]+this.props[12],m*this.props[1]+g*this.props[5]+U*this.props[9]+this.props[13],m*this.props[2]+g*this.props[6]+U*this.props[10]+this.props[14]],F}function st(m,g){if(this.isIdentity())return m+","+g;var U=this.props;return Math.round((m*U[0]+g*U[4]+U[12])*100)/100+","+Math.round((m*U[1]+g*U[5]+U[13])*100)/100}function X(){for(var m=0,g=this.props,U="matrix3d(",F=1e4;m<16;)U+=a(g[m]*F)/F,U+=m===15?")":",",m+=1;return U}function _(m){var g=1e4;return m<1e-6&&m>0||m>-1e-6&&m<0?a(m*g)/g:m}function R(){var m=this.props,g=_(m[0]),U=_(m[1]),F=_(m[4]),rt=_(m[5]),pt=_(m[12]),ft=_(m[13]);return"matrix("+g+","+U+","+F+","+rt+","+pt+","+ft+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=u,this.rotateY=x,this.rotateZ=f,this.skew=w,this.skewFromAxis=B,this.shear=I,this.scale=y,this.setTransform=N,this.translate=P,this.transform=M,this.multiply=z,this.applyToPoint=k,this.applyToX=D,this.applyToY=V,this.applyToZ=G,this.applyToPointArray=gt,this.applyToTriplePoints=Q,this.applyToPointStringified=st,this.toCSS=X,this.to2dCSS=R,this.clone=b,this.cloneFromProps=A,this.equals=S,this.inversePoints=ct,this.inversePoint=ut,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=C,this._identity=!0,this._identityCalculated=!1,this.props=J("float32",16),this.reset()}}();function fa(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fa=function(i){return typeof i}:fa=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},fa(t)}var Lt={},va="__[STANDALONE]__",wd="__[ANIMATIONDATA]__",Ld="";function Sf(t){p(t)}function Nd(){va===!0?Yt.searchAnimations(wd,va,Ld):Yt.searchAnimations()}function If(t){lf(t)}function kf(t){hf(t)}function Cf(t){return va===!0&&(t.animationData=JSON.parse(wd)),Yt.loadAnimation(t)}function wf(t){if(typeof t=="string")switch(t){case"high":la(200);break;default:case"medium":la(50);break;case"low":la(10);break}else!isNaN(t)&&t>1&&la(t);Zo()>=50?$e(!1):$e(!0)}function Lf(){return typeof navigator<"u"}function Nf(t,r){t==="expressions"&&df(r)}function Mf(t){switch(t){case"propertyFactory":return et;case"shapePropertyFactory":return ua;case"matrix":return ne;default:return null}}Lt.play=Yt.play,Lt.pause=Yt.pause,Lt.setLocationHref=Sf,Lt.togglePause=Yt.togglePause,Lt.setSpeed=Yt.setSpeed,Lt.setDirection=Yt.setDirection,Lt.stop=Yt.stop,Lt.searchAnimations=Nd,Lt.registerAnimation=Yt.registerAnimation,Lt.loadAnimation=Cf,Lt.setSubframeRendering=If,Lt.resize=Yt.resize,Lt.goToAndStop=Yt.goToAndStop,Lt.destroy=Yt.destroy,Lt.setQuality=wf,Lt.inBrowser=Lf,Lt.installPlugin=Nf,Lt.freeze=Yt.freeze,Lt.unfreeze=Yt.unfreeze,Lt.setVolume=Yt.setVolume,Lt.mute=Yt.mute,Lt.unmute=Yt.unmute,Lt.getRegisteredAnimations=Yt.getRegisteredAnimations,Lt.useWebWorker=n,Lt.setIDPrefix=kf,Lt.__getFactory=Mf,Lt.version="5.12.2";function Rf(){document.readyState==="complete"&&(clearInterval(Df),Nd())}function Of(t){for(var r=Md.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 Md="";if(va){var Rd=document.getElementsByTagName("script"),Pf=Rd.length-1,Od=Rd[Pf]||{src:""};Md=Od.src?Od.src.replace(/^[^\?]+\??/,""):"",Ld=Of("renderer")}var Df=setInterval(Rf,100);try{!((typeof Cs>"u"?"undefined":fa(Cs))==="object"&&typeof Ka<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Lt)}catch{}var jr=function(){var t={},r={};t.registerModifier=i,t.getModifier=a;function i(d,c){r[d]||(r[d]=c)}function a(d,c,u){return new r[d](c,u)}return t}();function Ve(){}Ve.prototype.initModifierProperties=function(){},Ve.prototype.addShapeToModifier=function(){},Ve.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var r={shape:t.sh,data:t,localShapeCollection:io.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&t.setAsAnimated()}},Ve.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)},Ve.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},$([re],Ve);function er(){}$([Ve],er),er.prototype.initModifierProperties=function(t,r){this.s=et.getProp(t,r.s,0,.01,this),this.e=et.getProp(t,r.e,0,.01,this),this.o=et.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},er.prototype.addShapeToModifier=function(t){t.pathsData=[]},er.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 u=[],x,f=c.length,I;for(x=0;x<f;x+=1)if(I=c[x],!(I.e*d<a||I.s*d>a+i)){var w,B;I.s*d<=a?w=0:w=(I.s*d-a)/i,I.e*d>=a+i?B=1:B=(I.e*d-a)/i,u.push([w,B])}return u.length||u.push([0,0]),u},er.prototype.releasePathsData=function(t){var r,i=t.length;for(r=0;r<i;r+=1)_d.release(t[r]);return t.length=0,t},er.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,u,x=this.shapes.length,f,I,w,B,y,N=0;if(i===r)for(u=0;u<x;u+=1)this.shapes[u].localShapeCollection.releaseShapes(),this.shapes[u].shape._mdf=!0,this.shapes[u].shape.paths=this.shapes[u].localShapeCollection,this._mdf&&(this.shapes[u].pathsData.length=0);else if(i===1&&r===0||i===0&&r===1){if(this._mdf)for(u=0;u<x;u+=1)this.shapes[u].pathsData.length=0,this.shapes[u].shape._mdf=!0}else{var P=[],M,z;for(u=0;u<x;u+=1)if(M=this.shapes[u],!M.shape._mdf&&!this._mdf&&!t&&this.m!==2)M.shape.paths=M.localShapeCollection;else{if(c=M.shape.paths,I=c._length,y=0,!M.shape._mdf&&M.pathsData.length)y=M.totalShapeLength;else{for(w=this.releasePathsData(M.pathsData),f=0;f<I;f+=1)B=mr.getSegmentsLength(c.shapes[f]),w.push(B),y+=B.totalLength;M.totalShapeLength=y,M.pathsData=w}N+=y,M.shape._mdf=!0}var C=r,S=i,b=0,A;for(u=x-1;u>=0;u-=1)if(M=this.shapes[u],M.shape._mdf){for(z=M.localShapeCollection,z.releaseShapes(),this.m===2&&x>1?(A=this.calculateShapeEdges(r,i,M.totalShapeLength,b,N),b+=M.totalShapeLength):A=[[C,S]],I=A.length,f=0;f<I;f+=1){C=A[f][0],S=A[f][1],P.length=0,S<=1?P.push({s:M.totalShapeLength*C,e:M.totalShapeLength*S}):C>=1?P.push({s:M.totalShapeLength*(C-1),e:M.totalShapeLength*(S-1)}):(P.push({s:M.totalShapeLength*C,e:M.totalShapeLength}),P.push({s:0,e:M.totalShapeLength*(S-1)}));var k=this.addShapes(M,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var D=M.shape.paths.shapes[M.shape.paths._length-1];if(D.c){var V=k.pop();this.addPaths(k,z),k=this.addShapes(M,P[1],V)}else this.addPaths(k,z),k=this.addShapes(M,P[1])}this.addPaths(k,z)}}M.shape.paths=z}}},er.prototype.addPaths=function(t,r){var i,a=t.length;for(i=0;i<a;i+=1)r.addShape(t[i])},er.prototype.addSegment=function(t,r,i,a,d,c,u){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(i[0],i[1],"i",c+1),u&&d.setXYAt(t[0],t[1],"v",c),d.setXYAt(a[0],a[1],"v",c+1)},er.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)},er.prototype.addShapes=function(t,r,i){var a=t.pathsData,d=t.shape.paths.shapes,c,u=t.shape.paths._length,x,f,I=0,w,B,y,N,P=[],M,z=!0;for(i?(B=i._length,M=i._length):(i=ae.newElement(),B=0,M=0),P.push(i),c=0;c<u;c+=1){for(y=a[c].lengths,i.c=d[c].c,f=d[c].c?y.length:y.length+1,x=1;x<f;x+=1)if(w=y[x-1],I+w.addedLength<r.s)I+=w.addedLength,i.c=!1;else if(I>r.e){i.c=!1;break}else r.s<=I&&r.e>=I+w.addedLength?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[x],d[c].v[x],i,B,z),z=!1):(N=mr.getNewSegment(d[c].v[x-1],d[c].v[x],d[c].o[x-1],d[c].i[x],(r.s-I)/w.addedLength,(r.e-I)/w.addedLength,y[x-1]),this.addSegmentFromArray(N,i,B,z),z=!1,i.c=!1),I+=w.addedLength,B+=1;if(d[c].c&&y.length){if(w=y[x-1],I<=r.e){var C=y[x-1].addedLength;r.s<=I&&r.e>=I+C?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[0],d[c].v[0],i,B,z),z=!1):(N=mr.getNewSegment(d[c].v[x-1],d[c].v[0],d[c].o[x-1],d[c].i[0],(r.s-I)/C,(r.e-I)/C,y[x-1]),this.addSegmentFromArray(N,i,B,z),z=!1,i.c=!1)}else i.c=!1;I+=w.addedLength,B+=1}if(i._length&&(i.setXYAt(i.v[M][0],i.v[M][1],"i",M),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),I>r.e)break;c<u-1&&(i=ae.newElement(),z=!0,P.push(i),B=0)}return P};function rs(){}$([Ve],rs),rs.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=et.getProp(t,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},rs.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 u=ae.newElement();u.c=t.c;var x,f,I,w,B,y;for(c=0;c<d;c+=1)x=t.v[c][0]+(a[0]-t.v[c][0])*i,f=t.v[c][1]+(a[1]-t.v[c][1])*i,I=t.o[c][0]+(a[0]-t.o[c][0])*-i,w=t.o[c][1]+(a[1]-t.o[c][1])*-i,B=t.i[c][0]+(a[0]-t.i[c][0])*-i,y=t.i[c][1]+(a[1]-t.i[c][1])*-i,u.setTripleAt(x,f,I,w,B,y,c);return u},rs.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,u=this.amount.v;if(u!==0){var x,f;for(i=0;i<a;i+=1){if(x=this.shapes[i],f=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!t))for(f.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)f.addShape(this.processPath(r[d],u));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var al=function(){var t=[0,0];function r(f){var I=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||I,this.a&&f.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&f.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&f.skewFromAxis(-this.sk.v,this.sa.v),this.r?f.rotate(-this.r.v):f.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?f.translate(this.px.v,this.py.v,-this.pz.v):f.translate(this.px.v,this.py.v,0):f.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(f){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||f){var I;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 w,B;if(I=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(w=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/I,0),B=this.p.getValueAtTime(this.p.keyframes[0].t/I,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(w=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/I,0),B=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/I,0)):(w=this.p.pv,B=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/I,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){w=[],B=[];var y=this.px,N=this.py;y._caching.lastFrame+y.offsetTime<=y.keyframes[0].t?(w[0]=y.getValueAtTime((y.keyframes[0].t+.01)/I,0),w[1]=N.getValueAtTime((N.keyframes[0].t+.01)/I,0),B[0]=y.getValueAtTime(y.keyframes[0].t/I,0),B[1]=N.getValueAtTime(N.keyframes[0].t/I,0)):y._caching.lastFrame+y.offsetTime>=y.keyframes[y.keyframes.length-1].t?(w[0]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/I,0),w[1]=N.getValueAtTime(N.keyframes[N.keyframes.length-1].t/I,0),B[0]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/I,0),B[1]=N.getValueAtTime((N.keyframes[N.keyframes.length-1].t-.01)/I,0)):(w=[y.pv,N.pv],B[0]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/I,y.offsetTime),B[1]=N.getValueAtTime((N._caching.lastFrame+N.offsetTime-.01)/I,N.offsetTime))}else B=t,w=B;this.v.rotate(-Math.atan2(w[1]-B[1],w[0]-B[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(f){this._addDynamicProperty(f),this.elem.addDynamicProperty(f),this._isDirty=!0}function u(f,I,w){if(this.elem=f,this.frameId=-1,this.propType="transform",this.data=I,this.v=new ne,this.pre=new ne,this.appliedTransformations=0,this.initDynamicPropertyContainer(w||f),I.p&&I.p.s?(this.px=et.getProp(f,I.p.x,0,0,this),this.py=et.getProp(f,I.p.y,0,0,this),I.p.z&&(this.pz=et.getProp(f,I.p.z,0,0,this))):this.p=et.getProp(f,I.p||{k:[0,0,0]},1,0,this),I.rx){if(this.rx=et.getProp(f,I.rx,0,At,this),this.ry=et.getProp(f,I.ry,0,At,this),this.rz=et.getProp(f,I.rz,0,At,this),I.or.k[0].ti){var B,y=I.or.k.length;for(B=0;B<y;B+=1)I.or.k[B].to=null,I.or.k[B].ti=null}this.or=et.getProp(f,I.or,1,At,this),this.or.sh=!0}else this.r=et.getProp(f,I.r||{k:0},0,At,this);I.sk&&(this.sk=et.getProp(f,I.sk,0,At,this),this.sa=et.getProp(f,I.sa,0,At,this)),this.a=et.getProp(f,I.a||{k:[0,0,0]},1,0,this),this.s=et.getProp(f,I.s||{k:[100,100,100]},1,.01,this),I.o?this.o=et.getProp(f,I.o,0,.01,f):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}u.prototype={applyToMatrix:r,getValue:i,precalculateMatrix:a,autoOrient:d},$([re],u),u.prototype.addDynamicProperty=c,u.prototype._addDynamicProperty=re.prototype.addDynamicProperty;function x(f,I,w){return new u(f,I,w)}return{getTransformProperty:x}}();function pr(){}$([Ve],pr),pr.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.c=et.getProp(t,r.c,0,null,this),this.o=et.getProp(t,r.o,0,null,this),this.tr=al.getTransformProperty(t,r.tr,this),this.so=et.getProp(t,r.tr.so,0,.01,this),this.eo=et.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 ne,this.rMatrix=new ne,this.sMatrix=new ne,this.tMatrix=new ne,this.matrix=new ne},pr.prototype.applyTransforms=function(t,r,i,a,d,c){var u=c?-1:1,x=a.s.v[0]+(1-a.s.v[0])*(1-d),f=a.s.v[1]+(1-a.s.v[1])*(1-d);t.translate(a.p.v[0]*u*d,a.p.v[1]*u*d,a.p.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.rotate(-a.r.v*u*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/f:f),i.translate(a.a.v[0],a.a.v[1],a.a.v[2])},pr.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)},pr.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)},pr.prototype.cloneElements=function(t){var r=JSON.parse(JSON.stringify(t));return this.resetElements(r),r},pr.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)},pr.prototype.processShapes=function(t){var r,i,a,d,c,u=!1;if(this._mdf||t){var x=Math.ceil(this.c.v);if(this._groups.length<x){for(;this._groups.length<x;){var f={it:this.cloneElements(this._elements),ty:"gr"};f.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,f),this._groups.splice(0,0,f),this._currentCopies+=1}this.elem.reloadShapes(),u=!0}c=0;var I;for(a=0;a<=this._groups.length-1;a+=1){if(I=c<x,this._groups[a]._render=I,this.changeGroupRender(this._groups[a].it,I),!I){var w=this.elemsData[a].it,B=w[w.length-1];B.transform.op.v!==0?(B.transform.op._mdf=!0,B.transform.op.v=0):B.transform.op._mdf=!1}c+=1}this._currentCopies=x;var y=this.o.v,N=y%1,P=y>0?Math.floor(y):Math.ceil(y),M=this.pMatrix.props,z=this.rMatrix.props,C=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var S=0;if(y>0){for(;S<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;N&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,N,!1),S+=N)}else if(y<0){for(;S>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;N&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-N,!0),S-=N)}a=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,c=this._currentCopies;for(var b,A;c;){if(r=this.elemsData[a].it,i=r[r.length-1].transform.mProps.v.props,A=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)),S!==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(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15]),this.matrix.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),b=0;b<A;b+=1)i[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<A;b+=1)i[b]=this.matrix.props[b];S+=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 u},pr.prototype.addShape=function(){};function is(){}$([Ve],is),is.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.rd=et.getProp(t,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},is.prototype.processPath=function(t,r){var i=ae.newElement();i.c=t.c;var a,d=t._length,c,u,x,f,I,w,B=0,y,N,P,M,z,C;for(a=0;a<d;a+=1)c=t.v[a],x=t.o[a],u=t.i[a],c[0]===x[0]&&c[1]===x[1]&&c[0]===u[0]&&c[1]===u[1]?(a===0||a===d-1)&&!t.c?(i.setTripleAt(c[0],c[1],x[0],x[1],u[0],u[1],B),B+=1):(a===0?f=t.v[d-1]:f=t.v[a-1],I=Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)),w=I?Math.min(I/2,r)/I:0,z=c[0]+(f[0]-c[0])*w,y=z,C=c[1]-(c[1]-f[1])*w,N=C,P=y-(y-c[0])*he,M=N-(N-c[1])*he,i.setTripleAt(y,N,P,M,z,C,B),B+=1,a===d-1?f=t.v[0]:f=t.v[a+1],I=Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)),w=I?Math.min(I/2,r)/I:0,P=c[0]+(f[0]-c[0])*w,y=P,M=c[1]+(f[1]-c[1])*w,N=M,z=y-(y-c[0])*he,C=N-(N-c[1])*he,i.setTripleAt(y,N,P,M,z,C,B),B+=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],B),B+=1);return i},is.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,u=this.rd.v;if(u!==0){var x,f;for(i=0;i<a;i+=1){if(x=this.shapes[i],f=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!t))for(f.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)f.addShape(this.processPath(r[d],u));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ga(t,r){return Math.abs(t-r)*1e5<=Math.min(Math.abs(t),Math.abs(r))}function nl(t){return Math.abs(t)<=1e-5}function Pd(t,r,i){return t*(1-i)+r*i}function Wr(t,r,i){return[Pd(t[0],r[0],i),Pd(t[1],r[1],i)]}function Ff(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 Dd(t,r,i,a){return[-t+3*r-3*i+a,3*t-6*r+3*i,-3*t+3*r,t]}function Fd(t){return new Vt(t,t,t,t,!1)}function Vt(t,r,i,a,d){d&&so(t,r)&&(r=Wr(t,a,1/3)),d&&so(i,a)&&(i=Wr(t,a,2/3));var c=Dd(t[0],r[0],i[0],a[0]),u=Dd(t[1],r[1],i[1],a[1]);this.a=[c[0],u[0]],this.b=[c[1],u[1]],this.c=[c[2],u[2]],this.d=[c[3],u[3]],this.points=[t,r,i,a]}Vt.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]]},Vt.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]]},Vt.prototype.tangentAngle=function(t){var r=this.derivative(t);return Math.atan2(r[1],r[0])},Vt.prototype.normalAngle=function(t){var r=this.derivative(t);return Math.atan2(r[0],r[1])},Vt.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(nl(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 nl(a)?a>0&&a<1?[r]:[]:[r-a,r+a].filter(function(d){return d>0&&d<1})},Vt.prototype.split=function(t){if(t<=0)return[Fd(this.points[0]),this];if(t>=1)return[this,Fd(this.points[this.points.length-1])];var r=Wr(this.points[0],this.points[1],t),i=Wr(this.points[1],this.points[2],t),a=Wr(this.points[2],this.points[3],t),d=Wr(r,i,t),c=Wr(i,a,t),u=Wr(d,c,t);return[new Vt(this.points[0],r,d,u,!0),new Vt(u,c,a,this.points[3],!0)]};function $d(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=Ff(3*t.a[r],2*t.b[r],t.c[r]),u=0;u<c.length;u+=1)if(c[u]>0&&c[u]<1){var x=t.point(c[u])[r];x<i?i=x:x>a&&(a=x)}return{min:i,max:a}}Vt.prototype.bounds=function(){return{x:$d(this,0),y:$d(this,1)}},Vt.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 ba(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 zd(t){var r=t.bez.split(.5);return[ba(r[0],t.t1,t.t),ba(r[1],t.t,t.t2)]}function $f(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 os(t,r,i,a,d,c){if($f(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 u=zd(t),x=zd(r);os(u[0],x[0],i+1,a,d,c),os(u[0],x[1],i+1,a,d,c),os(u[1],x[0],i+1,a,d,c),os(u[1],x[1],i+1,a,d,c)}}Vt.prototype.intersections=function(t,r,i){r===void 0&&(r=2),i===void 0&&(i=7);var a=[];return os(ba(this,0,1),ba(t,0,1),0,r,a,i),a},Vt.shapeSegment=function(t,r){var i=(r+1)%t.length();return new Vt(t.v[r],t.o[r],t.i[i],t.v[i],!0)},Vt.shapeSegmentInverted=function(t,r){var i=(r+1)%t.length();return new Vt(t.v[i],t.i[i],t.o[r],t.v[r],!0)};function ll(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 ya(t,r,i,a){var d=[t[0],t[1],1],c=[r[0],r[1],1],u=[i[0],i[1],1],x=[a[0],a[1],1],f=ll(ll(d,c),ll(u,x));return nl(f[2])?null:[f[0]/f[2],f[1]/f[2]]}function oo(t,r,i){return[t[0]+Math.cos(r)*i,t[1]-Math.sin(r)*i]}function cl(t,r){return Math.hypot(t[0]-r[0],t[1]-r[1])}function so(t,r){return ga(t[0],r[0])&&ga(t[1],r[1])}function ss(){}$([Ve],ss),ss.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amplitude=et.getProp(t,r.s,0,null,this),this.frequency=et.getProp(t,r.r,0,null,this),this.pointsType=et.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 Vd(t,r,i,a,d,c,u){var x=i-Math.PI/2,f=i+Math.PI/2,I=r[0]+Math.cos(i)*a*d,w=r[1]-Math.sin(i)*a*d;t.setTripleAt(I,w,I+Math.cos(x)*c,w-Math.sin(x)*c,I+Math.cos(f)*u,w-Math.sin(f)*u,t.length())}function zf(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 Vf(t,r){var i=r===0?t.length()-1:r-1,a=(r+1)%t.length(),d=t.v[i],c=t.v[a],u=zf(d,c);return Math.atan2(0,1)-Math.atan2(u[1],u[0])}function Bd(t,r,i,a,d,c,u){var x=Vf(r,i),f=r.v[i%r._length],I=r.v[i===0?r._length-1:i-1],w=r.v[(i+1)%r._length],B=c===2?Math.sqrt(Math.pow(f[0]-I[0],2)+Math.pow(f[1]-I[1],2)):0,y=c===2?Math.sqrt(Math.pow(f[0]-w[0],2)+Math.pow(f[1]-w[1],2)):0;Vd(t,r.v[i%r._length],x,u,a,y/((d+1)*2),B/((d+1)*2),c)}function Bf(t,r,i,a,d,c){for(var u=0;u<a;u+=1){var x=(u+1)/(a+1),f=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,I=r.normalAngle(x),w=r.point(x);Vd(t,w,I,c,i,f/((a+1)*2),f/((a+1)*2),d),c=-c}return c}ss.prototype.processPath=function(t,r,i,a){var d=t._length,c=ae.newElement();if(c.c=t.c,t.c||(d-=1),d===0)return c;var u=-1,x=Vt.shapeSegment(t,0);Bd(c,t,0,r,i,a,u);for(var f=0;f<d;f+=1)u=Bf(c,x,r,i,a,-u),f===d-1&&!t.c?x=null:x=Vt.shapeSegment(t,(f+1)%d),Bd(c,t,f+1,r,i,a,u);return c},ss.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,u=this.amplitude.v,x=Math.max(0,Math.round(this.frequency.v)),f=this.pointsType.v;if(u!==0){var I,w;for(i=0;i<a;i+=1){if(I=this.shapes[i],w=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!t))for(w.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)w.addShape(this.processPath(r[d],u,x,f));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function dl(t,r,i){var a=Math.atan2(r[0]-t[0],r[1]-t[1]);return[oo(t,a,i),oo(r,a,i)]}function ao(t,r){var i,a,d,c,u,x,f;f=dl(t.points[0],t.points[1],r),i=f[0],a=f[1],f=dl(t.points[1],t.points[2],r),d=f[0],c=f[1],f=dl(t.points[2],t.points[3],r),u=f[0],x=f[1];var I=ya(i,a,d,c);I===null&&(I=a);var w=ya(u,x,d,c);return w===null&&(w=u),new Vt(i,I,w,x)}function Ud(t,r,i,a,d){var c=r.points[3],u=i.points[0];if(a===3||so(c,u))return c;if(a===2){var x=-r.tangentAngle(1),f=-i.tangentAngle(0)+Math.PI,I=ya(c,oo(c,x+Math.PI/2,100),u,oo(u,x+Math.PI/2,100)),w=I?cl(I,c):cl(c,u)/2,B=oo(c,x,2*w*he);return t.setXYAt(B[0],B[1],"o",t.length()-1),B=oo(u,f,2*w*he),t.setTripleAt(u[0],u[1],u[0],u[1],B[0],B[1],t.length()),u}var y=so(c,r.points[2])?r.points[0]:r.points[2],N=so(u,i.points[1])?i.points[3]:i.points[1],P=ya(y,c,u,N);return P&&cl(P,c)<d?(t.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],t.length()),P):c}function Gd(t,r){var i=t.intersections(r);return i.length&&ga(i[0][0],1)&&i.shift(),i.length?i[0]:null}function Hd(t,r){var i=t.slice(),a=r.slice(),d=Gd(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=Gd(t[0],r[r.length-1]),d)?[[t[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[i,a]}function Uf(t){for(var r,i=1;i<t.length;i+=1)r=Hd(t[i-1],t[i]),t[i-1]=r[0],t[i]=r[1];return t.length>1&&(r=Hd(t[t.length-1],t[0]),t[t.length-1]=r[0],t[0]=r[1]),t}function jd(t,r){var i=t.inflectionPoints(),a,d,c,u;if(i.length===0)return[ao(t,r)];if(i.length===1||ga(i[1],1))return c=t.split(i[0]),a=c[0],d=c[1],[ao(a,r),ao(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),u=c[0],d=c[1],[ao(a,r),ao(u,r),ao(d,r)]}function as(){}$([Ve],as),as.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=et.getProp(t,r.a,0,null,this),this.miterLimit=et.getProp(t,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},as.prototype.processPath=function(t,r,i,a){var d=ae.newElement();d.c=t.c;var c=t.length();t.c||(c-=1);var u,x,f,I=[];for(u=0;u<c;u+=1)f=Vt.shapeSegment(t,u),I.push(jd(f,r));if(!t.c)for(u=c-1;u>=0;u-=1)f=Vt.shapeSegmentInverted(t,u),I.push(jd(f,r));I=Uf(I);var w=null,B=null;for(u=0;u<I.length;u+=1){var y=I[u];for(B&&(w=Ud(d,B,y[0],i,a)),B=y[y.length-1],x=0;x<y.length;x+=1)f=y[x],w&&so(f.points[0],w)?d.setXYAt(f.points[1][0],f.points[1][1],"o",d.length()-1):d.setTripleAt(f.points[0][0],f.points[0][1],f.points[1][0],f.points[1][1],f.points[0][0],f.points[0][1],d.length()),d.setTripleAt(f.points[3][0],f.points[3][1],f.points[3][0],f.points[3][1],f.points[2][0],f.points[2][1],d.length()),w=f.points[3]}return I.length&&Ud(d,B,I[0][0],i,a),d},as.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,u=this.amount.v,x=this.miterLimit.v,f=this.lineJoin;if(u!==0){var I,w;for(i=0;i<a;i+=1){if(I=this.shapes[i],w=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!t))for(w.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)w.addShape(this.processPath(r[d],u,f,x));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Wd(t){for(var r=t.fStyle?t.fStyle.split(" "):[],i="normal",a="normal",d=r.length,c,u=0;u<d;u+=1)switch(c=r[u].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 gi=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,u=917626,x=65039,f=8205,I=127462,w=127487,B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function y(_){var R=_.split(","),m,g=R.length,U=[];for(m=0;m<g;m+=1)R[m]!=="sans-serif"&&R[m]!=="monospace"&&U.push(R[m]);return U.join(",")}function N(_,R){var m=L("span");m.setAttribute("aria-hidden",!0),m.style.fontFamily=R;var g=L("span");g.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(g),document.body.appendChild(m);var U=g.offsetWidth;return g.style.fontFamily=y(_)+", "+R,{node:g,w:U,parent:m}}function P(){var _,R=this.fonts.length,m,g,U=R;for(_=0;_<R;_+=1)this.fonts[_].loaded?U-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(m=this.fonts[_].monoCase.node,g=this.fonts[_].monoCase.w,m.offsetWidth!==g?(U-=1,this.fonts[_].loaded=!0):(m=this.fonts[_].sansCase.node,g=this.fonts[_].sansCase.w,m.offsetWidth!==g&&(U-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));U!==0&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function M(_,R){var m=document.body&&R?"svg":"canvas",g,U=Wd(_);if(m==="svg"){var F=vt("text");F.style.fontSize="100px",F.setAttribute("font-family",_.fFamily),F.setAttribute("font-style",U.style),F.setAttribute("font-weight",U.weight),F.textContent="1",_.fClass?(F.style.fontFamily="inherit",F.setAttribute("class",_.fClass)):F.style.fontFamily=_.fFamily,R.appendChild(F),g=F}else{var rt=new OffscreenCanvas(500,500).getContext("2d");rt.font=U.style+" "+U.weight+" 100px "+_.fFamily,g=rt}function pt(ft){return m==="svg"?(g.textContent=ft,g.getComputedTextLength()):g.measureText(ft).width}return{measureText:pt}}function z(_,R){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(_e){_e.helper=M(_e),_e.cache={}}),this.fonts=_.list;return}var m=_.list,g,U=m.length,F=U;for(g=0;g<U;g+=1){var rt=!0,pt,ft;if(m[g].loaded=!1,m[g].monoCase=N(m[g].fFamily,"monospace"),m[g].sansCase=N(m[g].fFamily,"sans-serif"),!m[g].fPath)m[g].loaded=!0,F-=1;else if(m[g].fOrigin==="p"||m[g].origin===3){if(pt=document.querySelectorAll('style[f-forigin="p"][f-family="'+m[g].fFamily+'"], style[f-origin="3"][f-family="'+m[g].fFamily+'"]'),pt.length>0&&(rt=!1),rt){var Ct=L("style");Ct.setAttribute("f-forigin",m[g].fOrigin),Ct.setAttribute("f-origin",m[g].origin),Ct.setAttribute("f-family",m[g].fFamily),Ct.type="text/css",Ct.innerText="@font-face {font-family: "+m[g].fFamily+"; font-style: normal; src: url('"+m[g].fPath+"');}",R.appendChild(Ct)}}else if(m[g].fOrigin==="g"||m[g].origin===1){for(pt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ft=0;ft<pt.length;ft+=1)pt[ft].href.indexOf(m[g].fPath)!==-1&&(rt=!1);if(rt){var wt=L("link");wt.setAttribute("f-forigin",m[g].fOrigin),wt.setAttribute("f-origin",m[g].origin),wt.type="text/css",wt.rel="stylesheet",wt.href=m[g].fPath,document.body.appendChild(wt)}}else if(m[g].fOrigin==="t"||m[g].origin===2){for(pt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ft=0;ft<pt.length;ft+=1)m[g].fPath===pt[ft].src&&(rt=!1);if(rt){var qt=L("link");qt.setAttribute("f-forigin",m[g].fOrigin),qt.setAttribute("f-origin",m[g].origin),qt.setAttribute("rel","stylesheet"),qt.setAttribute("href",m[g].fPath),R.appendChild(qt)}}m[g].helper=M(m[g],R),m[g].cache={},this.fonts.push(m[g])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function C(_){if(_){this.chars||(this.chars=[]);var R,m=_.length,g,U=this.chars.length,F;for(R=0;R<m;R+=1){for(g=0,F=!1;g<U;)this.chars[g].style===_[R].style&&this.chars[g].fFamily===_[R].fFamily&&this.chars[g].ch===_[R].ch&&(F=!0),g+=1;F||(this.chars.push(_[R]),U+=1)}}}function S(_,R,m){for(var g=0,U=this.chars.length;g<U;){if(this.chars[g].ch===_&&this.chars[g].style===R&&this.chars[g].fFamily===m)return this.chars[g];g+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,R,m)),r}function b(_,R,m){var g=this.getFontByName(R),U=_;if(!g.cache[U]){var F=g.helper;if(_===" "){var rt=F.measureText("|"+_+"|"),pt=F.measureText("||");g.cache[U]=(rt-pt)/100}else g.cache[U]=F.measureText(_)/100}return g.cache[U]*m}function A(_){for(var R=0,m=this.fonts.length;R<m;){if(this.fonts[R].fName===_)return this.fonts[R];R+=1}return this.fonts[0]}function k(_){var R=0,m=_.charCodeAt(0);if(m>=55296&&m<=56319){var g=_.charCodeAt(1);g>=56320&&g<=57343&&(R=(m-55296)*1024+g-56320+65536)}return R}function D(_,R){var m=_.toString(16)+R.toString(16);return B.indexOf(m)!==-1}function V(_){return _===f}function G(_){return _===x}function Z(_){var R=k(_);return R>=I&&R<=w}function ut(_){return Z(_.substr(0,2))&&Z(_.substr(2,2))}function ct(_){return i.indexOf(_)!==-1}function Q(_,R){var m=k(_.substr(R,2));if(m!==a)return!1;var g=0;for(R+=2;g<5;){if(m=k(_.substr(R,2)),m<c||m>u)return!1;g+=1,R+=2}return k(_.substr(R,2))===d}function gt(){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=D,st.isZeroWidthJoiner=V,st.isFlagEmoji=ut,st.isRegionalCode=Z,st.isCombinedCharacter=ct,st.isRegionalFlag=Q,st.isVariationSelector=G,st.BLACK_FLAG_CODE_POINT=a;var X={addChars:C,addFonts:z,getCharData:S,getFontByName:A,measureText:b,checkLoadedFonts:P,setIsLoaded:gt};return st.prototype=X,st}();function Yd(t){this.animationData=t}Yd.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function Gf(t){return new Yd(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 hl=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 Hf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function jf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Wf(t,r,i){this.p=et.getProp(r,t.v,1,0,i)}function Yf(t,r,i){this.p=et.getProp(r,t.v,1,0,i)}function qf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Kf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Xf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Zf(){this.p={}}function qd(t,r){var i=t.ef||[];this.effectElements=[];var a,d=i.length,c;for(a=0;a<d;a+=1)c=new ns(i[a],r),this.effectElements.push(c)}function ns(t,r){this.init(t,r)}$([re],ns),ns.prototype.getValue=ns.prototype.iterateDynamicProperties,ns.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 Hf(c[i],r,this);break;case 1:d=new jf(c[i],r,this);break;case 2:d=new Wf(c[i],r,this);break;case 3:d=new Yf(c[i],r,this);break;case 4:case 7:d=new Xf(c[i],r,this);break;case 10:d=new qf(c[i],r,this);break;case 11:d=new Kf(c[i],r,this);break;case 5:d=new qd(c[i],r,this);break;default:d=new Zf(c[i],r,this);break}d&&this.effectElements.push(d)}};function Yr(){}Yr.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=Ed();if(r){var i=r("layer"),a=r("effects"),d=r("shape"),c=r("text"),u=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=u(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=hl(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=xe(),this.data.sr||(this.data.sr=1),this.effectsManager=new qd(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function qr(){}qr.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 Kr(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)}Kr.prototype.prepareFrame=function(){},$([Ea,Yr,qr],Kr),Kr.prototype.getBaseElement=function(){return null},Kr.prototype.renderFrame=function(){},Kr.prototype.destroy=function(){},Kr.prototype.initExpressions=function(){var t=Ed();if(t){var r=t("footage");this.layerInterface=r(this)}},Kr.prototype.getFootageData=function(){return this.footageData};function Ae(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?et.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=et.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}Ae.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))},$([Ea,Yr,qr],Ae),Ae.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))},Ae.prototype.show=function(){},Ae.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ae.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ae.prototype.resume=function(){this._canPlay=!0},Ae.prototype.setRate=function(t){this.audio.rate(t)},Ae.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},Ae.prototype.getBaseElement=function(){return null},Ae.prototype.destroy=function(){},Ae.prototype.sourceRectAtTime=function(){},Ae.prototype.initExpressions=function(){};function le(){}le.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()},le.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)}},le.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},le.prototype.createAudio=function(t){return new Ae(t,this.globalData,this)},le.prototype.createFootage=function(t){return new Kr(t,this.globalData,this)},le.prototype.buildAllItems=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.buildItem(t);this.checkPendingElements()},le.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}},le.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},le.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},le.prototype.buildElementParenting=function(t,r,i){for(var a=this.elements,d=this.layers,c=0,u=d.length;c<u;)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},le.prototype.addPendingElement=function(t){this.pendingElements.push(t)},le.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)}},le.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},le.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)},le.prototype.setupGlobalData=function(t,r){this.globalData.fontManager=new gi,this.globalData.slotManager=Gf(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 Jf={TRANSFORM_EFFECT:"transformEFfect"};function no(){}no.prototype={initTransform:function(){var r=new ne;this.finalTransform={mProp:this.data.ks?al.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(Jf.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new ne;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,u=i.length,x;for(c=0;c<u;c+=1)x=i[c].mat.applyToPointArray(0,0,0),r=[r[0]-x[0],r[1]-x[1],0];return r},mHelper:new ne};function bi(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=tt(c),this.solidPath="";var u,x=this.masksProperties,f=0,I=[],w,B,y=xe(),N,P,M,z,C="clipPath",S="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)&&(C="mask",S="mask"),(x[d].mode==="s"||x[d].mode==="i")&&f===0?(N=vt("rect"),N.setAttribute("fill","#ffffff"),N.setAttribute("width",this.element.comp.data.w||0),N.setAttribute("height",this.element.comp.data.h||0),I.push(N)):N=null,u=vt("path"),x[d].mode==="n")this.viewData[d]={op:et.getProp(this.element,x[d].o,0,.01,this.element),prop:ua.getShapeProp(this.element,x[d],3),elem:u,lastPath:""},a.appendChild(u);else{f+=1,u.setAttribute("fill",x[d].mode==="s"?"#000000":"#ffffff"),u.setAttribute("clip-rule","nonzero");var b;if(x[d].x.k!==0?(C="mask",S="mask",z=et.getProp(this.element,x[d].x,0,null,this.element),b=xe(),P=vt("filter"),P.setAttribute("id",b),M=vt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),P.appendChild(M),a.appendChild(P),u.setAttribute("stroke",x[d].mode==="s"?"#000000":"#ffffff")):(M=null,z=null),this.storedData[d]={elem:u,x:z,expan:M,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},x[d].mode==="i"){B=I.length;var A=vt("g");for(w=0;w<B;w+=1)A.appendChild(I[w]);var k=vt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",y+"_"+f),k.appendChild(u),a.appendChild(k),A.setAttribute("mask","url("+T()+"#"+y+"_"+f+")"),I.length=0,I.push(A)}else I.push(u);x[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:u,lastPath:"",op:et.getProp(this.element,x[d].o,0,.01,this.element),prop:ua.getShapeProp(this.element,x[d],3),invRect:N},this.viewData[d].prop.k||this.drawPath(x[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=vt(C),c=I.length,d=0;d<c;d+=1)this.maskElement.appendChild(I[d]);f>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(S,"url("+T()+"#"+y+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}bi.prototype.getMaskProperty=function(t){return this.viewData[t].prop},bi.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("+T()+"#"+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))}},bi.prototype.getMaskelement=function(){return this.maskElement},bi.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},bi.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 u="";i.elem&&(r.c&&(u=t.inv?this.solidPath+a:a),i.elem.setAttribute("d",u)),i.lastPath=a}},bi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var ls=function(){var t={};t.createFilter=r,t.createAlphaToLuminanceFilter=i;function r(a,d){var c=vt("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=vt("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}(),Kd=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}(),Ta={},Xd="filter_result_";function ml(t){var r,i="SourceGraphic",a=t.data.ef?t.data.ef.length:0,d=xe(),c=ls.createFilter(d,!0),u=0;this.filters=[];var x;for(r=0;r<a;r+=1){x=null;var f=t.data.ef[r].ty;if(Ta[f]){var I=Ta[f].effect;x=new I(c,t.effectsManager.effectElements[r],t,Xd+u,i),i=Xd+u,Ta[f].countsAsEffect&&(u+=1)}x&&this.filters.push(x)}u&&(t.globalData.defs.appendChild(c),t.layerElement.setAttribute("filter","url("+T()+"#"+d+")")),this.filters.length&&t.addRenderableComponent(this)}ml.prototype.renderFrame=function(t){var r,i=this.filters.length;for(r=0;r<i;r+=1)this.filters[r].renderFrame(t)},ml.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 zy(t,r,i){Ta[t]={effect:r,countsAsEffect:i}}function cs(){}cs.prototype={initRendererElement:function(){this.layerElement=vt("g")},createContainerElements:function(){this.matteElement=vt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var i=vt("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=vt("clipPath"),d=vt("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=xe();if(a.setAttribute("id",c),a.appendChild(d),this.globalData.defs.appendChild(a),this.checkMasks()){var u=vt("g");u.setAttribute("clip-path","url("+T()+"#"+c+")"),u.appendChild(this.layerElement),this.transformedElement=u,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+T()+"#"+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 bi(this.data,this,this.globalData),this.renderableEffectsManager=new ml(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var i=this.layerId+"_"+r,a,d,c,u;if(r===1||r===3){var x=vt("mask");x.setAttribute("id",i),x.setAttribute("mask-type",r===3?"luminance":"alpha"),c=vt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),x.appendChild(c),this.globalData.defs.appendChild(x),!Kd.maskType&&r===1&&(x.setAttribute("mask-type","luminance"),a=xe(),d=ls.createFilter(a),this.globalData.defs.appendChild(d),d.appendChild(ls.createAlphaToLuminanceFilter()),u=vt("g"),u.appendChild(c),x.appendChild(u),u.setAttribute("filter","url("+T()+"#"+a+")"))}else if(r===2){var f=vt("mask");f.setAttribute("id",i),f.setAttribute("mask-type","alpha");var I=vt("g");f.appendChild(I),a=xe(),d=ls.createFilter(a);var w=vt("feComponentTransfer");w.setAttribute("in","SourceGraphic"),d.appendChild(w);var B=vt("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),w.appendChild(B),this.globalData.defs.appendChild(d);var y=vt("rect");y.setAttribute("width",this.comp.data.w),y.setAttribute("height",this.comp.data.h),y.setAttribute("x","0"),y.setAttribute("y","0"),y.setAttribute("fill","#ffffff"),y.setAttribute("opacity","0"),I.setAttribute("filter","url("+T()+"#"+a+")"),I.appendChild(y),c=vt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),Kd.maskType||(f.setAttribute("mask-type","luminance"),d.appendChild(ls.createAlphaToLuminanceFilter()),u=vt("g"),I.appendChild(y),u.appendChild(this.layerElement),I.appendChild(u)),this.globalData.defs.appendChild(f)}this.matteMasks[r]=i}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+T()+"#"+r+")")}};function lo(){}lo.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 ds(){}(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()}};$([Ea,K(t)],ds)})();function hs(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}}$([Yr,no,cs,lo,qr,ds],hs),hs.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=vt("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)},hs.prototype.sourceRectAtTime=function(){return this.sourceRect};function Qf(t,r){this.elem=t,this.pos=r}function Zd(){}Zd.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 Qf(r,i))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var Jd={1:"butt",2:"round",3:"square"},Qd={1:"miter",2:"round",3:"bevel"};function th(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}}th.prototype.setAsAnimated=function(){this._isAnimated=!0};function eh(t,r){this.data=t,this.type=t.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=t.hd===!0,this.pElem=vt("path"),this.msElem=null}eh.prototype.reset=function(){this.d="",this._mdf=!1};function xa(t,r,i,a){this.elem=t,this.frameId=-1,this.dataProps=tt(r.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=J("float32",r.length?r.length-1:0),this.dashoffset=J("float32",1),this.initDynamicPropertyContainer(a);var d,c=r.length||0,u;for(d=0;d<c;d+=1)u=et.getProp(t,r[d].v,0,0,this),this.k=u.k||this.k,this.dataProps[d]={n:r[d].n,p:u};this.k||this.getValue(!0),this._isAnimated=this.k}xa.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}},$([re],xa);function rh(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=et.getProp(t,r.o,0,.01,this),this.w=et.getProp(t,r.w,0,null,this),this.d=new xa(t,r.d||{},"svg",this),this.c=et.getProp(t,r.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}$([re],rh);function ih(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=et.getProp(t,r.o,0,.01,this),this.c=et.getProp(t,r.c,1,255,this),this.style=i}$([re],ih);function oh(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}$([re],oh);function ms(t,r,i){this.data=r,this.c=J("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=J("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(i),this.prop=et.getProp(t,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ms.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},ms.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},ms.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}},$([re],ms);function co(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,r,i)}co.prototype.initGradientData=function(t,r,i){this.o=et.getProp(t,r.o,0,.01,this),this.s=et.getProp(t,r.s,1,null,this),this.e=et.getProp(t,r.e,1,null,this),this.h=et.getProp(t,r.h||{k:0},0,.01,this),this.a=et.getProp(t,r.a||{k:0},0,At,this),this.g=new ms(t,r.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,r),this.setGradientOpacity(r,i),this._isAnimated=!!this._isAnimated},co.prototype.setGradientData=function(t,r){var i=xe(),a=vt(r.t===1?"linearGradient":"radialGradient");a.setAttribute("id",i),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,u,x;for(x=r.g.p*4,u=0;u<x;u+=4)c=vt("stop"),a.appendChild(c),d.push(c);t.setAttribute(r.ty==="gf"?"fill":"stroke","url("+T()+"#"+i+")"),this.gf=a,this.cst=d},co.prototype.setGradientOpacity=function(t,r){if(this.g._hasOpacity&&!this.g._collapsable){var i,a,d,c=vt("mask"),u=vt("path");c.appendChild(u);var x=xe(),f=xe();c.setAttribute("id",f);var I=vt(t.t===1?"linearGradient":"radialGradient");I.setAttribute("id",x),I.setAttribute("spreadMethod","pad"),I.setAttribute("gradientUnits","userSpaceOnUse"),d=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var w=this.stops;for(a=t.g.p*4;a<d;a+=2)i=vt("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(i),w.push(i);u.setAttribute(t.ty==="gf"?"fill":"stroke","url("+T()+"#"+x+")"),t.ty==="gs"&&(u.setAttribute("stroke-linecap",Jd[t.lc||2]),u.setAttribute("stroke-linejoin",Qd[t.lj||2]),t.lj===1&&u.setAttribute("stroke-miterlimit",t.ml)),this.of=I,this.ms=c,this.ost=w,this.maskId=f,r.msElem=u}},$([re],co);function sh(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=et.getProp(t,r.w,0,null,this),this.d=new xa(t,r.d||{},"svg",this),this.initGradientData(t,r,i),this._isAnimated=!!this._isAnimated}$([co,re],sh);function tv(){this.it=[],this.prevViewData=[],this.gr=vt("g")}function ev(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 ah=function(r,i,a,d){if(i===0)return"";var c=r.o,u=r.i,x=r.v,f,I=" M"+d.applyToPointStringified(x[0][0],x[0][1]);for(f=1;f<i;f+=1)I+=" C"+d.applyToPointStringified(c[f-1][0],c[f-1][1])+" "+d.applyToPointStringified(u[f][0],u[f][1])+" "+d.applyToPointStringified(x[f][0],x[f][1]);return a&&i&&(I+=" C"+d.applyToPointStringified(c[f-1][0],c[f-1][1])+" "+d.applyToPointStringified(u[0][0],u[0][1])+" "+d.applyToPointStringified(x[0][0],x[0][1]),I+="z"),I},rv=function(){var t=new ne,r=new ne,i={createRenderFunction:a};function a(B){switch(B.ty){case"fl":return x;case"gf":return I;case"gs":return f;case"st":return w;case"sh":case"el":case"rc":case"sr":return u;case"tr":return d;case"no":return c;default:return null}}function d(B,y,N){(N||y.transform.op._mdf)&&y.transform.container.setAttribute("opacity",y.transform.op.v),(N||y.transform.mProps._mdf)&&y.transform.container.setAttribute("transform",y.transform.mProps.v.to2dCSS())}function c(){}function u(B,y,N){var P,M,z,C,S,b,A=y.styles.length,k=y.lvl,D,V,G,Z;for(b=0;b<A;b+=1){if(C=y.sh._mdf||N,y.styles[b].lvl<k){for(V=r.reset(),G=k-y.styles[b].lvl,Z=y.transformers.length-1;!C&&G>0;)C=y.transformers[Z].mProps._mdf||C,G-=1,Z-=1;if(C)for(G=k-y.styles[b].lvl,Z=y.transformers.length-1;G>0;)V.multiply(y.transformers[Z].mProps.v),G-=1,Z-=1}else V=t;if(D=y.sh.paths,M=D._length,C){for(z="",P=0;P<M;P+=1)S=D.shapes[P],S&&S._length&&(z+=ah(S,S._length,S.c,V));y.caches[b]=z}else z=y.caches[b];y.styles[b].d+=B.hd===!0?"":z,y.styles[b]._mdf=C||y.styles[b]._mdf}}function x(B,y,N){var P=y.style;(y.c._mdf||N)&&P.pElem.setAttribute("fill","rgb("+ee(y.c.v[0])+","+ee(y.c.v[1])+","+ee(y.c.v[2])+")"),(y.o._mdf||N)&&P.pElem.setAttribute("fill-opacity",y.o.v)}function f(B,y,N){I(B,y,N),w(B,y,N)}function I(B,y,N){var P=y.gf,M=y.g._hasOpacity,z=y.s.v,C=y.e.v;if(y.o._mdf||N){var S=B.ty==="gf"?"fill-opacity":"stroke-opacity";y.style.pElem.setAttribute(S,y.o.v)}if(y.s._mdf||N){var b=B.t===1?"x1":"cx",A=b==="x1"?"y1":"cy";P.setAttribute(b,z[0]),P.setAttribute(A,z[1]),M&&!y.g._collapsable&&(y.of.setAttribute(b,z[0]),y.of.setAttribute(A,z[1]))}var k,D,V,G;if(y.g._cmdf||N){k=y.cst;var Z=y.g.c;for(V=k.length,D=0;D<V;D+=1)G=k[D],G.setAttribute("offset",Z[D*4]+"%"),G.setAttribute("stop-color","rgb("+Z[D*4+1]+","+Z[D*4+2]+","+Z[D*4+3]+")")}if(M&&(y.g._omdf||N)){var ut=y.g.o;for(y.g._collapsable?k=y.cst:k=y.ost,V=k.length,D=0;D<V;D+=1)G=k[D],y.g._collapsable||G.setAttribute("offset",ut[D*2]+"%"),G.setAttribute("stop-opacity",ut[D*2+1])}if(B.t===1)(y.e._mdf||N)&&(P.setAttribute("x2",C[0]),P.setAttribute("y2",C[1]),M&&!y.g._collapsable&&(y.of.setAttribute("x2",C[0]),y.of.setAttribute("y2",C[1])));else{var ct;if((y.s._mdf||y.e._mdf||N)&&(ct=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)),P.setAttribute("r",ct),M&&!y.g._collapsable&&y.of.setAttribute("r",ct)),y.e._mdf||y.h._mdf||y.a._mdf||N){ct||(ct=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)));var Q=Math.atan2(C[1]-z[1],C[0]-z[0]),gt=y.h.v;gt>=1?gt=.99:gt<=-1&&(gt=-.99);var st=ct*gt,X=Math.cos(Q+y.a.v)*st+z[0],_=Math.sin(Q+y.a.v)*st+z[1];P.setAttribute("fx",X),P.setAttribute("fy",_),M&&!y.g._collapsable&&(y.of.setAttribute("fx",X),y.of.setAttribute("fy",_))}}}function w(B,y,N){var P=y.style,M=y.d;M&&(M._mdf||N)&&M.dashStr&&(P.pElem.setAttribute("stroke-dasharray",M.dashStr),P.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),y.c&&(y.c._mdf||N)&&P.pElem.setAttribute("stroke","rgb("+ee(y.c.v[0])+","+ee(y.c.v[1])+","+ee(y.c.v[2])+")"),(y.o._mdf||N)&&P.pElem.setAttribute("stroke-opacity",y.o.v),(y.w._mdf||N)&&(P.pElem.setAttribute("stroke-width",y.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",y.w.v))}return i}();function Ht(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=[]}$([Yr,no,cs,Zd,lo,qr,ds],Ht),Ht.prototype.initSecondaryElement=function(){},Ht.prototype.identityMatrix=new ne,Ht.prototype.buildExpressionInterface=function(){},Ht.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Ht.prototype.filterUniqueShapes=function(){var t,r=this.shapes.length,i,a,d=this.stylesList.length,c,u=[],x=!1;for(a=0;a<d;a+=1){for(c=this.stylesList[a],x=!1,u.length=0,t=0;t<r;t+=1)i=this.shapes[t],i.styles.indexOf(c)!==-1&&(u.push(i),x=i._isAnimated||x);u.length>1&&x&&this.setShapesAsAnimated(u)}},Ht.prototype.setShapesAsAnimated=function(t){var r,i=t.length;for(r=0;r<i;r+=1)t[r].setAsAnimated()},Ht.prototype.createStyleElement=function(t,r){var i,a=new eh(t,r),d=a.pElem;if(t.ty==="st")i=new rh(this,t,a);else if(t.ty==="fl")i=new ih(this,t,a);else if(t.ty==="gf"||t.ty==="gs"){var c=t.ty==="gf"?co:sh;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("+T()+"#"+i.maskId+")"))}else t.ty==="no"&&(i=new oh(this,t,a));return(t.ty==="st"||t.ty==="gs")&&(d.setAttribute("stroke-linecap",Jd[t.lc||2]),d.setAttribute("stroke-linejoin",Qd[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"]=hl(t.bm)),this.stylesList.push(a),this.addToAnimatedContents(t,i),i},Ht.prototype.createGroupElement=function(t){var r=new tv;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"]=hl(t.bm)),r},Ht.prototype.createTransformElement=function(t,r){var i=al.getTransformProperty(this,t,this),a=new ev(i,i.o,r);return this.addToAnimatedContents(t,a),a},Ht.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=ua.getShapeProp(this,t,a,this),c=new th(r,i,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(t,c),c},Ht.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:rv.createRenderFunction(t),element:r,data:t})},Ht.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])},Ht.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()},Ht.prototype.searchShapes=function(t,r,i,a,d,c,u){var x=[].concat(c),f,I=t.length-1,w,B,y=[],N=[],P,M,z;for(f=I;f>=0;f-=1){if(z=this.searchProcessedElement(t[f]),z?r[f]=i[z-1]:t[f]._render=u,t[f].ty==="fl"||t[f].ty==="st"||t[f].ty==="gf"||t[f].ty==="gs"||t[f].ty==="no")z?r[f].style.closed=!1:r[f]=this.createStyleElement(t[f],d),t[f]._render&&r[f].style.pElem.parentNode!==a&&a.appendChild(r[f].style.pElem),y.push(r[f].style);else if(t[f].ty==="gr"){if(!z)r[f]=this.createGroupElement(t[f]);else for(B=r[f].it.length,w=0;w<B;w+=1)r[f].prevViewData[w]=r[f].it[w];this.searchShapes(t[f].it,r[f].it,r[f].prevViewData,r[f].gr,d+1,x,u),t[f]._render&&r[f].gr.parentNode!==a&&a.appendChild(r[f].gr)}else t[f].ty==="tr"?(z||(r[f]=this.createTransformElement(t[f],a)),P=r[f].transform,x.push(P)):t[f].ty==="sh"||t[f].ty==="rc"||t[f].ty==="el"||t[f].ty==="sr"?(z||(r[f]=this.createShapeElement(t[f],x,d)),this.setElementStyles(r[f])):t[f].ty==="tm"||t[f].ty==="rd"||t[f].ty==="ms"||t[f].ty==="pb"||t[f].ty==="zz"||t[f].ty==="op"?(z?(M=r[f],M.closed=!1):(M=jr.getModifier(t[f].ty),M.init(this,t[f]),r[f]=M,this.shapeModifiers.push(M)),N.push(M)):t[f].ty==="rp"&&(z?(M=r[f],M.closed=!0):(M=jr.getModifier(t[f].ty),r[f]=M,M.init(this,t,f,r),this.shapeModifiers.push(M),u=!1),N.push(M));this.addProcessedElement(t[f],f+1)}for(I=y.length,f=0;f<I;f+=1)y[f].closed=!0;for(I=N.length,f=0;f<I;f+=1)N[f].closed=!0},Ht.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"))},Ht.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)},Ht.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function pl(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}}pl.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 u=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,u=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,u=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,u=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,u=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,u=!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,u=!0),u};function me(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)}me.prototype.defaultBoxWidth=[0,0],me.prototype.copyData=function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},me.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},me.prototype.searchProperty=function(){return this.searchKeyframes()},me.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},me.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},me.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}},me.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},me.prototype.buildFinalText=function(t){for(var r=[],i=0,a=t.length,d,c,u=!1,x=!1,f="";i<a;)u=x,x=!1,d=t.charCodeAt(i),f=t.charAt(i),gi.isCombinedCharacter(d)?u=!0:d>=55296&&d<=56319?gi.isRegionalFlag(t,i)?f=t.substr(i,14):(c=t.charCodeAt(i+1),c>=56320&&c<=57343&&(gi.isModifier(d,c)?(f=t.substr(i,2),u=!0):gi.isFlagEmoji(t.substr(i,4))?f=t.substr(i,4):f=t.substr(i,2))):d>56319?(c=t.charCodeAt(i+1),gi.isVariationSelector(d)&&(u=!0)):gi.isZeroWidthJoiner(d)&&(u=!0,x=!0),u?(r[r.length-1]+=f,u=!1):r.push(f),i+=f.length;return r},me.prototype.completeTextData=function(t){t.__complete=!0;var r=this.elem.globalData.fontManager,i=this.data,a=[],d,c,u,x=0,f,I=i.m.g,w=0,B=0,y=0,N=[],P=0,M=0,z,C,S=r.getFontByName(t.f),b,A=0,k=Wd(S);t.fWeight=k.weight,t.fStyle=k.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),c=t.finalText.length,t.finalLineHeight=t.lh;var D=t.tr/1e3*t.finalSize,V;if(t.sz)for(var G=!0,Z=t.sz[0],ut=t.sz[1],ct,Q;G;){Q=this.buildFinalText(t.t),ct=0,P=0,c=Q.length,D=t.tr/1e3*t.finalSize;var gt=-1;for(d=0;d<c;d+=1)V=Q[d].charCodeAt(0),u=!1,Q[d]===" "?gt=d:(V===13||V===3)&&(P=0,u=!0,ct+=t.finalLineHeight||t.finalSize*1.2),r.chars?(b=r.getCharData(Q[d],S.fStyle,S.fFamily),A=u?0:b.w*t.finalSize/100):A=r.measureText(Q[d],t.f,t.finalSize),P+A>Z&&Q[d]!==" "?(gt===-1?c+=1:d=gt,ct+=t.finalLineHeight||t.finalSize*1.2,Q.splice(d,gt===d?1:0,"\r"),gt=-1,P=0):(P+=A,P+=D);ct+=S.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&ut<ct?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=Q,c=t.finalText.length,G=!1)}P=-D,A=0;var st=0,X;for(d=0;d<c;d+=1)if(u=!1,X=t.finalText[d],V=X.charCodeAt(0),V===13||V===3?(st=0,N.push(P),M=P>M?P:M,P=-2*D,f="",u=!0,y+=1):f=X,r.chars?(b=r.getCharData(X,S.fStyle,r.getFontByName(t.f).fFamily),A=u?0:b.w*t.finalSize/100):A=r.measureText(f,t.f,t.finalSize),X===" "?st+=A+D:(P+=A+D+st,st=0),a.push({l:A,an:A,add:w,n:u,anIndexes:[],val:f,line:y,animatorJustifyOffset:0}),I==2){if(w+=A,f===""||f===" "||d===c-1){for((f===""||f===" ")&&(w-=A);B<=d;)a[B].an=w,a[B].ind=x,a[B].extra=A,B+=1;x+=1,w=0}}else if(I==3){if(w+=A,f===""||d===c-1){for(f===""&&(w-=A);B<=d;)a[B].an=w,a[B].ind=x,a[B].extra=A,B+=1;w=0,x+=1}}else a[x].ind=x,a[x].extra=0,x+=1;if(t.l=a,M=P>M?P:M,N.push(P),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=M,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=N;var _=i.a,R,m;C=_.length;var g,U,F=[];for(z=0;z<C;z+=1){for(R=_[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,g=R.s.b,d=0;d<c;d+=1)m=a[d],m.anIndexes[z]=U,(g==1&&m.val!==""||g==2&&m.val!==""&&m.val!==" "||g==3&&(m.n||m.val==" "||d==c-1)||g==4&&(m.n||d==c-1))&&(R.s.rn===1&&F.push(U),U+=1);i.a[z].s.totalChars=U;var rt=-1,pt;if(R.s.rn===1)for(d=0;d<c;d+=1)m=a[d],rt!=m.anIndexes[z]&&(rt=m.anIndexes[z],pt=F.splice(Math.floor(Math.random()*F.length),1)[0]),m.anIndexes[z]=pt}t.yOffset=t.finalLineHeight||t.finalSize*1.2,t.ls=t.ls||0,t.ascent=S.ascent*t.finalSize/100},me.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)},me.prototype.recalculate=function(t){var r=this.data.d.k[t].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},me.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},me.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var iv=function(){var t=Math.max,r=Math.min,i=Math.floor;function a(c,u){this._currentTextLength=-1,this.k=!1,this.data=u,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=et.getProp(c,u.s||{k:0},0,0,this),"e"in u?this.e=et.getProp(c,u.e,0,0,this):this.e={v:100},this.o=et.getProp(c,u.o||{k:0},0,0,this),this.xe=et.getProp(c,u.xe||{k:0},0,0,this),this.ne=et.getProp(c,u.ne||{k:0},0,0,this),this.sm=et.getProp(c,u.sm||{k:100},0,0,this),this.a=et.getProp(c,u.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(u){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var x=0,f=0,I=1,w=1;this.ne.v>0?x=this.ne.v/100:f=-this.ne.v/100,this.xe.v>0?I=1-this.xe.v/100:w=1+this.xe.v/100;var B=es.getBezierEasing(x,f,I,w).get,y=0,N=this.finalS,P=this.finalE,M=this.data.sh;if(M===2)P===N?y=u>=P?1:0:y=t(0,r(.5/(P-N)+(u-N)/(P-N),1)),y=B(y);else if(M===3)P===N?y=u>=P?0:1:y=1-t(0,r(.5/(P-N)+(u-N)/(P-N),1)),y=B(y);else if(M===4)P===N?y=0:(y=t(0,r(.5/(P-N)+(u-N)/(P-N),1)),y<.5?y*=2:y=1-2*(y-.5)),y=B(y);else if(M===5){if(P===N)y=0;else{var z=P-N;u=r(t(0,u+.5-N),P-N);var C=-z/2+u,S=z/2;y=Math.sqrt(1-C*C/(S*S))}y=B(y)}else M===6?(P===N?y=0:(u=r(t(0,u+.5-N),P-N),y=(1+Math.cos(Math.PI+Math.PI*2*u/(P-N)))/2),y=B(y)):(u>=i(N)&&(u-N<0?y=t(0,r(r(P,1)-(N-u),1)):y=t(0,r(P-u,1))),y=B(y));if(this.sm.v!==100){var b=this.sm.v*.01;b===0&&(b=1e-8);var A=.5-b*.5;y<A?y=0:(y=(y-A)/b,y>1&&(y=1))}return y*this.a.v},getValue:function(u){this.iterateDynamicProperties(),this._mdf=u||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,u&&this.data.r===2&&(this.e.v=this._currentTextLength);var x=this.data.r===2?1:100/this.data.totalChars,f=this.o.v/x,I=this.s.v/x+f,w=this.e.v/x+f;if(I>w){var B=I;I=w,w=B}this.finalS=I,this.finalE=w}},$([re],a);function d(c,u,x){return new a(c,u,x)}return{getTextSelectorProp:d}}();function ov(t,r,i){var a={propType:!1},d=et.getProp,c=r.a;this.a={r:c.r?d(t,c.r,0,At,i):a,rx:c.rx?d(t,c.rx,0,At,i):a,ry:c.ry?d(t,c.ry,0,At,i):a,sk:c.sk?d(t,c.sk,0,At,i):a,sa:c.sa?d(t,c.sa,0,At,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=iv.getTextSelectorProp(t,r.s,i),this.s.t=r.s.t}function yi(t,r,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=r,this._elem=i,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}yi.prototype.searchProperties=function(){var t,r=this._textData.a.length,i,a=et.getProp;for(t=0;t<r;t+=1)i=this._textData.a[t],this._animatorsData[t]=new ov(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)},yi.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,u=this._renderType,x=this.renderedLetters.length,f,I,w,B,y=t.l,N,P,M,z,C,S,b,A,k,D,V,G,Z,ut,ct;if(this._hasMaskedPath){if(ct=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Q=ct.v;this._pathData.r.v&&(Q=Q.reverse()),N={tLength:0,segments:[]},B=Q._length-1;var gt;for(G=0,w=0;w<B;w+=1)gt=mr.buildBezierData(Q.v[w],Q.v[w+1],[Q.o[w][0]-Q.v[w][0],Q.o[w][1]-Q.v[w][1]],[Q.i[w+1][0]-Q.v[w+1][0],Q.i[w+1][1]-Q.v[w+1][1]]),N.tLength+=gt.segmentLength,N.segments.push(gt),G+=gt.segmentLength;w=B,ct.v.c&&(gt=mr.buildBezierData(Q.v[w],Q.v[0],[Q.o[w][0]-Q.v[w][0],Q.o[w][1]-Q.v[w][1]],[Q.i[0][0]-Q.v[0][0],Q.i[0][1]-Q.v[0][1]]),N.tLength+=gt.segmentLength,N.segments.push(gt),G+=gt.segmentLength),this._pathData.pi=N}if(N=this._pathData.pi,P=this._pathData.f.v,b=0,S=1,z=0,C=!0,D=N.segments,P<0&&ct.v.c)for(N.tLength<Math.abs(P)&&(P=-Math.abs(P)%N.tLength),b=D.length-1,k=D[b].points,S=k.length-1;P<0;)P+=k[S].partialLength,S-=1,S<0&&(b-=1,k=D[b].points,S=k.length-1);k=D[b].points,A=k[S-1],M=k[S],V=M.partialLength}B=y.length,f=0,I=0;var st=t.finalSize*1.2*.714,X=!0,_,R,m,g,U;g=a.length;var F,rt=-1,pt,ft,Ct,wt=P,qt=b,_e=S,ur=-1,Se,ie,Re,Nt,nt,Sr,Zr,Ir,fr="",kr=this.defaultPropsArray,Cr;if(t.j===2||t.j===1){var Ie=0,Jr=0,Qr=t.j===2?-.5:-1,rr=0,ti=!0;for(w=0;w<B;w+=1)if(y[w].n){for(Ie&&(Ie+=Jr);rr<w;)y[rr].animatorJustifyOffset=Ie,rr+=1;Ie=0,ti=!0}else{for(m=0;m<g;m+=1)_=a[m].a,_.t.propType&&(ti&&t.j===2&&(Jr+=_.t.v*Qr),R=a[m].s,F=R.getMult(y[w].anIndexes[m],d.a[m].s.totalChars),F.length?Ie+=_.t.v*F[0]*Qr:Ie+=_.t.v*F*Qr);ti=!1}for(Ie&&(Ie+=Jr);rr<w;)y[rr].animatorJustifyOffset=Ie,rr+=1}for(w=0;w<B;w+=1){if(c.reset(),Se=1,y[w].n)f=0,I+=t.yOffset,I+=X?1:0,P=wt,X=!1,this._hasMaskedPath&&(b=qt,S=_e,k=D[b].points,A=k[S-1],M=k[S],V=M.partialLength,z=0),fr="",Ir="",Sr="",Cr="",kr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ur!==y[w].line){switch(t.j){case 1:P+=G-t.lineWidths[y[w].line];break;case 2:P+=(G-t.lineWidths[y[w].line])/2;break;default:break}ur=y[w].line}rt!==y[w].ind&&(y[rt]&&(P+=y[rt].extra),P+=y[w].an/2,rt=y[w].ind),P+=i[0]*y[w].an*.005;var ir=0;for(m=0;m<g;m+=1)_=a[m].a,_.p.propType&&(R=a[m].s,F=R.getMult(y[w].anIndexes[m],d.a[m].s.totalChars),F.length?ir+=_.p.v[0]*F[0]:ir+=_.p.v[0]*F),_.a.propType&&(R=a[m].s,F=R.getMult(y[w].anIndexes[m],d.a[m].s.totalChars),F.length?ir+=_.a.v[0]*F[0]:ir+=_.a.v[0]*F);for(C=!0,this._pathData.a.v&&(P=y[0].an*.5+(G-this._pathData.f.v-y[0].an*.5-y[y.length-1].an*.5)*rt/(B-1),P+=this._pathData.f.v);C;)z+V>=P+ir||!k?(Z=(P+ir-z)/M.partialLength,ft=A.point[0]+(M.point[0]-A.point[0])*Z,Ct=A.point[1]+(M.point[1]-A.point[1])*Z,c.translate(-i[0]*y[w].an*.005,-(i[1]*st)*.01),C=!1):k&&(z+=M.partialLength,S+=1,S>=k.length&&(S=0,b+=1,D[b]?k=D[b].points:ct.v.c?(S=0,b=0,k=D[b].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[S],V=M.partialLength));pt=y[w].an/2-y[w].add,c.translate(-pt,0,0)}else pt=y[w].an/2-y[w].add,c.translate(-pt,0,0),c.translate(-i[0]*y[w].an*.005,-i[1]*st*.01,0);for(m=0;m<g;m+=1)_=a[m].a,_.t.propType&&(R=a[m].s,F=R.getMult(y[w].anIndexes[m],d.a[m].s.totalChars),(f!==0||t.j!==0)&&(this._hasMaskedPath?F.length?P+=_.t.v*F[0]:P+=_.t.v*F:F.length?f+=_.t.v*F[0]:f+=_.t.v*F));for(t.strokeWidthAnim&&(Re=t.sw||0),t.strokeColorAnim&&(t.sc?ie=[t.sc[0],t.sc[1],t.sc[2]]:ie=[0,0,0]),t.fillColorAnim&&t.fc&&(Nt=[t.fc[0],t.fc[1],t.fc[2]]),m=0;m<g;m+=1)_=a[m].a,_.a.propType&&(R=a[m].s,F=R.getMult(y[w].anIndexes[m],d.a[m].s.totalChars),F.length?c.translate(-_.a.v[0]*F[0],-_.a.v[1]*F[1],_.a.v[2]*F[2]):c.translate(-_.a.v[0]*F,-_.a.v[1]*F,_.a.v[2]*F));for(m=0;m<g;m+=1)_=a[m].a,_.s.propType&&(R=a[m].s,F=R.getMult(y[w].anIndexes[m],d.a[m].s.totalChars),F.length?c.scale(1+(_.s.v[0]-1)*F[0],1+(_.s.v[1]-1)*F[1],1):c.scale(1+(_.s.v[0]-1)*F,1+(_.s.v[1]-1)*F,1));for(m=0;m<g;m+=1){if(_=a[m].a,R=a[m].s,F=R.getMult(y[w].anIndexes[m],d.a[m].s.totalChars),_.sk.propType&&(F.length?c.skewFromAxis(-_.sk.v*F[0],_.sa.v*F[1]):c.skewFromAxis(-_.sk.v*F,_.sa.v*F)),_.r.propType&&(F.length?c.rotateZ(-_.r.v*F[2]):c.rotateZ(-_.r.v*F)),_.ry.propType&&(F.length?c.rotateY(_.ry.v*F[1]):c.rotateY(_.ry.v*F)),_.rx.propType&&(F.length?c.rotateX(_.rx.v*F[0]):c.rotateX(_.rx.v*F)),_.o.propType&&(F.length?Se+=(_.o.v*F[0]-Se)*F[0]:Se+=(_.o.v*F-Se)*F),t.strokeWidthAnim&&_.sw.propType&&(F.length?Re+=_.sw.v*F[0]:Re+=_.sw.v*F),t.strokeColorAnim&&_.sc.propType)for(nt=0;nt<3;nt+=1)F.length?ie[nt]+=(_.sc.v[nt]-ie[nt])*F[0]:ie[nt]+=(_.sc.v[nt]-ie[nt])*F;if(t.fillColorAnim&&t.fc){if(_.fc.propType)for(nt=0;nt<3;nt+=1)F.length?Nt[nt]+=(_.fc.v[nt]-Nt[nt])*F[0]:Nt[nt]+=(_.fc.v[nt]-Nt[nt])*F;_.fh.propType&&(F.length?Nt=yd(Nt,_.fh.v*F[0]):Nt=yd(Nt,_.fh.v*F)),_.fs.propType&&(F.length?Nt=gd(Nt,_.fs.v*F[0]):Nt=gd(Nt,_.fs.v*F)),_.fb.propType&&(F.length?Nt=bd(Nt,_.fb.v*F[0]):Nt=bd(Nt,_.fb.v*F))}}for(m=0;m<g;m+=1)_=a[m].a,_.p.propType&&(R=a[m].s,F=R.getMult(y[w].anIndexes[m],d.a[m].s.totalChars),this._hasMaskedPath?F.length?c.translate(0,_.p.v[1]*F[0],-_.p.v[2]*F[1]):c.translate(0,_.p.v[1]*F,-_.p.v[2]*F):F.length?c.translate(_.p.v[0]*F[0],_.p.v[1]*F[1],-_.p.v[2]*F[2]):c.translate(_.p.v[0]*F,_.p.v[1]*F,-_.p.v[2]*F));if(t.strokeWidthAnim&&(Sr=Re<0?0:Re),t.strokeColorAnim&&(Zr="rgb("+Math.round(ie[0]*255)+","+Math.round(ie[1]*255)+","+Math.round(ie[2]*255)+")"),t.fillColorAnim&&t.fc&&(Ir="rgb("+Math.round(Nt[0]*255)+","+Math.round(Nt[1]*255)+","+Math.round(Nt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-t.ls),c.translate(0,i[1]*st*.01+I,0),this._pathData.p.v){ut=(M.point[1]-A.point[1])/(M.point[0]-A.point[0]);var Ei=Math.atan(ut)*180/Math.PI;M.point[0]<A.point[0]&&(Ei+=180),c.rotate(-Ei*Math.PI/180)}c.translate(ft,Ct,0),P-=i[0]*y[w].an*.005,y[w+1]&&rt!==y[w+1].ind&&(P+=y[w].an/2,P+=t.tr*.001*t.finalSize)}else{switch(c.translate(f,I,0),t.ps&&c.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:c.translate(y[w].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[y[w].line]),0,0);break;case 2:c.translate(y[w].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[y[w].line])/2,0,0);break;default:break}c.translate(0,-t.ls),c.translate(pt,0,0),c.translate(i[0]*y[w].an*.005,i[1]*st*.01,0),f+=y[w].l+t.tr*.001*t.finalSize}u==="html"?fr=c.toCSS():u==="svg"?fr=c.to2dCSS():kr=[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]],Cr=Se}x<=w?(U=new pl(Cr,Sr,Zr,Ir,fr,kr),this.renderedLetters.push(U),x+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[w],this.lettersChangedFlag=U.update(Cr,Sr,Zr,Ir,fr,kr)||this.lettersChangedFlag)}}},yi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},yi.prototype.mHelper=new ne,yi.prototype.defaultPropsArray=[],$([re],yi);function Be(){}Be.prototype.initElement=function(t,r,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,r,i),this.textProperty=new me(this,t.t,this.dynamicProperties),this.textAnimator=new yi(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)},Be.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},Be.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+=ah(d,d.i.length,!0,t));return c},Be.prototype.updateDocumentData=function(t,r){this.textProperty.updateDocumentData(t,r)},Be.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},Be.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},Be.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)},Be.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"},Be.prototype.emptyProp=new pl,Be.prototype.destroy=function(){},Be.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var sv={shapes:[]};function Ar(t,r,i){this.textSpans=[],this.renderType="svg",this.initElement(t,r,i)}$([Yr,no,cs,lo,qr,ds,Be],Ar),Ar.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=vt("text"))},Ar.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},Ar.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},Ar.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,r,i=this.textProperty.currentData;this.renderedLetters=tt(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 u=i.l||[],x=!!this.globalData.fontManager.chars;r=u.length;var f,I=this.mHelper,w="",B=this.data.singleShape,y=0,N=0,P=!0,M=i.tr*.001*i.finalSize;if(B&&!x&&!i.sz){var z=this.textContainer,C="start";switch(i.j){case 1:C="end";break;case 2:C="middle";break;default:C="start";break}z.setAttribute("text-anchor",C),z.setAttribute("letter-spacing",M);var S=this.buildTextContents(i.finalText);for(r=S.length,N=i.ps?i.ps[1]+i.ascent:0,t=0;t<r;t+=1)f=this.textSpans[t].span||vt("tspan"),f.textContent=S[t],f.setAttribute("x",0),f.setAttribute("y",N),f.style.display="inherit",z.appendChild(f),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=f,N+=i.finalLineHeight;this.layerElement.appendChild(z)}else{var b=this.textSpans.length,A;for(t=0;t<r;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!x||!B||t===0){if(f=b>t?this.textSpans[t].span:vt(x?"g":"text"),b<=t){if(f.setAttribute("stroke-linecap","butt"),f.setAttribute("stroke-linejoin","round"),f.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=f,x){var k=vt("g");f.appendChild(k),this.textSpans[t].childSpan=k}this.textSpans[t].span=f,this.layerElement.appendChild(f)}f.style.display="inherit"}if(I.reset(),B&&(u[t].n&&(y=-M,N+=i.yOffset,N+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(i,I,u[t].line,y,N),y+=u[t].l||0,y+=M),x){A=this.globalData.fontManager.getCharData(i.finalText[t],a.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var D;if(A.t===1)D=new ps(A.data,this.globalData,this);else{var V=sv;A.data&&A.data.shapes&&(V=this.buildShapeData(A.data,i.finalSize)),D=new Ht(V,this.globalData,this)}if(this.textSpans[t].glyph){var G=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(G.layerElement),G.destroy()}this.textSpans[t].glyph=D,D._debug=!0,D.prepareFrame(0),D.renderFrame(),this.textSpans[t].childSpan.appendChild(D.layerElement),A.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else B&&f.setAttribute("transform","translate("+I.props[12]+","+I.props[13]+")"),f.textContent=u[t].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}B&&f&&f.setAttribute("d",w)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},Ar.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},Ar.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))},Ar.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,u;for(t=0;t<r;t+=1)a[t].n||(d=i[t],c=this.textSpans[t].span,u=this.textSpans[t].glyph,u&&u.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 ul(t,r,i){this.initElement(t,r,i)}$([hs],ul),ul.prototype.createContent=function(){var t=vt("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function Xr(t,r,i){this.initFrame(),this.initBaseData(t,r,i),this.initFrame(),this.initTransform(t,r,i),this.initHierarchy()}Xr.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},Xr.prototype.renderFrame=function(){},Xr.prototype.getBaseElement=function(){return null},Xr.prototype.destroy=function(){},Xr.prototype.sourceRectAtTime=function(){},Xr.prototype.hide=function(){},$([Yr,no,lo,qr],Xr);function Jt(){}$([le],Jt),Jt.prototype.createNull=function(t){return new Xr(t,this.globalData,this)},Jt.prototype.createShape=function(t){return new Ht(t,this.globalData,this)},Jt.prototype.createText=function(t){return new Ar(t,this.globalData,this)},Jt.prototype.createImage=function(t){return new hs(t,this.globalData,this)},Jt.prototype.createSolid=function(t){return new ul(t,this.globalData,this)},Jt.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=vt("clipPath"),a=vt("rect");a.setAttribute("width",t.w),a.setAttribute("height",t.h),a.setAttribute("x",0),a.setAttribute("y",0);var d=xe();i.setAttribute("id",d),i.appendChild(a),this.layerElement.setAttribute("clip-path","url("+T()+"#"+d+")"),r.appendChild(i),this.layers=t.layers,this.elements=tt(t.layers.length)},Jt.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},Jt.prototype.updateContainerSize=function(){},Jt.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},Jt.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,na()&&(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)}}}},Jt.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}}},Jt.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()}},Jt.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)}},Jt.prototype.hide=function(){this.layerElement.style.display="none"},Jt.prototype.show=function(){this.layerElement.style.display="block"};function _r(){}$([Yr,no,lo,qr,ds],_r),_r.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()},_r.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))}},_r.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()},_r.prototype.setElements=function(t){this.elements=t},_r.prototype.getElements=function(){return this.elements},_r.prototype.destroyElements=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy()},_r.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function ps(t,r,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(t,r,i),this.tm=t.tm?et.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0}}$([Jt,_r,cs],ps),ps.prototype.createComp=function(t){return new ps(t,this.globalData,this)};function fl(t,r){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=vt("svg");var i="";if(r&&r.title){var a=vt("title"),d=xe();a.setAttribute("id",d),a.textContent=r.title,this.svgElement.appendChild(a),i+=d}if(r&&r.description){var c=vt("desc"),u=xe();c.setAttribute("id",u),c.textContent=r.description,this.svgElement.appendChild(c),i+=" "+u}i&&this.svgElement.setAttribute("aria-labelledby",i);var x=vt("defs");this.svgElement.appendChild(x);var f=vt("g");this.svgElement.appendChild(f),this.layerElement=f,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 $([Jt],fl),fl.prototype.createComp=function(t){return new ps(t,this.globalData,this)},ff("svg",fl),jr.registerModifier("tm",er),jr.registerModifier("pb",rs),jr.registerModifier("rp",pr),jr.registerModifier("rd",is),jr.registerModifier("zz",ss),jr.registerModifier("op",as),Lt})});var Ia=globalThis,ka=Ia.ShadowRoot&&(Ia.ShadyCSS===void 0||Ia.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gl=Symbol(),lh=new WeakMap,us=class{constructor(o,e,s){if(this._$cssResult$=!0,s!==gl)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(ka&&o===void 0){let s=e!==void 0&&e.length===1;s&&(o=lh.get(e)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),s&&lh.set(e,o))}return o}toString(){return this.cssText}},ch=l=>new us(typeof l=="string"?l:l+"",void 0,gl),H=(l,...o)=>{let e=l.length===1?l[0]:o.reduce((s,n,h)=>s+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+l[h+1],l[0]);return new us(e,l,gl)},bl=(l,o)=>{if(ka)l.adoptedStyleSheets=o.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of o){let s=document.createElement("style"),n=Ia.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,l.appendChild(s)}},Ca=ka?l=>l:l=>l instanceof CSSStyleSheet?(o=>{let e="";for(let s of o.cssRules)e+=s.cssText;return ch(e)})(l):l;var{is:pv,defineProperty:uv,getOwnPropertyDescriptor:fv,getOwnPropertyNames:vv,getOwnPropertySymbols:gv,getPrototypeOf:bv}=Object,ei=globalThis,dh=ei.trustedTypes,yv=dh?dh.emptyScript:"",yl=ei.reactiveElementPolyfillSupport,fs=(l,o)=>l,vs={toAttribute(l,o){switch(o){case Boolean:l=l?yv: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}},wa=(l,o)=>!pv(l,o),hh={attribute:!0,type:String,converter:vs,reflect:!1,hasChanged:wa},mh,ph;(mh=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ph=ei.litPropertyMetadata)!=null||(ei.litPropertyMetadata=new WeakMap);var wr=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=hh){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&&uv(this.prototype,o,n)}}static getPropertyDescriptor(o,e,s){var p;let{get:n,set:h}=(p=fv(this.prototype,o))!=null?p:{get(){return this[e]},set(T){this[e]=T}};return{get(){return n==null?void 0:n.call(this)},set(T){let L=n==null?void 0:n.call(this);h.call(this,T),this.requestUpdate(o,L,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var e;return(e=this.elementProperties.get(o))!=null?e:hh}static _$Ei(){if(this.hasOwnProperty(fs("elementProperties")))return;let o=bv(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(fs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fs("properties"))){let e=this.properties,s=[...vv(e),...gv(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(Ca(n))}else o!==void 0&&e.push(Ca(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 bl(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 p=(((h=s.converter)==null?void 0:h.toAttribute)!==void 0?s.converter:vs).toAttribute(e,s.type);this._$Em=o,p==null?this.removeAttribute(n):this.setAttribute(n,p),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 p=s.getPropertyOptions(n),T=typeof p.converter=="function"?{fromAttribute:p.converter}:((h=p.converter)==null?void 0:h.fromAttribute)!==void 0?p.converter:vs;this._$Em=n,this[n]=T.fromAttribute(e,p.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:wa)(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[p,T]of this._$Ep)this[p]=T;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[p,T]of h)T.wrapped!==!0||this._$AL.has(p)||this[p]===void 0||this.P(p,this[p],T)}let o=!1,e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(h=>{var p;return(p=h.hostUpdate)==null?void 0:p.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){}},uh;wr.elementStyles=[],wr.shadowRootOptions={mode:"open"},wr[fs("elementProperties")]=new Map,wr[fs("finalized")]=new Map,yl==null||yl({ReactiveElement:wr}),((uh=ei.reactiveElementVersions)!=null?uh:ei.reactiveElementVersions=[]).push("2.0.4");var bs=globalThis,La=bs.trustedTypes,fh=La?La.createPolicy("lit-html",{createHTML:l=>l}):void 0,xl="$lit$",Lr=`lit$${Math.random().toFixed(9).slice(2)}$`,Al="?"+Lr,Ev=`<${Al}>`,Ai=document,ys=()=>Ai.createComment(""),Es=l=>l===null||typeof l!="object"&&typeof l!="function",_l=Array.isArray,xh=l=>_l(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",El=`[
|
3
|
-
\f\r]`,gs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
1
|
+
"use strict";(()=>{var cv=Object.create;var vl=Object.defineProperty;var ah=Object.getOwnPropertyDescriptor;var dv=Object.getOwnPropertyNames;var hv=Object.getPrototypeOf,pv=Object.prototype.hasOwnProperty;var mv=(l,o)=>()=>(o||l((o={exports:{}}).exports,o),o.exports);var uv=(l,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of dv(o))!pv.call(l,n)&&n!==e&&vl(l,n,{get:()=>o[n],enumerable:!(s=ah(o,n))||s.enumerable});return l};var fv=(l,o,e)=>(e=l!=null?cv(hv(l)):{},uv(o||!l||!l.__esModule?vl(e,"default",{value:l,enumerable:!0}):e,l));var v=(l,o,e,s)=>{for(var n=s>1?void 0:s?ah(o,e):o,h=l.length-1,m;h>=0;h--)(m=l[h])&&(n=(s?m(o,e,n):m(n))||n);return s&&n&&vl(o,e,n),n};var Zh=mv((Cs,Ka)=>{typeof navigator<"u"&&function(l,o){typeof Cs=="object"&&typeof Ka<"u"?Ka.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=o())}(Cs,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},m=function(r){o=r},T=function(){return o};function L(t){return document.createElement(t)}function $(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 W(t,r){return Object.getOwnPropertyDescriptor(t,r)}function K(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}}(),J=function(){function t(i,a){var d=0,c=[],u;switch(i){case"int16":case"uint8c":u=1;break;default:u=1.1;break}for(d=0;d<a;d+=1)c.push(u);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 tt(t){return Array.apply(null,{length:t})}function ht(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ht=function(i){return typeof i}:ht=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ht(t)}var Tt=!0,yt=null,xt=null,kt="",Gt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Dt=Math.pow,Ee=Math.sqrt,ee=Math.floor,Xe=Math.max,Ne=Math.min,De={};(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)De[t[r]]=Math[t[r]]})();function Ze(){return{}}De.random=Math.random,De.abs=function(t){var r=ht(t);if(r==="object"&&t.length){var i=tt(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 Je=150,At=Math.PI/180,he=.5519;function Fe(t){Rt=!!t}function Qe(t){return Rt?Math.round(t):t}function Er(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 $e(t,r,i,a){this.type=t,this.currentTime=r,this.totalTime=i,this.direction=a<0?-1:1}function aa(t,r){this.type=t,this.direction=r<0?-1:1}function md(t,r,i,a){this.type=t,this.currentLoop=i,this.totalLoops=r,this.direction=a<0?-1:1}function ud(t,r,i){this.type=t,this.firstFrame=r,this.totalFrames=i}function fd(t,r){this.type=t,this.target=r}function cf(t,r){this.type="renderFrameError",this.nativeError=t,this.currentTime=r}function df(t){this.type="configError",this.nativeError=t}function Vy(t,r){this.type=t,this.nativeError=r}var Te=function(){var t=0;return function(){return t+=1,kt+"__lottie_element_"+t}}();function il(t,r,i){var a,d,c,u,x,f,I,w;switch(u=Math.floor(t*6),x=t*6-u,f=i*(1-r),I=i*(1-x*r),w=i*(1-(1-x)*r),u%6){case 0:a=i,d=w,c=f;break;case 1:a=I,d=i,c=f;break;case 2:a=f,d=i,c=w;break;case 3:a=f,d=I,c=i;break;case 4:a=w,d=f,c=i;break;case 5:a=i,d=f,c=I;break;default:break}return[a,d,c]}function ol(t,r,i){var a=Math.max(t,r,i),d=Math.min(t,r,i),c=a-d,u,x=a===0?0:c/a,f=a/255;switch(a){case d:u=0;break;case t:u=r-i+c*(r<i?6:0),u/=6*c;break;case r:u=i-t+c*2,u/=6*c;break;case i:u=t-r+c*4,u/=6*c;break;default:break}return[u,x,f]}function vd(t,r){var i=ol(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),il(i[0],i[1],i[2])}function gd(t,r){var i=ol(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),il(i[0],i[1],i[2])}function bd(t,r){var i=ol(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),il(i[0],i[1],i[2])}var By=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]}}(),hf=function(r){Tt=!!r},pf=function(){return Tt},mf=function(r){yt=r},na=function(){return yt},Uy=function(r){xt=r},yd=function(){return xt},la=function(r){Je=r},Zo=function(){return Je},uf=function(r){kt=r},Gy=function(){return kt};function vt(t){return document.createElementNS(l,t)}function ca(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ca=function(i){return typeof i}:ca=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ca(t)}var Jo=function(){var t=1,r=[],i,a,d={onmessage:function(){},postMessage:function(N){i({data:N})}},c={postMessage:function(N){d.onmessage({data:N})}};function u(y){if(window.Worker&&window.Blob&&h()){var N=new Blob(["var _workerSelf = self; self.onmessage = ",y.toString()],{type:"text/javascript"}),P=URL.createObjectURL(N);return new Worker(P)}return i=y,d}function x(){a||(a=u(function(N){function P(){function z(X,_){var R,p,g=X.length,U,F,rt,mt;for(p=0;p<g;p+=1)if(R=X[p],"ks"in R&&!R.completed){if(R.completed=!0,R.hasMask){var ft=R.masksProperties;for(F=ft.length,U=0;U<F;U+=1)if(ft[U].pt.k.i)k(ft[U].pt.k);else for(mt=ft[U].pt.k.length,rt=0;rt<mt;rt+=1)ft[U].pt.k[rt].s&&k(ft[U].pt.k[rt].s[0]),ft[U].pt.k[rt].e&&k(ft[U].pt.k[rt].e[0])}R.ty===0?(R.layers=b(R.refId,_),z(R.layers,_)):R.ty===4?A(R.shapes):R.ty===5&>(R)}}function C(X,_){if(X){var R=0,p=X.length;for(R=0;R<p;R+=1)X[R].t===1&&(X[R].data.layers=b(X[R].data.refId,_),z(X[R].data.layers,_))}}function S(X,_){for(var R=0,p=_.length;R<p;){if(_[R].id===X)return _[R];R+=1}return null}function b(X,_){var R=S(X,_);return R?R.layers.__used?JSON.parse(JSON.stringify(R.layers)):(R.layers.__used=!0,R.layers):null}function A(X){var _,R=X.length,p,g;for(_=R-1;_>=0;_-=1)if(X[_].ty==="sh")if(X[_].ks.k.i)k(X[_].ks.k);else for(g=X[_].ks.k.length,p=0;p<g;p+=1)X[_].ks.k[p].s&&k(X[_].ks.k[p].s[0]),X[_].ks.k[p].e&&k(X[_].ks.k[p].e[0]);else X[_].ty==="gr"&&A(X[_].it)}function k(X){var _,R=X.i.length;for(_=0;_<R;_+=1)X.i[_][0]+=X.v[_][0],X.i[_][1]+=X.v[_][1],X.o[_][0]+=X.v[_][0],X.o[_][1]+=X.v[_][1]}function D(X,_){var R=_?_.split("."):[100,100,100];return X[0]>R[0]?!0:R[0]>X[0]?!1:X[1]>R[1]?!0:R[1]>X[1]?!1:X[2]>R[2]?!0:R[2]>X[2]?!1:null}var V=function(){var X=[4,4,14];function _(p){var g=p.t.d;p.t.d={k:[{s:g,t:0}]}}function R(p){var g,U=p.length;for(g=0;g<U;g+=1)p[g].ty===5&&_(p[g])}return function(p){if(D(X,p.v)&&(R(p.layers),p.assets)){var g,U=p.assets.length;for(g=0;g<U;g+=1)p.assets[g].layers&&R(p.assets[g].layers)}}}(),G=function(){var X=[4,7,99];return function(_){if(_.chars&&!D(X,_.v)){var R,p=_.chars.length;for(R=0;R<p;R+=1){var g=_.chars[R];g.data&&g.data.shapes&&(A(g.data.shapes),g.data.ip=0,g.data.op=99999,g.data.st=0,g.data.sr=1,g.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[R].t||(g.data.shapes.push({ty:"no"}),g.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"})))}}}}(),Z=function(){var X=[5,7,15];function _(p){var g=p.t.p;typeof g.a=="number"&&(g.a={a:0,k:g.a}),typeof g.p=="number"&&(g.p={a:0,k:g.p}),typeof g.r=="number"&&(g.r={a:0,k:g.r})}function R(p){var g,U=p.length;for(g=0;g<U;g+=1)p[g].ty===5&&_(p[g])}return function(p){if(D(X,p.v)&&(R(p.layers),p.assets)){var g,U=p.assets.length;for(g=0;g<U;g+=1)p.assets[g].layers&&R(p.assets[g].layers)}}}(),ut=function(){var X=[4,1,9];function _(p){var g,U=p.length,F,rt;for(g=0;g<U;g+=1)if(p[g].ty==="gr")_(p[g].it);else if(p[g].ty==="fl"||p[g].ty==="st")if(p[g].c.k&&p[g].c.k[0].i)for(rt=p[g].c.k.length,F=0;F<rt;F+=1)p[g].c.k[F].s&&(p[g].c.k[F].s[0]/=255,p[g].c.k[F].s[1]/=255,p[g].c.k[F].s[2]/=255,p[g].c.k[F].s[3]/=255),p[g].c.k[F].e&&(p[g].c.k[F].e[0]/=255,p[g].c.k[F].e[1]/=255,p[g].c.k[F].e[2]/=255,p[g].c.k[F].e[3]/=255);else p[g].c.k[0]/=255,p[g].c.k[1]/=255,p[g].c.k[2]/=255,p[g].c.k[3]/=255}function R(p){var g,U=p.length;for(g=0;g<U;g+=1)p[g].ty===4&&_(p[g].shapes)}return function(p){if(D(X,p.v)&&(R(p.layers),p.assets)){var g,U=p.assets.length;for(g=0;g<U;g+=1)p.assets[g].layers&&R(p.assets[g].layers)}}}(),ct=function(){var X=[4,4,18];function _(p){var g,U=p.length,F,rt;for(g=U-1;g>=0;g-=1)if(p[g].ty==="sh")if(p[g].ks.k.i)p[g].ks.k.c=p[g].closed;else for(rt=p[g].ks.k.length,F=0;F<rt;F+=1)p[g].ks.k[F].s&&(p[g].ks.k[F].s[0].c=p[g].closed),p[g].ks.k[F].e&&(p[g].ks.k[F].e[0].c=p[g].closed);else p[g].ty==="gr"&&_(p[g].it)}function R(p){var g,U,F=p.length,rt,mt,ft,Ct;for(U=0;U<F;U+=1){if(g=p[U],g.hasMask){var wt=g.masksProperties;for(mt=wt.length,rt=0;rt<mt;rt+=1)if(wt[rt].pt.k.i)wt[rt].pt.k.c=wt[rt].cl;else for(Ct=wt[rt].pt.k.length,ft=0;ft<Ct;ft+=1)wt[rt].pt.k[ft].s&&(wt[rt].pt.k[ft].s[0].c=wt[rt].cl),wt[rt].pt.k[ft].e&&(wt[rt].pt.k[ft].e[0].c=wt[rt].cl)}g.ty===4&&_(g.shapes)}}return function(p){if(D(X,p.v)&&(R(p.layers),p.assets)){var g,U=p.assets.length;for(g=0;g<U;g+=1)p.assets[g].layers&&R(p.assets[g].layers)}}}();function Q(X){X.__complete||(ut(X),V(X),G(X),Z(X),ct(X),z(X.layers,X.assets),C(X.chars,X.assets),X.__complete=!0)}function gt(X){X.t.a.length===0&&"m"in X.t.p}var st={};return st.completeData=Q,st.checkColors=ut,st.checkChars=G,st.checkPathProperties=Z,st.checkShapes=ct,st.completeLayers=z,st}if(c.dataManager||(c.dataManager=P()),c.assetLoader||(c.assetLoader=function(){function z(S){var b=S.getResponseHeader("content-type");return b&&S.responseType==="json"&&b.indexOf("json")!==-1||S.response&&ca(S.response)==="object"?S.response:S.response&&typeof S.response=="string"?JSON.parse(S.response):S.responseText?JSON.parse(S.responseText):null}function C(S,b,A,k){var D,V=new XMLHttpRequest;try{V.responseType="json"}catch{}V.onreadystatechange=function(){if(V.readyState===4)if(V.status===200)D=z(V),A(D);else try{D=z(V),A(D)}catch(G){k&&k(G)}};try{V.open(["G","E","T"].join(""),S,!0)}catch{V.open(["G","E","T"].join(""),b+"/"+S,!0)}V.send()}return{load:C}}()),N.data.type==="loadAnimation")c.assetLoader.load(N.data.path,N.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:N.data.id,payload:z,status:"success"})},function(){c.postMessage({id:N.data.id,status:"error"})});else if(N.data.type==="complete"){var M=N.data.animation;c.dataManager.completeData(M),c.postMessage({id:N.data.id,payload:M,status:"success"})}else N.data.type==="loadData"&&c.assetLoader.load(N.data.path,N.data.fullPath,function(z){c.postMessage({id:N.data.id,payload:z,status:"success"})},function(){c.postMessage({id:N.data.id,status:"error"})})}),a.onmessage=function(y){var N=y.data,P=N.id,M=r[P];r[P]=null,N.status==="success"?M.onComplete(N.payload):M.onError&&M.onError()})}function f(y,N){t+=1;var P="processId_"+t;return r[P]={onComplete:y,onError:N},P}function I(y,N,P){x();var M=f(N,P);a.postMessage({type:"loadAnimation",path:y,fullPath:window.location.origin+window.location.pathname,id:M})}function w(y,N,P){x();var M=f(N,P);a.postMessage({type:"loadData",path:y,fullPath:window.location.origin+window.location.pathname,id:M})}function B(y,N,P){x();var M=f(N,P);a.postMessage({type:"complete",animation:y,id:M})}return{loadAnimation:I,loadData:w,completeAnimation:B}}(),ff=function(){var t=function(){var C=L("canvas");C.width=1,C.height=1;var S=C.getContext("2d");return S.fillStyle="rgba(0,0,0,0)",S.fillRect(0,0,1,1),C}();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(C,S,b){var A="";if(C.e)A=C.p;else if(S){var k=C.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),A=S+k}else A=b,A+=C.u?C.u:"",A+=C.p;return A}function d(C){var S=0,b=setInterval((function(){var A=C.getBBox();(A.width||S>500)&&(this._imageLoaded(),clearInterval(b)),S+=1}).bind(this),50)}function c(C){var S=a(C,this.assetsPath,this.path),b=vt("image");Gt?this.testImageLoaded(b):b.addEventListener("load",this._imageLoaded,!1),b.addEventListener("error",(function(){A.img=t,this._imageLoaded()}).bind(this),!1),b.setAttributeNS("http://www.w3.org/1999/xlink","href",S),this._elementHelper.append?this._elementHelper.append(b):this._elementHelper.appendChild(b);var A={img:b,assetData:C};return A}function u(C){var S=a(C,this.assetsPath,this.path),b=L("img");b.crossOrigin="anonymous",b.addEventListener("load",this._imageLoaded,!1),b.addEventListener("error",(function(){A.img=t,this._imageLoaded()}).bind(this),!1),b.src=S;var A={img:b,assetData:C};return A}function x(C){var S={assetData:C},b=a(C,this.assetsPath,this.path);return Jo.loadData(b,(function(A){S.img=A,this._footageLoaded()}).bind(this),(function(){S.img={},this._footageLoaded()}).bind(this)),S}function f(C,S){this.imagesLoadedCb=S;var b,A=C.length;for(b=0;b<A;b+=1)C[b].layers||(!C[b].t||C[b].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(C[b]))):C[b].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(C[b]))))}function I(C){this.path=C||""}function w(C){this.assetsPath=C||""}function B(C){for(var S=0,b=this.images.length;S<b;){if(this.images[S].assetData===C)return this.images[S].img;S+=1}return null}function y(){this.imagesLoadedCb=null,this.images.length=0}function N(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function M(C,S){C==="svg"?(this._elementHelper=S,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:f,setAssetsPath:w,setPath:I,loadedImages:N,loadedFootages:P,destroy:y,getAsset:B,createImgData:u,createImageData:c,imageLoaded:r,footageLoaded:i,setCacheType:M},z}();function Ed(){}Ed.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 vf=function(){function t(r){for(var i=r.split(`\r
|
2
|
+
`),a={},d,c=0,u=0;u<i.length;u+=1)d=i[u].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}}(),gf=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}}(),Qo={},bf=function(r,i){Qo[r]=i};function yf(t){return Qo[t]}function Ef(){if(Qo.canvas)return"canvas";for(var t in Qo)if(Qo[t])return t;return""}function ts(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ts=function(i){return typeof i}:ts=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ts(t)}var pt=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=Te(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=pf(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=gf(),this.imagePreloader=new ff,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 $e("drawnFrame",0,0,0),this.expressionsPlugin=na()};$([Ed],pt),pt.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=yf(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")),Jo.loadAnimation(t.path,this.configAnimation,this.onSetupError))},pt.prototype.onSetupError=function(){this.trigger("data_failed")},pt.prototype.setupAnimation=function(t){Jo.completeAnimation(t,this.configAnimation)},pt.prototype.setData=function(t,r){r&&ts(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:Ef()||"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 u=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:"";u==="false"&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},pt.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,u=d.length;for(c=0;c<u;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,Jo.completeAnimation(this.animationData,this.onSegmentComplete)},pt.prototype.onSegmentComplete=function(t){this.animationData=t;var r=na();r&&r.initExpressions(this),this.loadNextSegment()},pt.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,Jo.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},pt.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},pt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},pt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},pt.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=vf(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},pt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},pt.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=na();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},pt.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)},pt.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},pt.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")},pt.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)}},pt.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")))},pt.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())},pt.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},pt.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},pt.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},pt.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()}},pt.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()}},pt.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"))}},pt.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")},pt.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)},pt.prototype.playSegments=function(t,r){if(r&&(this.segments.length=0),ts(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()},pt.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},pt.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},pt.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)},pt.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},pt.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},pt.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},pt.prototype.setLoop=function(t){this.loop=t},pt.prototype.setVolume=function(t,r){r&&this.name!==r||this.audioController.setVolume(t)},pt.prototype.getVolume=function(){return this.audioController.getVolume()},pt.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},pt.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},pt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},pt.prototype.getPath=function(){return this.path},pt.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},pt.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},pt.prototype.hide=function(){this.renderer.hide()},pt.prototype.show=function(){this.renderer.show()},pt.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},pt.prototype.updateDocumentData=function(t,r,i){try{var a=this.renderer.getElementByPath(t);a.updateDocumentData(r,i)}catch{}},pt.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new $e(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 md(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new aa(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new ud(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new fd(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new $e(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new md(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new aa(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new ud(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new fd(t,this))},pt.prototype.triggerRenderFrameError=function(t){var r=new cf(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},pt.prototype.triggerConfigError=function(t){var r=new df(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var Yt=function(){var t={},r=[],i=0,a=0,d=0,c=!0,u=!1;function x(_){for(var R=0,p=_.target;R<a;)r[R].animation===p&&(r.splice(R,1),R-=1,a-=1,p.isPaused||B()),R+=1}function f(_,R){if(!_)return null;for(var p=0;p<a;){if(r[p].elem===_&&r[p].elem!==null)return r[p].animation;p+=1}var g=new pt;return y(g,_),g.setData(_,R),g}function I(){var _,R=r.length,p=[];for(_=0;_<R;_+=1)p.push(r[_].animation);return p}function w(){d+=1,ut()}function B(){d-=1}function y(_,R){_.addEventListener("destroy",x),_.addEventListener("_active",w),_.addEventListener("_idle",B),r.push({elem:R,animation:_}),a+=1}function N(_){var R=new pt;return y(R,null),R.setParams(_),R}function P(_,R){var p;for(p=0;p<a;p+=1)r[p].animation.setSpeed(_,R)}function M(_,R){var p;for(p=0;p<a;p+=1)r[p].animation.setDirection(_,R)}function z(_){var R;for(R=0;R<a;R+=1)r[R].animation.play(_)}function C(_){var R=_-i,p;for(p=0;p<a;p+=1)r[p].animation.advanceTime(R);i=_,d&&!u?window.requestAnimationFrame(C):c=!0}function S(_){i=_,window.requestAnimationFrame(C)}function b(_){var R;for(R=0;R<a;R+=1)r[R].animation.pause(_)}function A(_,R,p){var g;for(g=0;g<a;g+=1)r[g].animation.goToAndStop(_,R,p)}function k(_){var R;for(R=0;R<a;R+=1)r[R].animation.stop(_)}function D(_){var R;for(R=0;R<a;R+=1)r[R].animation.togglePause(_)}function V(_){var R;for(R=a-1;R>=0;R-=1)r[R].animation.destroy(_)}function G(_,R,p){var g=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,F=g.length;for(U=0;U<F;U+=1)p&&g[U].setAttribute("data-bm-type",p),f(g[U],_);if(R&&F===0){p||(p="svg");var rt=document.getElementsByTagName("body")[0];rt.innerText="";var mt=L("div");mt.style.width="100%",mt.style.height="100%",mt.setAttribute("data-bm-type",p),rt.appendChild(mt),f(mt,_)}}function Z(){var _;for(_=0;_<a;_+=1)r[_].animation.resize()}function ut(){!u&&d&&c&&(window.requestAnimationFrame(S),c=!1)}function ct(){u=!0}function Q(){u=!1,ut()}function gt(_,R){var p;for(p=0;p<a;p+=1)r[p].animation.setVolume(_,R)}function st(_){var R;for(R=0;R<a;R+=1)r[R].animation.mute(_)}function X(_){var R;for(R=0;R<a;R+=1)r[R].animation.unmute(_)}return t.registerAnimation=f,t.loadAnimation=N,t.setSpeed=P,t.setDirection=M,t.play=z,t.pause=b,t.stop=k,t.togglePause=D,t.searchAnimations=G,t.resize=Z,t.goToAndStop=A,t.destroy=V,t.freeze=ct,t.unfreeze=Q,t.setVolume=gt,t.mute=st,t.unmute=X,t.getRegisteredAnimations=I,t}(),es=function(){var t={};t.getBezierEasing=i;var r={};function i(S,b,A,k,D){var V=D||("bez_"+S+"_"+b+"_"+A+"_"+k).replace(/\./g,"p");if(r[V])return r[V];var G=new C([S,b,A,k]);return r[V]=G,G}var a=4,d=.001,c=1e-7,u=10,x=11,f=1/(x-1),I=typeof Float32Array=="function";function w(S,b){return 1-3*b+3*S}function B(S,b){return 3*b-6*S}function y(S){return 3*S}function N(S,b,A){return((w(b,A)*S+B(b,A))*S+y(b))*S}function P(S,b,A){return 3*w(b,A)*S*S+2*B(b,A)*S+y(b)}function M(S,b,A,k,D){var V,G,Z=0;do G=b+(A-b)/2,V=N(G,k,D)-S,V>0?A=G:b=G;while(Math.abs(V)>c&&++Z<u);return G}function z(S,b,A,k){for(var D=0;D<a;++D){var V=P(b,A,k);if(V===0)return b;var G=N(b,A,k)-S;b-=G/V}return b}function C(S){this._p=S,this._mSampleValues=I?new Float32Array(x):new Array(x),this._precomputed=!1,this.get=this.get.bind(this)}return C.prototype={get:function(b){var A=this._p[0],k=this._p[1],D=this._p[2],V=this._p[3];return this._precomputed||this._precompute(),A===k&&D===V?b:b===0?0:b===1?1:N(this._getTForX(b),k,V)},_precompute:function(){var b=this._p[0],A=this._p[1],k=this._p[2],D=this._p[3];this._precomputed=!0,(b!==A||k!==D)&&this._calcSampleValues()},_calcSampleValues:function(){for(var b=this._p[0],A=this._p[2],k=0;k<x;++k)this._mSampleValues[k]=N(k*f,b,A)},_getTForX:function(b){for(var A=this._p[0],k=this._p[2],D=this._mSampleValues,V=0,G=1,Z=x-1;G!==Z&&D[G]<=b;++G)V+=f;--G;var ut=(b-D[G])/(D[G+1]-D[G]),ct=V+ut*f,Q=P(ct,A,k);return Q>=d?z(b,ct,A,k):Q===0?ct:M(b,V,V+f,A,k)}},t}(),Td=function(){function t(r){return r.concat(tt(r.length))}return{double:t}}(),da=function(){return function(t,r,i){var a=0,d=t,c=tt(d),u={newElement:x,release:f};function x(){var I;return a?(a-=1,I=c[a]):I=r(),I}function f(I){a===d&&(c=Td.double(c),d*=2),i&&i(I),c[a]=I,a+=1}return u}}(),xd=function(){function t(){return{addedLength:0,percents:J("float32",Zo()),lengths:J("float32",Zo())}}return da(8,t)}(),Ad=function(){function t(){return{lengths:[],totalLength:0}}function r(i){var a,d=i.lengths.length;for(a=0;a<d;a+=1)xd.release(i.lengths[a]);i.lengths.length=0}return da(8,t,r)}();function Tf(){var t=Math;function r(y,N,P,M,z,C){var S=y*M+N*z+P*C-z*M-C*y-P*N;return S>-.001&&S<.001}function i(y,N,P,M,z,C,S,b,A){if(P===0&&C===0&&A===0)return r(y,N,M,z,S,b);var k=t.sqrt(t.pow(M-y,2)+t.pow(z-N,2)+t.pow(C-P,2)),D=t.sqrt(t.pow(S-y,2)+t.pow(b-N,2)+t.pow(A-P,2)),V=t.sqrt(t.pow(S-M,2)+t.pow(b-z,2)+t.pow(A-C,2)),G;return k>D?k>V?G=k-D-V:G=V-D-k:V>D?G=V-D-k:G=D-k-V,G>-1e-4&&G<1e-4}var a=function(){return function(y,N,P,M){var z=Zo(),C,S,b,A,k,D=0,V,G=[],Z=[],ut=xd.newElement();for(b=P.length,C=0;C<z;C+=1){for(k=C/(z-1),V=0,S=0;S<b;S+=1)A=Dt(1-k,3)*y[S]+3*Dt(1-k,2)*k*P[S]+3*(1-k)*Dt(k,2)*M[S]+Dt(k,3)*N[S],G[S]=A,Z[S]!==null&&(V+=Dt(G[S]-Z[S],2)),Z[S]=G[S];V&&(V=Ee(V),D+=V),ut.percents[C]=k,ut.lengths[C]=D}return ut.addedLength=D,ut}}();function d(y){var N=Ad.newElement(),P=y.c,M=y.v,z=y.o,C=y.i,S,b=y._length,A=N.lengths,k=0;for(S=0;S<b-1;S+=1)A[S]=a(M[S],M[S+1],z[S],C[S+1]),k+=A[S].addedLength;return P&&b&&(A[S]=a(M[S],M[0],z[S],C[0]),k+=A[S].addedLength),N.totalLength=k,N}function c(y){this.segmentLength=0,this.points=new Array(y)}function u(y,N){this.partialLength=y,this.point=N}var x=function(){var y={};return function(N,P,M,z){var C=(N[0]+"_"+N[1]+"_"+P[0]+"_"+P[1]+"_"+M[0]+"_"+M[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!y[C]){var S=Zo(),b,A,k,D,V,G=0,Z,ut,ct=null;N.length===2&&(N[0]!==P[0]||N[1]!==P[1])&&r(N[0],N[1],P[0],P[1],N[0]+M[0],N[1]+M[1])&&r(N[0],N[1],P[0],P[1],P[0]+z[0],P[1]+z[1])&&(S=2);var Q=new c(S);for(k=M.length,b=0;b<S;b+=1){for(ut=tt(k),V=b/(S-1),Z=0,A=0;A<k;A+=1)D=Dt(1-V,3)*N[A]+3*Dt(1-V,2)*V*(N[A]+M[A])+3*(1-V)*Dt(V,2)*(P[A]+z[A])+Dt(V,3)*P[A],ut[A]=D,ct!==null&&(Z+=Dt(ut[A]-ct[A],2));Z=Ee(Z),G+=Z,Q.points[b]=new u(Z,ut),ct=ut}Q.segmentLength=G,y[C]=Q}return y[C]}}();function f(y,N){var P=N.percents,M=N.lengths,z=P.length,C=ee((z-1)*y),S=y*N.addedLength,b=0;if(C===z-1||C===0||S===M[C])return P[C];for(var A=M[C]>S?-1:1,k=!0;k;)if(M[C]<=S&&M[C+1]>S?(b=(S-M[C])/(M[C+1]-M[C]),k=!1):C+=A,C<0||C>=z-1){if(C===z-1)return P[C];k=!1}return P[C]+(P[C+1]-P[C])*b}function I(y,N,P,M,z,C){var S=f(z,C),b=1-S,A=t.round((b*b*b*y[0]+(S*b*b+b*S*b+b*b*S)*P[0]+(S*S*b+b*S*S+S*b*S)*M[0]+S*S*S*N[0])*1e3)/1e3,k=t.round((b*b*b*y[1]+(S*b*b+b*S*b+b*b*S)*P[1]+(S*S*b+b*S*S+S*b*S)*M[1]+S*S*S*N[1])*1e3)/1e3;return[A,k]}var w=J("float32",8);function B(y,N,P,M,z,C,S){z<0?z=0:z>1&&(z=1);var b=f(z,S);C=C>1?1:C;var A=f(C,S),k,D=y.length,V=1-b,G=1-A,Z=V*V*V,ut=b*V*V*3,ct=b*b*V*3,Q=b*b*b,gt=V*V*G,st=b*V*G+V*b*G+V*V*A,X=b*b*G+V*b*A+b*V*A,_=b*b*A,R=V*G*G,p=b*G*G+V*A*G+V*G*A,g=b*A*G+V*A*A+b*G*A,U=b*A*A,F=G*G*G,rt=A*G*G+G*A*G+G*G*A,mt=A*A*G+G*A*A+A*G*A,ft=A*A*A;for(k=0;k<D;k+=1)w[k*4]=t.round((Z*y[k]+ut*P[k]+ct*M[k]+Q*N[k])*1e3)/1e3,w[k*4+1]=t.round((gt*y[k]+st*P[k]+X*M[k]+_*N[k])*1e3)/1e3,w[k*4+2]=t.round((R*y[k]+p*P[k]+g*M[k]+U*N[k])*1e3)/1e3,w[k*4+3]=t.round((F*y[k]+rt*P[k]+mt*M[k]+ft*N[k])*1e3)/1e3;return w}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:x,pointOnLine2D:r,pointOnLine3D:i}}var hr=Tf(),fi=s,_d=Math.abs;function Sd(t,r){var i=this.offsetTime,a;this.propType==="multidimensional"&&(a=J("float32",this.pv.length));for(var d=r.lastIndex,c=d,u=this.keyframes.length-1,x=!0,f,I,w;x;){if(f=this.keyframes[c],I=this.keyframes[c+1],c===u-1&&t>=I.t-i){f.h&&(f=I),d=0;break}if(I.t-i>t){d=c;break}c<u-1?c+=1:(d=0,x=!1)}w=this.keyframesMetadata[c]||{};var B,y,N,P,M,z,C=I.t-i,S=f.t-i,b;if(f.to){w.bezierData||(w.bezierData=hr.buildBezierData(f.s,I.s||f.e,f.to,f.ti));var A=w.bezierData;if(t>=C||t<S){var k=t>=C?A.points.length-1:0;for(y=A.points[k].point.length,B=0;B<y;B+=1)a[B]=A.points[k].point[B]}else{w.__fnct?z=w.__fnct:(z=es.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y,f.n).get,w.__fnct=z),N=z((t-S)/(C-S));var D=A.segmentLength*N,V,G=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(M=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastPoint:0,x=!0,P=A.points.length;x;){if(G+=A.points[M].partialLength,D===0||N===0||M===A.points.length-1){for(y=A.points[M].point.length,B=0;B<y;B+=1)a[B]=A.points[M].point[B];break}else if(D>=G&&D<G+A.points[M+1].partialLength){for(V=(D-G)/A.points[M+1].partialLength,y=A.points[M].point.length,B=0;B<y;B+=1)a[B]=A.points[M].point[B]+(A.points[M+1].point[B]-A.points[M].point[B])*V;break}M<P-1?M+=1:x=!1}r._lastPoint=M,r._lastAddedLength=G-A.points[M].partialLength,r._lastKeyframeIndex=c}}else{var Z,ut,ct,Q,gt;if(u=f.s.length,b=I.s||f.e,this.sh&&f.h!==1)if(t>=C)a[0]=b[0],a[1]=b[1],a[2]=b[2];else if(t<=S)a[0]=f.s[0],a[1]=f.s[1],a[2]=f.s[2];else{var st=Id(f.s),X=Id(b),_=(t-S)/(C-S);Af(a,xf(st,X,_))}else for(c=0;c<u;c+=1)f.h!==1&&(t>=C?N=1:t<S?N=0:(f.o.x.constructor===Array?(w.__fnct||(w.__fnct=[]),w.__fnct[c]?z=w.__fnct[c]:(Z=f.o.x[c]===void 0?f.o.x[0]:f.o.x[c],ut=f.o.y[c]===void 0?f.o.y[0]:f.o.y[c],ct=f.i.x[c]===void 0?f.i.x[0]:f.i.x[c],Q=f.i.y[c]===void 0?f.i.y[0]:f.i.y[c],z=es.getBezierEasing(Z,ut,ct,Q).get,w.__fnct[c]=z)):w.__fnct?z=w.__fnct:(Z=f.o.x,ut=f.o.y,ct=f.i.x,Q=f.i.y,z=es.getBezierEasing(Z,ut,ct,Q).get,f.keyframeMetadata=z),N=z((t-S)/(C-S)))),b=I.s||f.e,gt=f.h===1?f.s[c]:f.s[c]+(b[c]-f.s[c])*N,this.propType==="multidimensional"?a[c]=gt:a=gt}return r.lastIndex=d,a}function xf(t,r,i){var a=[],d=t[0],c=t[1],u=t[2],x=t[3],f=r[0],I=r[1],w=r[2],B=r[3],y,N,P,M,z;return N=d*f+c*I+u*w+x*B,N<0&&(N=-N,f=-f,I=-I,w=-w,B=-B),1-N>1e-6?(y=Math.acos(N),P=Math.sin(y),M=Math.sin((1-i)*y)/P,z=Math.sin(i*y)/P):(M=1-i,z=i),a[0]=M*d+z*f,a[1]=M*c+z*I,a[2]=M*u+z*w,a[3]=M*x+z*B,a}function Af(t,r){var i=r[0],a=r[1],d=r[2],c=r[3],u=Math.atan2(2*a*c-2*i*d,1-2*a*a-2*d*d),x=Math.asin(2*i*a+2*d*c),f=Math.atan2(2*i*c-2*a*d,1-2*i*i-2*d*d);t[0]=u/At,t[1]=x/At,t[2]=f/At}function Id(t){var r=t[0]*At,i=t[1]*At,a=t[2]*At,d=Math.cos(r/2),c=Math.cos(i/2),u=Math.cos(a/2),x=Math.sin(r/2),f=Math.sin(i/2),I=Math.sin(a/2),w=d*c*u-x*f*I,B=x*f*u+d*c*I,y=x*c*u+d*f*I,N=d*f*u-x*c*I;return[B,y,N,w]}function kd(){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!==fi&&(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 ha(t){var r;if(this.propType==="unidimensional")r=t*this.mult,_d(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,_d(this.v[i]-r)>1e-5&&(this.v[i]=r,this._mdf=!0),i+=1}function pa(){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 ma(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function _f(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=pa,this.setVValue=ha,this.addEffect=ma}function Sf(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=J("float32",c),this.pv=J("float32",c),this.vel=J("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=pa,this.setVValue=ha,this.addEffect=ma}function If(t,r,i,a){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:fi,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=fi,this.pv=fi,this._isFirstFrame=!0,this.getValue=pa,this.setVValue=ha,this.interpolateValue=Sd,this.effectsSequence=[kd.bind(this)],this.addEffect=ma}function kf(t,r,i,a){this.propType="multidimensional";var d,c=r.k.length,u,x,f,I;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&&(u=r.k[d].s,x=r.k[d+1].s,f=r.k[d].to,I=r.k[d].ti,(u.length===2&&!(u[0]===x[0]&&u[1]===x[1])&&hr.pointOnLine2D(u[0],u[1],x[0],x[1],u[0]+f[0],u[1]+f[1])&&hr.pointOnLine2D(u[0],u[1],x[0],x[1],x[0]+I[0],x[1]+I[1])||u.length===3&&!(u[0]===x[0]&&u[1]===x[1]&&u[2]===x[2])&&hr.pointOnLine3D(u[0],u[1],u[2],x[0],x[1],x[2],u[0]+f[0],u[1]+f[1],u[2]+f[2])&&hr.pointOnLine3D(u[0],u[1],u[2],x[0],x[1],x[2],x[0]+I[0],x[1]+I[1],x[2]+I[2]))&&(r.k[d].to=null,r.k[d].ti=null),u[0]===x[0]&&u[1]===x[1]&&f[0]===0&&f[1]===0&&I[0]===0&&I[1]===0&&(u.length===2||u[2]===x[2]&&f[2]===0&&I[2]===0)&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[kd.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=pa,this.setVValue=ha,this.interpolateValue=Sd,this.frameId=-1;var w=r.k[0].s.length;for(this.v=J("float32",w),this.pv=J("float32",w),d=0;d<w;d+=1)this.v[d]=fi,this.pv[d]=fi;this._caching={lastFrame:fi,lastIndex:0,value:J("float32",w)},this.addEffect=ma}var et=function(){function t(i,a,d,c,u){a.sid&&(a=i.globalData.slotManager.getProp(a));var x;if(!a.k.length)x=new _f(i,a,c,u);else if(typeof a.k[0]=="number")x=new Sf(i,a,c,u);else switch(d){case 0:x=new If(i,a,c,u);break;case 1:x=new kf(i,a,c,u);break;default:break}return x.effectsSequence.length&&u.addDynamicProperty(x),x}var r={getProp:t};return r}();function re(){}re.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 vi=function(){function t(){return J("float32",2)}return da(8,t)}();function Tr(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}Tr.prototype.setPathData=function(t,r){this.c=t,this.setLength(r);for(var i=0;i<r;)this.v[i]=vi.newElement(),this.o[i]=vi.newElement(),this.i[i]=vi.newElement(),i+=1},Tr.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},Tr.prototype.doubleArrayLength=function(){this.v=this.v.concat(tt(this._maxLength)),this.i=this.i.concat(tt(this._maxLength)),this.o=this.o.concat(tt(this._maxLength)),this._maxLength*=2},Tr.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]=vi.newElement()),c[a][0]=t,c[a][1]=r},Tr.prototype.setTripleAt=function(t,r,i,a,d,c,u,x){this.setXYAt(t,r,"v",u,x),this.setXYAt(i,a,"o",u,x),this.setXYAt(d,c,"i",u,x)},Tr.prototype.reverse=function(){var t=new Tr;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,u=this._length,x;for(x=d;x<u;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},Tr.prototype.length=function(){return this._length};var ae=function(){function t(){return new Tr}function r(d){var c=d._length,u;for(u=0;u<c;u+=1)vi.release(d.v[u]),vi.release(d.i[u]),vi.release(d.o[u]),d.v[u]=null,d.i[u]=null,d.o[u]=null;d._length=0,d.c=!1}function i(d){var c=a.newElement(),u,x=d._length===void 0?d.v.length:d._length;for(c.setLength(x),c.c=d.c,u=0;u<x;u+=1)c.setTripleAt(d.v[u][0],d.v[u][1],d.o[u][0],d.o[u][1],d.i[u][0],d.i[u][1],u);return c}var a=da(4,t,r);return a.clone=i,a}();function sl(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}sl.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},sl.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)ae.release(this.shapes[t]);this._length=0};var io=function(){var t={newShapeCollection:d,release:c},r=0,i=4,a=tt(i);function d(){var u;return r?(r-=1,u=a[r]):u=new sl,u}function c(u){var x,f=u._length;for(x=0;x<f;x+=1)ae.release(u.shapes[x]);u._length=0,r===i&&(a=Td.double(a),i*=2),a[r]=u,r+=1}return t}(),ua=function(){var t=-999999;function r(C,S,b){var A=b.lastIndex,k,D,V,G,Z,ut,ct,Q,gt,st=this.keyframes;if(C<st[0].t-this.offsetTime)k=st[0].s[0],V=!0,A=0;else if(C>=st[st.length-1].t-this.offsetTime)k=st[st.length-1].s?st[st.length-1].s[0]:st[st.length-2].e[0],V=!0;else{for(var X=A,_=st.length-1,R=!0,p,g,U;R&&(p=st[X],g=st[X+1],!(g.t-this.offsetTime>C));)X<_-1?X+=1:R=!1;if(U=this.keyframesMetadata[X]||{},V=p.h===1,A=X,!V){if(C>=g.t-this.offsetTime)Q=1;else if(C<p.t-this.offsetTime)Q=0;else{var F;U.__fnct?F=U.__fnct:(F=es.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,U.__fnct=F),Q=F((C-(p.t-this.offsetTime))/(g.t-this.offsetTime-(p.t-this.offsetTime)))}D=g.s?g.s[0]:p.e[0]}k=p.s[0]}for(ut=S._length,ct=k.i[0].length,b.lastIndex=A,G=0;G<ut;G+=1)for(Z=0;Z<ct;Z+=1)gt=V?k.i[G][Z]:k.i[G][Z]+(D.i[G][Z]-k.i[G][Z])*Q,S.i[G][Z]=gt,gt=V?k.o[G][Z]:k.o[G][Z]+(D.o[G][Z]-k.o[G][Z])*Q,S.o[G][Z]=gt,gt=V?k.v[G][Z]:k.v[G][Z]+(D.v[G][Z]-k.v[G][Z])*Q,S.v[G][Z]=gt}function i(){var C=this.comp.renderedFrame-this.offsetTime,S=this.keyframes[0].t-this.offsetTime,b=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==t&&(A<S&&C<S||A>b&&C>b)||(this._caching.lastIndex=A<C?this._caching.lastIndex:0,this.interpolateShape(C,this.pv,this._caching)),this._caching.lastFrame=C,this.pv}function a(){this.paths=this.localShapeCollection}function d(C,S){if(C._length!==S._length||C.c!==S.c)return!1;var b,A=C._length;for(b=0;b<A;b+=1)if(C.v[b][0]!==S.v[b][0]||C.v[b][1]!==S.v[b][1]||C.o[b][0]!==S.o[b][0]||C.o[b][1]!==S.o[b][1]||C.i[b][0]!==S.i[b][0]||C.i[b][1]!==S.i[b][1])return!1;return!0}function c(C){d(this.v,C)||(this.v=ae.clone(C),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function u(){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 C;this.kf?C=this.pv:this.data.ks?C=this.data.ks.k:C=this.data.pt.k;var S,b=this.effectsSequence.length;for(S=0;S<b;S+=1)C=this.effectsSequence[S](C);this.setVValue(C),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function x(C,S,b){this.propType="shape",this.comp=C.comp,this.container=C,this.elem=C,this.data=S,this.k=!1,this.kf=!1,this._mdf=!1;var A=b===3?S.pt.k:S.ks.k;this.v=ae.clone(A),this.pv=ae.clone(this.v),this.localShapeCollection=io.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function f(C){this.effectsSequence.push(C),this.container.addDynamicProperty(this)}x.prototype.interpolateShape=r,x.prototype.getValue=u,x.prototype.setVValue=c,x.prototype.addEffect=f;function I(C,S,b){this.propType="shape",this.comp=C.comp,this.elem=C,this.container=C,this.offsetTime=C.data.st,this.keyframes=b===3?S.pt.k:S.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var A=this.keyframes[0].s[0].i.length;this.v=ae.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,A),this.pv=ae.clone(this.v),this.localShapeCollection=io.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)]}I.prototype.getValue=u,I.prototype.interpolateShape=r,I.prototype.setVValue=c,I.prototype.addEffect=f;var w=function(){var C=he;function S(b,A){this.v=ae.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=io.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=A.d,this.elem=b,this.comp=b.comp,this.frameId=-1,this.initDynamicPropertyContainer(b),this.p=et.getProp(b,A.p,1,0,this),this.s=et.getProp(b,A.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return S.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 A=this.p.v[0],k=this.p.v[1],D=this.s.v[0]/2,V=this.s.v[1]/2,G=this.d!==3,Z=this.v;Z.v[0][0]=A,Z.v[0][1]=k-V,Z.v[1][0]=G?A+D:A-D,Z.v[1][1]=k,Z.v[2][0]=A,Z.v[2][1]=k+V,Z.v[3][0]=G?A-D:A+D,Z.v[3][1]=k,Z.i[0][0]=G?A-D*C:A+D*C,Z.i[0][1]=k-V,Z.i[1][0]=G?A+D:A-D,Z.i[1][1]=k-V*C,Z.i[2][0]=G?A+D*C:A-D*C,Z.i[2][1]=k+V,Z.i[3][0]=G?A-D:A+D,Z.i[3][1]=k+V*C,Z.o[0][0]=G?A+D*C:A-D*C,Z.o[0][1]=k-V,Z.o[1][0]=G?A+D:A-D,Z.o[1][1]=k+V*C,Z.o[2][0]=G?A-D*C:A+D*C,Z.o[2][1]=k+V,Z.o[3][0]=G?A-D:A+D,Z.o[3][1]=k-V*C}},$([re],S),S}(),B=function(){function C(S,b){this.v=ae.newElement(),this.v.setPathData(!0,0),this.elem=S,this.comp=S.comp,this.data=b,this.frameId=-1,this.d=b.d,this.initDynamicPropertyContainer(S),b.sy===1?(this.ir=et.getProp(S,b.ir,0,0,this),this.is=et.getProp(S,b.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=et.getProp(S,b.pt,0,0,this),this.p=et.getProp(S,b.p,1,0,this),this.r=et.getProp(S,b.r,0,At,this),this.or=et.getProp(S,b.or,0,0,this),this.os=et.getProp(S,b.os,0,.01,this),this.localShapeCollection=io.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return C.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 b=Math.floor(this.pt.v)*2,A=Math.PI*2/b,k=!0,D=this.or.v,V=this.ir.v,G=this.os.v,Z=this.is.v,ut=2*Math.PI*D/(b*2),ct=2*Math.PI*V/(b*2),Q,gt,st,X,_=-Math.PI/2;_+=this.r.v;var R=this.data.d===3?-1:1;for(this.v._length=0,Q=0;Q<b;Q+=1){gt=k?D:V,st=k?G:Z,X=k?ut:ct;var p=gt*Math.cos(_),g=gt*Math.sin(_),U=p===0&&g===0?0:g/Math.sqrt(p*p+g*g),F=p===0&&g===0?0:-p/Math.sqrt(p*p+g*g);p+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(p,g,p-U*X*st*R,g-F*X*st*R,p+U*X*st*R,g+F*X*st*R,Q,!0),k=!k,_+=A*R}},convertPolygonToPath:function(){var b=Math.floor(this.pt.v),A=Math.PI*2/b,k=this.or.v,D=this.os.v,V=2*Math.PI*k/(b*4),G,Z=-Math.PI*.5,ut=this.data.d===3?-1:1;for(Z+=this.r.v,this.v._length=0,G=0;G<b;G+=1){var ct=k*Math.cos(Z),Q=k*Math.sin(Z),gt=ct===0&&Q===0?0:Q/Math.sqrt(ct*ct+Q*Q),st=ct===0&&Q===0?0:-ct/Math.sqrt(ct*ct+Q*Q);ct+=+this.p.v[0],Q+=+this.p.v[1],this.v.setTripleAt(ct,Q,ct-gt*V*D*ut,Q-st*V*D*ut,ct+gt*V*D*ut,Q+st*V*D*ut,G,!0),Z+=A*ut}this.paths.length=0,this.paths[0]=this.v}},$([re],C),C}(),y=function(){function C(S,b){this.v=ae.newElement(),this.v.c=!0,this.localShapeCollection=io.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=S,this.comp=S.comp,this.frameId=-1,this.d=b.d,this.initDynamicPropertyContainer(S),this.p=et.getProp(S,b.p,1,0,this),this.s=et.getProp(S,b.s,1,0,this),this.r=et.getProp(S,b.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return C.prototype={convertRectToPath:function(){var b=this.p.v[0],A=this.p.v[1],k=this.s.v[0]/2,D=this.s.v[1]/2,V=Ne(k,D,this.r.v),G=V*(1-he);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(b+k,A-D+V,b+k,A-D+V,b+k,A-D+G,0,!0),this.v.setTripleAt(b+k,A+D-V,b+k,A+D-G,b+k,A+D-V,1,!0),V!==0?(this.v.setTripleAt(b+k-V,A+D,b+k-V,A+D,b+k-G,A+D,2,!0),this.v.setTripleAt(b-k+V,A+D,b-k+G,A+D,b-k+V,A+D,3,!0),this.v.setTripleAt(b-k,A+D-V,b-k,A+D-V,b-k,A+D-G,4,!0),this.v.setTripleAt(b-k,A-D+V,b-k,A-D+G,b-k,A-D+V,5,!0),this.v.setTripleAt(b-k+V,A-D,b-k+V,A-D,b-k+G,A-D,6,!0),this.v.setTripleAt(b+k-V,A-D,b+k-G,A-D,b+k-V,A-D,7,!0)):(this.v.setTripleAt(b-k,A+D,b-k+G,A+D,b-k,A+D,2),this.v.setTripleAt(b-k,A-D,b-k,A-D+G,b-k,A-D,3))):(this.v.setTripleAt(b+k,A-D+V,b+k,A-D+G,b+k,A-D+V,0,!0),V!==0?(this.v.setTripleAt(b+k-V,A-D,b+k-V,A-D,b+k-G,A-D,1,!0),this.v.setTripleAt(b-k+V,A-D,b-k+G,A-D,b-k+V,A-D,2,!0),this.v.setTripleAt(b-k,A-D+V,b-k,A-D+V,b-k,A-D+G,3,!0),this.v.setTripleAt(b-k,A+D-V,b-k,A+D-G,b-k,A+D-V,4,!0),this.v.setTripleAt(b-k+V,A+D,b-k+V,A+D,b-k+G,A+D,5,!0),this.v.setTripleAt(b+k-V,A+D,b+k-G,A+D,b+k-V,A+D,6,!0),this.v.setTripleAt(b+k,A+D-V,b+k,A+D-V,b+k,A+D-G,7,!0)):(this.v.setTripleAt(b-k,A-D,b-k+G,A-D,b-k,A-D,1,!0),this.v.setTripleAt(b-k,A+D,b-k,A+D-G,b-k,A+D,2,!0),this.v.setTripleAt(b+k,A+D,b+k-G,A+D,b+k,A+D,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},$([re],C),C}();function N(C,S,b){var A;if(b===3||b===4){var k=b===3?S.pt:S.ks,D=k.k;D.length?A=new I(C,S,b):A=new x(C,S,b)}else b===5?A=new y(C,S):b===6?A=new w(C,S):b===7&&(A=new B(C,S));return A.k&&C.addDynamicProperty(A),A}function P(){return x}function M(){return I}var z={};return z.getShapeProp=N,z.getConstructorFunction=P,z.getKeyframedConstructorFunction=M,z}();var ne=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(p){if(p===0)return this;var g=t(p),U=r(p);return this._t(g,-U,0,0,U,g,0,0,0,0,1,0,0,0,0,1)}function u(p){if(p===0)return this;var g=t(p),U=r(p);return this._t(1,0,0,0,0,g,-U,0,0,U,g,0,0,0,0,1)}function x(p){if(p===0)return this;var g=t(p),U=r(p);return this._t(g,0,U,0,0,1,0,0,-U,0,g,0,0,0,0,1)}function f(p){if(p===0)return this;var g=t(p),U=r(p);return this._t(g,-U,0,0,U,g,0,0,0,0,1,0,0,0,0,1)}function I(p,g){return this._t(1,g,p,1,0,0)}function w(p,g){return this.shear(i(p),i(g))}function B(p,g){var U=t(g),F=r(g);return this._t(U,F,0,0,-F,U,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(p),1,0,0,0,0,1,0,0,0,0,1)._t(U,-F,0,0,F,U,0,0,0,0,1,0,0,0,0,1)}function y(p,g,U){return!U&&U!==0&&(U=1),p===1&&g===1&&U===1?this:this._t(p,0,0,0,0,g,0,0,0,0,U,0,0,0,0,1)}function N(p,g,U,F,rt,mt,ft,Ct,wt,qt,Ae,mr,_e,ie,Me,Nt){return this.props[0]=p,this.props[1]=g,this.props[2]=U,this.props[3]=F,this.props[4]=rt,this.props[5]=mt,this.props[6]=ft,this.props[7]=Ct,this.props[8]=wt,this.props[9]=qt,this.props[10]=Ae,this.props[11]=mr,this.props[12]=_e,this.props[13]=ie,this.props[14]=Me,this.props[15]=Nt,this}function P(p,g,U){return U=U||0,p!==0||g!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,p,g,U,1):this}function M(p,g,U,F,rt,mt,ft,Ct,wt,qt,Ae,mr,_e,ie,Me,Nt){var nt=this.props;if(p===1&&g===0&&U===0&&F===0&&rt===0&&mt===1&&ft===0&&Ct===0&&wt===0&&qt===0&&Ae===1&&mr===0)return nt[12]=nt[12]*p+nt[15]*_e,nt[13]=nt[13]*mt+nt[15]*ie,nt[14]=nt[14]*Ae+nt[15]*Me,nt[15]*=Nt,this._identityCalculated=!1,this;var _r=nt[0],Xr=nt[1],Sr=nt[2],ur=nt[3],Ir=nt[4],kr=nt[5],Se=nt[6],Zr=nt[7],Jr=nt[8],er=nt[9],Qr=nt[10],rr=nt[11],Ei=nt[12],Aa=nt[13],_a=nt[14],Sa=nt[15];return nt[0]=_r*p+Xr*rt+Sr*wt+ur*_e,nt[1]=_r*g+Xr*mt+Sr*qt+ur*ie,nt[2]=_r*U+Xr*ft+Sr*Ae+ur*Me,nt[3]=_r*F+Xr*Ct+Sr*mr+ur*Nt,nt[4]=Ir*p+kr*rt+Se*wt+Zr*_e,nt[5]=Ir*g+kr*mt+Se*qt+Zr*ie,nt[6]=Ir*U+kr*ft+Se*Ae+Zr*Me,nt[7]=Ir*F+kr*Ct+Se*mr+Zr*Nt,nt[8]=Jr*p+er*rt+Qr*wt+rr*_e,nt[9]=Jr*g+er*mt+Qr*qt+rr*ie,nt[10]=Jr*U+er*ft+Qr*Ae+rr*Me,nt[11]=Jr*F+er*Ct+Qr*mr+rr*Nt,nt[12]=Ei*p+Aa*rt+_a*wt+Sa*_e,nt[13]=Ei*g+Aa*mt+_a*qt+Sa*ie,nt[14]=Ei*U+Aa*ft+_a*Ae+Sa*Me,nt[15]=Ei*F+Aa*Ct+_a*mr+Sa*Nt,this._identityCalculated=!1,this}function z(p){var g=p.props;return this.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15])}function C(){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 S(p){for(var g=0;g<16;){if(p.props[g]!==this.props[g])return!1;g+=1}return!0}function b(p){var g;for(g=0;g<16;g+=1)p.props[g]=this.props[g];return p}function A(p){var g;for(g=0;g<16;g+=1)this.props[g]=p[g]}function k(p,g,U){return{x:p*this.props[0]+g*this.props[4]+U*this.props[8]+this.props[12],y:p*this.props[1]+g*this.props[5]+U*this.props[9]+this.props[13],z:p*this.props[2]+g*this.props[6]+U*this.props[10]+this.props[14]}}function D(p,g,U){return p*this.props[0]+g*this.props[4]+U*this.props[8]+this.props[12]}function V(p,g,U){return p*this.props[1]+g*this.props[5]+U*this.props[9]+this.props[13]}function G(p,g,U){return p*this.props[2]+g*this.props[6]+U*this.props[10]+this.props[14]}function Z(){var p=this.props[0]*this.props[5]-this.props[1]*this.props[4],g=this.props[5]/p,U=-this.props[1]/p,F=-this.props[4]/p,rt=this.props[0]/p,mt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/p,ft=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/p,Ct=new ne;return Ct.props[0]=g,Ct.props[1]=U,Ct.props[4]=F,Ct.props[5]=rt,Ct.props[12]=mt,Ct.props[13]=ft,Ct}function ut(p){var g=this.getInverseMatrix();return g.applyToPointArray(p[0],p[1],p[2]||0)}function ct(p){var g,U=p.length,F=[];for(g=0;g<U;g+=1)F[g]=ut(p[g]);return F}function Q(p,g,U){var F=J("float32",6);if(this.isIdentity())F[0]=p[0],F[1]=p[1],F[2]=g[0],F[3]=g[1],F[4]=U[0],F[5]=U[1];else{var rt=this.props[0],mt=this.props[1],ft=this.props[4],Ct=this.props[5],wt=this.props[12],qt=this.props[13];F[0]=p[0]*rt+p[1]*ft+wt,F[1]=p[0]*mt+p[1]*Ct+qt,F[2]=g[0]*rt+g[1]*ft+wt,F[3]=g[0]*mt+g[1]*Ct+qt,F[4]=U[0]*rt+U[1]*ft+wt,F[5]=U[0]*mt+U[1]*Ct+qt}return F}function gt(p,g,U){var F;return this.isIdentity()?F=[p,g,U]:F=[p*this.props[0]+g*this.props[4]+U*this.props[8]+this.props[12],p*this.props[1]+g*this.props[5]+U*this.props[9]+this.props[13],p*this.props[2]+g*this.props[6]+U*this.props[10]+this.props[14]],F}function st(p,g){if(this.isIdentity())return p+","+g;var U=this.props;return Math.round((p*U[0]+g*U[4]+U[12])*100)/100+","+Math.round((p*U[1]+g*U[5]+U[13])*100)/100}function X(){for(var p=0,g=this.props,U="matrix3d(",F=1e4;p<16;)U+=a(g[p]*F)/F,U+=p===15?")":",",p+=1;return U}function _(p){var g=1e4;return p<1e-6&&p>0||p>-1e-6&&p<0?a(p*g)/g:p}function R(){var p=this.props,g=_(p[0]),U=_(p[1]),F=_(p[4]),rt=_(p[5]),mt=_(p[12]),ft=_(p[13]);return"matrix("+g+","+U+","+F+","+rt+","+mt+","+ft+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=u,this.rotateY=x,this.rotateZ=f,this.skew=w,this.skewFromAxis=B,this.shear=I,this.scale=y,this.setTransform=N,this.translate=P,this.transform=M,this.multiply=z,this.applyToPoint=k,this.applyToX=D,this.applyToY=V,this.applyToZ=G,this.applyToPointArray=gt,this.applyToTriplePoints=Q,this.applyToPointStringified=st,this.toCSS=X,this.to2dCSS=R,this.clone=b,this.cloneFromProps=A,this.equals=S,this.inversePoints=ct,this.inversePoint=ut,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=C,this._identity=!0,this._identityCalculated=!1,this.props=J("float32",16),this.reset()}}();function fa(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fa=function(i){return typeof i}:fa=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},fa(t)}var Lt={},va="__[STANDALONE]__",Cd="__[ANIMATIONDATA]__",wd="";function Cf(t){m(t)}function Ld(){va===!0?Yt.searchAnimations(Cd,va,wd):Yt.searchAnimations()}function wf(t){hf(t)}function Lf(t){uf(t)}function Nf(t){return va===!0&&(t.animationData=JSON.parse(Cd)),Yt.loadAnimation(t)}function Mf(t){if(typeof t=="string")switch(t){case"high":la(200);break;default:case"medium":la(50);break;case"low":la(10);break}else!isNaN(t)&&t>1&&la(t);Zo()>=50?Fe(!1):Fe(!0)}function Rf(){return typeof navigator<"u"}function Of(t,r){t==="expressions"&&mf(r)}function Pf(t){switch(t){case"propertyFactory":return et;case"shapePropertyFactory":return ua;case"matrix":return ne;default:return null}}Lt.play=Yt.play,Lt.pause=Yt.pause,Lt.setLocationHref=Cf,Lt.togglePause=Yt.togglePause,Lt.setSpeed=Yt.setSpeed,Lt.setDirection=Yt.setDirection,Lt.stop=Yt.stop,Lt.searchAnimations=Ld,Lt.registerAnimation=Yt.registerAnimation,Lt.loadAnimation=Nf,Lt.setSubframeRendering=wf,Lt.resize=Yt.resize,Lt.goToAndStop=Yt.goToAndStop,Lt.destroy=Yt.destroy,Lt.setQuality=Mf,Lt.inBrowser=Rf,Lt.installPlugin=Of,Lt.freeze=Yt.freeze,Lt.unfreeze=Yt.unfreeze,Lt.setVolume=Yt.setVolume,Lt.mute=Yt.mute,Lt.unmute=Yt.unmute,Lt.getRegisteredAnimations=Yt.getRegisteredAnimations,Lt.useWebWorker=n,Lt.setIDPrefix=Lf,Lt.__getFactory=Pf,Lt.version="5.12.2";function Df(){document.readyState==="complete"&&(clearInterval(zf),Ld())}function Ff(t){for(var r=Nd.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 Nd="";if(va){var Md=document.getElementsByTagName("script"),$f=Md.length-1,Rd=Md[$f]||{src:""};Nd=Rd.src?Rd.src.replace(/^[^\?]+\??/,""):"",wd=Ff("renderer")}var zf=setInterval(Df,100);try{!((typeof Cs>"u"?"undefined":fa(Cs))==="object"&&typeof Ka<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Lt)}catch{}var Hr=function(){var t={},r={};t.registerModifier=i,t.getModifier=a;function i(d,c){r[d]||(r[d]=c)}function a(d,c,u){return new r[d](c,u)}return t}();function ze(){}ze.prototype.initModifierProperties=function(){},ze.prototype.addShapeToModifier=function(){},ze.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var r={shape:t.sh,data:t,localShapeCollection:io.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&t.setAsAnimated()}},ze.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)},ze.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},$([re],ze);function tr(){}$([ze],tr),tr.prototype.initModifierProperties=function(t,r){this.s=et.getProp(t,r.s,0,.01,this),this.e=et.getProp(t,r.e,0,.01,this),this.o=et.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},tr.prototype.addShapeToModifier=function(t){t.pathsData=[]},tr.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 u=[],x,f=c.length,I;for(x=0;x<f;x+=1)if(I=c[x],!(I.e*d<a||I.s*d>a+i)){var w,B;I.s*d<=a?w=0:w=(I.s*d-a)/i,I.e*d>=a+i?B=1:B=(I.e*d-a)/i,u.push([w,B])}return u.length||u.push([0,0]),u},tr.prototype.releasePathsData=function(t){var r,i=t.length;for(r=0;r<i;r+=1)Ad.release(t[r]);return t.length=0,t},tr.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,u,x=this.shapes.length,f,I,w,B,y,N=0;if(i===r)for(u=0;u<x;u+=1)this.shapes[u].localShapeCollection.releaseShapes(),this.shapes[u].shape._mdf=!0,this.shapes[u].shape.paths=this.shapes[u].localShapeCollection,this._mdf&&(this.shapes[u].pathsData.length=0);else if(i===1&&r===0||i===0&&r===1){if(this._mdf)for(u=0;u<x;u+=1)this.shapes[u].pathsData.length=0,this.shapes[u].shape._mdf=!0}else{var P=[],M,z;for(u=0;u<x;u+=1)if(M=this.shapes[u],!M.shape._mdf&&!this._mdf&&!t&&this.m!==2)M.shape.paths=M.localShapeCollection;else{if(c=M.shape.paths,I=c._length,y=0,!M.shape._mdf&&M.pathsData.length)y=M.totalShapeLength;else{for(w=this.releasePathsData(M.pathsData),f=0;f<I;f+=1)B=hr.getSegmentsLength(c.shapes[f]),w.push(B),y+=B.totalLength;M.totalShapeLength=y,M.pathsData=w}N+=y,M.shape._mdf=!0}var C=r,S=i,b=0,A;for(u=x-1;u>=0;u-=1)if(M=this.shapes[u],M.shape._mdf){for(z=M.localShapeCollection,z.releaseShapes(),this.m===2&&x>1?(A=this.calculateShapeEdges(r,i,M.totalShapeLength,b,N),b+=M.totalShapeLength):A=[[C,S]],I=A.length,f=0;f<I;f+=1){C=A[f][0],S=A[f][1],P.length=0,S<=1?P.push({s:M.totalShapeLength*C,e:M.totalShapeLength*S}):C>=1?P.push({s:M.totalShapeLength*(C-1),e:M.totalShapeLength*(S-1)}):(P.push({s:M.totalShapeLength*C,e:M.totalShapeLength}),P.push({s:0,e:M.totalShapeLength*(S-1)}));var k=this.addShapes(M,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var D=M.shape.paths.shapes[M.shape.paths._length-1];if(D.c){var V=k.pop();this.addPaths(k,z),k=this.addShapes(M,P[1],V)}else this.addPaths(k,z),k=this.addShapes(M,P[1])}this.addPaths(k,z)}}M.shape.paths=z}}},tr.prototype.addPaths=function(t,r){var i,a=t.length;for(i=0;i<a;i+=1)r.addShape(t[i])},tr.prototype.addSegment=function(t,r,i,a,d,c,u){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(i[0],i[1],"i",c+1),u&&d.setXYAt(t[0],t[1],"v",c),d.setXYAt(a[0],a[1],"v",c+1)},tr.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)},tr.prototype.addShapes=function(t,r,i){var a=t.pathsData,d=t.shape.paths.shapes,c,u=t.shape.paths._length,x,f,I=0,w,B,y,N,P=[],M,z=!0;for(i?(B=i._length,M=i._length):(i=ae.newElement(),B=0,M=0),P.push(i),c=0;c<u;c+=1){for(y=a[c].lengths,i.c=d[c].c,f=d[c].c?y.length:y.length+1,x=1;x<f;x+=1)if(w=y[x-1],I+w.addedLength<r.s)I+=w.addedLength,i.c=!1;else if(I>r.e){i.c=!1;break}else r.s<=I&&r.e>=I+w.addedLength?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[x],d[c].v[x],i,B,z),z=!1):(N=hr.getNewSegment(d[c].v[x-1],d[c].v[x],d[c].o[x-1],d[c].i[x],(r.s-I)/w.addedLength,(r.e-I)/w.addedLength,y[x-1]),this.addSegmentFromArray(N,i,B,z),z=!1,i.c=!1),I+=w.addedLength,B+=1;if(d[c].c&&y.length){if(w=y[x-1],I<=r.e){var C=y[x-1].addedLength;r.s<=I&&r.e>=I+C?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[0],d[c].v[0],i,B,z),z=!1):(N=hr.getNewSegment(d[c].v[x-1],d[c].v[0],d[c].o[x-1],d[c].i[0],(r.s-I)/C,(r.e-I)/C,y[x-1]),this.addSegmentFromArray(N,i,B,z),z=!1,i.c=!1)}else i.c=!1;I+=w.addedLength,B+=1}if(i._length&&(i.setXYAt(i.v[M][0],i.v[M][1],"i",M),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),I>r.e)break;c<u-1&&(i=ae.newElement(),z=!0,P.push(i),B=0)}return P};function rs(){}$([ze],rs),rs.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=et.getProp(t,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},rs.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 u=ae.newElement();u.c=t.c;var x,f,I,w,B,y;for(c=0;c<d;c+=1)x=t.v[c][0]+(a[0]-t.v[c][0])*i,f=t.v[c][1]+(a[1]-t.v[c][1])*i,I=t.o[c][0]+(a[0]-t.o[c][0])*-i,w=t.o[c][1]+(a[1]-t.o[c][1])*-i,B=t.i[c][0]+(a[0]-t.i[c][0])*-i,y=t.i[c][1]+(a[1]-t.i[c][1])*-i,u.setTripleAt(x,f,I,w,B,y,c);return u},rs.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,u=this.amount.v;if(u!==0){var x,f;for(i=0;i<a;i+=1){if(x=this.shapes[i],f=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!t))for(f.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)f.addShape(this.processPath(r[d],u));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var al=function(){var t=[0,0];function r(f){var I=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||I,this.a&&f.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&f.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&f.skewFromAxis(-this.sk.v,this.sa.v),this.r?f.rotate(-this.r.v):f.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?f.translate(this.px.v,this.py.v,-this.pz.v):f.translate(this.px.v,this.py.v,0):f.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(f){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||f){var I;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 w,B;if(I=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(w=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/I,0),B=this.p.getValueAtTime(this.p.keyframes[0].t/I,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(w=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/I,0),B=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/I,0)):(w=this.p.pv,B=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/I,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){w=[],B=[];var y=this.px,N=this.py;y._caching.lastFrame+y.offsetTime<=y.keyframes[0].t?(w[0]=y.getValueAtTime((y.keyframes[0].t+.01)/I,0),w[1]=N.getValueAtTime((N.keyframes[0].t+.01)/I,0),B[0]=y.getValueAtTime(y.keyframes[0].t/I,0),B[1]=N.getValueAtTime(N.keyframes[0].t/I,0)):y._caching.lastFrame+y.offsetTime>=y.keyframes[y.keyframes.length-1].t?(w[0]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/I,0),w[1]=N.getValueAtTime(N.keyframes[N.keyframes.length-1].t/I,0),B[0]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/I,0),B[1]=N.getValueAtTime((N.keyframes[N.keyframes.length-1].t-.01)/I,0)):(w=[y.pv,N.pv],B[0]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/I,y.offsetTime),B[1]=N.getValueAtTime((N._caching.lastFrame+N.offsetTime-.01)/I,N.offsetTime))}else B=t,w=B;this.v.rotate(-Math.atan2(w[1]-B[1],w[0]-B[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(f){this._addDynamicProperty(f),this.elem.addDynamicProperty(f),this._isDirty=!0}function u(f,I,w){if(this.elem=f,this.frameId=-1,this.propType="transform",this.data=I,this.v=new ne,this.pre=new ne,this.appliedTransformations=0,this.initDynamicPropertyContainer(w||f),I.p&&I.p.s?(this.px=et.getProp(f,I.p.x,0,0,this),this.py=et.getProp(f,I.p.y,0,0,this),I.p.z&&(this.pz=et.getProp(f,I.p.z,0,0,this))):this.p=et.getProp(f,I.p||{k:[0,0,0]},1,0,this),I.rx){if(this.rx=et.getProp(f,I.rx,0,At,this),this.ry=et.getProp(f,I.ry,0,At,this),this.rz=et.getProp(f,I.rz,0,At,this),I.or.k[0].ti){var B,y=I.or.k.length;for(B=0;B<y;B+=1)I.or.k[B].to=null,I.or.k[B].ti=null}this.or=et.getProp(f,I.or,1,At,this),this.or.sh=!0}else this.r=et.getProp(f,I.r||{k:0},0,At,this);I.sk&&(this.sk=et.getProp(f,I.sk,0,At,this),this.sa=et.getProp(f,I.sa,0,At,this)),this.a=et.getProp(f,I.a||{k:[0,0,0]},1,0,this),this.s=et.getProp(f,I.s||{k:[100,100,100]},1,.01,this),I.o?this.o=et.getProp(f,I.o,0,.01,f):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}u.prototype={applyToMatrix:r,getValue:i,precalculateMatrix:a,autoOrient:d},$([re],u),u.prototype.addDynamicProperty=c,u.prototype._addDynamicProperty=re.prototype.addDynamicProperty;function x(f,I,w){return new u(f,I,w)}return{getTransformProperty:x}}();function pr(){}$([ze],pr),pr.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.c=et.getProp(t,r.c,0,null,this),this.o=et.getProp(t,r.o,0,null,this),this.tr=al.getTransformProperty(t,r.tr,this),this.so=et.getProp(t,r.tr.so,0,.01,this),this.eo=et.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 ne,this.rMatrix=new ne,this.sMatrix=new ne,this.tMatrix=new ne,this.matrix=new ne},pr.prototype.applyTransforms=function(t,r,i,a,d,c){var u=c?-1:1,x=a.s.v[0]+(1-a.s.v[0])*(1-d),f=a.s.v[1]+(1-a.s.v[1])*(1-d);t.translate(a.p.v[0]*u*d,a.p.v[1]*u*d,a.p.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.rotate(-a.r.v*u*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/f:f),i.translate(a.a.v[0],a.a.v[1],a.a.v[2])},pr.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)},pr.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)},pr.prototype.cloneElements=function(t){var r=JSON.parse(JSON.stringify(t));return this.resetElements(r),r},pr.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)},pr.prototype.processShapes=function(t){var r,i,a,d,c,u=!1;if(this._mdf||t){var x=Math.ceil(this.c.v);if(this._groups.length<x){for(;this._groups.length<x;){var f={it:this.cloneElements(this._elements),ty:"gr"};f.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,f),this._groups.splice(0,0,f),this._currentCopies+=1}this.elem.reloadShapes(),u=!0}c=0;var I;for(a=0;a<=this._groups.length-1;a+=1){if(I=c<x,this._groups[a]._render=I,this.changeGroupRender(this._groups[a].it,I),!I){var w=this.elemsData[a].it,B=w[w.length-1];B.transform.op.v!==0?(B.transform.op._mdf=!0,B.transform.op.v=0):B.transform.op._mdf=!1}c+=1}this._currentCopies=x;var y=this.o.v,N=y%1,P=y>0?Math.floor(y):Math.ceil(y),M=this.pMatrix.props,z=this.rMatrix.props,C=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var S=0;if(y>0){for(;S<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;N&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,N,!1),S+=N)}else if(y<0){for(;S>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;N&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-N,!0),S-=N)}a=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,c=this._currentCopies;for(var b,A;c;){if(r=this.elemsData[a].it,i=r[r.length-1].transform.mProps.v.props,A=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)),S!==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(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15]),this.matrix.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),b=0;b<A;b+=1)i[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<A;b+=1)i[b]=this.matrix.props[b];S+=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 u},pr.prototype.addShape=function(){};function is(){}$([ze],is),is.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.rd=et.getProp(t,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},is.prototype.processPath=function(t,r){var i=ae.newElement();i.c=t.c;var a,d=t._length,c,u,x,f,I,w,B=0,y,N,P,M,z,C;for(a=0;a<d;a+=1)c=t.v[a],x=t.o[a],u=t.i[a],c[0]===x[0]&&c[1]===x[1]&&c[0]===u[0]&&c[1]===u[1]?(a===0||a===d-1)&&!t.c?(i.setTripleAt(c[0],c[1],x[0],x[1],u[0],u[1],B),B+=1):(a===0?f=t.v[d-1]:f=t.v[a-1],I=Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)),w=I?Math.min(I/2,r)/I:0,z=c[0]+(f[0]-c[0])*w,y=z,C=c[1]-(c[1]-f[1])*w,N=C,P=y-(y-c[0])*he,M=N-(N-c[1])*he,i.setTripleAt(y,N,P,M,z,C,B),B+=1,a===d-1?f=t.v[0]:f=t.v[a+1],I=Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)),w=I?Math.min(I/2,r)/I:0,P=c[0]+(f[0]-c[0])*w,y=P,M=c[1]+(f[1]-c[1])*w,N=M,z=y-(y-c[0])*he,C=N-(N-c[1])*he,i.setTripleAt(y,N,P,M,z,C,B),B+=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],B),B+=1);return i},is.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,u=this.rd.v;if(u!==0){var x,f;for(i=0;i<a;i+=1){if(x=this.shapes[i],f=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!t))for(f.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)f.addShape(this.processPath(r[d],u));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ga(t,r){return Math.abs(t-r)*1e5<=Math.min(Math.abs(t),Math.abs(r))}function nl(t){return Math.abs(t)<=1e-5}function Od(t,r,i){return t*(1-i)+r*i}function jr(t,r,i){return[Od(t[0],r[0],i),Od(t[1],r[1],i)]}function Vf(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 Pd(t,r,i,a){return[-t+3*r-3*i+a,3*t-6*r+3*i,-3*t+3*r,t]}function Dd(t){return new Vt(t,t,t,t,!1)}function Vt(t,r,i,a,d){d&&so(t,r)&&(r=jr(t,a,1/3)),d&&so(i,a)&&(i=jr(t,a,2/3));var c=Pd(t[0],r[0],i[0],a[0]),u=Pd(t[1],r[1],i[1],a[1]);this.a=[c[0],u[0]],this.b=[c[1],u[1]],this.c=[c[2],u[2]],this.d=[c[3],u[3]],this.points=[t,r,i,a]}Vt.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]]},Vt.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]]},Vt.prototype.tangentAngle=function(t){var r=this.derivative(t);return Math.atan2(r[1],r[0])},Vt.prototype.normalAngle=function(t){var r=this.derivative(t);return Math.atan2(r[0],r[1])},Vt.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(nl(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 nl(a)?a>0&&a<1?[r]:[]:[r-a,r+a].filter(function(d){return d>0&&d<1})},Vt.prototype.split=function(t){if(t<=0)return[Dd(this.points[0]),this];if(t>=1)return[this,Dd(this.points[this.points.length-1])];var r=jr(this.points[0],this.points[1],t),i=jr(this.points[1],this.points[2],t),a=jr(this.points[2],this.points[3],t),d=jr(r,i,t),c=jr(i,a,t),u=jr(d,c,t);return[new Vt(this.points[0],r,d,u,!0),new Vt(u,c,a,this.points[3],!0)]};function Fd(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=Vf(3*t.a[r],2*t.b[r],t.c[r]),u=0;u<c.length;u+=1)if(c[u]>0&&c[u]<1){var x=t.point(c[u])[r];x<i?i=x:x>a&&(a=x)}return{min:i,max:a}}Vt.prototype.bounds=function(){return{x:Fd(this,0),y:Fd(this,1)}},Vt.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 ba(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 $d(t){var r=t.bez.split(.5);return[ba(r[0],t.t1,t.t),ba(r[1],t.t,t.t2)]}function Bf(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 os(t,r,i,a,d,c){if(Bf(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 u=$d(t),x=$d(r);os(u[0],x[0],i+1,a,d,c),os(u[0],x[1],i+1,a,d,c),os(u[1],x[0],i+1,a,d,c),os(u[1],x[1],i+1,a,d,c)}}Vt.prototype.intersections=function(t,r,i){r===void 0&&(r=2),i===void 0&&(i=7);var a=[];return os(ba(this,0,1),ba(t,0,1),0,r,a,i),a},Vt.shapeSegment=function(t,r){var i=(r+1)%t.length();return new Vt(t.v[r],t.o[r],t.i[i],t.v[i],!0)},Vt.shapeSegmentInverted=function(t,r){var i=(r+1)%t.length();return new Vt(t.v[i],t.i[i],t.o[r],t.v[r],!0)};function ll(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 ya(t,r,i,a){var d=[t[0],t[1],1],c=[r[0],r[1],1],u=[i[0],i[1],1],x=[a[0],a[1],1],f=ll(ll(d,c),ll(u,x));return nl(f[2])?null:[f[0]/f[2],f[1]/f[2]]}function oo(t,r,i){return[t[0]+Math.cos(r)*i,t[1]-Math.sin(r)*i]}function cl(t,r){return Math.hypot(t[0]-r[0],t[1]-r[1])}function so(t,r){return ga(t[0],r[0])&&ga(t[1],r[1])}function ss(){}$([ze],ss),ss.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amplitude=et.getProp(t,r.s,0,null,this),this.frequency=et.getProp(t,r.r,0,null,this),this.pointsType=et.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 zd(t,r,i,a,d,c,u){var x=i-Math.PI/2,f=i+Math.PI/2,I=r[0]+Math.cos(i)*a*d,w=r[1]-Math.sin(i)*a*d;t.setTripleAt(I,w,I+Math.cos(x)*c,w-Math.sin(x)*c,I+Math.cos(f)*u,w-Math.sin(f)*u,t.length())}function Uf(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 Gf(t,r){var i=r===0?t.length()-1:r-1,a=(r+1)%t.length(),d=t.v[i],c=t.v[a],u=Uf(d,c);return Math.atan2(0,1)-Math.atan2(u[1],u[0])}function Vd(t,r,i,a,d,c,u){var x=Gf(r,i),f=r.v[i%r._length],I=r.v[i===0?r._length-1:i-1],w=r.v[(i+1)%r._length],B=c===2?Math.sqrt(Math.pow(f[0]-I[0],2)+Math.pow(f[1]-I[1],2)):0,y=c===2?Math.sqrt(Math.pow(f[0]-w[0],2)+Math.pow(f[1]-w[1],2)):0;zd(t,r.v[i%r._length],x,u,a,y/((d+1)*2),B/((d+1)*2),c)}function Hf(t,r,i,a,d,c){for(var u=0;u<a;u+=1){var x=(u+1)/(a+1),f=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,I=r.normalAngle(x),w=r.point(x);zd(t,w,I,c,i,f/((a+1)*2),f/((a+1)*2),d),c=-c}return c}ss.prototype.processPath=function(t,r,i,a){var d=t._length,c=ae.newElement();if(c.c=t.c,t.c||(d-=1),d===0)return c;var u=-1,x=Vt.shapeSegment(t,0);Vd(c,t,0,r,i,a,u);for(var f=0;f<d;f+=1)u=Hf(c,x,r,i,a,-u),f===d-1&&!t.c?x=null:x=Vt.shapeSegment(t,(f+1)%d),Vd(c,t,f+1,r,i,a,u);return c},ss.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,u=this.amplitude.v,x=Math.max(0,Math.round(this.frequency.v)),f=this.pointsType.v;if(u!==0){var I,w;for(i=0;i<a;i+=1){if(I=this.shapes[i],w=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!t))for(w.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)w.addShape(this.processPath(r[d],u,x,f));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function dl(t,r,i){var a=Math.atan2(r[0]-t[0],r[1]-t[1]);return[oo(t,a,i),oo(r,a,i)]}function ao(t,r){var i,a,d,c,u,x,f;f=dl(t.points[0],t.points[1],r),i=f[0],a=f[1],f=dl(t.points[1],t.points[2],r),d=f[0],c=f[1],f=dl(t.points[2],t.points[3],r),u=f[0],x=f[1];var I=ya(i,a,d,c);I===null&&(I=a);var w=ya(u,x,d,c);return w===null&&(w=u),new Vt(i,I,w,x)}function Bd(t,r,i,a,d){var c=r.points[3],u=i.points[0];if(a===3||so(c,u))return c;if(a===2){var x=-r.tangentAngle(1),f=-i.tangentAngle(0)+Math.PI,I=ya(c,oo(c,x+Math.PI/2,100),u,oo(u,x+Math.PI/2,100)),w=I?cl(I,c):cl(c,u)/2,B=oo(c,x,2*w*he);return t.setXYAt(B[0],B[1],"o",t.length()-1),B=oo(u,f,2*w*he),t.setTripleAt(u[0],u[1],u[0],u[1],B[0],B[1],t.length()),u}var y=so(c,r.points[2])?r.points[0]:r.points[2],N=so(u,i.points[1])?i.points[3]:i.points[1],P=ya(y,c,u,N);return P&&cl(P,c)<d?(t.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],t.length()),P):c}function Ud(t,r){var i=t.intersections(r);return i.length&&ga(i[0][0],1)&&i.shift(),i.length?i[0]:null}function Gd(t,r){var i=t.slice(),a=r.slice(),d=Ud(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=Ud(t[0],r[r.length-1]),d)?[[t[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[i,a]}function jf(t){for(var r,i=1;i<t.length;i+=1)r=Gd(t[i-1],t[i]),t[i-1]=r[0],t[i]=r[1];return t.length>1&&(r=Gd(t[t.length-1],t[0]),t[t.length-1]=r[0],t[0]=r[1]),t}function Hd(t,r){var i=t.inflectionPoints(),a,d,c,u;if(i.length===0)return[ao(t,r)];if(i.length===1||ga(i[1],1))return c=t.split(i[0]),a=c[0],d=c[1],[ao(a,r),ao(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),u=c[0],d=c[1],[ao(a,r),ao(u,r),ao(d,r)]}function as(){}$([ze],as),as.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=et.getProp(t,r.a,0,null,this),this.miterLimit=et.getProp(t,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},as.prototype.processPath=function(t,r,i,a){var d=ae.newElement();d.c=t.c;var c=t.length();t.c||(c-=1);var u,x,f,I=[];for(u=0;u<c;u+=1)f=Vt.shapeSegment(t,u),I.push(Hd(f,r));if(!t.c)for(u=c-1;u>=0;u-=1)f=Vt.shapeSegmentInverted(t,u),I.push(Hd(f,r));I=jf(I);var w=null,B=null;for(u=0;u<I.length;u+=1){var y=I[u];for(B&&(w=Bd(d,B,y[0],i,a)),B=y[y.length-1],x=0;x<y.length;x+=1)f=y[x],w&&so(f.points[0],w)?d.setXYAt(f.points[1][0],f.points[1][1],"o",d.length()-1):d.setTripleAt(f.points[0][0],f.points[0][1],f.points[1][0],f.points[1][1],f.points[0][0],f.points[0][1],d.length()),d.setTripleAt(f.points[3][0],f.points[3][1],f.points[3][0],f.points[3][1],f.points[2][0],f.points[2][1],d.length()),w=f.points[3]}return I.length&&Bd(d,B,I[0][0],i,a),d},as.prototype.processShapes=function(t){var r,i,a=this.shapes.length,d,c,u=this.amount.v,x=this.miterLimit.v,f=this.lineJoin;if(u!==0){var I,w;for(i=0;i<a;i+=1){if(I=this.shapes[i],w=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!t))for(w.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)w.addShape(this.processPath(r[d],u,f,x));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function jd(t){for(var r=t.fStyle?t.fStyle.split(" "):[],i="normal",a="normal",d=r.length,c,u=0;u<d;u+=1)switch(c=r[u].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 gi=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,u=917626,x=65039,f=8205,I=127462,w=127487,B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function y(_){var R=_.split(","),p,g=R.length,U=[];for(p=0;p<g;p+=1)R[p]!=="sans-serif"&&R[p]!=="monospace"&&U.push(R[p]);return U.join(",")}function N(_,R){var p=L("span");p.setAttribute("aria-hidden",!0),p.style.fontFamily=R;var g=L("span");g.innerText="giItT1WQy@!-/#",p.style.position="absolute",p.style.left="-10000px",p.style.top="-10000px",p.style.fontSize="300px",p.style.fontVariant="normal",p.style.fontStyle="normal",p.style.fontWeight="normal",p.style.letterSpacing="0",p.appendChild(g),document.body.appendChild(p);var U=g.offsetWidth;return g.style.fontFamily=y(_)+", "+R,{node:g,w:U,parent:p}}function P(){var _,R=this.fonts.length,p,g,U=R;for(_=0;_<R;_+=1)this.fonts[_].loaded?U-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(p=this.fonts[_].monoCase.node,g=this.fonts[_].monoCase.w,p.offsetWidth!==g?(U-=1,this.fonts[_].loaded=!0):(p=this.fonts[_].sansCase.node,g=this.fonts[_].sansCase.w,p.offsetWidth!==g&&(U-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));U!==0&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function M(_,R){var p=document.body&&R?"svg":"canvas",g,U=jd(_);if(p==="svg"){var F=vt("text");F.style.fontSize="100px",F.setAttribute("font-family",_.fFamily),F.setAttribute("font-style",U.style),F.setAttribute("font-weight",U.weight),F.textContent="1",_.fClass?(F.style.fontFamily="inherit",F.setAttribute("class",_.fClass)):F.style.fontFamily=_.fFamily,R.appendChild(F),g=F}else{var rt=new OffscreenCanvas(500,500).getContext("2d");rt.font=U.style+" "+U.weight+" 100px "+_.fFamily,g=rt}function mt(ft){return p==="svg"?(g.textContent=ft,g.getComputedTextLength()):g.measureText(ft).width}return{measureText:mt}}function z(_,R){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(Ae){Ae.helper=M(Ae),Ae.cache={}}),this.fonts=_.list;return}var p=_.list,g,U=p.length,F=U;for(g=0;g<U;g+=1){var rt=!0,mt,ft;if(p[g].loaded=!1,p[g].monoCase=N(p[g].fFamily,"monospace"),p[g].sansCase=N(p[g].fFamily,"sans-serif"),!p[g].fPath)p[g].loaded=!0,F-=1;else if(p[g].fOrigin==="p"||p[g].origin===3){if(mt=document.querySelectorAll('style[f-forigin="p"][f-family="'+p[g].fFamily+'"], style[f-origin="3"][f-family="'+p[g].fFamily+'"]'),mt.length>0&&(rt=!1),rt){var Ct=L("style");Ct.setAttribute("f-forigin",p[g].fOrigin),Ct.setAttribute("f-origin",p[g].origin),Ct.setAttribute("f-family",p[g].fFamily),Ct.type="text/css",Ct.innerText="@font-face {font-family: "+p[g].fFamily+"; font-style: normal; src: url('"+p[g].fPath+"');}",R.appendChild(Ct)}}else if(p[g].fOrigin==="g"||p[g].origin===1){for(mt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ft=0;ft<mt.length;ft+=1)mt[ft].href.indexOf(p[g].fPath)!==-1&&(rt=!1);if(rt){var wt=L("link");wt.setAttribute("f-forigin",p[g].fOrigin),wt.setAttribute("f-origin",p[g].origin),wt.type="text/css",wt.rel="stylesheet",wt.href=p[g].fPath,document.body.appendChild(wt)}}else if(p[g].fOrigin==="t"||p[g].origin===2){for(mt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ft=0;ft<mt.length;ft+=1)p[g].fPath===mt[ft].src&&(rt=!1);if(rt){var qt=L("link");qt.setAttribute("f-forigin",p[g].fOrigin),qt.setAttribute("f-origin",p[g].origin),qt.setAttribute("rel","stylesheet"),qt.setAttribute("href",p[g].fPath),R.appendChild(qt)}}p[g].helper=M(p[g],R),p[g].cache={},this.fonts.push(p[g])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function C(_){if(_){this.chars||(this.chars=[]);var R,p=_.length,g,U=this.chars.length,F;for(R=0;R<p;R+=1){for(g=0,F=!1;g<U;)this.chars[g].style===_[R].style&&this.chars[g].fFamily===_[R].fFamily&&this.chars[g].ch===_[R].ch&&(F=!0),g+=1;F||(this.chars.push(_[R]),U+=1)}}}function S(_,R,p){for(var g=0,U=this.chars.length;g<U;){if(this.chars[g].ch===_&&this.chars[g].style===R&&this.chars[g].fFamily===p)return this.chars[g];g+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,R,p)),r}function b(_,R,p){var g=this.getFontByName(R),U=_;if(!g.cache[U]){var F=g.helper;if(_===" "){var rt=F.measureText("|"+_+"|"),mt=F.measureText("||");g.cache[U]=(rt-mt)/100}else g.cache[U]=F.measureText(_)/100}return g.cache[U]*p}function A(_){for(var R=0,p=this.fonts.length;R<p;){if(this.fonts[R].fName===_)return this.fonts[R];R+=1}return this.fonts[0]}function k(_){var R=0,p=_.charCodeAt(0);if(p>=55296&&p<=56319){var g=_.charCodeAt(1);g>=56320&&g<=57343&&(R=(p-55296)*1024+g-56320+65536)}return R}function D(_,R){var p=_.toString(16)+R.toString(16);return B.indexOf(p)!==-1}function V(_){return _===f}function G(_){return _===x}function Z(_){var R=k(_);return R>=I&&R<=w}function ut(_){return Z(_.substr(0,2))&&Z(_.substr(2,2))}function ct(_){return i.indexOf(_)!==-1}function Q(_,R){var p=k(_.substr(R,2));if(p!==a)return!1;var g=0;for(R+=2;g<5;){if(p=k(_.substr(R,2)),p<c||p>u)return!1;g+=1,R+=2}return k(_.substr(R,2))===d}function gt(){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=D,st.isZeroWidthJoiner=V,st.isFlagEmoji=ut,st.isRegionalCode=Z,st.isCombinedCharacter=ct,st.isRegionalFlag=Q,st.isVariationSelector=G,st.BLACK_FLAG_CODE_POINT=a;var X={addChars:C,addFonts:z,getCharData:S,getFontByName:A,measureText:b,checkLoadedFonts:P,setIsLoaded:gt};return st.prototype=X,st}();function Wd(t){this.animationData=t}Wd.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function Wf(t){return new Wd(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 hl=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 Yf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function qf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Kf(t,r,i){this.p=et.getProp(r,t.v,1,0,i)}function Xf(t,r,i){this.p=et.getProp(r,t.v,1,0,i)}function Zf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Jf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Qf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function tv(){this.p={}}function Yd(t,r){var i=t.ef||[];this.effectElements=[];var a,d=i.length,c;for(a=0;a<d;a+=1)c=new ns(i[a],r),this.effectElements.push(c)}function ns(t,r){this.init(t,r)}$([re],ns),ns.prototype.getValue=ns.prototype.iterateDynamicProperties,ns.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 Yf(c[i],r,this);break;case 1:d=new qf(c[i],r,this);break;case 2:d=new Kf(c[i],r,this);break;case 3:d=new Xf(c[i],r,this);break;case 4:case 7:d=new Qf(c[i],r,this);break;case 10:d=new Zf(c[i],r,this);break;case 11:d=new Jf(c[i],r,this);break;case 5:d=new Yd(c[i],r,this);break;default:d=new tv(c[i],r,this);break}d&&this.effectElements.push(d)}};function Wr(){}Wr.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=yd();if(r){var i=r("layer"),a=r("effects"),d=r("shape"),c=r("text"),u=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=u(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=hl(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=Te(),this.data.sr||(this.data.sr=1),this.effectsManager=new Yd(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Yr(){}Yr.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 qr(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)}qr.prototype.prepareFrame=function(){},$([Ea,Wr,Yr],qr),qr.prototype.getBaseElement=function(){return null},qr.prototype.renderFrame=function(){},qr.prototype.destroy=function(){},qr.prototype.initExpressions=function(){var t=yd();if(t){var r=t("footage");this.layerInterface=r(this)}},qr.prototype.getFootageData=function(){return this.footageData};function xe(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?et.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=et.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}xe.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))},$([Ea,Wr,Yr],xe),xe.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))},xe.prototype.show=function(){},xe.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},xe.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},xe.prototype.resume=function(){this._canPlay=!0},xe.prototype.setRate=function(t){this.audio.rate(t)},xe.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},xe.prototype.getBaseElement=function(){return null},xe.prototype.destroy=function(){},xe.prototype.sourceRectAtTime=function(){},xe.prototype.initExpressions=function(){};function le(){}le.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()},le.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)}},le.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},le.prototype.createAudio=function(t){return new xe(t,this.globalData,this)},le.prototype.createFootage=function(t){return new qr(t,this.globalData,this)},le.prototype.buildAllItems=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.buildItem(t);this.checkPendingElements()},le.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}},le.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},le.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},le.prototype.buildElementParenting=function(t,r,i){for(var a=this.elements,d=this.layers,c=0,u=d.length;c<u;)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},le.prototype.addPendingElement=function(t){this.pendingElements.push(t)},le.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)}},le.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},le.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)},le.prototype.setupGlobalData=function(t,r){this.globalData.fontManager=new gi,this.globalData.slotManager=Wf(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 ev={TRANSFORM_EFFECT:"transformEFfect"};function no(){}no.prototype={initTransform:function(){var r=new ne;this.finalTransform={mProp:this.data.ks?al.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(ev.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new ne;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,u=i.length,x;for(c=0;c<u;c+=1)x=i[c].mat.applyToPointArray(0,0,0),r=[r[0]-x[0],r[1]-x[1],0];return r},mHelper:new ne};function bi(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=tt(c),this.solidPath="";var u,x=this.masksProperties,f=0,I=[],w,B,y=Te(),N,P,M,z,C="clipPath",S="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)&&(C="mask",S="mask"),(x[d].mode==="s"||x[d].mode==="i")&&f===0?(N=vt("rect"),N.setAttribute("fill","#ffffff"),N.setAttribute("width",this.element.comp.data.w||0),N.setAttribute("height",this.element.comp.data.h||0),I.push(N)):N=null,u=vt("path"),x[d].mode==="n")this.viewData[d]={op:et.getProp(this.element,x[d].o,0,.01,this.element),prop:ua.getShapeProp(this.element,x[d],3),elem:u,lastPath:""},a.appendChild(u);else{f+=1,u.setAttribute("fill",x[d].mode==="s"?"#000000":"#ffffff"),u.setAttribute("clip-rule","nonzero");var b;if(x[d].x.k!==0?(C="mask",S="mask",z=et.getProp(this.element,x[d].x,0,null,this.element),b=Te(),P=vt("filter"),P.setAttribute("id",b),M=vt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),P.appendChild(M),a.appendChild(P),u.setAttribute("stroke",x[d].mode==="s"?"#000000":"#ffffff")):(M=null,z=null),this.storedData[d]={elem:u,x:z,expan:M,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},x[d].mode==="i"){B=I.length;var A=vt("g");for(w=0;w<B;w+=1)A.appendChild(I[w]);var k=vt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",y+"_"+f),k.appendChild(u),a.appendChild(k),A.setAttribute("mask","url("+T()+"#"+y+"_"+f+")"),I.length=0,I.push(A)}else I.push(u);x[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:u,lastPath:"",op:et.getProp(this.element,x[d].o,0,.01,this.element),prop:ua.getShapeProp(this.element,x[d],3),invRect:N},this.viewData[d].prop.k||this.drawPath(x[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=vt(C),c=I.length,d=0;d<c;d+=1)this.maskElement.appendChild(I[d]);f>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(S,"url("+T()+"#"+y+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}bi.prototype.getMaskProperty=function(t){return this.viewData[t].prop},bi.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("+T()+"#"+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))}},bi.prototype.getMaskelement=function(){return this.maskElement},bi.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},bi.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 u="";i.elem&&(r.c&&(u=t.inv?this.solidPath+a:a),i.elem.setAttribute("d",u)),i.lastPath=a}},bi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var ls=function(){var t={};t.createFilter=r,t.createAlphaToLuminanceFilter=i;function r(a,d){var c=vt("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=vt("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}(),qd=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}(),Ta={},Kd="filter_result_";function pl(t){var r,i="SourceGraphic",a=t.data.ef?t.data.ef.length:0,d=Te(),c=ls.createFilter(d,!0),u=0;this.filters=[];var x;for(r=0;r<a;r+=1){x=null;var f=t.data.ef[r].ty;if(Ta[f]){var I=Ta[f].effect;x=new I(c,t.effectsManager.effectElements[r],t,Kd+u,i),i=Kd+u,Ta[f].countsAsEffect&&(u+=1)}x&&this.filters.push(x)}u&&(t.globalData.defs.appendChild(c),t.layerElement.setAttribute("filter","url("+T()+"#"+d+")")),this.filters.length&&t.addRenderableComponent(this)}pl.prototype.renderFrame=function(t){var r,i=this.filters.length;for(r=0;r<i;r+=1)this.filters[r].renderFrame(t)},pl.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 Hy(t,r,i){Ta[t]={effect:r,countsAsEffect:i}}function cs(){}cs.prototype={initRendererElement:function(){this.layerElement=vt("g")},createContainerElements:function(){this.matteElement=vt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var i=vt("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=vt("clipPath"),d=vt("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=Te();if(a.setAttribute("id",c),a.appendChild(d),this.globalData.defs.appendChild(a),this.checkMasks()){var u=vt("g");u.setAttribute("clip-path","url("+T()+"#"+c+")"),u.appendChild(this.layerElement),this.transformedElement=u,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+T()+"#"+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 bi(this.data,this,this.globalData),this.renderableEffectsManager=new pl(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var i=this.layerId+"_"+r,a,d,c,u;if(r===1||r===3){var x=vt("mask");x.setAttribute("id",i),x.setAttribute("mask-type",r===3?"luminance":"alpha"),c=vt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),x.appendChild(c),this.globalData.defs.appendChild(x),!qd.maskType&&r===1&&(x.setAttribute("mask-type","luminance"),a=Te(),d=ls.createFilter(a),this.globalData.defs.appendChild(d),d.appendChild(ls.createAlphaToLuminanceFilter()),u=vt("g"),u.appendChild(c),x.appendChild(u),u.setAttribute("filter","url("+T()+"#"+a+")"))}else if(r===2){var f=vt("mask");f.setAttribute("id",i),f.setAttribute("mask-type","alpha");var I=vt("g");f.appendChild(I),a=Te(),d=ls.createFilter(a);var w=vt("feComponentTransfer");w.setAttribute("in","SourceGraphic"),d.appendChild(w);var B=vt("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),w.appendChild(B),this.globalData.defs.appendChild(d);var y=vt("rect");y.setAttribute("width",this.comp.data.w),y.setAttribute("height",this.comp.data.h),y.setAttribute("x","0"),y.setAttribute("y","0"),y.setAttribute("fill","#ffffff"),y.setAttribute("opacity","0"),I.setAttribute("filter","url("+T()+"#"+a+")"),I.appendChild(y),c=vt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),qd.maskType||(f.setAttribute("mask-type","luminance"),d.appendChild(ls.createAlphaToLuminanceFilter()),u=vt("g"),I.appendChild(y),u.appendChild(this.layerElement),I.appendChild(u)),this.globalData.defs.appendChild(f)}this.matteMasks[r]=i}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+T()+"#"+r+")")}};function lo(){}lo.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 ds(){}(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()}};$([Ea,K(t)],ds)})();function hs(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}}$([Wr,no,cs,lo,Yr,ds],hs),hs.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=vt("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)},hs.prototype.sourceRectAtTime=function(){return this.sourceRect};function rv(t,r){this.elem=t,this.pos=r}function Xd(){}Xd.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 rv(r,i))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var Zd={1:"butt",2:"round",3:"square"},Jd={1:"miter",2:"round",3:"bevel"};function Qd(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}}Qd.prototype.setAsAnimated=function(){this._isAnimated=!0};function th(t,r){this.data=t,this.type=t.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=t.hd===!0,this.pElem=vt("path"),this.msElem=null}th.prototype.reset=function(){this.d="",this._mdf=!1};function xa(t,r,i,a){this.elem=t,this.frameId=-1,this.dataProps=tt(r.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=J("float32",r.length?r.length-1:0),this.dashoffset=J("float32",1),this.initDynamicPropertyContainer(a);var d,c=r.length||0,u;for(d=0;d<c;d+=1)u=et.getProp(t,r[d].v,0,0,this),this.k=u.k||this.k,this.dataProps[d]={n:r[d].n,p:u};this.k||this.getValue(!0),this._isAnimated=this.k}xa.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}},$([re],xa);function eh(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=et.getProp(t,r.o,0,.01,this),this.w=et.getProp(t,r.w,0,null,this),this.d=new xa(t,r.d||{},"svg",this),this.c=et.getProp(t,r.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}$([re],eh);function rh(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=et.getProp(t,r.o,0,.01,this),this.c=et.getProp(t,r.c,1,255,this),this.style=i}$([re],rh);function ih(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}$([re],ih);function ps(t,r,i){this.data=r,this.c=J("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=J("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(i),this.prop=et.getProp(t,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ps.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},ps.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},ps.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}},$([re],ps);function co(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,r,i)}co.prototype.initGradientData=function(t,r,i){this.o=et.getProp(t,r.o,0,.01,this),this.s=et.getProp(t,r.s,1,null,this),this.e=et.getProp(t,r.e,1,null,this),this.h=et.getProp(t,r.h||{k:0},0,.01,this),this.a=et.getProp(t,r.a||{k:0},0,At,this),this.g=new ps(t,r.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,r),this.setGradientOpacity(r,i),this._isAnimated=!!this._isAnimated},co.prototype.setGradientData=function(t,r){var i=Te(),a=vt(r.t===1?"linearGradient":"radialGradient");a.setAttribute("id",i),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,u,x;for(x=r.g.p*4,u=0;u<x;u+=4)c=vt("stop"),a.appendChild(c),d.push(c);t.setAttribute(r.ty==="gf"?"fill":"stroke","url("+T()+"#"+i+")"),this.gf=a,this.cst=d},co.prototype.setGradientOpacity=function(t,r){if(this.g._hasOpacity&&!this.g._collapsable){var i,a,d,c=vt("mask"),u=vt("path");c.appendChild(u);var x=Te(),f=Te();c.setAttribute("id",f);var I=vt(t.t===1?"linearGradient":"radialGradient");I.setAttribute("id",x),I.setAttribute("spreadMethod","pad"),I.setAttribute("gradientUnits","userSpaceOnUse"),d=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var w=this.stops;for(a=t.g.p*4;a<d;a+=2)i=vt("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(i),w.push(i);u.setAttribute(t.ty==="gf"?"fill":"stroke","url("+T()+"#"+x+")"),t.ty==="gs"&&(u.setAttribute("stroke-linecap",Zd[t.lc||2]),u.setAttribute("stroke-linejoin",Jd[t.lj||2]),t.lj===1&&u.setAttribute("stroke-miterlimit",t.ml)),this.of=I,this.ms=c,this.ost=w,this.maskId=f,r.msElem=u}},$([re],co);function oh(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=et.getProp(t,r.w,0,null,this),this.d=new xa(t,r.d||{},"svg",this),this.initGradientData(t,r,i),this._isAnimated=!!this._isAnimated}$([co,re],oh);function iv(){this.it=[],this.prevViewData=[],this.gr=vt("g")}function ov(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 sh=function(r,i,a,d){if(i===0)return"";var c=r.o,u=r.i,x=r.v,f,I=" M"+d.applyToPointStringified(x[0][0],x[0][1]);for(f=1;f<i;f+=1)I+=" C"+d.applyToPointStringified(c[f-1][0],c[f-1][1])+" "+d.applyToPointStringified(u[f][0],u[f][1])+" "+d.applyToPointStringified(x[f][0],x[f][1]);return a&&i&&(I+=" C"+d.applyToPointStringified(c[f-1][0],c[f-1][1])+" "+d.applyToPointStringified(u[0][0],u[0][1])+" "+d.applyToPointStringified(x[0][0],x[0][1]),I+="z"),I},sv=function(){var t=new ne,r=new ne,i={createRenderFunction:a};function a(B){switch(B.ty){case"fl":return x;case"gf":return I;case"gs":return f;case"st":return w;case"sh":case"el":case"rc":case"sr":return u;case"tr":return d;case"no":return c;default:return null}}function d(B,y,N){(N||y.transform.op._mdf)&&y.transform.container.setAttribute("opacity",y.transform.op.v),(N||y.transform.mProps._mdf)&&y.transform.container.setAttribute("transform",y.transform.mProps.v.to2dCSS())}function c(){}function u(B,y,N){var P,M,z,C,S,b,A=y.styles.length,k=y.lvl,D,V,G,Z;for(b=0;b<A;b+=1){if(C=y.sh._mdf||N,y.styles[b].lvl<k){for(V=r.reset(),G=k-y.styles[b].lvl,Z=y.transformers.length-1;!C&&G>0;)C=y.transformers[Z].mProps._mdf||C,G-=1,Z-=1;if(C)for(G=k-y.styles[b].lvl,Z=y.transformers.length-1;G>0;)V.multiply(y.transformers[Z].mProps.v),G-=1,Z-=1}else V=t;if(D=y.sh.paths,M=D._length,C){for(z="",P=0;P<M;P+=1)S=D.shapes[P],S&&S._length&&(z+=sh(S,S._length,S.c,V));y.caches[b]=z}else z=y.caches[b];y.styles[b].d+=B.hd===!0?"":z,y.styles[b]._mdf=C||y.styles[b]._mdf}}function x(B,y,N){var P=y.style;(y.c._mdf||N)&&P.pElem.setAttribute("fill","rgb("+ee(y.c.v[0])+","+ee(y.c.v[1])+","+ee(y.c.v[2])+")"),(y.o._mdf||N)&&P.pElem.setAttribute("fill-opacity",y.o.v)}function f(B,y,N){I(B,y,N),w(B,y,N)}function I(B,y,N){var P=y.gf,M=y.g._hasOpacity,z=y.s.v,C=y.e.v;if(y.o._mdf||N){var S=B.ty==="gf"?"fill-opacity":"stroke-opacity";y.style.pElem.setAttribute(S,y.o.v)}if(y.s._mdf||N){var b=B.t===1?"x1":"cx",A=b==="x1"?"y1":"cy";P.setAttribute(b,z[0]),P.setAttribute(A,z[1]),M&&!y.g._collapsable&&(y.of.setAttribute(b,z[0]),y.of.setAttribute(A,z[1]))}var k,D,V,G;if(y.g._cmdf||N){k=y.cst;var Z=y.g.c;for(V=k.length,D=0;D<V;D+=1)G=k[D],G.setAttribute("offset",Z[D*4]+"%"),G.setAttribute("stop-color","rgb("+Z[D*4+1]+","+Z[D*4+2]+","+Z[D*4+3]+")")}if(M&&(y.g._omdf||N)){var ut=y.g.o;for(y.g._collapsable?k=y.cst:k=y.ost,V=k.length,D=0;D<V;D+=1)G=k[D],y.g._collapsable||G.setAttribute("offset",ut[D*2]+"%"),G.setAttribute("stop-opacity",ut[D*2+1])}if(B.t===1)(y.e._mdf||N)&&(P.setAttribute("x2",C[0]),P.setAttribute("y2",C[1]),M&&!y.g._collapsable&&(y.of.setAttribute("x2",C[0]),y.of.setAttribute("y2",C[1])));else{var ct;if((y.s._mdf||y.e._mdf||N)&&(ct=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)),P.setAttribute("r",ct),M&&!y.g._collapsable&&y.of.setAttribute("r",ct)),y.e._mdf||y.h._mdf||y.a._mdf||N){ct||(ct=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)));var Q=Math.atan2(C[1]-z[1],C[0]-z[0]),gt=y.h.v;gt>=1?gt=.99:gt<=-1&&(gt=-.99);var st=ct*gt,X=Math.cos(Q+y.a.v)*st+z[0],_=Math.sin(Q+y.a.v)*st+z[1];P.setAttribute("fx",X),P.setAttribute("fy",_),M&&!y.g._collapsable&&(y.of.setAttribute("fx",X),y.of.setAttribute("fy",_))}}}function w(B,y,N){var P=y.style,M=y.d;M&&(M._mdf||N)&&M.dashStr&&(P.pElem.setAttribute("stroke-dasharray",M.dashStr),P.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),y.c&&(y.c._mdf||N)&&P.pElem.setAttribute("stroke","rgb("+ee(y.c.v[0])+","+ee(y.c.v[1])+","+ee(y.c.v[2])+")"),(y.o._mdf||N)&&P.pElem.setAttribute("stroke-opacity",y.o.v),(y.w._mdf||N)&&(P.pElem.setAttribute("stroke-width",y.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",y.w.v))}return i}();function Ht(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=[]}$([Wr,no,cs,Xd,lo,Yr,ds],Ht),Ht.prototype.initSecondaryElement=function(){},Ht.prototype.identityMatrix=new ne,Ht.prototype.buildExpressionInterface=function(){},Ht.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Ht.prototype.filterUniqueShapes=function(){var t,r=this.shapes.length,i,a,d=this.stylesList.length,c,u=[],x=!1;for(a=0;a<d;a+=1){for(c=this.stylesList[a],x=!1,u.length=0,t=0;t<r;t+=1)i=this.shapes[t],i.styles.indexOf(c)!==-1&&(u.push(i),x=i._isAnimated||x);u.length>1&&x&&this.setShapesAsAnimated(u)}},Ht.prototype.setShapesAsAnimated=function(t){var r,i=t.length;for(r=0;r<i;r+=1)t[r].setAsAnimated()},Ht.prototype.createStyleElement=function(t,r){var i,a=new th(t,r),d=a.pElem;if(t.ty==="st")i=new eh(this,t,a);else if(t.ty==="fl")i=new rh(this,t,a);else if(t.ty==="gf"||t.ty==="gs"){var c=t.ty==="gf"?co:oh;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("+T()+"#"+i.maskId+")"))}else t.ty==="no"&&(i=new ih(this,t,a));return(t.ty==="st"||t.ty==="gs")&&(d.setAttribute("stroke-linecap",Zd[t.lc||2]),d.setAttribute("stroke-linejoin",Jd[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"]=hl(t.bm)),this.stylesList.push(a),this.addToAnimatedContents(t,i),i},Ht.prototype.createGroupElement=function(t){var r=new iv;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"]=hl(t.bm)),r},Ht.prototype.createTransformElement=function(t,r){var i=al.getTransformProperty(this,t,this),a=new ov(i,i.o,r);return this.addToAnimatedContents(t,a),a},Ht.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=ua.getShapeProp(this,t,a,this),c=new Qd(r,i,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(t,c),c},Ht.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:sv.createRenderFunction(t),element:r,data:t})},Ht.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])},Ht.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()},Ht.prototype.searchShapes=function(t,r,i,a,d,c,u){var x=[].concat(c),f,I=t.length-1,w,B,y=[],N=[],P,M,z;for(f=I;f>=0;f-=1){if(z=this.searchProcessedElement(t[f]),z?r[f]=i[z-1]:t[f]._render=u,t[f].ty==="fl"||t[f].ty==="st"||t[f].ty==="gf"||t[f].ty==="gs"||t[f].ty==="no")z?r[f].style.closed=!1:r[f]=this.createStyleElement(t[f],d),t[f]._render&&r[f].style.pElem.parentNode!==a&&a.appendChild(r[f].style.pElem),y.push(r[f].style);else if(t[f].ty==="gr"){if(!z)r[f]=this.createGroupElement(t[f]);else for(B=r[f].it.length,w=0;w<B;w+=1)r[f].prevViewData[w]=r[f].it[w];this.searchShapes(t[f].it,r[f].it,r[f].prevViewData,r[f].gr,d+1,x,u),t[f]._render&&r[f].gr.parentNode!==a&&a.appendChild(r[f].gr)}else t[f].ty==="tr"?(z||(r[f]=this.createTransformElement(t[f],a)),P=r[f].transform,x.push(P)):t[f].ty==="sh"||t[f].ty==="rc"||t[f].ty==="el"||t[f].ty==="sr"?(z||(r[f]=this.createShapeElement(t[f],x,d)),this.setElementStyles(r[f])):t[f].ty==="tm"||t[f].ty==="rd"||t[f].ty==="ms"||t[f].ty==="pb"||t[f].ty==="zz"||t[f].ty==="op"?(z?(M=r[f],M.closed=!1):(M=Hr.getModifier(t[f].ty),M.init(this,t[f]),r[f]=M,this.shapeModifiers.push(M)),N.push(M)):t[f].ty==="rp"&&(z?(M=r[f],M.closed=!0):(M=Hr.getModifier(t[f].ty),r[f]=M,M.init(this,t,f,r),this.shapeModifiers.push(M),u=!1),N.push(M));this.addProcessedElement(t[f],f+1)}for(I=y.length,f=0;f<I;f+=1)y[f].closed=!0;for(I=N.length,f=0;f<I;f+=1)N[f].closed=!0},Ht.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"))},Ht.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)},Ht.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function ml(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}}ml.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 u=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,u=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,u=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,u=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,u=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,u=!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,u=!0),u};function pe(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)}pe.prototype.defaultBoxWidth=[0,0],pe.prototype.copyData=function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},pe.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},pe.prototype.searchProperty=function(){return this.searchKeyframes()},pe.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},pe.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},pe.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}},pe.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},pe.prototype.buildFinalText=function(t){for(var r=[],i=0,a=t.length,d,c,u=!1,x=!1,f="";i<a;)u=x,x=!1,d=t.charCodeAt(i),f=t.charAt(i),gi.isCombinedCharacter(d)?u=!0:d>=55296&&d<=56319?gi.isRegionalFlag(t,i)?f=t.substr(i,14):(c=t.charCodeAt(i+1),c>=56320&&c<=57343&&(gi.isModifier(d,c)?(f=t.substr(i,2),u=!0):gi.isFlagEmoji(t.substr(i,4))?f=t.substr(i,4):f=t.substr(i,2))):d>56319?(c=t.charCodeAt(i+1),gi.isVariationSelector(d)&&(u=!0)):gi.isZeroWidthJoiner(d)&&(u=!0,x=!0),u?(r[r.length-1]+=f,u=!1):r.push(f),i+=f.length;return r},pe.prototype.completeTextData=function(t){t.__complete=!0;var r=this.elem.globalData.fontManager,i=this.data,a=[],d,c,u,x=0,f,I=i.m.g,w=0,B=0,y=0,N=[],P=0,M=0,z,C,S=r.getFontByName(t.f),b,A=0,k=jd(S);t.fWeight=k.weight,t.fStyle=k.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),c=t.finalText.length,t.finalLineHeight=t.lh;var D=t.tr/1e3*t.finalSize,V;if(t.sz)for(var G=!0,Z=t.sz[0],ut=t.sz[1],ct,Q;G;){Q=this.buildFinalText(t.t),ct=0,P=0,c=Q.length,D=t.tr/1e3*t.finalSize;var gt=-1;for(d=0;d<c;d+=1)V=Q[d].charCodeAt(0),u=!1,Q[d]===" "?gt=d:(V===13||V===3)&&(P=0,u=!0,ct+=t.finalLineHeight||t.finalSize*1.2),r.chars?(b=r.getCharData(Q[d],S.fStyle,S.fFamily),A=u?0:b.w*t.finalSize/100):A=r.measureText(Q[d],t.f,t.finalSize),P+A>Z&&Q[d]!==" "?(gt===-1?c+=1:d=gt,ct+=t.finalLineHeight||t.finalSize*1.2,Q.splice(d,gt===d?1:0,"\r"),gt=-1,P=0):(P+=A,P+=D);ct+=S.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&ut<ct?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=Q,c=t.finalText.length,G=!1)}P=-D,A=0;var st=0,X;for(d=0;d<c;d+=1)if(u=!1,X=t.finalText[d],V=X.charCodeAt(0),V===13||V===3?(st=0,N.push(P),M=P>M?P:M,P=-2*D,f="",u=!0,y+=1):f=X,r.chars?(b=r.getCharData(X,S.fStyle,r.getFontByName(t.f).fFamily),A=u?0:b.w*t.finalSize/100):A=r.measureText(f,t.f,t.finalSize),X===" "?st+=A+D:(P+=A+D+st,st=0),a.push({l:A,an:A,add:w,n:u,anIndexes:[],val:f,line:y,animatorJustifyOffset:0}),I==2){if(w+=A,f===""||f===" "||d===c-1){for((f===""||f===" ")&&(w-=A);B<=d;)a[B].an=w,a[B].ind=x,a[B].extra=A,B+=1;x+=1,w=0}}else if(I==3){if(w+=A,f===""||d===c-1){for(f===""&&(w-=A);B<=d;)a[B].an=w,a[B].ind=x,a[B].extra=A,B+=1;w=0,x+=1}}else a[x].ind=x,a[x].extra=0,x+=1;if(t.l=a,M=P>M?P:M,N.push(P),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=M,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=N;var _=i.a,R,p;C=_.length;var g,U,F=[];for(z=0;z<C;z+=1){for(R=_[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,g=R.s.b,d=0;d<c;d+=1)p=a[d],p.anIndexes[z]=U,(g==1&&p.val!==""||g==2&&p.val!==""&&p.val!==" "||g==3&&(p.n||p.val==" "||d==c-1)||g==4&&(p.n||d==c-1))&&(R.s.rn===1&&F.push(U),U+=1);i.a[z].s.totalChars=U;var rt=-1,mt;if(R.s.rn===1)for(d=0;d<c;d+=1)p=a[d],rt!=p.anIndexes[z]&&(rt=p.anIndexes[z],mt=F.splice(Math.floor(Math.random()*F.length),1)[0]),p.anIndexes[z]=mt}t.yOffset=t.finalLineHeight||t.finalSize*1.2,t.ls=t.ls||0,t.ascent=S.ascent*t.finalSize/100},pe.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)},pe.prototype.recalculate=function(t){var r=this.data.d.k[t].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},pe.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},pe.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var av=function(){var t=Math.max,r=Math.min,i=Math.floor;function a(c,u){this._currentTextLength=-1,this.k=!1,this.data=u,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=et.getProp(c,u.s||{k:0},0,0,this),"e"in u?this.e=et.getProp(c,u.e,0,0,this):this.e={v:100},this.o=et.getProp(c,u.o||{k:0},0,0,this),this.xe=et.getProp(c,u.xe||{k:0},0,0,this),this.ne=et.getProp(c,u.ne||{k:0},0,0,this),this.sm=et.getProp(c,u.sm||{k:100},0,0,this),this.a=et.getProp(c,u.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(u){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var x=0,f=0,I=1,w=1;this.ne.v>0?x=this.ne.v/100:f=-this.ne.v/100,this.xe.v>0?I=1-this.xe.v/100:w=1+this.xe.v/100;var B=es.getBezierEasing(x,f,I,w).get,y=0,N=this.finalS,P=this.finalE,M=this.data.sh;if(M===2)P===N?y=u>=P?1:0:y=t(0,r(.5/(P-N)+(u-N)/(P-N),1)),y=B(y);else if(M===3)P===N?y=u>=P?0:1:y=1-t(0,r(.5/(P-N)+(u-N)/(P-N),1)),y=B(y);else if(M===4)P===N?y=0:(y=t(0,r(.5/(P-N)+(u-N)/(P-N),1)),y<.5?y*=2:y=1-2*(y-.5)),y=B(y);else if(M===5){if(P===N)y=0;else{var z=P-N;u=r(t(0,u+.5-N),P-N);var C=-z/2+u,S=z/2;y=Math.sqrt(1-C*C/(S*S))}y=B(y)}else M===6?(P===N?y=0:(u=r(t(0,u+.5-N),P-N),y=(1+Math.cos(Math.PI+Math.PI*2*u/(P-N)))/2),y=B(y)):(u>=i(N)&&(u-N<0?y=t(0,r(r(P,1)-(N-u),1)):y=t(0,r(P-u,1))),y=B(y));if(this.sm.v!==100){var b=this.sm.v*.01;b===0&&(b=1e-8);var A=.5-b*.5;y<A?y=0:(y=(y-A)/b,y>1&&(y=1))}return y*this.a.v},getValue:function(u){this.iterateDynamicProperties(),this._mdf=u||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,u&&this.data.r===2&&(this.e.v=this._currentTextLength);var x=this.data.r===2?1:100/this.data.totalChars,f=this.o.v/x,I=this.s.v/x+f,w=this.e.v/x+f;if(I>w){var B=I;I=w,w=B}this.finalS=I,this.finalE=w}},$([re],a);function d(c,u,x){return new a(c,u,x)}return{getTextSelectorProp:d}}();function nv(t,r,i){var a={propType:!1},d=et.getProp,c=r.a;this.a={r:c.r?d(t,c.r,0,At,i):a,rx:c.rx?d(t,c.rx,0,At,i):a,ry:c.ry?d(t,c.ry,0,At,i):a,sk:c.sk?d(t,c.sk,0,At,i):a,sa:c.sa?d(t,c.sa,0,At,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=av.getTextSelectorProp(t,r.s,i),this.s.t=r.s.t}function yi(t,r,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=r,this._elem=i,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}yi.prototype.searchProperties=function(){var t,r=this._textData.a.length,i,a=et.getProp;for(t=0;t<r;t+=1)i=this._textData.a[t],this._animatorsData[t]=new nv(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)},yi.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,u=this._renderType,x=this.renderedLetters.length,f,I,w,B,y=t.l,N,P,M,z,C,S,b,A,k,D,V,G,Z,ut,ct;if(this._hasMaskedPath){if(ct=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Q=ct.v;this._pathData.r.v&&(Q=Q.reverse()),N={tLength:0,segments:[]},B=Q._length-1;var gt;for(G=0,w=0;w<B;w+=1)gt=hr.buildBezierData(Q.v[w],Q.v[w+1],[Q.o[w][0]-Q.v[w][0],Q.o[w][1]-Q.v[w][1]],[Q.i[w+1][0]-Q.v[w+1][0],Q.i[w+1][1]-Q.v[w+1][1]]),N.tLength+=gt.segmentLength,N.segments.push(gt),G+=gt.segmentLength;w=B,ct.v.c&&(gt=hr.buildBezierData(Q.v[w],Q.v[0],[Q.o[w][0]-Q.v[w][0],Q.o[w][1]-Q.v[w][1]],[Q.i[0][0]-Q.v[0][0],Q.i[0][1]-Q.v[0][1]]),N.tLength+=gt.segmentLength,N.segments.push(gt),G+=gt.segmentLength),this._pathData.pi=N}if(N=this._pathData.pi,P=this._pathData.f.v,b=0,S=1,z=0,C=!0,D=N.segments,P<0&&ct.v.c)for(N.tLength<Math.abs(P)&&(P=-Math.abs(P)%N.tLength),b=D.length-1,k=D[b].points,S=k.length-1;P<0;)P+=k[S].partialLength,S-=1,S<0&&(b-=1,k=D[b].points,S=k.length-1);k=D[b].points,A=k[S-1],M=k[S],V=M.partialLength}B=y.length,f=0,I=0;var st=t.finalSize*1.2*.714,X=!0,_,R,p,g,U;g=a.length;var F,rt=-1,mt,ft,Ct,wt=P,qt=b,Ae=S,mr=-1,_e,ie,Me,Nt,nt,_r,Xr,Sr,ur="",Ir=this.defaultPropsArray,kr;if(t.j===2||t.j===1){var Se=0,Zr=0,Jr=t.j===2?-.5:-1,er=0,Qr=!0;for(w=0;w<B;w+=1)if(y[w].n){for(Se&&(Se+=Zr);er<w;)y[er].animatorJustifyOffset=Se,er+=1;Se=0,Qr=!0}else{for(p=0;p<g;p+=1)_=a[p].a,_.t.propType&&(Qr&&t.j===2&&(Zr+=_.t.v*Jr),R=a[p].s,F=R.getMult(y[w].anIndexes[p],d.a[p].s.totalChars),F.length?Se+=_.t.v*F[0]*Jr:Se+=_.t.v*F*Jr);Qr=!1}for(Se&&(Se+=Zr);er<w;)y[er].animatorJustifyOffset=Se,er+=1}for(w=0;w<B;w+=1){if(c.reset(),_e=1,y[w].n)f=0,I+=t.yOffset,I+=X?1:0,P=wt,X=!1,this._hasMaskedPath&&(b=qt,S=Ae,k=D[b].points,A=k[S-1],M=k[S],V=M.partialLength,z=0),ur="",Sr="",_r="",kr="",Ir=this.defaultPropsArray;else{if(this._hasMaskedPath){if(mr!==y[w].line){switch(t.j){case 1:P+=G-t.lineWidths[y[w].line];break;case 2:P+=(G-t.lineWidths[y[w].line])/2;break;default:break}mr=y[w].line}rt!==y[w].ind&&(y[rt]&&(P+=y[rt].extra),P+=y[w].an/2,rt=y[w].ind),P+=i[0]*y[w].an*.005;var rr=0;for(p=0;p<g;p+=1)_=a[p].a,_.p.propType&&(R=a[p].s,F=R.getMult(y[w].anIndexes[p],d.a[p].s.totalChars),F.length?rr+=_.p.v[0]*F[0]:rr+=_.p.v[0]*F),_.a.propType&&(R=a[p].s,F=R.getMult(y[w].anIndexes[p],d.a[p].s.totalChars),F.length?rr+=_.a.v[0]*F[0]:rr+=_.a.v[0]*F);for(C=!0,this._pathData.a.v&&(P=y[0].an*.5+(G-this._pathData.f.v-y[0].an*.5-y[y.length-1].an*.5)*rt/(B-1),P+=this._pathData.f.v);C;)z+V>=P+rr||!k?(Z=(P+rr-z)/M.partialLength,ft=A.point[0]+(M.point[0]-A.point[0])*Z,Ct=A.point[1]+(M.point[1]-A.point[1])*Z,c.translate(-i[0]*y[w].an*.005,-(i[1]*st)*.01),C=!1):k&&(z+=M.partialLength,S+=1,S>=k.length&&(S=0,b+=1,D[b]?k=D[b].points:ct.v.c?(S=0,b=0,k=D[b].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[S],V=M.partialLength));mt=y[w].an/2-y[w].add,c.translate(-mt,0,0)}else mt=y[w].an/2-y[w].add,c.translate(-mt,0,0),c.translate(-i[0]*y[w].an*.005,-i[1]*st*.01,0);for(p=0;p<g;p+=1)_=a[p].a,_.t.propType&&(R=a[p].s,F=R.getMult(y[w].anIndexes[p],d.a[p].s.totalChars),(f!==0||t.j!==0)&&(this._hasMaskedPath?F.length?P+=_.t.v*F[0]:P+=_.t.v*F:F.length?f+=_.t.v*F[0]:f+=_.t.v*F));for(t.strokeWidthAnim&&(Me=t.sw||0),t.strokeColorAnim&&(t.sc?ie=[t.sc[0],t.sc[1],t.sc[2]]:ie=[0,0,0]),t.fillColorAnim&&t.fc&&(Nt=[t.fc[0],t.fc[1],t.fc[2]]),p=0;p<g;p+=1)_=a[p].a,_.a.propType&&(R=a[p].s,F=R.getMult(y[w].anIndexes[p],d.a[p].s.totalChars),F.length?c.translate(-_.a.v[0]*F[0],-_.a.v[1]*F[1],_.a.v[2]*F[2]):c.translate(-_.a.v[0]*F,-_.a.v[1]*F,_.a.v[2]*F));for(p=0;p<g;p+=1)_=a[p].a,_.s.propType&&(R=a[p].s,F=R.getMult(y[w].anIndexes[p],d.a[p].s.totalChars),F.length?c.scale(1+(_.s.v[0]-1)*F[0],1+(_.s.v[1]-1)*F[1],1):c.scale(1+(_.s.v[0]-1)*F,1+(_.s.v[1]-1)*F,1));for(p=0;p<g;p+=1){if(_=a[p].a,R=a[p].s,F=R.getMult(y[w].anIndexes[p],d.a[p].s.totalChars),_.sk.propType&&(F.length?c.skewFromAxis(-_.sk.v*F[0],_.sa.v*F[1]):c.skewFromAxis(-_.sk.v*F,_.sa.v*F)),_.r.propType&&(F.length?c.rotateZ(-_.r.v*F[2]):c.rotateZ(-_.r.v*F)),_.ry.propType&&(F.length?c.rotateY(_.ry.v*F[1]):c.rotateY(_.ry.v*F)),_.rx.propType&&(F.length?c.rotateX(_.rx.v*F[0]):c.rotateX(_.rx.v*F)),_.o.propType&&(F.length?_e+=(_.o.v*F[0]-_e)*F[0]:_e+=(_.o.v*F-_e)*F),t.strokeWidthAnim&&_.sw.propType&&(F.length?Me+=_.sw.v*F[0]:Me+=_.sw.v*F),t.strokeColorAnim&&_.sc.propType)for(nt=0;nt<3;nt+=1)F.length?ie[nt]+=(_.sc.v[nt]-ie[nt])*F[0]:ie[nt]+=(_.sc.v[nt]-ie[nt])*F;if(t.fillColorAnim&&t.fc){if(_.fc.propType)for(nt=0;nt<3;nt+=1)F.length?Nt[nt]+=(_.fc.v[nt]-Nt[nt])*F[0]:Nt[nt]+=(_.fc.v[nt]-Nt[nt])*F;_.fh.propType&&(F.length?Nt=bd(Nt,_.fh.v*F[0]):Nt=bd(Nt,_.fh.v*F)),_.fs.propType&&(F.length?Nt=vd(Nt,_.fs.v*F[0]):Nt=vd(Nt,_.fs.v*F)),_.fb.propType&&(F.length?Nt=gd(Nt,_.fb.v*F[0]):Nt=gd(Nt,_.fb.v*F))}}for(p=0;p<g;p+=1)_=a[p].a,_.p.propType&&(R=a[p].s,F=R.getMult(y[w].anIndexes[p],d.a[p].s.totalChars),this._hasMaskedPath?F.length?c.translate(0,_.p.v[1]*F[0],-_.p.v[2]*F[1]):c.translate(0,_.p.v[1]*F,-_.p.v[2]*F):F.length?c.translate(_.p.v[0]*F[0],_.p.v[1]*F[1],-_.p.v[2]*F[2]):c.translate(_.p.v[0]*F,_.p.v[1]*F,-_.p.v[2]*F));if(t.strokeWidthAnim&&(_r=Me<0?0:Me),t.strokeColorAnim&&(Xr="rgb("+Math.round(ie[0]*255)+","+Math.round(ie[1]*255)+","+Math.round(ie[2]*255)+")"),t.fillColorAnim&&t.fc&&(Sr="rgb("+Math.round(Nt[0]*255)+","+Math.round(Nt[1]*255)+","+Math.round(Nt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-t.ls),c.translate(0,i[1]*st*.01+I,0),this._pathData.p.v){ut=(M.point[1]-A.point[1])/(M.point[0]-A.point[0]);var Ei=Math.atan(ut)*180/Math.PI;M.point[0]<A.point[0]&&(Ei+=180),c.rotate(-Ei*Math.PI/180)}c.translate(ft,Ct,0),P-=i[0]*y[w].an*.005,y[w+1]&&rt!==y[w+1].ind&&(P+=y[w].an/2,P+=t.tr*.001*t.finalSize)}else{switch(c.translate(f,I,0),t.ps&&c.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:c.translate(y[w].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[y[w].line]),0,0);break;case 2:c.translate(y[w].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[y[w].line])/2,0,0);break;default:break}c.translate(0,-t.ls),c.translate(mt,0,0),c.translate(i[0]*y[w].an*.005,i[1]*st*.01,0),f+=y[w].l+t.tr*.001*t.finalSize}u==="html"?ur=c.toCSS():u==="svg"?ur=c.to2dCSS():Ir=[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]],kr=_e}x<=w?(U=new ml(kr,_r,Xr,Sr,ur,Ir),this.renderedLetters.push(U),x+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[w],this.lettersChangedFlag=U.update(kr,_r,Xr,Sr,ur,Ir)||this.lettersChangedFlag)}}},yi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},yi.prototype.mHelper=new ne,yi.prototype.defaultPropsArray=[],$([re],yi);function Ve(){}Ve.prototype.initElement=function(t,r,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,r,i),this.textProperty=new pe(this,t.t,this.dynamicProperties),this.textAnimator=new yi(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)},Ve.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},Ve.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+=sh(d,d.i.length,!0,t));return c},Ve.prototype.updateDocumentData=function(t,r){this.textProperty.updateDocumentData(t,r)},Ve.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},Ve.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},Ve.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)},Ve.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"},Ve.prototype.emptyProp=new ml,Ve.prototype.destroy=function(){},Ve.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var lv={shapes:[]};function xr(t,r,i){this.textSpans=[],this.renderType="svg",this.initElement(t,r,i)}$([Wr,no,cs,lo,Yr,ds,Ve],xr),xr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=vt("text"))},xr.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},xr.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},xr.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,r,i=this.textProperty.currentData;this.renderedLetters=tt(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 u=i.l||[],x=!!this.globalData.fontManager.chars;r=u.length;var f,I=this.mHelper,w="",B=this.data.singleShape,y=0,N=0,P=!0,M=i.tr*.001*i.finalSize;if(B&&!x&&!i.sz){var z=this.textContainer,C="start";switch(i.j){case 1:C="end";break;case 2:C="middle";break;default:C="start";break}z.setAttribute("text-anchor",C),z.setAttribute("letter-spacing",M);var S=this.buildTextContents(i.finalText);for(r=S.length,N=i.ps?i.ps[1]+i.ascent:0,t=0;t<r;t+=1)f=this.textSpans[t].span||vt("tspan"),f.textContent=S[t],f.setAttribute("x",0),f.setAttribute("y",N),f.style.display="inherit",z.appendChild(f),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=f,N+=i.finalLineHeight;this.layerElement.appendChild(z)}else{var b=this.textSpans.length,A;for(t=0;t<r;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!x||!B||t===0){if(f=b>t?this.textSpans[t].span:vt(x?"g":"text"),b<=t){if(f.setAttribute("stroke-linecap","butt"),f.setAttribute("stroke-linejoin","round"),f.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=f,x){var k=vt("g");f.appendChild(k),this.textSpans[t].childSpan=k}this.textSpans[t].span=f,this.layerElement.appendChild(f)}f.style.display="inherit"}if(I.reset(),B&&(u[t].n&&(y=-M,N+=i.yOffset,N+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(i,I,u[t].line,y,N),y+=u[t].l||0,y+=M),x){A=this.globalData.fontManager.getCharData(i.finalText[t],a.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var D;if(A.t===1)D=new ms(A.data,this.globalData,this);else{var V=lv;A.data&&A.data.shapes&&(V=this.buildShapeData(A.data,i.finalSize)),D=new Ht(V,this.globalData,this)}if(this.textSpans[t].glyph){var G=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(G.layerElement),G.destroy()}this.textSpans[t].glyph=D,D._debug=!0,D.prepareFrame(0),D.renderFrame(),this.textSpans[t].childSpan.appendChild(D.layerElement),A.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else B&&f.setAttribute("transform","translate("+I.props[12]+","+I.props[13]+")"),f.textContent=u[t].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}B&&f&&f.setAttribute("d",w)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},xr.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},xr.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))},xr.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,u;for(t=0;t<r;t+=1)a[t].n||(d=i[t],c=this.textSpans[t].span,u=this.textSpans[t].glyph,u&&u.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 ul(t,r,i){this.initElement(t,r,i)}$([hs],ul),ul.prototype.createContent=function(){var t=vt("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function Kr(t,r,i){this.initFrame(),this.initBaseData(t,r,i),this.initFrame(),this.initTransform(t,r,i),this.initHierarchy()}Kr.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},Kr.prototype.renderFrame=function(){},Kr.prototype.getBaseElement=function(){return null},Kr.prototype.destroy=function(){},Kr.prototype.sourceRectAtTime=function(){},Kr.prototype.hide=function(){},$([Wr,no,lo,Yr],Kr);function Jt(){}$([le],Jt),Jt.prototype.createNull=function(t){return new Kr(t,this.globalData,this)},Jt.prototype.createShape=function(t){return new Ht(t,this.globalData,this)},Jt.prototype.createText=function(t){return new xr(t,this.globalData,this)},Jt.prototype.createImage=function(t){return new hs(t,this.globalData,this)},Jt.prototype.createSolid=function(t){return new ul(t,this.globalData,this)},Jt.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=vt("clipPath"),a=vt("rect");a.setAttribute("width",t.w),a.setAttribute("height",t.h),a.setAttribute("x",0),a.setAttribute("y",0);var d=Te();i.setAttribute("id",d),i.appendChild(a),this.layerElement.setAttribute("clip-path","url("+T()+"#"+d+")"),r.appendChild(i),this.layers=t.layers,this.elements=tt(t.layers.length)},Jt.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},Jt.prototype.updateContainerSize=function(){},Jt.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},Jt.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,na()&&(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)}}}},Jt.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}}},Jt.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()}},Jt.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)}},Jt.prototype.hide=function(){this.layerElement.style.display="none"},Jt.prototype.show=function(){this.layerElement.style.display="block"};function Ar(){}$([Wr,no,lo,Yr,ds],Ar),Ar.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()},Ar.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))}},Ar.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()},Ar.prototype.setElements=function(t){this.elements=t},Ar.prototype.getElements=function(){return this.elements},Ar.prototype.destroyElements=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy()},Ar.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function ms(t,r,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(t,r,i),this.tm=t.tm?et.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0}}$([Jt,Ar,cs],ms),ms.prototype.createComp=function(t){return new ms(t,this.globalData,this)};function fl(t,r){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=vt("svg");var i="";if(r&&r.title){var a=vt("title"),d=Te();a.setAttribute("id",d),a.textContent=r.title,this.svgElement.appendChild(a),i+=d}if(r&&r.description){var c=vt("desc"),u=Te();c.setAttribute("id",u),c.textContent=r.description,this.svgElement.appendChild(c),i+=" "+u}i&&this.svgElement.setAttribute("aria-labelledby",i);var x=vt("defs");this.svgElement.appendChild(x);var f=vt("g");this.svgElement.appendChild(f),this.layerElement=f,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 $([Jt],fl),fl.prototype.createComp=function(t){return new ms(t,this.globalData,this)},bf("svg",fl),Hr.registerModifier("tm",tr),Hr.registerModifier("pb",rs),Hr.registerModifier("rp",pr),Hr.registerModifier("rd",is),Hr.registerModifier("zz",ss),Hr.registerModifier("op",as),Lt})});var Ia=globalThis,ka=Ia.ShadowRoot&&(Ia.ShadyCSS===void 0||Ia.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gl=Symbol(),nh=new WeakMap,us=class{constructor(o,e,s){if(this._$cssResult$=!0,s!==gl)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(ka&&o===void 0){let s=e!==void 0&&e.length===1;s&&(o=nh.get(e)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),s&&nh.set(e,o))}return o}toString(){return this.cssText}},lh=l=>new us(typeof l=="string"?l:l+"",void 0,gl),H=(l,...o)=>{let e=l.length===1?l[0]:o.reduce((s,n,h)=>s+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+l[h+1],l[0]);return new us(e,l,gl)},bl=(l,o)=>{if(ka)l.adoptedStyleSheets=o.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of o){let s=document.createElement("style"),n=Ia.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,l.appendChild(s)}},Ca=ka?l=>l:l=>l instanceof CSSStyleSheet?(o=>{let e="";for(let s of o.cssRules)e+=s.cssText;return lh(e)})(l):l;var{is:vv,defineProperty:gv,getOwnPropertyDescriptor:bv,getOwnPropertyNames:yv,getOwnPropertySymbols:Ev,getPrototypeOf:Tv}=Object,ti=globalThis,ch=ti.trustedTypes,xv=ch?ch.emptyScript:"",yl=ti.reactiveElementPolyfillSupport,fs=(l,o)=>l,vs={toAttribute(l,o){switch(o){case Boolean:l=l?xv: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}},wa=(l,o)=>!vv(l,o),dh={attribute:!0,type:String,converter:vs,reflect:!1,hasChanged:wa},hh,ph;(hh=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ph=ti.litPropertyMetadata)!=null||(ti.litPropertyMetadata=new WeakMap);var Cr=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=dh){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&&gv(this.prototype,o,n)}}static getPropertyDescriptor(o,e,s){var m;let{get:n,set:h}=(m=bv(this.prototype,o))!=null?m:{get(){return this[e]},set(T){this[e]=T}};return{get(){return n==null?void 0:n.call(this)},set(T){let L=n==null?void 0:n.call(this);h.call(this,T),this.requestUpdate(o,L,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var e;return(e=this.elementProperties.get(o))!=null?e:dh}static _$Ei(){if(this.hasOwnProperty(fs("elementProperties")))return;let o=Tv(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(fs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fs("properties"))){let e=this.properties,s=[...yv(e),...Ev(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(Ca(n))}else o!==void 0&&e.push(Ca(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 bl(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 m=(((h=s.converter)==null?void 0:h.toAttribute)!==void 0?s.converter:vs).toAttribute(e,s.type);this._$Em=o,m==null?this.removeAttribute(n):this.setAttribute(n,m),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 m=s.getPropertyOptions(n),T=typeof m.converter=="function"?{fromAttribute:m.converter}:((h=m.converter)==null?void 0:h.fromAttribute)!==void 0?m.converter:vs;this._$Em=n,this[n]=T.fromAttribute(e,m.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:wa)(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[m,T]of this._$Ep)this[m]=T;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[m,T]of h)T.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],T)}let o=!1,e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(h=>{var m;return(m=h.hostUpdate)==null?void 0:m.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){}},mh;Cr.elementStyles=[],Cr.shadowRootOptions={mode:"open"},Cr[fs("elementProperties")]=new Map,Cr[fs("finalized")]=new Map,yl==null||yl({ReactiveElement:Cr}),((mh=ti.reactiveElementVersions)!=null?mh:ti.reactiveElementVersions=[]).push("2.0.4");var bs=globalThis,La=bs.trustedTypes,uh=La?La.createPolicy("lit-html",{createHTML:l=>l}):void 0,xl="$lit$",wr=`lit$${Math.random().toFixed(9).slice(2)}$`,Al="?"+wr,Av=`<${Al}>`,Ai=document,ys=()=>Ai.createComment(""),Es=l=>l===null||typeof l!="object"&&typeof l!="function",_l=Array.isArray,Th=l=>_l(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",El=`[
|
3
|
+
\f\r]`,gs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fh=/-->/g,vh=/>/g,Ti=RegExp(`>|${El}(?:([^\\s"'>=/]+)(${El}*=${El}*(?:[^
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),gh=/'/g,bh=/"/g,xh=/^(?:script|style|textarea|title)$/i,Sl=l=>(o,...e)=>({_$litType$:l,strings:o,values:e}),O=Sl(1),Xy=Sl(2),Zy=Sl(3),Lr=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),yh=new WeakMap,xi=Ai.createTreeWalker(Ai,129);function Ah(l,o){if(!_l(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return uh!==void 0?uh.createHTML(o):o}var _h=(l,o)=>{let e=l.length-1,s=[],n,h=o===2?"<svg>":o===3?"<math>":"",m=gs;for(let T=0;T<e;T++){let L=l[T],$,W,K=-1,ot=0;for(;ot<L.length&&(m.lastIndex=ot,W=m.exec(L),W!==null);)ot=m.lastIndex,m===gs?W[1]==="!--"?m=fh:W[1]!==void 0?m=vh:W[2]!==void 0?(xh.test(W[2])&&(n=RegExp("</"+W[2],"g")),m=Ti):W[3]!==void 0&&(m=Ti):m===Ti?W[0]===">"?(m=n!=null?n:gs,K=-1):W[1]===void 0?K=-2:(K=m.lastIndex-W[2].length,$=W[1],m=W[3]===void 0?Ti:W[3]==='"'?bh:gh):m===bh||m===gh?m=Ti:m===fh||m===vh?m=gs:(m=Ti,n=void 0);let J=m===Ti&&l[T+1].startsWith("/>")?" ":"";h+=m===gs?L+Av:K>=0?(s.push($),L.slice(0,K)+xl+L.slice(K)+wr+J):L+wr+(K===-2?T:J)}return[Ah(l,h+(l[e]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),s]},Ts=class l{constructor({strings:o,_$litType$:e},s){let n;this.parts=[];let h=0,m=0,T=o.length-1,L=this.parts,[$,W]=_h(o,e);if(this.el=l.createElement($,s),xi.currentNode=this.el.content,e===2||e===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(n=xi.nextNode())!==null&&L.length<T;){if(n.nodeType===1){if(n.hasAttributes())for(let K of n.getAttributeNames())if(K.endsWith(xl)){let ot=W[m++],J=n.getAttribute(K).split(wr),tt=/([.?@])?(.*)/.exec(ot);L.push({type:1,index:h,name:tt[2],strings:J,ctor:tt[1]==="."?Ma:tt[1]==="?"?Ra:tt[1]==="@"?Oa:Si}),n.removeAttribute(K)}else K.startsWith(wr)&&(L.push({type:6,index:h}),n.removeAttribute(K));if(xh.test(n.tagName)){let K=n.textContent.split(wr),ot=K.length-1;if(ot>0){n.textContent=La?La.emptyScript:"";for(let J=0;J<ot;J++)n.append(K[J],ys()),xi.nextNode(),L.push({type:2,index:++h});n.append(K[ot],ys())}}}else if(n.nodeType===8)if(n.data===Al)L.push({type:2,index:h});else{let K=-1;for(;(K=n.data.indexOf(wr,K+1))!==-1;)L.push({type:7,index:h}),K+=wr.length-1}h++}}static createElement(o,e){let s=Ai.createElement("template");return s.innerHTML=o,s}};function _i(l,o,e=l,s){var m,T,L;if(o===Lr)return o;let n=s!==void 0?(m=e.o)==null?void 0:m[s]:e.l,h=Es(o)?void 0:o._$litDirective$;return(n==null?void 0:n.constructor)!==h&&((T=n==null?void 0:n._$AO)==null||T.call(n,!1),h===void 0?n=void 0:(n=new h(l),n._$AT(l,e,s)),s!==void 0?((L=e.o)!=null?L:e.o=[])[s]=n:e.l=n),n!==void 0&&(o=_i(l,n._$AS(l,o.values),n,s)),o}var Na=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 $;let{el:{content:e},parts:s}=this._$AD,n=(($=o==null?void 0:o.creationScope)!=null?$:Ai).importNode(e,!0);xi.currentNode=n;let h=xi.nextNode(),m=0,T=0,L=s[0];for(;L!==void 0;){if(m===L.index){let W;L.type===2?W=new ho(h,h.nextSibling,this,o):L.type===1?W=new L.ctor(h,L.name,L.strings,this,o):L.type===6&&(W=new Pa(h,this,o)),this._$AV.push(W),L=s[++T]}m!==(L==null?void 0:L.index)&&(h=xi.nextNode(),m++)}return xi.currentNode=Ai,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++}},ho=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=Y,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=_i(this,o,e),Es(o)?o===Y||o==null||o===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):o!==this._$AH&&o!==Lr&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Th(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!==Y&&Es(this._$AH)?this._$AA.nextSibling.data=o:this.T(Ai.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=Ts.createElement(Ah(s.h,s.h[0]),this.options)),s);if(((h=this._$AH)==null?void 0:h._$AD)===n)this._$AH.p(e);else{let m=new Na(n,this),T=m.u(this.options);m.p(e),this.T(T),this._$AH=m}}_$AC(o){let e=yh.get(o.strings);return e===void 0&&yh.set(o.strings,e=new Ts(o)),e}k(o){_l(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(ys()),this.O(ys()),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))}},Si=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,e,s,n,h){this.type=1,this._$AH=Y,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=Y}_$AI(o,e=this,s,n){let h=this.strings,m=!1;if(h===void 0)o=_i(this,o,e,0),m=!Es(o)||o!==this._$AH&&o!==Lr,m&&(this._$AH=o);else{let T=o,L,$;for(o=h[0],L=0;L<h.length-1;L++)$=_i(this,T[s+L],e,L),$===Lr&&($=this._$AH[L]),m||(m=!Es($)||$!==this._$AH[L]),$===Y?o=Y:o!==Y&&(o+=($!=null?$:"")+h[L+1]),this._$AH[L]=$}m&&!n&&this.j(o)}j(o){o===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Ma=class extends Si{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===Y?void 0:o}},Ra=class extends Si{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==Y)}},Oa=class extends Si{constructor(o,e,s,n,h){super(o,e,s,n,h),this.type=5}_$AI(o,e=this){var m;if((o=(m=_i(this,o,e,0))!=null?m:Y)===Lr)return;let s=this._$AH,n=o===Y&&s!==Y||o.capture!==s.capture||o.once!==s.once||o.passive!==s.passive,h=o!==Y&&(s===Y||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)}},Pa=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){_i(this,o)}},Sh={M:xl,P:wr,A:Al,C:1,L:_h,R:Na,D:Th,V:_i,I:ho,H:Si,N:Ra,U:Oa,B:Ma,F:Pa},Tl=bs.litHtmlPolyfillSupport,Eh;Tl==null||Tl(Ts,ho),((Eh=bs.litHtmlVersions)!=null?Eh:bs.litHtmlVersions=[]).push("3.2.0");var Ih=(l,o,e)=>{var h,m;let s=(h=e==null?void 0:e.renderBefore)!=null?h:o,n=s._$litPart$;if(n===void 0){let T=(m=e==null?void 0:e.renderBefore)!=null?m:null;s._$litPart$=n=new ho(o.insertBefore(ys(),T),T,void 0,e!=null?e:{})}return n._$AI(l),n};var ei=class extends Cr{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=Ih(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 Lr}},kh;ei._$litElement$=!0,ei.finalized=!0,(kh=globalThis.litElementHydrateSupport)==null||kh.call(globalThis,{LitElement:ei});var Il=globalThis.litElementPolyfillSupport;Il==null||Il({LitElement:ei});var Ch;((Ch=globalThis.litElementVersions)!=null?Ch:globalThis.litElementVersions=[]).push("4.1.0");var _v={attribute:!0,type:String,converter:vs,reflect:!1,hasChanged:wa},Sv=(l=_v,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:m}=e;return{set(T){let L=o.get.call(this);o.set.call(this,T),this.requestUpdate(m,L,l)},init(T){return T!==void 0&&this.P(m,void 0,l),T}}}if(s==="setter"){let{name:m}=e;return function(T){let L=this[m];o.call(this,T),this.requestUpdate(m,L,l)}}throw Error("Unsupported decorator location: "+s)};function E(l){return(o,e)=>typeof e=="object"?Sv(l,o,e):((s,n,h)=>{let m=n.hasOwnProperty(h);return n.constructor.createProperty(h,m?{...s,wrapped:!0}:s),m?Object.getOwnPropertyDescriptor(n,h):void 0})(l,o,e)}function _t(l){return E({...l,state:!0,attribute:!1})}var Nr=(l,o,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(l,o,e),e);function Mr(l,o){return(e,s,n)=>{let h=m=>{var T,L;return(L=(T=m.renderRoot)==null?void 0:T.querySelector(l))!=null?L:null};if(o){let{get:m,set:T}=typeof s=="object"?e:n!=null?n:(()=>{let L=Symbol();return{get(){return this[L]},set($){this[L]=$}}})();return Nr(e,s,{get(){let L=m.call(this);return L===void 0&&(L=h(this),(L!==null||this.hasUpdated)&&T.call(this,L)),L}})}return Nr(e,s,{get(){return h(this)}})}}function Bt(l){return(o,e)=>{let{slot:s,selector:n}=l!=null?l:{},h="slot"+(s?`[name=${s}]`:":not([name])");return Nr(o,e,{get(){var L,$;let m=(L=this.renderRoot)==null?void 0:L.querySelector(h),T=($=m==null?void 0:m.assignedElements(l))!=null?$:[];return n===void 0?T:T.filter(W=>W.matches(n))}})}}function Da(l){return(o,e)=>{let{slot:s}=l!=null?l:{},n="slot"+(s?`[name=${s}]`:":not([name])");return Nr(o,e,{get(){var m,T;let h=(m=this.renderRoot)==null?void 0:m.querySelector(n);return(T=h==null?void 0:h.assignedNodes(l))!=null?T:[]}})}}var wh=H`
|
5
5
|
:host {
|
6
6
|
box-sizing: border-box;
|
7
7
|
}
|
@@ -11,11 +11,11 @@
|
|
11
11
|
:host *::after {
|
12
12
|
box-sizing: inherit;
|
13
13
|
}
|
14
|
-
`;var Fa=class extends
|
14
|
+
`;var Fa=class extends ei{static register(o){customElements.get(o)||customElements.define(o,this)}};Fa.styles=[wh];var Lh=Fa;var q=Lh;var ri=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 po=class{constructor(o,e,s,n){var h;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(m,T)=>{this.unsubscribe&&(this.unsubscribe!==T&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=m,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(m,T)),this.unsubscribe=T},this.host=o,e.context!==void 0){let m=e;this.context=m.context,this.callback=m.callback,this.subscribe=(h=m.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 ri(this.context,this.t,this.subscribe))}};var $a=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 kl=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},mo=class extends $a{constructor(o,e,s){var n,h;super(e.context!==void 0?e.initialValue:s),this.onContextRequest=m=>{let T=m.composedPath()[0];m.context===this.context&&T!==this.host&&(m.stopPropagation(),this.addCallback(m.callback,T,m.subscribe))},this.onProviderRequest=m=>{let T=m.composedPath()[0];if(m.context!==this.context||T===this.host)return;let L=new Set;for(let[$,{consumerHost:W}]of this.subscriptions)L.has($)||(L.add($),W.dispatchEvent(new ri(this.context,$,!0)));m.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 kl(this.context))}};var Iv=H`
|
15
15
|
:host {
|
16
16
|
display: contents;
|
17
17
|
}
|
18
|
-
`,
|
18
|
+
`,Nh=Iv;var za=class extends q{constructor({context:o,initialValue:e}){super(),this.context=new mo(this,{context:o,initialValue:e})}render(){return this.updateContext(),O`<slot></slot>`}};za.styles=[...q.styles,Nh];var Mh=za;var ii=Mh;var $t=l=>{class o extends l{}return v([E({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var fr=l=>{class o extends l{constructor(){super(...arguments);this.tabIndex=0}}return v([E({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Rh=l=>{class o extends l{constructor(){super(...arguments);this.autofocus=!1}firstUpdated(n){super.firstUpdated(n),this.autofocus&&this.focus()}}return v([E({type:Boolean,reflect:!0})],o.prototype,"autofocus",2),o};var kv={PREFIX:"mdc",SEPARATOR:"-"},Cv={NAMESPACE:kv},wl=Cv;var wv=l=>[wl.NAMESPACE.PREFIX,l].join(wl.NAMESPACE.SEPARATOR),j={constructTagName:wv};var UE=j.constructTagName("buttonsimple"),Ii={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},uo={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},xs={SIZE:Ii[32],TYPE:uo.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var Et=H`
|
19
19
|
:host {
|
20
20
|
align-items: center;
|
21
21
|
display: flex;
|
@@ -78,7 +78,7 @@
|
|
78
78
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
79
79
|
}
|
80
80
|
}
|
81
|
-
`]};var
|
81
|
+
`]};var Lv=[Et,H`
|
82
82
|
:host {
|
83
83
|
border: 0.0625rem solid transparent;
|
84
84
|
cursor: pointer;
|
@@ -136,7 +136,7 @@
|
|
136
136
|
:host([size='20']) {
|
137
137
|
height: var(--mdc-button-height-size-20);
|
138
138
|
}
|
139
|
-
`,...St()],
|
139
|
+
`,...St()],Oh=Lv;var ir=class extends Rh(fr($t(q))){constructor(){super();this.size=xs.SIZE;this.role=xs.ROLE;this.type=xs.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||xs.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===uo.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===uo.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 O` <slot></slot> `}};ir.formAssociated=!0,ir.styles=[...q.styles,...Oh],v([E({type:Boolean,reflect:!0})],ir.prototype,"active",2),v([E({type:Boolean,attribute:"soft-disabled",reflect:!0})],ir.prototype,"softDisabled",2),v([E({type:Number,reflect:!0})],ir.prototype,"size",2),v([E({type:String,reflect:!0})],ir.prototype,"role",2),v([E({type:String,reflect:!0})],ir.prototype,"ariaStateKey",2),v([E({reflect:!0})],ir.prototype,"type",2);var Ie=ir;var Nv=H`
|
140
140
|
:host {
|
141
141
|
height: 1.5rem;
|
142
142
|
gap: 0.25rem;
|
@@ -238,10 +238,10 @@
|
|
238
238
|
:host([variant='informational']:active) {
|
239
239
|
--mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
|
240
240
|
}
|
241
|
-
`,
|
242
|
-
<mdc-icon part="icon" name="${
|
241
|
+
`,Ph=[Et,Nv,...St()];var As=j.constructTagName("text"),it={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"},bt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Re={TYPE:it.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:bt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Dh=j.constructTagName("alertchip"),ki={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},fo={VARIANT:ki.NEUTRAL,TEXT_TYPE:it.BODY_MIDSIZE_REGULAR,TAG_NAME:bt.SPAN,SIZE:Ii[24],ROLE:"button"};var Fh=l=>({[ki.ERROR]:"error-legacy-badge-filled",[ki.WARNING]:"warning-badge-filled",[ki.SUCCESS]:"check-circle-badge-filled",[ki.INFORMATIONAL]:"info-badge-filled",[ki.NEUTRAL]:"dnd-presence-badge-filled"})[l];var vo=class extends Ie{constructor(){super(...arguments);this.variant=fo.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=fo.SIZE,this.role=fo.ROLE}render(){return O`
|
242
|
+
<mdc-icon part="icon" name="${Fh(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
243
243
|
<mdc-text part="label" type="${fo.TEXT_TYPE}" tagname="${fo.TAG_NAME}">${this.label}</mdc-text>
|
244
|
-
`}};vo.styles=[...q.styles,...
|
244
|
+
`}};vo.styles=[...q.styles,...Ph],v([E({type:String})],vo.prototype,"variant",2),v([E({type:String})],vo.prototype,"label",2);var Ll=vo;var $h=H`
|
245
245
|
:host::part(text) {
|
246
246
|
font-size: unset;
|
247
247
|
font-weight: unset;
|
@@ -484,14 +484,14 @@
|
|
484
484
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
485
485
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
486
486
|
}
|
487
|
-
`;var
|
487
|
+
`;var Mv=[H`
|
488
488
|
:host {
|
489
489
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
490
490
|
|
491
491
|
display: block;
|
492
492
|
font-family: var(--mdc-text-font-family);
|
493
493
|
}
|
494
|
-
|
494
|
+
`,$h],zh=Mv;var go=class extends q{constructor(){super(...arguments);this.type=Re.TYPE;this.tagname=Re.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case bt.H1:return O`<h1 part=${Re.CSS_PART_TEXT}><slot></slot></h1>`;case bt.H2:return O`<h2 part=${Re.CSS_PART_TEXT}><slot></slot></h2>`;case bt.H3:return O`<h3 part=${Re.CSS_PART_TEXT}><slot></slot></h3>`;case bt.H4:return O`<h4 part=${Re.CSS_PART_TEXT}><slot></slot></h4>`;case bt.H5:return O`<h5 part=${Re.CSS_PART_TEXT}><slot></slot></h5>`;case bt.H6:return O`<h6 part=${Re.CSS_PART_TEXT}><slot></slot></h6>`;case bt.DIV:return O`<div part=${Re.CSS_PART_TEXT}><slot></slot></div>`;case bt.SPAN:return O`<span part=${Re.CSS_PART_TEXT}><slot></slot></span>`;case bt.SMALL:return O`<small part=${Re.CSS_PART_TEXT}><slot></slot></small>`;case bt.P:default:return O`<p part=${Re.CSS_PART_TEXT}><slot></slot></p>`}}};go.styles=[...q.styles,...zh],v([E({attribute:"type",reflect:!0,type:String})],go.prototype,"type",2),v([E({attribute:"tagname",reflect:!0,type:String})],go.prototype,"tagname",2);var Nl=go;Nl.register(As);var Rv=Nl;var Ov=l=>{let{host:o,context:e,subscribe:s}=l;return new po(o,{context:e,subscribe:s!=null?s:!0})},Pv={consume:Ov},bo=Pv;var Ba=j.constructTagName("iconprovider"),Vh=["svg"],Bh=["em","rem","px","%"],Dv={px:16,em:1,rem:1,"%":100},Rr={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Dv.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Ua=class{};Ua.context=Ba;var Ga=Ua;var vr=class extends ii{constructor(){super({context:Ga.context,initialValue:new Ga});this.iconSet=Rr.ICON_SET;this.fileExtension=Rr.FILE_EXTENSION;this.lengthUnit=Rr.LENGTH_UNIT;this.size=Rr.SIZE}static get Context(){return Ga.context}updateValuesInContext(){this.fileExtension&&Vh.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Rr.FILE_EXTENSION,this.context.value.fileExtension=Rr.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&&Bh.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Rr.LENGTH_UNIT,this.context.value.lengthUnit=Rr.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())}};v([E({type:String,attribute:"icon-set",reflect:!0})],vr.prototype,"iconSet",2),v([E({type:String})],vr.prototype,"url",2),v([E({type:String,attribute:"file-extension",reflect:!0})],vr.prototype,"fileExtension",2),v([E({type:String,attribute:"length-unit",reflect:!0})],vr.prototype,"lengthUnit",2),v([E({type:Number,reflect:!0})],vr.prototype,"size",2),v([E({type:String,attribute:"cache-strategy"})],vr.prototype,"cacheStrategy",2),v([E({type:String,attribute:"cache-name"})],vr.prototype,"cacheName",2);var _s=vr;var Fv=[Et,H`
|
495
495
|
:host {
|
496
496
|
--mdc-icon-fill-color: currentColor;
|
497
497
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -506,11 +506,11 @@
|
|
506
506
|
width: 100%;
|
507
507
|
fill: var(--mdc-icon-fill-color);
|
508
508
|
}
|
509
|
-
`,...St()],Gh=Ov;var Ss={},Hh=async l=>(Ss[l]===void 0&&(Ss[l]=new Map),{async set(o,e){Ss[l].set(o.url,await e.text())},async get(o){return Ss[l].get(o.url)},async delete(o){Ss[l].delete(o.url)}}),jh=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)}}},Wh=async(l,o)=>o==="in-memory-cache"?Hh(l):jh(l);var Yh=async l=>fetch(l).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),qh=async({url:l,name:o,fileExtension:e,cacheStrategy:s,cacheName:n,renewSignal:h})=>{let p=h(),T=new Request(`${l}/${o}.${e}`,{signal:p});return!n||!s||!["in-memory-cache","web-cache-api"].includes(s)?Yh(T).then(L=>L.text()):Wh(n,s).then(L=>L.get(T).then($=>$||Yh(T.clone()).then(W=>{var K;return W.status<400&&W.headers.has("content-type")?(K=L.set)==null?void 0:K.call(L,T,W.clone()).then(()=>W.text()):W.text()})).catch($=>{throw new Error(`Error in caching the Icon ${o}, ${$}`)}))};var Kh=j.constructTagName("icon"),Ml={NAME:void 0,SIZE:1};var Pe=class extends q{constructor(){super();this.name=Ml.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=bo.consume({host:this,context:_s.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:p,cacheStrategy:T}=this.iconProviderContext.value;if(p==="custom-icons"&&n&&s&&this.name){let L=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return qh({url:n,name:this.name,fileExtension:s,cacheName:h,cacheStrategy:T,renewSignal:L}).then($=>{let W=this.prepareIconElement($);this.handleIconLoadedSuccess(W)}).catch($=>{this.handleIconLoadedFailure($)})}if(p==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(L=>{this.handleIconLoadedSuccess(L.default())}).catch(L=>{this.handleIconLoadedFailure(L)})}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:Ml.SIZE}updated(e){var s,n,h,p;super.updated(e),e.has("name")&&this.getIconData().catch(T=>{T.name!=="AbortError"&&this.onerror&&this.onerror(T)}),(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=(p=this.iconProviderContext.value)==null?void 0:p.size,this.updateSize())}render(){return O` ${this.iconData} `}};Pe.styles=[...q.styles,...Gh],v([_t()],Pe.prototype,"iconData",2),v([_t()],Pe.prototype,"lengthUnitFromContext",2),v([_t()],Pe.prototype,"sizeFromContext",2),v([E({type:String,reflect:!0})],Pe.prototype,"name",2),v([E({type:Number})],Pe.prototype,"size",2),v([E({type:String,attribute:"length-unit"})],Pe.prototype,"lengthUnit",2),v([E({type:String,attribute:"aria-label"})],Pe.prototype,"ariaLabel",2),v([E({type:String,attribute:"aria-labelledby"})],Pe.prototype,"ariaLabelledBy",2),v([_t()],Pe.prototype,"abortController",2);var Rl=Pe;Rl.register(Kh);var Pv=Rl;Ll.register(Fh);var Dv=Ll;var{I:Ix}=Ih;var Xh=l=>l.strings===void 0;var Ha={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Is=l=>(...o)=>({_$litDirective$:l,values:o}),yo=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 ks=(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),ks(n,o);return!0},ja=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)},Zh=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),zv(o)}};function Fv(l){this._$AN!==void 0?(ja(this),this._$AM=l,Zh(this)):this._$AM=l}function $v(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++)ks(s[h],!1),ja(s[h]);else s!=null&&(ks(s,!1),ja(s));else ks(this,l)}var zv=l=>{var o,e;l.type==Ha.CHILD&&((o=l._$AP)!=null||(l._$AP=$v),(e=l._$AQ)!=null||(l._$AQ=Fv))},Wa=class extends yo{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,e,s){super._$AT(o,e,s),Zh(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&&(ks(this,o),ja(this))}setValue(o){if(Xh(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 Ya=()=>new Pl,Pl=class{},Ol=new WeakMap,qa=Is(class extends Wa{render(l){return Y}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)),Y}rt(l){var o;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let e=(o=this.ht)!=null?o:globalThis,s=Ol.get(e);s===void 0&&(s=new WeakMap,Ol.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=Ol.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 em=mv(Jh());var Dl={audio_video:"./lottie/audio_video.json",calling:"./lottie/calling.json",alert_32px_loop:"./lottie/cisco-ai-assistant/alert_32px_loop.json",hello_32px:"./lottie/cisco-ai-assistant/hello_32px.json",processing_32px_end:"./lottie/cisco-ai-assistant/processing_32px_end.json",processing_32px_loop:"./lottie/cisco-ai-assistant/processing_32px_loop.json",processing_32px_start:"./lottie/cisco-ai-assistant/processing_32px_start.json",responding_32px_end:"./lottie/cisco-ai-assistant/responding_32px_end.json",responding_32px_loop:"./lottie/cisco-ai-assistant/responding_32px_loop.json",responding_32px_start:"./lottie/cisco-ai-assistant/responding_32px_start.json",contacts:"./lottie/contacts.json",discoverability_badge:"./lottie/discoverability_badge.json",heart_opacity_test:"./lottie/heart_opacity_test.json",meeting:"./lottie/meeting.json",personal_insight:"./lottie/personal_insight.json",celebrate:"./lottie/reactions/celebrate.json",clap_dark:"./lottie/reactions/clap_dark.json",clap_light:"./lottie/reactions/clap_light.json",clap_medium_dark:"./lottie/reactions/clap_medium_dark.json",clap_medium_light:"./lottie/reactions/clap_medium_light.json",clap_medium:"./lottie/reactions/clap_medium.json",clap_yellow:"./lottie/reactions/clap_yellow.json",fire:"./lottie/reactions/fire.json",haha:"./lottie/reactions/haha.json",heart:"./lottie/reactions/heart.json",on_video_celebrate:"./lottie/reactions/on_video/on_video_celebrate.json",on_video_clap_dark:"./lottie/reactions/on_video/on_video_clap_dark.json",on_video_clap_light:"./lottie/reactions/on_video/on_video_clap_light.json",on_video_clap_medium_dark:"./lottie/reactions/on_video/on_video_clap_medium_dark.json",on_video_clap_medium_light:"./lottie/reactions/on_video/on_video_clap_medium_light.json",on_video_clap_medium:"./lottie/reactions/on_video/on_video_clap_medium.json",on_video_clap_yellow:"./lottie/reactions/on_video/on_video_clap_yellow.json",on_video_fire:"./lottie/reactions/on_video/on_video_fire.json",on_video_haha:"./lottie/reactions/on_video/on_video_haha.json",on_video_heart:"./lottie/reactions/on_video/on_video_heart.json",on_video_prayer_dark:"./lottie/reactions/on_video/on_video_prayer_dark.json",on_video_prayer_light:"./lottie/reactions/on_video/on_video_prayer_light.json",on_video_prayer_medium_dark:"./lottie/reactions/on_video/on_video_prayer_medium_dark.json",on_video_prayer_medium_light:"./lottie/reactions/on_video/on_video_prayer_medium_light.json",on_video_prayer_medium:"./lottie/reactions/on_video/on_video_prayer_medium.json",on_video_prayer_yellow:"./lottie/reactions/on_video/on_video_prayer_yellow.json",on_video_raise_hand_dark:"./lottie/reactions/on_video/on_video_raise_hand_dark.json",on_video_raise_hand_light:"./lottie/reactions/on_video/on_video_raise_hand_light.json",on_video_raise_hand_medium_dark:"./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",on_video_raise_hand_medium_light:"./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",on_video_raise_hand_medium:"./lottie/reactions/on_video/on_video_raise_hand_medium.json",on_video_raise_hand_yellow:"./lottie/reactions/on_video/on_video_raise_hand_yellow.json",on_video_sad:"./lottie/reactions/on_video/on_video_sad.json",on_video_slow_down:"./lottie/reactions/on_video/on_video_slow_down.json",on_video_smile:"./lottie/reactions/on_video/on_video_smile.json",on_video_speed_up:"./lottie/reactions/on_video/on_video_speed_up.json",on_video_thumb_down_dark:"./lottie/reactions/on_video/on_video_thumb_down_dark.json",on_video_thumb_down_light:"./lottie/reactions/on_video/on_video_thumb_down_light.json",on_video_thumb_down_medium_dark:"./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",on_video_thumb_down_medium_light:"./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",on_video_thumb_down_medium:"./lottie/reactions/on_video/on_video_thumb_down_medium.json",on_video_thumb_down_yellow:"./lottie/reactions/on_video/on_video_thumb_down_yellow.json",on_video_thumb_up_dark:"./lottie/reactions/on_video/on_video_thumb_up_dark.json",on_video_thumb_up_light:"./lottie/reactions/on_video/on_video_thumb_up_light.json",on_video_thumb_up_medium_dark:"./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",on_video_thumb_up_medium_light:"./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",on_video_thumb_up_medium:"./lottie/reactions/on_video/on_video_thumb_up_medium.json",on_video_thumb_up_yellow:"./lottie/reactions/on_video/on_video_thumb_up_yellow.json",on_video_wow:"./lottie/reactions/on_video/on_video_wow.json",prayer_dark:"./lottie/reactions/prayer_dark.json",prayer_light:"./lottie/reactions/prayer_light.json",prayer_medium_dark:"./lottie/reactions/prayer_medium_dark.json",prayer_medium_light:"./lottie/reactions/prayer_medium_light.json",prayer_medium:"./lottie/reactions/prayer_medium.json",prayer_yellow:"./lottie/reactions/prayer_yellow.json",raise_hand_dark:"./lottie/reactions/raise_hand_dark.json",raise_hand_light:"./lottie/reactions/raise_hand_light.json",raise_hand_medium_dark:"./lottie/reactions/raise_hand_medium_dark.json",raise_hand_medium_light:"./lottie/reactions/raise_hand_medium_light.json",raise_hand_medium:"./lottie/reactions/raise_hand_medium.json",raise_hand_yellow:"./lottie/reactions/raise_hand_yellow.json",sad:"./lottie/reactions/sad.json",slow_down:"./lottie/reactions/slow_down.json",smile:"./lottie/reactions/smile.json",speed_up:"./lottie/reactions/speed_up.json",thumb_down_dark:"./lottie/reactions/thumb_down_dark.json",thumb_down_light:"./lottie/reactions/thumb_down_light.json",thumb_down_medium_dark:"./lottie/reactions/thumb_down_medium_dark.json",thumb_down_medium_light:"./lottie/reactions/thumb_down_medium_light.json",thumb_down_medium:"./lottie/reactions/thumb_down_medium.json",thumb_down_yellow:"./lottie/reactions/thumb_down_yellow.json",thumb_up_dark:"./lottie/reactions/thumb_up_dark.json",thumb_up_light:"./lottie/reactions/thumb_up_light.json",thumb_up_medium_dark:"./lottie/reactions/thumb_up_medium_dark.json",thumb_up_medium_light:"./lottie/reactions/thumb_up_medium_light.json",thumb_up_medium:"./lottie/reactions/thumb_up_medium.json",thumb_up_yellow:"./lottie/reactions/thumb_up_yellow.json",wow:"./lottie/reactions/wow.json",space:"./lottie/space.json",success:"./lottie/success.json",teams:"./lottie/teams.json",webex_logo_loop:"./lottie/webex_logo_loop.json",welcome:"./lottie/welcome.json"};var Vv=[Et,H`
|
509
|
+
`,...St()],Uh=Fv;var Ss={},Gh=async l=>(Ss[l]===void 0&&(Ss[l]=new Map),{async set(o,e){Ss[l].set(o.url,await e.text())},async get(o){return Ss[l].get(o.url)},async delete(o){Ss[l].delete(o.url)}}),Hh=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)}}},jh=async(l,o)=>o==="in-memory-cache"?Gh(l):Hh(l);var Wh=async l=>fetch(l).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Yh=async({url:l,name:o,fileExtension:e,cacheStrategy:s,cacheName:n,renewSignal:h})=>{let m=h(),T=new Request(`${l}/${o}.${e}`,{signal:m});return!n||!s||!["in-memory-cache","web-cache-api"].includes(s)?Wh(T).then(L=>L.text()):jh(n,s).then(L=>L.get(T).then($=>$||Wh(T.clone()).then(W=>{var K;return W.status<400&&W.headers.has("content-type")?(K=L.set)==null?void 0:K.call(L,T,W.clone()).then(()=>W.text()):W.text()})).catch($=>{throw new Error(`Error in caching the Icon ${o}, ${$}`)}))};var qh=j.constructTagName("icon"),Ml={NAME:void 0,SIZE:1};var Oe=class extends q{constructor(){super();this.name=Ml.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=bo.consume({host:this,context:_s.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:m,cacheStrategy:T}=this.iconProviderContext.value;if(m==="custom-icons"&&n&&s&&this.name){let L=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Yh({url:n,name:this.name,fileExtension:s,cacheName:h,cacheStrategy:T,renewSignal:L}).then($=>{let W=this.prepareIconElement($);this.handleIconLoadedSuccess(W)}).catch($=>{this.handleIconLoadedFailure($)})}if(m==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(L=>{this.handleIconLoadedSuccess(L.default())}).catch(L=>{this.handleIconLoadedFailure(L)})}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:Ml.SIZE}updated(e){var s,n,h,m;super.updated(e),e.has("name")&&this.getIconData().catch(T=>{T.name!=="AbortError"&&this.onerror&&this.onerror(T)}),(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=(m=this.iconProviderContext.value)==null?void 0:m.size,this.updateSize())}render(){return O` ${this.iconData} `}};Oe.styles=[...q.styles,...Uh],v([_t()],Oe.prototype,"iconData",2),v([_t()],Oe.prototype,"lengthUnitFromContext",2),v([_t()],Oe.prototype,"sizeFromContext",2),v([E({type:String,reflect:!0})],Oe.prototype,"name",2),v([E({type:Number})],Oe.prototype,"size",2),v([E({type:String,attribute:"length-unit"})],Oe.prototype,"lengthUnit",2),v([E({type:String,attribute:"aria-label"})],Oe.prototype,"ariaLabel",2),v([E({type:String,attribute:"aria-labelledby"})],Oe.prototype,"ariaLabelledBy",2),v([_t()],Oe.prototype,"abortController",2);var Rl=Oe;Rl.register(qh);var $v=Rl;Ll.register(Dh);var zv=Ll;var{I:Nx}=Sh;var Kh=l=>l.strings===void 0;var Ha={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Is=l=>(...o)=>({_$litDirective$:l,values:o}),yo=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 ks=(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),ks(n,o);return!0},ja=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)},Xh=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),Uv(o)}};function Vv(l){this._$AN!==void 0?(ja(this),this._$AM=l,Xh(this)):this._$AM=l}function Bv(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++)ks(s[h],!1),ja(s[h]);else s!=null&&(ks(s,!1),ja(s));else ks(this,l)}var Uv=l=>{var o,e;l.type==Ha.CHILD&&((o=l._$AP)!=null||(l._$AP=Bv),(e=l._$AQ)!=null||(l._$AQ=Vv))},Wa=class extends yo{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,e,s){super._$AT(o,e,s),Xh(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&&(ks(this,o),ja(this))}setValue(o){if(Kh(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 Ya=()=>new Pl,Pl=class{},Ol=new WeakMap,qa=Is(class extends Wa{render(l){return Y}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)),Y}rt(l){var o;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let e=(o=this.ht)!=null?o:globalThis,s=Ol.get(e);s===void 0&&(s=new WeakMap,Ol.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=Ol.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 tp=fv(Zh());var Dl={audio_video:"./lottie/audio_video.json",calling:"./lottie/calling.json",alert_32px_loop:"./lottie/cisco-ai-assistant/alert_32px_loop.json",hello_32px:"./lottie/cisco-ai-assistant/hello_32px.json",processing_32px_end:"./lottie/cisco-ai-assistant/processing_32px_end.json",processing_32px_loop:"./lottie/cisco-ai-assistant/processing_32px_loop.json",processing_32px_start:"./lottie/cisco-ai-assistant/processing_32px_start.json",responding_32px_end:"./lottie/cisco-ai-assistant/responding_32px_end.json",responding_32px_loop:"./lottie/cisco-ai-assistant/responding_32px_loop.json",responding_32px_start:"./lottie/cisco-ai-assistant/responding_32px_start.json",contacts:"./lottie/contacts.json",discoverability_badge:"./lottie/discoverability_badge.json",heart_opacity_test:"./lottie/heart_opacity_test.json",meeting:"./lottie/meeting.json",personal_insight:"./lottie/personal_insight.json",celebrate:"./lottie/reactions/celebrate.json",clap_dark:"./lottie/reactions/clap_dark.json",clap_light:"./lottie/reactions/clap_light.json",clap_medium_dark:"./lottie/reactions/clap_medium_dark.json",clap_medium_light:"./lottie/reactions/clap_medium_light.json",clap_medium:"./lottie/reactions/clap_medium.json",clap_yellow:"./lottie/reactions/clap_yellow.json",fire:"./lottie/reactions/fire.json",haha:"./lottie/reactions/haha.json",heart:"./lottie/reactions/heart.json",on_video_celebrate:"./lottie/reactions/on_video/on_video_celebrate.json",on_video_clap_dark:"./lottie/reactions/on_video/on_video_clap_dark.json",on_video_clap_light:"./lottie/reactions/on_video/on_video_clap_light.json",on_video_clap_medium_dark:"./lottie/reactions/on_video/on_video_clap_medium_dark.json",on_video_clap_medium_light:"./lottie/reactions/on_video/on_video_clap_medium_light.json",on_video_clap_medium:"./lottie/reactions/on_video/on_video_clap_medium.json",on_video_clap_yellow:"./lottie/reactions/on_video/on_video_clap_yellow.json",on_video_fire:"./lottie/reactions/on_video/on_video_fire.json",on_video_haha:"./lottie/reactions/on_video/on_video_haha.json",on_video_heart:"./lottie/reactions/on_video/on_video_heart.json",on_video_prayer_dark:"./lottie/reactions/on_video/on_video_prayer_dark.json",on_video_prayer_light:"./lottie/reactions/on_video/on_video_prayer_light.json",on_video_prayer_medium_dark:"./lottie/reactions/on_video/on_video_prayer_medium_dark.json",on_video_prayer_medium_light:"./lottie/reactions/on_video/on_video_prayer_medium_light.json",on_video_prayer_medium:"./lottie/reactions/on_video/on_video_prayer_medium.json",on_video_prayer_yellow:"./lottie/reactions/on_video/on_video_prayer_yellow.json",on_video_raise_hand_dark:"./lottie/reactions/on_video/on_video_raise_hand_dark.json",on_video_raise_hand_light:"./lottie/reactions/on_video/on_video_raise_hand_light.json",on_video_raise_hand_medium_dark:"./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",on_video_raise_hand_medium_light:"./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",on_video_raise_hand_medium:"./lottie/reactions/on_video/on_video_raise_hand_medium.json",on_video_raise_hand_yellow:"./lottie/reactions/on_video/on_video_raise_hand_yellow.json",on_video_sad:"./lottie/reactions/on_video/on_video_sad.json",on_video_slow_down:"./lottie/reactions/on_video/on_video_slow_down.json",on_video_smile:"./lottie/reactions/on_video/on_video_smile.json",on_video_speed_up:"./lottie/reactions/on_video/on_video_speed_up.json",on_video_thumb_down_dark:"./lottie/reactions/on_video/on_video_thumb_down_dark.json",on_video_thumb_down_light:"./lottie/reactions/on_video/on_video_thumb_down_light.json",on_video_thumb_down_medium_dark:"./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",on_video_thumb_down_medium_light:"./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",on_video_thumb_down_medium:"./lottie/reactions/on_video/on_video_thumb_down_medium.json",on_video_thumb_down_yellow:"./lottie/reactions/on_video/on_video_thumb_down_yellow.json",on_video_thumb_up_dark:"./lottie/reactions/on_video/on_video_thumb_up_dark.json",on_video_thumb_up_light:"./lottie/reactions/on_video/on_video_thumb_up_light.json",on_video_thumb_up_medium_dark:"./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",on_video_thumb_up_medium_light:"./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",on_video_thumb_up_medium:"./lottie/reactions/on_video/on_video_thumb_up_medium.json",on_video_thumb_up_yellow:"./lottie/reactions/on_video/on_video_thumb_up_yellow.json",on_video_wow:"./lottie/reactions/on_video/on_video_wow.json",prayer_dark:"./lottie/reactions/prayer_dark.json",prayer_light:"./lottie/reactions/prayer_light.json",prayer_medium_dark:"./lottie/reactions/prayer_medium_dark.json",prayer_medium_light:"./lottie/reactions/prayer_medium_light.json",prayer_medium:"./lottie/reactions/prayer_medium.json",prayer_yellow:"./lottie/reactions/prayer_yellow.json",raise_hand_dark:"./lottie/reactions/raise_hand_dark.json",raise_hand_light:"./lottie/reactions/raise_hand_light.json",raise_hand_medium_dark:"./lottie/reactions/raise_hand_medium_dark.json",raise_hand_medium_light:"./lottie/reactions/raise_hand_medium_light.json",raise_hand_medium:"./lottie/reactions/raise_hand_medium.json",raise_hand_yellow:"./lottie/reactions/raise_hand_yellow.json",sad:"./lottie/reactions/sad.json",slow_down:"./lottie/reactions/slow_down.json",smile:"./lottie/reactions/smile.json",speed_up:"./lottie/reactions/speed_up.json",thumb_down_dark:"./lottie/reactions/thumb_down_dark.json",thumb_down_light:"./lottie/reactions/thumb_down_light.json",thumb_down_medium_dark:"./lottie/reactions/thumb_down_medium_dark.json",thumb_down_medium_light:"./lottie/reactions/thumb_down_medium_light.json",thumb_down_medium:"./lottie/reactions/thumb_down_medium.json",thumb_down_yellow:"./lottie/reactions/thumb_down_yellow.json",thumb_up_dark:"./lottie/reactions/thumb_up_dark.json",thumb_up_light:"./lottie/reactions/thumb_up_light.json",thumb_up_medium_dark:"./lottie/reactions/thumb_up_medium_dark.json",thumb_up_medium_light:"./lottie/reactions/thumb_up_medium_light.json",thumb_up_medium:"./lottie/reactions/thumb_up_medium.json",thumb_up_yellow:"./lottie/reactions/thumb_up_yellow.json",wow:"./lottie/reactions/wow.json",space:"./lottie/space.json",success:"./lottie/success.json",teams:"./lottie/teams.json",webex_logo_loop:"./lottie/webex_logo_loop.json",welcome:"./lottie/welcome.json"};var Gv=[Et,H`
|
510
510
|
:host svg {
|
511
511
|
display: block;
|
512
512
|
}
|
513
|
-
`],
|
513
|
+
`],Jh=Gv;var Qh=j.constructTagName("animation"),Xa={NAME:void 0,AUTO_PLAY:!0,LOOP:"true"};var Or=class extends q{constructor(){super(...arguments);this.name=Xa.NAME;this.loop=Xa.LOOP;this.autoplay=Xa.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledBy=null;this.containerRef=Ya();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=tp.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(){this.name&&Dl[this.name]?import(`@momentum-design/animations/dist/lottie${Dl[this.name].replace(/^\.\/lottie/,"")}`).then(s=>this.onLoadSuccessHandler(s.default)).catch(s=>this.onLoadFailHandler(s)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(e){super.updated(e),(e.has("name")||e.has("loop")||e.has("autoplay"))&&this.getAnimationData(),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null)}render(){return O`<div aria-hidden="true" ${qa(this.containerRef)}></div>`}};Or.styles=[...q.styles,...Jh],v([E({type:String,reflect:!0})],Or.prototype,"name",2),v([E({type:String,reflect:!0})],Or.prototype,"loop",2),v([E({type:Boolean,reflect:!0})],Or.prototype,"autoplay",2),v([E({type:String,attribute:"aria-label"})],Or.prototype,"ariaLabel",2),v([E({type:String,attribute:"aria-labelledby"})],Or.prototype,"ariaLabelledBy",2);var Fl=Or;Fl.register(Qh);var Hv=Fl;var jv=H`
|
514
514
|
:host {
|
515
515
|
--mdc-appheader-height: 4rem;
|
516
516
|
}
|
@@ -543,7 +543,7 @@
|
|
543
543
|
:host::part(trailing-section) {
|
544
544
|
justify-content: flex-end;
|
545
545
|
}
|
546
|
-
`,
|
546
|
+
`,ep=[jv];var Za=class extends q{render(){return O` <header part="container">
|
547
547
|
<div part="leading-section">
|
548
548
|
<slot name="leading"></slot>
|
549
549
|
</div>
|
@@ -553,7 +553,7 @@
|
|
553
553
|
<div part="trailing-section">
|
554
554
|
<slot name="trailing"></slot>
|
555
555
|
</div>
|
556
|
-
</header>`}};Za.styles=[...q.styles,...
|
556
|
+
</header>`}};Za.styles=[...q.styles,...ep];var $l=Za;var rp=j.constructTagName("appheader");$l.register(rp);var Wv=$l;var at=l=>l!=null?l:Y;var ip=j.constructTagName("avatar"),me={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},zl=99,Yv="user-regular",Ot={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Eo={TYPE:me.PHOTO,SIZE:Ot[32],ICON_NAME:Yv};var Ja=l=>{class o extends l{constructor(){super(...arguments);this.size=Eo.SIZE;this.isTyping=!1}}return v([E({type:String})],o.prototype,"src",2),v([E({type:String})],o.prototype,"initials",2),v([E({type:String})],o.prototype,"presence",2),v([E({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),v([E({type:Number})],o.prototype,"counter",2),v([E({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var ce=l=>{class o extends l{}return v([E({type:String,attribute:"icon-name"})],o.prototype,"iconName",2),o};var qv=[Et,H`
|
557
557
|
:host {
|
558
558
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
559
559
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -680,8 +680,8 @@
|
|
680
680
|
outline: 0.125rem solid;
|
681
681
|
}
|
682
682
|
}
|
683
|
-
`],
|
684
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
683
|
+
`],op=qv;var sp=j.constructTagName("presence"),de={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"},Qt={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},To={TYPE:de.ACTIVE,SIZE:Qt.SMALL};var ap=l=>({[Ot[124]]:Qt.XX_LARGE,[Ot[88]]:Qt.X_LARGE,[Ot[72]]:Qt.LARGE,[Ot[64]]:Qt.MIDSIZE,[Ot[48]]:Qt.SMALL,[Ot[32]]:Qt.X_SMALL,[Ot[24]]:Qt.XX_SMALL})[l]||Qt.X_SMALL,np=l=>({[Ot[124]]:4.75,[Ot[88]]:3,[Ot[72]]:2.5,[Ot[64]]:2.25,[Ot[48]]:1.75,[Ot[32]]:1.25,[Ot[24]]:1})[l]||1.25,lp=l=>({[Ot[124]]:it.HEADING_XLARGE_MEDIUM,[Ot[88]]:it.HEADING_LARGE_MEDIUM,[Ot[72]]:it.HEADING_MIDSIZE_MEDIUM,[Ot[64]]:it.HEADING_SMALL_MEDIUM,[Ot[48]]:it.HEADING_SMALL_MEDIUM,[Ot[32]]:it.BODY_MIDSIZE_MEDIUM,[Ot[24]]:it.BODY_SMALL_MEDIUM})[l]||it.BODY_MIDSIZE_MEDIUM;var ws=class extends Ja(ce(q)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===me.COUNTER&&(this.counter||this.counter===0)||this.isTyping?Y:this.presence?O`
|
684
|
+
<mdc-presence part="presence" type="${this.presence}" size="${ap(this.size)}"></mdc-presence>
|
685
685
|
`:Y}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 O`
|
686
686
|
<img
|
687
687
|
part="photo"
|
@@ -692,13 +692,13 @@
|
|
692
692
|
@error="${this.handleOnError}"
|
693
693
|
/>
|
694
694
|
`}iconTemplate(){let e=this.iconName||Eo.ICON_NAME;return O`
|
695
|
-
<mdc-icon name="${at(e)}" length-unit="rem" size="${
|
696
|
-
`}textTemplate(e){return O` <mdc-text type="${
|
695
|
+
<mdc-icon name="${at(e)}" length-unit="rem" size="${np(this.size)}"></mdc-icon>
|
696
|
+
`}textTemplate(e){return O` <mdc-text type="${lp(this.size)}" tagname="span"> ${e} </mdc-text> `}generateCounterText(e){return e<0?"0":e>zl?`${zl}+`: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?O`<div part="loading-wrapper"><div part="loader"></div></div>`:Y}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?Y:e===me.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():Y}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return O`
|
697
697
|
<div part="content" aria-hidden="true">
|
698
698
|
${this.getPhotoPlaceHolderContent(e)} ${this.getTemplateBasedOnType(e)} ${this.getLoadingContent()}
|
699
699
|
${this.getPresenceTemplateBasedOnType(e)}
|
700
700
|
</div>
|
701
|
-
`}};ws.styles=[...q.styles,...
|
701
|
+
`}};ws.styles=[...q.styles,...op],v([_t()],ws.prototype,"isPhotoLoaded",2);var Vl=ws;var Kv=[Et,H`
|
702
702
|
:host {
|
703
703
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
704
704
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -792,7 +792,7 @@
|
|
792
792
|
.mdc-presence-icon__scheduled {
|
793
793
|
color: var(--mdc-presence-scheduled-background-color);
|
794
794
|
}
|
795
|
-
`],
|
795
|
+
`],cp=Kv;var dp=l=>{switch(l){case de.AWAY:return"recents-presence-badge-filled";case de.AWAY_CALLING:return"away-calling-presence-filled";case de.BUSY:return"busy-presence-bold";case de.DND:return"dnd-presence-badge-filled";case de.MEETING:return"camera-filled";case de.ON_CALL:return"handset-filled";case de.ON_DEVICE:return"generic-device-video-badge-filled";case de.ON_MOBILE:return"phone-badge-filled";case de.PAUSE:return"pause-badge-filled";case de.PTO:return"pto-presence-filled";case de.PRESENTING:return"share-screen-badge-filled";case de.QUIET:return"quiet-hours-presence-filled";case de.SCHEDULED:return"meetings-presence-badge-filled";case de.ACTIVE:default:return"active-presence-small-filled"}};var Ci=class extends q{constructor(){super(...arguments);this.type=To.TYPE;this.size=To.SIZE;this.currentIconType=To.TYPE}get iconSize(){switch(this.size){case Qt.MIDSIZE:return 1.16125;case Qt.LARGE:return 1.30625;case Qt.X_LARGE:return 1.596875;case Qt.XX_LARGE:return 2.25;case Qt.XX_SMALL:case Qt.X_SMALL:case Qt.SMALL:default:return this.size=To.SIZE,.875}}get icon(){let e=dp(this.type);return e==="active-presence-small-filled"&&(this.type=To.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 O`
|
796
796
|
<div class="mdc-presence mdc-presence__${this.size}">
|
797
797
|
<mdc-icon
|
798
798
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -802,7 +802,7 @@
|
|
802
802
|
@error="${this.handleOnError}"
|
803
803
|
></mdc-icon>
|
804
804
|
</div>
|
805
|
-
`}};Ci.styles=[...q.styles,...
|
805
|
+
`}};Ci.styles=[...q.styles,...cp],v([E({type:String,reflect:!0})],Ci.prototype,"type",2),v([E({type:String,reflect:!0})],Ci.prototype,"size",2),v([_t()],Ci.prototype,"currentIconType",2);var Bl=Ci;Bl.register(sp);var Xv=Bl;Vl.register(ip);var Zv=Vl;var lt={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var wi=j.constructTagName("button"),Kt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ls={40:40,32:32,28:28,24:24},oi={64:64,52:52,20:20,...Ls},Li={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},xo={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},ke={VARIANT:Kt.PRIMARY,SIZE:Ls[32],COLOR:Li.DEFAULT,TYPE_INTERNAL:xo.ICON,TYPE:uo.BUTTON,INVERTED:!1};var Jv=[Et,H`
|
806
806
|
:host {
|
807
807
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
808
808
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
@@ -831,7 +831,7 @@
|
|
831
831
|
:host::part(presence) {
|
832
832
|
z-index: 2;
|
833
833
|
}
|
834
|
-
`,...St()],
|
834
|
+
`,...St()],hp=Jv;var Ns=class extends Ja(ce(Ie)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=lt.BUTTON,this.type=ke.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(Ot).includes(e)?`${e}`:Eo.SIZE.toString())}render(){return O`
|
835
835
|
<div part="overlay" aria-hidden="true"></div>
|
836
836
|
<mdc-avatar
|
837
837
|
exportparts="content, photo, presence, loading-wrapper, loader"
|
@@ -843,7 +843,7 @@
|
|
843
843
|
size="${at(this.size)}"
|
844
844
|
src="${at(this.src)}"
|
845
845
|
></mdc-avatar>
|
846
|
-
`}};Ns.styles=[...
|
846
|
+
`}};Ns.styles=[...hp],v([E({type:String,attribute:"aria-label"})],Ns.prototype,"ariaLabel",2);var Ul=Ns;var pp=j.constructTagName("avatarbutton");Ul.register(pp);var Qv=Ul;var Ao=Is(class extends yo{constructor(l){var o;if(super(l),l.type!==Ha.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 m=!!o[h];m===this.st.has(h)||(n=this.nt)!=null&&n.has(h)||(m?(e.add(h),this.st.add(h)):(e.remove(h),this.st.delete(h)))}return Lr}});var mp=j.constructTagName("badge"),Be={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Qa={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},tn={PRIMARY:"primary",SECONDARY:"secondary"},Ms={SUCCESS:"success",WARNING:"warning",ERROR:"error"},oS={...tn,...Ms},si={TYPE:Be.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:tn.PRIMARY,ICON_SIZE:1};var tg=[Et,H`
|
847
847
|
:host {
|
848
848
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
849
849
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -914,21 +914,21 @@
|
|
914
914
|
outline: 0.125rem solid;
|
915
915
|
}
|
916
916
|
}
|
917
|
-
`],
|
917
|
+
`],up=tg;var gr=class extends ce(q){constructor(){super(...arguments);this.variant=si.VARIANT;this.maxCounter=si.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,s){return s===void 0||typeof s!="number"||e===0?"":s>e?`${e}+`:e>si.MAX_COUNTER_LIMIT||s>si.MAX_COUNTER_LIMIT?`${si.MAX_COUNTER_LIMIT}+`:s.toString()}getBadgeIcon(e,s){return O`
|
918
918
|
<mdc-icon
|
919
919
|
class="mdc-badge-icon ${Ao({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${s}`]:!0})}"
|
920
920
|
name="${at(e)}"
|
921
|
-
size="${
|
921
|
+
size="${si.ICON_SIZE}"
|
922
922
|
></mdc-icon>
|
923
923
|
`}getBadgeDot(){return O`<div class="mdc-badge-dot ${Ao({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return O`
|
924
924
|
<mdc-text
|
925
|
-
type="${
|
926
|
-
tagname="${
|
925
|
+
type="${it.BODY_SMALL_MEDIUM}"
|
926
|
+
tagname="${bt.DIV}"
|
927
927
|
class="mdc-badge-text ${Ao({"mdc-badge-overlay":this.overlay})}"
|
928
928
|
>
|
929
929
|
${this.getCounterText(this.maxCounter,this.counter)}
|
930
930
|
</mdc-text>
|
931
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role=lt.IMG:this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(tn).includes(this.variant)&&(this.variant=
|
931
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role=lt.IMG:this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(tn).includes(this.variant)&&(this.variant=si.VARIANT);let{iconName:e,type:s,variant:n}=this;switch(s){case Be.ICON:return this.getBadgeIcon(e||"",n);case Be.COUNTER:return this.getBadgeCounterText();case Be.SUCCESS:return this.getBadgeIcon(Qa.SUCCESS_ICON_NAME,Ms.SUCCESS);case Be.WARNING:return this.getBadgeIcon(Qa.WARNING_ICON_NAME,Ms.WARNING);case Be.ERROR:return this.getBadgeIcon(Qa.ERROR_ICON_NAME,Ms.ERROR);case Be.DOT:default:return this.type=Be.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};gr.styles=[...q.styles,...up],v([E({type:String,reflect:!0})],gr.prototype,"type",2),v([E({type:String,reflect:!0})],gr.prototype,"variant",2),v([E({type:Number})],gr.prototype,"counter",2),v([E({type:Number,attribute:"max-counter",reflect:!0})],gr.prototype,"maxCounter",2),v([E({type:Boolean})],gr.prototype,"overlay",2),v([E({type:String,attribute:"aria-label"})],gr.prototype,"ariaLabel",2);var Gl=gr;Gl.register(mp);var eg=Gl;var rg=H`
|
932
932
|
:host {
|
933
933
|
display: block;
|
934
934
|
height: 100%;
|
@@ -937,7 +937,7 @@
|
|
937
937
|
height: 100%;
|
938
938
|
width: 100%;
|
939
939
|
}
|
940
|
-
`,
|
940
|
+
`,fp=[rg];var vp=j.constructTagName("brandvisual"),gp={NAME:void 0};var _o=class extends q{constructor(){super(...arguments);this.name=gp.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 O` ${this.brandVisualData} `}};_o.styles=[...q.styles,...fp],v([_t()],_o.prototype,"brandVisualData",2),v([E({type:String,reflect:!0})],_o.prototype,"name",2);var Hl=_o;Hl.register(vp);var ig=Hl;var og=H`
|
941
941
|
:host {
|
942
942
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
943
943
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -958,7 +958,7 @@
|
|
958
958
|
:host([size='large']) {
|
959
959
|
height: var(--mdc-bullet-size-large);
|
960
960
|
}
|
961
|
-
`,
|
961
|
+
`,bp=[og];var yp=j.constructTagName("bullet"),Ep={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Rs=class extends q{constructor(){super(...arguments);this.size=Ep.SMALL}};Rs.styles=[...q.styles,...bp],v([E({type:String,reflect:!0})],Rs.prototype,"size",2);var jl=Rs;jl.register(yp);var sg=jl;var en=l=>{class o extends l{constructor(){super(...arguments);this.variant=ke.VARIANT;this.color=ke.COLOR;this.typeInternal=ke.TYPE_INTERNAL}setVariant(n){this.setAttribute("variant",Object.values(Kt).includes(n)?n:ke.VARIANT)}setColor(n){!Object.values(Li).includes(n)||this.variant===Kt.TERTIARY?this.setAttribute("color",`${ke.COLOR}`):this.setAttribute("color",n)}setSize(n){let m=this.typeInternal===xo.ICON?Object.values(oi).includes(n)&&!(n===oi[20]&&this.variant!==Kt.TERTIARY):Object.values(Ls).includes(n);this.setAttribute("size",m?`${n}`:`${ke.SIZE}`)}inferButtonType(){var h,m;let n=(m=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"))==null?void 0:m.assignedNodes().filter(T=>{var L;return T.nodeType!==Node.TEXT_NODE||((L=T.textContent)==null?void 0:L.trim())}).length;n&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=xo.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!n&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=xo.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=xo.PILL,this.setAttribute("data-btn-type","pill"))}}return v([E({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),v([E({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),v([E({type:String})],o.prototype,"variant",2),v([E({type:String})],o.prototype,"color",2),v([_t()],o.prototype,"typeInternal",2),o};var ag=H`
|
962
962
|
:host {
|
963
963
|
background-color: transparent;
|
964
964
|
border-radius: 1.25rem;
|
@@ -1206,7 +1206,7 @@
|
|
1206
1206
|
:host::part(postfix-icon) {
|
1207
1207
|
flex-shrink: 0;
|
1208
1208
|
}
|
1209
|
-
`,
|
1209
|
+
`,Tp=[ag];var Ni=l=>{let o=l.split("-"),e=["bold","filled","regular","light"];return o.filter(s=>!e.includes(s)).join("-")};var Pr=class extends en(Ie){constructor(){super(...arguments);this.size=ke.SIZE;this.inverted=ke.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=`${Ni(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Ni(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return O`
|
1210
1210
|
${this.prefixFilledIconName?O` <mdc-icon
|
1211
1211
|
name="${this.prefixFilledIconName}"
|
1212
1212
|
part="prefix-icon"
|
@@ -1218,7 +1218,7 @@
|
|
1218
1218
|
part="postfix-icon"
|
1219
1219
|
length-unit="rem"
|
1220
1220
|
></mdc-icon>`:""}
|
1221
|
-
`}};
|
1221
|
+
`}};Pr.styles=[...Ie.styles,...Tp],v([E({type:Number})],Pr.prototype,"size",2),v([E({type:Boolean,reflect:!0})],Pr.prototype,"inverted",2),v([E({type:String,reflect:!0})],Pr.prototype,"role",2),v([_t()],Pr.prototype,"prefixFilledIconName",2),v([_t()],Pr.prototype,"postfixFilledIconName",2);var Mi=Pr;Mi.register(wi);var ng=Mi;var xp=j.constructTagName("buttongroup"),lg={40:40,32:32,28:28,24:24},cg={HORIZONTAL:"horizontal",VERTICAL:"vertical"},dg={PRIMARY:"primary",SECONDARY:"secondary"},rn={SIZE:lg[28],VARIANT:dg.PRIMARY,ORIENTATION:cg.HORIZONTAL};var hg=H`
|
1222
1222
|
:host {
|
1223
1223
|
--mdc-buttongroup-border-radius: 1.25rem;
|
1224
1224
|
--mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
|
@@ -1295,7 +1295,7 @@
|
|
1295
1295
|
:host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
|
1296
1296
|
width: 2.5rem;
|
1297
1297
|
}
|
1298
|
-
`,
|
1298
|
+
`,Ap=[Et,hg];var Dr=class extends q{constructor(){super(...arguments);this.orientation=rn.ORIENTATION;this.variant=rn.VARIANT;this.size=rn.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(e=>{e.setAttribute("size",this.size.toString()),e.setAttribute("variant",this.variant)})}updated(e){super.updated(e),(e.has("size")||e.has("variant"))&&this.handleSlotChange()}render(){return O`<slot @slotchange=${this.handleSlotChange}></slot>`}};Dr.styles=[...q.styles,...Ap],v([E({type:String,reflect:!0})],Dr.prototype,"orientation",2),v([E({type:String,reflect:!0})],Dr.prototype,"variant",2),v([E({type:Number,reflect:!0})],Dr.prototype,"size",2),v([E({type:Boolean,reflect:!0})],Dr.prototype,"compact",2),v([Bt({selector:"mdc-button"})],Dr.prototype,"buttons",2);var Wl=Dr;Wl.register(xp);var pg=Wl;var _p=j.constructTagName("linksimple"),Yl={INLINE:!1,INVERTED:!1};var mg=[Et,H`
|
1299
1299
|
:host {
|
1300
1300
|
--mdc-link-border-radius: 0.25rem;
|
1301
1301
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
@@ -1361,11 +1361,11 @@
|
|
1361
1361
|
text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
|
1362
1362
|
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
|
1363
1363
|
}
|
1364
|
-
`,...St()],
|
1364
|
+
`,...St()],Sp=mg;var Fr=class extends $t(fr(q)){constructor(){super(...arguments);this.inline=Yl.INLINE;this.inverted=Yl.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 O` <slot></slot> `}};Fr.styles=[...q.styles,...Sp],v([E({type:Boolean,reflect:!0})],Fr.prototype,"inline",2),v([E({type:Boolean,reflect:!0})],Fr.prototype,"inverted",2),v([E({type:String,reflect:!0})],Fr.prototype,"href",2),v([E({type:String,reflect:!0})],Fr.prototype,"target",2),v([E({type:String,reflect:!0})],Fr.prototype,"rel",2);var ai=Fr;var So=class extends en(ai){constructor(){super(...arguments);this.size=ke.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 O`
|
1365
1365
|
${this.prefixIcon?O` <mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
1366
1366
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1367
1367
|
${this.postfixIcon?O` <mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1368
|
-
`}};So.styles=[...Mi.styles],v([E({type:Number,reflect:!0})],So.prototype,"size",2),v([E({type:Boolean,attribute:"soft-disabled",reflect:!0})],So.prototype,"softDisabled",2);var ql=So;var
|
1368
|
+
`}};So.styles=[...Mi.styles],v([E({type:Number,reflect:!0})],So.prototype,"size",2),v([E({type:Boolean,attribute:"soft-disabled",reflect:!0})],So.prototype,"softDisabled",2);var ql=So;var Ip=j.constructTagName("buttonlink");ql.register(Ip);var ug=ql;var on=j.constructTagName("link"),sn={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},an={LARGE:1,MIDSIZE:.875,SMALL:.75},kp={LINK_SIZE:sn.LARGE};var Cp=j.constructTagName("card"),Kl={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},fg={HORIZONTAL:"horizontal",VERTICAL:"vertical"},te={VARIANT:Kl.BORDER,ORIENTATION:fg.VERTICAL,TITLE_TYPE:it.HEADING_SMALL_BOLD,SUBTITLE_TYPE:it.BODY_MIDSIZE_MEDIUM,TAGNAME:bt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:on,BUTTON:wi};var nn=l=>{class o extends l{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=te.VARIANT;this.orientation=te.ORIENTATION;this.titleTagName=te.TAGNAME;this.subtitleTagName=te.TAGNAME}renderImage(){return this.imageSrc?O`<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />`:Y}renderIcon(){return this.iconName?O`<mdc-icon
|
1369
1369
|
part="icon"
|
1370
1370
|
size="${te.ICON_SIZE}"
|
1371
1371
|
length-unit="${te.ICON_LENGTH_UNIT}"
|
@@ -1375,7 +1375,7 @@
|
|
1375
1375
|
${this.subtitle?O`<mdc-text part="subtitle" type="${te.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
|
1376
1376
|
>${this.subtitle}</mdc-text
|
1377
1377
|
>`:Y}
|
1378
|
-
</div>`}}return v([E({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),v([E({type:String,reflect:!0})],o.prototype,"subtitle",2),v([E({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),v([E({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),v([E({type:String,reflect:!0})],o.prototype,"variant",2),v([E({type:String,reflect:!0})],o.prototype,"orientation",2),v([E({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),v([E({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),v([E({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var ln=l=>{class o extends l{updateFooterButtonColors(s){let n=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];n==null||n.forEach(h=>{s===Kl.PROMOTIONAL?h.setAttribute("color",Li.PROMOTIONAL):h.setAttribute("color",Li.DEFAULT)})}handleFooterSlot(s,n){var
|
1378
|
+
</div>`}}return v([E({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),v([E({type:String,reflect:!0})],o.prototype,"subtitle",2),v([E({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),v([E({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),v([E({type:String,reflect:!0})],o.prototype,"variant",2),v([E({type:String,reflect:!0})],o.prototype,"orientation",2),v([E({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),v([E({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),v([E({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var ln=l=>{class o extends l{updateFooterButtonColors(s){let n=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];n==null||n.forEach(h=>{s===Kl.PROMOTIONAL?h.setAttribute("color",Li.PROMOTIONAL):h.setAttribute("color",Li.DEFAULT)})}handleFooterSlot(s,n){var m,T,L;let h=[];s===te.LINK&&((m=this.footerLink)!=null&&m.length)?h=this.footerLink:s===te.BUTTON&&n===Kt.PRIMARY&&((T=this.footerButtonPrimary)!=null&&T.length)?h=this.footerButtonPrimary:s===te.BUTTON&&n===Kt.SECONDARY&&((L=this.footerButtonSecondary)!=null&&L.length)&&(h=this.footerButtonSecondary);for(let $=1;$<h.length;$+=1)h[$].remove();h.forEach($=>{$.matches(s)||$.remove(),n&&$.setAttribute("variant",n)})}renderFooter(){return O` <slot name="footer">
|
1379
1379
|
<div part="footer">
|
1380
1380
|
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(te.LINK)}></slot>
|
1381
1381
|
<slot
|
@@ -1387,7 +1387,7 @@
|
|
1387
1387
|
@slotchange=${()=>this.handleFooterSlot(te.BUTTON,Kt.PRIMARY)}
|
1388
1388
|
></slot>
|
1389
1389
|
</div>
|
1390
|
-
</slot>`}}return v([Bt({slot:"footer-link"})],o.prototype,"footerLink",2),v([Bt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),v([Bt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var
|
1390
|
+
</slot>`}}return v([Bt({slot:"footer-link"})],o.prototype,"footerLink",2),v([Bt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),v([Bt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var vg=H`
|
1391
1391
|
:host {
|
1392
1392
|
align-items: flex-start;
|
1393
1393
|
border-radius: 0.5rem;
|
@@ -1473,7 +1473,7 @@
|
|
1473
1473
|
::slotted([slot='footer-button-secondary']) {
|
1474
1474
|
margin-bottom: 0.5rem;
|
1475
1475
|
}
|
1476
|
-
`,
|
1476
|
+
`,wp=[Et,vg];var Os=class extends nn(ln(q)){constructor(){super(...arguments);this.handleIconButtons=()=>{var e;if((e=this.iconButtons)==null||e.forEach(s=>{!s.matches(te.BUTTON)&&s.getAttribute("data-btn-type")!=="icon"?s.remove():(s.setAttribute("variant",Kt.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?O`<div part="header">
|
1477
1477
|
${this.renderIcon()} ${this.renderTitle()}
|
1478
1478
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
1479
1479
|
</div>`:Y}render(){return O`
|
@@ -1485,7 +1485,7 @@
|
|
1485
1485
|
<slot name="after-body"></slot>
|
1486
1486
|
${this.renderFooter()}
|
1487
1487
|
</div>
|
1488
|
-
`}};Os.styles=[...q.styles,...
|
1488
|
+
`}};Os.styles=[...q.styles,...wp],v([Bt({slot:"icon-button"})],Os.prototype,"iconButtons",2);var or=Os;or.register(Cp);var gg=or;var bg=H`
|
1489
1489
|
:host {
|
1490
1490
|
cursor: pointer;
|
1491
1491
|
user-select: none;
|
@@ -1507,7 +1507,7 @@
|
|
1507
1507
|
:host([disabled])::part(image) {
|
1508
1508
|
opacity: 0.5;
|
1509
1509
|
}
|
1510
|
-
`,
|
1510
|
+
`,Lp=[bg,...St()];var cn=class extends nn(Ie){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?O`<div part="header">${this.renderIcon()} ${this.renderTitle()}</div>`:Y}render(){return O`
|
1511
1511
|
${this.renderImage()}
|
1512
1512
|
<div part="body">
|
1513
1513
|
${this.renderHeader()}
|
@@ -1515,7 +1515,7 @@
|
|
1515
1515
|
<slot name="body"></slot>
|
1516
1516
|
<slot name="after-body"></slot>
|
1517
1517
|
</div>
|
1518
|
-
`}};cn.styles=[...
|
1518
|
+
`}};cn.styles=[...or.styles,...Lp];var Xl=cn;var Np=j.constructTagName("cardbutton");Xl.register(Np);var yg=Xl;var Mp=j.constructTagName("cardcheckbox"),Zl={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},dn={CHECK:"check",CHECKBOX:"checkbox"},hn={SELECTION_TYPE:dn.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var Eg=H`
|
1519
1519
|
:host {
|
1520
1520
|
cursor: pointer;
|
1521
1521
|
user-select: none;
|
@@ -1572,7 +1572,7 @@
|
|
1572
1572
|
:host([disabled])::part(check-icon) {
|
1573
1573
|
color: var(--mds-color-theme-text-primary-disabled);
|
1574
1574
|
}
|
1575
|
-
`,
|
1575
|
+
`,Rp=[Eg,...St()];var Io=class extends $t(fr(or)){constructor(){super();this.checked=!1;this.selectionType=hn.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=lt.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?Zl.CHECKED:Zl.DEFAULT;switch(this.selectionType){case dn.CHECK:return O`<mdc-icon
|
1576
1576
|
part="check check-icon"
|
1577
1577
|
size="${hn.ICON_SIZE}"
|
1578
1578
|
length-unit="${hn.ICON_LENGTH_UNIT}"
|
@@ -1589,7 +1589,7 @@
|
|
1589
1589
|
<slot name="body"></slot>
|
1590
1590
|
<slot name="after-body"></slot>
|
1591
1591
|
</div>
|
1592
|
-
`}};Io.styles=[...
|
1592
|
+
`}};Io.styles=[...or.styles,...Rp],v([E({type:Boolean,reflect:!0})],Io.prototype,"checked",2),v([E({type:String,attribute:"selection-type",reflect:!0})],Io.prototype,"selectionType",2);var Jl=Io;var Tg=[H`
|
1593
1593
|
:host {
|
1594
1594
|
margin: 0.125rem 0;
|
1595
1595
|
border-radius: 0.125rem;
|
@@ -1645,15 +1645,15 @@
|
|
1645
1645
|
border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
|
1646
1646
|
}
|
1647
1647
|
}
|
1648
|
-
`],
|
1648
|
+
`],Op=Tg;var Pp=j.constructTagName("checkbox"),pn={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Dp=j.constructTagName("staticcheckbox");var ko=class extends $t(q){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let e=this.checked||this.indeterminate?O`
|
1649
1649
|
<mdc-icon
|
1650
1650
|
class="icon"
|
1651
|
-
name="${this.indeterminate?
|
1651
|
+
name="${this.indeterminate?pn.INDETERMINATE:pn.CHECKED}"
|
1652
1652
|
size="1"
|
1653
1653
|
length-unit="rem"
|
1654
1654
|
></mdc-icon>
|
1655
1655
|
`:Y;return O`<slot></slot>
|
1656
|
-
<div part="icon-container">${e}</div>`}};ko.styles=[...q.styles,...
|
1656
|
+
<div part="icon-container">${e}</div>`}};ko.styles=[...q.styles,...Op],v([E({type:Boolean,reflect:!0})],ko.prototype,"checked",2),v([E({type:Boolean,reflect:!0})],ko.prototype,"indeterminate",2);var Ql=ko;Ql.register(Dp);var xg=Ql;Jl.register(Mp);var Ag=Jl;var _g=H`
|
1657
1657
|
:host {
|
1658
1658
|
cursor: pointer;
|
1659
1659
|
user-select: none;
|
@@ -1706,7 +1706,7 @@
|
|
1706
1706
|
:host([disabled])::part(image) {
|
1707
1707
|
opacity: 0.5;
|
1708
1708
|
}
|
1709
|
-
|
1709
|
+
`,Fp=[_g,...St()];var Co=class extends $t(fr(or)){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=lt.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(m=>!m.disabled),h=n.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let m=(h+1)%n.length;this.updateCardRadio(n,m)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let m=(h-1+n.length)%n.length;this.updateCardRadio(n,m)}e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderHeader(){return this.cardTitle?O`<div part="header">
|
1710
1710
|
${this.renderIcon()} ${this.renderTitle()}
|
1711
1711
|
<mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
|
1712
1712
|
</div>`:Y}render(){return O`
|
@@ -1717,7 +1717,7 @@
|
|
1717
1717
|
<slot name="body"></slot>
|
1718
1718
|
<slot name="after-body"></slot>
|
1719
1719
|
</div>
|
1720
|
-
`}};Co.styles=[...
|
1720
|
+
`}};Co.styles=[...or.styles,...Fp],v([E({type:Boolean,reflect:!0})],Co.prototype,"checked",2),v([E({type:String})],Co.prototype,"name",2);var tc=Co;var mn=j.constructTagName("cardradio");var Sg=[H`
|
1721
1721
|
:host {
|
1722
1722
|
display: block;
|
1723
1723
|
position: relative;
|
@@ -1800,8 +1800,8 @@
|
|
1800
1800
|
:host([readonly][checked]) .icon:after {
|
1801
1801
|
background-color: var(--mdc-staticradio-text-disabled-color);
|
1802
1802
|
}
|
1803
|
-
`]
|
1804
|
-
<span part="radio-icon" class="icon"></span>`}};wo.styles=[...q.styles,...zm],v([E({type:Boolean,reflect:!0})],wo.prototype,"checked",2),v([E({type:Boolean,reflect:!0})],wo.prototype,"readonly",2);var ec=wo;var Vm=j.constructTagName("staticradio");ec.register(Vm);var Ag=ec;tc.register(pn);var _g=tc;var yr=Math.min,ue=Math.max,Ds=Math.round,Fs=Math.floor,ar=l=>({x:l,y:l}),Sg={left:"right",right:"left",bottom:"top",top:"bottom"},Ig={start:"end",end:"start"};function fn(l,o,e){return ue(l,yr(o,e))}function Ri(l,o){return typeof l=="function"?l(o):l}function zr(l){return l.split("-")[0]}function Oi(l){return l.split("-")[1]}function rc(l){return l==="x"?"y":"x"}function vn(l){return l==="y"?"height":"width"}function li(l){return["top","bottom"].includes(zr(l))?"y":"x"}function gn(l){return rc(li(l))}function Bm(l,o,e){e===void 0&&(e=!1);let s=Oi(l),n=gn(l),h=vn(n),p=n==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return o.reference[h]>o.floating[h]&&(p=Ps(p)),[p,Ps(p)]}function Um(l){let o=Ps(l);return[un(l),o,un(o)]}function un(l){return l.replace(/start|end/g,o=>Ig[o])}function kg(l,o,e){let s=["left","right"],n=["right","left"],h=["top","bottom"],p=["bottom","top"];switch(l){case"top":case"bottom":return e?o?n:s:o?s:n;case"left":case"right":return o?h:p;default:return[]}}function Gm(l,o,e,s){let n=Oi(l),h=kg(zr(l),e==="start",s);return n&&(h=h.map(p=>p+"-"+n),o&&(h=h.concat(h.map(un)))),h}function Ps(l){return l.replace(/left|right|bottom|top/g,o=>Sg[o])}function Cg(l){return{top:0,right:0,bottom:0,left:0,...l}}function ic(l){return typeof l!="number"?Cg(l):{top:l,right:l,bottom:l,left:l}}function Pi(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 Hm(l,o,e){let{reference:s,floating:n}=l,h=li(o),p=gn(o),T=vn(p),L=zr(o),$=h==="y",W=s.x+s.width/2-n.width/2,K=s.y+s.height/2-n.height/2,it=s[T]/2-n[T]/2,J;switch(L){case"top":J={x:W,y:s.y-n.height};break;case"bottom":J={x:W,y:s.y+s.height};break;case"right":J={x:s.x+s.width,y:K};break;case"left":J={x:s.x-n.width,y:K};break;default:J={x:s.x,y:s.y}}switch(Oi(o)){case"start":J[p]-=it*(e&&$?-1:1);break;case"end":J[p]+=it*(e&&$?-1:1);break}return J}var jm=async(l,o,e)=>{let{placement:s="bottom",strategy:n="absolute",middleware:h=[],platform:p}=e,T=h.filter(Boolean),L=await(p.isRTL==null?void 0:p.isRTL(o)),$=await p.getElementRects({reference:l,floating:o,strategy:n}),{x:W,y:K}=Hm($,s,L),it=s,J={},tt=0;for(let ht=0;ht<T.length;ht++){let{name:Tt,fn:bt}=T[ht],{x:xt,y:kt,data:Gt,reset:Rt}=await bt({x:W,y:K,initialPlacement:s,placement:it,strategy:n,middlewareData:J,rects:$,platform:p,elements:{reference:l,floating:o}});W=xt!=null?xt:W,K=kt!=null?kt:K,J={...J,[Tt]:{...J[Tt],...Gt}},Rt&&tt<=50&&(tt++,typeof Rt=="object"&&(Rt.placement&&(it=Rt.placement),Rt.rects&&($=Rt.rects===!0?await p.getElementRects({reference:l,floating:o,strategy:n}):Rt.rects),{x:W,y:K}=Hm($,it,L)),ht=-1)}return{x:W,y:K,placement:it,strategy:n,middlewareData:J}};async function bn(l,o){var e;o===void 0&&(o={});let{x:s,y:n,platform:h,rects:p,elements:T,strategy:L}=l,{boundary:$="clippingAncestors",rootBoundary:W="viewport",elementContext:K="floating",altBoundary:it=!1,padding:J=0}=Ri(o,l),tt=ic(J),Tt=T[it?K==="floating"?"reference":"floating":K],bt=Pi(await h.getClippingRect({element:(e=await(h.isElement==null?void 0:h.isElement(Tt)))==null||e?Tt:Tt.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(T.floating)),boundary:$,rootBoundary:W,strategy:L})),xt=K==="floating"?{x:s,y:n,width:p.floating.width,height:p.floating.height}:p.reference,kt=await(h.getOffsetParent==null?void 0:h.getOffsetParent(T.floating)),Gt=await(h.isElement==null?void 0:h.isElement(kt))?await(h.getScale==null?void 0:h.getScale(kt))||{x:1,y:1}:{x:1,y:1},Rt=Pi(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:T,rect:xt,offsetParent:kt,strategy:L}):xt);return{top:(bt.top-Rt.top+tt.top)/Gt.y,bottom:(Rt.bottom-bt.bottom+tt.bottom)/Gt.y,left:(bt.left-Rt.left+tt.left)/Gt.x,right:(Rt.right-bt.right+tt.right)/Gt.x}}var Wm=l=>({name:"arrow",options:l,async fn(o){let{x:e,y:s,placement:n,rects:h,platform:p,elements:T,middlewareData:L}=o,{element:$,padding:W=0}=Ri(l,o)||{};if($==null)return{};let K=ic(W),it={x:e,y:s},J=gn(n),tt=vn(J),ht=await p.getDimensions($),Tt=J==="y",bt=Tt?"top":"left",xt=Tt?"bottom":"right",kt=Tt?"clientHeight":"clientWidth",Gt=h.reference[tt]+h.reference[J]-it[J]-h.floating[tt],Rt=it[J]-h.reference[J],Dt=await(p.getOffsetParent==null?void 0:p.getOffsetParent($)),Te=Dt?Dt[kt]:0;(!Te||!await(p.isElement==null?void 0:p.isElement(Dt)))&&(Te=T.floating[kt]||h.floating[tt]);let ee=Gt/2-Rt/2,Ze=Te/2-ht[tt]/2-1,Me=yr(K[bt],Ze),Fe=yr(K[xt],Ze),Je=Me,Qe=Te-ht[tt]-Fe,At=Te/2-ht[tt]/2+ee,he=fn(Je,At,Qe),$e=!L.arrow&&Oi(n)!=null&&At!==he&&h.reference[tt]/2-(At<Je?Me:Fe)-ht[tt]/2<0,tr=$e?At<Je?At-Je:At-Qe:0;return{[J]:it[J]+tr,data:{[J]:he,centerOffset:At-he-tr,...$e&&{alignmentOffset:tr}},reset:$e}}});var Ym=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(o){var e,s;let{placement:n,middlewareData:h,rects:p,initialPlacement:T,platform:L,elements:$}=o,{mainAxis:W=!0,crossAxis:K=!0,fallbackPlacements:it,fallbackStrategy:J="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:ht=!0,...Tt}=Ri(l,o);if((e=h.arrow)!=null&&e.alignmentOffset)return{};let bt=zr(n),xt=li(T),kt=zr(T)===T,Gt=await(L.isRTL==null?void 0:L.isRTL($.floating)),Rt=it||(kt||!ht?[Ps(T)]:Um(T)),Dt=tt!=="none";!it&&Dt&&Rt.push(...Gm(T,ht,tt,Gt));let Te=[T,...Rt],ee=await bn(o,Tt),Ze=[],Me=((s=h.flip)==null?void 0:s.overflows)||[];if(W&&Ze.push(ee[bt]),K){let At=Bm(n,p,Gt);Ze.push(ee[At[0]],ee[At[1]])}if(Me=[...Me,{placement:n,overflows:Ze}],!Ze.every(At=>At<=0)){var Fe,Je;let At=(((Fe=h.flip)==null?void 0:Fe.index)||0)+1,he=Te[At];if(he)return{data:{index:At,overflows:Me},reset:{placement:he}};let $e=(Je=Me.filter(tr=>tr.overflows[0]<=0).sort((tr,Tr)=>tr.overflows[1]-Tr.overflows[1])[0])==null?void 0:Je.placement;if(!$e)switch(J){case"bestFit":{var Qe;let tr=(Qe=Me.filter(Tr=>{if(Dt){let ze=li(Tr.placement);return ze===xt||ze==="y"}return!0}).map(Tr=>[Tr.placement,Tr.overflows.filter(ze=>ze>0).reduce((ze,aa)=>ze+aa,0)]).sort((Tr,ze)=>Tr[1]-ze[1])[0])==null?void 0:Qe[0];tr&&($e=tr);break}case"initialPlacement":$e=T;break}if(n!==$e)return{reset:{placement:$e}}}return{}}}};async function wg(l,o){let{placement:e,platform:s,elements:n}=l,h=await(s.isRTL==null?void 0:s.isRTL(n.floating)),p=zr(e),T=Oi(e),L=li(e)==="y",$=["left","top"].includes(p)?-1:1,W=h&&L?-1:1,K=Ri(o,l),{mainAxis:it,crossAxis:J,alignmentAxis:tt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return T&&typeof tt=="number"&&(J=T==="end"?tt*-1:tt),L?{x:J*W,y:it*$}:{x:it*$,y:J*W}}var qm=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(o){var e,s;let{x:n,y:h,placement:p,middlewareData:T}=o,L=await wg(o,l);return p===((e=T.offset)==null?void 0:e.placement)&&(s=T.arrow)!=null&&s.alignmentOffset?{}:{x:n+L.x,y:h+L.y,data:{...L,placement:p}}}}},Km=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:p=!1,limiter:T={fn:Tt=>{let{x:bt,y:xt}=Tt;return{x:bt,y:xt}}},...L}=Ri(l,o),$={x:e,y:s},W=await bn(o,L),K=li(zr(n)),it=rc(K),J=$[it],tt=$[K];if(h){let Tt=it==="y"?"top":"left",bt=it==="y"?"bottom":"right",xt=J+W[Tt],kt=J-W[bt];J=fn(xt,J,kt)}if(p){let Tt=K==="y"?"top":"left",bt=K==="y"?"bottom":"right",xt=tt+W[Tt],kt=tt-W[bt];tt=fn(xt,tt,kt)}let ht=T.fn({...o,[it]:J,[K]:tt});return{...ht,data:{x:ht.x-e,y:ht.y-s,enabled:{[it]:h,[K]:p}}}}}};var Xm=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(o){var e,s;let{placement:n,rects:h,platform:p,elements:T}=o,{apply:L=()=>{},...$}=Ri(l,o),W=await bn(o,$),K=zr(n),it=Oi(n),J=li(n)==="y",{width:tt,height:ht}=h.floating,Tt,bt;K==="top"||K==="bottom"?(Tt=K,bt=it===(await(p.isRTL==null?void 0:p.isRTL(T.floating))?"start":"end")?"left":"right"):(bt=K,Tt=it==="end"?"top":"bottom");let xt=ht-W.top-W.bottom,kt=tt-W.left-W.right,Gt=yr(ht-W[Tt],xt),Rt=yr(tt-W[bt],kt),Dt=!o.middlewareData.shift,Te=Gt,ee=Rt;if((e=o.middlewareData.shift)!=null&&e.enabled.x&&(ee=kt),(s=o.middlewareData.shift)!=null&&s.enabled.y&&(Te=xt),Dt&&!it){let Me=ue(W.left,0),Fe=ue(W.right,0),Je=ue(W.top,0),Qe=ue(W.bottom,0);J?ee=tt-2*(Me!==0||Fe!==0?Me+Fe:ue(W.left,W.right)):Te=ht-2*(Je!==0||Qe!==0?Je+Qe:ue(W.top,W.bottom))}await L({...o,availableWidth:ee,availableHeight:Te});let Ze=await p.getDimensions(T.floating);return tt!==Ze.width||ht!==Ze.height?{reset:{rects:!0}}:{}}}};function yn(){return typeof window<"u"}function Di(l){return Jm(l)?(l.nodeName||"").toLowerCase():"#document"}function we(l){var o;return(l==null||(o=l.ownerDocument)==null?void 0:o.defaultView)||window}function nr(l){var o;return(o=(Jm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:o.documentElement}function Jm(l){return yn()?l instanceof Node||l instanceof we(l).Node:!1}function Ge(l){return yn()?l instanceof Element||l instanceof we(l).Element:!1}function lr(l){return yn()?l instanceof HTMLElement||l instanceof we(l).HTMLElement:!1}function Zm(l){return!yn()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof we(l).ShadowRoot}function No(l){let{overflow:o,overflowX:e,overflowY:s,display:n}=He(l);return/auto|scroll|overlay|hidden|clip/.test(o+s+e)&&!["inline","contents"].includes(n)}function Qm(l){return["table","td","th"].includes(Di(l))}function $s(l){return[":popover-open",":modal"].some(o=>{try{return l.matches(o)}catch{return!1}})}function En(l){let o=Tn(),e=Ge(l)?He(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 tp(l){let o=Vr(l);for(;lr(o)&&!Fi(o);){if(En(o))return o;if($s(o))return null;o=Vr(o)}return null}function Tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fi(l){return["html","body","#document"].includes(Di(l))}function He(l){return we(l).getComputedStyle(l)}function zs(l){return Ge(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Vr(l){if(Di(l)==="html")return l;let o=l.assignedSlot||l.parentNode||Zm(l)&&l.host||nr(l);return Zm(o)?o.host:o}function ep(l){let o=Vr(l);return Fi(o)?l.ownerDocument?l.ownerDocument.body:l.body:lr(o)&&No(o)?o:ep(o)}function Lo(l,o,e){var s;o===void 0&&(o=[]),e===void 0&&(e=!0);let n=ep(l),h=n===((s=l.ownerDocument)==null?void 0:s.body),p=we(n);if(h){let T=xn(p);return o.concat(p,p.visualViewport||[],No(n)?n:[],T&&e?Lo(T):[])}return o.concat(n,Lo(n,[],e))}function xn(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function op(l){let o=He(l),e=parseFloat(o.width)||0,s=parseFloat(o.height)||0,n=lr(l),h=n?l.offsetWidth:e,p=n?l.offsetHeight:s,T=Ds(e)!==h||Ds(s)!==p;return T&&(e=h,s=p),{width:e,height:s,$:T}}function sc(l){return Ge(l)?l:l.contextElement}function Mo(l){let o=sc(l);if(!lr(o))return ar(1);let e=o.getBoundingClientRect(),{width:s,height:n,$:h}=op(o),p=(h?Ds(e.width):e.width)/s,T=(h?Ds(e.height):e.height)/n;return(!p||!Number.isFinite(p))&&(p=1),(!T||!Number.isFinite(T))&&(T=1),{x:p,y:T}}var Lg=ar(0);function sp(l){let o=we(l);return!Tn()||!o.visualViewport?Lg:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Ng(l,o,e){return o===void 0&&(o=!1),!e||o&&e!==we(l)?!1:o}function $i(l,o,e,s){o===void 0&&(o=!1),e===void 0&&(e=!1);let n=l.getBoundingClientRect(),h=sc(l),p=ar(1);o&&(s?Ge(s)&&(p=Mo(s)):p=Mo(l));let T=Ng(h,e,s)?sp(h):ar(0),L=(n.left+T.x)/p.x,$=(n.top+T.y)/p.y,W=n.width/p.x,K=n.height/p.y;if(h){let it=we(h),J=s&&Ge(s)?we(s):s,tt=it,ht=xn(tt);for(;ht&&s&&J!==tt;){let Tt=Mo(ht),bt=ht.getBoundingClientRect(),xt=He(ht),kt=bt.left+(ht.clientLeft+parseFloat(xt.paddingLeft))*Tt.x,Gt=bt.top+(ht.clientTop+parseFloat(xt.paddingTop))*Tt.y;L*=Tt.x,$*=Tt.y,W*=Tt.x,K*=Tt.y,L+=kt,$+=Gt,tt=we(ht),ht=xn(tt)}}return Pi({width:W,height:K,x:L,y:$})}function ac(l,o){let e=zs(l).scrollLeft;return o?o.left+e:$i(nr(l)).left+e}function ap(l,o,e){e===void 0&&(e=!1);let s=l.getBoundingClientRect(),n=s.left+o.scrollLeft-(e?0:ac(l,s)),h=s.top+o.scrollTop;return{x:n,y:h}}function Mg(l){let{elements:o,rect:e,offsetParent:s,strategy:n}=l,h=n==="fixed",p=nr(s),T=o?$s(o.floating):!1;if(s===p||T&&h)return e;let L={scrollLeft:0,scrollTop:0},$=ar(1),W=ar(0),K=lr(s);if((K||!K&&!h)&&((Di(s)!=="body"||No(p))&&(L=zs(s)),lr(s))){let J=$i(s);$=Mo(s),W.x=J.x+s.clientLeft,W.y=J.y+s.clientTop}let it=p&&!K&&!h?ap(p,L,!0):ar(0);return{width:e.width*$.x,height:e.height*$.y,x:e.x*$.x-L.scrollLeft*$.x+W.x+it.x,y:e.y*$.y-L.scrollTop*$.y+W.y+it.y}}function Rg(l){return Array.from(l.getClientRects())}function Og(l){let o=nr(l),e=zs(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),p=-e.scrollLeft+ac(l),T=-e.scrollTop;return He(s).direction==="rtl"&&(p+=ue(o.clientWidth,s.clientWidth)-n),{width:n,height:h,x:p,y:T}}function Pg(l,o){let e=we(l),s=nr(l),n=e.visualViewport,h=s.clientWidth,p=s.clientHeight,T=0,L=0;if(n){h=n.width,p=n.height;let $=Tn();(!$||$&&o==="fixed")&&(T=n.offsetLeft,L=n.offsetTop)}return{width:h,height:p,x:T,y:L}}function Dg(l,o){let e=$i(l,!0,o==="fixed"),s=e.top+l.clientTop,n=e.left+l.clientLeft,h=lr(l)?Mo(l):ar(1),p=l.clientWidth*h.x,T=l.clientHeight*h.y,L=n*h.x,$=s*h.y;return{width:p,height:T,x:L,y:$}}function rp(l,o,e){let s;if(o==="viewport")s=Pg(l,e);else if(o==="document")s=Og(nr(l));else if(Ge(o))s=Dg(o,e);else{let n=sp(l);s={x:o.x-n.x,y:o.y-n.y,width:o.width,height:o.height}}return Pi(s)}function np(l,o){let e=Vr(l);return e===o||!Ge(e)||Fi(e)?!1:He(e).position==="fixed"||np(e,o)}function Fg(l,o){let e=o.get(l);if(e)return e;let s=Lo(l,[],!1).filter(T=>Ge(T)&&Di(T)!=="body"),n=null,h=He(l).position==="fixed",p=h?Vr(l):l;for(;Ge(p)&&!Fi(p);){let T=He(p),L=En(p);!L&&T.position==="fixed"&&(n=null),(h?!L&&!n:!L&&T.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||No(p)&&!L&&np(l,p))?s=s.filter(W=>W!==p):n=T,p=Vr(p)}return o.set(l,s),s}function $g(l){let{element:o,boundary:e,rootBoundary:s,strategy:n}=l,p=[...e==="clippingAncestors"?$s(o)?[]:Fg(o,this._c):[].concat(e),s],T=p[0],L=p.reduce(($,W)=>{let K=rp(o,W,n);return $.top=ue(K.top,$.top),$.right=yr(K.right,$.right),$.bottom=yr(K.bottom,$.bottom),$.left=ue(K.left,$.left),$},rp(o,T,n));return{width:L.right-L.left,height:L.bottom-L.top,x:L.left,y:L.top}}function zg(l){let{width:o,height:e}=op(l);return{width:o,height:e}}function Vg(l,o,e){let s=lr(o),n=nr(o),h=e==="fixed",p=$i(l,!0,h,o),T={scrollLeft:0,scrollTop:0},L=ar(0);if(s||!s&&!h)if((Di(o)!=="body"||No(n))&&(T=zs(o)),s){let it=$i(o,!0,h,o);L.x=it.x+o.clientLeft,L.y=it.y+o.clientTop}else n&&(L.x=ac(n));let $=n&&!s&&!h?ap(n,T):ar(0),W=p.left+T.scrollLeft-L.x-$.x,K=p.top+T.scrollTop-L.y-$.y;return{x:W,y:K,width:p.width,height:p.height}}function oc(l){return He(l).position==="static"}function ip(l,o){if(!lr(l)||He(l).position==="fixed")return null;if(o)return o(l);let e=l.offsetParent;return nr(l)===e&&(e=e.ownerDocument.body),e}function lp(l,o){let e=we(l);if($s(l))return e;if(!lr(l)){let n=Vr(l);for(;n&&!Fi(n);){if(Ge(n)&&!oc(n))return n;n=Vr(n)}return e}let s=ip(l,o);for(;s&&Qm(s)&&oc(s);)s=ip(s,o);return s&&Fi(s)&&oc(s)&&!En(s)?e:s||tp(l)||e}var Bg=async function(l){let o=this.getOffsetParent||lp,e=this.getDimensions,s=await e(l.floating);return{reference:Vg(l.reference,await o(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Ug(l){return He(l).direction==="rtl"}var Gg={convertOffsetParentRelativeRectToViewportRelativeRect:Mg,getDocumentElement:nr,getClippingRect:$g,getOffsetParent:lp,getElementRects:Bg,getClientRects:Rg,getDimensions:zg,getScale:Mo,isElement:Ge,isRTL:Ug};function Hg(l,o){let e=null,s,n=nr(l);function h(){var T;clearTimeout(s),(T=e)==null||T.disconnect(),e=null}function p(T,L){T===void 0&&(T=!1),L===void 0&&(L=1),h();let{left:$,top:W,width:K,height:it}=l.getBoundingClientRect();if(T||o(),!K||!it)return;let J=Fs(W),tt=Fs(n.clientWidth-($+K)),ht=Fs(n.clientHeight-(W+it)),Tt=Fs($),xt={rootMargin:-J+"px "+-tt+"px "+-ht+"px "+-Tt+"px",threshold:ue(0,yr(1,L))||1},kt=!0;function Gt(Rt){let Dt=Rt[0].intersectionRatio;if(Dt!==L){if(!kt)return p();Dt?p(!1,Dt):s=setTimeout(()=>{p(!1,1e-7)},1e3)}kt=!1}try{e=new IntersectionObserver(Gt,{...xt,root:n.ownerDocument})}catch{e=new IntersectionObserver(Gt,xt)}e.observe(l)}return p(!0),h}function cp(l,o,e,s){s===void 0&&(s={});let{ancestorScroll:n=!0,ancestorResize:h=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:T=typeof IntersectionObserver=="function",animationFrame:L=!1}=s,$=sc(l),W=n||h?[...$?Lo($):[],...Lo(o)]:[];W.forEach(bt=>{n&&bt.addEventListener("scroll",e,{passive:!0}),h&&bt.addEventListener("resize",e)});let K=$&&T?Hg($,e):null,it=-1,J=null;p&&(J=new ResizeObserver(bt=>{let[xt]=bt;xt&&xt.target===$&&J&&(J.unobserve(o),cancelAnimationFrame(it),it=requestAnimationFrame(()=>{var kt;(kt=J)==null||kt.observe(o)})),e()}),$&&!L&&J.observe($),J.observe(o));let tt,ht=L?$i(l):null;L&&Tt();function Tt(){let bt=$i(l);ht&&(bt.x!==ht.x||bt.y!==ht.y||bt.width!==ht.width||bt.height!==ht.height)&&e(),ht=bt,tt=requestAnimationFrame(Tt)}return e(),()=>{var bt;W.forEach(xt=>{n&&xt.removeEventListener("scroll",e),h&&xt.removeEventListener("resize",e)}),K==null||K(),(bt=J)==null||bt.disconnect(),J=null,L&&cancelAnimationFrame(tt)}}var dp=qm;var hp=Km,mp=Ym,pp=Xm;var up=Wm;var fp=(l,o,e)=>{let s=new Map,n={platform:Gg,...e},h={...n.platform,_c:s};return jm(l,o,{...n,platform:h})};var Ro=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(e=>{e!==o&&e.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let e=this.stackArray.pop();e&&(e.setIsFocusTrapActivated(!0),this.addKeydownListener(e.handleTabKeydown.bind(e)))}}};Ro.stack=new Set,Ro.currentKeydownListener=null;var An=l=>{class o extends l{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(n){this.isFocusTrapActivated=n}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Ro.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Ro.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(n){return n.getClientRects().length===0}hasZeroDimensions(n){let{width:h,height:p}=n.getBoundingClientRect(),{offsetWidth:T,offsetHeight:L}=n;return T+L+p+h===0}isNotVisible(n){return this.hasZeroDimensions(n)||this.hasNoClientRects(n)}hasHiddenStyle(n){let{display:h,opacity:p,visibility:T}=n.style;return h==="none"||p==="0"||T==="hidden"||T==="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)}isDisabled(n){return n.disabled}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)||this.isDisabled(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(T=>{let L=T;this.isFocusable(L)&&h.add(L),L.shadowRoot?this.findFocusable(L.shadowRoot,h):L.tagName==="SLOT"?L.assignedElements({flatten:!0}).forEach(W=>{W instanceof HTMLElement&&this.findFocusable(W,h)}):this.findFocusable(L,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(n=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[n]&&(this.focusTrapIndex=n,this.focusableElements[n].focus({preventScroll:!0}))}calculateNextIndex(n,h){let{length:p}=this.focusableElements;if(n===-1)return h>0?0:p-1;let T=n+h;return this.shouldFocusTrapWrap?(T<0&&(T=p-1),T>=p&&(T=0)):(T<0&&(T=0),T>=p&&(T=p-1)),T}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.setFocusableElements(),this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),p=this.findElement(h);n.shiftKey?this.focusTrapIndex=this.calculateNextIndex(p,-1):this.focusTrapIndex=this.calculateNextIndex(p,1);let L=this.focusableElements[this.focusTrapIndex];L.tagName!=="IFRAME"&&L&&(n.preventDefault(),L.focus())}handleTabKeydown(n){this.isFocusTrapActivated&&n.key==="Tab"&&this.trapFocus(n)}}return v([E({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var _n=l=>{class o extends l{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var vp=j.constructTagName("popover"),Ut={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"},zi={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Vi={TONAL:"tonal",CONTRAST:"contrast"},Mt={PLACEMENT:Ut.BOTTOM,TRIGGER:zi.CLICK,COLOR:Vi.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,DISABLE_ARIA_HAS_POPUP:!1,PROPAGATE_EVENT_ON_ESCAPE:!1};var Bi=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 nc=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)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},fe=new nc;var jg=H`
|
1803
|
+
`],$p=Sg;var wo=class extends $t(q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return O` <slot></slot>
|
1804
|
+
<span part="radio-icon" class="icon"></span>`}};wo.styles=[...q.styles,...$p],v([E({type:Boolean,reflect:!0})],wo.prototype,"checked",2),v([E({type:Boolean,reflect:!0})],wo.prototype,"readonly",2);var ec=wo;var zp=j.constructTagName("staticradio");ec.register(zp);var Ig=ec;tc.register(mn);var kg=tc;var br=Math.min,ue=Math.max,Ds=Math.round,Fs=Math.floor,sr=l=>({x:l,y:l}),Cg={left:"right",right:"left",bottom:"top",top:"bottom"},wg={start:"end",end:"start"};function fn(l,o,e){return ue(l,br(o,e))}function Ri(l,o){return typeof l=="function"?l(o):l}function $r(l){return l.split("-")[0]}function Oi(l){return l.split("-")[1]}function rc(l){return l==="x"?"y":"x"}function vn(l){return l==="y"?"height":"width"}function ni(l){return["top","bottom"].includes($r(l))?"y":"x"}function gn(l){return rc(ni(l))}function Vp(l,o,e){e===void 0&&(e=!1);let s=Oi(l),n=gn(l),h=vn(n),m=n==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return o.reference[h]>o.floating[h]&&(m=Ps(m)),[m,Ps(m)]}function Bp(l){let o=Ps(l);return[un(l),o,un(o)]}function un(l){return l.replace(/start|end/g,o=>wg[o])}function Lg(l,o,e){let s=["left","right"],n=["right","left"],h=["top","bottom"],m=["bottom","top"];switch(l){case"top":case"bottom":return e?o?n:s:o?s:n;case"left":case"right":return o?h:m;default:return[]}}function Up(l,o,e,s){let n=Oi(l),h=Lg($r(l),e==="start",s);return n&&(h=h.map(m=>m+"-"+n),o&&(h=h.concat(h.map(un)))),h}function Ps(l){return l.replace(/left|right|bottom|top/g,o=>Cg[o])}function Ng(l){return{top:0,right:0,bottom:0,left:0,...l}}function ic(l){return typeof l!="number"?Ng(l):{top:l,right:l,bottom:l,left:l}}function Pi(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 Gp(l,o,e){let{reference:s,floating:n}=l,h=ni(o),m=gn(o),T=vn(m),L=$r(o),$=h==="y",W=s.x+s.width/2-n.width/2,K=s.y+s.height/2-n.height/2,ot=s[T]/2-n[T]/2,J;switch(L){case"top":J={x:W,y:s.y-n.height};break;case"bottom":J={x:W,y:s.y+s.height};break;case"right":J={x:s.x+s.width,y:K};break;case"left":J={x:s.x-n.width,y:K};break;default:J={x:s.x,y:s.y}}switch(Oi(o)){case"start":J[m]-=ot*(e&&$?-1:1);break;case"end":J[m]+=ot*(e&&$?-1:1);break}return J}var Hp=async(l,o,e)=>{let{placement:s="bottom",strategy:n="absolute",middleware:h=[],platform:m}=e,T=h.filter(Boolean),L=await(m.isRTL==null?void 0:m.isRTL(o)),$=await m.getElementRects({reference:l,floating:o,strategy:n}),{x:W,y:K}=Gp($,s,L),ot=s,J={},tt=0;for(let ht=0;ht<T.length;ht++){let{name:Tt,fn:yt}=T[ht],{x:xt,y:kt,data:Gt,reset:Rt}=await yt({x:W,y:K,initialPlacement:s,placement:ot,strategy:n,middlewareData:J,rects:$,platform:m,elements:{reference:l,floating:o}});W=xt!=null?xt:W,K=kt!=null?kt:K,J={...J,[Tt]:{...J[Tt],...Gt}},Rt&&tt<=50&&(tt++,typeof Rt=="object"&&(Rt.placement&&(ot=Rt.placement),Rt.rects&&($=Rt.rects===!0?await m.getElementRects({reference:l,floating:o,strategy:n}):Rt.rects),{x:W,y:K}=Gp($,ot,L)),ht=-1)}return{x:W,y:K,placement:ot,strategy:n,middlewareData:J}};async function bn(l,o){var e;o===void 0&&(o={});let{x:s,y:n,platform:h,rects:m,elements:T,strategy:L}=l,{boundary:$="clippingAncestors",rootBoundary:W="viewport",elementContext:K="floating",altBoundary:ot=!1,padding:J=0}=Ri(o,l),tt=ic(J),Tt=T[ot?K==="floating"?"reference":"floating":K],yt=Pi(await h.getClippingRect({element:(e=await(h.isElement==null?void 0:h.isElement(Tt)))==null||e?Tt:Tt.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(T.floating)),boundary:$,rootBoundary:W,strategy:L})),xt=K==="floating"?{x:s,y:n,width:m.floating.width,height:m.floating.height}:m.reference,kt=await(h.getOffsetParent==null?void 0:h.getOffsetParent(T.floating)),Gt=await(h.isElement==null?void 0:h.isElement(kt))?await(h.getScale==null?void 0:h.getScale(kt))||{x:1,y:1}:{x:1,y:1},Rt=Pi(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:T,rect:xt,offsetParent:kt,strategy:L}):xt);return{top:(yt.top-Rt.top+tt.top)/Gt.y,bottom:(Rt.bottom-yt.bottom+tt.bottom)/Gt.y,left:(yt.left-Rt.left+tt.left)/Gt.x,right:(Rt.right-yt.right+tt.right)/Gt.x}}var jp=l=>({name:"arrow",options:l,async fn(o){let{x:e,y:s,placement:n,rects:h,platform:m,elements:T,middlewareData:L}=o,{element:$,padding:W=0}=Ri(l,o)||{};if($==null)return{};let K=ic(W),ot={x:e,y:s},J=gn(n),tt=vn(J),ht=await m.getDimensions($),Tt=J==="y",yt=Tt?"top":"left",xt=Tt?"bottom":"right",kt=Tt?"clientHeight":"clientWidth",Gt=h.reference[tt]+h.reference[J]-ot[J]-h.floating[tt],Rt=ot[J]-h.reference[J],Dt=await(m.getOffsetParent==null?void 0:m.getOffsetParent($)),Ee=Dt?Dt[kt]:0;(!Ee||!await(m.isElement==null?void 0:m.isElement(Dt)))&&(Ee=T.floating[kt]||h.floating[tt]);let ee=Gt/2-Rt/2,Xe=Ee/2-ht[tt]/2-1,Ne=br(K[yt],Xe),De=br(K[xt],Xe),Ze=Ne,Je=Ee-ht[tt]-De,At=Ee/2-ht[tt]/2+ee,he=fn(Ze,At,Je),Fe=!L.arrow&&Oi(n)!=null&&At!==he&&h.reference[tt]/2-(At<Ze?Ne:De)-ht[tt]/2<0,Qe=Fe?At<Ze?At-Ze:At-Je:0;return{[J]:ot[J]+Qe,data:{[J]:he,centerOffset:At-he-Qe,...Fe&&{alignmentOffset:Qe}},reset:Fe}}});var Wp=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(o){var e,s;let{placement:n,middlewareData:h,rects:m,initialPlacement:T,platform:L,elements:$}=o,{mainAxis:W=!0,crossAxis:K=!0,fallbackPlacements:ot,fallbackStrategy:J="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:ht=!0,...Tt}=Ri(l,o);if((e=h.arrow)!=null&&e.alignmentOffset)return{};let yt=$r(n),xt=ni(T),kt=$r(T)===T,Gt=await(L.isRTL==null?void 0:L.isRTL($.floating)),Rt=ot||(kt||!ht?[Ps(T)]:Bp(T)),Dt=tt!=="none";!ot&&Dt&&Rt.push(...Up(T,ht,tt,Gt));let Ee=[T,...Rt],ee=await bn(o,Tt),Xe=[],Ne=((s=h.flip)==null?void 0:s.overflows)||[];if(W&&Xe.push(ee[yt]),K){let At=Vp(n,m,Gt);Xe.push(ee[At[0]],ee[At[1]])}if(Ne=[...Ne,{placement:n,overflows:Xe}],!Xe.every(At=>At<=0)){var De,Ze;let At=(((De=h.flip)==null?void 0:De.index)||0)+1,he=Ee[At];if(he)return{data:{index:At,overflows:Ne},reset:{placement:he}};let Fe=(Ze=Ne.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Er)=>Qe.overflows[1]-Er.overflows[1])[0])==null?void 0:Ze.placement;if(!Fe)switch(J){case"bestFit":{var Je;let Qe=(Je=Ne.filter(Er=>{if(Dt){let $e=ni(Er.placement);return $e===xt||$e==="y"}return!0}).map(Er=>[Er.placement,Er.overflows.filter($e=>$e>0).reduce(($e,aa)=>$e+aa,0)]).sort((Er,$e)=>Er[1]-$e[1])[0])==null?void 0:Je[0];Qe&&(Fe=Qe);break}case"initialPlacement":Fe=T;break}if(n!==Fe)return{reset:{placement:Fe}}}return{}}}};async function Mg(l,o){let{placement:e,platform:s,elements:n}=l,h=await(s.isRTL==null?void 0:s.isRTL(n.floating)),m=$r(e),T=Oi(e),L=ni(e)==="y",$=["left","top"].includes(m)?-1:1,W=h&&L?-1:1,K=Ri(o,l),{mainAxis:ot,crossAxis:J,alignmentAxis:tt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return T&&typeof tt=="number"&&(J=T==="end"?tt*-1:tt),L?{x:J*W,y:ot*$}:{x:ot*$,y:J*W}}var Yp=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(o){var e,s;let{x:n,y:h,placement:m,middlewareData:T}=o,L=await Mg(o,l);return m===((e=T.offset)==null?void 0:e.placement)&&(s=T.arrow)!=null&&s.alignmentOffset?{}:{x:n+L.x,y:h+L.y,data:{...L,placement:m}}}}},qp=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:m=!1,limiter:T={fn:Tt=>{let{x:yt,y:xt}=Tt;return{x:yt,y:xt}}},...L}=Ri(l,o),$={x:e,y:s},W=await bn(o,L),K=ni($r(n)),ot=rc(K),J=$[ot],tt=$[K];if(h){let Tt=ot==="y"?"top":"left",yt=ot==="y"?"bottom":"right",xt=J+W[Tt],kt=J-W[yt];J=fn(xt,J,kt)}if(m){let Tt=K==="y"?"top":"left",yt=K==="y"?"bottom":"right",xt=tt+W[Tt],kt=tt-W[yt];tt=fn(xt,tt,kt)}let ht=T.fn({...o,[ot]:J,[K]:tt});return{...ht,data:{x:ht.x-e,y:ht.y-s,enabled:{[ot]:h,[K]:m}}}}}};var Kp=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(o){var e,s;let{placement:n,rects:h,platform:m,elements:T}=o,{apply:L=()=>{},...$}=Ri(l,o),W=await bn(o,$),K=$r(n),ot=Oi(n),J=ni(n)==="y",{width:tt,height:ht}=h.floating,Tt,yt;K==="top"||K==="bottom"?(Tt=K,yt=ot===(await(m.isRTL==null?void 0:m.isRTL(T.floating))?"start":"end")?"left":"right"):(yt=K,Tt=ot==="end"?"top":"bottom");let xt=ht-W.top-W.bottom,kt=tt-W.left-W.right,Gt=br(ht-W[Tt],xt),Rt=br(tt-W[yt],kt),Dt=!o.middlewareData.shift,Ee=Gt,ee=Rt;if((e=o.middlewareData.shift)!=null&&e.enabled.x&&(ee=kt),(s=o.middlewareData.shift)!=null&&s.enabled.y&&(Ee=xt),Dt&&!ot){let Ne=ue(W.left,0),De=ue(W.right,0),Ze=ue(W.top,0),Je=ue(W.bottom,0);J?ee=tt-2*(Ne!==0||De!==0?Ne+De:ue(W.left,W.right)):Ee=ht-2*(Ze!==0||Je!==0?Ze+Je:ue(W.top,W.bottom))}await L({...o,availableWidth:ee,availableHeight:Ee});let Xe=await m.getDimensions(T.floating);return tt!==Xe.width||ht!==Xe.height?{reset:{rects:!0}}:{}}}};function yn(){return typeof window<"u"}function Di(l){return Zp(l)?(l.nodeName||"").toLowerCase():"#document"}function Ce(l){var o;return(l==null||(o=l.ownerDocument)==null?void 0:o.defaultView)||window}function ar(l){var o;return(o=(Zp(l)?l.ownerDocument:l.document)||window.document)==null?void 0:o.documentElement}function Zp(l){return yn()?l instanceof Node||l instanceof Ce(l).Node:!1}function Ue(l){return yn()?l instanceof Element||l instanceof Ce(l).Element:!1}function nr(l){return yn()?l instanceof HTMLElement||l instanceof Ce(l).HTMLElement:!1}function Xp(l){return!yn()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Ce(l).ShadowRoot}function No(l){let{overflow:o,overflowX:e,overflowY:s,display:n}=Ge(l);return/auto|scroll|overlay|hidden|clip/.test(o+s+e)&&!["inline","contents"].includes(n)}function Jp(l){return["table","td","th"].includes(Di(l))}function $s(l){return[":popover-open",":modal"].some(o=>{try{return l.matches(o)}catch{return!1}})}function En(l){let o=Tn(),e=Ue(l)?Ge(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 Qp(l){let o=zr(l);for(;nr(o)&&!Fi(o);){if(En(o))return o;if($s(o))return null;o=zr(o)}return null}function Tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fi(l){return["html","body","#document"].includes(Di(l))}function Ge(l){return Ce(l).getComputedStyle(l)}function zs(l){return Ue(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function zr(l){if(Di(l)==="html")return l;let o=l.assignedSlot||l.parentNode||Xp(l)&&l.host||ar(l);return Xp(o)?o.host:o}function tm(l){let o=zr(l);return Fi(o)?l.ownerDocument?l.ownerDocument.body:l.body:nr(o)&&No(o)?o:tm(o)}function Lo(l,o,e){var s;o===void 0&&(o=[]),e===void 0&&(e=!0);let n=tm(l),h=n===((s=l.ownerDocument)==null?void 0:s.body),m=Ce(n);if(h){let T=xn(m);return o.concat(m,m.visualViewport||[],No(n)?n:[],T&&e?Lo(T):[])}return o.concat(n,Lo(n,[],e))}function xn(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function im(l){let o=Ge(l),e=parseFloat(o.width)||0,s=parseFloat(o.height)||0,n=nr(l),h=n?l.offsetWidth:e,m=n?l.offsetHeight:s,T=Ds(e)!==h||Ds(s)!==m;return T&&(e=h,s=m),{width:e,height:s,$:T}}function sc(l){return Ue(l)?l:l.contextElement}function Mo(l){let o=sc(l);if(!nr(o))return sr(1);let e=o.getBoundingClientRect(),{width:s,height:n,$:h}=im(o),m=(h?Ds(e.width):e.width)/s,T=(h?Ds(e.height):e.height)/n;return(!m||!Number.isFinite(m))&&(m=1),(!T||!Number.isFinite(T))&&(T=1),{x:m,y:T}}var Rg=sr(0);function om(l){let o=Ce(l);return!Tn()||!o.visualViewport?Rg:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Og(l,o,e){return o===void 0&&(o=!1),!e||o&&e!==Ce(l)?!1:o}function $i(l,o,e,s){o===void 0&&(o=!1),e===void 0&&(e=!1);let n=l.getBoundingClientRect(),h=sc(l),m=sr(1);o&&(s?Ue(s)&&(m=Mo(s)):m=Mo(l));let T=Og(h,e,s)?om(h):sr(0),L=(n.left+T.x)/m.x,$=(n.top+T.y)/m.y,W=n.width/m.x,K=n.height/m.y;if(h){let ot=Ce(h),J=s&&Ue(s)?Ce(s):s,tt=ot,ht=xn(tt);for(;ht&&s&&J!==tt;){let Tt=Mo(ht),yt=ht.getBoundingClientRect(),xt=Ge(ht),kt=yt.left+(ht.clientLeft+parseFloat(xt.paddingLeft))*Tt.x,Gt=yt.top+(ht.clientTop+parseFloat(xt.paddingTop))*Tt.y;L*=Tt.x,$*=Tt.y,W*=Tt.x,K*=Tt.y,L+=kt,$+=Gt,tt=Ce(ht),ht=xn(tt)}}return Pi({width:W,height:K,x:L,y:$})}function ac(l,o){let e=zs(l).scrollLeft;return o?o.left+e:$i(ar(l)).left+e}function sm(l,o,e){e===void 0&&(e=!1);let s=l.getBoundingClientRect(),n=s.left+o.scrollLeft-(e?0:ac(l,s)),h=s.top+o.scrollTop;return{x:n,y:h}}function Pg(l){let{elements:o,rect:e,offsetParent:s,strategy:n}=l,h=n==="fixed",m=ar(s),T=o?$s(o.floating):!1;if(s===m||T&&h)return e;let L={scrollLeft:0,scrollTop:0},$=sr(1),W=sr(0),K=nr(s);if((K||!K&&!h)&&((Di(s)!=="body"||No(m))&&(L=zs(s)),nr(s))){let J=$i(s);$=Mo(s),W.x=J.x+s.clientLeft,W.y=J.y+s.clientTop}let ot=m&&!K&&!h?sm(m,L,!0):sr(0);return{width:e.width*$.x,height:e.height*$.y,x:e.x*$.x-L.scrollLeft*$.x+W.x+ot.x,y:e.y*$.y-L.scrollTop*$.y+W.y+ot.y}}function Dg(l){return Array.from(l.getClientRects())}function Fg(l){let o=ar(l),e=zs(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),m=-e.scrollLeft+ac(l),T=-e.scrollTop;return Ge(s).direction==="rtl"&&(m+=ue(o.clientWidth,s.clientWidth)-n),{width:n,height:h,x:m,y:T}}function $g(l,o){let e=Ce(l),s=ar(l),n=e.visualViewport,h=s.clientWidth,m=s.clientHeight,T=0,L=0;if(n){h=n.width,m=n.height;let $=Tn();(!$||$&&o==="fixed")&&(T=n.offsetLeft,L=n.offsetTop)}return{width:h,height:m,x:T,y:L}}function zg(l,o){let e=$i(l,!0,o==="fixed"),s=e.top+l.clientTop,n=e.left+l.clientLeft,h=nr(l)?Mo(l):sr(1),m=l.clientWidth*h.x,T=l.clientHeight*h.y,L=n*h.x,$=s*h.y;return{width:m,height:T,x:L,y:$}}function em(l,o,e){let s;if(o==="viewport")s=$g(l,e);else if(o==="document")s=Fg(ar(l));else if(Ue(o))s=zg(o,e);else{let n=om(l);s={x:o.x-n.x,y:o.y-n.y,width:o.width,height:o.height}}return Pi(s)}function am(l,o){let e=zr(l);return e===o||!Ue(e)||Fi(e)?!1:Ge(e).position==="fixed"||am(e,o)}function Vg(l,o){let e=o.get(l);if(e)return e;let s=Lo(l,[],!1).filter(T=>Ue(T)&&Di(T)!=="body"),n=null,h=Ge(l).position==="fixed",m=h?zr(l):l;for(;Ue(m)&&!Fi(m);){let T=Ge(m),L=En(m);!L&&T.position==="fixed"&&(n=null),(h?!L&&!n:!L&&T.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||No(m)&&!L&&am(l,m))?s=s.filter(W=>W!==m):n=T,m=zr(m)}return o.set(l,s),s}function Bg(l){let{element:o,boundary:e,rootBoundary:s,strategy:n}=l,m=[...e==="clippingAncestors"?$s(o)?[]:Vg(o,this._c):[].concat(e),s],T=m[0],L=m.reduce(($,W)=>{let K=em(o,W,n);return $.top=ue(K.top,$.top),$.right=br(K.right,$.right),$.bottom=br(K.bottom,$.bottom),$.left=ue(K.left,$.left),$},em(o,T,n));return{width:L.right-L.left,height:L.bottom-L.top,x:L.left,y:L.top}}function Ug(l){let{width:o,height:e}=im(l);return{width:o,height:e}}function Gg(l,o,e){let s=nr(o),n=ar(o),h=e==="fixed",m=$i(l,!0,h,o),T={scrollLeft:0,scrollTop:0},L=sr(0);if(s||!s&&!h)if((Di(o)!=="body"||No(n))&&(T=zs(o)),s){let ot=$i(o,!0,h,o);L.x=ot.x+o.clientLeft,L.y=ot.y+o.clientTop}else n&&(L.x=ac(n));let $=n&&!s&&!h?sm(n,T):sr(0),W=m.left+T.scrollLeft-L.x-$.x,K=m.top+T.scrollTop-L.y-$.y;return{x:W,y:K,width:m.width,height:m.height}}function oc(l){return Ge(l).position==="static"}function rm(l,o){if(!nr(l)||Ge(l).position==="fixed")return null;if(o)return o(l);let e=l.offsetParent;return ar(l)===e&&(e=e.ownerDocument.body),e}function nm(l,o){let e=Ce(l);if($s(l))return e;if(!nr(l)){let n=zr(l);for(;n&&!Fi(n);){if(Ue(n)&&!oc(n))return n;n=zr(n)}return e}let s=rm(l,o);for(;s&&Jp(s)&&oc(s);)s=rm(s,o);return s&&Fi(s)&&oc(s)&&!En(s)?e:s||Qp(l)||e}var Hg=async function(l){let o=this.getOffsetParent||nm,e=this.getDimensions,s=await e(l.floating);return{reference:Gg(l.reference,await o(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function jg(l){return Ge(l).direction==="rtl"}var Wg={convertOffsetParentRelativeRectToViewportRelativeRect:Pg,getDocumentElement:ar,getClippingRect:Bg,getOffsetParent:nm,getElementRects:Hg,getClientRects:Dg,getDimensions:Ug,getScale:Mo,isElement:Ue,isRTL:jg};function Yg(l,o){let e=null,s,n=ar(l);function h(){var T;clearTimeout(s),(T=e)==null||T.disconnect(),e=null}function m(T,L){T===void 0&&(T=!1),L===void 0&&(L=1),h();let{left:$,top:W,width:K,height:ot}=l.getBoundingClientRect();if(T||o(),!K||!ot)return;let J=Fs(W),tt=Fs(n.clientWidth-($+K)),ht=Fs(n.clientHeight-(W+ot)),Tt=Fs($),xt={rootMargin:-J+"px "+-tt+"px "+-ht+"px "+-Tt+"px",threshold:ue(0,br(1,L))||1},kt=!0;function Gt(Rt){let Dt=Rt[0].intersectionRatio;if(Dt!==L){if(!kt)return m();Dt?m(!1,Dt):s=setTimeout(()=>{m(!1,1e-7)},1e3)}kt=!1}try{e=new IntersectionObserver(Gt,{...xt,root:n.ownerDocument})}catch{e=new IntersectionObserver(Gt,xt)}e.observe(l)}return m(!0),h}function lm(l,o,e,s){s===void 0&&(s={});let{ancestorScroll:n=!0,ancestorResize:h=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:T=typeof IntersectionObserver=="function",animationFrame:L=!1}=s,$=sc(l),W=n||h?[...$?Lo($):[],...Lo(o)]:[];W.forEach(yt=>{n&&yt.addEventListener("scroll",e,{passive:!0}),h&&yt.addEventListener("resize",e)});let K=$&&T?Yg($,e):null,ot=-1,J=null;m&&(J=new ResizeObserver(yt=>{let[xt]=yt;xt&&xt.target===$&&J&&(J.unobserve(o),cancelAnimationFrame(ot),ot=requestAnimationFrame(()=>{var kt;(kt=J)==null||kt.observe(o)})),e()}),$&&!L&&J.observe($),J.observe(o));let tt,ht=L?$i(l):null;L&&Tt();function Tt(){let yt=$i(l);ht&&(yt.x!==ht.x||yt.y!==ht.y||yt.width!==ht.width||yt.height!==ht.height)&&e(),ht=yt,tt=requestAnimationFrame(Tt)}return e(),()=>{var yt;W.forEach(xt=>{n&&xt.removeEventListener("scroll",e),h&&xt.removeEventListener("resize",e)}),K==null||K(),(yt=J)==null||yt.disconnect(),J=null,L&&cancelAnimationFrame(tt)}}var cm=Yp;var dm=qp,hm=Wp,pm=Kp;var mm=jp;var um=(l,o,e)=>{let s=new Map,n={platform:Wg,...e},h={...n.platform,_c:s};return Hp(l,o,{...n,platform:h})};var Ro=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(e=>{e!==o&&e.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let e=this.stackArray.pop();e&&(e.setIsFocusTrapActivated(!0),this.addKeydownListener(e.handleTabKeydown.bind(e)))}}};Ro.stack=new Set,Ro.currentKeydownListener=null;var An=l=>{class o extends l{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(n){this.isFocusTrapActivated=n}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Ro.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Ro.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(n){return n.getClientRects().length===0}hasZeroDimensions(n){let{width:h,height:m}=n.getBoundingClientRect(),{offsetWidth:T,offsetHeight:L}=n;return T+L+m+h===0}isNotVisible(n){return this.hasZeroDimensions(n)||this.hasNoClientRects(n)}hasHiddenStyle(n){let{display:h,opacity:m,visibility:T}=n.style;return h==="none"||m==="0"||T==="hidden"||T==="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)}isDisabled(n){return n.disabled}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)||this.isDisabled(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(T=>{let L=T;this.isFocusable(L)&&h.add(L),L.shadowRoot?this.findFocusable(L.shadowRoot,h):L.tagName==="SLOT"?L.assignedElements({flatten:!0}).forEach(W=>{W instanceof HTMLElement&&this.findFocusable(W,h)}):this.findFocusable(L,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(n=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[n]&&(this.focusTrapIndex=n,this.focusableElements[n].focus({preventScroll:!0}))}calculateNextIndex(n,h){let{length:m}=this.focusableElements;if(n===-1)return h>0?0:m-1;let T=n+h;return this.shouldFocusTrapWrap?(T<0&&(T=m-1),T>=m&&(T=0)):(T<0&&(T=0),T>=m&&(T=m-1)),T}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.setFocusableElements(),this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),m=this.findElement(h);n.shiftKey?this.focusTrapIndex=this.calculateNextIndex(m,-1):this.focusTrapIndex=this.calculateNextIndex(m,1);let L=this.focusableElements[this.focusTrapIndex];L.tagName!=="IFRAME"&&L&&(n.preventDefault(),L.focus())}handleTabKeydown(n){this.isFocusTrapActivated&&n.key==="Tab"&&this.trapFocus(n)}}return v([E({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var _n=l=>{class o extends l{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var fm=j.constructTagName("popover"),Ut={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"},zi={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Vi={TONAL:"tonal",CONTRAST:"contrast"},Mt={PLACEMENT:Ut.BOTTOM,TRIGGER:zi.CLICK,COLOR:Vi.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,DISABLE_ARIA_HAS_POPUP:!1,PROPAGATE_EVENT_ON_ESCAPE:!1};var Bi=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 nc=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)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},fe=new nc;var qg=H`
|
1805
1805
|
:host {
|
1806
1806
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1807
1807
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -1915,7 +1915,7 @@
|
|
1915
1915
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
1916
1916
|
border-bottom-left-radius: 100%;
|
1917
1917
|
}
|
1918
|
-
`,
|
1918
|
+
`,vm=[qg];var Sn=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===lt.DIALOG||this.popover.role===lt.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal"),this.popover.interactive&&(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)||""))}updateAriaHasPopupAttribute(){var o,e,s;this.popover.interactive&&!this.popover.disableAriaHasPopup?(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 W;if(!this.popover.arrowElement)return;let s=e.split("-")[0],n={top:"bottom",right:"left",bottom:"top",left:"right"}[s],{x:h,y:m}=o,T=this.popover.arrowElement.getBoundingClientRect(),L=(W=this.popover.arrowElement.offsetParent)==null?void 0:W.getBoundingClientRect();if(!this.arrowPixelChange){let K=L!=null&&L[n]?12-Math.abs(T[n]-L[n]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let $=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",s),Object.assign(this.popover.arrowElement.style,{left:h!=null?`${h}px`:"",top:m!=null?`${m}px`:"",[n]:`${-this.popover.arrowElement.offsetHeight/2-$}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");let s=document.createElement("style");s.textContent=`
|
1919
1919
|
.popover-backdrop {
|
1920
1920
|
position: fixed;
|
1921
1921
|
top: 0;
|
@@ -1925,7 +1925,7 @@
|
|
1925
1925
|
background: transparent;
|
1926
1926
|
z-index: ${this.popover.zIndex-1};
|
1927
1927
|
}
|
1928
|
-
`,e.appendChild(s),(o=this.popover.parentElement)==null||o.appendChild(e),this.popover.backdropElement=e}}};var It=class extends _n(An(q)){constructor(){super();this.id="";this.triggerID="";this.trigger=Mt.TRIGGER;this.placement=Mt.PLACEMENT;this.color=Mt.COLOR;this.visible=Mt.VISIBLE;this.offset=Mt.OFFSET;this.focusTrap=Mt.FOCUS_TRAP;this.preventScroll=Mt.PREVENT_SCROLL;this.showArrow=Mt.ARROW;this.closeButton=Mt.CLOSE_BUTTON;this.interactive=Mt.INTERACTIVE;this.delay=Mt.DELAY;this.hideOnEscape=Mt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Mt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Mt.HIDE_ON_BLUR;this.hideOnOutsideClick=Mt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Mt.FOCUS_BACK;this.backdrop=Mt.BACKDROP;this.flip=Mt.FLIP;this.size=Mt.SIZE;this.zIndex=Mt.Z_INDEX;this.closeButtonAriaLabel=null;this.role=Mt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Mt.DISABLE_ARIA_EXPANDED;this.disableAriaHasPopup=Mt.DISABLE_ARIA_HAS_POPUP;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isHovered=!1;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(fe.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"||(this.propagateEventOnEscape||e.stopPropagation(),e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.handleMouseEnter=()=>{this.isHovered=!0,this.showPopover()};this.handleMouseLeave=()=>{this.isHovered=!1,this.startCloseDelay()};this.handleFocusOut=()=>{this.isHovered||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=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay):(this.visible=!1,this.isTriggerClicked=!1)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Sn(this)}async firstUpdated(e){var s,n;super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,Bi.onCreatedPopover(this),this.visible&&(this.positionPopover(),this.activatePreventScroll(),this.interactive&&this.focusTrap&&(await this.updateComplete,(s=this.activateFocusTrap)==null||s.call(this),(n=this.setInitialFocus)==null||n.call(this)))}async disconnectedCallback(){var e;super.disconnectedCallback(),this.removeEventListeners(),(e=this.deactivateFocusTrap)==null||e.call(this),this.deactivatePreventScroll(),Bi.onDestroyedPopover(this),fe.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.handleMouseEnter),this.triggerElement.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.showPopover)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.handleFocusOut)),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.handleMouseEnter),this.triggerElement.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.handleFocusOut),e==null||e.removeEventListener("mouseenter",this.showPopover),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(Ut).includes(this.placement)?this.placement:Mt.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let n=this.trigger.split(" ").filter(h=>Object.values(zi).includes(h));this.setAttribute("trigger",n.length>0?this.trigger:Mt.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Vi).includes(this.color)?this.color:Mt.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")||e.has("disableAriaHasPopup"))&&this.utils.updateAriaHasPopupAttribute(),e.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),e.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(e,s){var n,h,
|
1928
|
+
`,e.appendChild(s),(o=this.popover.parentElement)==null||o.appendChild(e),this.popover.backdropElement=e}}};var It=class extends _n(An(q)){constructor(){super();this.id="";this.triggerID="";this.trigger=Mt.TRIGGER;this.placement=Mt.PLACEMENT;this.color=Mt.COLOR;this.visible=Mt.VISIBLE;this.offset=Mt.OFFSET;this.focusTrap=Mt.FOCUS_TRAP;this.preventScroll=Mt.PREVENT_SCROLL;this.showArrow=Mt.ARROW;this.closeButton=Mt.CLOSE_BUTTON;this.interactive=Mt.INTERACTIVE;this.delay=Mt.DELAY;this.hideOnEscape=Mt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Mt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Mt.HIDE_ON_BLUR;this.hideOnOutsideClick=Mt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Mt.FOCUS_BACK;this.backdrop=Mt.BACKDROP;this.flip=Mt.FLIP;this.size=Mt.SIZE;this.zIndex=Mt.Z_INDEX;this.closeButtonAriaLabel=null;this.role=Mt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Mt.DISABLE_ARIA_EXPANDED;this.disableAriaHasPopup=Mt.DISABLE_ARIA_HAS_POPUP;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isHovered=!1;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(fe.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"||(this.propagateEventOnEscape||e.stopPropagation(),e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.handleMouseEnter=()=>{this.isHovered=!0,this.showPopover()};this.handleMouseLeave=()=>{this.isHovered=!1,this.startCloseDelay()};this.handleFocusOut=()=>{this.isHovered||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=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay):(this.visible=!1,this.isTriggerClicked=!1)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Sn(this)}async firstUpdated(e){var s,n;super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,Bi.onCreatedPopover(this),this.visible&&(this.positionPopover(),this.activatePreventScroll(),this.interactive&&this.focusTrap&&(await this.updateComplete,(s=this.activateFocusTrap)==null||s.call(this),(n=this.setInitialFocus)==null||n.call(this)))}async disconnectedCallback(){var e;super.disconnectedCallback(),this.removeEventListeners(),(e=this.deactivateFocusTrap)==null||e.call(this),this.deactivatePreventScroll(),Bi.onDestroyedPopover(this),fe.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.handleMouseEnter),this.triggerElement.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.showPopover)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.handleFocusOut)),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.handleMouseEnter),this.triggerElement.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.handleFocusOut),e==null||e.removeEventListener("mouseenter",this.showPopover),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(Ut).includes(this.placement)?this.placement:Mt.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let n=this.trigger.split(" ").filter(h=>Object.values(zi).includes(h));this.setAttribute("trigger",n.length>0?this.trigger:Mt.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Vi).includes(this.color)?this.color:Mt.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")||e.has("disableAriaHasPopup"))&&this.utils.updateAriaHasPopupAttribute(),e.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),e.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(e,s){var n,h,m,T,L,$,W;e===s||!this.triggerElement||(s?(fe.peek()!==this&&fe.push(this),this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),(n=this.triggerElement)==null||n.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.interactive&&this.focusTrap&&(await this.updateComplete,(h=this.activateFocusTrap)==null||h.call(this),(m=this.setInitialFocus)==null||m.call(this)),Bi.onShowPopover(this)):(fe.peek()===this&&fe.pop(),this.backdropElement&&((T=this.backdropElement)==null||T.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&&(this.removeEventListener("keydown",this.onEscapeKeydown),(L=this.triggerElement)==null||L.removeEventListener("keydown",this.onEscapeKeydown)),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive||this.triggerElement.removeAttribute("aria-haspopup"),this.deactivatePreventScroll(),($=this.deactivateFocusTrap)==null||$.call(this),this.focusBackToTrigger&&((W=this.triggerElement)==null||W.focus()),Bi.onHidePopover(this)))}positionPopover(){if(!this.triggerElement)return;let e=[dm()],s=this.offset;if(this.flip&&e.push(hm()),this.size){let n=this.renderRoot.querySelector('[part="popover-content"]');e.push(pm({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,h=Math.sqrt(2*n**2)/2;s+=h,e.push(mm({element:this.arrowElement,padding:12}))}e.push(cm(s)),lm(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:n,y:h,middlewareData:m,placement:T}=await um(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(n,h),m.arrow&&this.arrowElement&&this.utils.updateArrowStyle(m.arrow,T),this.trigger.includes("mouseenter")&&this.interactive&&this.utils.setupHoverBridge(T)})}render(){return O`
|
1929
1929
|
<div class="popover-hover-bridge"></div>
|
1930
1930
|
${this.closeButton?O` <mdc-button
|
1931
1931
|
class="popover-close"
|
@@ -1939,7 +1939,7 @@
|
|
1939
1939
|
<div part="popover-content">
|
1940
1940
|
<slot></slot>
|
1941
1941
|
</div>
|
1942
|
-
`}};It.styles=[...q.styles,...
|
1942
|
+
`}};It.styles=[...q.styles,...vm],v([E({type:String,reflect:!0})],It.prototype,"id",2),v([E({type:String,reflect:!0})],It.prototype,"triggerID",2),v([E({type:String,reflect:!0})],It.prototype,"trigger",2),v([E({type:String,reflect:!0})],It.prototype,"placement",2),v([E({type:String,reflect:!0})],It.prototype,"color",2),v([E({type:Boolean,reflect:!0})],It.prototype,"visible",2),v([E({type:Number,reflect:!0})],It.prototype,"offset",2),v([E({type:Boolean,reflect:!0,attribute:"focus-trap"})],It.prototype,"focusTrap",2),v([E({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],It.prototype,"preventScroll",2),v([E({type:Boolean,reflect:!0,attribute:"show-arrow"})],It.prototype,"showArrow",2),v([E({type:Boolean,reflect:!0,attribute:"close-button"})],It.prototype,"closeButton",2),v([E({type:Boolean,reflect:!0})],It.prototype,"interactive",2),v([E({type:String,reflect:!0})],It.prototype,"delay",2),v([E({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],It.prototype,"hideOnEscape",2),v([E({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],It.prototype,"propagateEventOnEscape",2),v([E({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],It.prototype,"hideOnBlur",2),v([E({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],It.prototype,"hideOnOutsideClick",2),v([E({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],It.prototype,"focusBackToTrigger",2),v([E({type:Boolean,reflect:!0})],It.prototype,"backdrop",2),v([E({type:Boolean,reflect:!0})],It.prototype,"flip",2),v([E({type:Boolean,reflect:!0})],It.prototype,"size",2),v([E({type:Number,reflect:!0,attribute:"z-index"})],It.prototype,"zIndex",2),v([E({type:String,reflect:!0,attribute:"append-to"})],It.prototype,"appendTo",2),v([E({type:String,attribute:"close-button-aria-label",reflect:!0})],It.prototype,"closeButtonAriaLabel",2),v([E({type:String,reflect:!0})],It.prototype,"role",2),v([E({type:String,reflect:!0,attribute:"aria-labelledby"})],It.prototype,"ariaLabelledby",2),v([E({type:String,reflect:!0,attribute:"aria-describedby"})],It.prototype,"ariaDescribedby",2),v([E({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],It.prototype,"disableAriaExpanded",2),v([E({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],It.prototype,"disableAriaHasPopup",2);var we=It;var gm=j.constructTagName("toggletip"),Ui={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Ut.TOP,CLICK:zi.CLICK,SHOW_ARROW:!0};var Kg=H`
|
1943
1943
|
:host {
|
1944
1944
|
--mdc-toggletip-max-width: 400px;
|
1945
1945
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
@@ -1969,7 +1969,7 @@
|
|
1969
1969
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
1970
1970
|
margin-left: 2rem;
|
1971
1971
|
}
|
1972
|
-
`,
|
1972
|
+
`,bm=[Kg];var li=class extends we{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=Ui.PLACEMENT}connectedCallback(){var e;super.connectedCallback(),this.closeButton=(e=this.closeButton)!=null?e:Ui.CLOSE_BUTTON,this.closeButtonAriaLabel=Ui.CLOSE_BUTTON_ARIA_LABEL,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,this.focusTrap=!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(Ut).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 O`
|
1973
1973
|
${super.render()}
|
1974
1974
|
<mdc-screenreaderannouncer
|
1975
1975
|
identity="${at(this.screenreaderAnnouncerIdentity)}"
|
@@ -1977,12 +1977,12 @@
|
|
1977
1977
|
delay="300"
|
1978
1978
|
>
|
1979
1979
|
</mdc-screenreaderannouncer>
|
1980
|
-
`}};
|
1980
|
+
`}};li.styles=[...we.styles,...bm],v([Da()],li.prototype,"defaultSlotNodes",2),v([_t()],li.prototype,"currentAnnouncement",2),v([E({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],li.prototype,"screenreaderAnnouncerIdentity",2),v([E({type:String,reflect:!0})],li.prototype,"placement",2);var lc=li;var oe=[];for(let l=0;l<256;++l)oe.push((l+256).toString(16).slice(1));function ym(l,o=0){return(oe[l[o+0]]+oe[l[o+1]]+oe[l[o+2]]+oe[l[o+3]]+"-"+oe[l[o+4]]+oe[l[o+5]]+"-"+oe[l[o+6]]+oe[l[o+7]]+"-"+oe[l[o+8]]+oe[l[o+9]]+"-"+oe[l[o+10]]+oe[l[o+11]]+oe[l[o+12]]+oe[l[o+13]]+oe[l[o+14]]+oe[l[o+15]]).toLowerCase()}var cc,Xg=new Uint8Array(16);function dc(){if(!cc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");cc=crypto.getRandomValues.bind(crypto)}return cc(Xg)}var Zg=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),hc={randomUUID:Zg};function Jg(l,o,e){var n,h,m;if(hc.randomUUID&&!o&&!l)return hc.randomUUID();l=l||{};let s=(m=(h=l.random)!=null?h:(n=l.rng)==null?void 0:n.call(l))!=null?m:dc();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 T=0;T<16;++T)o[e+T]=s[T];return o}return ym(s)}var He=Jg;var Em=j.constructTagName("screenreaderannouncer"),Qg={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Oo={ARIA_LIVE:Qg.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var tb=[H`
|
1981
1981
|
:host {
|
1982
1982
|
display: none;
|
1983
1983
|
visibility: hidden;
|
1984
1984
|
}
|
1985
|
-
`],
|
1985
|
+
`],Tm=tb;var Vr=class extends q{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=Oo.ARIA_LIVE;this.delay=Oo.DELAY;this.timeout=Oo.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,s,n,h){var m;if(e.length>0){let T=`mdc-screenreaderannouncer-announcement-${He()}`,L=document.createElement("div");L.id=T,L.ariaLive=h,(m=document.getElementById(this.identity))==null||m.appendChild(L);let $=window.setTimeout(()=>{let W=document.createElement("p");W.textContent=e,L.appendChild(W),this.ariaLiveAnnouncementIds.push(T);let K=window.setTimeout(()=>{var ot;(ot=document.getElementById(T))==null||ot.remove()},n);this.timeOutIds.push(K)},s);this.timeOutIds.push($)}}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=`
|
1986
1986
|
.mdc-screenreaderannouncer__visually-hidden {
|
1987
1987
|
clip: rect(0 0 0 0);
|
1988
1988
|
clip-path: inset(50%);
|
@@ -1992,7 +1992,7 @@
|
|
1992
1992
|
white-space: nowrap;
|
1993
1993
|
width: 1px;
|
1994
1994
|
}
|
1995
|
-
`,e.appendChild(s),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Oo.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=Oo.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};
|
1995
|
+
`,e.appendChild(s),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Oo.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=Oo.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Vr.styles=[...q.styles,...Tm],v([E({type:String,reflect:!0})],Vr.prototype,"announcement",2),v([E({type:String,reflect:!0})],Vr.prototype,"identity",2),v([E({type:String,reflect:!0,attribute:"data-aria-live"})],Vr.prototype,"dataAriaLive",2),v([E({type:Number,reflect:!0})],Vr.prototype,"delay",2),v([E({type:Number,reflect:!0})],Vr.prototype,"timeout",2);var pc=Vr;pc.register(Em);var eb=pc;lc.register(gm);var rb=lc;var jt=l=>{class o extends l{constructor(){super(...arguments);this.dataAriaLabel=null}}return v([E({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Le=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-el-${He()}`}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,v([E({reflect:!0,type:String})],o.prototype,"name",2),v([E({reflect:!0,type:String})],o.prototype,"value",2),v([E({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),v([Mr("input")],o.prototype,"inputElement",2),o};var xm=j.constructTagName("formfieldwrapper"),Wt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Pt={VALIDATION:Wt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:"top"},Vs={TAGNAME:bt.SPAN,TYPE:it.BODY_MIDSIZE_REGULAR,HEADER_TYPE:it.BODY_MIDSIZE_BOLD};var ib=[Et,H`
|
1996
1996
|
:host {
|
1997
1997
|
flex-direction: column;
|
1998
1998
|
align-items: flex-start;
|
@@ -2050,13 +2050,13 @@
|
|
2050
2050
|
:host([help-text-type='priority']) .mdc-help-text {
|
2051
2051
|
color: var(--mds-color-theme-text-accent-normal);
|
2052
2052
|
}
|
2053
|
-
`],
|
2053
|
+
`],Am=ib;var _m=l=>({[Wt.ERROR]:"error-legacy-badge-filled",[Wt.WARNING]:"warning-badge-filled",[Wt.SUCCESS]:"check-circle-badge-filled",[Wt.PRIORITY]:"priority-badge-filled",[Wt.DEFAULT]:""})[l]||"";var je=class extends $t(q){constructor(){super(...arguments);this.required=!1;this.id="";this.helpTextType=Pt.VALIDATION;this.toggletipPlacement=Pt.TOGGLETIP_PLACEMENT;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?O`<label for="${this.id}" id="${Pt.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:O` <mdc-text
|
2054
2054
|
id="${Pt.HEADING_ID}"
|
2055
2055
|
tagname="${Vs.TAGNAME}"
|
2056
2056
|
type="${Vs.HEADER_TYPE}"
|
2057
2057
|
part="label"
|
2058
2058
|
>${this.label}</mdc-text
|
2059
|
-
>`:Y}renderHelpTextIcon(){if(!this.helpText)return Y;let e=
|
2059
|
+
>`:Y}renderHelpTextIcon(){if(!this.helpText)return Y;let e=_m(this.helpTextType||Pt.VALIDATION);return e&&!this.disabled?O`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:Y}renderHelpText(){return this.helpText?O`
|
2060
2060
|
<mdc-text
|
2061
2061
|
id="${Pt.HELPER_TEXT_ID}"
|
2062
2062
|
part="help-text"
|
@@ -2087,7 +2087,7 @@
|
|
2087
2087
|
</div>`:Y}renderHelperText(){return this.helpText?O`<div class="mdc-help-text" part="help-text">
|
2088
2088
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
2089
2089
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
2090
|
-
</div>`:Y}};
|
2090
|
+
</div>`:Y}};je.styles=[...q.styles,...Am],v([E({reflect:!0,type:String})],je.prototype,"label",2),v([E({type:Boolean,reflect:!0,attribute:"required"})],je.prototype,"required",2),v([E({type:String})],je.prototype,"id",2),v([E({reflect:!0,attribute:"help-text-type"})],je.prototype,"helpTextType",2),v([E({type:String,reflect:!0,attribute:"help-text"})],je.prototype,"helpText",2),v([E({type:String,reflect:!0,attribute:"toggletip-text"})],je.prototype,"toggletipText",2),v([E({type:String,reflect:!0,attribute:"toggletip-placement"})],je.prototype,"toggletipPlacement",2),v([E({type:String,reflect:!0,attribute:"info-icon-aria-label"})],je.prototype,"infoIconAriaLabel",2);var ve=je;var ob=[H`
|
2091
2091
|
:host {
|
2092
2092
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
2093
2093
|
--mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
|
@@ -2153,7 +2153,7 @@
|
|
2153
2153
|
flex-direction: column;
|
2154
2154
|
gap: 0.25rem;
|
2155
2155
|
}
|
2156
|
-
`,...St(!0)],
|
2156
|
+
`,...St(!0)],Sm=ob;var Gi=class extends Le(jt(ve)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?O`<div class="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:Y}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.required?(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 O`
|
2157
2157
|
<mdc-staticcheckbox
|
2158
2158
|
class="mdc-focus-ring"
|
2159
2159
|
?checked="${this.checked}"
|
@@ -2180,7 +2180,7 @@
|
|
2180
2180
|
/>
|
2181
2181
|
</mdc-staticcheckbox>
|
2182
2182
|
${this.renderLabelAndHelperText()}
|
2183
|
-
`}};Gi.styles=[...ve.styles,...
|
2183
|
+
`}};Gi.styles=[...ve.styles,...Sm],v([E({type:Boolean,reflect:!0})],Gi.prototype,"checked",2),v([E({type:Boolean,reflect:!0})],Gi.prototype,"indeterminate",2),v([E({type:Boolean,reflect:!0})],Gi.prototype,"autofocus",2);var mc=Gi;mc.register(Pp);var sb=mc;var Im=j.constructTagName("chip"),ab={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Po={COLOR:ab.DEFAULT,TEXT_TYPE:it.BODY_MIDSIZE_REGULAR,TAG_NAME:bt.SPAN,SIZE:Ii[24],ROLE:"button"};var nb=H`
|
2184
2184
|
:host {
|
2185
2185
|
height: 1.5rem;
|
2186
2186
|
gap: 0.25rem;
|
@@ -2332,10 +2332,10 @@
|
|
2332
2332
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2333
2333
|
cursor: auto;
|
2334
2334
|
}
|
2335
|
-
`,
|
2335
|
+
`,km=[Et,nb,...St()];var Do=class extends ce(Ie){constructor(){super(...arguments);this.color=Po.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=Po.ROLE,this.size=Po.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?O` <mdc-icon name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:Y}render(){return O`
|
2336
2336
|
${this.renderIcon()}
|
2337
2337
|
<mdc-text type="${Po.TEXT_TYPE}" tagname="${Po.TAG_NAME}">${this.label}</mdc-text>
|
2338
|
-
`}};Do.styles=[...q.styles,...
|
2338
|
+
`}};Do.styles=[...q.styles,...km],v([E({type:String,reflect:!0})],Do.prototype,"color",2),v([E({type:String})],Do.prototype,"label",2);var Fo=Do;Fo.register(Im);var lb=Fo;var Cm=j.constructTagName("coachmark"),Hi={COLOR:Vi.CONTRAST,TRIGGER:zi.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var ji=class extends we{constructor(){super(...arguments);this.trigger=Hi.TRIGGER;this.showArrow=Hi.ARROW;this.closeButton=Hi.CLOSE_BUTTON;this.disableAriaExpanded=Hi.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Hi.COLOR,this.showArrow=Hi.ARROW}};v([E({type:String,reflect:!0})],ji.prototype,"trigger",2),v([E({type:Boolean,attribute:"show-arrow"})],ji.prototype,"showArrow",2),v([E({type:Boolean,reflect:!0,attribute:"close-button"})],ji.prototype,"closeButton",2),v([E({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],ji.prototype,"disableAriaExpanded",2);var uc=ji;uc.register(Cm);var cb=uc;var wm=j.constructTagName("dialog"),db={DEFAULT:"default",PROMOTIONAL:"promotional"},lr={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:db.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0};var ci=class{static dispatchDialogEvent(o,e,s=!0){e.dispatchEvent(new CustomEvent(o,{detail:{show:e.visible},composed:!0,bubbles:s}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,e=!0){this.dispatchDialogEvent("close",o,e)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var hb=H`
|
2339
2339
|
:host {
|
2340
2340
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
2341
2341
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2440,7 +2440,7 @@
|
|
2440
2440
|
mdc-text::part(text) {
|
2441
2441
|
margin: 0;
|
2442
2442
|
}
|
2443
|
-
`,
|
2443
|
+
`,Lm=[hb];var zt=class extends _n(An(ln(q))){constructor(){super(...arguments);this.id="";this.visible=lr.VISIBLE;this.zIndex=lr.Z_INDEX;this.size=lr.SIZE;this.variant=lr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedBy=null;this.ariaDescription=null;this.headerTagName=lr.HEADER_TAG_NAME;this.descriptionTagName=lr.DESCRIPTION_TAG_NAME;this.role=lr.ROLE;this.disableAriaHasPopup=lr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=lr.FOCUS_TRAP;this.preventScroll=!0;this.triggerElement=null;this.backdropElement=null;this.lastActiveElement=null;this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),e.stopPropagation(),this.closeDialog())}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var e,s,n;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),(e=this.backdropElement)==null||e.remove(),this.backdropElement=null,(s=this.triggerElement)==null||s.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(n=this.deactivateFocusTrap)==null||n.call(this),this.focusBackToTrigger(),ci.onDestroyedDialog(this)}async firstUpdated(e){super.firstUpdated(e),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.style.zIndex=`${this.zIndex}`,ci.onCreatedDialog(this)}async updated(e){if(super.updated(e),e.has("triggerId")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.setupAriaHasPopup()),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("ariaLabel")||e.has("ariaLabelledBy")||e.has("ariaDescribedBy")||e.has("ariaDescription")||e.has("headerText")||e.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),e.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var e,s;this.disableAriaHasPopup||(s=this.triggerElement)==null||s.setAttribute("aria-haspopup",((e=this.triggerElement)==null?void 0:e.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerId&&this.setAttribute("aria-labelledby",this.triggerId)),!this.ariaDescribedBy&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerId&&this.setAttribute("aria-describedby",this.triggerId))}createBackdrop(){var n;let e=document.createElement("div");e.classList.add("dialog-backdrop");let s=document.createElement("style");s.textContent=`
|
2444
2444
|
.dialog-backdrop {
|
2445
2445
|
position: fixed;
|
2446
2446
|
top: 0;
|
@@ -2450,31 +2450,31 @@
|
|
2450
2450
|
background: var(--mds-color-theme-common-overlays-secondary-normal);
|
2451
2451
|
z-index: ${this.zIndex-1};
|
2452
2452
|
}
|
2453
|
-
`,e.appendChild(s),(n=this.parentElement)==null||n.appendChild(e),this.backdropElement=e}closeDialog(){
|
2453
|
+
`,e.appendChild(s),(n=this.parentElement)==null||n.appendChild(e),this.backdropElement=e}closeDialog(){ci.onCloseDialog(this,!1)}async isOpenUpdated(e,s){var n,h,m,T,L,$;e!==s&&(s&&!e?(this.lastActiveElement=document.activeElement,this.createBackdrop(),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((n=this.activateFocusTrap)==null||n.call(this)),(h=this.setInitialFocus)==null||h.call(this),(m=this.triggerElement)==null||m.setAttribute("aria-expanded","true"),ci.onShowDialog(this)):!s&&e&&((T=this.backdropElement)==null||T.remove(),this.backdropElement=null,(L=this.triggerElement)==null||L.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),($=this.deactivateFocusTrap)==null||$.call(this),this.focusBackToTrigger(),ci.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}render(){return O`
|
2454
2454
|
${this.headerText?O` <div part="header-section">
|
2455
2455
|
<div part="header">
|
2456
2456
|
<slot name="header-prefix"></slot>
|
2457
2457
|
<mdc-text
|
2458
2458
|
part="header-text"
|
2459
|
-
tagname="${
|
2460
|
-
type="${
|
2459
|
+
tagname="${bt[this.headerTagName.toUpperCase()]}"
|
2460
|
+
type="${it.BODY_LARGE_BOLD}"
|
2461
2461
|
>
|
2462
2462
|
${this.headerText}
|
2463
2463
|
</mdc-text>
|
2464
2464
|
</div>
|
2465
2465
|
${this.descriptionText?O`<mdc-text
|
2466
2466
|
part="description-text"
|
2467
|
-
tagname="${
|
2468
|
-
type="${
|
2467
|
+
tagname="${bt[this.descriptionTagName.toUpperCase()]}"
|
2468
|
+
type="${it.BODY_MIDSIZE_REGULAR}"
|
2469
2469
|
>
|
2470
2470
|
${this.descriptionText}
|
2471
2471
|
</mdc-text>`:Y}
|
2472
2472
|
</div>`:Y}
|
2473
2473
|
<mdc-button
|
2474
2474
|
part="dialog-close-btn"
|
2475
|
-
prefix-icon="${
|
2475
|
+
prefix-icon="${lr.CANCEL_ICON}"
|
2476
2476
|
variant="${Kt.TERTIARY}"
|
2477
|
-
size="${
|
2477
|
+
size="${oi[20]}"
|
2478
2478
|
aria-label="${at(this.closeButtonAriaLabel)||""}"
|
2479
2479
|
@click="${this.closeDialog}"
|
2480
2480
|
></mdc-button>
|
@@ -2482,7 +2482,7 @@
|
|
2482
2482
|
<slot name="dialog-body"></slot>
|
2483
2483
|
</div>
|
2484
2484
|
${this.renderFooter()}
|
2485
|
-
`}}
|
2485
|
+
`}};zt.styles=[...q.styles,...Lm],v([E({type:String,reflect:!0})],zt.prototype,"id",2),v([E({type:String,reflect:!0})],zt.prototype,"triggerId",2),v([E({type:Boolean,reflect:!0})],zt.prototype,"visible",2),v([E({type:Number,reflect:!0,attribute:"z-index"})],zt.prototype,"zIndex",2),v([E({type:String,reflect:!0})],zt.prototype,"size",2),v([E({type:String,reflect:!0})],zt.prototype,"variant",2),v([E({type:String,attribute:"close-button-aria-label"})],zt.prototype,"closeButtonAriaLabel",2),v([E({type:String,reflect:!0,attribute:"aria-label"})],zt.prototype,"ariaLabel",2),v([E({type:String,reflect:!0,attribute:"aria-labelledby"})],zt.prototype,"ariaLabelledby",2),v([E({type:String,reflect:!0,attribute:"aria-describedby"})],zt.prototype,"ariaDescribedBy",2),v([E({type:String,reflect:!0,attribute:"aria-description"})],zt.prototype,"ariaDescription",2),v([E({type:String,reflect:!0,attribute:"header-text"})],zt.prototype,"headerText",2),v([E({type:String,reflect:!0,attribute:"description-text"})],zt.prototype,"descriptionText",2),v([E({type:String,reflect:!0,attribute:"header-tag-name"})],zt.prototype,"headerTagName",2),v([E({type:String,reflect:!0,attribute:"description-tag-name"})],zt.prototype,"descriptionTagName",2),v([E({type:String,reflect:!0})],zt.prototype,"role",2),v([E({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],zt.prototype,"disableAriaHasPopup",2),v([E({type:Boolean,reflect:!0,attribute:"focus-trap"})],zt.prototype,"focusTrap",2);var fc=zt;fc.register(wm);var pb=fc;var Nm=j.constructTagName("divider"),Wi={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Bs={SOLID:"solid",GRADIENT:"gradient"},ge={POSITIVE:"positive",NEGATIVE:"negative"},Us={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Yi={ORIENTATION:Wi.HORIZONTAL,VARIANT:Bs.SOLID,ARROW_DIRECTION:ge.NEGATIVE,BUTTON_DIRECTION:ge.NEGATIVE};var mb=[Et,H`
|
2486
2486
|
:host {
|
2487
2487
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
2488
2488
|
--mdc-divider-width: 0.0625rem;
|
@@ -2678,11 +2678,11 @@
|
|
2678
2678
|
font-size: var(--mdc-divider-text-size);
|
2679
2679
|
line-height: var(--mdc-divider-text-line-height);
|
2680
2680
|
}
|
2681
|
-
`],
|
2681
|
+
`],Mm=mb;var di=class extends q{constructor(){super(...arguments);this.orientation=Yi.ORIENTATION;this.variant=Yi.VARIANT;this.arrowDirection=Yi.ARROW_DIRECTION;this.buttonPosition=Yi.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(Bs).includes(e)?e:Yi.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Wi).includes(e)?e:Yi.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Wi.HORIZONTAL?ge.NEGATIVE:ge.POSITIVE;Object.values(ge).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(ge).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===Wi.HORIZONTAL,s=this.arrowDirection===ge.POSITIVE;return e?s?Us.UP:Us.DOWN:s?Us.RIGHT:Us.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 m;let e=(m=this.shadowRoot)==null?void 0:m.querySelector("slot"),s=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(s.length>1)return;let n=s.some(T=>T.tagName===As.toUpperCase()),h=s.some(T=>T.tagName===wi.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 O`
|
2682
2682
|
<div></div>
|
2683
2683
|
<slot @slotchange=${this.inferDividerType}></slot>
|
2684
2684
|
<div></div>
|
2685
|
-
`}};
|
2685
|
+
`}};di.styles=[...q.styles,...Mm],v([E({type:String,reflect:!0})],di.prototype,"orientation",2),v([E({type:String,reflect:!0})],di.prototype,"variant",2),v([E({type:String,attribute:"arrow-direction",reflect:!0})],di.prototype,"arrowDirection",2),v([E({type:String,attribute:"button-position",reflect:!0})],di.prototype,"buttonPosition",2);var vc=di;vc.register(Nm);var ub=vc;var fb=H`
|
2686
2686
|
:host([selected]) {
|
2687
2687
|
border: 2px solid;
|
2688
2688
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
@@ -2704,7 +2704,7 @@
|
|
2704
2704
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2705
2705
|
cursor: auto;
|
2706
2706
|
}
|
2707
|
-
`,
|
2707
|
+
`,Rm=[fb];var Om=j.constructTagName("filterchip"),gc={ICON_NAME:"check-bold",COLOR:"default"};var Gs=class extends Fo{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=gc.COLOR}setSelected(e){e?(this.iconName=gc.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)}};Gs.styles=[...Fo.styles,...Rm],v([E({type:Boolean,reflect:!0})],Gs.prototype,"selected",2);var bc=Gs;bc.register(Om);var vb=bc;var gb=H`
|
2708
2708
|
:host::part(container) {
|
2709
2709
|
display: flex;
|
2710
2710
|
flex-direction: column;
|
@@ -2720,7 +2720,7 @@
|
|
2720
2720
|
:host::part(label-text) {
|
2721
2721
|
font-weight: bold;
|
2722
2722
|
}
|
2723
|
-
`,
|
2723
|
+
`,Pm=[gb];var In=class extends jt(ve){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.disabled=void 0}render(){var e;return O`
|
2724
2724
|
<div
|
2725
2725
|
part="container"
|
2726
2726
|
role="${this.isRadio?lt.RADIOGROUP:lt.GROUP}"
|
@@ -2731,7 +2731,7 @@
|
|
2731
2731
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
2732
2732
|
<slot></slot>
|
2733
2733
|
</div>
|
2734
|
-
`}};In.styles=[...ve.styles,...
|
2734
|
+
`}};In.styles=[...ve.styles,...Pm];var yc=In;var Dm=j.constructTagName("formfieldgroup");yc.register(Dm);var kn=yc;_s.register(Ba);var bb=_s;ve.register(xm);var We=ve;var Fm=j.constructTagName("input"),Cn={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Ec={OFF:"off",ON:"on"},Tc={TEXT:"text",SEARCH:"search"},$m={MAX_LENGTH:10,VALIDATION:Wt.ERROR},Br={VALIDATION:Wt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Kt.TERTIARY,CLEAR_BUTTON_SIZE:oi[20],PREFIX_TEXT_TYPE:it.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:bt.SPAN,AUTO_COMPLETE:Ec.OFF,INPUT_TYPE:Tc.TEXT};var yb=[H`
|
2735
2735
|
:host {
|
2736
2736
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
2737
2737
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2855,31 +2855,31 @@
|
|
2855
2855
|
opacity: 0;
|
2856
2856
|
pointer-events: none;
|
2857
2857
|
}
|
2858
|
-
`,...St(!0)],
|
2858
|
+
`,...St(!0)],zm=yb;var Xt=class extends Le(jt(We)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=Cn.OFF;this.autocomplete=Ec.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.required&&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(m=>{this.onerror&&this.onerror(m)})}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?O`
|
2859
2859
|
<mdc-icon
|
2860
2860
|
class="leading-icon"
|
2861
2861
|
part="leading-icon"
|
2862
2862
|
name=${this.leadingIcon}
|
2863
|
-
size="${
|
2864
|
-
length-unit="${
|
2863
|
+
size="${Br.ICON_SIZE_VALUE}"
|
2864
|
+
length-unit="${Br.ICON_SIZE_UNIT}"
|
2865
2865
|
>
|
2866
2866
|
</mdc-icon>
|
2867
2867
|
`:Y}renderPrefixText(){return this.prefixText?O`
|
2868
2868
|
<mdc-text
|
2869
2869
|
class="prefix-text"
|
2870
|
-
tagname="${
|
2871
|
-
type="${
|
2870
|
+
tagname="${Br.PREFIX_TEXT_TAG}"
|
2871
|
+
type="${Br.PREFIX_TEXT_TYPE}"
|
2872
2872
|
aria-hidden="true"
|
2873
2873
|
>
|
2874
|
-
${this.prefixText.slice(0
|
2874
|
+
${this.prefixText.slice(0,$m.MAX_LENGTH)}
|
2875
2875
|
</mdc-text>
|
2876
2876
|
`:Y}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(e=!1){let s=e||this.value&&this.trailingButton;return s?O`
|
2877
2877
|
<mdc-button
|
2878
2878
|
part="trailing-button"
|
2879
2879
|
class="own-focus-ring ${s?"":"hidden"}"
|
2880
|
-
prefix-icon="${
|
2881
|
-
variant="${
|
2882
|
-
size="${
|
2880
|
+
prefix-icon="${Br.CLEAR_BUTTON_ICON}"
|
2881
|
+
variant="${Br.CLEAR_BUTTON_VARIANT}"
|
2882
|
+
size="${Br.CLEAR_BUTTON_SIZE}"
|
2883
2883
|
aria-label="${this.clearAriaLabel}"
|
2884
2884
|
@click=${this.clearInputText}
|
2885
2885
|
?disabled=${this.disabled||this.readonly||!s}
|
@@ -2916,12 +2916,12 @@
|
|
2916
2916
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
2917
2917
|
<div class="input-section" part="input-section">
|
2918
2918
|
<slot name="input-prefix-text">${this.renderPrefixText()}</slot>
|
2919
|
-
<slot name="input">${this.renderInputElement(
|
2919
|
+
<slot name="input">${this.renderInputElement(Br.INPUT_TYPE)}</slot>
|
2920
2920
|
</div>
|
2921
2921
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
2922
2922
|
</div>
|
2923
2923
|
${this.helpText?this.renderHelperText():Y}
|
2924
|
-
`}};Xt.styles=[...
|
2924
|
+
`}};Xt.styles=[...We.styles,...zm],v([E({type:String})],Xt.prototype,"placeholder",2),v([E({type:Boolean})],Xt.prototype,"readonly",2),v([E({type:String,attribute:"prefix-text"})],Xt.prototype,"prefixText",2),v([E({type:String,attribute:"leading-icon"})],Xt.prototype,"leadingIcon",2),v([E({type:Boolean,attribute:"trailing-button"})],Xt.prototype,"trailingButton",2),v([E({type:Number})],Xt.prototype,"maxlength",2),v([E({type:Number})],Xt.prototype,"minlength",2),v([E({type:String})],Xt.prototype,"autocapitalize",2),v([E({type:String})],Xt.prototype,"autocomplete",2),v([E({type:Boolean})],Xt.prototype,"autofocus",2),v([E({type:String})],Xt.prototype,"dirname",2),v([E({type:String})],Xt.prototype,"pattern",2),v([E({type:String})],Xt.prototype,"list",2),v([E({type:Number})],Xt.prototype,"size",2),v([E({type:String,attribute:"clear-aria-label"})],Xt.prototype,"clearAriaLabel",2);var $o=Xt;$o.register(Fm);var Eb=$o;var Tb=H`
|
2925
2925
|
:host {
|
2926
2926
|
height: 1.5rem;
|
2927
2927
|
gap: 0.25rem;
|
@@ -2952,7 +2952,7 @@
|
|
2952
2952
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2953
2953
|
cursor: auto;
|
2954
2954
|
}
|
2955
|
-
`,
|
2955
|
+
`,Vm=[Et,Tb];var wn=j.constructTagName("inputchip"),Ln={TEXT_TYPE:it.BODY_MIDSIZE_REGULAR,TAG_NAME:bt.SPAN,CLOSE_ICON:"cancel-bold"};var qi=class extends ce($t(q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?O` <mdc-icon name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:Y}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return O`
|
2956
2956
|
${this.renderIcon()}
|
2957
2957
|
<mdc-text part="label" type="${Ln.TEXT_TYPE}" tagname="${Ln.TAG_NAME}">${this.label}</mdc-text>
|
2958
2958
|
<mdc-button
|
@@ -2964,7 +2964,7 @@
|
|
2964
2964
|
size="20"
|
2965
2965
|
@click="${this.handleClose}"
|
2966
2966
|
></mdc-button>
|
2967
|
-
`}};qi.styles=[...q.styles,...
|
2967
|
+
`}};qi.styles=[...q.styles,...Vm],v([E({type:String})],qi.prototype,"label",2),v([E({type:Boolean})],qi.prototype,"error",2),v([E({type:String,attribute:"clear-aria-label"})],qi.prototype,"clearAriaLabel",2);var xc=qi;xc.register(wn);var xb=xc;var Ab=H`
|
2968
2968
|
:host {
|
2969
2969
|
gap: 0.25rem;
|
2970
2970
|
}
|
@@ -3022,19 +3022,19 @@
|
|
3022
3022
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
3023
3023
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
3024
3024
|
}
|
3025
|
-
`,
|
3025
|
+
`,Bm=[Ab];var Hs=class extends ce(ai){constructor(){super(...arguments);this.size=kp.LINK_SIZE}getIconSize(){switch(this.size){case sn.SMALL:return an.SMALL;case sn.MIDSIZE:return an.MIDSIZE;default:return an.LARGE}}render(){return O`
|
3026
3026
|
<slot></slot>
|
3027
3027
|
${this.iconName?O` <mdc-icon name=${this.iconName} size=${this.getIconSize()} length-unit="rem"></mdc-icon> `:Y}
|
3028
|
-
`}};Hs.styles=[...
|
3028
|
+
`}};Hs.styles=[...ai.styles,...Bm],v([E({type:String,reflect:!0})],Hs.prototype,"size",2);var Ac=Hs;Ac.register(on);var _b=Ac;ai.register(_p);var Sb=ai;var dt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" ",TAB:"Tab"};var Nn=j.constructTagName("listitem"),Mn=`listitem-tooltip-popover-${He()}`,_c=`listitem-tooltip-triggerid-${He()}`,js={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Sc={VARIANT:js.FULL_WIDTH,TOOLTIP_PLACEMENT:Ut.TOP};var Um=j.constructTagName("list"),Ic="header-id";var Ib=H`
|
3029
3029
|
:host::part(header-text) {
|
3030
3030
|
padding: 0.5rem 0.75rem;
|
3031
3031
|
}
|
3032
|
-
`,
|
3032
|
+
`,Gm=[Ib];var zo=class extends jt(q){constructor(){super();this.dataRole=lt.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 dt.ARROW_DOWN:return(s+1)%n;case dt.ARROW_UP:return(s-1+n)%n;case dt.HOME:return 0;case dt.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?O`
|
3033
3033
|
<mdc-text
|
3034
3034
|
id="${Ic}"
|
3035
3035
|
part="header-text"
|
3036
|
-
type="${
|
3037
|
-
tagname="${
|
3036
|
+
type="${it.BODY_MIDSIZE_BOLD}"
|
3037
|
+
tagname="${bt.SPAN}"
|
3038
3038
|
>${this.headerText}</mdc-text
|
3039
3039
|
>
|
3040
3040
|
`:Y;return O`
|
@@ -3046,7 +3046,7 @@
|
|
3046
3046
|
${e}
|
3047
3047
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
3048
3048
|
</div>
|
3049
|
-
`}};zo.styles=[...q.styles,...
|
3049
|
+
`}};zo.styles=[...q.styles,...Gm],v([Bt({selector:`${Nn}:not([disabled])`})],zo.prototype,"listItems",2),v([E({type:String,attribute:"header-text",reflect:!0})],zo.prototype,"headerText",2);var kc=zo;kc.register(Um);var kb=kc;var Rn=j.constructTagName("tooltip"),Pe={DESCRIPTION:"description",LABEL:"label",NONE:"none"},hi={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:Ut.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Pe.DESCRIPTION};var Cb=H`
|
3050
3050
|
:host {
|
3051
3051
|
--mdc-tooltip-max-width: 400px;
|
3052
3052
|
--mdc-tooltip-padding: 0.75rem;
|
@@ -3070,7 +3070,7 @@
|
|
3070
3070
|
:host([color='contrast'])::part(popover-content) {
|
3071
3071
|
color: var(--mdc-tooltip-text-color-contrast);
|
3072
3072
|
}
|
3073
|
-
`,
|
3073
|
+
`,Hm=[Cb];var Vo=class extends we{constructor(){super(...arguments);this.tooltipType=hi.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||hi.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||hi.OFFSET,this.placement=this.placement||hi.PLACEMENT,this.role=lt.TOOLTIP,this.trigger="mouseenter focusin",this.preventScroll=!1,this.flip=!0,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(Pe).includes(e)?e:hi.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${He()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case Pe.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case Pe.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Ut).includes(this.placement)||(this.placement=hi.PLACEMENT)}onTooltipTypeUpdated(e){let s=e.get("tooltipType");Object.values(Pe).includes(this.tooltipType)||this.setTooltipType(hi.TOOLTIP_TYPE);let n=document.getElementById(this.triggerID);if(n){let h=this.getTooltipText();switch(this.tooltipType){case Pe.DESCRIPTION:s===Pe.LABEL&&n.removeAttribute("aria-labelledby"),n.setAttribute("aria-describedby",this.id);break;case Pe.LABEL:s===Pe.DESCRIPTION&&n.removeAttribute("aria-describedby"),n.setAttribute("aria-labelledby",this.id);break;default:s===Pe.DESCRIPTION?n.removeAttribute("aria-describedby"):s===Pe.LABEL&&n.removeAttribute("aria-labelledby");break}h.length>0&&this.tooltipType!==Pe.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)}};Vo.styles=[...we.styles,...Hm],v([E({type:String,attribute:"tooltip-type",reflect:!0})],Vo.prototype,"tooltipType",2),v([Da()],Vo.prototype,"defaultSlotNodes",2);var Cc=Vo;Cc.register(Rn);var wb=Cc;var On=j.constructTagName("navitemlist");var Lb=H`
|
3074
3074
|
:host {
|
3075
3075
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
3076
3076
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -3165,9 +3165,9 @@
|
|
3165
3165
|
display: flex;
|
3166
3166
|
flex-direction: row;
|
3167
3167
|
}
|
3168
|
-
`,
|
3168
|
+
`,jm=[Lb,...St()];var be=class extends $t(fr(q)){constructor(){super();this.variant=Sc.VARIANT;this.tooltipPlacement=Sc.TOOLTIP_PLACEMENT;this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseenter",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}connectedCallback(){super.connectedCallback(),this.role=this.role||lt.LISTITEM}handleKeyDown(e){(e.key===dt.ENTER||e.key===dt.SPACE)&&(this.triggerClickEvent(),e.preventDefault())}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(){var n,h,m;if(!this.tooltipText)return;this.id=this.id||_c;let e=document.getElementById(Mn);e&&e.remove();let s=document.createElement(Rn);s.id=Mn,s.textContent=this.tooltipText,s.setAttribute("triggerid",this.id),s.setAttribute("placement",this.tooltipPlacement),s.setAttribute("visible",""),s.setAttribute("show-arrow",""),((h=(n=this.parentElement)==null?void 0:n.tagName)==null?void 0:h.toLowerCase())===On?this.before(s):(m=this.parentElement)==null||m.after(s)}hideTooltipOnLeave(){this.id=this.id===_c?"":this.id;let e=document.querySelector(`#${Mn}`);e==null||e.remove()}getText(e,s,n){return n?O`
|
3169
3169
|
<slot name="${e}">
|
3170
|
-
<mdc-text part="${e}" type="${s}" tagname="${
|
3170
|
+
<mdc-text part="${e}" type="${s}" tagname="${bt.SPAN}">${n}</mdc-text>
|
3171
3171
|
</slot>
|
3172
3172
|
`:Y}disableSlottedChildren(e=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(s=>{e?s.setAttribute("disabled",""):s.removeAttribute("disabled")}),this.setAttribute("aria-disabled",`${e}`)}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled)),e.has("softDisabled")&&this.disableSlottedChildren(this.softDisabled)}renderTrailingControls(){return O`<slot
|
3173
3173
|
name="trailing-controls"
|
@@ -3183,19 +3183,19 @@
|
|
3183
3183
|
<div part="leading">
|
3184
3184
|
${this.renderLeadingControls()}
|
3185
3185
|
<div part="leading-text">
|
3186
|
-
${this.getText("leading-text-primary-label",
|
3187
|
-
${this.getText("leading-text-secondary-label",
|
3188
|
-
${this.getText("leading-text-tertiary-label",
|
3186
|
+
${this.getText("leading-text-primary-label",it.BODY_MIDSIZE_REGULAR,this.label)}
|
3187
|
+
${this.getText("leading-text-secondary-label",it.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3188
|
+
${this.getText("leading-text-tertiary-label",it.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
3189
3189
|
</div>
|
3190
3190
|
</div>
|
3191
3191
|
<div part="trailing">
|
3192
3192
|
<div part="trailing-text">
|
3193
|
-
${this.getText("trailing-text-side-header",
|
3194
|
-
${this.getText("trailing-text-subline",
|
3193
|
+
${this.getText("trailing-text-side-header",it.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
3194
|
+
${this.getText("trailing-text-subline",it.BODY_SMALL_REGULAR,this.sublineText)}
|
3195
3195
|
</div>
|
3196
3196
|
${this.renderTrailingControls()}
|
3197
3197
|
</div>
|
3198
|
-
`}};be.styles=[...q.styles,...
|
3198
|
+
`}};be.styles=[...q.styles,...jm],v([Bt({slot:"leading-controls"})],be.prototype,"leadingControlsSlot",2),v([Bt({slot:"trailing-controls"})],be.prototype,"trailingControlsSlot",2),v([E({type:String,reflect:!0})],be.prototype,"variant",2),v([E({type:String,reflect:!0})],be.prototype,"label",2),v([E({type:String,reflect:!0,attribute:"secondary-label"})],be.prototype,"secondaryLabel",2),v([E({type:String,reflect:!0,attribute:"tertiary-label"})],be.prototype,"tertiaryLabel",2),v([E({type:String,reflect:!0,attribute:"side-header-text"})],be.prototype,"sideHeaderText",2),v([E({type:String,reflect:!0,attribute:"subline-text"})],be.prototype,"sublineText",2),v([E({type:Boolean,reflect:!0,attribute:"soft-disabled"})],be.prototype,"softDisabled",2),v([E({type:String,reflect:!0,attribute:"tooltip-text"})],be.prototype,"tooltipText",2),v([E({type:String,reflect:!0,attribute:"tooltip-placement"})],be.prototype,"tooltipPlacement",2);var Ur=be;Ur.register(Nn);var Nb=Ur;var Mb=H`
|
3199
3199
|
:host {
|
3200
3200
|
--mdc-marker-width: 0.25rem;
|
3201
3201
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -3220,7 +3220,7 @@
|
|
3220
3220
|
var(--mdc-marker-striped-background-color) 0.375rem
|
3221
3221
|
);
|
3222
3222
|
}
|
3223
|
-
`,
|
3223
|
+
`,Wm=[Mb];var Ym=j.constructTagName("marker"),qm={SOLID:"solid",STRIPED:"striped"};var Ws=class extends q{constructor(){super(...arguments);this.variant=qm.SOLID}};Ws.styles=[...q.styles,...Wm],v([E({type:String,reflect:!0})],Ws.prototype,"variant",2);var wc=Ws;wc.register(Ym);var Rb=wc;var Ft=j.constructTagName("menupopover"),Lc={PLACEMENT:Ut.BOTTOM_START,ORIENTATION:"vertical"};var Gr=j.constructTagName("menusection");var Ys=j.constructTagName("menubar"),Km={ORIENTATION:"vertical"};var Ob=H`
|
3224
3224
|
:host {
|
3225
3225
|
display: flex;
|
3226
3226
|
}
|
@@ -3232,7 +3232,7 @@
|
|
3232
3232
|
:host([aria-orientation='vertical']) {
|
3233
3233
|
flex-direction: column;
|
3234
3234
|
}
|
3235
|
-
`,
|
3235
|
+
`,Xm=[Ob];var Pn=class extends q{constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.role=lt.MENUBAR,this.ariaOrientation=Km.ORIENTATION}get menuItems(){var h,m;let o=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"),e=(m=o==null?void 0:o.assignedElements({flatten:!0}))!=null?m:[],s=[],n=T=>{T.role===lt.MENUITEM&&!T.hasAttribute("disabled")?s.push(T):T.tagName.toLowerCase()===Gr&&Array.from(T.children).forEach(n)};return e.forEach(n),s}update(o){super.update(o),this.updatePopoverPlacement()}firstUpdated(o){super.firstUpdated(o),this.resetTabIndexAndSetActiveTabIndex(this.menuItems)}resetTabIndexAndSetActiveTabIndex(o){o.forEach((e,s)=>{let n=s===0?"0":"-1";e==null||e.setAttribute("tabindex",n)})}getCurrentIndex(o){return this.menuItems.findIndex(e=>e===o||e===o.parentElement)}updatePopoverPlacement(){let o=this.querySelectorAll(`${Ft}:not([disabled])`),e=Ut.RIGHT_START;o.forEach(s=>s.setAttribute("placement",e))}updateTabIndexAndFocus(o,e,s){var n,h,m;s<0||e<0||(e!==s&&((n=o[e])==null||n.setAttribute("tabindex","-1"),(h=o[s])==null||h.setAttribute("tabindex","0")),(m=o[s])==null||m.focus())}navigateToMenuItem(o,e,s=!1){var m;let{length:n}=this.menuItems;if(n===0)return;let h=o;if(e==="prev"?h=(o-1+n)%n:h=(o+1)%n,this.updateTabIndexAndFocus(this.menuItems,o,h),s){let T=(m=this.menuItems[h])==null?void 0:m.getAttribute("id");this.hasSubmenu(T)&&!this.menuItems[h].hasAttribute("soft-disabled")&&this.showSubmenu(T)}}showSubmenu(o){let e=this.querySelector(`${Ft}[triggerid="${o}"]`);e==null||e.showPopover()}getKeyWithDirectionFix(o){return window.getComputedStyle(this).direction==="rtl"?o===dt.ARROW_LEFT?dt.ARROW_RIGHT:o===dt.ARROW_RIGHT?dt.ARROW_LEFT:o:o}isTopLevelMenuItem(o){var n;let e=o.parentElement;if(!e||o.role!==lt.MENUITEM)return!1;let s=e.tagName.toLowerCase();return s===Ys||s===Gr&&((n=e.parentElement)==null?void 0:n.tagName.toLowerCase())===Ys}isNestedMenuItem(o){return!!o.closest(Ft)&&o.role===lt.MENUITEM}async closeAllMenuPopovers(){let o=[];for(;fe.peek();){let e=fe.pop();e&&(e.hidePopover(),o.push(e))}await Promise.all(o.map(e=>e.updateComplete))}async crossMenubarNavigationOnLeft(o){if(o.role===lt.MENUITEM){let s=o.closest(Ft),n=s==null?void 0:s.getAttribute("triggerid"),h=this.menuItems.find(m=>m.getAttribute("id")===n);if(h){this.isTopLevelMenuItem(h)&&(s==null||s.hidePopover()),await(s==null?void 0:s.updateComplete);let m=this.getCurrentIndex(h);this.navigateToMenuItem(m,"prev",!0)}}}async crossMenubarNavigationOnRight(o){if(this.isTopLevelMenuItem(o)&&this.hasSubmenu(o.id)&&!o.hasAttribute("soft-disabled"))this.showSubmenu(o.id);else if(this.isNestedMenuItem(o)&&!this.hasSubmenu(o.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(o);e>=0&&this.navigateToMenuItem(e,"next",!0)}}hasSubmenu(o){return!!this.querySelector(`${Ft}[triggerid="${o}"]`)}getParentMenuItemIndex(o){let e=o.parentElement;for(;e;){if(e.tagName.toLowerCase()===Ft){let s=e.getAttribute("triggerid"),n=this.menuItems.find(h=>h.getAttribute("id")===s);if(n)return this.isTopLevelMenuItem(n)?this.menuItems.findIndex(h=>h===n):this.getParentMenuItemIndex(n)}e=e.parentElement}return-1}async handleKeyDown(o){let e=this.getCurrentIndex(o.target);switch(this.getKeyWithDirectionFix(o.key)){case dt.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case dt.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case dt.ARROW_LEFT:{let n=e>=0?this.menuItems[e]:o.target;await this.crossMenubarNavigationOnLeft(n);break}case dt.ARROW_RIGHT:{let n=e>=0?this.menuItems[e]:o.target;await this.crossMenubarNavigationOnRight(n);break}case dt.ARROW_UP:{this.navigateToMenuItem(e,"prev"),o.preventDefault();break}case dt.ARROW_DOWN:{this.navigateToMenuItem(e,"next"),o.preventDefault();break}default:break}}render(){return O`<slot role="${lt.GROUP}"></slot>`}};Pn.styles=[...q.styles,...Xm];var Bo=Pn;Bo.register(Ys);var Pb=Bo;var qs=j.constructTagName("menuitem"),Ks={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Nc={POSITIVE:"positive",NEGATIVE:"negative"},Mc={LEADING:"leading",TRAILING:"trailing"};var Db=H`
|
3236
3236
|
:host(:dir(rtl))::part(trailing-arrow),
|
3237
3237
|
:host(:dir(rtl))::part(leading-arrow) {
|
3238
3238
|
transform: rotate(180deg);
|
@@ -3241,23 +3241,23 @@
|
|
3241
3241
|
:host::part(leading-arrow) {
|
3242
3242
|
--mdc-icon-size: 1.25rem;
|
3243
3243
|
}
|
3244
|
-
`,
|
3244
|
+
`,Zm=[Db];var pi=class extends Ur{constructor(){super();this.name=void 0;this.value=void 0;this.addEventListener("keyup",this.handleKeyUp)}handleKeyDown(e){e.key===dt.ENTER&&(this.triggerClickEvent(),e.preventDefault())}handleKeyUp(e){e.key===dt.SPACE&&(this.triggerClickEvent(),e.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=lt.MENUITEM,this.variant=js.INSET_RECTANGLE}renderTrailingControls(){let e=this.arrowDirection===Nc.NEGATIVE?Ks.LEFT:Ks.RIGHT;return O`
|
3245
3245
|
<slot
|
3246
3246
|
name="trailing-controls"
|
3247
3247
|
@click=${this.stopEventPropagation}
|
3248
3248
|
@keyup=${this.stopEventPropagation}
|
3249
3249
|
@keydown=${this.stopEventPropagation}
|
3250
3250
|
></slot>
|
3251
|
-
${this.arrowPosition===Mc.TRAILING?O`<mdc-icon name="${
|
3252
|
-
`}renderLeadingControls(){let
|
3251
|
+
${this.arrowPosition===Mc.TRAILING?O`<mdc-icon name="${e}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:Y}
|
3252
|
+
`}renderLeadingControls(){let e=this.arrowDirection===Nc.POSITIVE?Ks.RIGHT:Ks.LEFT;return O`
|
3253
3253
|
<slot
|
3254
3254
|
name="leading-controls"
|
3255
3255
|
@click=${this.stopEventPropagation}
|
3256
3256
|
@keyup=${this.stopEventPropagation}
|
3257
3257
|
@keydown=${this.stopEventPropagation}
|
3258
3258
|
></slot>
|
3259
|
-
${this.arrowPosition===Mc.LEADING?O`<mdc-icon name="${
|
3260
|
-
`}};
|
3259
|
+
${this.arrowPosition===Mc.LEADING?O`<mdc-icon name="${e}" length-unit="rem" part="leading-arrow"></mdc-icon>`:Y}
|
3260
|
+
`}};pi.styles=[...Ur.styles,...Zm],v([E({type:String,reflect:!0,attribute:"arrow-position"})],pi.prototype,"arrowPosition",2),v([E({type:String,reflect:!0,attribute:"arrow-direction"})],pi.prototype,"arrowDirection",2),v([E({type:String,reflect:!0})],pi.prototype,"name",2),v([E({type:String,reflect:!0})],pi.prototype,"value",2);var Ye=pi;Ye.register(qs);var Fb=Ye;var Jm=j.constructTagName("statictoggle"),$b={DEFAULT:"default",COMPACT:"compact"},Rc={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Qm={compact:.75,default:1.25},tu={SIZE:$b.DEFAULT};var zb=[H`
|
3261
3261
|
:host {
|
3262
3262
|
--mdc-statictoggle-width: 3rem;
|
3263
3263
|
--mdc-statictoggle-height: 1.5rem;
|
@@ -3337,74 +3337,98 @@
|
|
3337
3337
|
border: var(--mdc-statictoggle-border);
|
3338
3338
|
}
|
3339
3339
|
}
|
3340
|
-
`],
|
3340
|
+
`],eu=zb;var Uo=class extends $t(q){constructor(){super(...arguments);this.checked=!1;this.size=tu.SIZE}render(){return O`
|
3341
3341
|
<slot></slot>
|
3342
3342
|
<div part="slider">
|
3343
3343
|
<mdc-icon
|
3344
3344
|
name="${this.checked?Rc.CHECKED:Rc.UNCHECKED}"
|
3345
3345
|
class="icon"
|
3346
3346
|
length-unit="rem"
|
3347
|
-
size="${
|
3347
|
+
size="${Qm[this.size]}"
|
3348
3348
|
></mdc-icon>
|
3349
3349
|
</div>
|
3350
|
-
`}};
|
3351
|
-
:host {
|
3352
|
-
--mdc-checkmark-indicator-color: var(--mds-color-theme-control-active-normal);
|
3353
|
-
}
|
3350
|
+
`}};Uo.styles=[...q.styles,...eu],v([E({type:Boolean,reflect:!0})],Uo.prototype,"checked",2),v([E({type:String,reflect:!0})],Uo.prototype,"size",2);var Oc=Uo;Oc.register(Jm);var Vb=Oc;var ru=j.constructTagName("toggle"),Xs={DEFAULT:"default",COMPACT:"compact"};var Pc={SIZE:Xs.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Dn=j.constructTagName("menuitemcheckbox"),Zs={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},iu={INDICATOR:Zs.CHECKBOX};var Bb=H`
|
3354
3351
|
:host::part(checkmark-icon) {
|
3355
|
-
--mdc-icon-fill-color: var(--mdc-checkmark-indicator-color);
|
3356
|
-
}
|
3357
|
-
:host([disabled])::part(checkmark-icon) {
|
3358
3352
|
--mdc-icon-fill-color: currentColor;
|
3359
3353
|
}
|
3360
|
-
`,ou=[
|
3354
|
+
`,ou=[Bb];var Go=class extends Ye{constructor(){super();this.checked=!1;this.indicator=iu.INDICATOR;this.menuitemcheckboxHandleClick=e=>{e.stopPropagation(),!this.disabled&&(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))};this.addEventListener("click",this.menuitemcheckboxHandleClick)}connectedCallback(){super.connectedCallback(),this.role=lt.MENUITEMCHECKBOX}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator!==Zs.CHECKBOX?Y:O`
|
3361
3355
|
<mdc-staticcheckbox
|
3362
3356
|
slot="leading-controls"
|
3363
|
-
?checked="${this.
|
3357
|
+
?checked="${this.checked}"
|
3364
3358
|
?disabled="${this.disabled}"
|
3365
3359
|
></mdc-staticcheckbox>
|
3366
3360
|
`}staticToggle(){return this.indicator!==Zs.TOGGLE?Y:O`
|
3367
3361
|
<mdc-statictoggle
|
3368
3362
|
slot="trailing-controls"
|
3369
|
-
?checked="${this.
|
3363
|
+
?checked="${this.checked}"
|
3370
3364
|
?disabled="${this.disabled}"
|
3371
3365
|
size="${Xs.COMPACT}"
|
3372
3366
|
></mdc-statictoggle>
|
3373
|
-
`}getCheckmarkIcon(){return this.indicator
|
3367
|
+
`}getCheckmarkIcon(){return this.checked&&this.indicator===Zs.CHECKMARK?O` <mdc-icon slot="trailing-controls" name="check-bold" part="checkmark-icon"></mdc-icon> `:Y}render(){return O`
|
3374
3368
|
<div part="leading">
|
3375
3369
|
${this.staticCheckbox()}
|
3376
3370
|
<slot name="leading-controls"></slot>
|
3377
3371
|
<div part="leading-text">
|
3378
|
-
${this.getText("leading-text-primary-label",
|
3379
|
-
${this.getText("leading-text-secondary-label",
|
3380
|
-
${this.getText("leading-text-tertiary-label",
|
3372
|
+
${this.getText("leading-text-primary-label",it.BODY_MIDSIZE_REGULAR,this.label)}
|
3373
|
+
${this.getText("leading-text-secondary-label",it.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3374
|
+
${this.getText("leading-text-tertiary-label",it.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
3381
3375
|
</div>
|
3382
3376
|
</div>
|
3383
3377
|
<div part="trailing">
|
3384
3378
|
<div part="trailing-text">
|
3385
|
-
${this.getText("trailing-text-side-header",
|
3386
|
-
${this.getText("trailing-text-subline",
|
3379
|
+
${this.getText("trailing-text-side-header",it.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
3380
|
+
${this.getText("trailing-text-subline",it.BODY_SMALL_REGULAR,this.sublineText)}
|
3387
3381
|
</div>
|
3388
3382
|
<slot name="trailing-controls"></slot>
|
3389
3383
|
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
3390
3384
|
</div>
|
3391
|
-
`}};
|
3392
|
-
|
3393
|
-
|
3394
|
-
|
3395
|
-
|
3396
|
-
|
3397
|
-
|
3385
|
+
`}};Go.styles=[...Ye.styles,...ou],v([E({type:Boolean,reflect:!0})],Go.prototype,"checked",2),v([E({type:String,reflect:!0})],Go.prototype,"indicator",2);var Dc=Go;Dc.register(Dn);var Ub=Dc;var Fn=j.constructTagName("menuitemradio"),$n={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},su={INDICATOR:$n.RADIO};var Gb=H`
|
3386
|
+
:host::part(checkmark-icon) {
|
3387
|
+
--mdc-icon-fill-color: currentColor;
|
3388
|
+
}
|
3389
|
+
`,au=[Gb];var Ho=class extends Ye{constructor(){super();this.checked=!1;this.indicator=su.INDICATOR;this.radioHandleClick=e=>{e.stopPropagation(),!(this.disabled||this.checked)&&(this.updateOtherRadiosCheckedState(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))};this.addEventListener("click",this.radioHandleClick)}connectedCallback(){super.connectedCallback(),this.role=lt.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let e=this.closest(`${Gr}, ${Ft}`);return!e||!this.name?[]:Array.from(e.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(s=>{s!==this&&(s.checked=!1)})}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=`${this.checked}`,e.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator!==$n.RADIO?Y:O`
|
3390
|
+
<mdc-staticradio
|
3391
|
+
slot="leading-controls"
|
3392
|
+
?checked="${this.checked}"
|
3393
|
+
?disabled="${this.disabled}"
|
3394
|
+
></mdc-staticradio>
|
3395
|
+
`}renderCheckmarkIcon(){return this.checked&&this.indicator===$n.CHECKMARK?O` <mdc-icon slot="trailing-controls" name="check-bold" part="checkmark-icon"></mdc-icon> `:Y}render(){return O`
|
3396
|
+
<div part="leading">
|
3397
|
+
${this.renderStaticRadio()}
|
3398
|
+
<slot name="leading-controls"></slot>
|
3399
|
+
<div part="leading-text">
|
3400
|
+
${this.getText("leading-text-primary-label",it.BODY_MIDSIZE_REGULAR,this.label)}
|
3401
|
+
${this.getText("leading-text-secondary-label",it.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3402
|
+
${this.getText("leading-text-tertiary-label",it.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
3403
|
+
</div>
|
3398
3404
|
</div>
|
3399
|
-
<div part="
|
3400
|
-
|
3401
|
-
|
3405
|
+
<div part="trailing">
|
3406
|
+
<div part="trailing-text">
|
3407
|
+
${this.getText("trailing-text-side-header",it.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
3408
|
+
${this.getText("trailing-text-subline",it.BODY_SMALL_REGULAR,this.sublineText)}
|
3409
|
+
</div>
|
3410
|
+
<slot name="trailing-controls"></slot>
|
3411
|
+
${this.renderCheckmarkIcon()}
|
3402
3412
|
</div>
|
3403
|
-
`}};
|
3413
|
+
`}};Ho.styles=[...Ye.styles,...au],v([E({type:Boolean,reflect:!0})],Ho.prototype,"checked",2),v([E({type:String,reflect:!0})],Ho.prototype,"indicator",2);var Fc=Ho;Fc.register(Fn);var Hb=Fc;var jb=H`
|
3404
3414
|
:host::part(popover-content) {
|
3405
3415
|
padding: 0.75rem 0.5rem;
|
3406
3416
|
}
|
3407
|
-
|
3417
|
+
|
3418
|
+
::slotted(mdc-divider) {
|
3419
|
+
margin-block: 0.25rem;
|
3420
|
+
}
|
3421
|
+
`,nu=[jb];var $c=l=>{var o,e;return[qs,Dn,Fn].includes((e=(o=l==null?void 0:l.tagName)==null?void 0:o.toLowerCase)==null?void 0:e.call(o))},lu=l=>{var o;return((o=l==null?void 0:l.tagName)==null?void 0:o.toLowerCase())===Ft},cu=l=>{var o,e;return((e=(o=l==null?void 0:l.tagName)==null?void 0:o.toLowerCase)==null?void 0:e.call(o))===qs&&!l.hasAttribute("disabled")};var Js=class extends we{constructor(){super();this.placement=Lc.PLACEMENT;this.onOutsidePopoverClick=e=>{if(fe.peek()!==this)return;let s=e.target.closest(Ft);if(s&&fe.has(s)){this.closeAllMenuPopovers(s);return}let n=e.composedPath(),h=this.contains(e.target)||n.includes(this.triggerElement),m=this.backdropElement?n.includes(this.backdropElement):!1;(!h||m)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=()=>{var e;(e=this.triggerElement)!=null&&e.hasAttribute("soft-disabled")||(this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0))};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleMouseClick)}get menuItems(){var n;let e=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return((e==null?void 0:e.assignedElements({flatten:!0}))||[]).map(h=>h.tagName.toLowerCase()===Gr?Array.from(h.children).filter(m=>$c(m)):$c(h)?h:[]).flat().filter(h=>!!h&&!h.hasAttribute("disabled"))}connectedCallback(){super.connectedCallback(),this.role=lt.MENU,this.ariaOrientation=Lc.ORIENTATION,this.backdrop=!1,this.color=Vi.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async firstUpdated(e){var s;await super.firstUpdated(e),this.menuItems.length>0&&(this.menuItems.forEach(n=>n.setAttribute("tabindex","-1")),this.menuItems[0].setAttribute("tabindex","0")),(s=this.triggerElement)==null||s.setAttribute("aria-haspopup",lt.MENU)}getCurrentIndex(e){return this.menuItems.findIndex(s=>s===e)}resetTabIndexAndSetFocus(e,s){e!==s&&(this.menuItems[s].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.menuItems[e].focus())}closeAllMenuPopovers(e){for(;fe.peek()!==e;){let s=fe.pop();if(s)s.hidePopover();else break}}hasSubmenuWithTriggerId(e){var s;return((s=this.parentElement)==null?void 0:s.querySelector(`${Ft}[triggerid="${e}"]`))!==null}handleMouseClick(e){let s=e.target,n=s.getAttribute("id");cu(s)&&!this.hasSubmenuWithTriggerId(n)&&this===s.closest(Ft)&&(this.closeAllMenuPopovers(),s.dispatchEvent(new Event("action",{bubbles:!0,composed:!0})))}resolveDirectionKey(e,s){if(!s)return e;switch(e){case dt.ARROW_LEFT:return dt.ARROW_RIGHT;case dt.ARROW_RIGHT:return dt.ARROW_LEFT;default:return e}}handleKeyDown(e){var m,T;let s=this.getCurrentIndex(e.target);if(s===-1)return;let n=window.getComputedStyle(this).direction==="rtl";switch(this.resolveDirectionKey(e.key,n)){case dt.HOME:{this.resetTabIndexAndSetFocus(0,s);break}case dt.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,s);break}case dt.ARROW_DOWN:{let L=s+1===this.menuItems.length?0:s+1;this.resetTabIndexAndSetFocus(L,s);break}case dt.ARROW_UP:{let L=s-1===-1?this.menuItems.length-1:s-1;this.resetTabIndexAndSetFocus(L,s);break}case dt.ARROW_RIGHT:{let L=(m=this.menuItems[s])==null?void 0:m.getAttribute("id");if(this.hasSubmenuWithTriggerId(L)){let $=(T=this.parentElement)==null?void 0:T.querySelector(`${Ft}[triggerid="${L}"]`);$&&$.showPopover()}break}case dt.ARROW_LEFT:{lu(this.parentElement)&&(this.hidePopover(),this.resetTabIndexAndSetFocus(0,s));break}case dt.ESCAPE:{this.resetTabIndexAndSetFocus(0,s);break}default:break}}};Js.styles=[...we.styles,...nu],v([E({type:String,reflect:!0})],Js.prototype,"placement",2);var zc=Js;zc.register(Ft);var Wb=zc;var Yb=H`
|
3422
|
+
:host > .mdc-menusection__label {
|
3423
|
+
padding: 0.5rem 0.75rem;
|
3424
|
+
}
|
3425
|
+
|
3426
|
+
::slotted(mdc-divider) {
|
3427
|
+
margin-block: 0.25rem;
|
3428
|
+
}
|
3429
|
+
`,du=[Yb];var jo=class extends q{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null}connectedCallback(){super.connectedCallback(),this.setAttribute("role",lt.GROUP)}update(e){super.update(e),(e.has("ariaLabel")||e.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===e.get("headerText"))&&(this.ariaLabel=this.headerText||"")}renderLabel(){return this.headerText?O`<mdc-text part="header-text" type=${it.BODY_MIDSIZE_BOLD} tagname=${bt.DIV}>
|
3430
|
+
${this.headerText}
|
3431
|
+
</mdc-text> `:null}render(){return O`${this.renderLabel()}<slot></slot>`}};jo.styles=[...q.styles,...du],v([E({type:String,reflect:!0,attribute:"aria-label"})],jo.prototype,"ariaLabel",2),v([E({type:String,reflect:!0})],jo.prototype,"headerText",2);var Vc=jo;Vc.register(Gr);var qb=Vc;var zn=j.constructTagName("sidenavigation"),yr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",HIDDEN:"hidden"},Qs={VARIANT:yr.FLEXIBLE};var Wo=j.constructTagName("navitem"),hu={DOT:Be.DOT,COUNTER:Be.COUNTER},pu={RIGHT_ARROW:"arrow-right-bold"},mu={MAX_COUNTER:99,TEXT_TYPE:it.BODY_MIDSIZE_REGULAR,TAG_NAME:bt.SPAN,SIZE:Ii[24],VARIANT:yr.FLEXIBLE};var Vn=class{constructor(o,e,s){this.variant=o,this.expanded=e,this.parentNavTooltipText=s}hasSiblingWithTriggerId(o){var n,h;let e=o==null?void 0:o.getAttribute("id");return e?Array.from((h=(n=o==null?void 0:o.parentElement)==null?void 0:n.children)!=null?h:[]).some(m=>m!==o&&m.tagName.toLowerCase()===Ft&&m.getAttribute("triggerid")===e):!1}getParentNavItems(o){if(!o)return[];let e=[],s=o;for(;s;){let n=s==null?void 0:s.closest(Ft);if(!n)break;let h=n.getAttribute("triggerid");if(!h)break;let m=document.getElementById(h);if(m&&m.tagName.toLowerCase()===Wo)e.push(m),s=m;else break}return e}setCurrentActiveNavItem(o){var h;let e=((h=this.currentActiveNavItem)==null?void 0:h.navId)===(o==null?void 0:o.navId),s=(o==null?void 0:o.disableAriaCurrent)||this.hasSiblingWithTriggerId(o);if(e||s||(this.currentActiveNavItem&&(this.currentActiveNavItem.removeAttribute("aria-current"),this.currentActiveNavItem.removeAttribute("active"),this.getParentNavItems(this.currentActiveNavItem).forEach(T=>{T.removeAttribute("tooltip-text"),T.removeAttribute("active")})),!o))return;this.currentActiveNavItem=o,o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavItems(o).forEach(m=>{m.setAttribute("tooltip-text",this.parentNavTooltipText||""),m.setAttribute("tooltip-placement",Ut.BOTTOM),m.setAttribute("active","")})}};Vn.context=zn;var Bn=Vn;var Kb=H`
|
3408
3432
|
:host {
|
3409
3433
|
--mdc-sidenavigation-expanded-width: 15rem;
|
3410
3434
|
--mdc-sidenavigation-collapsed-width: 4.5rem;
|
@@ -3469,7 +3493,7 @@
|
|
3469
3493
|
:host::part(separator) {
|
3470
3494
|
margin-bottom: 0.75rem;
|
3471
3495
|
}
|
3472
|
-
`,
|
3496
|
+
`,uu=[Kb];var cr=class extends ii{constructor(){super({context:Bn.context,initialValue:new Bn(Qs.VARIANT,!0)});this.variant=Qs.VARIANT;this.customerName="";this.flexibleExpanded=this.variant===Qs.VARIANT;this.arrowDirection=this.flexibleExpanded?ge.NEGATIVE:ge.POSITIVE;this.updateExpansionState=()=>{switch(this.variant){case yr.FLEXIBLE:this.expanded=this.flexibleExpanded;break;case yr.FIXED_EXPANDED:this.expanded=!0;break;case yr.FIXED_COLLAPSED:this.expanded=!1;break;default:}}}connectedCallback(){super.connectedCallback(),this.role=lt.NAVIGATION}static get Context(){return Bn.context}updated(e){super.updated(e),e.has("variant")&&(this.setVariant(this.variant),this.updateExpansionState()),(e.has("variant")||e.has("expanded"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.parentNavTooltipText!==this.parentNavTooltipText)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.parentNavTooltipText=this.parentNavTooltipText,this.context.updateObservers())}setVariant(e){this.setAttribute("variant",Object.values(yr).includes(e)?e:Qs.VARIANT)}toggleSideNavigation(){this.flexibleExpanded=!this.flexibleExpanded,this.arrowDirection=this.arrowDirection===ge.NEGATIVE?ge.POSITIVE:ge.NEGATIVE,this.updateExpansionState()}render(){var e;return this.variant===yr.HIDDEN?O``:O`
|
3473
3497
|
<div part="side-navigation-container" id="side-nav-container">
|
3474
3498
|
<div part="scrollable-section">
|
3475
3499
|
<slot name="scrollable-section"></slot>
|
@@ -3479,13 +3503,13 @@
|
|
3479
3503
|
<slot name="fixed-section"></slot>
|
3480
3504
|
<div part="brand-logo-container">
|
3481
3505
|
<slot name="brand-logo"></slot>
|
3482
|
-
${this.expanded?O`<mdc-text type=${
|
3506
|
+
${this.expanded?O`<mdc-text type=${it.BODY_MIDSIZE_MEDIUM} tagname=${bt.SPAN} part="label"
|
3483
3507
|
>${this.customerName}</mdc-text
|
3484
3508
|
>`:Y}
|
3485
3509
|
</div>
|
3486
3510
|
</div>
|
3487
3511
|
</div>
|
3488
|
-
${this.variant===
|
3512
|
+
${this.variant===yr.FLEXIBLE?O`<mdc-divider
|
3489
3513
|
orientation=${Wi.VERTICAL}
|
3490
3514
|
variant=${Bs.GRADIENT}
|
3491
3515
|
arrow-direction=${this.arrowDirection}
|
@@ -3499,7 +3523,7 @@
|
|
3499
3523
|
part="grabber-btn"
|
3500
3524
|
></mdc-button>
|
3501
3525
|
</mdc-divider>`:Y}
|
3502
|
-
`}};
|
3526
|
+
`}};cr.styles=[...q.styles,...uu],v([E({type:String,reflect:!0})],cr.prototype,"variant",2),v([E({type:String,reflect:!0,attribute:"customer-name"})],cr.prototype,"customerName",2),v([E({type:Boolean,reflect:!0})],cr.prototype,"expanded",2),v([E({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],cr.prototype,"grabberBtnAriaLabel",2),v([E({type:String,reflect:!0,attribute:"parent-nav-tooltip-text"})],cr.prototype,"parentNavTooltipText",2),v([_t()],cr.prototype,"flexibleExpanded",2),v([_t()],cr.prototype,"arrowDirection",2);var Ki=cr;var Xb=[Et,H`
|
3503
3527
|
:host {
|
3504
3528
|
--mdc-navitem-color: var(--mds-color-theme-text-primary-normal);
|
3505
3529
|
--mdc-navitem-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -3641,17 +3665,17 @@
|
|
3641
3665
|
left: -0.75rem;
|
3642
3666
|
top: 0.875rem;
|
3643
3667
|
}
|
3644
|
-
`,...St()],
|
3668
|
+
`,...St()],fu=Xb;var qe=class extends ce(Ye){constructor(){super(...arguments);this.maxCounter=mu.MAX_COUNTER;this.ariaLabel=null;this.sideNavigationContext=bo.consume({host:this,context:Ki.Context});this.emitNavItemActiveChange=e=>{let s=new CustomEvent("activechange",{detail:{navId:this.navId,active:e},bubbles:!0});this.dispatchEvent(s)}}connectedCallback(){super.connectedCallback(),this.variant=void 0,this.tooltipPlacement=void 0,this.addEventListener("click",this.handleClickEvent),!this.navId&&this.onerror&&this.onerror("[mdc-navitem] navId is required and was not provided.")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClickEvent)}updated(){var s,n;let e=(s=this.sideNavigationContext)==null?void 0:s.value;if(e)if(this.showLabel=this.isNested()?!0:e.expanded,this.showLabel)this.removeAttribute("aria-label");else{let h=(n=this.label)!=null?n:"";this.ariaLabel=this.ariaLabel||h,this.setAttribute("aria-label",h)}}isNested(){let e=this.parentElement;for(;e;){if(e.tagName.toLowerCase()===Ft)return!0;e=e.parentElement}return!1}modifyIconName(e){if(!this.iconName)return;let s=this.iconName.endsWith("-filled"),n=Ni(this.iconName);e?s||(this.prevIconName=this.iconName,this.iconName=`${n}-filled`):this.prevIconName&&(this.iconName=this.prevIconName)}handleClickEvent(){this.disabled||this.emitNavItemActiveChange(this.active)}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active)}renderTextLabel(e){return O`
|
3645
3669
|
<mdc-text
|
3646
|
-
type=${this.active?
|
3647
|
-
tagname=${
|
3670
|
+
type=${this.active?it.BODY_MIDSIZE_BOLD:it.BODY_MIDSIZE_MEDIUM}
|
3671
|
+
tagname=${bt.SPAN}
|
3648
3672
|
part="text-container"
|
3649
3673
|
>
|
3650
3674
|
${e}
|
3651
3675
|
</mdc-text>
|
3652
3676
|
`}renderArrowIcon(e){let s=e?"":"arrow";return O`
|
3653
|
-
<mdc-icon name=${
|
3654
|
-
`}renderBadge(e){let s=e?"":"badge";return Object.values(
|
3677
|
+
<mdc-icon name=${pu.RIGHT_ARROW} length-unit="rem" part="trailing-arrow" class="${s}"> </mdc-icon>
|
3678
|
+
`}renderBadge(e){let s=e?"":"badge";return Object.values(hu).includes(this.badgeType)?O`
|
3655
3679
|
<mdc-badge
|
3656
3680
|
class="${s}"
|
3657
3681
|
type="${at(this.badgeType)}"
|
@@ -3666,7 +3690,7 @@
|
|
3666
3690
|
</div>
|
3667
3691
|
${this.showLabel?O`${this.renderTextLabel(this.label)}${this.renderBadge(this.showLabel)}`:Y}
|
3668
3692
|
${e!=null&&e.hasSiblingWithTriggerId(this)?this.renderArrowIcon(this.showLabel):Y}
|
3669
|
-
`}};
|
3693
|
+
`}};qe.styles=[...Ye.styles,...fu],v([E({type:Boolean,reflect:!0})],qe.prototype,"active",2),v([E({type:String,reflect:!0,attribute:"badge-type"})],qe.prototype,"badgeType",2),v([E({type:Number,reflect:!0})],qe.prototype,"counter",2),v([E({type:Number,attribute:"max-counter",reflect:!0})],qe.prototype,"maxCounter",2),v([E({type:String,reflect:!0,attribute:"nav-id"})],qe.prototype,"navId",2),v([E({type:Boolean,reflect:!0,attribute:"show-label"})],qe.prototype,"showLabel",2),v([E({type:String,attribute:"aria-label"})],qe.prototype,"ariaLabel",2),v([E({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],qe.prototype,"disableAriaCurrent",2);var Bc=qe;Bc.register(Wo);var Zb=Bc;var Jb=H`
|
3670
3694
|
:host {
|
3671
3695
|
gap: 0.25rem;
|
3672
3696
|
}
|
@@ -3686,7 +3710,7 @@
|
|
3686
3710
|
::slotted(mdc-divider) {
|
3687
3711
|
margin: 0.75rem 0;
|
3688
3712
|
}
|
3689
|
-
`,
|
3713
|
+
`,vu=[Jb];var Yo=class extends Bo{constructor(){super(...arguments);this.ariaLabel=null;this.sideNavigationContext=bo.consume({host:this,context:Ki.Context});this.handleNestedNavItemActiveChange=e=>{var n;let s=this.findNav(this.navItems||[],e.detail.navId);(n=this.sideNavigationContext)!=null&&n.value&&this.sideNavigationContext.value.setCurrentActiveNavItem(s)};this.findNav=(e,s)=>e.find(n=>n.navId===s)}connectedCallback(){super.connectedCallback(),this.addEventListener("activechange",this.handleNestedNavItemActiveChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("activechange",this.handleNestedNavItemActiveChange)}updated(){var n;let e=(n=this.sideNavigationContext)==null?void 0:n.value;if(!e)return;let{expanded:s}=e;this.showLabel=s}get navItems(){return Array.from(this.querySelectorAll(`${Wo}:not([disabled])`))}};Yo.styles=[...Bo.styles,...vu],v([E({type:Boolean,reflect:!0,attribute:"show-label"})],Yo.prototype,"showLabel",2),v([E({type:String,attribute:"aria-label"})],Yo.prototype,"ariaLabel",2);var Uc=Yo;Uc.register(On);var Qb=Uc;var Un=j.constructTagName("optgroup"),Gc="header-id";var ty=H`
|
3690
3714
|
:host {
|
3691
3715
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
3692
3716
|
}
|
@@ -3699,24 +3723,24 @@
|
|
3699
3723
|
color: var(--mdc-optgroup-disabled-color);
|
3700
3724
|
cursor: default;
|
3701
3725
|
}
|
3702
|
-
`,
|
3726
|
+
`,gu=[ty];var qo=class extends jt($t(q)){setDisabledForAllOptions(){this.options.forEach(o=>{this.disabled?o.setAttribute("disabled",""):o.removeAttribute("disabled")})}updated(o){super.updated(o),o.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let o=this.label?O`
|
3703
3727
|
<mdc-text
|
3704
|
-
id="${
|
3728
|
+
id="${Gc}"
|
3705
3729
|
part="header-text"
|
3706
|
-
type="${
|
3707
|
-
tagname="${
|
3730
|
+
type="${it.BODY_MIDSIZE_BOLD}"
|
3731
|
+
tagname="${bt.SPAN}"
|
3708
3732
|
>${this.label}</mdc-text
|
3709
3733
|
>
|
3710
3734
|
`:Y;return O`
|
3711
3735
|
<div
|
3712
3736
|
role="${lt.GROUP}"
|
3713
|
-
aria-labelledby="${this.label?
|
3737
|
+
aria-labelledby="${this.label?Gc:""}"
|
3714
3738
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
3715
3739
|
>
|
3716
3740
|
${o}
|
3717
3741
|
<slot role="${lt.PRESENTATION}"></slot>
|
3718
3742
|
</div>
|
3719
|
-
`}};qo.styles=[...q.styles,...
|
3743
|
+
`}};qo.styles=[...q.styles,...gu],v([E({type:String,reflect:!0})],qo.prototype,"label",2),v([Bt({selector:"mdc-option"})],qo.prototype,"options",2);var Hc=qo;Hc.register(Un);var ey=Hc;var bu="check-bold",ta=j.constructTagName("option");var ry=H`
|
3720
3744
|
:host {
|
3721
3745
|
--mdc-option-icon-width: 1rem;
|
3722
3746
|
|
@@ -3740,18 +3764,18 @@
|
|
3740
3764
|
/** 2x of leading and trailing icon width + 2x of column gap on both sides of the label text */
|
3741
3765
|
width: calc(100% - (2 * var(--mdc-option-icon-width)) - (2 * var(--mdc-listitem-column-gap)));
|
3742
3766
|
}
|
3743
|
-
`,
|
3767
|
+
`,yu=[ry];var Xi=class extends Le(Ur){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=js.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("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())}update(e){super.update(e),e.has("selected")&&this.setAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?O`
|
3744
3768
|
<div part="leading-icon">
|
3745
3769
|
<mdc-icon length-unit="rem" slot="leading-controls" name="${at(this.prefixIcon)}"></mdc-icon>
|
3746
3770
|
</div>
|
3747
|
-
`:Y,s=this.selected?O` <mdc-icon length-unit="rem" slot="trailing-controls" name="${
|
3771
|
+
`:Y,s=this.selected?O` <mdc-icon length-unit="rem" slot="trailing-controls" name="${bu}"></mdc-icon> `:Y;return O`
|
3748
3772
|
${e}
|
3749
3773
|
<div part="leading-text">
|
3750
|
-
${this.getText("leading-text-primary-label",
|
3774
|
+
${this.getText("leading-text-primary-label",it.BODY_MIDSIZE_REGULAR,this.label)}
|
3751
3775
|
</div>
|
3752
3776
|
<div part="trailing">${s}</div>
|
3753
3777
|
<slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
|
3754
|
-
`}};Xi.styles=[...
|
3778
|
+
`}};Xi.styles=[...Ur.styles,...yu],v([E({type:Boolean,reflect:!0})],Xi.prototype,"selected",2),v([E({type:String,reflect:!0,attribute:"prefix-icon"})],Xi.prototype,"prefixIcon",2),v([E({type:String,reflect:!0,attribute:"aria-label"})],Xi.prototype,"ariaLabel",2);var jc=Xi;jc.register(ta);var iy=jc;we.register(fm);var oy=we;var Eu=j.constructTagName("progressbar"),Gn={DEFAULT:"default",INLINE:"inline"},Tu={VARIANT:Gn.DEFAULT,VALIDATION:Wt.DEFAULT};var sy=[Et,H`
|
3755
3779
|
:host {
|
3756
3780
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
3757
3781
|
--mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
|
@@ -3838,7 +3862,7 @@
|
|
3838
3862
|
border: var(--mdc-progressbar-border);
|
3839
3863
|
}
|
3840
3864
|
}
|
3841
|
-
`],
|
3865
|
+
`],xu=sy;var Zi=class extends jt(We){constructor(){super(...arguments);this.variant=Tu.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 O`
|
3842
3866
|
<div
|
3843
3867
|
part="progress-container ${s?"gap":""}"
|
3844
3868
|
role="${lt.PROGRESSBAR}"
|
@@ -3850,7 +3874,7 @@
|
|
3850
3874
|
<div part="progress-bar ${e}" style="width: ${n}%"></div>
|
3851
3875
|
<div part="remaining"></div>
|
3852
3876
|
</div>
|
3853
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${
|
3877
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${He()}`,this.disabled=void 0,this.toggletipText=void 0,this.toggletipPlacement=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=Wt.ERROR:this.clampedValue===100?this.helpTextType=Wt.SUCCESS:this.helpTextType=Wt.DEFAULT,this.helpTextType}render(){let e=this.variant===Gn.INLINE;return O`
|
3854
3878
|
${e?O`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:O`
|
3855
3879
|
<div part="label-container">
|
3856
3880
|
${this.renderLabelElement()}
|
@@ -3858,7 +3882,7 @@
|
|
3858
3882
|
</div>
|
3859
3883
|
${this.renderProgressbar()} ${this.renderHelperText()}
|
3860
3884
|
`}
|
3861
|
-
`}};Zi.styles=[...
|
3885
|
+
`}};Zi.styles=[...We.styles,...xu],v([E({type:String,reflect:!0})],Zi.prototype,"variant",2),v([E({type:String,reflect:!0})],Zi.prototype,"value",2),v([E({type:Boolean,attribute:"error"})],Zi.prototype,"error",2);var ea=Zi;ea.register(Eu);var ay=ea;var Au=j.constructTagName("progressspinner"),Zt={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"},Wc={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Yc=l=>{if(l===0)return 0;let o=l/100*Zt.CIRCUMFERENCE-Zt.GAP_SIZE;return Math.max(o,.1*l)},_u=l=>{let o=Zt.CIRCUMFERENCE-Yc(l)-2*Zt.GAP_SIZE;return l===0?Zt.CIRCUMFERENCE:o<0?0:o},Su=l=>l===0?0:Zt.GAP_SIZE*.5,Iu=(l,o)=>{let e=o+Zt.GAP_SIZE*1.5;return l===0?0:e};var ny=H`
|
3862
3886
|
:host {
|
3863
3887
|
--mdc-spinner-size: 3rem;
|
3864
3888
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
@@ -3902,7 +3926,7 @@
|
|
3902
3926
|
color: var(--mdc-progress-error-color);
|
3903
3927
|
margin: 0.5rem;
|
3904
3928
|
}
|
3905
|
-
`,
|
3929
|
+
`,ku=[ny];var Hn=class extends ea{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var h;let o=Yc(this.clampedValue),e=_u(this.clampedValue),s=Su(this.clampedValue),n=Iu(this.clampedValue,o);return O`
|
3906
3930
|
<div
|
3907
3931
|
part="spinner-container ${this.variant}"
|
3908
3932
|
role="${lt.PROGRESSBAR}"
|
@@ -3936,7 +3960,7 @@
|
|
3936
3960
|
<mdc-icon
|
3937
3961
|
part="error-icon"
|
3938
3962
|
aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
|
3939
|
-
name="${
|
3963
|
+
name="${Wc.ERROR_LEGACY_FILLED}"
|
3940
3964
|
size="${Zt.ERROR_ICON_SIZE}"
|
3941
3965
|
length-unit="${Zt.ICON_LENGTH_UNIT}"
|
3942
3966
|
></mdc-icon>
|
@@ -3944,11 +3968,11 @@
|
|
3944
3968
|
<mdc-icon
|
3945
3969
|
part="success-icon"
|
3946
3970
|
aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
|
3947
|
-
name="${
|
3971
|
+
name="${Wc.CHECK_CIRCLE_BOLD}"
|
3948
3972
|
size="${Zt.SUCCESS_ICON_SIZE}"
|
3949
3973
|
length-unit="${Zt.ICON_LENGTH_UNIT}"
|
3950
3974
|
></mdc-icon>
|
3951
|
-
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():O` ${this.renderProgressSpinner()}`}};Hn.styles=[...q.styles,...
|
3975
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():O` ${this.renderProgressSpinner()}`}};Hn.styles=[...q.styles,...ku];var qc=Hn;qc.register(Au);var ly=qc;var cy=[Et,H`
|
3952
3976
|
:host {
|
3953
3977
|
display: flex;
|
3954
3978
|
flex-direction: row;
|
@@ -4033,7 +4057,7 @@
|
|
4033
4057
|
:host::part(required-indicator) {
|
4034
4058
|
display: none;
|
4035
4059
|
}
|
4036
|
-
`,...St(!0)],
|
4060
|
+
`,...St(!0)],Cu=cy;var Ji=class extends Le(jt(ve)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?O`<div class="mdc-radio__label-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:Y}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.required&&!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(T=>T.required),h=!!s.find(T=>T.checked),m=n&&!h;this.setGroupValidity(s,!m)}this.internals.setFormValue(e)}handleChange(e){var h;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(m=>{var L;let T=(L=m.shadowRoot)==null?void 0:L.querySelector("input");T&&(m.checked=!1,T.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,m;(m=(h=e[s].shadowRoot)==null?void 0:h.querySelector("input"))==null||m.focus(),e[s].handleChange(n)}handleKeyDown(e){var m;if(this.disabled)return;let n=this.getAllRadiosWithinSameGroup().filter(T=>!T.disabled),h=n.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let T=(h+1)%n.length;this.updateRadio(n,T,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let T=(h-1+n.length)%n.length;this.updateRadio(n,T,e)}else e.key===" "&&this.updateRadio(n,h,e);this.updateTabIndex(),e.key==="Enter"&&((m=this.form)==null||m.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),s=e.find(h=>h.checked),n=e.find(h=>!h.disabled);e.forEach(h=>{var T;let m=(T=h.shadowRoot)==null?void 0:T.querySelector("input");m&&(m.tabIndex=-1,(h===s||!s&&h===n)&&(m.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return O`
|
4037
4061
|
<mdc-staticradio
|
4038
4062
|
class="mdc-focus-ring"
|
4039
4063
|
?checked="${this.checked}"
|
@@ -4060,7 +4084,7 @@
|
|
4060
4084
|
/>
|
4061
4085
|
</mdc-staticradio>
|
4062
4086
|
${this.renderLabelAndHelperText()}
|
4063
|
-
`}};Ji.styles=[...ve.styles,...
|
4087
|
+
`}};Ji.styles=[...ve.styles,...Cu],v([E({type:Boolean,reflect:!0})],Ji.prototype,"checked",2),v([E({type:Boolean,reflect:!0})],Ji.prototype,"readonly",2),v([E({type:Boolean,reflect:!0})],Ji.prototype,"autofocus",2);var Kc=Ji;var jn=j.constructTagName("radio");Kc.register(jn);var dy=Kc;var ra=class extends kn{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,s,n,h,m;(m=(h=(n=(s=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:s.flatMap(T=>T.assignedElements({flatten:!0})))==null?void 0:n.filter(T=>T.tagName.toLowerCase()===jn||T.tagName.toLowerCase()===mn))==null?void 0:h.filter(T=>!T.hasAttribute("name")))==null||m.forEach(T=>{T.setAttribute("name",this.name),this.required&&T.setAttribute("required",this.required.toString())})}};ra.styles=[...kn.styles],v([E({type:String})],ra.prototype,"name",2);var Xc=ra;var wu=j.constructTagName("radiogroup");Xc.register(wu);var hy=Xc;var py=H`
|
4064
4088
|
:host::part(filters-container) {
|
4065
4089
|
display: flex;
|
4066
4090
|
gap: 0.25rem;
|
@@ -4085,7 +4109,7 @@
|
|
4085
4109
|
position: relative;
|
4086
4110
|
scrollbar-width: none;
|
4087
4111
|
}
|
4088
|
-
`,
|
4112
|
+
`,Lu=[py];var Nu=j.constructTagName("searchfield"),ia={TYPE:Tc.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:wn};var Qi=class extends $o{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(e){super.handleKeyDown(e),e.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=ia.ICON,this.trailingButton=ia.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=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(ia.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 O`
|
4089
4113
|
${this.renderLabelElement()}
|
4090
4114
|
<div
|
4091
4115
|
class="${Ao({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}"
|
@@ -4105,7 +4129,7 @@
|
|
4105
4129
|
</div>
|
4106
4130
|
${this.renderTrailingButton(this.hasInputChips)}
|
4107
4131
|
</div>
|
4108
|
-
`}};Qi.styles=[...$o.styles,...
|
4132
|
+
`}};Qi.styles=[...$o.styles,...Lu],v([Bt({slot:"filters"})],Qi.prototype,"inputChips",2),v([_t()],Qi.prototype,"isInputFocused",2),v([_t()],Qi.prototype,"hasInputChips",2);var Zc=Qi;Zc.register(Nu);var my=Zc;var Mu=j.constructTagName("select"),Wn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Jc="select-base-triggerid";var uy=H`
|
4109
4133
|
:host {
|
4110
4134
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
4111
4135
|
--mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
|
@@ -4212,7 +4236,7 @@
|
|
4212
4236
|
:host([help-text-type='warning'])::part(base-container) {
|
4213
4237
|
border-color: var(--mdc-select-warning-border-color);
|
4214
4238
|
}
|
4215
|
-
`,
|
4239
|
+
`,Ru=[uy,...St(!0)];var ye=class extends Le(jt(ve)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=Wn.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant=""}connectedCallback(){super.connectedCallback(),this.value=void 0}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(s=>s.tagName.toLowerCase()===ta?s:s.tagName.toLowerCase()===Un?Array.from(s.children).filter(n=>n.tagName.toLowerCase()===ta):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=Wn.ARROW_UP,this.updateActivedescendant()}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=Wn.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,m;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=(m=(h=e==null?void 0:e.getAttribute("value"))!=null?h:e==null?void 0:e.textContent)!=null?m:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.required?(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}))}handlePopoverOnOpen(e){var s;switch(e.key){case dt.TAB:{let n=this.getAllValidOptions().findIndex(h=>h===e.target);this.setFocusAndTabIndex(n),e.preventDefault();break}case dt.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case dt.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(s=this.form)==null||s.requestSubmit();break;case dt.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case dt.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case dt.ARROW_DOWN:case dt.ARROW_UP:case dt.PAGE_DOWN:case dt.PAGE_UP:this.handleOptionsNavigation(e),e.preventDefault();break;default:break}}handlePopoverOnClose(e){switch(e.key){case dt.ARROW_DOWN:case dt.ARROW_UP:case dt.ENTER:case dt.SPACE:this.openPopover(),e.preventDefault();break;case dt.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case dt.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let s=this.getAllValidOptions(),n=s.findIndex(m=>m===e.target),h=this.getNewIndexBasedOnKey(e.key,n,s.length);h!==-1&&(this.setFocusAndTabIndex(h),e.preventDefault())}getNewIndexBasedOnKey(e,s,n){return e===dt.ARROW_DOWN&&s!==n-1?s+1:e===dt.ARROW_UP&&s>0?s-1:e===dt.PAGE_DOWN?s+10>n?n-1:s+10:e===dt.PAGE_UP?s-10<0?0:s-10:-1}updateActivedescendant(e){var n,h,m,T,L;let s=this.getAllValidOptions();if(e){let $=s.findIndex(W=>W===e);this.activeDescendant=(h=(n=s[$])==null?void 0:n.id)!=null?h:""}else{let $=s.find(W=>W.getAttribute("tabindex")==="0");this.activeDescendant=(L=(T=$==null?void 0:$.id)!=null?T:(m=s[0])==null?void 0:m.id)!=null?L:""}}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var h;let s=this.getAllValidOptions(),n=s[e];n&&(n.focus(),s.forEach((m,T)=>{let L=e===T?"0":"-1";m==null||m.setAttribute("tabindex",L)}),this.activeDescendant=(h=n.id)!=null?h:"")}openPopover(){var h,m;this.displayPopover=!0;let e=this.getAllValidOptions(),s=e.find(T=>T.hasAttribute("selected")),n=e.find(T=>T.getAttribute("tabindex")==="0");this.activeDescendant=(m=(h=s||n||e[0])==null?void 0:h.id)!=null?m:""}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 O`
|
4216
4240
|
<select
|
4217
4241
|
part="native-select"
|
4218
4242
|
id="${this.id}"
|
@@ -4241,7 +4265,7 @@
|
|
4241
4265
|
`})}getPopoverContent(){return this.disabled||this.readonly?Y:O`
|
4242
4266
|
<mdc-popover
|
4243
4267
|
id="options-popover"
|
4244
|
-
triggerid="${
|
4268
|
+
triggerid="${Jc}"
|
4245
4269
|
@keydown="${this.handlePopoverOnOpen}"
|
4246
4270
|
interactive
|
4247
4271
|
?visible="${this.displayPopover}"
|
@@ -4261,7 +4285,7 @@
|
|
4261
4285
|
${this.renderLabel()}
|
4262
4286
|
<div part="container">
|
4263
4287
|
<div
|
4264
|
-
id="${
|
4288
|
+
id="${Jc}"
|
4265
4289
|
part="base-container"
|
4266
4290
|
@keydown="${this.handlePopoverOnClose}"
|
4267
4291
|
tabindex="${this.disabled?"-1":"0"}"
|
@@ -4278,8 +4302,8 @@
|
|
4278
4302
|
${this.selectedIcon?O`<mdc-icon length-unit="rem" size="1" name="${this.selectedIcon}" part="selected-icon"></mdc-icon>`:Y}
|
4279
4303
|
<mdc-text
|
4280
4304
|
part="base-text ${this.selectedValueText?"selected":""}"
|
4281
|
-
type="${
|
4282
|
-
tagname="${
|
4305
|
+
type="${it.BODY_MIDSIZE_REGULAR}"
|
4306
|
+
tagname="${bt.SPAN}"
|
4283
4307
|
>
|
4284
4308
|
${(s=this.selectedValueText)!=null?s:this.placeholder}
|
4285
4309
|
</mdc-text>
|
@@ -4290,7 +4314,7 @@
|
|
4290
4314
|
${this.getNativeSelect()} ${this.getPopoverContent()}
|
4291
4315
|
</div>
|
4292
4316
|
${this.renderHelperText()}
|
4293
|
-
`}};
|
4317
|
+
`}};ye.styles=[...ve.styles,...Ru],v([E({type:String})],ye.prototype,"placeholder",2),v([E({type:Boolean})],ye.prototype,"readonly",2),v([E({type:String})],ye.prototype,"height",2),v([Bt()],ye.prototype,"optionsList",2),v([_t()],ye.prototype,"baseIconName",2),v([_t()],ye.prototype,"selectedValueText",2),v([_t()],ye.prototype,"selectedIcon",2),v([_t()],ye.prototype,"selectedValue",2),v([_t()],ye.prototype,"displayPopover",2),v([_t()],ye.prototype,"activeDescendant",2),v([Mr("select")],ye.prototype,"inputElement",2);var Qc=ye;Qc.register(Mu);var fy=Qc;Ki.register(zn);var vy=Ki;var Ou=j.constructTagName("skeleton"),Pu={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},Du={VARIANT:Pu.RECTANGULAR};var gy=H`
|
4294
4318
|
:host {
|
4295
4319
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
4296
4320
|
--mdc-skeleton-height: 100%;
|
@@ -4327,7 +4351,7 @@
|
|
4327
4351
|
::slotted(*) {
|
4328
4352
|
visibility: hidden;
|
4329
4353
|
}
|
4330
|
-
`,
|
4354
|
+
`,Fu=gy;var oa=class extends q{constructor(){super(...arguments);this.variant=Du.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(e){super.firstUpdated(e),this.checkSlotContent()}checkSlotContent(){var s;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot");e&&(e.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return O`<slot @slotchange=${this.checkSlotContent}></slot>`}};oa.styles=[...q.styles,Fu],v([E({type:String,reflect:!0})],oa.prototype,"variant",2);var td=oa;td.register(Ou);var by=td;var yy=[Et,H`
|
4331
4355
|
:host {
|
4332
4356
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
4333
4357
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -4391,11 +4415,11 @@
|
|
4391
4415
|
stroke-dashoffset: -292;
|
4392
4416
|
}
|
4393
4417
|
}
|
4394
|
-
`]
|
4418
|
+
`],$u=yy;var zu=j.constructTagName("spinner"),Ey={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ty={STANDALONE:"standalone",BUTTON:"button"},Yn={VARIANT:Ty.STANDALONE,SIZE:Ey.MIDSIZE,INVERTED:!1};var mi=class extends q{constructor(){super(...arguments);this.inverted=Yn.INVERTED;this.size=Yn.SIZE;this.ariaLabel=null;this.variant=Yn.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?lt.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return O`
|
4395
4419
|
<svg part="container" viewBox="0 0 100 100">
|
4396
4420
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
4397
4421
|
</svg>
|
4398
|
-
`}};
|
4422
|
+
`}};mi.styles=[...q.styles,...$u],v([E({type:Boolean,reflect:!0})],mi.prototype,"inverted",2),v([E({type:String,reflect:!0})],mi.prototype,"size",2),v([E({type:String,attribute:"aria-label"})],mi.prototype,"ariaLabel",2),v([E({type:String,reflect:!0})],mi.prototype,"variant",2);var ed=mi;ed.register(zu);var xy=ed;var Vu=j.constructTagName("tab"),rd={GLASS:"glass",LINE:"line",PILL:"pill"},qn={VARIANT:rd.PILL,ACTIVE:!1};var Ay=[Et,H`
|
4399
4423
|
:host {
|
4400
4424
|
--mdc-tab-content-gap: 0.5rem;
|
4401
4425
|
--mdc-tab-height: 2rem;
|
@@ -4637,12 +4661,12 @@
|
|
4637
4661
|
background-color: var(--mdc-tab-pill-active-background-color-disabled);
|
4638
4662
|
color: var(--mdc-tab-pill-active-color-disabled);
|
4639
4663
|
}
|
4640
|
-
`,...St()]
|
4664
|
+
`,...St()],Bu=Ay;var ui=class extends ce(Ie){constructor(){super(...arguments);this.active=qn.ACTIVE;this.variant=qn.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=lt.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=`${Ni(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(rd).includes(e)?e:qn.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 O`
|
4641
4665
|
<div part="container">
|
4642
4666
|
${this.iconName?O` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:Y}
|
4643
4667
|
${this.text?O` <mdc-text
|
4644
|
-
type=${this.active?
|
4645
|
-
tagname=${
|
4668
|
+
type=${this.active?it.BODY_MIDSIZE_BOLD:it.BODY_MIDSIZE_MEDIUM}
|
4669
|
+
tagname=${bt.SPAN}
|
4646
4670
|
data-text=${this.text}
|
4647
4671
|
part="text"
|
4648
4672
|
>${this.text}</mdc-text
|
@@ -4651,7 +4675,7 @@
|
|
4651
4675
|
<slot name="chip"></slot>
|
4652
4676
|
</div>
|
4653
4677
|
<div part="indicator"></div>
|
4654
|
-
`}};ui.styles=[...
|
4678
|
+
`}};ui.styles=[...Ie.styles,...Bu],v([E({type:Boolean,reflect:!0})],ui.prototype,"active",2),v([E({type:String,reflect:!0})],ui.prototype,"text",2),v([E({type:String,reflect:!0})],ui.prototype,"variant",2),v([E({type:String,reflect:!0,attribute:"tab-id"})],ui.prototype,"tabId",2);var Ke=ui;Ke.register(Vu);var _y=Ke;var Sy=[Va,H`
|
4655
4679
|
:host {
|
4656
4680
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
4657
4681
|
--mdc-tablist-gap: 0.5rem;
|
@@ -4681,7 +4705,7 @@
|
|
4681
4705
|
:host mdc-button[prefix-icon='arrow-right-regular'] {
|
4682
4706
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
4683
4707
|
}
|
4684
|
-
`],
|
4708
|
+
`],Uu=[...Sy];var Gu=j.constructTagName("tablist"),sa={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Ko={FORWARD:"forward",BACKWARD:"backward"};var Kn=l=>l[0],id=l=>l[l.length-1],Hu=(l,o)=>{let e=l.findIndex(s=>o===s)-1;return l[(e+l.length)%l.length]},ju=(l,o)=>{let e=l.findIndex(s=>o===s)+1;return l[e%l.length]},Wu=(l,o)=>l.find(e=>e.tabId===o),od=l=>l.find(o=>o.active);var dr=class extends q{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 Ke||!(e.target instanceof Ke))return;let s=od(this.tabs||[]);s instanceof Ke&&await this.focusTab(s)};this.handleMousedown=e=>{e.target instanceof Ke&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let s=e.target;s instanceof Ke&&(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 Ke&&(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 Ke)||!this.tabs)return;let n=Hu(this.tabs,s),h=ju(this.tabs,s),m=Kn(this.tabs),T=id(this.tabs);switch(e.code){case sa.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?h:n);break;case sa.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?n:h);break;case sa.HOME:await this.focusTab(m);break;case sa.END:await this.focusTab(T);break;default:}};this.shouldShowArrowButton=e=>e===Ko.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,s;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=od(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((s=this.notFocusedArrowButton)==null||s.focus())};this.handleArrowButtonVisibility=async()=>{var K,ot,J;if(!this.tabs||!this.tabsContainer)return;let e=!1;((K=this.shadowRoot)==null?void 0:K.activeElement)instanceof Mi&&(e=!0);let s=Kn(this.tabs),n=id(this.tabs),h=s.getBoundingClientRect().left,m=(ot=this.tabsContainer)==null?void 0:ot.getBoundingClientRect().left,T=n.getBoundingClientRect().right,L=(J=this.tabsContainer)==null?void 0:J.getBoundingClientRect().right,$=s.getBoundingClientRect().right,W=n.getBoundingClientRect().left;if(!this.isRtl()){h<=m?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,T>L?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}$>L?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,W<m?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===Ko.FORWARD?s:n),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var n,h,m;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(T=>T.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=Kn(this.tabs))==null?void 0:n.tabId),(h=this.tabsContainer)==null||h.addEventListener("focusin",this.handleFocus),(m=this.tabsContainer)==null||m.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let s=Wu(this.tabs,this.activeTabId);if(!(s instanceof Ke))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=>O` ${this.shouldShowArrowButton(h)?O`<mdc-button
|
4685
4709
|
variant="tertiary"
|
4686
4710
|
prefix-icon="arrow-${h===Ko.FORWARD?e:s}-regular"
|
4687
4711
|
aria-label="Scroll tabs ${h===Ko.FORWARD?e:s}"
|
@@ -4690,7 +4714,7 @@
|
|
4690
4714
|
<div class="container" role="${lt.TABLIST}" tabindex="-1" aria-label="${at(this.dataAriaLabel)}">
|
4691
4715
|
<slot></slot>
|
4692
4716
|
</div>
|
4693
|
-
${n(Ko.FORWARD)}`}};
|
4717
|
+
${n(Ko.FORWARD)}`}};dr.styles=[...q.styles,...Uu],v([E({type:String,attribute:"active-tab-id",reflect:!0})],dr.prototype,"activeTabId",2),v([E({type:String,attribute:"data-aria-label"})],dr.prototype,"dataAriaLabel",2),v([Mr(".container")],dr.prototype,"tabsContainer",2),v([Mr("mdc-button:not(:focus-visible)")],dr.prototype,"notFocusedArrowButton",2),v([Bt({selector:"mdc-tab"})],dr.prototype,"tabs",2),v([_t()],dr.prototype,"showForwardArrowButton",2),v([_t()],dr.prototype,"showBackwardArrowButton",2);var sd=dr;sd.register(Gu);var Iy=sd;var Yu=j.constructTagName("textarea"),ad={HARD:"hard",SOFT:"soft"},qu={OFF:"off",ON:"on"},Xn={CHARACTER_COUNTER_TYPE:it.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:ad.SOFT};var ky=[H`
|
4694
4718
|
:host {
|
4695
4719
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
4696
4720
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -4809,7 +4833,7 @@
|
|
4809
4833
|
opacity: 0;
|
4810
4834
|
pointer-events: none;
|
4811
4835
|
}
|
4812
|
-
`,...St(!0)],
|
4836
|
+
`,...St(!0)],Ku=ky;var se=class extends Le(jt(We)){constructor(){super(...arguments);this.readonly=!1;this.rows=Xn.ROWS;this.cols=Xn.COLS;this.wrap=ad.SOFT;this.autocapitalize=Cn.OFF;this.autocomplete=qu.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.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Wt.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(m=>{this.onerror&&this.onerror(m)})}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?O`
|
4813
4837
|
<mdc-text part="character-counter" tagname="span" type=${Xn.CHARACTER_COUNTER_TYPE}>
|
4814
4838
|
${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
|
4815
4839
|
</mdc-text>
|
@@ -4842,7 +4866,7 @@
|
|
4842
4866
|
></textarea>
|
4843
4867
|
</div>
|
4844
4868
|
${this.renderTextareaFooter()}
|
4845
|
-
`}};se.styles=[...
|
4869
|
+
`}};se.styles=[...We.styles,...Ku],v([E({type:String})],se.prototype,"placeholder",2),v([E({type:Boolean})],se.prototype,"readonly",2),v([E({type:Number})],se.prototype,"rows",2),v([E({type:Number})],se.prototype,"cols",2),v([E({type:String})],se.prototype,"wrap",2),v([E({type:String})],se.prototype,"autocapitalize",2),v([E({type:String})],se.prototype,"autocomplete",2),v([E({type:Boolean})],se.prototype,"autofocus",2),v([E({type:String})],se.prototype,"dirname",2),v([E({type:Number})],se.prototype,"maxlength",2),v([E({type:Number})],se.prototype,"minlength",2),v([E({type:Number,attribute:"max-character-limit"})],se.prototype,"maxCharacterLimit",2),v([Mr("textarea")],se.prototype,"inputElement",2);var nd=se;nd.register(Yu);var Cy=nd;var Zn=j.constructTagName("themeprovider"),ld={THEMECLASS:"mds-theme-stable-darkWebex"};var Jn=class{constructor(o){this.themeclass=o}};Jn.context=Zn;var Qn=Jn;var wy=H`
|
4846
4870
|
:host {
|
4847
4871
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
4848
4872
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -4871,7 +4895,7 @@
|
|
4871
4895
|
* {
|
4872
4896
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
4873
4897
|
}
|
4874
|
-
`,
|
4898
|
+
`,Xu=[wy];var Xo=class extends ii{constructor(){super({context:Qn.context,initialValue:new Qn(ld.THEMECLASS)});this.themeclass=ld.THEMECLASS}static get Context(){return Qn.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(" "))}};Xo.styles=[...ii.styles,...Xu],v([_t()],Xo.prototype,"currentThemeClass",2),v([E({type:String})],Xo.prototype,"themeclass",2);var cd=Xo;cd.register(Zn);var Ly=cd;var Ny=[Et,H`
|
4875
4899
|
:host {
|
4876
4900
|
--mdc-toggle-width: 3rem;
|
4877
4901
|
--mdc-toggle-height: 1.5rem;
|
@@ -4957,7 +4981,7 @@
|
|
4957
4981
|
:host([disabled]) .mdc-help-text {
|
4958
4982
|
color: var(--mdc-toggle-label-color-disabled);
|
4959
4983
|
}
|
4960
|
-
`,...St(!0)],
|
4984
|
+
`,...St(!0)],Zu=Ny;var to=class extends Le(jt(We)){constructor(){super(...arguments);this.checked=!1;this.size=Pc.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.required?(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(Xs).includes(e)?e:Pc.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return O`
|
4961
4985
|
<mdc-statictoggle
|
4962
4986
|
?checked="${this.checked}"
|
4963
4987
|
?disabled="${this.disabled}"
|
@@ -4985,10 +5009,10 @@
|
|
4985
5009
|
/>
|
4986
5010
|
</mdc-statictoggle>
|
4987
5011
|
${this.renderLabel()} ${this.renderHelperText()}
|
4988
|
-
`}};to.styles=[...
|
5012
|
+
`}};to.styles=[...We.styles,...Zu],v([E({type:Boolean,reflect:!0})],to.prototype,"checked",2),v([E({type:String,reflect:!0})],to.prototype,"size",2),v([E({type:Boolean,reflect:!0})],to.prototype,"autofocus",2);var dd=to;dd.register(ru);var My=dd;function eo(l,o,e){var h;let s=(h=e.initialDeps)!=null?h:[],n;return()=>{var m,T,L,$;let W;e.key&&((m=e.debug)!=null&&m.call(e))&&(W=Date.now());let K=l();if(!(K.length!==s.length||K.some((tt,ht)=>s[ht]!==tt)))return n;s=K;let J;if(e.key&&((T=e.debug)!=null&&T.call(e))&&(J=Date.now()),n=o(...K),e.key&&((L=e.debug)!=null&&L.call(e))){let tt=Math.round((Date.now()-W)*100)/100,ht=Math.round((Date.now()-J)*100)/100,Tt=ht/16,yt=(xt,kt)=>{for(xt=String(xt);xt.length<kt;)xt=" "+xt;return xt};console.info(`%c\u23F1 ${yt(ht,5)} /${yt(tt,5)} ms`,`
|
4989
5013
|
font-size: .6rem;
|
4990
5014
|
font-weight: bold;
|
4991
|
-
color: hsl(${Math.max(0,Math.min(120-120*Tt,120))}deg 100% 31%);`,e==null?void 0:e.key)}return($=e==null?void 0:e.onChange)==null||$.call(e,n),n}}function tl(l,o){if(l===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return l}var Ku=(l,o)=>Math.abs(l-o)<1,Xu=(l,o,e)=>{let s;return function(...n){l.clearTimeout(s),s=l.setTimeout(()=>o.apply(this,n),e)}};var Cy=l=>l,wy=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},Ju=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=p=>{let{width:T,height:L}=p;o({width:Math.round(T),height:Math.round(L)})};if(n(e.getBoundingClientRect()),!s.ResizeObserver)return()=>{};let h=new s.ResizeObserver(p=>{let T=p[0];if(T!=null&&T.borderBoxSize){let L=T.borderBoxSize[0];if(L){n({width:L.inlineSize,height:L.blockSize});return}}n(e.getBoundingClientRect())});return h.observe(e,{box:"border-box"}),()=>{h.unobserve(e)}},Zu={passive:!0};var Ly=typeof window>"u"?!0:"onscrollend"in window,Qu=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=0,h=l.options.useScrollendEvent&&Ly?()=>{}:Xu(s,()=>{o(n,!1)},l.options.isScrollingResetDelay),p=$=>()=>{let{horizontal:W,isRtl:K}=l.options;n=W?e.scrollLeft*(K&&-1||1):e.scrollTop,h(),o(n,$)},T=p(!0),L=p(!1);return L(),e.addEventListener("scroll",T,Zu),e.addEventListener("scrollend",L,Zu),()=>{e.removeEventListener("scroll",T),e.removeEventListener("scrollend",L)}};var Ny=(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 tf=(l,{adjustments:o=0,behavior:e},s)=>{var n,h;let p=l+o;(h=(n=s.scrollElement)==null?void 0:n.scrollTo)==null||h.call(n,{[s.options.horizontal?"left":"top"]:p,behavior:e})},el=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:Cy,rangeExtractor:wy,onChange:()=>{},measureElement:Ny,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=eo(()=>(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,p)=>{this.scrollAdjustments=0,this.scrollDirection=p?this.getScrollOffset()<h?"forward":"backward":null,this.scrollOffset=h,this.isScrolling=p,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 p=s-1;p>=0;p--){let T=e[p];if(n.has(T.lane))continue;let L=h.get(T.lane);if(L==null||T.end>L.end?h.set(T.lane,T):T.end<L.end&&n.set(T.lane,!0),n.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((p,T)=>p.end===T.end?p.index-T.index:p.end-T.end)[0]:void 0},this.getMeasurementOptions=eo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,s,n,h,p)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:p}),{key:!1}),this.getMeasurements=eo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:p},T)=>{if(!p)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(W=>{this.itemSizeCache.set(W.key,W.size)}));let L=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,L);for(let W=L;W<e;W++){let K=h(W),it=this.options.lanes===1?$[W-1]:this.getFurthestMeasurement($,W),J=it?it.end+this.options.gap:s+n,tt=T.get(K),ht=typeof tt=="number"?tt:this.options.estimateSize(W),Tt=J+ht,bt=it?it.lane:W%this.options.lanes;$[W]={index:W,start:J,size:ht,end:Tt,key:K,lane:bt}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=eo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,s,n)=>this.range=e.length>0&&s>0?My({measurements:e,outerSize:s,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=eo(()=>{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,p)=>h===null||p===null?[]:e({startIndex:h,endIndex:p,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 p=h.key,T=this.elementsCache.get(p);T!==e&&(T&&this.observer.unobserve(T),this.observer.observe(e),this.elementsCache.set(p,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,s,this))},this.resizeItem=(e,s)=>{var T;let n=this.measurementsCache[e];if(!n)return;let h=(T=this.itemSizeCache.get(n.key))!=null?T:n.size,p=s-h;p!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,p,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=p,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=eo(()=>[this.getIndexes(),this.getMeasurements()],(e,s)=>{let n=[];for(let h=0,p=e.length;h<p;h++){let T=e[h],L=s[T];n.push(L)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let s=this.getMeasurements();if(s.length!==0)return tl(s[ef(0,s.length-1,n=>tl(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 p=this.options.horizontal?"scrollWidth":"scrollHeight",L=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[p]:this.scrollElement[p]:0)-n;return Math.max(Math.min(L,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(),p=this.getScrollOffset();if(s==="auto")if(n.end>=p+h-this.options.scrollPaddingEnd)s="end";else if(n.start<=p+this.options.scrollPaddingStart)s="start";else return[p,s];let T=n.start-this.options.scrollPaddingStart+(n.size-h)/2;switch(s){case"center":return[this.getOffsetForAlignment(T,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[p,T]=h;this._scrollToOffset(p,{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[$]=tl(this.getOffsetForIndex(e,T));Ku($,this.getScrollOffset())||this.scrollToIndex(e,{align:T,behavior:n})}else this.scrollToIndex(e,{align:T,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(p=>p.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)}},ef=(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 My({measurements:l,outerSize:o,scrollOffset:e}){let s=l.length-1,h=ef(0,s,T=>l[T].start,e),p=h;for(;p<s&&l[p].end<e+o;)p++;return{startIndex:h,endIndex:p}}var md=class{constructor(o,e){this.cleanup=()=>{},(this.host=o).addController(this);let s={...e,onChange:(n,h)=>{var p;this.host.updateComplete.then(()=>this.host.requestUpdate()),(p=e.onChange)==null||p.call(e,n,h)}};this.virtualizer=new el(s)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},rl=class extends md{constructor(o,e){super(o,{observeElementRect:Ju,observeElementOffset:Qu,scrollToFn:tf,...e})}};var Ry=[H`
|
5015
|
+
color: hsl(${Math.max(0,Math.min(120-120*Tt,120))}deg 100% 31%);`,e==null?void 0:e.key)}return($=e==null?void 0:e.onChange)==null||$.call(e,n),n}}function tl(l,o){if(l===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return l}var Ju=(l,o)=>Math.abs(l-o)<1,Qu=(l,o,e)=>{let s;return function(...n){l.clearTimeout(s),s=l.setTimeout(()=>o.apply(this,n),e)}};var Ry=l=>l,Oy=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},ef=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=m=>{let{width:T,height:L}=m;o({width:Math.round(T),height:Math.round(L)})};if(n(e.getBoundingClientRect()),!s.ResizeObserver)return()=>{};let h=new s.ResizeObserver(m=>{let T=m[0];if(T!=null&&T.borderBoxSize){let L=T.borderBoxSize[0];if(L){n({width:L.inlineSize,height:L.blockSize});return}}n(e.getBoundingClientRect())});return h.observe(e,{box:"border-box"}),()=>{h.unobserve(e)}},tf={passive:!0};var Py=typeof window>"u"?!0:"onscrollend"in window,rf=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=0,h=l.options.useScrollendEvent&&Py?()=>{}:Qu(s,()=>{o(n,!1)},l.options.isScrollingResetDelay),m=$=>()=>{let{horizontal:W,isRtl:K}=l.options;n=W?e.scrollLeft*(K&&-1||1):e.scrollTop,h(),o(n,$)},T=m(!0),L=m(!1);return L(),e.addEventListener("scroll",T,tf),e.addEventListener("scrollend",L,tf),()=>{e.removeEventListener("scroll",T),e.removeEventListener("scrollend",L)}};var Dy=(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 of=(l,{adjustments:o=0,behavior:e},s)=>{var n,h;let m=l+o;(h=(n=s.scrollElement)==null?void 0:n.scrollTo)==null||h.call(n,{[s.options.horizontal?"left":"top"]:m,behavior:e})},el=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:Ry,rangeExtractor:Oy,onChange:()=>{},measureElement:Dy,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=eo(()=>(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,m)=>{this.scrollAdjustments=0,this.scrollDirection=m?this.getScrollOffset()<h?"forward":"backward":null,this.scrollOffset=h,this.isScrolling=m,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 m=s-1;m>=0;m--){let T=e[m];if(n.has(T.lane))continue;let L=h.get(T.lane);if(L==null||T.end>L.end?h.set(T.lane,T):T.end<L.end&&n.set(T.lane,!0),n.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((m,T)=>m.end===T.end?m.index-T.index:m.end-T.end)[0]:void 0},this.getMeasurementOptions=eo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,s,n,h,m)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:m}),{key:!1}),this.getMeasurements=eo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:m},T)=>{if(!m)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(W=>{this.itemSizeCache.set(W.key,W.size)}));let L=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,L);for(let W=L;W<e;W++){let K=h(W),ot=this.options.lanes===1?$[W-1]:this.getFurthestMeasurement($,W),J=ot?ot.end+this.options.gap:s+n,tt=T.get(K),ht=typeof tt=="number"?tt:this.options.estimateSize(W),Tt=J+ht,yt=ot?ot.lane:W%this.options.lanes;$[W]={index:W,start:J,size:ht,end:Tt,key:K,lane:yt}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=eo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,s,n)=>this.range=e.length>0&&s>0?Fy({measurements:e,outerSize:s,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=eo(()=>{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,m)=>h===null||m===null?[]:e({startIndex:h,endIndex:m,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 m=h.key,T=this.elementsCache.get(m);T!==e&&(T&&this.observer.unobserve(T),this.observer.observe(e),this.elementsCache.set(m,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,s,this))},this.resizeItem=(e,s)=>{var T;let n=this.measurementsCache[e];if(!n)return;let h=(T=this.itemSizeCache.get(n.key))!=null?T:n.size,m=s-h;m!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,m,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=m,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=eo(()=>[this.getIndexes(),this.getMeasurements()],(e,s)=>{let n=[];for(let h=0,m=e.length;h<m;h++){let T=e[h],L=s[T];n.push(L)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let s=this.getMeasurements();if(s.length!==0)return tl(s[sf(0,s.length-1,n=>tl(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 m=this.options.horizontal?"scrollWidth":"scrollHeight",L=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[m]:this.scrollElement[m]:0)-n;return Math.max(Math.min(L,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(),m=this.getScrollOffset();if(s==="auto")if(n.end>=m+h-this.options.scrollPaddingEnd)s="end";else if(n.start<=m+this.options.scrollPaddingStart)s="start";else return[m,s];let T=n.start-this.options.scrollPaddingStart+(n.size-h)/2;switch(s){case"center":return[this.getOffsetForAlignment(T,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[m,T]=h;this._scrollToOffset(m,{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[$]=tl(this.getOffsetForIndex(e,T));Ju($,this.getScrollOffset())||this.scrollToIndex(e,{align:T,behavior:n})}else this.scrollToIndex(e,{align:T,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(m=>m.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)}},sf=(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 Fy({measurements:l,outerSize:o,scrollOffset:e}){let s=l.length-1,h=sf(0,s,T=>l[T].start,e),m=h;for(;m<s&&l[m].end<e+o;)m++;return{startIndex:h,endIndex:m}}var hd=class{constructor(o,e){this.cleanup=()=>{},(this.host=o).addController(this);let s={...e,onChange:(n,h)=>{var m;this.host.updateComplete.then(()=>this.host.requestUpdate()),(m=e.onChange)==null||m.call(e,n,h)}};this.virtualizer=new el(s)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},rl=class extends hd{constructor(o,e){super(o,{observeElementRect:ef,observeElementOffset:rf,scrollToFn:of,...e})}};var $y=[H`
|
4992
5016
|
:host::part(scroll) {
|
4993
5017
|
height: 100%;
|
4994
5018
|
width: 100%;
|
@@ -4998,11 +5022,11 @@
|
|
4998
5022
|
position: relative;
|
4999
5023
|
width: 100%;
|
5000
5024
|
}
|
5001
|
-
`],
|
5025
|
+
`],af=$y;var nf=j.constructTagName("virtualizedlist"),R5=j.constructTagName("virtualizedwrapper"),lf={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var ro=class extends q{constructor(){super();this.virtualizerProps=lf.VIRTUALIZER_PROPS;this.scrollElementRef=Ya();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 rl(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 T,L;this.virtualizer=e.getVirtualizer();let{getTotalSize:s,getVirtualItems:n,measureElement:h}=this.virtualizer,m=n();if(m!==this.virtualItems){this.virtualItems=m;let $=n(),W={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(L=(T=$[0])==null?void 0:T.start)!=null?L:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:$,measureElement:h,listStyle:W})}return O`<div part="container" style="height: ${s()}px;">
|
5002
5026
|
<slot></slot>
|
5003
5027
|
</div>`}render(){return O`<div ${qa(this.scrollElementRef)} part="scroll" @scroll=${this.onscroll&&this.onscroll}>
|
5004
5028
|
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):O``}
|
5005
|
-
</div> `}};ro.styles=[...q.styles,...
|
5029
|
+
</div> `}};ro.styles=[...q.styles,...af],v([E({type:Function,attribute:"onscroll"})],ro.prototype,"onscroll",2),v([E({type:Object,attribute:"virtualizerprops"})],ro.prototype,"virtualizerProps",2),v([E({type:Function,attribute:"setlistdata"})],ro.prototype,"setlistdata",2);var pd=ro;pd.register(nf);var zy=pd;})();
|
5006
5030
|
/*! Bundled license information:
|
5007
5031
|
|
5008
5032
|
lottie-web/build/player/lottie_light.js:
|