@momentum-design/components 0.98.1 → 0.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +410 -271
- package/dist/browser/index.js.map +4 -4
- package/dist/components/card/card.styles.js +2 -2
- package/dist/components/toast/index.d.ts +11 -0
- package/dist/components/toast/index.js +8 -0
- package/dist/components/toast/toast.component.d.ts +101 -0
- package/dist/components/toast/toast.component.js +242 -0
- package/dist/components/toast/toast.constants.d.ts +26 -0
- package/dist/components/toast/toast.constants.js +28 -0
- package/dist/components/toast/toast.styles.d.ts +2 -0
- package/dist/components/toast/toast.styles.js +88 -0
- package/dist/components/toast/toast.types.d.ts +7 -0
- package/dist/components/toast/toast.types.js +1 -0
- package/dist/components/toast/toast.utils.d.ts +3 -0
- package/dist/components/toast/toast.utils.js +14 -0
- package/dist/custom-elements.json +4440 -4054
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/index.d.ts +5 -4
- package/dist/react/index.js +5 -4
- package/dist/react/toast/index.d.ts +45 -0
- package/dist/react/toast/index.js +53 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
"use strict";(()=>{var Kv=Object.create;var Ml=Object.defineProperty;var Nh=Object.getOwnPropertyDescriptor;var Xv=Object.getOwnPropertyNames;var Zv=Object.getPrototypeOf,Jv=Object.prototype.hasOwnProperty;var Qv=(l,i)=>()=>(i||l((i={exports:{}}).exports,i),i.exports);var tg=(l,i,t,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let n of Xv(i))!Jv.call(l,n)&&n!==t&&Ml(l,n,{get:()=>i[n],enumerable:!(s=Nh(i,n))||s.enumerable});return l};var eg=(l,i,t)=>(t=l!=null?Kv(Zv(l)):{},tg(i||!l||!l.__esModule?Ml(t,"default",{value:l,enumerable:!0}):t,l));var f=(l,i,t,s)=>{for(var n=s>1?void 0:s?Nh(i,t):i,h=l.length-1,m;h>=0;h--)(m=l[h])&&(n=(s?m(i,t,n):m(n))||n);return s&&n&&Ml(i,t,n),n};var xp=Qv((Us,vn)=>{typeof navigator<"u"&&function(l,i){typeof Us=="object"&&typeof vn<"u"?vn.exports=i():typeof define=="function"&&define.amd?define(i):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=i())}(Us,function(){"use strict";var l="http://www.w3.org/2000/svg",i="",t=!1,s=-999999,n=function(r){t=!!r},h=function(){return t},m=function(r){i=r},x=function(){return i};function R(e){return document.createElement(e)}function $(e,r){var o,a=e.length,d;for(o=0;o<a;o+=1){d=e[o].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function Y(e,r){return Object.getOwnPropertyDescriptor(e,r)}function K(e){function r(){}return r.prototype=e,r}var at=function(){function e(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(o){this.audios.push(o)},pause:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].pause()},resume:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].resume()},setRate:function(o){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].setRate(o)},createAudio:function(o){return this.audioFactory?this.audioFactory(o):window.Howl?new window.Howl({src:[o]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(o){this.audioFactory=o},setVolume:function(o){this._volume=o,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),J=function(){function e(o,a){var d=0,c=[],u;switch(o){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(o,a){return o==="float32"?new Float32Array(a):o==="int16"?new Int16Array(a):o==="uint8c"?new Uint8ClampedArray(a):e(o,a)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:e}();function rt(e){return Array.apply(null,{length:e})}function ht(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ht=function(o){return typeof o}:ht=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ht(e)}var Tt=!0,yt=null,xt=null,kt="",Gt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ot=!1,Dt=Math.pow,Ee=Math.sqrt,re=Math.floor,Qe=Math.max,Ne=Math.min,Fe={};(function(){var e=["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,o=e.length;for(r=0;r<o;r+=1)Fe[e[r]]=Math[e[r]]})();function tr(){return{}}Fe.random=Math.random,Fe.abs=function(e){var r=ht(e);if(r==="object"&&e.length){var o=rt(e.length),a,d=e.length;for(a=0;a<d;a+=1)o[a]=Math.abs(e[a]);return o}return Math.abs(e)};var er=150,_t=Math.PI/180,pe=.5519;function $e(e){Ot=!!e}function rr(e){return Ot?Math.round(e):e}function Ir(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function ze(e,r,o,a){this.type=e,this.currentTime=r,this.totalTime=o,this.direction=a<0?-1:1}function Sa(e,r){this.type=e,this.direction=r<0?-1:1}function $d(e,r,o,a){this.type=e,this.currentLoop=o,this.totalLoops=r,this.direction=a<0?-1:1}function zd(e,r,o){this.type=e,this.firstFrame=r,this.totalFrames=o}function Vd(e,r){this.type=e,this.target=r}function Kf(e,r){this.type="renderFrameError",this.nativeError=e,this.currentTime=r}function Xf(e){this.type="configError",this.nativeError=e}function $E(e,r){this.type=e,this.nativeError=r}var Te=function(){var e=0;return function(){return e+=1,kt+"__lottie_element_"+e}}();function El(e,r,o){var a,d,c,u,T,v,I,w;switch(u=Math.floor(e*6),T=e*6-u,v=o*(1-r),I=o*(1-T*r),w=o*(1-(1-T)*r),u%6){case 0:a=o,d=w,c=v;break;case 1:a=I,d=o,c=v;break;case 2:a=v,d=o,c=w;break;case 3:a=v,d=I,c=o;break;case 4:a=w,d=v,c=o;break;case 5:a=o,d=v,c=I;break;default:break}return[a,d,c]}function Tl(e,r,o){var a=Math.max(e,r,o),d=Math.min(e,r,o),c=a-d,u,T=a===0?0:c/a,v=a/255;switch(a){case d:u=0;break;case e:u=r-o+c*(r<o?6:0),u/=6*c;break;case r:u=o-e+c*2,u/=6*c;break;case o:u=e-r+c*4,u/=6*c;break;default:break}return[u,T,v]}function Bd(e,r){var o=Tl(e[0]*255,e[1]*255,e[2]*255);return o[1]+=r,o[1]>1?o[1]=1:o[1]<=0&&(o[1]=0),El(o[0],o[1],o[2])}function Ud(e,r){var o=Tl(e[0]*255,e[1]*255,e[2]*255);return o[2]+=r,o[2]>1?o[2]=1:o[2]<0&&(o[2]=0),El(o[0],o[1],o[2])}function Gd(e,r){var o=Tl(e[0]*255,e[1]*255,e[2]*255);return o[0]+=r/360,o[0]>1?o[0]-=1:o[0]<0&&(o[0]+=1),El(o[0],o[1],o[2])}var zE=function(){var e=[],r,o;for(r=0;r<256;r+=1)o=r.toString(16),e[r]=o.length===1?"0"+o:o;return function(a,d,c){return a<0&&(a=0),d<0&&(d=0),c<0&&(c=0),"#"+e[a]+e[d]+e[c]}}(),Zf=function(r){Tt=!!r},Jf=function(){return Tt},Qf=function(r){yt=r},Ia=function(){return yt},VE=function(r){xt=r},Hd=function(){return xt},ka=function(r){er=r},ps=function(){return er},tv=function(r){kt=r},BE=function(){return kt};function gt(e){return document.createElementNS(l,e)}function Ca(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ca=function(o){return typeof o}:Ca=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ca(e)}var ms=function(){var e=1,r=[],o,a,d={onmessage:function(){},postMessage:function(N){o({data:N})}},c={postMessage:function(N){d.onmessage({data:N})}};function u(E){if(window.Worker&&window.Blob&&h()){var N=new Blob(["var _workerSelf = self; self.onmessage = ",E.toString()],{type:"text/javascript"}),P=URL.createObjectURL(N);return new Worker(P)}return o=E,d}function T(){a||(a=u(function(N){function P(){function z(X,_){var O,p,b=X.length,U,F,st,mt;for(p=0;p<b;p+=1)if(O=X[p],"ks"in O&&!O.completed){if(O.completed=!0,O.hasMask){var ft=O.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,st=0;st<mt;st+=1)ft[U].pt.k[st].s&&k(ft[U].pt.k[st].s[0]),ft[U].pt.k[st].e&&k(ft[U].pt.k[st].e[0])}O.ty===0?(O.layers=y(O.refId,_),z(O.layers,_)):O.ty===4?A(O.shapes):O.ty===5&&bt(O)}}function C(X,_){if(X){var O=0,p=X.length;for(O=0;O<p;O+=1)X[O].t===1&&(X[O].data.layers=y(X[O].data.refId,_),z(X[O].data.layers,_))}}function S(X,_){for(var O=0,p=_.length;O<p;){if(_[O].id===X)return _[O];O+=1}return null}function y(X,_){var O=S(X,_);return O?O.layers.__used?JSON.parse(JSON.stringify(O.layers)):(O.layers.__used=!0,O.layers):null}function A(X){var _,O=X.length,p,b;for(_=O-1;_>=0;_-=1)if(X[_].ty==="sh")if(X[_].ks.k.i)k(X[_].ks.k);else for(b=X[_].ks.k.length,p=0;p<b;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 _,O=X.i.length;for(_=0;_<O;_+=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 O=_?_.split("."):[100,100,100];return X[0]>O[0]?!0:O[0]>X[0]?!1:X[1]>O[1]?!0:O[1]>X[1]?!1:X[2]>O[2]?!0:O[2]>X[2]?!1:null}var V=function(){var X=[4,4,14];function _(p){var b=p.t.d;p.t.d={k:[{s:b,t:0}]}}function O(p){var b,U=p.length;for(b=0;b<U;b+=1)p[b].ty===5&&_(p[b])}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}(),G=function(){var X=[4,7,99];return function(_){if(_.chars&&!D(X,_.v)){var O,p=_.chars.length;for(O=0;O<p;O+=1){var b=_.chars[O];b.data&&b.data.shapes&&(A(b.data.shapes),b.data.ip=0,b.data.op=99999,b.data.st=0,b.data.sr=1,b.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[O].t||(b.data.shapes.push({ty:"no"}),b.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 b=p.t.p;typeof b.a=="number"&&(b.a={a:0,k:b.a}),typeof b.p=="number"&&(b.p={a:0,k:b.p}),typeof b.r=="number"&&(b.r={a:0,k:b.r})}function O(p){var b,U=p.length;for(b=0;b<U;b+=1)p[b].ty===5&&_(p[b])}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}(),ut=function(){var X=[4,1,9];function _(p){var b,U=p.length,F,st;for(b=0;b<U;b+=1)if(p[b].ty==="gr")_(p[b].it);else if(p[b].ty==="fl"||p[b].ty==="st")if(p[b].c.k&&p[b].c.k[0].i)for(st=p[b].c.k.length,F=0;F<st;F+=1)p[b].c.k[F].s&&(p[b].c.k[F].s[0]/=255,p[b].c.k[F].s[1]/=255,p[b].c.k[F].s[2]/=255,p[b].c.k[F].s[3]/=255),p[b].c.k[F].e&&(p[b].c.k[F].e[0]/=255,p[b].c.k[F].e[1]/=255,p[b].c.k[F].e[2]/=255,p[b].c.k[F].e[3]/=255);else p[b].c.k[0]/=255,p[b].c.k[1]/=255,p[b].c.k[2]/=255,p[b].c.k[3]/=255}function O(p){var b,U=p.length;for(b=0;b<U;b+=1)p[b].ty===4&&_(p[b].shapes)}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}(),dt=function(){var X=[4,4,18];function _(p){var b,U=p.length,F,st;for(b=U-1;b>=0;b-=1)if(p[b].ty==="sh")if(p[b].ks.k.i)p[b].ks.k.c=p[b].closed;else for(st=p[b].ks.k.length,F=0;F<st;F+=1)p[b].ks.k[F].s&&(p[b].ks.k[F].s[0].c=p[b].closed),p[b].ks.k[F].e&&(p[b].ks.k[F].e[0].c=p[b].closed);else p[b].ty==="gr"&&_(p[b].it)}function O(p){var b,U,F=p.length,st,mt,ft,Ct;for(U=0;U<F;U+=1){if(b=p[U],b.hasMask){var wt=b.masksProperties;for(mt=wt.length,st=0;st<mt;st+=1)if(wt[st].pt.k.i)wt[st].pt.k.c=wt[st].cl;else for(Ct=wt[st].pt.k.length,ft=0;ft<Ct;ft+=1)wt[st].pt.k[ft].s&&(wt[st].pt.k[ft].s[0].c=wt[st].cl),wt[st].pt.k[ft].e&&(wt[st].pt.k[ft].e[0].c=wt[st].cl)}b.ty===4&&_(b.shapes)}}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}();function tt(X){X.__complete||(ut(X),V(X),G(X),Z(X),dt(X),z(X.layers,X.assets),C(X.chars,X.assets),X.__complete=!0)}function bt(X){X.t.a.length===0&&"m"in X.t.p}var lt={};return lt.completeData=tt,lt.checkColors=ut,lt.checkChars=G,lt.checkPathProperties=Z,lt.checkShapes=dt,lt.completeLayers=z,lt}if(c.dataManager||(c.dataManager=P()),c.assetLoader||(c.assetLoader=function(){function z(S){var y=S.getResponseHeader("content-type");return y&&S.responseType==="json"&&y.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,y,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(""),y+"/"+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(E){var N=E.data,P=N.id,M=r[P];r[P]=null,N.status==="success"?M.onComplete(N.payload):M.onError&&M.onError()})}function v(E,N){e+=1;var P="processId_"+e;return r[P]={onComplete:E,onError:N},P}function I(E,N,P){T();var M=v(N,P);a.postMessage({type:"loadAnimation",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function w(E,N,P){T();var M=v(N,P);a.postMessage({type:"loadData",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function B(E,N,P){T();var M=v(N,P);a.postMessage({type:"complete",animation:E,id:M})}return{loadAnimation:I,loadData:w,completeAnimation:B}}(),ev=function(){var e=function(){var C=R("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 o(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(C,S,y){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=y,A+=C.u?C.u:"",A+=C.p;return A}function d(C){var S=0,y=setInterval((function(){var A=C.getBBox();(A.width||S>500)&&(this._imageLoaded(),clearInterval(y)),S+=1}).bind(this),50)}function c(C){var S=a(C,this.assetsPath,this.path),y=gt("image");Gt?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",S),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var A={img:y,assetData:C};return A}function u(C){var S=a(C,this.assetsPath,this.path),y=R("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),y.src=S;var A={img:y,assetData:C};return A}function T(C){var S={assetData:C},y=a(C,this.assetsPath,this.path);return ms.loadData(y,(function(A){S.img=A,this._footageLoaded()}).bind(this),(function(){S.img={},this._footageLoaded()}).bind(this)),S}function v(C,S){this.imagesLoadedCb=S;var y,A=C.length;for(y=0;y<A;y+=1)C[y].layers||(!C[y].t||C[y].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(C[y]))):C[y].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(C[y]))))}function I(C){this.path=C||""}function w(C){this.assetsPath=C||""}function B(C){for(var S=0,y=this.images.length;S<y;){if(this.images[S].assetData===C)return this.images[S].img;S+=1}return null}function E(){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=o.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=T.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:v,setAssetsPath:w,setPath:I,loadedImages:N,loadedFootages:P,destroy:E,getAsset:B,createImgData:u,createImageData:c,imageLoaded:r,footageLoaded:o,setCacheType:M},z}();function jd(){}jd.prototype={triggerEvent:function(r,o){if(this._cbs[r])for(var a=this._cbs[r],d=0;d<a.length;d+=1)a[d](o)},addEventListener:function(r,o){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(o),(function(){this.removeEventListener(r,o)}).bind(this)},removeEventListener:function(r,o){if(!o)this._cbs[r]=null;else if(this._cbs[r]){for(var a=0,d=this._cbs[r].length;a<d;)this._cbs[r][a]===o&&(this._cbs[r].splice(a,1),a-=1,d-=1),a+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var rv=function(){function e(r){for(var o=r.split(`\r
|
2
|
-
`),a={},d,c=0,u=0;u<o.length;u+=1)d=o[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 o=[],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=e(r[a].cm)}catch{c.payload={name:r[a].cm}}}o.push(c)}return o}}(),iv=function(){function e(r){this.compositions.push(r)}return function(){function r(o){for(var a=0,d=this.compositions.length;a<d;){if(this.compositions[a].data&&this.compositions[a].data.nm===o)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=e,r}}(),us={},ov=function(r,o){us[r]=o};function sv(e){return us[e]}function av(){if(us.canvas)return"canvas";for(var e in us)if(us[e])return e;return""}function fs(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fs=function(o){return typeof o}:fs=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},fs(e)}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=Jf(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=iv(),this.imagePreloader=new ev,this.audioController=at(),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=Ia()};$([jd],pt),pt.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var r="svg";e.animType?r=e.animType:e.renderer&&(r=e.renderer);var o=sv(r);this.renderer=new o(this,e.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ms.loadAnimation(e.path,this.configAnimation,this.onSetupError))},pt.prototype.onSetupError=function(){this.trigger("data_failed")},pt.prototype.setupAnimation=function(e){ms.completeAnimation(e,this.configAnimation)},pt.prototype.setData=function(e,r){r&&fs(r)!=="object"&&(r=JSON.parse(r));var o={wrapper:e,animationData:r},a=e.attributes;o.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:"",o.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:av()||"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"?o.loop=!1:d==="true"?o.loop=!0:d!==""&&(o.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;o.autoplay=c!=="false",o.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"&&(o.prerender=!1),o.path?this.setParams(o):this.trigger("destroy")},pt.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var r=this.animationData.layers,o,a=r.length,d=e.layers,c,u=d.length;for(c=0;c<u;c+=1)for(o=0;o<a;){if(r[o].id===d[c].id){r[o]=d[c];break}o+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(a=e.assets.length,o=0;o<a;o+=1)this.animationData.assets.push(e.assets[o]);this.animationData.__complete=!1,ms.completeAnimation(this.animationData,this.onSegmentComplete)},pt.prototype.onSegmentComplete=function(e){this.animationData=e;var r=Ia();r&&r.initExpressions(this),this.loadNextSegment()},pt.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=e.shift();this.timeCompleted=r.time*this.frameRate;var o=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,ms.loadData(o,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},pt.prototype.loadSegments=function(){var e=this.animationData.segments;e||(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(e){if(this.renderer)try{this.animationData=e,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(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=rv(e.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 e=Ia();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},pt.prototype.resize=function(e,r){var o=typeof e=="number"?e:void 0,a=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(o,a)},pt.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},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(e){this.triggerRenderFrameError(e)}},pt.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},pt.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},pt.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},pt.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},pt.prototype.getMarkerData=function(e){for(var r,o=0;o<this.markers.length;o+=1)if(r=this.markers[o],r.payload&&r.payload.name===e)return r;return null},pt.prototype.goToAndStop=function(e,r,o){if(!(o&&this.name!==o)){var a=Number(e);if(isNaN(a)){var d=this.getMarkerData(e);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},pt.prototype.goToAndPlay=function(e,r,o){if(!(o&&this.name!==o)){var a=Number(e);if(isNaN(a)){var d=this.getMarkerData(e);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(a,r,o);this.play()}},pt.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+e*this.frameModifier,o=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(o=!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):(o=!0,r=0)):this.setCurrentRawFrameValue(r),o&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},pt.prototype.adjustSegment=function(e,r){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},pt.prototype.setSegment=function(e,r){var o=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?o=e:this.currentRawFrame+this.firstFrame>r&&(o=r-e)),this.firstFrame=e,this.totalFrames=r-e,this.timeCompleted=this.totalFrames,o!==-1&&this.goToAndStop(o,!0)},pt.prototype.playSegments=function(e,r){if(r&&(this.segments.length=0),fs(e[0])==="object"){var o,a=e.length;for(o=0;o<a;o+=1)this.segments.push(e[o])}else this.segments.push(e);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},pt.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},pt.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},pt.prototype.destroy=function(e){e&&this.name!==e||!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(e){this.currentRawFrame=e,this.gotoFrame()},pt.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},pt.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},pt.prototype.setLoop=function(e){this.loop=e},pt.prototype.setVolume=function(e,r){r&&this.name!==r||this.audioController.setVolume(e)},pt.prototype.getVolume=function(){return this.audioController.getVolume()},pt.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},pt.prototype.unmute=function(e){e&&this.name!==e||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(e){var r="";if(e.e)r=e.p;else if(this.assetsPath){var o=e.p;o.indexOf("images/")!==-1&&(o=o.split("/")[1]),r=this.assetsPath+o}else r=this.path,r+=e.u?e.u:"",r+=e.p;return r},pt.prototype.getAssetData=function(e){for(var r=0,o=this.assets.length;r<o;){if(e===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(e){return e?this.totalFrames:this.totalFrames/this.frameRate},pt.prototype.updateDocumentData=function(e,r,o){try{var a=this.renderer.getElementByPath(e);a.updateDocumentData(r,o)}catch{}},pt.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new ze(e,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(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new $d(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new Sa(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new zd(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Vd(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new ze(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new $d(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new Sa(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new zd(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Vd(e,this))},pt.prototype.triggerRenderFrameError=function(e){var r=new Kf(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},pt.prototype.triggerConfigError=function(e){var r=new Xf(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var qt=function(){var e={},r=[],o=0,a=0,d=0,c=!0,u=!1;function T(_){for(var O=0,p=_.target;O<a;)r[O].animation===p&&(r.splice(O,1),O-=1,a-=1,p.isPaused||B()),O+=1}function v(_,O){if(!_)return null;for(var p=0;p<a;){if(r[p].elem===_&&r[p].elem!==null)return r[p].animation;p+=1}var b=new pt;return E(b,_),b.setData(_,O),b}function I(){var _,O=r.length,p=[];for(_=0;_<O;_+=1)p.push(r[_].animation);return p}function w(){d+=1,ut()}function B(){d-=1}function E(_,O){_.addEventListener("destroy",T),_.addEventListener("_active",w),_.addEventListener("_idle",B),r.push({elem:O,animation:_}),a+=1}function N(_){var O=new pt;return E(O,null),O.setParams(_),O}function P(_,O){var p;for(p=0;p<a;p+=1)r[p].animation.setSpeed(_,O)}function M(_,O){var p;for(p=0;p<a;p+=1)r[p].animation.setDirection(_,O)}function z(_){var O;for(O=0;O<a;O+=1)r[O].animation.play(_)}function C(_){var O=_-o,p;for(p=0;p<a;p+=1)r[p].animation.advanceTime(O);o=_,d&&!u?window.requestAnimationFrame(C):c=!0}function S(_){o=_,window.requestAnimationFrame(C)}function y(_){var O;for(O=0;O<a;O+=1)r[O].animation.pause(_)}function A(_,O,p){var b;for(b=0;b<a;b+=1)r[b].animation.goToAndStop(_,O,p)}function k(_){var O;for(O=0;O<a;O+=1)r[O].animation.stop(_)}function D(_){var O;for(O=0;O<a;O+=1)r[O].animation.togglePause(_)}function V(_){var O;for(O=a-1;O>=0;O-=1)r[O].animation.destroy(_)}function G(_,O,p){var b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,F=b.length;for(U=0;U<F;U+=1)p&&b[U].setAttribute("data-bm-type",p),v(b[U],_);if(O&&F===0){p||(p="svg");var st=document.getElementsByTagName("body")[0];st.innerText="";var mt=R("div");mt.style.width="100%",mt.style.height="100%",mt.setAttribute("data-bm-type",p),st.appendChild(mt),v(mt,_)}}function Z(){var _;for(_=0;_<a;_+=1)r[_].animation.resize()}function ut(){!u&&d&&c&&(window.requestAnimationFrame(S),c=!1)}function dt(){u=!0}function tt(){u=!1,ut()}function bt(_,O){var p;for(p=0;p<a;p+=1)r[p].animation.setVolume(_,O)}function lt(_){var O;for(O=0;O<a;O+=1)r[O].animation.mute(_)}function X(_){var O;for(O=0;O<a;O+=1)r[O].animation.unmute(_)}return e.registerAnimation=v,e.loadAnimation=N,e.setSpeed=P,e.setDirection=M,e.play=z,e.pause=y,e.stop=k,e.togglePause=D,e.searchAnimations=G,e.resize=Z,e.goToAndStop=A,e.destroy=V,e.freeze=dt,e.unfreeze=tt,e.setVolume=bt,e.mute=lt,e.unmute=X,e.getRegisteredAnimations=I,e}(),vs=function(){var e={};e.getBezierEasing=o;var r={};function o(S,y,A,k,D){var V=D||("bez_"+S+"_"+y+"_"+A+"_"+k).replace(/\./g,"p");if(r[V])return r[V];var G=new C([S,y,A,k]);return r[V]=G,G}var a=4,d=.001,c=1e-7,u=10,T=11,v=1/(T-1),I=typeof Float32Array=="function";function w(S,y){return 1-3*y+3*S}function B(S,y){return 3*y-6*S}function E(S){return 3*S}function N(S,y,A){return((w(y,A)*S+B(y,A))*S+E(y))*S}function P(S,y,A){return 3*w(y,A)*S*S+2*B(y,A)*S+E(y)}function M(S,y,A,k,D){var V,G,Z=0;do G=y+(A-y)/2,V=N(G,k,D)-S,V>0?A=G:y=G;while(Math.abs(V)>c&&++Z<u);return G}function z(S,y,A,k){for(var D=0;D<a;++D){var V=P(y,A,k);if(V===0)return y;var G=N(y,A,k)-S;y-=G/V}return y}function C(S){this._p=S,this._mSampleValues=I?new Float32Array(T):new Array(T),this._precomputed=!1,this.get=this.get.bind(this)}return C.prototype={get:function(y){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?y:y===0?0:y===1?1:N(this._getTForX(y),k,V)},_precompute:function(){var y=this._p[0],A=this._p[1],k=this._p[2],D=this._p[3];this._precomputed=!0,(y!==A||k!==D)&&this._calcSampleValues()},_calcSampleValues:function(){for(var y=this._p[0],A=this._p[2],k=0;k<T;++k)this._mSampleValues[k]=N(k*v,y,A)},_getTForX:function(y){for(var A=this._p[0],k=this._p[2],D=this._mSampleValues,V=0,G=1,Z=T-1;G!==Z&&D[G]<=y;++G)V+=v;--G;var ut=(y-D[G])/(D[G+1]-D[G]),dt=V+ut*v,tt=P(dt,A,k);return tt>=d?z(y,dt,A,k):tt===0?dt:M(y,V,V+v,A,k)}},e}(),Yd=function(){function e(r){return r.concat(rt(r.length))}return{double:e}}(),wa=function(){return function(e,r,o){var a=0,d=e,c=rt(d),u={newElement:T,release:v};function T(){var I;return a?(a-=1,I=c[a]):I=r(),I}function v(I){a===d&&(c=Yd.double(c),d*=2),o&&o(I),c[a]=I,a+=1}return u}}(),Wd=function(){function e(){return{addedLength:0,percents:J("float32",ps()),lengths:J("float32",ps())}}return wa(8,e)}(),qd=function(){function e(){return{lengths:[],totalLength:0}}function r(o){var a,d=o.lengths.length;for(a=0;a<d;a+=1)Wd.release(o.lengths[a]);o.lengths.length=0}return wa(8,e,r)}();function nv(){var e=Math;function r(E,N,P,M,z,C){var S=E*M+N*z+P*C-z*M-C*E-P*N;return S>-.001&&S<.001}function o(E,N,P,M,z,C,S,y,A){if(P===0&&C===0&&A===0)return r(E,N,M,z,S,y);var k=e.sqrt(e.pow(M-E,2)+e.pow(z-N,2)+e.pow(C-P,2)),D=e.sqrt(e.pow(S-E,2)+e.pow(y-N,2)+e.pow(A-P,2)),V=e.sqrt(e.pow(S-M,2)+e.pow(y-z,2)+e.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(E,N,P,M){var z=ps(),C,S,y,A,k,D=0,V,G=[],Z=[],ut=Wd.newElement();for(y=P.length,C=0;C<z;C+=1){for(k=C/(z-1),V=0,S=0;S<y;S+=1)A=Dt(1-k,3)*E[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(E){var N=qd.newElement(),P=E.c,M=E.v,z=E.o,C=E.i,S,y=E._length,A=N.lengths,k=0;for(S=0;S<y-1;S+=1)A[S]=a(M[S],M[S+1],z[S],C[S+1]),k+=A[S].addedLength;return P&&y&&(A[S]=a(M[S],M[0],z[S],C[0]),k+=A[S].addedLength),N.totalLength=k,N}function c(E){this.segmentLength=0,this.points=new Array(E)}function u(E,N){this.partialLength=E,this.point=N}var T=function(){var E={};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(!E[C]){var S=ps(),y,A,k,D,V,G=0,Z,ut,dt=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 tt=new c(S);for(k=M.length,y=0;y<S;y+=1){for(ut=rt(k),V=y/(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,dt!==null&&(Z+=Dt(ut[A]-dt[A],2));Z=Ee(Z),G+=Z,tt.points[y]=new u(Z,ut),dt=ut}tt.segmentLength=G,E[C]=tt}return E[C]}}();function v(E,N){var P=N.percents,M=N.lengths,z=P.length,C=re((z-1)*E),S=E*N.addedLength,y=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?(y=(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])*y}function I(E,N,P,M,z,C){var S=v(z,C),y=1-S,A=e.round((y*y*y*E[0]+(S*y*y+y*S*y+y*y*S)*P[0]+(S*S*y+y*S*S+S*y*S)*M[0]+S*S*S*N[0])*1e3)/1e3,k=e.round((y*y*y*E[1]+(S*y*y+y*S*y+y*y*S)*P[1]+(S*S*y+y*S*S+S*y*S)*M[1]+S*S*S*N[1])*1e3)/1e3;return[A,k]}var w=J("float32",8);function B(E,N,P,M,z,C,S){z<0?z=0:z>1&&(z=1);var y=v(z,S);C=C>1?1:C;var A=v(C,S),k,D=E.length,V=1-y,G=1-A,Z=V*V*V,ut=y*V*V*3,dt=y*y*V*3,tt=y*y*y,bt=V*V*G,lt=y*V*G+V*y*G+V*V*A,X=y*y*G+V*y*A+y*V*A,_=y*y*A,O=V*G*G,p=y*G*G+V*A*G+V*G*A,b=y*A*G+V*A*A+y*G*A,U=y*A*A,F=G*G*G,st=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]=e.round((Z*E[k]+ut*P[k]+dt*M[k]+tt*N[k])*1e3)/1e3,w[k*4+1]=e.round((bt*E[k]+lt*P[k]+X*M[k]+_*N[k])*1e3)/1e3,w[k*4+2]=e.round((O*E[k]+p*P[k]+b*M[k]+U*N[k])*1e3)/1e3,w[k*4+3]=e.round((F*E[k]+st*P[k]+mt*M[k]+ft*N[k])*1e3)/1e3;return w}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:T,pointOnLine2D:r,pointOnLine3D:o}}var ur=nv(),Ii=s,Kd=Math.abs;function Xd(e,r){var o=this.offsetTime,a;this.propType==="multidimensional"&&(a=J("float32",this.pv.length));for(var d=r.lastIndex,c=d,u=this.keyframes.length-1,T=!0,v,I,w;T;){if(v=this.keyframes[c],I=this.keyframes[c+1],c===u-1&&e>=I.t-o){v.h&&(v=I),d=0;break}if(I.t-o>e){d=c;break}c<u-1?c+=1:(d=0,T=!1)}w=this.keyframesMetadata[c]||{};var B,E,N,P,M,z,C=I.t-o,S=v.t-o,y;if(v.to){w.bezierData||(w.bezierData=ur.buildBezierData(v.s,I.s||v.e,v.to,v.ti));var A=w.bezierData;if(e>=C||e<S){var k=e>=C?A.points.length-1:0;for(E=A.points[k].point.length,B=0;B<E;B+=1)a[B]=A.points[k].point[B]}else{w.__fnct?z=w.__fnct:(z=vs.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y,v.n).get,w.__fnct=z),N=z((e-S)/(C-S));var D=A.segmentLength*N,V,G=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(M=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastPoint:0,T=!0,P=A.points.length;T;){if(G+=A.points[M].partialLength,D===0||N===0||M===A.points.length-1){for(E=A.points[M].point.length,B=0;B<E;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,E=A.points[M].point.length,B=0;B<E;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:T=!1}r._lastPoint=M,r._lastAddedLength=G-A.points[M].partialLength,r._lastKeyframeIndex=c}}else{var Z,ut,dt,tt,bt;if(u=v.s.length,y=I.s||v.e,this.sh&&v.h!==1)if(e>=C)a[0]=y[0],a[1]=y[1],a[2]=y[2];else if(e<=S)a[0]=v.s[0],a[1]=v.s[1],a[2]=v.s[2];else{var lt=Zd(v.s),X=Zd(y),_=(e-S)/(C-S);cv(a,lv(lt,X,_))}else for(c=0;c<u;c+=1)v.h!==1&&(e>=C?N=1:e<S?N=0:(v.o.x.constructor===Array?(w.__fnct||(w.__fnct=[]),w.__fnct[c]?z=w.__fnct[c]:(Z=v.o.x[c]===void 0?v.o.x[0]:v.o.x[c],ut=v.o.y[c]===void 0?v.o.y[0]:v.o.y[c],dt=v.i.x[c]===void 0?v.i.x[0]:v.i.x[c],tt=v.i.y[c]===void 0?v.i.y[0]:v.i.y[c],z=vs.getBezierEasing(Z,ut,dt,tt).get,w.__fnct[c]=z)):w.__fnct?z=w.__fnct:(Z=v.o.x,ut=v.o.y,dt=v.i.x,tt=v.i.y,z=vs.getBezierEasing(Z,ut,dt,tt).get,v.keyframeMetadata=z),N=z((e-S)/(C-S)))),y=I.s||v.e,bt=v.h===1?v.s[c]:v.s[c]+(y[c]-v.s[c])*N,this.propType==="multidimensional"?a[c]=bt:a=bt}return r.lastIndex=d,a}function lv(e,r,o){var a=[],d=e[0],c=e[1],u=e[2],T=e[3],v=r[0],I=r[1],w=r[2],B=r[3],E,N,P,M,z;return N=d*v+c*I+u*w+T*B,N<0&&(N=-N,v=-v,I=-I,w=-w,B=-B),1-N>1e-6?(E=Math.acos(N),P=Math.sin(E),M=Math.sin((1-o)*E)/P,z=Math.sin(o*E)/P):(M=1-o,z=o),a[0]=M*d+z*v,a[1]=M*c+z*I,a[2]=M*u+z*w,a[3]=M*T+z*B,a}function cv(e,r){var o=r[0],a=r[1],d=r[2],c=r[3],u=Math.atan2(2*a*c-2*o*d,1-2*a*a-2*d*d),T=Math.asin(2*o*a+2*d*c),v=Math.atan2(2*o*c-2*a*d,1-2*o*o-2*d*d);e[0]=u/_t,e[1]=T/_t,e[2]=v/_t}function Zd(e){var r=e[0]*_t,o=e[1]*_t,a=e[2]*_t,d=Math.cos(r/2),c=Math.cos(o/2),u=Math.cos(a/2),T=Math.sin(r/2),v=Math.sin(o/2),I=Math.sin(a/2),w=d*c*u-T*v*I,B=T*v*u+d*c*I,E=T*c*u+d*v*I,N=d*v*u-T*c*I;return[B,E,N,w]}function Jd(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,o=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==Ii&&(this._caching.lastFrame>=o&&e>=o||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(e,this._caching);this.pv=a}return this._caching.lastFrame=e,this.pv}function La(e){var r;if(this.propType==="unidimensional")r=e*this.mult,Kd(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var o=0,a=this.v.length;o<a;)r=e[o]*this.mult,Kd(this.v[o]-r)>1e-5&&(this.v[o]=r,this._mdf=!0),o+=1}function Na(){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 e,r=this.effectsSequence.length,o=this.kf?this.pv:this.data.k;for(e=0;e<r;e+=1)o=this.effectsSequence[e](o);this.setVValue(o),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Ra(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function dv(e,r,o,a){this.propType="unidimensional",this.mult=o||1,this.data=r,this.v=o?r.k*o:r.k,this.pv=r.k,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Na,this.setVValue=La,this.addEffect=Ra}function hv(e,r,o,a){this.propType="multidimensional",this.mult=o||1,this.data=r,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.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=Na,this.setVValue=La,this.addEffect=Ra}function pv(e,r,o,a){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:Ii,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=o||1,this.elem=e,this.container=a,this.comp=e.comp,this.v=Ii,this.pv=Ii,this._isFirstFrame=!0,this.getValue=Na,this.setVValue=La,this.interpolateValue=Xd,this.effectsSequence=[Jd.bind(this)],this.addEffect=Ra}function mv(e,r,o,a){this.propType="multidimensional";var d,c=r.k.length,u,T,v,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,T=r.k[d+1].s,v=r.k[d].to,I=r.k[d].ti,(u.length===2&&!(u[0]===T[0]&&u[1]===T[1])&&ur.pointOnLine2D(u[0],u[1],T[0],T[1],u[0]+v[0],u[1]+v[1])&&ur.pointOnLine2D(u[0],u[1],T[0],T[1],T[0]+I[0],T[1]+I[1])||u.length===3&&!(u[0]===T[0]&&u[1]===T[1]&&u[2]===T[2])&&ur.pointOnLine3D(u[0],u[1],u[2],T[0],T[1],T[2],u[0]+v[0],u[1]+v[1],u[2]+v[2])&&ur.pointOnLine3D(u[0],u[1],u[2],T[0],T[1],T[2],T[0]+I[0],T[1]+I[1],T[2]+I[2]))&&(r.k[d].to=null,r.k[d].ti=null),u[0]===T[0]&&u[1]===T[1]&&v[0]===0&&v[1]===0&&I[0]===0&&I[1]===0&&(u.length===2||u[2]===T[2]&&v[2]===0&&I[2]===0)&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[Jd.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=o||1,this.elem=e,this.container=a,this.comp=e.comp,this.getValue=Na,this.setVValue=La,this.interpolateValue=Xd,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]=Ii,this.pv[d]=Ii;this._caching={lastFrame:Ii,lastIndex:0,value:J("float32",w)},this.addEffect=Ra}var it=function(){function e(o,a,d,c,u){a.sid&&(a=o.globalData.slotManager.getProp(a));var T;if(!a.k.length)T=new dv(o,a,c,u);else if(typeof a.k[0]=="number")T=new hv(o,a,c,u);else switch(d){case 0:T=new pv(o,a,c,u);break;case 1:T=new mv(o,a,c,u);break;default:break}return T.effectsSequence.length&&u.addDynamicProperty(T),T}var r={getProp:e};return r}();function ie(){}ie.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,o=this.dynamicProperties.length;for(r=0;r<o;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 ki=function(){function e(){return J("float32",2)}return wa(8,e)}();function kr(){this.c=!1,this._length=0,this._maxLength=8,this.v=rt(this._maxLength),this.o=rt(this._maxLength),this.i=rt(this._maxLength)}kr.prototype.setPathData=function(e,r){this.c=e,this.setLength(r);for(var o=0;o<r;)this.v[o]=ki.newElement(),this.o[o]=ki.newElement(),this.i[o]=ki.newElement(),o+=1},kr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},kr.prototype.doubleArrayLength=function(){this.v=this.v.concat(rt(this._maxLength)),this.i=this.i.concat(rt(this._maxLength)),this.o=this.o.concat(rt(this._maxLength)),this._maxLength*=2},kr.prototype.setXYAt=function(e,r,o,a,d){var c;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),o){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]=ki.newElement()),c[a][0]=e,c[a][1]=r},kr.prototype.setTripleAt=function(e,r,o,a,d,c,u,T){this.setXYAt(e,r,"v",u,T),this.setXYAt(o,a,"o",u,T),this.setXYAt(d,c,"i",u,T)},kr.prototype.reverse=function(){var e=new kr;e.setPathData(this.c,this._length);var r=this.v,o=this.o,a=this.i,d=0;this.c&&(e.setTripleAt(r[0][0],r[0][1],a[0][0],a[0][1],o[0][0],o[0][1],0,!1),d=1);var c=this._length-1,u=this._length,T;for(T=d;T<u;T+=1)e.setTripleAt(r[c][0],r[c][1],a[c][0],a[c][1],o[c][0],o[c][1],T,!1),c-=1;return e},kr.prototype.length=function(){return this._length};var ne=function(){function e(){return new kr}function r(d){var c=d._length,u;for(u=0;u<c;u+=1)ki.release(d.v[u]),ki.release(d.i[u]),ki.release(d.o[u]),d.v[u]=null,d.i[u]=null,d.o[u]=null;d._length=0,d.c=!1}function o(d){var c=a.newElement(),u,T=d._length===void 0?d.v.length:d._length;for(c.setLength(T),c.c=d.c,u=0;u<T;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=wa(4,e,r);return a.clone=o,a}();function xl(){this._length=0,this._maxLength=4,this.shapes=rt(this._maxLength)}xl.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(rt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},xl.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ne.release(this.shapes[e]);this._length=0};var yo=function(){var e={newShapeCollection:d,release:c},r=0,o=4,a=rt(o);function d(){var u;return r?(r-=1,u=a[r]):u=new xl,u}function c(u){var T,v=u._length;for(T=0;T<v;T+=1)ne.release(u.shapes[T]);u._length=0,r===o&&(a=Yd.double(a),o*=2),a[r]=u,r+=1}return e}(),Ma=function(){var e=-999999;function r(C,S,y){var A=y.lastIndex,k,D,V,G,Z,ut,dt,tt,bt,lt=this.keyframes;if(C<lt[0].t-this.offsetTime)k=lt[0].s[0],V=!0,A=0;else if(C>=lt[lt.length-1].t-this.offsetTime)k=lt[lt.length-1].s?lt[lt.length-1].s[0]:lt[lt.length-2].e[0],V=!0;else{for(var X=A,_=lt.length-1,O=!0,p,b,U;O&&(p=lt[X],b=lt[X+1],!(b.t-this.offsetTime>C));)X<_-1?X+=1:O=!1;if(U=this.keyframesMetadata[X]||{},V=p.h===1,A=X,!V){if(C>=b.t-this.offsetTime)tt=1;else if(C<p.t-this.offsetTime)tt=0;else{var F;U.__fnct?F=U.__fnct:(F=vs.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,U.__fnct=F),tt=F((C-(p.t-this.offsetTime))/(b.t-this.offsetTime-(p.t-this.offsetTime)))}D=b.s?b.s[0]:p.e[0]}k=p.s[0]}for(ut=S._length,dt=k.i[0].length,y.lastIndex=A,G=0;G<ut;G+=1)for(Z=0;Z<dt;Z+=1)bt=V?k.i[G][Z]:k.i[G][Z]+(D.i[G][Z]-k.i[G][Z])*tt,S.i[G][Z]=bt,bt=V?k.o[G][Z]:k.o[G][Z]+(D.o[G][Z]-k.o[G][Z])*tt,S.o[G][Z]=bt,bt=V?k.v[G][Z]:k.v[G][Z]+(D.v[G][Z]-k.v[G][Z])*tt,S.v[G][Z]=bt}function o(){var C=this.comp.renderedFrame-this.offsetTime,S=this.keyframes[0].t-this.offsetTime,y=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==e&&(A<S&&C<S||A>y&&C>y)||(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 y,A=C._length;for(y=0;y<A;y+=1)if(C.v[y][0]!==S.v[y][0]||C.v[y][1]!==S.v[y][1]||C.o[y][0]!==S.o[y][0]||C.o[y][1]!==S.o[y][1]||C.i[y][0]!==S.i[y][0]||C.i[y][1]!==S.i[y][1])return!1;return!0}function c(C){d(this.v,C)||(this.v=ne.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,y=this.effectsSequence.length;for(S=0;S<y;S+=1)C=this.effectsSequence[S](C);this.setVValue(C),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function T(C,S,y){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=y===3?S.pt.k:S.ks.k;this.v=ne.clone(A),this.pv=ne.clone(this.v),this.localShapeCollection=yo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function v(C){this.effectsSequence.push(C),this.container.addDynamicProperty(this)}T.prototype.interpolateShape=r,T.prototype.getValue=u,T.prototype.setVValue=c,T.prototype.addEffect=v;function I(C,S,y){this.propType="shape",this.comp=C.comp,this.elem=C,this.container=C,this.offsetTime=C.data.st,this.keyframes=y===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=ne.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,A),this.pv=ne.clone(this.v),this.localShapeCollection=yo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[o.bind(this)]}I.prototype.getValue=u,I.prototype.interpolateShape=r,I.prototype.setVValue=c,I.prototype.addEffect=v;var w=function(){var C=pe;function S(y,A){this.v=ne.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=yo.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=A.d,this.elem=y,this.comp=y.comp,this.frameId=-1,this.initDynamicPropertyContainer(y),this.p=it.getProp(y,A.p,1,0,this),this.s=it.getProp(y,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}},$([ie],S),S}(),B=function(){function C(S,y){this.v=ne.newElement(),this.v.setPathData(!0,0),this.elem=S,this.comp=S.comp,this.data=y,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(S),y.sy===1?(this.ir=it.getProp(S,y.ir,0,0,this),this.is=it.getProp(S,y.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=it.getProp(S,y.pt,0,0,this),this.p=it.getProp(S,y.p,1,0,this),this.r=it.getProp(S,y.r,0,_t,this),this.or=it.getProp(S,y.or,0,0,this),this.os=it.getProp(S,y.os,0,.01,this),this.localShapeCollection=yo.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 y=Math.floor(this.pt.v)*2,A=Math.PI*2/y,k=!0,D=this.or.v,V=this.ir.v,G=this.os.v,Z=this.is.v,ut=2*Math.PI*D/(y*2),dt=2*Math.PI*V/(y*2),tt,bt,lt,X,_=-Math.PI/2;_+=this.r.v;var O=this.data.d===3?-1:1;for(this.v._length=0,tt=0;tt<y;tt+=1){bt=k?D:V,lt=k?G:Z,X=k?ut:dt;var p=bt*Math.cos(_),b=bt*Math.sin(_),U=p===0&&b===0?0:b/Math.sqrt(p*p+b*b),F=p===0&&b===0?0:-p/Math.sqrt(p*p+b*b);p+=+this.p.v[0],b+=+this.p.v[1],this.v.setTripleAt(p,b,p-U*X*lt*O,b-F*X*lt*O,p+U*X*lt*O,b+F*X*lt*O,tt,!0),k=!k,_+=A*O}},convertPolygonToPath:function(){var y=Math.floor(this.pt.v),A=Math.PI*2/y,k=this.or.v,D=this.os.v,V=2*Math.PI*k/(y*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<y;G+=1){var dt=k*Math.cos(Z),tt=k*Math.sin(Z),bt=dt===0&&tt===0?0:tt/Math.sqrt(dt*dt+tt*tt),lt=dt===0&&tt===0?0:-dt/Math.sqrt(dt*dt+tt*tt);dt+=+this.p.v[0],tt+=+this.p.v[1],this.v.setTripleAt(dt,tt,dt-bt*V*D*ut,tt-lt*V*D*ut,dt+bt*V*D*ut,tt+lt*V*D*ut,G,!0),Z+=A*ut}this.paths.length=0,this.paths[0]=this.v}},$([ie],C),C}(),E=function(){function C(S,y){this.v=ne.newElement(),this.v.c=!0,this.localShapeCollection=yo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=S,this.comp=S.comp,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(S),this.p=it.getProp(S,y.p,1,0,this),this.s=it.getProp(S,y.s,1,0,this),this.r=it.getProp(S,y.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return C.prototype={convertRectToPath:function(){var y=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-pe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(y+k,A-D+V,y+k,A-D+V,y+k,A-D+G,0,!0),this.v.setTripleAt(y+k,A+D-V,y+k,A+D-G,y+k,A+D-V,1,!0),V!==0?(this.v.setTripleAt(y+k-V,A+D,y+k-V,A+D,y+k-G,A+D,2,!0),this.v.setTripleAt(y-k+V,A+D,y-k+G,A+D,y-k+V,A+D,3,!0),this.v.setTripleAt(y-k,A+D-V,y-k,A+D-V,y-k,A+D-G,4,!0),this.v.setTripleAt(y-k,A-D+V,y-k,A-D+G,y-k,A-D+V,5,!0),this.v.setTripleAt(y-k+V,A-D,y-k+V,A-D,y-k+G,A-D,6,!0),this.v.setTripleAt(y+k-V,A-D,y+k-G,A-D,y+k-V,A-D,7,!0)):(this.v.setTripleAt(y-k,A+D,y-k+G,A+D,y-k,A+D,2),this.v.setTripleAt(y-k,A-D,y-k,A-D+G,y-k,A-D,3))):(this.v.setTripleAt(y+k,A-D+V,y+k,A-D+G,y+k,A-D+V,0,!0),V!==0?(this.v.setTripleAt(y+k-V,A-D,y+k-V,A-D,y+k-G,A-D,1,!0),this.v.setTripleAt(y-k+V,A-D,y-k+G,A-D,y-k+V,A-D,2,!0),this.v.setTripleAt(y-k,A-D+V,y-k,A-D+V,y-k,A-D+G,3,!0),this.v.setTripleAt(y-k,A+D-V,y-k,A+D-G,y-k,A+D-V,4,!0),this.v.setTripleAt(y-k+V,A+D,y-k+V,A+D,y-k+G,A+D,5,!0),this.v.setTripleAt(y+k-V,A+D,y+k-G,A+D,y+k-V,A+D,6,!0),this.v.setTripleAt(y+k,A+D-V,y+k,A+D-V,y+k,A+D-G,7,!0)):(this.v.setTripleAt(y-k,A-D,y-k+G,A-D,y-k,A-D,1,!0),this.v.setTripleAt(y-k,A+D,y-k,A+D-G,y-k,A+D,2,!0),this.v.setTripleAt(y+k,A+D,y+k-G,A+D,y+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},$([ie],C),C}();function N(C,S,y){var A;if(y===3||y===4){var k=y===3?S.pt:S.ks,D=k.k;D.length?A=new I(C,S,y):A=new T(C,S,y)}else y===5?A=new E(C,S):y===6?A=new w(C,S):y===7&&(A=new B(C,S));return A.k&&C.addDynamicProperty(A),A}function P(){return T}function M(){return I}var z={};return z.getShapeProp=N,z.getConstructorFunction=P,z.getKeyframedConstructorFunction=M,z}();var le=function(){var e=Math.cos,r=Math.sin,o=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 b=e(p),U=r(p);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function u(p){if(p===0)return this;var b=e(p),U=r(p);return this._t(1,0,0,0,0,b,-U,0,0,U,b,0,0,0,0,1)}function T(p){if(p===0)return this;var b=e(p),U=r(p);return this._t(b,0,U,0,0,1,0,0,-U,0,b,0,0,0,0,1)}function v(p){if(p===0)return this;var b=e(p),U=r(p);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function I(p,b){return this._t(1,b,p,1,0,0)}function w(p,b){return this.shear(o(p),o(b))}function B(p,b){var U=e(b),F=r(b);return this._t(U,F,0,0,-F,U,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,o(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 E(p,b,U){return!U&&U!==0&&(U=1),p===1&&b===1&&U===1?this:this._t(p,0,0,0,0,b,0,0,0,0,U,0,0,0,0,1)}function N(p,b,U,F,st,mt,ft,Ct,wt,Kt,Ae,vr,_e,oe,Re,Rt){return this.props[0]=p,this.props[1]=b,this.props[2]=U,this.props[3]=F,this.props[4]=st,this.props[5]=mt,this.props[6]=ft,this.props[7]=Ct,this.props[8]=wt,this.props[9]=Kt,this.props[10]=Ae,this.props[11]=vr,this.props[12]=_e,this.props[13]=oe,this.props[14]=Re,this.props[15]=Rt,this}function P(p,b,U){return U=U||0,p!==0||b!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,p,b,U,1):this}function M(p,b,U,F,st,mt,ft,Ct,wt,Kt,Ae,vr,_e,oe,Re,Rt){var ct=this.props;if(p===1&&b===0&&U===0&&F===0&&st===0&&mt===1&&ft===0&&Ct===0&&wt===0&&Kt===0&&Ae===1&&vr===0)return ct[12]=ct[12]*p+ct[15]*_e,ct[13]=ct[13]*mt+ct[15]*oe,ct[14]=ct[14]*Ae+ct[15]*Re,ct[15]*=Rt,this._identityCalculated=!1,this;var Lr=ct[0],si=ct[1],Nr=ct[2],gr=ct[3],Rr=ct[4],Mr=ct[5],Se=ct[6],ai=ct[7],ni=ct[8],or=ct[9],li=ct[10],sr=ct[11],Ni=ct[12],Ua=ct[13],Ga=ct[14],Ha=ct[15];return ct[0]=Lr*p+si*st+Nr*wt+gr*_e,ct[1]=Lr*b+si*mt+Nr*Kt+gr*oe,ct[2]=Lr*U+si*ft+Nr*Ae+gr*Re,ct[3]=Lr*F+si*Ct+Nr*vr+gr*Rt,ct[4]=Rr*p+Mr*st+Se*wt+ai*_e,ct[5]=Rr*b+Mr*mt+Se*Kt+ai*oe,ct[6]=Rr*U+Mr*ft+Se*Ae+ai*Re,ct[7]=Rr*F+Mr*Ct+Se*vr+ai*Rt,ct[8]=ni*p+or*st+li*wt+sr*_e,ct[9]=ni*b+or*mt+li*Kt+sr*oe,ct[10]=ni*U+or*ft+li*Ae+sr*Re,ct[11]=ni*F+or*Ct+li*vr+sr*Rt,ct[12]=Ni*p+Ua*st+Ga*wt+Ha*_e,ct[13]=Ni*b+Ua*mt+Ga*Kt+Ha*oe,ct[14]=Ni*U+Ua*ft+Ga*Ae+Ha*Re,ct[15]=Ni*F+Ua*Ct+Ga*vr+Ha*Rt,this._identityCalculated=!1,this}function z(p){var b=p.props;return this.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[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 b=0;b<16;){if(p.props[b]!==this.props[b])return!1;b+=1}return!0}function y(p){var b;for(b=0;b<16;b+=1)p.props[b]=this.props[b];return p}function A(p){var b;for(b=0;b<16;b+=1)this.props[b]=p[b]}function k(p,b,U){return{x:p*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],y:p*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],z:p*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]}}function D(p,b,U){return p*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12]}function V(p,b,U){return p*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13]}function G(p,b,U){return p*this.props[2]+b*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],b=this.props[5]/p,U=-this.props[1]/p,F=-this.props[4]/p,st=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 le;return Ct.props[0]=b,Ct.props[1]=U,Ct.props[4]=F,Ct.props[5]=st,Ct.props[12]=mt,Ct.props[13]=ft,Ct}function ut(p){var b=this.getInverseMatrix();return b.applyToPointArray(p[0],p[1],p[2]||0)}function dt(p){var b,U=p.length,F=[];for(b=0;b<U;b+=1)F[b]=ut(p[b]);return F}function tt(p,b,U){var F=J("float32",6);if(this.isIdentity())F[0]=p[0],F[1]=p[1],F[2]=b[0],F[3]=b[1],F[4]=U[0],F[5]=U[1];else{var st=this.props[0],mt=this.props[1],ft=this.props[4],Ct=this.props[5],wt=this.props[12],Kt=this.props[13];F[0]=p[0]*st+p[1]*ft+wt,F[1]=p[0]*mt+p[1]*Ct+Kt,F[2]=b[0]*st+b[1]*ft+wt,F[3]=b[0]*mt+b[1]*Ct+Kt,F[4]=U[0]*st+U[1]*ft+wt,F[5]=U[0]*mt+U[1]*Ct+Kt}return F}function bt(p,b,U){var F;return this.isIdentity()?F=[p,b,U]:F=[p*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],p*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],p*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]],F}function lt(p,b){if(this.isIdentity())return p+","+b;var U=this.props;return Math.round((p*U[0]+b*U[4]+U[12])*100)/100+","+Math.round((p*U[1]+b*U[5]+U[13])*100)/100}function X(){for(var p=0,b=this.props,U="matrix3d(",F=1e4;p<16;)U+=a(b[p]*F)/F,U+=p===15?")":",",p+=1;return U}function _(p){var b=1e4;return p<1e-6&&p>0||p>-1e-6&&p<0?a(p*b)/b:p}function O(){var p=this.props,b=_(p[0]),U=_(p[1]),F=_(p[4]),st=_(p[5]),mt=_(p[12]),ft=_(p[13]);return"matrix("+b+","+U+","+F+","+st+","+mt+","+ft+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=u,this.rotateY=T,this.rotateZ=v,this.skew=w,this.skewFromAxis=B,this.shear=I,this.scale=E,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=bt,this.applyToTriplePoints=tt,this.applyToPointStringified=lt,this.toCSS=X,this.to2dCSS=O,this.clone=y,this.cloneFromProps=A,this.equals=S,this.inversePoints=dt,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 Oa(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Oa=function(o){return typeof o}:Oa=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Oa(e)}var Lt={},Pa="__[STANDALONE]__",Qd="__[ANIMATIONDATA]__",th="";function uv(e){m(e)}function eh(){Pa===!0?qt.searchAnimations(Qd,Pa,th):qt.searchAnimations()}function fv(e){Zf(e)}function vv(e){tv(e)}function gv(e){return Pa===!0&&(e.animationData=JSON.parse(Qd)),qt.loadAnimation(e)}function bv(e){if(typeof e=="string")switch(e){case"high":ka(200);break;default:case"medium":ka(50);break;case"low":ka(10);break}else!isNaN(e)&&e>1&&ka(e);ps()>=50?$e(!1):$e(!0)}function yv(){return typeof navigator<"u"}function Ev(e,r){e==="expressions"&&Qf(r)}function Tv(e){switch(e){case"propertyFactory":return it;case"shapePropertyFactory":return Ma;case"matrix":return le;default:return null}}Lt.play=qt.play,Lt.pause=qt.pause,Lt.setLocationHref=uv,Lt.togglePause=qt.togglePause,Lt.setSpeed=qt.setSpeed,Lt.setDirection=qt.setDirection,Lt.stop=qt.stop,Lt.searchAnimations=eh,Lt.registerAnimation=qt.registerAnimation,Lt.loadAnimation=gv,Lt.setSubframeRendering=fv,Lt.resize=qt.resize,Lt.goToAndStop=qt.goToAndStop,Lt.destroy=qt.destroy,Lt.setQuality=bv,Lt.inBrowser=yv,Lt.installPlugin=Ev,Lt.freeze=qt.freeze,Lt.unfreeze=qt.unfreeze,Lt.setVolume=qt.setVolume,Lt.mute=qt.mute,Lt.unmute=qt.unmute,Lt.getRegisteredAnimations=qt.getRegisteredAnimations,Lt.useWebWorker=n,Lt.setIDPrefix=vv,Lt.__getFactory=Tv,Lt.version="5.12.2";function xv(){document.readyState==="complete"&&(clearInterval(Sv),eh())}function Av(e){for(var r=rh.split("&"),o=0;o<r.length;o+=1){var a=r[o].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}var rh="";if(Pa){var ih=document.getElementsByTagName("script"),_v=ih.length-1,oh=ih[_v]||{src:""};rh=oh.src?oh.src.replace(/^[^\?]+\??/,""):"",th=Av("renderer")}var Sv=setInterval(xv,100);try{!((typeof Us>"u"?"undefined":Oa(Us))==="object"&&typeof vn<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Lt)}catch{}var Qr=function(){var e={},r={};e.registerModifier=o,e.getModifier=a;function o(d,c){r[d]||(r[d]=c)}function a(d,c,u){return new r[d](c,u)}return e}();function Ve(){}Ve.prototype.initModifierProperties=function(){},Ve.prototype.addShapeToModifier=function(){},Ve.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var r={shape:e.sh,data:e,localShapeCollection:yo.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&e.setAsAnimated()}},Ve.prototype.init=function(e,r){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,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())},$([ie],Ve);function ir(){}$([Ve],ir),ir.prototype.initModifierProperties=function(e,r){this.s=it.getProp(e,r.s,0,.01,this),this.e=it.getProp(e,r.e,0,.01,this),this.o=it.getProp(e,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},ir.prototype.addShapeToModifier=function(e){e.pathsData=[]},ir.prototype.calculateShapeEdges=function(e,r,o,a,d){var c=[];r<=1?c.push({s:e,e:r}):e>=1?c.push({s:e-1,e:r-1}):(c.push({s:e,e:1}),c.push({s:0,e:r-1}));var u=[],T,v=c.length,I;for(T=0;T<v;T+=1)if(I=c[T],!(I.e*d<a||I.s*d>a+o)){var w,B;I.s*d<=a?w=0:w=(I.s*d-a)/o,I.e*d>=a+o?B=1:B=(I.e*d-a)/o,u.push([w,B])}return u.length||u.push([0,0]),u},ir.prototype.releasePathsData=function(e){var r,o=e.length;for(r=0;r<o;r+=1)qd.release(e[r]);return e.length=0,e},ir.prototype.processShapes=function(e){var r,o;if(this._mdf||e){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?o=1+a:this.e.v<0?o=0+a:o=this.e.v+a,r>o){var d=r;r=o,o=d}r=Math.round(r*1e4)*1e-4,o=Math.round(o*1e4)*1e-4,this.sValue=r,this.eValue=o}else r=this.sValue,o=this.eValue;var c,u,T=this.shapes.length,v,I,w,B,E,N=0;if(o===r)for(u=0;u<T;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(o===1&&r===0||o===0&&r===1){if(this._mdf)for(u=0;u<T;u+=1)this.shapes[u].pathsData.length=0,this.shapes[u].shape._mdf=!0}else{var P=[],M,z;for(u=0;u<T;u+=1)if(M=this.shapes[u],!M.shape._mdf&&!this._mdf&&!e&&this.m!==2)M.shape.paths=M.localShapeCollection;else{if(c=M.shape.paths,I=c._length,E=0,!M.shape._mdf&&M.pathsData.length)E=M.totalShapeLength;else{for(w=this.releasePathsData(M.pathsData),v=0;v<I;v+=1)B=ur.getSegmentsLength(c.shapes[v]),w.push(B),E+=B.totalLength;M.totalShapeLength=E,M.pathsData=w}N+=E,M.shape._mdf=!0}var C=r,S=o,y=0,A;for(u=T-1;u>=0;u-=1)if(M=this.shapes[u],M.shape._mdf){for(z=M.localShapeCollection,z.releaseShapes(),this.m===2&&T>1?(A=this.calculateShapeEdges(r,o,M.totalShapeLength,y,N),y+=M.totalShapeLength):A=[[C,S]],I=A.length,v=0;v<I;v+=1){C=A[v][0],S=A[v][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}}},ir.prototype.addPaths=function(e,r){var o,a=e.length;for(o=0;o<a;o+=1)r.addShape(e[o])},ir.prototype.addSegment=function(e,r,o,a,d,c,u){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(o[0],o[1],"i",c+1),u&&d.setXYAt(e[0],e[1],"v",c),d.setXYAt(a[0],a[1],"v",c+1)},ir.prototype.addSegmentFromArray=function(e,r,o,a){r.setXYAt(e[1],e[5],"o",o),r.setXYAt(e[2],e[6],"i",o+1),a&&r.setXYAt(e[0],e[4],"v",o),r.setXYAt(e[3],e[7],"v",o+1)},ir.prototype.addShapes=function(e,r,o){var a=e.pathsData,d=e.shape.paths.shapes,c,u=e.shape.paths._length,T,v,I=0,w,B,E,N,P=[],M,z=!0;for(o?(B=o._length,M=o._length):(o=ne.newElement(),B=0,M=0),P.push(o),c=0;c<u;c+=1){for(E=a[c].lengths,o.c=d[c].c,v=d[c].c?E.length:E.length+1,T=1;T<v;T+=1)if(w=E[T-1],I+w.addedLength<r.s)I+=w.addedLength,o.c=!1;else if(I>r.e){o.c=!1;break}else r.s<=I&&r.e>=I+w.addedLength?(this.addSegment(d[c].v[T-1],d[c].o[T-1],d[c].i[T],d[c].v[T],o,B,z),z=!1):(N=ur.getNewSegment(d[c].v[T-1],d[c].v[T],d[c].o[T-1],d[c].i[T],(r.s-I)/w.addedLength,(r.e-I)/w.addedLength,E[T-1]),this.addSegmentFromArray(N,o,B,z),z=!1,o.c=!1),I+=w.addedLength,B+=1;if(d[c].c&&E.length){if(w=E[T-1],I<=r.e){var C=E[T-1].addedLength;r.s<=I&&r.e>=I+C?(this.addSegment(d[c].v[T-1],d[c].o[T-1],d[c].i[0],d[c].v[0],o,B,z),z=!1):(N=ur.getNewSegment(d[c].v[T-1],d[c].v[0],d[c].o[T-1],d[c].i[0],(r.s-I)/C,(r.e-I)/C,E[T-1]),this.addSegmentFromArray(N,o,B,z),z=!1,o.c=!1)}else o.c=!1;I+=w.addedLength,B+=1}if(o._length&&(o.setXYAt(o.v[M][0],o.v[M][1],"i",M),o.setXYAt(o.v[o._length-1][0],o.v[o._length-1][1],"o",o._length-1)),I>r.e)break;c<u-1&&(o=ne.newElement(),z=!0,P.push(o),B=0)}return P};function gs(){}$([Ve],gs),gs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=it.getProp(e,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},gs.prototype.processPath=function(e,r){var o=r/100,a=[0,0],d=e._length,c=0;for(c=0;c<d;c+=1)a[0]+=e.v[c][0],a[1]+=e.v[c][1];a[0]/=d,a[1]/=d;var u=ne.newElement();u.c=e.c;var T,v,I,w,B,E;for(c=0;c<d;c+=1)T=e.v[c][0]+(a[0]-e.v[c][0])*o,v=e.v[c][1]+(a[1]-e.v[c][1])*o,I=e.o[c][0]+(a[0]-e.o[c][0])*-o,w=e.o[c][1]+(a[1]-e.o[c][1])*-o,B=e.i[c][0]+(a[0]-e.i[c][0])*-o,E=e.i[c][1]+(a[1]-e.i[c][1])*-o,u.setTripleAt(T,v,I,w,B,E,c);return u},gs.prototype.processShapes=function(e){var r,o,a=this.shapes.length,d,c,u=this.amount.v;if(u!==0){var T,v;for(o=0;o<a;o+=1){if(T=this.shapes[o],v=T.localShapeCollection,!(!T.shape._mdf&&!this._mdf&&!e))for(v.releaseShapes(),T.shape._mdf=!0,r=T.shape.paths.shapes,c=T.shape.paths._length,d=0;d<c;d+=1)v.addShape(this.processPath(r[d],u));T.shape.paths=T.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Al=function(){var e=[0,0];function r(v){var I=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||I,this.a&&v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&v.skewFromAxis(-this.sk.v,this.sa.v),this.r?v.rotate(-this.r.v):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.data.p.s?this.data.p.z?v.translate(this.px.v,this.py.v,-this.pz.v):v.translate(this.px.v,this.py.v,0):v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function o(v){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||v){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 E=this.px,N=this.py;E._caching.lastFrame+E.offsetTime<=E.keyframes[0].t?(w[0]=E.getValueAtTime((E.keyframes[0].t+.01)/I,0),w[1]=N.getValueAtTime((N.keyframes[0].t+.01)/I,0),B[0]=E.getValueAtTime(E.keyframes[0].t/I,0),B[1]=N.getValueAtTime(N.keyframes[0].t/I,0)):E._caching.lastFrame+E.offsetTime>=E.keyframes[E.keyframes.length-1].t?(w[0]=E.getValueAtTime(E.keyframes[E.keyframes.length-1].t/I,0),w[1]=N.getValueAtTime(N.keyframes[N.keyframes.length-1].t/I,0),B[0]=E.getValueAtTime((E.keyframes[E.keyframes.length-1].t-.01)/I,0),B[1]=N.getValueAtTime((N.keyframes[N.keyframes.length-1].t-.01)/I,0)):(w=[E.pv,N.pv],B[0]=E.getValueAtTime((E._caching.lastFrame+E.offsetTime-.01)/I,E.offsetTime),B[1]=N.getValueAtTime((N._caching.lastFrame+N.offsetTime-.01)/I,N.offsetTime))}else B=e,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(v){this._addDynamicProperty(v),this.elem.addDynamicProperty(v),this._isDirty=!0}function u(v,I,w){if(this.elem=v,this.frameId=-1,this.propType="transform",this.data=I,this.v=new le,this.pre=new le,this.appliedTransformations=0,this.initDynamicPropertyContainer(w||v),I.p&&I.p.s?(this.px=it.getProp(v,I.p.x,0,0,this),this.py=it.getProp(v,I.p.y,0,0,this),I.p.z&&(this.pz=it.getProp(v,I.p.z,0,0,this))):this.p=it.getProp(v,I.p||{k:[0,0,0]},1,0,this),I.rx){if(this.rx=it.getProp(v,I.rx,0,_t,this),this.ry=it.getProp(v,I.ry,0,_t,this),this.rz=it.getProp(v,I.rz,0,_t,this),I.or.k[0].ti){var B,E=I.or.k.length;for(B=0;B<E;B+=1)I.or.k[B].to=null,I.or.k[B].ti=null}this.or=it.getProp(v,I.or,1,_t,this),this.or.sh=!0}else this.r=it.getProp(v,I.r||{k:0},0,_t,this);I.sk&&(this.sk=it.getProp(v,I.sk,0,_t,this),this.sa=it.getProp(v,I.sa,0,_t,this)),this.a=it.getProp(v,I.a||{k:[0,0,0]},1,0,this),this.s=it.getProp(v,I.s||{k:[100,100,100]},1,.01,this),I.o?this.o=it.getProp(v,I.o,0,.01,v):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}u.prototype={applyToMatrix:r,getValue:o,precalculateMatrix:a,autoOrient:d},$([ie],u),u.prototype.addDynamicProperty=c,u.prototype._addDynamicProperty=ie.prototype.addDynamicProperty;function T(v,I,w){return new u(v,I,w)}return{getTransformProperty:T}}();function fr(){}$([Ve],fr),fr.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.c=it.getProp(e,r.c,0,null,this),this.o=it.getProp(e,r.o,0,null,this),this.tr=Al.getTransformProperty(e,r.tr,this),this.so=it.getProp(e,r.tr.so,0,.01,this),this.eo=it.getProp(e,r.tr.eo,0,.01,this),this.data=r,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new le,this.rMatrix=new le,this.sMatrix=new le,this.tMatrix=new le,this.matrix=new le},fr.prototype.applyTransforms=function(e,r,o,a,d,c){var u=c?-1:1,T=a.s.v[0]+(1-a.s.v[0])*(1-d),v=a.s.v[1]+(1-a.s.v[1])*(1-d);e.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]),o.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),o.scale(c?1/T:T,c?1/v:v),o.translate(a.a.v[0],a.a.v[1],a.a.v[2])},fr.prototype.init=function(e,r,o,a){for(this.elem=e,this.arr=r,this.pos=o,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r[o]);o>0;)o-=1,this._elements.unshift(r[o]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},fr.prototype.resetElements=function(e){var r,o=e.length;for(r=0;r<o;r+=1)e[r]._processed=!1,e[r].ty==="gr"&&this.resetElements(e[r].it)},fr.prototype.cloneElements=function(e){var r=JSON.parse(JSON.stringify(e));return this.resetElements(r),r},fr.prototype.changeGroupRender=function(e,r){var o,a=e.length;for(o=0;o<a;o+=1)e[o]._render=r,e[o].ty==="gr"&&this.changeGroupRender(e[o].it,r)},fr.prototype.processShapes=function(e){var r,o,a,d,c,u=!1;if(this._mdf||e){var T=Math.ceil(this.c.v);if(this._groups.length<T){for(;this._groups.length<T;){var v={it:this.cloneElements(this._elements),ty:"gr"};v.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,v),this._groups.splice(0,0,v),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<T,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=T;var E=this.o.v,N=E%1,P=E>0?Math.floor(E):Math.ceil(E),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(E>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(E<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 y,A;c;){if(r=this.elemsData[a].it,o=r[r.length-1].transform.mProps.v.props,A=o.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]),y=0;y<A;y+=1)o[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<A;y+=1)o[y]=this.matrix.props[y];S+=1,c-=1,a+=d}}else for(c=this._currentCopies,a=0,d=1;c;)r=this.elemsData[a].it,o=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},fr.prototype.addShape=function(){};function bs(){}$([Ve],bs),bs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.rd=it.getProp(e,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},bs.prototype.processPath=function(e,r){var o=ne.newElement();o.c=e.c;var a,d=e._length,c,u,T,v,I,w,B=0,E,N,P,M,z,C;for(a=0;a<d;a+=1)c=e.v[a],T=e.o[a],u=e.i[a],c[0]===T[0]&&c[1]===T[1]&&c[0]===u[0]&&c[1]===u[1]?(a===0||a===d-1)&&!e.c?(o.setTripleAt(c[0],c[1],T[0],T[1],u[0],u[1],B),B+=1):(a===0?v=e.v[d-1]:v=e.v[a-1],I=Math.sqrt(Math.pow(c[0]-v[0],2)+Math.pow(c[1]-v[1],2)),w=I?Math.min(I/2,r)/I:0,z=c[0]+(v[0]-c[0])*w,E=z,C=c[1]-(c[1]-v[1])*w,N=C,P=E-(E-c[0])*pe,M=N-(N-c[1])*pe,o.setTripleAt(E,N,P,M,z,C,B),B+=1,a===d-1?v=e.v[0]:v=e.v[a+1],I=Math.sqrt(Math.pow(c[0]-v[0],2)+Math.pow(c[1]-v[1],2)),w=I?Math.min(I/2,r)/I:0,P=c[0]+(v[0]-c[0])*w,E=P,M=c[1]+(v[1]-c[1])*w,N=M,z=E-(E-c[0])*pe,C=N-(N-c[1])*pe,o.setTripleAt(E,N,P,M,z,C,B),B+=1):(o.setTripleAt(e.v[a][0],e.v[a][1],e.o[a][0],e.o[a][1],e.i[a][0],e.i[a][1],B),B+=1);return o},bs.prototype.processShapes=function(e){var r,o,a=this.shapes.length,d,c,u=this.rd.v;if(u!==0){var T,v;for(o=0;o<a;o+=1){if(T=this.shapes[o],v=T.localShapeCollection,!(!T.shape._mdf&&!this._mdf&&!e))for(v.releaseShapes(),T.shape._mdf=!0,r=T.shape.paths.shapes,c=T.shape.paths._length,d=0;d<c;d+=1)v.addShape(this.processPath(r[d],u));T.shape.paths=T.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Da(e,r){return Math.abs(e-r)*1e5<=Math.min(Math.abs(e),Math.abs(r))}function _l(e){return Math.abs(e)<=1e-5}function sh(e,r,o){return e*(1-o)+r*o}function ti(e,r,o){return[sh(e[0],r[0],o),sh(e[1],r[1],o)]}function Iv(e,r,o){if(e===0)return[];var a=r*r-4*e*o;if(a<0)return[];var d=-r/(2*e);if(a===0)return[d];var c=Math.sqrt(a)/(2*e);return[d-c,d+c]}function ah(e,r,o,a){return[-e+3*r-3*o+a,3*e-6*r+3*o,-3*e+3*r,e]}function nh(e){return new Vt(e,e,e,e,!1)}function Vt(e,r,o,a,d){d&&To(e,r)&&(r=ti(e,a,1/3)),d&&To(o,a)&&(o=ti(e,a,2/3));var c=ah(e[0],r[0],o[0],a[0]),u=ah(e[1],r[1],o[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=[e,r,o,a]}Vt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},Vt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},Vt.prototype.tangentAngle=function(e){var r=this.derivative(e);return Math.atan2(r[1],r[0])},Vt.prototype.normalAngle=function(e){var r=this.derivative(e);return Math.atan2(r[0],r[1])},Vt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(_l(e))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,o=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(o<0)return[];var a=Math.sqrt(o);return _l(a)?a>0&&a<1?[r]:[]:[r-a,r+a].filter(function(d){return d>0&&d<1})},Vt.prototype.split=function(e){if(e<=0)return[nh(this.points[0]),this];if(e>=1)return[this,nh(this.points[this.points.length-1])];var r=ti(this.points[0],this.points[1],e),o=ti(this.points[1],this.points[2],e),a=ti(this.points[2],this.points[3],e),d=ti(r,o,e),c=ti(o,a,e),u=ti(d,c,e);return[new Vt(this.points[0],r,d,u,!0),new Vt(u,c,a,this.points[3],!0)]};function lh(e,r){var o=e.points[0][r],a=e.points[e.points.length-1][r];if(o>a){var d=a;a=o,o=d}for(var c=Iv(3*e.a[r],2*e.b[r],e.c[r]),u=0;u<c.length;u+=1)if(c[u]>0&&c[u]<1){var T=e.point(c[u])[r];T<o?o=T:T>a&&(a=T)}return{min:o,max:a}}Vt.prototype.bounds=function(){return{x:lh(this,0),y:lh(this,1)}},Vt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Fa(e,r,o){var a=e.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:e,t:(r+o)/2,t1:r,t2:o}}function ch(e){var r=e.bez.split(.5);return[Fa(r[0],e.t1,e.t),Fa(r[1],e.t,e.t2)]}function kv(e,r){return Math.abs(e.cx-r.cx)*2<e.width+r.width&&Math.abs(e.cy-r.cy)*2<e.height+r.height}function ys(e,r,o,a,d,c){if(kv(e,r)){if(o>=c||e.width<=a&&e.height<=a&&r.width<=a&&r.height<=a){d.push([e.t,r.t]);return}var u=ch(e),T=ch(r);ys(u[0],T[0],o+1,a,d,c),ys(u[0],T[1],o+1,a,d,c),ys(u[1],T[0],o+1,a,d,c),ys(u[1],T[1],o+1,a,d,c)}}Vt.prototype.intersections=function(e,r,o){r===void 0&&(r=2),o===void 0&&(o=7);var a=[];return ys(Fa(this,0,1),Fa(e,0,1),0,r,a,o),a},Vt.shapeSegment=function(e,r){var o=(r+1)%e.length();return new Vt(e.v[r],e.o[r],e.i[o],e.v[o],!0)},Vt.shapeSegmentInverted=function(e,r){var o=(r+1)%e.length();return new Vt(e.v[o],e.i[o],e.o[r],e.v[r],!0)};function Sl(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function $a(e,r,o,a){var d=[e[0],e[1],1],c=[r[0],r[1],1],u=[o[0],o[1],1],T=[a[0],a[1],1],v=Sl(Sl(d,c),Sl(u,T));return _l(v[2])?null:[v[0]/v[2],v[1]/v[2]]}function Eo(e,r,o){return[e[0]+Math.cos(r)*o,e[1]-Math.sin(r)*o]}function Il(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function To(e,r){return Da(e[0],r[0])&&Da(e[1],r[1])}function Es(){}$([Ve],Es),Es.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amplitude=it.getProp(e,r.s,0,null,this),this.frequency=it.getProp(e,r.r,0,null,this),this.pointsType=it.getProp(e,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function dh(e,r,o,a,d,c,u){var T=o-Math.PI/2,v=o+Math.PI/2,I=r[0]+Math.cos(o)*a*d,w=r[1]-Math.sin(o)*a*d;e.setTripleAt(I,w,I+Math.cos(T)*c,w-Math.sin(T)*c,I+Math.cos(v)*u,w-Math.sin(v)*u,e.length())}function Cv(e,r){var o=[r[0]-e[0],r[1]-e[1]],a=-Math.PI*.5,d=[Math.cos(a)*o[0]-Math.sin(a)*o[1],Math.sin(a)*o[0]+Math.cos(a)*o[1]];return d}function wv(e,r){var o=r===0?e.length()-1:r-1,a=(r+1)%e.length(),d=e.v[o],c=e.v[a],u=Cv(d,c);return Math.atan2(0,1)-Math.atan2(u[1],u[0])}function hh(e,r,o,a,d,c,u){var T=wv(r,o),v=r.v[o%r._length],I=r.v[o===0?r._length-1:o-1],w=r.v[(o+1)%r._length],B=c===2?Math.sqrt(Math.pow(v[0]-I[0],2)+Math.pow(v[1]-I[1],2)):0,E=c===2?Math.sqrt(Math.pow(v[0]-w[0],2)+Math.pow(v[1]-w[1],2)):0;dh(e,r.v[o%r._length],T,u,a,E/((d+1)*2),B/((d+1)*2),c)}function Lv(e,r,o,a,d,c){for(var u=0;u<a;u+=1){var T=(u+1)/(a+1),v=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(T),w=r.point(T);dh(e,w,I,c,o,v/((a+1)*2),v/((a+1)*2),d),c=-c}return c}Es.prototype.processPath=function(e,r,o,a){var d=e._length,c=ne.newElement();if(c.c=e.c,e.c||(d-=1),d===0)return c;var u=-1,T=Vt.shapeSegment(e,0);hh(c,e,0,r,o,a,u);for(var v=0;v<d;v+=1)u=Lv(c,T,r,o,a,-u),v===d-1&&!e.c?T=null:T=Vt.shapeSegment(e,(v+1)%d),hh(c,e,v+1,r,o,a,u);return c},Es.prototype.processShapes=function(e){var r,o,a=this.shapes.length,d,c,u=this.amplitude.v,T=Math.max(0,Math.round(this.frequency.v)),v=this.pointsType.v;if(u!==0){var I,w;for(o=0;o<a;o+=1){if(I=this.shapes[o],w=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))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,T,v));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function kl(e,r,o){var a=Math.atan2(r[0]-e[0],r[1]-e[1]);return[Eo(e,a,o),Eo(r,a,o)]}function xo(e,r){var o,a,d,c,u,T,v;v=kl(e.points[0],e.points[1],r),o=v[0],a=v[1],v=kl(e.points[1],e.points[2],r),d=v[0],c=v[1],v=kl(e.points[2],e.points[3],r),u=v[0],T=v[1];var I=$a(o,a,d,c);I===null&&(I=a);var w=$a(u,T,d,c);return w===null&&(w=u),new Vt(o,I,w,T)}function ph(e,r,o,a,d){var c=r.points[3],u=o.points[0];if(a===3||To(c,u))return c;if(a===2){var T=-r.tangentAngle(1),v=-o.tangentAngle(0)+Math.PI,I=$a(c,Eo(c,T+Math.PI/2,100),u,Eo(u,T+Math.PI/2,100)),w=I?Il(I,c):Il(c,u)/2,B=Eo(c,T,2*w*pe);return e.setXYAt(B[0],B[1],"o",e.length()-1),B=Eo(u,v,2*w*pe),e.setTripleAt(u[0],u[1],u[0],u[1],B[0],B[1],e.length()),u}var E=To(c,r.points[2])?r.points[0]:r.points[2],N=To(u,o.points[1])?o.points[3]:o.points[1],P=$a(E,c,u,N);return P&&Il(P,c)<d?(e.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],e.length()),P):c}function mh(e,r){var o=e.intersections(r);return o.length&&Da(o[0][0],1)&&o.shift(),o.length?o[0]:null}function uh(e,r){var o=e.slice(),a=r.slice(),d=mh(e[e.length-1],r[0]);return d&&(o[e.length-1]=e[e.length-1].split(d[0])[0],a[0]=r[0].split(d[1])[1]),e.length>1&&r.length>1&&(d=mh(e[0],r[r.length-1]),d)?[[e[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[o,a]}function Nv(e){for(var r,o=1;o<e.length;o+=1)r=uh(e[o-1],e[o]),e[o-1]=r[0],e[o]=r[1];return e.length>1&&(r=uh(e[e.length-1],e[0]),e[e.length-1]=r[0],e[0]=r[1]),e}function fh(e,r){var o=e.inflectionPoints(),a,d,c,u;if(o.length===0)return[xo(e,r)];if(o.length===1||Da(o[1],1))return c=e.split(o[0]),a=c[0],d=c[1],[xo(a,r),xo(d,r)];c=e.split(o[0]),a=c[0];var T=(o[1]-o[0])/(1-o[0]);return c=c[1].split(T),u=c[0],d=c[1],[xo(a,r),xo(u,r),xo(d,r)]}function Ts(){}$([Ve],Ts),Ts.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=it.getProp(e,r.a,0,null,this),this.miterLimit=it.getProp(e,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ts.prototype.processPath=function(e,r,o,a){var d=ne.newElement();d.c=e.c;var c=e.length();e.c||(c-=1);var u,T,v,I=[];for(u=0;u<c;u+=1)v=Vt.shapeSegment(e,u),I.push(fh(v,r));if(!e.c)for(u=c-1;u>=0;u-=1)v=Vt.shapeSegmentInverted(e,u),I.push(fh(v,r));I=Nv(I);var w=null,B=null;for(u=0;u<I.length;u+=1){var E=I[u];for(B&&(w=ph(d,B,E[0],o,a)),B=E[E.length-1],T=0;T<E.length;T+=1)v=E[T],w&&To(v.points[0],w)?d.setXYAt(v.points[1][0],v.points[1][1],"o",d.length()-1):d.setTripleAt(v.points[0][0],v.points[0][1],v.points[1][0],v.points[1][1],v.points[0][0],v.points[0][1],d.length()),d.setTripleAt(v.points[3][0],v.points[3][1],v.points[3][0],v.points[3][1],v.points[2][0],v.points[2][1],d.length()),w=v.points[3]}return I.length&&ph(d,B,I[0][0],o,a),d},Ts.prototype.processShapes=function(e){var r,o,a=this.shapes.length,d,c,u=this.amount.v,T=this.miterLimit.v,v=this.lineJoin;if(u!==0){var I,w;for(o=0;o<a;o+=1){if(I=this.shapes[o],w=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))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,v,T));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function vh(e){for(var r=e.fStyle?e.fStyle.split(" "):[],o="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":o="700";break;case"black":o="900";break;case"medium":o="500";break;case"regular":case"normal":o="400";break;case"light":case"thin":o="200";break;default:break}return{style:a,weight:e.fWeight||o}}var Ci=function(){var e=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},o=[];o=o.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,T=65039,v=8205,I=127462,w=127487,B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function E(_){var O=_.split(","),p,b=O.length,U=[];for(p=0;p<b;p+=1)O[p]!=="sans-serif"&&O[p]!=="monospace"&&U.push(O[p]);return U.join(",")}function N(_,O){var p=R("span");p.setAttribute("aria-hidden",!0),p.style.fontFamily=O;var b=R("span");b.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(b),document.body.appendChild(p);var U=b.offsetWidth;return b.style.fontFamily=E(_)+", "+O,{node:b,w:U,parent:p}}function P(){var _,O=this.fonts.length,p,b,U=O;for(_=0;_<O;_+=1)this.fonts[_].loaded?U-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(p=this.fonts[_].monoCase.node,b=this.fonts[_].monoCase.w,p.offsetWidth!==b?(U-=1,this.fonts[_].loaded=!0):(p=this.fonts[_].sansCase.node,b=this.fonts[_].sansCase.w,p.offsetWidth!==b&&(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<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function M(_,O){var p=document.body&&O?"svg":"canvas",b,U=vh(_);if(p==="svg"){var F=gt("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,O.appendChild(F),b=F}else{var st=new OffscreenCanvas(500,500).getContext("2d");st.font=U.style+" "+U.weight+" 100px "+_.fFamily,b=st}function mt(ft){return p==="svg"?(b.textContent=ft,b.getComputedTextLength()):b.measureText(ft).width}return{measureText:mt}}function z(_,O){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,b,U=p.length,F=U;for(b=0;b<U;b+=1){var st=!0,mt,ft;if(p[b].loaded=!1,p[b].monoCase=N(p[b].fFamily,"monospace"),p[b].sansCase=N(p[b].fFamily,"sans-serif"),!p[b].fPath)p[b].loaded=!0,F-=1;else if(p[b].fOrigin==="p"||p[b].origin===3){if(mt=document.querySelectorAll('style[f-forigin="p"][f-family="'+p[b].fFamily+'"], style[f-origin="3"][f-family="'+p[b].fFamily+'"]'),mt.length>0&&(st=!1),st){var Ct=R("style");Ct.setAttribute("f-forigin",p[b].fOrigin),Ct.setAttribute("f-origin",p[b].origin),Ct.setAttribute("f-family",p[b].fFamily),Ct.type="text/css",Ct.innerText="@font-face {font-family: "+p[b].fFamily+"; font-style: normal; src: url('"+p[b].fPath+"');}",O.appendChild(Ct)}}else if(p[b].fOrigin==="g"||p[b].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[b].fPath)!==-1&&(st=!1);if(st){var wt=R("link");wt.setAttribute("f-forigin",p[b].fOrigin),wt.setAttribute("f-origin",p[b].origin),wt.type="text/css",wt.rel="stylesheet",wt.href=p[b].fPath,document.body.appendChild(wt)}}else if(p[b].fOrigin==="t"||p[b].origin===2){for(mt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ft=0;ft<mt.length;ft+=1)p[b].fPath===mt[ft].src&&(st=!1);if(st){var Kt=R("link");Kt.setAttribute("f-forigin",p[b].fOrigin),Kt.setAttribute("f-origin",p[b].origin),Kt.setAttribute("rel","stylesheet"),Kt.setAttribute("href",p[b].fPath),O.appendChild(Kt)}}p[b].helper=M(p[b],O),p[b].cache={},this.fonts.push(p[b])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function C(_){if(_){this.chars||(this.chars=[]);var O,p=_.length,b,U=this.chars.length,F;for(O=0;O<p;O+=1){for(b=0,F=!1;b<U;)this.chars[b].style===_[O].style&&this.chars[b].fFamily===_[O].fFamily&&this.chars[b].ch===_[O].ch&&(F=!0),b+=1;F||(this.chars.push(_[O]),U+=1)}}}function S(_,O,p){for(var b=0,U=this.chars.length;b<U;){if(this.chars[b].ch===_&&this.chars[b].style===O&&this.chars[b].fFamily===p)return this.chars[b];b+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,O,p)),r}function y(_,O,p){var b=this.getFontByName(O),U=_;if(!b.cache[U]){var F=b.helper;if(_===" "){var st=F.measureText("|"+_+"|"),mt=F.measureText("||");b.cache[U]=(st-mt)/100}else b.cache[U]=F.measureText(_)/100}return b.cache[U]*p}function A(_){for(var O=0,p=this.fonts.length;O<p;){if(this.fonts[O].fName===_)return this.fonts[O];O+=1}return this.fonts[0]}function k(_){var O=0,p=_.charCodeAt(0);if(p>=55296&&p<=56319){var b=_.charCodeAt(1);b>=56320&&b<=57343&&(O=(p-55296)*1024+b-56320+65536)}return O}function D(_,O){var p=_.toString(16)+O.toString(16);return B.indexOf(p)!==-1}function V(_){return _===v}function G(_){return _===T}function Z(_){var O=k(_);return O>=I&&O<=w}function ut(_){return Z(_.substr(0,2))&&Z(_.substr(2,2))}function dt(_){return o.indexOf(_)!==-1}function tt(_,O){var p=k(_.substr(O,2));if(p!==a)return!1;var b=0;for(O+=2;b<5;){if(p=k(_.substr(O,2)),p<c||p>u)return!1;b+=1,O+=2}return k(_.substr(O,2))===d}function bt(){this.isLoaded=!0}var lt=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)};lt.isModifier=D,lt.isZeroWidthJoiner=V,lt.isFlagEmoji=ut,lt.isRegionalCode=Z,lt.isCombinedCharacter=dt,lt.isRegionalFlag=tt,lt.isVariationSelector=G,lt.BLACK_FLAG_CODE_POINT=a;var X={addChars:C,addFonts:z,getCharData:S,getFontByName:A,measureText:y,checkLoadedFonts:P,setIsLoaded:bt};return lt.prototype=X,lt}();function gh(e){this.animationData=e}gh.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function Rv(e){return new gh(e)}function za(){}za.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,o=this.renderableComponents.length;for(r=0;r<o;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 Cl=function(){var e={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 e[r]||""}}();function Mv(e,r,o){this.p=it.getProp(r,e.v,0,0,o)}function Ov(e,r,o){this.p=it.getProp(r,e.v,0,0,o)}function Pv(e,r,o){this.p=it.getProp(r,e.v,1,0,o)}function Dv(e,r,o){this.p=it.getProp(r,e.v,1,0,o)}function Fv(e,r,o){this.p=it.getProp(r,e.v,0,0,o)}function $v(e,r,o){this.p=it.getProp(r,e.v,0,0,o)}function zv(e,r,o){this.p=it.getProp(r,e.v,0,0,o)}function Vv(){this.p={}}function bh(e,r){var o=e.ef||[];this.effectElements=[];var a,d=o.length,c;for(a=0;a<d;a+=1)c=new xs(o[a],r),this.effectElements.push(c)}function xs(e,r){this.init(e,r)}$([ie],xs),xs.prototype.getValue=xs.prototype.iterateDynamicProperties,xs.prototype.init=function(e,r){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(r);var o,a=this.data.ef.length,d,c=this.data.ef;for(o=0;o<a;o+=1){switch(d=null,c[o].ty){case 0:d=new Mv(c[o],r,this);break;case 1:d=new Ov(c[o],r,this);break;case 2:d=new Pv(c[o],r,this);break;case 3:d=new Dv(c[o],r,this);break;case 4:case 7:d=new zv(c[o],r,this);break;case 10:d=new Fv(c[o],r,this);break;case 11:d=new $v(c[o],r,this);break;case 5:d=new bh(c[o],r,this);break;default:d=new Vv(c[o],r,this);break}d&&this.effectElements.push(d)}};function ei(){}ei.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,o=this.data.masksProperties.length;r<o;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=Hd();if(r){var o=r("layer"),a=r("effects"),d=r("shape"),c=r("text"),u=r("comp");this.layerInterface=o(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var T=a.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(T),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=Cl(this.data.bm),o=this.baseElement||this.layerElement;o.style["mix-blend-mode"]=r},initBaseData:function(r,o,a){this.globalData=o,this.comp=a,this.data=r,this.layerId=Te(),this.data.sr||(this.data.sr=1),this.effectsManager=new bh(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function ri(){}ri.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,o){var a,d=this.dynamicProperties.length;for(a=0;a<d;a+=1)(o||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 ii(e,r,o){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(e,r,o)}ii.prototype.prepareFrame=function(){},$([za,ei,ri],ii),ii.prototype.getBaseElement=function(){return null},ii.prototype.renderFrame=function(){},ii.prototype.destroy=function(){},ii.prototype.initExpressions=function(){var e=Hd();if(e){var r=e("footage");this.layerInterface=r(this)}},ii.prototype.getFootageData=function(){return this.footageData};function xe(e,r,o){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.initBaseData(e,r,o),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=e.tm?it.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=it.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}xe.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var o=this._volume*this._volumeMultiplier;this._previousVolume!==o&&(this._previousVolume=o,this.audio.volume(o))},$([za,ei,ri],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(e){this.audio.rate(e)},xe.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*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 ce(){}ce.prototype.checkLayers=function(e){var r,o=this.layers.length,a;for(this.completeLayers=!0,r=o-1;r>=0;r-=1)this.elements[r]||(a=this.layers[r],a.ip-a.st<=e-this.layers[r].st&&a.op-a.st>e-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},ce.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},ce.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ce.prototype.createAudio=function(e){return new xe(e,this.globalData,this)},ce.prototype.createFootage=function(e){return new ii(e,this.globalData,this)},ce.prototype.buildAllItems=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.buildItem(e);this.checkPendingElements()},ce.prototype.includeLayers=function(e){this.completeLayers=!1;var r,o=e.length,a,d=this.layers.length;for(r=0;r<o;r+=1)for(a=0;a<d;){if(this.layers[a].id===e[r].id){this.layers[a]=e[r];break}a+=1}},ce.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},ce.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ce.prototype.buildElementParenting=function(e,r,o){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(e)):(o.push(a[c]),a[c].setAsParent(),d[c].parent!==void 0?this.buildElementParenting(e,d[c].parent,o):e.setHierarchy(o))),c+=1},ce.prototype.addPendingElement=function(e){this.pendingElements.push(e)},ce.prototype.searchExtraCompositions=function(e){var r,o=e.length;for(r=0;r<o;r+=1)if(e[r].xt){var a=this.createComp(e[r]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},ce.prototype.getElementById=function(e){var r,o=this.elements.length;for(r=0;r<o;r+=1)if(this.elements[r].data.ind===e)return this.elements[r];return null},ce.prototype.getElementByPath=function(e){var r=e.shift(),o;if(typeof r=="number")o=this.elements[r];else{var a,d=this.elements.length;for(a=0;a<d;a+=1)if(this.elements[a].data.nm===r){o=this.elements[a];break}}return e.length===0?o:o.getElementByPath(e)},ce.prototype.setupGlobalData=function(e,r){this.globalData.fontManager=new Ci,this.globalData.slotManager=Rv(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var Bv={TRANSFORM_EFFECT:"transformEFfect"};function Ao(){}Ao.prototype={initTransform:function(){var r=new le;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,o=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,o.cloneFromProps(r),a=0;a<d;a+=1)o.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,o=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<o;)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<o;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<o;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(Bv.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new le;var o=0,a=r.length;for(o=0;o<a;o+=1)this.localTransforms.push(r[o])}}},globalToLocal:function(r){var o=[];o.push(this.finalTransform);for(var a=!0,d=this.comp;a;)d.finalTransform?(d.data.hasMask&&o.splice(0,0,d.finalTransform),d=d.comp):a=!1;var c,u=o.length,T;for(c=0;c<u;c+=1)T=o[c].mat.applyToPointArray(0,0,0),r=[r[0]-T[0],r[1]-T[1],0];return r},mHelper:new le};function wi(e,r,o){this.data=e,this.element=r,this.globalData=o,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=rt(c),this.solidPath="";var u,T=this.masksProperties,v=0,I=[],w,B,E=Te(),N,P,M,z,C="clipPath",S="clip-path";for(d=0;d<c;d+=1)if((T[d].mode!=="a"&&T[d].mode!=="n"||T[d].inv||T[d].o.k!==100||T[d].o.x)&&(C="mask",S="mask"),(T[d].mode==="s"||T[d].mode==="i")&&v===0?(N=gt("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=gt("path"),T[d].mode==="n")this.viewData[d]={op:it.getProp(this.element,T[d].o,0,.01,this.element),prop:Ma.getShapeProp(this.element,T[d],3),elem:u,lastPath:""},a.appendChild(u);else{v+=1,u.setAttribute("fill",T[d].mode==="s"?"#000000":"#ffffff"),u.setAttribute("clip-rule","nonzero");var y;if(T[d].x.k!==0?(C="mask",S="mask",z=it.getProp(this.element,T[d].x,0,null,this.element),y=Te(),P=gt("filter"),P.setAttribute("id",y),M=gt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),P.appendChild(M),a.appendChild(P),u.setAttribute("stroke",T[d].mode==="s"?"#000000":"#ffffff")):(M=null,z=null),this.storedData[d]={elem:u,x:z,expan:M,lastPath:"",lastOperator:"",filterId:y,lastRadius:0},T[d].mode==="i"){B=I.length;var A=gt("g");for(w=0;w<B;w+=1)A.appendChild(I[w]);var k=gt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",E+"_"+v),k.appendChild(u),a.appendChild(k),A.setAttribute("mask","url("+x()+"#"+E+"_"+v+")"),I.length=0,I.push(A)}else I.push(u);T[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:u,lastPath:"",op:it.getProp(this.element,T[d].o,0,.01,this.element),prop:Ma.getShapeProp(this.element,T[d],3),invRect:N},this.viewData[d].prop.k||this.drawPath(T[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=gt(C),c=I.length,d=0;d<c;d+=1)this.maskElement.appendChild(I[d]);v>0&&(this.maskElement.setAttribute("id",E),this.element.maskedElement.setAttribute(S,"url("+x()+"#"+E+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}wi.prototype.getMaskProperty=function(e){return this.viewData[e].prop},wi.prototype.renderFrame=function(e){var r=this.element.finalTransform.mat,o,a=this.masksProperties.length;for(o=0;o<a;o+=1)if((this.viewData[o].prop._mdf||e)&&this.drawPath(this.masksProperties[o],this.viewData[o].prop.v,this.viewData[o]),(this.viewData[o].op._mdf||e)&&this.viewData[o].elem.setAttribute("fill-opacity",this.viewData[o].op.v),this.masksProperties[o].mode!=="n"&&(this.viewData[o].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[o].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[o].x&&(this.storedData[o].x._mdf||e))){var d=this.storedData[o].expan;this.storedData[o].x.v<0?(this.storedData[o].lastOperator!=="erode"&&(this.storedData[o].lastOperator="erode",this.storedData[o].elem.setAttribute("filter","url("+x()+"#"+this.storedData[o].filterId+")")),d.setAttribute("radius",-this.storedData[o].x.v)):(this.storedData[o].lastOperator!=="dilate"&&(this.storedData[o].lastOperator="dilate",this.storedData[o].elem.setAttribute("filter",null)),this.storedData[o].elem.setAttribute("stroke-width",this.storedData[o].x.v*2))}},wi.prototype.getMaskelement=function(){return this.maskElement},wi.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},wi.prototype.drawPath=function(e,r,o){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]),o.lastPath!==a){var u="";o.elem&&(r.c&&(u=e.inv?this.solidPath+a:a),o.elem.setAttribute("d",u)),o.lastPath=a}},wi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var As=function(){var e={};e.createFilter=r,e.createAlphaToLuminanceFilter=o;function r(a,d){var c=gt("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 o(){var a=gt("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 e}(),yh=function(){var e={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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),Va={},Eh="filter_result_";function wl(e){var r,o="SourceGraphic",a=e.data.ef?e.data.ef.length:0,d=Te(),c=As.createFilter(d,!0),u=0;this.filters=[];var T;for(r=0;r<a;r+=1){T=null;var v=e.data.ef[r].ty;if(Va[v]){var I=Va[v].effect;T=new I(c,e.effectsManager.effectElements[r],e,Eh+u,o),o=Eh+u,Va[v].countsAsEffect&&(u+=1)}T&&this.filters.push(T)}u&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+x()+"#"+d+")")),this.filters.length&&e.addRenderableComponent(this)}wl.prototype.renderFrame=function(e){var r,o=this.filters.length;for(r=0;r<o;r+=1)this.filters[r].renderFrame(e)},wl.prototype.getEffects=function(e){var r,o=this.filters.length,a=[];for(r=0;r<o;r+=1)this.filters[r].type===e&&a.push(this.filters[r]);return a};function UE(e,r,o){Va[e]={effect:r,countsAsEffect:o}}function _s(){}_s.prototype={initRendererElement:function(){this.layerElement=gt("g")},createContainerElements:function(){this.matteElement=gt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var o=gt("g");o.setAttribute("id",this.layerId),o.appendChild(this.layerElement),r=o,this.globalData.defs.appendChild(o)}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=gt("clipPath"),d=gt("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=gt("g");u.setAttribute("clip-path","url("+x()+"#"+c+")"),u.appendChild(this.layerElement),this.transformedElement=u,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+x()+"#"+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 wi(this.data,this,this.globalData),this.renderableEffectsManager=new wl(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var o=this.layerId+"_"+r,a,d,c,u;if(r===1||r===3){var T=gt("mask");T.setAttribute("id",o),T.setAttribute("mask-type",r===3?"luminance":"alpha"),c=gt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),T.appendChild(c),this.globalData.defs.appendChild(T),!yh.maskType&&r===1&&(T.setAttribute("mask-type","luminance"),a=Te(),d=As.createFilter(a),this.globalData.defs.appendChild(d),d.appendChild(As.createAlphaToLuminanceFilter()),u=gt("g"),u.appendChild(c),T.appendChild(u),u.setAttribute("filter","url("+x()+"#"+a+")"))}else if(r===2){var v=gt("mask");v.setAttribute("id",o),v.setAttribute("mask-type","alpha");var I=gt("g");v.appendChild(I),a=Te(),d=As.createFilter(a);var w=gt("feComponentTransfer");w.setAttribute("in","SourceGraphic"),d.appendChild(w);var B=gt("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),w.appendChild(B),this.globalData.defs.appendChild(d);var E=gt("rect");E.setAttribute("width",this.comp.data.w),E.setAttribute("height",this.comp.data.h),E.setAttribute("x","0"),E.setAttribute("y","0"),E.setAttribute("fill","#ffffff"),E.setAttribute("opacity","0"),I.setAttribute("filter","url("+x()+"#"+a+")"),I.appendChild(E),c=gt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),yh.maskType||(v.setAttribute("mask-type","luminance"),d.appendChild(As.createAlphaToLuminanceFilter()),u=gt("g"),I.appendChild(E),u.appendChild(this.layerElement),I.appendChild(u)),this.globalData.defs.appendChild(v)}this.matteMasks[r]=o}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+x()+"#"+r+")")}};function _o(){}_o.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 Ss(){}(function(){var e={initElement:function(o,a,d){this.initFrame(),this.initBaseData(o,a,d),this.initTransform(o,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 o=this.baseElement||this.layerElement;o.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var o=this.baseElement||this.layerElement;o.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(o){this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};$([za,K(e)],Ss)})();function Is(e,r,o){this.assetData=r.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(e,r,o),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}$([ei,Ao,_s,_o,ri,Ss],Is),Is.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=gt("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",e),this.layerElement.appendChild(this.innerElem)},Is.prototype.sourceRectAtTime=function(){return this.sourceRect};function Uv(e,r){this.elem=e,this.pos=r}function Th(){}Th.prototype={addShapeToModifiers:function(r){var o,a=this.shapeModifiers.length;for(o=0;o<a;o+=1)this.shapeModifiers[o].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var o=0,a=this.shapeModifiers.length;o<a;)if(this.shapeModifiers[o].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,o=this.shapes.length;for(r=0;r<o;r+=1)this.shapes[r].sh.reset();o=this.shapeModifiers.length;var a;for(r=o-1;r>=0&&(a=this.shapeModifiers[r].processShapes(this._isFirstFrame),!a);r-=1);}},searchProcessedElement:function(r){for(var o=this.processedElements,a=0,d=o.length;a<d;){if(o[a].elem===r)return o[a].pos;a+=1}return 0},addProcessedElement:function(r,o){for(var a=this.processedElements,d=a.length;d;)if(d-=1,a[d].elem===r){a[d].pos=o;return}a.push(new Uv(r,o))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var xh={1:"butt",2:"round",3:"square"},Ah={1:"miter",2:"round",3:"bevel"};function _h(e,r,o){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=o,this.lvl=r,this._isAnimated=!!o.k;for(var a=0,d=e.length;a<d;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}_h.prototype.setAsAnimated=function(){this._isAnimated=!0};function Sh(e,r){this.data=e,this.type=e.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=e.hd===!0,this.pElem=gt("path"),this.msElem=null}Sh.prototype.reset=function(){this.d="",this._mdf=!1};function Ba(e,r,o,a){this.elem=e,this.frameId=-1,this.dataProps=rt(r.length),this.renderer=o,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=it.getProp(e,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}Ba.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var r=0,o=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<o;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}},$([ie],Ba);function Ih(e,r,o){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=it.getProp(e,r.o,0,.01,this),this.w=it.getProp(e,r.w,0,null,this),this.d=new Ba(e,r.d||{},"svg",this),this.c=it.getProp(e,r.c,1,255,this),this.style=o,this._isAnimated=!!this._isAnimated}$([ie],Ih);function kh(e,r,o){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=it.getProp(e,r.o,0,.01,this),this.c=it.getProp(e,r.c,1,255,this),this.style=o}$([ie],kh);function Ch(e,r,o){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=o}$([ie],Ch);function ks(e,r,o){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(o),this.prop=it.getProp(e,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ks.prototype.comparePoints=function(e,r){for(var o=0,a=this.o.length/2,d;o<a;){if(d=Math.abs(e[o*4]-e[r*4+o*2]),d>.01)return!1;o+=1}return!0},ks.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,r=this.data.k.k.length;e<r;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},ks.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var r,o=this.data.p*4,a,d;for(r=0;r<o;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=!e);if(this.o.length)for(o=this.prop.v.length,r=this.data.p*4;r<o;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=!e);this._mdf=!e}},$([ie],ks);function So(e,r,o){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,o)}So.prototype.initGradientData=function(e,r,o){this.o=it.getProp(e,r.o,0,.01,this),this.s=it.getProp(e,r.s,1,null,this),this.e=it.getProp(e,r.e,1,null,this),this.h=it.getProp(e,r.h||{k:0},0,.01,this),this.a=it.getProp(e,r.a||{k:0},0,_t,this),this.g=new ks(e,r.g,this),this.style=o,this.stops=[],this.setGradientData(o.pElem,r),this.setGradientOpacity(r,o),this._isAnimated=!!this._isAnimated},So.prototype.setGradientData=function(e,r){var o=Te(),a=gt(r.t===1?"linearGradient":"radialGradient");a.setAttribute("id",o),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,u,T;for(T=r.g.p*4,u=0;u<T;u+=4)c=gt("stop"),a.appendChild(c),d.push(c);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+x()+"#"+o+")"),this.gf=a,this.cst=d},So.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var o,a,d,c=gt("mask"),u=gt("path");c.appendChild(u);var T=Te(),v=Te();c.setAttribute("id",v);var I=gt(e.t===1?"linearGradient":"radialGradient");I.setAttribute("id",T),I.setAttribute("spreadMethod","pad"),I.setAttribute("gradientUnits","userSpaceOnUse"),d=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var w=this.stops;for(a=e.g.p*4;a<d;a+=2)o=gt("stop"),o.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(o),w.push(o);u.setAttribute(e.ty==="gf"?"fill":"stroke","url("+x()+"#"+T+")"),e.ty==="gs"&&(u.setAttribute("stroke-linecap",xh[e.lc||2]),u.setAttribute("stroke-linejoin",Ah[e.lj||2]),e.lj===1&&u.setAttribute("stroke-miterlimit",e.ml)),this.of=I,this.ms=c,this.ost=w,this.maskId=v,r.msElem=u}},$([ie],So);function wh(e,r,o){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=it.getProp(e,r.w,0,null,this),this.d=new Ba(e,r.d||{},"svg",this),this.initGradientData(e,r,o),this._isAnimated=!!this._isAnimated}$([So,ie],wh);function Gv(){this.it=[],this.prevViewData=[],this.gr=gt("g")}function Hv(e,r,o){this.transform={mProps:e,op:r,container:o},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Lh=function(r,o,a,d){if(o===0)return"";var c=r.o,u=r.i,T=r.v,v,I=" M"+d.applyToPointStringified(T[0][0],T[0][1]);for(v=1;v<o;v+=1)I+=" C"+d.applyToPointStringified(c[v-1][0],c[v-1][1])+" "+d.applyToPointStringified(u[v][0],u[v][1])+" "+d.applyToPointStringified(T[v][0],T[v][1]);return a&&o&&(I+=" C"+d.applyToPointStringified(c[v-1][0],c[v-1][1])+" "+d.applyToPointStringified(u[0][0],u[0][1])+" "+d.applyToPointStringified(T[0][0],T[0][1]),I+="z"),I},jv=function(){var e=new le,r=new le,o={createRenderFunction:a};function a(B){switch(B.ty){case"fl":return T;case"gf":return I;case"gs":return v;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,E,N){(N||E.transform.op._mdf)&&E.transform.container.setAttribute("opacity",E.transform.op.v),(N||E.transform.mProps._mdf)&&E.transform.container.setAttribute("transform",E.transform.mProps.v.to2dCSS())}function c(){}function u(B,E,N){var P,M,z,C,S,y,A=E.styles.length,k=E.lvl,D,V,G,Z;for(y=0;y<A;y+=1){if(C=E.sh._mdf||N,E.styles[y].lvl<k){for(V=r.reset(),G=k-E.styles[y].lvl,Z=E.transformers.length-1;!C&&G>0;)C=E.transformers[Z].mProps._mdf||C,G-=1,Z-=1;if(C)for(G=k-E.styles[y].lvl,Z=E.transformers.length-1;G>0;)V.multiply(E.transformers[Z].mProps.v),G-=1,Z-=1}else V=e;if(D=E.sh.paths,M=D._length,C){for(z="",P=0;P<M;P+=1)S=D.shapes[P],S&&S._length&&(z+=Lh(S,S._length,S.c,V));E.caches[y]=z}else z=E.caches[y];E.styles[y].d+=B.hd===!0?"":z,E.styles[y]._mdf=C||E.styles[y]._mdf}}function T(B,E,N){var P=E.style;(E.c._mdf||N)&&P.pElem.setAttribute("fill","rgb("+re(E.c.v[0])+","+re(E.c.v[1])+","+re(E.c.v[2])+")"),(E.o._mdf||N)&&P.pElem.setAttribute("fill-opacity",E.o.v)}function v(B,E,N){I(B,E,N),w(B,E,N)}function I(B,E,N){var P=E.gf,M=E.g._hasOpacity,z=E.s.v,C=E.e.v;if(E.o._mdf||N){var S=B.ty==="gf"?"fill-opacity":"stroke-opacity";E.style.pElem.setAttribute(S,E.o.v)}if(E.s._mdf||N){var y=B.t===1?"x1":"cx",A=y==="x1"?"y1":"cy";P.setAttribute(y,z[0]),P.setAttribute(A,z[1]),M&&!E.g._collapsable&&(E.of.setAttribute(y,z[0]),E.of.setAttribute(A,z[1]))}var k,D,V,G;if(E.g._cmdf||N){k=E.cst;var Z=E.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&&(E.g._omdf||N)){var ut=E.g.o;for(E.g._collapsable?k=E.cst:k=E.ost,V=k.length,D=0;D<V;D+=1)G=k[D],E.g._collapsable||G.setAttribute("offset",ut[D*2]+"%"),G.setAttribute("stop-opacity",ut[D*2+1])}if(B.t===1)(E.e._mdf||N)&&(P.setAttribute("x2",C[0]),P.setAttribute("y2",C[1]),M&&!E.g._collapsable&&(E.of.setAttribute("x2",C[0]),E.of.setAttribute("y2",C[1])));else{var dt;if((E.s._mdf||E.e._mdf||N)&&(dt=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)),P.setAttribute("r",dt),M&&!E.g._collapsable&&E.of.setAttribute("r",dt)),E.e._mdf||E.h._mdf||E.a._mdf||N){dt||(dt=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)));var tt=Math.atan2(C[1]-z[1],C[0]-z[0]),bt=E.h.v;bt>=1?bt=.99:bt<=-1&&(bt=-.99);var lt=dt*bt,X=Math.cos(tt+E.a.v)*lt+z[0],_=Math.sin(tt+E.a.v)*lt+z[1];P.setAttribute("fx",X),P.setAttribute("fy",_),M&&!E.g._collapsable&&(E.of.setAttribute("fx",X),E.of.setAttribute("fy",_))}}}function w(B,E,N){var P=E.style,M=E.d;M&&(M._mdf||N)&&M.dashStr&&(P.pElem.setAttribute("stroke-dasharray",M.dashStr),P.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),E.c&&(E.c._mdf||N)&&P.pElem.setAttribute("stroke","rgb("+re(E.c.v[0])+","+re(E.c.v[1])+","+re(E.c.v[2])+")"),(E.o._mdf||N)&&P.pElem.setAttribute("stroke-opacity",E.o.v),(E.w._mdf||N)&&(P.pElem.setAttribute("stroke-width",E.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",E.w.v))}return o}();function Ht(e,r,o){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,r,o),this.prevViewData=[]}$([ei,Ao,_s,Th,_o,ri,Ss],Ht),Ht.prototype.initSecondaryElement=function(){},Ht.prototype.identityMatrix=new le,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 e,r=this.shapes.length,o,a,d=this.stylesList.length,c,u=[],T=!1;for(a=0;a<d;a+=1){for(c=this.stylesList[a],T=!1,u.length=0,e=0;e<r;e+=1)o=this.shapes[e],o.styles.indexOf(c)!==-1&&(u.push(o),T=o._isAnimated||T);u.length>1&&T&&this.setShapesAsAnimated(u)}},Ht.prototype.setShapesAsAnimated=function(e){var r,o=e.length;for(r=0;r<o;r+=1)e[r].setAsAnimated()},Ht.prototype.createStyleElement=function(e,r){var o,a=new Sh(e,r),d=a.pElem;if(e.ty==="st")o=new Ih(this,e,a);else if(e.ty==="fl")o=new kh(this,e,a);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?So:wh;o=new c(this,e,a),this.globalData.defs.appendChild(o.gf),o.maskId&&(this.globalData.defs.appendChild(o.ms),this.globalData.defs.appendChild(o.of),d.setAttribute("mask","url("+x()+"#"+o.maskId+")"))}else e.ty==="no"&&(o=new Ch(this,e,a));return(e.ty==="st"||e.ty==="gs")&&(d.setAttribute("stroke-linecap",xh[e.lc||2]),d.setAttribute("stroke-linejoin",Ah[e.lj||2]),d.setAttribute("fill-opacity","0"),e.lj===1&&d.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&d.setAttribute("fill-rule","evenodd"),e.ln&&d.setAttribute("id",e.ln),e.cl&&d.setAttribute("class",e.cl),e.bm&&(d.style["mix-blend-mode"]=Cl(e.bm)),this.stylesList.push(a),this.addToAnimatedContents(e,o),o},Ht.prototype.createGroupElement=function(e){var r=new Gv;return e.ln&&r.gr.setAttribute("id",e.ln),e.cl&&r.gr.setAttribute("class",e.cl),e.bm&&(r.gr.style["mix-blend-mode"]=Cl(e.bm)),r},Ht.prototype.createTransformElement=function(e,r){var o=Al.getTransformProperty(this,e,this),a=new Hv(o,o.o,r);return this.addToAnimatedContents(e,a),a},Ht.prototype.createShapeElement=function(e,r,o){var a=4;e.ty==="rc"?a=5:e.ty==="el"?a=6:e.ty==="sr"&&(a=7);var d=Ma.getShapeProp(this,e,a,this),c=new _h(r,o,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},Ht.prototype.addToAnimatedContents=function(e,r){for(var o=0,a=this.animatedContents.length;o<a;){if(this.animatedContents[o].element===r)return;o+=1}this.animatedContents.push({fn:jv.createRenderFunction(e),element:r,data:e})},Ht.prototype.setElementStyles=function(e){var r=e.styles,o,a=this.stylesList.length;for(o=0;o<a;o+=1)this.stylesList[o].closed||r.push(this.stylesList[o])},Ht.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Ht.prototype.searchShapes=function(e,r,o,a,d,c,u){var T=[].concat(c),v,I=e.length-1,w,B,E=[],N=[],P,M,z;for(v=I;v>=0;v-=1){if(z=this.searchProcessedElement(e[v]),z?r[v]=o[z-1]:e[v]._render=u,e[v].ty==="fl"||e[v].ty==="st"||e[v].ty==="gf"||e[v].ty==="gs"||e[v].ty==="no")z?r[v].style.closed=!1:r[v]=this.createStyleElement(e[v],d),e[v]._render&&r[v].style.pElem.parentNode!==a&&a.appendChild(r[v].style.pElem),E.push(r[v].style);else if(e[v].ty==="gr"){if(!z)r[v]=this.createGroupElement(e[v]);else for(B=r[v].it.length,w=0;w<B;w+=1)r[v].prevViewData[w]=r[v].it[w];this.searchShapes(e[v].it,r[v].it,r[v].prevViewData,r[v].gr,d+1,T,u),e[v]._render&&r[v].gr.parentNode!==a&&a.appendChild(r[v].gr)}else e[v].ty==="tr"?(z||(r[v]=this.createTransformElement(e[v],a)),P=r[v].transform,T.push(P)):e[v].ty==="sh"||e[v].ty==="rc"||e[v].ty==="el"||e[v].ty==="sr"?(z||(r[v]=this.createShapeElement(e[v],T,d)),this.setElementStyles(r[v])):e[v].ty==="tm"||e[v].ty==="rd"||e[v].ty==="ms"||e[v].ty==="pb"||e[v].ty==="zz"||e[v].ty==="op"?(z?(M=r[v],M.closed=!1):(M=Qr.getModifier(e[v].ty),M.init(this,e[v]),r[v]=M,this.shapeModifiers.push(M)),N.push(M)):e[v].ty==="rp"&&(z?(M=r[v],M.closed=!0):(M=Qr.getModifier(e[v].ty),r[v]=M,M.init(this,e,v,r),this.shapeModifiers.push(M),u=!1),N.push(M));this.addProcessedElement(e[v],v+1)}for(I=E.length,v=0;v<I;v+=1)E[v].closed=!0;for(I=N.length,v=0;v<I;v+=1)N[v].closed=!0},Ht.prototype.renderInnerContent=function(){this.renderModifiers();var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<r;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Ht.prototype.renderShape=function(){var e,r=this.animatedContents.length,o;for(e=0;e<r;e+=1)o=this.animatedContents[e],(this._isFirstFrame||o.element._isAnimated)&&o.data!==!0&&o.fn(o.data,o.element,this._isFirstFrame)},Ht.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Ll(e,r,o,a,d,c){this.o=e,this.sw=r,this.sc=o,this.fc=a,this.m=d,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!o,fc:!!a,m:!0,p:!0}}Ll.prototype.update=function(e,r,o,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!==e&&(this.o=e,this._mdf.o=!0,u=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,u=!0),this.sc!==o&&(this.sc=o,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(e,r){this._frameId=s,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=e.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=e,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(e,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},me.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,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(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},me.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,o=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,d=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(a=0;a<d;a+=1)o!==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 e=this.data.d.k,r=this.elem.comp.renderedFrame,o=0,a=e.length;o<=a-1&&!(o===a-1||e[o+1].t>r);)o+=1;return this.keysIndex!==o&&(this.keysIndex=o),this.data.d.k[this.keysIndex].s},me.prototype.buildFinalText=function(e){for(var r=[],o=0,a=e.length,d,c,u=!1,T=!1,v="";o<a;)u=T,T=!1,d=e.charCodeAt(o),v=e.charAt(o),Ci.isCombinedCharacter(d)?u=!0:d>=55296&&d<=56319?Ci.isRegionalFlag(e,o)?v=e.substr(o,14):(c=e.charCodeAt(o+1),c>=56320&&c<=57343&&(Ci.isModifier(d,c)?(v=e.substr(o,2),u=!0):Ci.isFlagEmoji(e.substr(o,4))?v=e.substr(o,4):v=e.substr(o,2))):d>56319?(c=e.charCodeAt(o+1),Ci.isVariationSelector(d)&&(u=!0)):Ci.isZeroWidthJoiner(d)&&(u=!0,T=!0),u?(r[r.length-1]+=v,u=!1):r.push(v),o+=v.length;return r},me.prototype.completeTextData=function(e){e.__complete=!0;var r=this.elem.globalData.fontManager,o=this.data,a=[],d,c,u,T=0,v,I=o.m.g,w=0,B=0,E=0,N=[],P=0,M=0,z,C,S=r.getFontByName(e.f),y,A=0,k=vh(S);e.fWeight=k.weight,e.fStyle=k.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var D=e.tr/1e3*e.finalSize,V;if(e.sz)for(var G=!0,Z=e.sz[0],ut=e.sz[1],dt,tt;G;){tt=this.buildFinalText(e.t),dt=0,P=0,c=tt.length,D=e.tr/1e3*e.finalSize;var bt=-1;for(d=0;d<c;d+=1)V=tt[d].charCodeAt(0),u=!1,tt[d]===" "?bt=d:(V===13||V===3)&&(P=0,u=!0,dt+=e.finalLineHeight||e.finalSize*1.2),r.chars?(y=r.getCharData(tt[d],S.fStyle,S.fFamily),A=u?0:y.w*e.finalSize/100):A=r.measureText(tt[d],e.f,e.finalSize),P+A>Z&&tt[d]!==" "?(bt===-1?c+=1:d=bt,dt+=e.finalLineHeight||e.finalSize*1.2,tt.splice(d,bt===d?1:0,"\r"),bt=-1,P=0):(P+=A,P+=D);dt+=S.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&ut<dt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=tt,c=e.finalText.length,G=!1)}P=-D,A=0;var lt=0,X;for(d=0;d<c;d+=1)if(u=!1,X=e.finalText[d],V=X.charCodeAt(0),V===13||V===3?(lt=0,N.push(P),M=P>M?P:M,P=-2*D,v="",u=!0,E+=1):v=X,r.chars?(y=r.getCharData(X,S.fStyle,r.getFontByName(e.f).fFamily),A=u?0:y.w*e.finalSize/100):A=r.measureText(v,e.f,e.finalSize),X===" "?lt+=A+D:(P+=A+D+lt,lt=0),a.push({l:A,an:A,add:w,n:u,anIndexes:[],val:v,line:E,animatorJustifyOffset:0}),I==2){if(w+=A,v===""||v===" "||d===c-1){for((v===""||v===" ")&&(w-=A);B<=d;)a[B].an=w,a[B].ind=T,a[B].extra=A,B+=1;T+=1,w=0}}else if(I==3){if(w+=A,v===""||d===c-1){for(v===""&&(w-=A);B<=d;)a[B].an=w,a[B].ind=T,a[B].extra=A,B+=1;w=0,T+=1}}else a[T].ind=T,a[T].extra=0,T+=1;if(e.l=a,M=P>M?P:M,N.push(P),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=M,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=N;var _=o.a,O,p;C=_.length;var b,U,F=[];for(z=0;z<C;z+=1){for(O=_[z],O.a.sc&&(e.strokeColorAnim=!0),O.a.sw&&(e.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(e.fillColorAnim=!0),U=0,b=O.s.b,d=0;d<c;d+=1)p=a[d],p.anIndexes[z]=U,(b==1&&p.val!==""||b==2&&p.val!==""&&p.val!==" "||b==3&&(p.n||p.val==" "||d==c-1)||b==4&&(p.n||d==c-1))&&(O.s.rn===1&&F.push(U),U+=1);o.a[z].s.totalChars=U;var st=-1,mt;if(O.s.rn===1)for(d=0;d<c;d+=1)p=a[d],st!=p.anIndexes[z]&&(st=p.anIndexes[z],mt=F.splice(Math.floor(Math.random()*F.length),1)[0]),p.anIndexes[z]=mt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=S.ascent*e.finalSize/100},me.prototype.updateDocumentData=function(e,r){r=r===void 0?this.keysIndex:r;var o=this.copyData({},this.data.d.k[r].s);o=this.copyData(o,e),this.data.d.k[r].s=o,this.recalculate(r),this.setCurrentData(o),this.elem.addDynamicProperty(this)},me.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},me.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},me.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Yv=function(){var e=Math.max,r=Math.min,o=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=it.getProp(c,u.s||{k:0},0,0,this),"e"in u?this.e=it.getProp(c,u.e,0,0,this):this.e={v:100},this.o=it.getProp(c,u.o||{k:0},0,0,this),this.xe=it.getProp(c,u.xe||{k:0},0,0,this),this.ne=it.getProp(c,u.ne||{k:0},0,0,this),this.sm=it.getProp(c,u.sm||{k:100},0,0,this),this.a=it.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 T=0,v=0,I=1,w=1;this.ne.v>0?T=this.ne.v/100:v=-this.ne.v/100,this.xe.v>0?I=1-this.xe.v/100:w=1+this.xe.v/100;var B=vs.getBezierEasing(T,v,I,w).get,E=0,N=this.finalS,P=this.finalE,M=this.data.sh;if(M===2)P===N?E=u>=P?1:0:E=e(0,r(.5/(P-N)+(u-N)/(P-N),1)),E=B(E);else if(M===3)P===N?E=u>=P?0:1:E=1-e(0,r(.5/(P-N)+(u-N)/(P-N),1)),E=B(E);else if(M===4)P===N?E=0:(E=e(0,r(.5/(P-N)+(u-N)/(P-N),1)),E<.5?E*=2:E=1-2*(E-.5)),E=B(E);else if(M===5){if(P===N)E=0;else{var z=P-N;u=r(e(0,u+.5-N),P-N);var C=-z/2+u,S=z/2;E=Math.sqrt(1-C*C/(S*S))}E=B(E)}else M===6?(P===N?E=0:(u=r(e(0,u+.5-N),P-N),E=(1+Math.cos(Math.PI+Math.PI*2*u/(P-N)))/2),E=B(E)):(u>=o(N)&&(u-N<0?E=e(0,r(r(P,1)-(N-u),1)):E=e(0,r(P-u,1))),E=B(E));if(this.sm.v!==100){var y=this.sm.v*.01;y===0&&(y=1e-8);var A=.5-y*.5;E<A?E=0:(E=(E-A)/y,E>1&&(E=1))}return E*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 T=this.data.r===2?1:100/this.data.totalChars,v=this.o.v/T,I=this.s.v/T+v,w=this.e.v/T+v;if(I>w){var B=I;I=w,w=B}this.finalS=I,this.finalE=w}},$([ie],a);function d(c,u,T){return new a(c,u,T)}return{getTextSelectorProp:d}}();function Wv(e,r,o){var a={propType:!1},d=it.getProp,c=r.a;this.a={r:c.r?d(e,c.r,0,_t,o):a,rx:c.rx?d(e,c.rx,0,_t,o):a,ry:c.ry?d(e,c.ry,0,_t,o):a,sk:c.sk?d(e,c.sk,0,_t,o):a,sa:c.sa?d(e,c.sa,0,_t,o):a,s:c.s?d(e,c.s,1,.01,o):a,a:c.a?d(e,c.a,1,0,o):a,o:c.o?d(e,c.o,0,.01,o):a,p:c.p?d(e,c.p,1,0,o):a,sw:c.sw?d(e,c.sw,0,0,o):a,sc:c.sc?d(e,c.sc,1,0,o):a,fc:c.fc?d(e,c.fc,1,0,o):a,fh:c.fh?d(e,c.fh,0,0,o):a,fs:c.fs?d(e,c.fs,0,.01,o):a,fb:c.fb?d(e,c.fb,0,.01,o):a,t:c.t?d(e,c.t,0,0,o):a},this.s=Yv.getTextSelectorProp(e,r.s,o),this.s.t=r.s.t}function Li(e,r,o){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=r,this._elem=o,this._animatorsData=rt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(o)}Li.prototype.searchProperties=function(){var e,r=this._textData.a.length,o,a=it.getProp;for(e=0;e<r;e+=1)o=this._textData.a[e],this._animatorsData[e]=new Wv(this._elem,o,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)},Li.prototype.getMeasures=function(e,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var o=this._moreOptions.alignment.v,a=this._animatorsData,d=this._textData,c=this.mHelper,u=this._renderType,T=this.renderedLetters.length,v,I,w,B,E=e.l,N,P,M,z,C,S,y,A,k,D,V,G,Z,ut,dt;if(this._hasMaskedPath){if(dt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var tt=dt.v;this._pathData.r.v&&(tt=tt.reverse()),N={tLength:0,segments:[]},B=tt._length-1;var bt;for(G=0,w=0;w<B;w+=1)bt=ur.buildBezierData(tt.v[w],tt.v[w+1],[tt.o[w][0]-tt.v[w][0],tt.o[w][1]-tt.v[w][1]],[tt.i[w+1][0]-tt.v[w+1][0],tt.i[w+1][1]-tt.v[w+1][1]]),N.tLength+=bt.segmentLength,N.segments.push(bt),G+=bt.segmentLength;w=B,dt.v.c&&(bt=ur.buildBezierData(tt.v[w],tt.v[0],[tt.o[w][0]-tt.v[w][0],tt.o[w][1]-tt.v[w][1]],[tt.i[0][0]-tt.v[0][0],tt.i[0][1]-tt.v[0][1]]),N.tLength+=bt.segmentLength,N.segments.push(bt),G+=bt.segmentLength),this._pathData.pi=N}if(N=this._pathData.pi,P=this._pathData.f.v,y=0,S=1,z=0,C=!0,D=N.segments,P<0&&dt.v.c)for(N.tLength<Math.abs(P)&&(P=-Math.abs(P)%N.tLength),y=D.length-1,k=D[y].points,S=k.length-1;P<0;)P+=k[S].partialLength,S-=1,S<0&&(y-=1,k=D[y].points,S=k.length-1);k=D[y].points,A=k[S-1],M=k[S],V=M.partialLength}B=E.length,v=0,I=0;var lt=e.finalSize*1.2*.714,X=!0,_,O,p,b,U;b=a.length;var F,st=-1,mt,ft,Ct,wt=P,Kt=y,Ae=S,vr=-1,_e,oe,Re,Rt,ct,Lr,si,Nr,gr="",Rr=this.defaultPropsArray,Mr;if(e.j===2||e.j===1){var Se=0,ai=0,ni=e.j===2?-.5:-1,or=0,li=!0;for(w=0;w<B;w+=1)if(E[w].n){for(Se&&(Se+=ai);or<w;)E[or].animatorJustifyOffset=Se,or+=1;Se=0,li=!0}else{for(p=0;p<b;p+=1)_=a[p].a,_.t.propType&&(li&&e.j===2&&(ai+=_.t.v*ni),O=a[p].s,F=O.getMult(E[w].anIndexes[p],d.a[p].s.totalChars),F.length?Se+=_.t.v*F[0]*ni:Se+=_.t.v*F*ni);li=!1}for(Se&&(Se+=ai);or<w;)E[or].animatorJustifyOffset=Se,or+=1}for(w=0;w<B;w+=1){if(c.reset(),_e=1,E[w].n)v=0,I+=e.yOffset,I+=X?1:0,P=wt,X=!1,this._hasMaskedPath&&(y=Kt,S=Ae,k=D[y].points,A=k[S-1],M=k[S],V=M.partialLength,z=0),gr="",Nr="",Lr="",Mr="",Rr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(vr!==E[w].line){switch(e.j){case 1:P+=G-e.lineWidths[E[w].line];break;case 2:P+=(G-e.lineWidths[E[w].line])/2;break;default:break}vr=E[w].line}st!==E[w].ind&&(E[st]&&(P+=E[st].extra),P+=E[w].an/2,st=E[w].ind),P+=o[0]*E[w].an*.005;var sr=0;for(p=0;p<b;p+=1)_=a[p].a,_.p.propType&&(O=a[p].s,F=O.getMult(E[w].anIndexes[p],d.a[p].s.totalChars),F.length?sr+=_.p.v[0]*F[0]:sr+=_.p.v[0]*F),_.a.propType&&(O=a[p].s,F=O.getMult(E[w].anIndexes[p],d.a[p].s.totalChars),F.length?sr+=_.a.v[0]*F[0]:sr+=_.a.v[0]*F);for(C=!0,this._pathData.a.v&&(P=E[0].an*.5+(G-this._pathData.f.v-E[0].an*.5-E[E.length-1].an*.5)*st/(B-1),P+=this._pathData.f.v);C;)z+V>=P+sr||!k?(Z=(P+sr-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(-o[0]*E[w].an*.005,-(o[1]*lt)*.01),C=!1):k&&(z+=M.partialLength,S+=1,S>=k.length&&(S=0,y+=1,D[y]?k=D[y].points:dt.v.c?(S=0,y=0,k=D[y].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[S],V=M.partialLength));mt=E[w].an/2-E[w].add,c.translate(-mt,0,0)}else mt=E[w].an/2-E[w].add,c.translate(-mt,0,0),c.translate(-o[0]*E[w].an*.005,-o[1]*lt*.01,0);for(p=0;p<b;p+=1)_=a[p].a,_.t.propType&&(O=a[p].s,F=O.getMult(E[w].anIndexes[p],d.a[p].s.totalChars),(v!==0||e.j!==0)&&(this._hasMaskedPath?F.length?P+=_.t.v*F[0]:P+=_.t.v*F:F.length?v+=_.t.v*F[0]:v+=_.t.v*F));for(e.strokeWidthAnim&&(Re=e.sw||0),e.strokeColorAnim&&(e.sc?oe=[e.sc[0],e.sc[1],e.sc[2]]:oe=[0,0,0]),e.fillColorAnim&&e.fc&&(Rt=[e.fc[0],e.fc[1],e.fc[2]]),p=0;p<b;p+=1)_=a[p].a,_.a.propType&&(O=a[p].s,F=O.getMult(E[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<b;p+=1)_=a[p].a,_.s.propType&&(O=a[p].s,F=O.getMult(E[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<b;p+=1){if(_=a[p].a,O=a[p].s,F=O.getMult(E[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),e.strokeWidthAnim&&_.sw.propType&&(F.length?Re+=_.sw.v*F[0]:Re+=_.sw.v*F),e.strokeColorAnim&&_.sc.propType)for(ct=0;ct<3;ct+=1)F.length?oe[ct]+=(_.sc.v[ct]-oe[ct])*F[0]:oe[ct]+=(_.sc.v[ct]-oe[ct])*F;if(e.fillColorAnim&&e.fc){if(_.fc.propType)for(ct=0;ct<3;ct+=1)F.length?Rt[ct]+=(_.fc.v[ct]-Rt[ct])*F[0]:Rt[ct]+=(_.fc.v[ct]-Rt[ct])*F;_.fh.propType&&(F.length?Rt=Gd(Rt,_.fh.v*F[0]):Rt=Gd(Rt,_.fh.v*F)),_.fs.propType&&(F.length?Rt=Bd(Rt,_.fs.v*F[0]):Rt=Bd(Rt,_.fs.v*F)),_.fb.propType&&(F.length?Rt=Ud(Rt,_.fb.v*F[0]):Rt=Ud(Rt,_.fb.v*F))}}for(p=0;p<b;p+=1)_=a[p].a,_.p.propType&&(O=a[p].s,F=O.getMult(E[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(e.strokeWidthAnim&&(Lr=Re<0?0:Re),e.strokeColorAnim&&(si="rgb("+Math.round(oe[0]*255)+","+Math.round(oe[1]*255)+","+Math.round(oe[2]*255)+")"),e.fillColorAnim&&e.fc&&(Nr="rgb("+Math.round(Rt[0]*255)+","+Math.round(Rt[1]*255)+","+Math.round(Rt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,o[1]*lt*.01+I,0),this._pathData.p.v){ut=(M.point[1]-A.point[1])/(M.point[0]-A.point[0]);var Ni=Math.atan(ut)*180/Math.PI;M.point[0]<A.point[0]&&(Ni+=180),c.rotate(-Ni*Math.PI/180)}c.translate(ft,Ct,0),P-=o[0]*E[w].an*.005,E[w+1]&&st!==E[w+1].ind&&(P+=E[w].an/2,P+=e.tr*.001*e.finalSize)}else{switch(c.translate(v,I,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(E[w].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[w].line]),0,0);break;case 2:c.translate(E[w].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[w].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(mt,0,0),c.translate(o[0]*E[w].an*.005,o[1]*lt*.01,0),v+=E[w].l+e.tr*.001*e.finalSize}u==="html"?gr=c.toCSS():u==="svg"?gr=c.to2dCSS():Rr=[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]],Mr=_e}T<=w?(U=new Ll(Mr,Lr,si,Nr,gr,Rr),this.renderedLetters.push(U),T+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[w],this.lettersChangedFlag=U.update(Mr,Lr,si,Nr,gr,Rr)||this.lettersChangedFlag)}}},Li.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Li.prototype.mHelper=new le,Li.prototype.defaultPropsArray=[],$([ie],Li);function Be(){}Be.prototype.initElement=function(e,r,o){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,o),this.textProperty=new me(this,e.t,this.dynamicProperties),this.textAnimator=new Li(e.t,this.renderType,this),this.initTransform(e,r,o),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Be.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},Be.prototype.createPathShape=function(e,r){var o,a=r.length,d,c="";for(o=0;o<a;o+=1)r[o].ty==="sh"&&(d=r[o].ks.k,c+=Lh(d,d.i.length,!0,e));return c},Be.prototype.updateDocumentData=function(e,r){this.textProperty.updateDocumentData(e,r)},Be.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},Be.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},Be.prototype.applyTextPropertiesToMatrix=function(e,r,o,a,d){switch(e.ps&&r.translate(e.ps[0],e.ps[1]+e.ascent,0),r.translate(0,-e.ls,0),e.j){case 1:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[o]),0,0);break;case 2:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[o])/2,0,0);break;default:break}r.translate(a,d,0)},Be.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},Be.prototype.emptyProp=new Ll,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 qv={shapes:[]};function Cr(e,r,o){this.textSpans=[],this.renderType="svg",this.initElement(e,r,o)}$([ei,Ao,_s,_o,ri,Ss,Be],Cr),Cr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=gt("text"))},Cr.prototype.buildTextContents=function(e){for(var r=0,o=e.length,a=[],d="";r<o;)e[r]==="\r"||e[r]===""?(a.push(d),d=""):d+=e[r],r+=1;return a.push(d),a},Cr.prototype.buildShapeData=function(e,r){if(e.shapes&&e.shapes.length){var o=e.shapes[0];if(o.it){var a=o.it[o.it.length-1];a.s&&(a.s.k[0]=r,a.s.k[1]=r)}}return e},Cr.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,r,o=this.textProperty.currentData;this.renderedLetters=rt(o?o.l.length:0),o.fc?this.layerElement.setAttribute("fill",this.buildColor(o.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),o.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(o.sc)),this.layerElement.setAttribute("stroke-width",o.sw)),this.layerElement.setAttribute("font-size",o.finalSize);var a=this.globalData.fontManager.getFontByName(o.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var d=o.fWeight,c=o.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",o.t);var u=o.l||[],T=!!this.globalData.fontManager.chars;r=u.length;var v,I=this.mHelper,w="",B=this.data.singleShape,E=0,N=0,P=!0,M=o.tr*.001*o.finalSize;if(B&&!T&&!o.sz){var z=this.textContainer,C="start";switch(o.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(o.finalText);for(r=S.length,N=o.ps?o.ps[1]+o.ascent:0,e=0;e<r;e+=1)v=this.textSpans[e].span||gt("tspan"),v.textContent=S[e],v.setAttribute("x",0),v.setAttribute("y",N),v.style.display="inherit",z.appendChild(v),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=v,N+=o.finalLineHeight;this.layerElement.appendChild(z)}else{var y=this.textSpans.length,A;for(e=0;e<r;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!T||!B||e===0){if(v=y>e?this.textSpans[e].span:gt(T?"g":"text"),y<=e){if(v.setAttribute("stroke-linecap","butt"),v.setAttribute("stroke-linejoin","round"),v.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=v,T){var k=gt("g");v.appendChild(k),this.textSpans[e].childSpan=k}this.textSpans[e].span=v,this.layerElement.appendChild(v)}v.style.display="inherit"}if(I.reset(),B&&(u[e].n&&(E=-M,N+=o.yOffset,N+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(o,I,u[e].line,E,N),E+=u[e].l||0,E+=M),T){A=this.globalData.fontManager.getCharData(o.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily);var D;if(A.t===1)D=new Cs(A.data,this.globalData,this);else{var V=qv;A.data&&A.data.shapes&&(V=this.buildShapeData(A.data,o.finalSize)),D=new Ht(V,this.globalData,this)}if(this.textSpans[e].glyph){var G=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(G.layerElement),G.destroy()}this.textSpans[e].glyph=D,D._debug=!0,D.prepareFrame(0),D.renderFrame(),this.textSpans[e].childSpan.appendChild(D.layerElement),A.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+o.finalSize/100+","+o.finalSize/100+")")}else B&&v.setAttribute("transform","translate("+I.props[12]+","+I.props[13]+")"),v.textContent=u[e].val,v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}B&&v&&v.setAttribute("d",w)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Cr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},Cr.prototype.getValue=function(){var e,r=this.textSpans.length,o;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)o=this.textSpans[e].glyph,o&&(o.prepareFrame(this.comp.renderedFrame-this.data.st),o._mdf&&(this._mdf=!0))},Cr.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 e,r,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;r=a.length;var d,c,u;for(e=0;e<r;e+=1)a[e].n||(d=o[e],c=this.textSpans[e].span,u=this.textSpans[e].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 Nl(e,r,o){this.initElement(e,r,o)}$([Is],Nl),Nl.prototype.createContent=function(){var e=gt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function oi(e,r,o){this.initFrame(),this.initBaseData(e,r,o),this.initFrame(),this.initTransform(e,r,o),this.initHierarchy()}oi.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},oi.prototype.renderFrame=function(){},oi.prototype.getBaseElement=function(){return null},oi.prototype.destroy=function(){},oi.prototype.sourceRectAtTime=function(){},oi.prototype.hide=function(){},$([ei,Ao,_o,ri],oi);function Jt(){}$([ce],Jt),Jt.prototype.createNull=function(e){return new oi(e,this.globalData,this)},Jt.prototype.createShape=function(e){return new Ht(e,this.globalData,this)},Jt.prototype.createText=function(e){return new Cr(e,this.globalData,this)},Jt.prototype.createImage=function(e){return new Is(e,this.globalData,this)},Jt.prototype.createSolid=function(e){return new Nl(e,this.globalData,this)},Jt.prototype.configAnimation=function(e){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 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.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(e,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var o=gt("clipPath"),a=gt("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var d=Te();o.setAttribute("id",d),o.appendChild(a),this.layerElement.setAttribute("clip-path","url("+x()+"#"+d+")"),r.appendChild(o),this.layers=e.layers,this.elements=rt(e.layers.length)},Jt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,r=this.layers?this.layers.length:0;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Jt.prototype.updateContainerSize=function(){},Jt.prototype.findIndexByInd=function(e){var r=0,o=this.layers.length;for(r=0;r<o;r+=1)if(this.layers[r].ind===e)return r;return-1},Jt.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){r[e]=!0;var o=this.createItem(this.layers[e]);if(r[e]=o,Ia()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(o),o.initExpressions()),this.appendElementInPos(o,e),this.layers[e].tt){var a="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(o);else{var d=r[a],c=d.getMatte(this.layers[e].tt);o.setMatte(c)}}}},Jt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var r=0,o=this.elements.length;r<o;){if(this.elements[r]===e){var a="tp"in e.data?this.findIndexByInd(e.data.tp):r-1,d=this.elements[a],c=d.getMatte(this.layers[r].tt);e.setMatte(c);break}r+=1}}},Jt.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r,o=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=o-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<o;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},Jt.prototype.appendElementInPos=function(e,r){var o=e.getBaseElement();if(o){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(o,d):this.layerElement.appendChild(o)}},Jt.prototype.hide=function(){this.layerElement.style.display="none"},Jt.prototype.show=function(){this.layerElement.style.display="block"};function wr(){}$([ei,Ao,_o,ri,Ss],wr),wr.prototype.initElement=function(e,r,o){this.initFrame(),this.initBaseData(e,r,o),this.initTransform(e,r,o),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},wr.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var o,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),o=a-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&(this.elements[o].prepareFrame(this.renderedFrame-this.layers[o].st),this.elements[o]._mdf&&(this._mdf=!0))}},wr.prototype.renderInnerContent=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},wr.prototype.setElements=function(e){this.elements=e},wr.prototype.getElements=function(){return this.elements},wr.prototype.destroyElements=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy()},wr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Cs(e,r,o){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?rt(this.layers.length):[],this.initElement(e,r,o),this.tm=e.tm?it.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}$([Jt,wr,_s],Cs),Cs.prototype.createComp=function(e){return new Cs(e,this.globalData,this)};function Rl(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=gt("svg");var o="";if(r&&r.title){var a=gt("title"),d=Te();a.setAttribute("id",d),a.textContent=r.title,this.svgElement.appendChild(a),o+=d}if(r&&r.description){var c=gt("desc"),u=Te();c.setAttribute("id",u),c.textContent=r.description,this.svgElement.appendChild(c),o+=" "+u}o&&this.svgElement.setAttribute("aria-labelledby",o);var T=gt("defs");this.svgElement.appendChild(T);var v=gt("g");this.svgElement.appendChild(v),this.layerElement=v,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:T,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return $([Jt],Rl),Rl.prototype.createComp=function(e){return new Cs(e,this.globalData,this)},ov("svg",Rl),Qr.registerModifier("tm",ir),Qr.registerModifier("pb",gs),Qr.registerModifier("rp",fr),Qr.registerModifier("rd",bs),Qr.registerModifier("zz",Es),Qr.registerModifier("op",Ts),Lt})});var ja=globalThis,Ya=ja.ShadowRoot&&(ja.ShadyCSS===void 0||ja.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ol=Symbol(),Rh=new WeakMap,ws=class{constructor(i,t,s){if(this._$cssResult$=!0,s!==Ol)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(Ya&&i===void 0){let s=t!==void 0&&t.length===1;s&&(i=Rh.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),s&&Rh.set(t,i))}return i}toString(){return this.cssText}},Mh=l=>new ws(typeof l=="string"?l:l+"",void 0,Ol),H=(l,...i)=>{let t=l.length===1?l[0]:i.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 ws(t,l,Ol)},Pl=(l,i)=>{if(Ya)l.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let s=document.createElement("style"),n=ja.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=t.cssText,l.appendChild(s)}},Wa=Ya?l=>l:l=>l instanceof CSSStyleSheet?(i=>{let t="";for(let s of i.cssRules)t+=s.cssText;return Mh(t)})(l):l;var{is:rg,defineProperty:ig,getOwnPropertyDescriptor:og,getOwnPropertyNames:sg,getOwnPropertySymbols:ag,getPrototypeOf:ng}=Object,ci=globalThis,Oh=ci.trustedTypes,lg=Oh?Oh.emptyScript:"",Dl=ci.reactiveElementPolyfillSupport,Ls=(l,i)=>l,Ns={toAttribute(l,i){switch(i){case Boolean:l=l?lg:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,i){let t=l;switch(i){case Boolean:t=l!==null;break;case Number:t=l===null?null:Number(l);break;case Object:case Array:try{t=JSON.parse(l)}catch{t=null}}return t}},qa=(l,i)=>!rg(l,i),Ph={attribute:!0,type:String,converter:Ns,reflect:!1,hasChanged:qa},Dh,Fh;(Dh=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Fh=ci.litPropertyMetadata)!=null||(ci.litPropertyMetadata=new WeakMap);var Or=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Ph){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(i,s,t);n!==void 0&&ig(this.prototype,i,n)}}static getPropertyDescriptor(i,t,s){var m;let{get:n,set:h}=(m=og(this.prototype,i))!=null?m:{get(){return this[t]},set(x){this[t]=x}};return{get(){return n==null?void 0:n.call(this)},set(x){let R=n==null?void 0:n.call(this);h.call(this,x),this.requestUpdate(i,R,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:Ph}static _$Ei(){if(this.hasOwnProperty(Ls("elementProperties")))return;let i=ng(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Ls("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ls("properties"))){let t=this.properties,s=[...sg(t),...ag(t)];for(let n of s)this.createProperty(n,t[n])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[s,n]of t)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[t,s]of this.elementProperties){let n=this._$Eu(t,s);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let s=new Set(i.flat(1/0).reverse());for(let n of s)t.unshift(Wa(n))}else i!==void 0&&t.push(Wa(i));return t}static _$Eu(i,t){let s=t.attribute;return s===!1?void 0:typeof s=="string"?s:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,s;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((s=i.hostConnected)==null||s.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let s of t.keys())this.hasOwnProperty(s)&&(i.set(s,this[s]),delete this[s]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Pl(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(s=>{var n;return(n=s.hostConnected)==null?void 0:n.call(s)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var s;return(s=t.hostDisconnected)==null?void 0:s.call(t)})}attributeChangedCallback(i,t,s){this._$AK(i,s)}_$EC(i,t){var h;let s=this.constructor.elementProperties.get(i),n=this.constructor._$Eu(i,s);if(n!==void 0&&s.reflect===!0){let m=(((h=s.converter)==null?void 0:h.toAttribute)!==void 0?s.converter:Ns).toAttribute(t,s.type);this._$Em=i,m==null?this.removeAttribute(n):this.setAttribute(n,m),this._$Em=null}}_$AK(i,t){var h;let s=this.constructor,n=s._$Eh.get(i);if(n!==void 0&&this._$Em!==n){let m=s.getPropertyOptions(n),x=typeof m.converter=="function"?{fromAttribute:m.converter}:((h=m.converter)==null?void 0:h.fromAttribute)!==void 0?m.converter:Ns;this._$Em=n,this[n]=x.fromAttribute(t,m.type),this._$Em=null}}requestUpdate(i,t,s){var n;if(i!==void 0){if(s!=null||(s=this.constructor.getPropertyOptions(i)),!((n=s.hasChanged)!=null?n:qa)(this[i],t))return;this.P(i,t,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,s){var n;this._$AL.has(i)||this._$AL.set(i,t),s.reflect===!0&&this._$Em!==i&&((n=this._$Ej)!=null?n:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!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,x]of this._$Ep)this[m]=x;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[m,x]of h)x.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],x)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(n=this._$EO)==null||n.forEach(h=>{var m;return(m=h.hostUpdate)==null?void 0:m.call(h)}),this.update(t)):this._$EU()}catch(h){throw i=!1,this._$EU(),h}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},$h;Or.elementStyles=[],Or.shadowRootOptions={mode:"open"},Or[Ls("elementProperties")]=new Map,Or[Ls("finalized")]=new Map,Dl==null||Dl({ReactiveElement:Or}),(($h=ci.reactiveElementVersions)!=null?$h:ci.reactiveElementVersions=[]).push("2.0.4");var Ms=globalThis,Ka=Ms.trustedTypes,zh=Ka?Ka.createPolicy("lit-html",{createHTML:l=>l}):void 0,zl="$lit$",Pr=`lit$${Math.random().toFixed(9).slice(2)}$`,Vl="?"+Pr,cg=`<${Vl}>`,Oi=document,Os=()=>Oi.createComment(""),Ps=l=>l===null||typeof l!="object"&&typeof l!="function",Bl=Array.isArray,Yh=l=>Bl(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",Fl=`[
|
3
|
-
\f\r]`,
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
1
|
+
"use strict";(()=>{var ig=Object.create;var Fl=Object.defineProperty;var Dh=Object.getOwnPropertyDescriptor;var og=Object.getOwnPropertyNames;var sg=Object.getPrototypeOf,ag=Object.prototype.hasOwnProperty;var ng=(l,i)=>()=>(i||l((i={exports:{}}).exports,i),i.exports);var lg=(l,i,t,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let n of og(i))!ag.call(l,n)&&n!==t&&Fl(l,n,{get:()=>i[n],enumerable:!(s=Dh(i,n))||s.enumerable});return l};var cg=(l,i,t)=>(t=l!=null?ig(sg(l)):{},lg(i||!l||!l.__esModule?Fl(t,"default",{value:l,enumerable:!0}):t,l));var m=(l,i,t,s)=>{for(var n=s>1?void 0:s?Dh(i,t):i,h=l.length-1,u;h>=0;h--)(u=l[h])&&(n=(s?u(i,t,n):u(n))||n);return s&&n&&Fl(i,t,n),n};var kp=ng((Ys,En)=>{typeof navigator<"u"&&function(l,i){typeof Ys=="object"&&typeof En<"u"?En.exports=i():typeof define=="function"&&define.amd?define(i):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=i())}(Ys,function(){"use strict";var l="http://www.w3.org/2000/svg",i="",t=!1,s=-999999,n=function(r){t=!!r},h=function(){return t},u=function(r){i=r},x=function(){return i};function R(e){return document.createElement(e)}function $(e,r){var o,a=e.length,d;for(o=0;o<a;o+=1){d=e[o].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function j(e,r){return Object.getOwnPropertyDescriptor(e,r)}function K(e){function r(){}return r.prototype=e,r}var at=function(){function e(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(o){this.audios.push(o)},pause:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].pause()},resume:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].resume()},setRate:function(o){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].setRate(o)},createAudio:function(o){return this.audioFactory?this.audioFactory(o):window.Howl?new window.Howl({src:[o]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(o){this.audioFactory=o},setVolume:function(o){this._volume=o,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),J=function(){function e(o,a){var d=0,c=[],f;switch(o){case"int16":case"uint8c":f=1;break;default:f=1.1;break}for(d=0;d<a;d+=1)c.push(f);return c}function r(o,a){return o==="float32"?new Float32Array(a):o==="int16"?new Int16Array(a):o==="uint8c"?new Uint8ClampedArray(a):e(o,a)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:e}();function rt(e){return Array.apply(null,{length:e})}function ht(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ht=function(o){return typeof o}:ht=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ht(e)}var Tt=!0,yt=null,xt=null,kt="",Gt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ot=!1,$t=Math.pow,Te=Math.sqrt,re=Math.floor,er=Math.max,Me=Math.min,ze={};(function(){var e=["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,o=e.length;for(r=0;r<o;r+=1)ze[e[r]]=Math[e[r]]})();function rr(){return{}}ze.random=Math.random,ze.abs=function(e){var r=ht(e);if(r==="object"&&e.length){var o=rt(e.length),a,d=e.length;for(a=0;a<d;a+=1)o[a]=Math.abs(e[a]);return o}return Math.abs(e)};var ir=150,St=Math.PI/180,pe=.5519;function Ve(e){Ot=!!e}function or(e){return Ot?Math.round(e):e}function wr(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function Be(e,r,o,a){this.type=e,this.currentTime=r,this.totalTime=o,this.direction=a<0?-1:1}function wa(e,r){this.type=e,this.direction=r<0?-1:1}function Gd(e,r,o,a){this.type=e,this.currentLoop=o,this.totalLoops=r,this.direction=a<0?-1:1}function Hd(e,r,o){this.type=e,this.firstFrame=r,this.totalFrames=o}function Yd(e,r){this.type=e,this.target=r}function iv(e,r){this.type="renderFrameError",this.nativeError=e,this.currentTime=r}function ov(e){this.type="configError",this.nativeError=e}function qE(e,r){this.type=e,this.nativeError=r}var xe=function(){var e=0;return function(){return e+=1,kt+"__lottie_element_"+e}}();function _l(e,r,o){var a,d,c,f,T,v,I,N;switch(f=Math.floor(e*6),T=e*6-f,v=o*(1-r),I=o*(1-T*r),N=o*(1-(1-T)*r),f%6){case 0:a=o,d=N,c=v;break;case 1:a=I,d=o,c=v;break;case 2:a=v,d=o,c=N;break;case 3:a=v,d=I,c=o;break;case 4:a=N,d=v,c=o;break;case 5:a=o,d=v,c=I;break;default:break}return[a,d,c]}function Sl(e,r,o){var a=Math.max(e,r,o),d=Math.min(e,r,o),c=a-d,f,T=a===0?0:c/a,v=a/255;switch(a){case d:f=0;break;case e:f=r-o+c*(r<o?6:0),f/=6*c;break;case r:f=o-e+c*2,f/=6*c;break;case o:f=e-r+c*4,f/=6*c;break;default:break}return[f,T,v]}function jd(e,r){var o=Sl(e[0]*255,e[1]*255,e[2]*255);return o[1]+=r,o[1]>1?o[1]=1:o[1]<=0&&(o[1]=0),_l(o[0],o[1],o[2])}function Wd(e,r){var o=Sl(e[0]*255,e[1]*255,e[2]*255);return o[2]+=r,o[2]>1?o[2]=1:o[2]<0&&(o[2]=0),_l(o[0],o[1],o[2])}function qd(e,r){var o=Sl(e[0]*255,e[1]*255,e[2]*255);return o[0]+=r/360,o[0]>1?o[0]-=1:o[0]<0&&(o[0]+=1),_l(o[0],o[1],o[2])}var KE=function(){var e=[],r,o;for(r=0;r<256;r+=1)o=r.toString(16),e[r]=o.length===1?"0"+o:o;return function(a,d,c){return a<0&&(a=0),d<0&&(d=0),c<0&&(c=0),"#"+e[a]+e[d]+e[c]}}(),sv=function(r){Tt=!!r},av=function(){return Tt},nv=function(r){yt=r},Na=function(){return yt},XE=function(r){xt=r},Kd=function(){return xt},La=function(r){ir=r},fs=function(){return ir},lv=function(r){kt=r},ZE=function(){return kt};function gt(e){return document.createElementNS(l,e)}function Ra(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ra=function(o){return typeof o}:Ra=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ra(e)}var vs=function(){var e=1,r=[],o,a,d={onmessage:function(){},postMessage:function(L){o({data:L})}},c={postMessage:function(L){d.onmessage({data:L})}};function f(E){if(window.Worker&&window.Blob&&h()){var L=new Blob(["var _workerSelf = self; self.onmessage = ",E.toString()],{type:"text/javascript"}),P=URL.createObjectURL(L);return new Worker(P)}return o=E,d}function T(){a||(a=f(function(L){function P(){function z(X,_){var O,p,b=X.length,U,F,st,mt;for(p=0;p<b;p+=1)if(O=X[p],"ks"in O&&!O.completed){if(O.completed=!0,O.hasMask){var ft=O.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,st=0;st<mt;st+=1)ft[U].pt.k[st].s&&k(ft[U].pt.k[st].s[0]),ft[U].pt.k[st].e&&k(ft[U].pt.k[st].e[0])}O.ty===0?(O.layers=y(O.refId,_),z(O.layers,_)):O.ty===4?A(O.shapes):O.ty===5&&bt(O)}}function C(X,_){if(X){var O=0,p=X.length;for(O=0;O<p;O+=1)X[O].t===1&&(X[O].data.layers=y(X[O].data.refId,_),z(X[O].data.layers,_))}}function S(X,_){for(var O=0,p=_.length;O<p;){if(_[O].id===X)return _[O];O+=1}return null}function y(X,_){var O=S(X,_);return O?O.layers.__used?JSON.parse(JSON.stringify(O.layers)):(O.layers.__used=!0,O.layers):null}function A(X){var _,O=X.length,p,b;for(_=O-1;_>=0;_-=1)if(X[_].ty==="sh")if(X[_].ks.k.i)k(X[_].ks.k);else for(b=X[_].ks.k.length,p=0;p<b;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 _,O=X.i.length;for(_=0;_<O;_+=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 O=_?_.split("."):[100,100,100];return X[0]>O[0]?!0:O[0]>X[0]?!1:X[1]>O[1]?!0:O[1]>X[1]?!1:X[2]>O[2]?!0:O[2]>X[2]?!1:null}var V=function(){var X=[4,4,14];function _(p){var b=p.t.d;p.t.d={k:[{s:b,t:0}]}}function O(p){var b,U=p.length;for(b=0;b<U;b+=1)p[b].ty===5&&_(p[b])}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}(),G=function(){var X=[4,7,99];return function(_){if(_.chars&&!D(X,_.v)){var O,p=_.chars.length;for(O=0;O<p;O+=1){var b=_.chars[O];b.data&&b.data.shapes&&(A(b.data.shapes),b.data.ip=0,b.data.op=99999,b.data.st=0,b.data.sr=1,b.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[O].t||(b.data.shapes.push({ty:"no"}),b.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 b=p.t.p;typeof b.a=="number"&&(b.a={a:0,k:b.a}),typeof b.p=="number"&&(b.p={a:0,k:b.p}),typeof b.r=="number"&&(b.r={a:0,k:b.r})}function O(p){var b,U=p.length;for(b=0;b<U;b+=1)p[b].ty===5&&_(p[b])}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}(),ut=function(){var X=[4,1,9];function _(p){var b,U=p.length,F,st;for(b=0;b<U;b+=1)if(p[b].ty==="gr")_(p[b].it);else if(p[b].ty==="fl"||p[b].ty==="st")if(p[b].c.k&&p[b].c.k[0].i)for(st=p[b].c.k.length,F=0;F<st;F+=1)p[b].c.k[F].s&&(p[b].c.k[F].s[0]/=255,p[b].c.k[F].s[1]/=255,p[b].c.k[F].s[2]/=255,p[b].c.k[F].s[3]/=255),p[b].c.k[F].e&&(p[b].c.k[F].e[0]/=255,p[b].c.k[F].e[1]/=255,p[b].c.k[F].e[2]/=255,p[b].c.k[F].e[3]/=255);else p[b].c.k[0]/=255,p[b].c.k[1]/=255,p[b].c.k[2]/=255,p[b].c.k[3]/=255}function O(p){var b,U=p.length;for(b=0;b<U;b+=1)p[b].ty===4&&_(p[b].shapes)}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}(),dt=function(){var X=[4,4,18];function _(p){var b,U=p.length,F,st;for(b=U-1;b>=0;b-=1)if(p[b].ty==="sh")if(p[b].ks.k.i)p[b].ks.k.c=p[b].closed;else for(st=p[b].ks.k.length,F=0;F<st;F+=1)p[b].ks.k[F].s&&(p[b].ks.k[F].s[0].c=p[b].closed),p[b].ks.k[F].e&&(p[b].ks.k[F].e[0].c=p[b].closed);else p[b].ty==="gr"&&_(p[b].it)}function O(p){var b,U,F=p.length,st,mt,ft,Ct;for(U=0;U<F;U+=1){if(b=p[U],b.hasMask){var wt=b.masksProperties;for(mt=wt.length,st=0;st<mt;st+=1)if(wt[st].pt.k.i)wt[st].pt.k.c=wt[st].cl;else for(Ct=wt[st].pt.k.length,ft=0;ft<Ct;ft+=1)wt[st].pt.k[ft].s&&(wt[st].pt.k[ft].s[0].c=wt[st].cl),wt[st].pt.k[ft].e&&(wt[st].pt.k[ft].e[0].c=wt[st].cl)}b.ty===4&&_(b.shapes)}}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}();function tt(X){X.__complete||(ut(X),V(X),G(X),Z(X),dt(X),z(X.layers,X.assets),C(X.chars,X.assets),X.__complete=!0)}function bt(X){X.t.a.length===0&&"m"in X.t.p}var lt={};return lt.completeData=tt,lt.checkColors=ut,lt.checkChars=G,lt.checkPathProperties=Z,lt.checkShapes=dt,lt.completeLayers=z,lt}if(c.dataManager||(c.dataManager=P()),c.assetLoader||(c.assetLoader=function(){function z(S){var y=S.getResponseHeader("content-type");return y&&S.responseType==="json"&&y.indexOf("json")!==-1||S.response&&Ra(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,y,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(""),y+"/"+S,!0)}V.send()}return{load:C}}()),L.data.type==="loadAnimation")c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})});else if(L.data.type==="complete"){var M=L.data.animation;c.dataManager.completeData(M),c.postMessage({id:L.data.id,payload:M,status:"success"})}else L.data.type==="loadData"&&c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})})}),a.onmessage=function(E){var L=E.data,P=L.id,M=r[P];r[P]=null,L.status==="success"?M.onComplete(L.payload):M.onError&&M.onError()})}function v(E,L){e+=1;var P="processId_"+e;return r[P]={onComplete:E,onError:L},P}function I(E,L,P){T();var M=v(L,P);a.postMessage({type:"loadAnimation",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function N(E,L,P){T();var M=v(L,P);a.postMessage({type:"loadData",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function B(E,L,P){T();var M=v(L,P);a.postMessage({type:"complete",animation:E,id:M})}return{loadAnimation:I,loadData:N,completeAnimation:B}}(),cv=function(){var e=function(){var C=R("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 o(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(C,S,y){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=y,A+=C.u?C.u:"",A+=C.p;return A}function d(C){var S=0,y=setInterval((function(){var A=C.getBBox();(A.width||S>500)&&(this._imageLoaded(),clearInterval(y)),S+=1}).bind(this),50)}function c(C){var S=a(C,this.assetsPath,this.path),y=gt("image");Gt?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",S),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var A={img:y,assetData:C};return A}function f(C){var S=a(C,this.assetsPath,this.path),y=R("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),y.src=S;var A={img:y,assetData:C};return A}function T(C){var S={assetData:C},y=a(C,this.assetsPath,this.path);return vs.loadData(y,(function(A){S.img=A,this._footageLoaded()}).bind(this),(function(){S.img={},this._footageLoaded()}).bind(this)),S}function v(C,S){this.imagesLoadedCb=S;var y,A=C.length;for(y=0;y<A;y+=1)C[y].layers||(!C[y].t||C[y].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(C[y]))):C[y].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(C[y]))))}function I(C){this.path=C||""}function N(C){this.assetsPath=C||""}function B(C){for(var S=0,y=this.images.length;S<y;){if(this.images[S].assetData===C)return this.images[S].img;S+=1}return null}function E(){this.imagesLoadedCb=null,this.images.length=0}function L(){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=o.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=T.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:v,setAssetsPath:N,setPath:I,loadedImages:L,loadedFootages:P,destroy:E,getAsset:B,createImgData:f,createImageData:c,imageLoaded:r,footageLoaded:o,setCacheType:M},z}();function Xd(){}Xd.prototype={triggerEvent:function(r,o){if(this._cbs[r])for(var a=this._cbs[r],d=0;d<a.length;d+=1)a[d](o)},addEventListener:function(r,o){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(o),(function(){this.removeEventListener(r,o)}).bind(this)},removeEventListener:function(r,o){if(!o)this._cbs[r]=null;else if(this._cbs[r]){for(var a=0,d=this._cbs[r].length;a<d;)this._cbs[r][a]===o&&(this._cbs[r].splice(a,1),a-=1,d-=1),a+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var dv=function(){function e(r){for(var o=r.split(`\r
|
2
|
+
`),a={},d,c=0,f=0;f<o.length;f+=1)d=o[f].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 o=[],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=e(r[a].cm)}catch{c.payload={name:r[a].cm}}}o.push(c)}return o}}(),hv=function(){function e(r){this.compositions.push(r)}return function(){function r(o){for(var a=0,d=this.compositions.length;a<d;){if(this.compositions[a].data&&this.compositions[a].data.nm===o)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=e,r}}(),gs={},pv=function(r,o){gs[r]=o};function mv(e){return gs[e]}function uv(){if(gs.canvas)return"canvas";for(var e in gs)if(gs[e])return e;return""}function bs(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bs=function(o){return typeof o}:bs=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},bs(e)}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=xe(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=av(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=hv(),this.imagePreloader=new cv,this.audioController=at(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Be("drawnFrame",0,0,0),this.expressionsPlugin=Na()};$([Xd],pt),pt.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var r="svg";e.animType?r=e.animType:e.renderer&&(r=e.renderer);var o=mv(r);this.renderer=new o(this,e.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),vs.loadAnimation(e.path,this.configAnimation,this.onSetupError))},pt.prototype.onSetupError=function(){this.trigger("data_failed")},pt.prototype.setupAnimation=function(e){vs.completeAnimation(e,this.configAnimation)},pt.prototype.setData=function(e,r){r&&bs(r)!=="object"&&(r=JSON.parse(r));var o={wrapper:e,animationData:r},a=e.attributes;o.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:"",o.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:uv()||"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"?o.loop=!1:d==="true"?o.loop=!0:d!==""&&(o.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;o.autoplay=c!=="false",o.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 f=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:"";f==="false"&&(o.prerender=!1),o.path?this.setParams(o):this.trigger("destroy")},pt.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var r=this.animationData.layers,o,a=r.length,d=e.layers,c,f=d.length;for(c=0;c<f;c+=1)for(o=0;o<a;){if(r[o].id===d[c].id){r[o]=d[c];break}o+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(a=e.assets.length,o=0;o<a;o+=1)this.animationData.assets.push(e.assets[o]);this.animationData.__complete=!1,vs.completeAnimation(this.animationData,this.onSegmentComplete)},pt.prototype.onSegmentComplete=function(e){this.animationData=e;var r=Na();r&&r.initExpressions(this),this.loadNextSegment()},pt.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=e.shift();this.timeCompleted=r.time*this.frameRate;var o=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,vs.loadData(o,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},pt.prototype.loadSegments=function(){var e=this.animationData.segments;e||(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(e){if(this.renderer)try{this.animationData=e,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(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=dv(e.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 e=Na();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},pt.prototype.resize=function(e,r){var o=typeof e=="number"?e:void 0,a=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(o,a)},pt.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},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(e){this.triggerRenderFrameError(e)}},pt.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},pt.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},pt.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},pt.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},pt.prototype.getMarkerData=function(e){for(var r,o=0;o<this.markers.length;o+=1)if(r=this.markers[o],r.payload&&r.payload.name===e)return r;return null},pt.prototype.goToAndStop=function(e,r,o){if(!(o&&this.name!==o)){var a=Number(e);if(isNaN(a)){var d=this.getMarkerData(e);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},pt.prototype.goToAndPlay=function(e,r,o){if(!(o&&this.name!==o)){var a=Number(e);if(isNaN(a)){var d=this.getMarkerData(e);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(a,r,o);this.play()}},pt.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+e*this.frameModifier,o=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(o=!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):(o=!0,r=0)):this.setCurrentRawFrameValue(r),o&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},pt.prototype.adjustSegment=function(e,r){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},pt.prototype.setSegment=function(e,r){var o=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?o=e:this.currentRawFrame+this.firstFrame>r&&(o=r-e)),this.firstFrame=e,this.totalFrames=r-e,this.timeCompleted=this.totalFrames,o!==-1&&this.goToAndStop(o,!0)},pt.prototype.playSegments=function(e,r){if(r&&(this.segments.length=0),bs(e[0])==="object"){var o,a=e.length;for(o=0;o<a;o+=1)this.segments.push(e[o])}else this.segments.push(e);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},pt.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},pt.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},pt.prototype.destroy=function(e){e&&this.name!==e||!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(e){this.currentRawFrame=e,this.gotoFrame()},pt.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},pt.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},pt.prototype.setLoop=function(e){this.loop=e},pt.prototype.setVolume=function(e,r){r&&this.name!==r||this.audioController.setVolume(e)},pt.prototype.getVolume=function(){return this.audioController.getVolume()},pt.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},pt.prototype.unmute=function(e){e&&this.name!==e||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(e){var r="";if(e.e)r=e.p;else if(this.assetsPath){var o=e.p;o.indexOf("images/")!==-1&&(o=o.split("/")[1]),r=this.assetsPath+o}else r=this.path,r+=e.u?e.u:"",r+=e.p;return r},pt.prototype.getAssetData=function(e){for(var r=0,o=this.assets.length;r<o;){if(e===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(e){return e?this.totalFrames:this.totalFrames/this.frameRate},pt.prototype.updateDocumentData=function(e,r,o){try{var a=this.renderer.getElementByPath(e);a.updateDocumentData(r,o)}catch{}},pt.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new Be(e,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(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new Gd(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new wa(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new Hd(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Yd(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Be(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Gd(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new wa(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Hd(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Yd(e,this))},pt.prototype.triggerRenderFrameError=function(e){var r=new iv(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},pt.prototype.triggerConfigError=function(e){var r=new ov(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var qt=function(){var e={},r=[],o=0,a=0,d=0,c=!0,f=!1;function T(_){for(var O=0,p=_.target;O<a;)r[O].animation===p&&(r.splice(O,1),O-=1,a-=1,p.isPaused||B()),O+=1}function v(_,O){if(!_)return null;for(var p=0;p<a;){if(r[p].elem===_&&r[p].elem!==null)return r[p].animation;p+=1}var b=new pt;return E(b,_),b.setData(_,O),b}function I(){var _,O=r.length,p=[];for(_=0;_<O;_+=1)p.push(r[_].animation);return p}function N(){d+=1,ut()}function B(){d-=1}function E(_,O){_.addEventListener("destroy",T),_.addEventListener("_active",N),_.addEventListener("_idle",B),r.push({elem:O,animation:_}),a+=1}function L(_){var O=new pt;return E(O,null),O.setParams(_),O}function P(_,O){var p;for(p=0;p<a;p+=1)r[p].animation.setSpeed(_,O)}function M(_,O){var p;for(p=0;p<a;p+=1)r[p].animation.setDirection(_,O)}function z(_){var O;for(O=0;O<a;O+=1)r[O].animation.play(_)}function C(_){var O=_-o,p;for(p=0;p<a;p+=1)r[p].animation.advanceTime(O);o=_,d&&!f?window.requestAnimationFrame(C):c=!0}function S(_){o=_,window.requestAnimationFrame(C)}function y(_){var O;for(O=0;O<a;O+=1)r[O].animation.pause(_)}function A(_,O,p){var b;for(b=0;b<a;b+=1)r[b].animation.goToAndStop(_,O,p)}function k(_){var O;for(O=0;O<a;O+=1)r[O].animation.stop(_)}function D(_){var O;for(O=0;O<a;O+=1)r[O].animation.togglePause(_)}function V(_){var O;for(O=a-1;O>=0;O-=1)r[O].animation.destroy(_)}function G(_,O,p){var b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,F=b.length;for(U=0;U<F;U+=1)p&&b[U].setAttribute("data-bm-type",p),v(b[U],_);if(O&&F===0){p||(p="svg");var st=document.getElementsByTagName("body")[0];st.innerText="";var mt=R("div");mt.style.width="100%",mt.style.height="100%",mt.setAttribute("data-bm-type",p),st.appendChild(mt),v(mt,_)}}function Z(){var _;for(_=0;_<a;_+=1)r[_].animation.resize()}function ut(){!f&&d&&c&&(window.requestAnimationFrame(S),c=!1)}function dt(){f=!0}function tt(){f=!1,ut()}function bt(_,O){var p;for(p=0;p<a;p+=1)r[p].animation.setVolume(_,O)}function lt(_){var O;for(O=0;O<a;O+=1)r[O].animation.mute(_)}function X(_){var O;for(O=0;O<a;O+=1)r[O].animation.unmute(_)}return e.registerAnimation=v,e.loadAnimation=L,e.setSpeed=P,e.setDirection=M,e.play=z,e.pause=y,e.stop=k,e.togglePause=D,e.searchAnimations=G,e.resize=Z,e.goToAndStop=A,e.destroy=V,e.freeze=dt,e.unfreeze=tt,e.setVolume=bt,e.mute=lt,e.unmute=X,e.getRegisteredAnimations=I,e}(),ys=function(){var e={};e.getBezierEasing=o;var r={};function o(S,y,A,k,D){var V=D||("bez_"+S+"_"+y+"_"+A+"_"+k).replace(/\./g,"p");if(r[V])return r[V];var G=new C([S,y,A,k]);return r[V]=G,G}var a=4,d=.001,c=1e-7,f=10,T=11,v=1/(T-1),I=typeof Float32Array=="function";function N(S,y){return 1-3*y+3*S}function B(S,y){return 3*y-6*S}function E(S){return 3*S}function L(S,y,A){return((N(y,A)*S+B(y,A))*S+E(y))*S}function P(S,y,A){return 3*N(y,A)*S*S+2*B(y,A)*S+E(y)}function M(S,y,A,k,D){var V,G,Z=0;do G=y+(A-y)/2,V=L(G,k,D)-S,V>0?A=G:y=G;while(Math.abs(V)>c&&++Z<f);return G}function z(S,y,A,k){for(var D=0;D<a;++D){var V=P(y,A,k);if(V===0)return y;var G=L(y,A,k)-S;y-=G/V}return y}function C(S){this._p=S,this._mSampleValues=I?new Float32Array(T):new Array(T),this._precomputed=!1,this.get=this.get.bind(this)}return C.prototype={get:function(y){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?y:y===0?0:y===1?1:L(this._getTForX(y),k,V)},_precompute:function(){var y=this._p[0],A=this._p[1],k=this._p[2],D=this._p[3];this._precomputed=!0,(y!==A||k!==D)&&this._calcSampleValues()},_calcSampleValues:function(){for(var y=this._p[0],A=this._p[2],k=0;k<T;++k)this._mSampleValues[k]=L(k*v,y,A)},_getTForX:function(y){for(var A=this._p[0],k=this._p[2],D=this._mSampleValues,V=0,G=1,Z=T-1;G!==Z&&D[G]<=y;++G)V+=v;--G;var ut=(y-D[G])/(D[G+1]-D[G]),dt=V+ut*v,tt=P(dt,A,k);return tt>=d?z(y,dt,A,k):tt===0?dt:M(y,V,V+v,A,k)}},e}(),Zd=function(){function e(r){return r.concat(rt(r.length))}return{double:e}}(),Ma=function(){return function(e,r,o){var a=0,d=e,c=rt(d),f={newElement:T,release:v};function T(){var I;return a?(a-=1,I=c[a]):I=r(),I}function v(I){a===d&&(c=Zd.double(c),d*=2),o&&o(I),c[a]=I,a+=1}return f}}(),Jd=function(){function e(){return{addedLength:0,percents:J("float32",fs()),lengths:J("float32",fs())}}return Ma(8,e)}(),Qd=function(){function e(){return{lengths:[],totalLength:0}}function r(o){var a,d=o.lengths.length;for(a=0;a<d;a+=1)Jd.release(o.lengths[a]);o.lengths.length=0}return Ma(8,e,r)}();function fv(){var e=Math;function r(E,L,P,M,z,C){var S=E*M+L*z+P*C-z*M-C*E-P*L;return S>-.001&&S<.001}function o(E,L,P,M,z,C,S,y,A){if(P===0&&C===0&&A===0)return r(E,L,M,z,S,y);var k=e.sqrt(e.pow(M-E,2)+e.pow(z-L,2)+e.pow(C-P,2)),D=e.sqrt(e.pow(S-E,2)+e.pow(y-L,2)+e.pow(A-P,2)),V=e.sqrt(e.pow(S-M,2)+e.pow(y-z,2)+e.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(E,L,P,M){var z=fs(),C,S,y,A,k,D=0,V,G=[],Z=[],ut=Jd.newElement();for(y=P.length,C=0;C<z;C+=1){for(k=C/(z-1),V=0,S=0;S<y;S+=1)A=$t(1-k,3)*E[S]+3*$t(1-k,2)*k*P[S]+3*(1-k)*$t(k,2)*M[S]+$t(k,3)*L[S],G[S]=A,Z[S]!==null&&(V+=$t(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(E){var L=Qd.newElement(),P=E.c,M=E.v,z=E.o,C=E.i,S,y=E._length,A=L.lengths,k=0;for(S=0;S<y-1;S+=1)A[S]=a(M[S],M[S+1],z[S],C[S+1]),k+=A[S].addedLength;return P&&y&&(A[S]=a(M[S],M[0],z[S],C[0]),k+=A[S].addedLength),L.totalLength=k,L}function c(E){this.segmentLength=0,this.points=new Array(E)}function f(E,L){this.partialLength=E,this.point=L}var T=function(){var E={};return function(L,P,M,z){var C=(L[0]+"_"+L[1]+"_"+P[0]+"_"+P[1]+"_"+M[0]+"_"+M[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!E[C]){var S=fs(),y,A,k,D,V,G=0,Z,ut,dt=null;L.length===2&&(L[0]!==P[0]||L[1]!==P[1])&&r(L[0],L[1],P[0],P[1],L[0]+M[0],L[1]+M[1])&&r(L[0],L[1],P[0],P[1],P[0]+z[0],P[1]+z[1])&&(S=2);var tt=new c(S);for(k=M.length,y=0;y<S;y+=1){for(ut=rt(k),V=y/(S-1),Z=0,A=0;A<k;A+=1)D=$t(1-V,3)*L[A]+3*$t(1-V,2)*V*(L[A]+M[A])+3*(1-V)*$t(V,2)*(P[A]+z[A])+$t(V,3)*P[A],ut[A]=D,dt!==null&&(Z+=$t(ut[A]-dt[A],2));Z=Te(Z),G+=Z,tt.points[y]=new f(Z,ut),dt=ut}tt.segmentLength=G,E[C]=tt}return E[C]}}();function v(E,L){var P=L.percents,M=L.lengths,z=P.length,C=re((z-1)*E),S=E*L.addedLength,y=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?(y=(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])*y}function I(E,L,P,M,z,C){var S=v(z,C),y=1-S,A=e.round((y*y*y*E[0]+(S*y*y+y*S*y+y*y*S)*P[0]+(S*S*y+y*S*S+S*y*S)*M[0]+S*S*S*L[0])*1e3)/1e3,k=e.round((y*y*y*E[1]+(S*y*y+y*S*y+y*y*S)*P[1]+(S*S*y+y*S*S+S*y*S)*M[1]+S*S*S*L[1])*1e3)/1e3;return[A,k]}var N=J("float32",8);function B(E,L,P,M,z,C,S){z<0?z=0:z>1&&(z=1);var y=v(z,S);C=C>1?1:C;var A=v(C,S),k,D=E.length,V=1-y,G=1-A,Z=V*V*V,ut=y*V*V*3,dt=y*y*V*3,tt=y*y*y,bt=V*V*G,lt=y*V*G+V*y*G+V*V*A,X=y*y*G+V*y*A+y*V*A,_=y*y*A,O=V*G*G,p=y*G*G+V*A*G+V*G*A,b=y*A*G+V*A*A+y*G*A,U=y*A*A,F=G*G*G,st=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)N[k*4]=e.round((Z*E[k]+ut*P[k]+dt*M[k]+tt*L[k])*1e3)/1e3,N[k*4+1]=e.round((bt*E[k]+lt*P[k]+X*M[k]+_*L[k])*1e3)/1e3,N[k*4+2]=e.round((O*E[k]+p*P[k]+b*M[k]+U*L[k])*1e3)/1e3,N[k*4+3]=e.round((F*E[k]+st*P[k]+mt*M[k]+ft*L[k])*1e3)/1e3;return N}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:T,pointOnLine2D:r,pointOnLine3D:o}}var vr=fv(),wi=s,th=Math.abs;function eh(e,r){var o=this.offsetTime,a;this.propType==="multidimensional"&&(a=J("float32",this.pv.length));for(var d=r.lastIndex,c=d,f=this.keyframes.length-1,T=!0,v,I,N;T;){if(v=this.keyframes[c],I=this.keyframes[c+1],c===f-1&&e>=I.t-o){v.h&&(v=I),d=0;break}if(I.t-o>e){d=c;break}c<f-1?c+=1:(d=0,T=!1)}N=this.keyframesMetadata[c]||{};var B,E,L,P,M,z,C=I.t-o,S=v.t-o,y;if(v.to){N.bezierData||(N.bezierData=vr.buildBezierData(v.s,I.s||v.e,v.to,v.ti));var A=N.bezierData;if(e>=C||e<S){var k=e>=C?A.points.length-1:0;for(E=A.points[k].point.length,B=0;B<E;B+=1)a[B]=A.points[k].point[B]}else{N.__fnct?z=N.__fnct:(z=ys.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y,v.n).get,N.__fnct=z),L=z((e-S)/(C-S));var D=A.segmentLength*L,V,G=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(M=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastPoint:0,T=!0,P=A.points.length;T;){if(G+=A.points[M].partialLength,D===0||L===0||M===A.points.length-1){for(E=A.points[M].point.length,B=0;B<E;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,E=A.points[M].point.length,B=0;B<E;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:T=!1}r._lastPoint=M,r._lastAddedLength=G-A.points[M].partialLength,r._lastKeyframeIndex=c}}else{var Z,ut,dt,tt,bt;if(f=v.s.length,y=I.s||v.e,this.sh&&v.h!==1)if(e>=C)a[0]=y[0],a[1]=y[1],a[2]=y[2];else if(e<=S)a[0]=v.s[0],a[1]=v.s[1],a[2]=v.s[2];else{var lt=rh(v.s),X=rh(y),_=(e-S)/(C-S);gv(a,vv(lt,X,_))}else for(c=0;c<f;c+=1)v.h!==1&&(e>=C?L=1:e<S?L=0:(v.o.x.constructor===Array?(N.__fnct||(N.__fnct=[]),N.__fnct[c]?z=N.__fnct[c]:(Z=v.o.x[c]===void 0?v.o.x[0]:v.o.x[c],ut=v.o.y[c]===void 0?v.o.y[0]:v.o.y[c],dt=v.i.x[c]===void 0?v.i.x[0]:v.i.x[c],tt=v.i.y[c]===void 0?v.i.y[0]:v.i.y[c],z=ys.getBezierEasing(Z,ut,dt,tt).get,N.__fnct[c]=z)):N.__fnct?z=N.__fnct:(Z=v.o.x,ut=v.o.y,dt=v.i.x,tt=v.i.y,z=ys.getBezierEasing(Z,ut,dt,tt).get,v.keyframeMetadata=z),L=z((e-S)/(C-S)))),y=I.s||v.e,bt=v.h===1?v.s[c]:v.s[c]+(y[c]-v.s[c])*L,this.propType==="multidimensional"?a[c]=bt:a=bt}return r.lastIndex=d,a}function vv(e,r,o){var a=[],d=e[0],c=e[1],f=e[2],T=e[3],v=r[0],I=r[1],N=r[2],B=r[3],E,L,P,M,z;return L=d*v+c*I+f*N+T*B,L<0&&(L=-L,v=-v,I=-I,N=-N,B=-B),1-L>1e-6?(E=Math.acos(L),P=Math.sin(E),M=Math.sin((1-o)*E)/P,z=Math.sin(o*E)/P):(M=1-o,z=o),a[0]=M*d+z*v,a[1]=M*c+z*I,a[2]=M*f+z*N,a[3]=M*T+z*B,a}function gv(e,r){var o=r[0],a=r[1],d=r[2],c=r[3],f=Math.atan2(2*a*c-2*o*d,1-2*a*a-2*d*d),T=Math.asin(2*o*a+2*d*c),v=Math.atan2(2*o*c-2*a*d,1-2*o*o-2*d*d);e[0]=f/St,e[1]=T/St,e[2]=v/St}function rh(e){var r=e[0]*St,o=e[1]*St,a=e[2]*St,d=Math.cos(r/2),c=Math.cos(o/2),f=Math.cos(a/2),T=Math.sin(r/2),v=Math.sin(o/2),I=Math.sin(a/2),N=d*c*f-T*v*I,B=T*v*f+d*c*I,E=T*c*f+d*v*I,L=d*v*f-T*c*I;return[B,E,L,N]}function ih(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,o=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==wi&&(this._caching.lastFrame>=o&&e>=o||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(e,this._caching);this.pv=a}return this._caching.lastFrame=e,this.pv}function Oa(e){var r;if(this.propType==="unidimensional")r=e*this.mult,th(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var o=0,a=this.v.length;o<a;)r=e[o]*this.mult,th(this.v[o]-r)>1e-5&&(this.v[o]=r,this._mdf=!0),o+=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 e,r=this.effectsSequence.length,o=this.kf?this.pv:this.data.k;for(e=0;e<r;e+=1)o=this.effectsSequence[e](o);this.setVValue(o),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Da(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function bv(e,r,o,a){this.propType="unidimensional",this.mult=o||1,this.data=r,this.v=o?r.k*o:r.k,this.pv=r.k,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Pa,this.setVValue=Oa,this.addEffect=Da}function yv(e,r,o,a){this.propType="multidimensional",this.mult=o||1,this.data=r,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.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=Oa,this.addEffect=Da}function Ev(e,r,o,a){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:wi,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=o||1,this.elem=e,this.container=a,this.comp=e.comp,this.v=wi,this.pv=wi,this._isFirstFrame=!0,this.getValue=Pa,this.setVValue=Oa,this.interpolateValue=eh,this.effectsSequence=[ih.bind(this)],this.addEffect=Da}function Tv(e,r,o,a){this.propType="multidimensional";var d,c=r.k.length,f,T,v,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&&(f=r.k[d].s,T=r.k[d+1].s,v=r.k[d].to,I=r.k[d].ti,(f.length===2&&!(f[0]===T[0]&&f[1]===T[1])&&vr.pointOnLine2D(f[0],f[1],T[0],T[1],f[0]+v[0],f[1]+v[1])&&vr.pointOnLine2D(f[0],f[1],T[0],T[1],T[0]+I[0],T[1]+I[1])||f.length===3&&!(f[0]===T[0]&&f[1]===T[1]&&f[2]===T[2])&&vr.pointOnLine3D(f[0],f[1],f[2],T[0],T[1],T[2],f[0]+v[0],f[1]+v[1],f[2]+v[2])&&vr.pointOnLine3D(f[0],f[1],f[2],T[0],T[1],T[2],T[0]+I[0],T[1]+I[1],T[2]+I[2]))&&(r.k[d].to=null,r.k[d].ti=null),f[0]===T[0]&&f[1]===T[1]&&v[0]===0&&v[1]===0&&I[0]===0&&I[1]===0&&(f.length===2||f[2]===T[2]&&v[2]===0&&I[2]===0)&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[ih.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=o||1,this.elem=e,this.container=a,this.comp=e.comp,this.getValue=Pa,this.setVValue=Oa,this.interpolateValue=eh,this.frameId=-1;var N=r.k[0].s.length;for(this.v=J("float32",N),this.pv=J("float32",N),d=0;d<N;d+=1)this.v[d]=wi,this.pv[d]=wi;this._caching={lastFrame:wi,lastIndex:0,value:J("float32",N)},this.addEffect=Da}var it=function(){function e(o,a,d,c,f){a.sid&&(a=o.globalData.slotManager.getProp(a));var T;if(!a.k.length)T=new bv(o,a,c,f);else if(typeof a.k[0]=="number")T=new yv(o,a,c,f);else switch(d){case 0:T=new Ev(o,a,c,f);break;case 1:T=new Tv(o,a,c,f);break;default:break}return T.effectsSequence.length&&f.addDynamicProperty(T),T}var r={getProp:e};return r}();function ie(){}ie.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,o=this.dynamicProperties.length;for(r=0;r<o;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 Ni=function(){function e(){return J("float32",2)}return Ma(8,e)}();function Nr(){this.c=!1,this._length=0,this._maxLength=8,this.v=rt(this._maxLength),this.o=rt(this._maxLength),this.i=rt(this._maxLength)}Nr.prototype.setPathData=function(e,r){this.c=e,this.setLength(r);for(var o=0;o<r;)this.v[o]=Ni.newElement(),this.o[o]=Ni.newElement(),this.i[o]=Ni.newElement(),o+=1},Nr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Nr.prototype.doubleArrayLength=function(){this.v=this.v.concat(rt(this._maxLength)),this.i=this.i.concat(rt(this._maxLength)),this.o=this.o.concat(rt(this._maxLength)),this._maxLength*=2},Nr.prototype.setXYAt=function(e,r,o,a,d){var c;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),o){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]=Ni.newElement()),c[a][0]=e,c[a][1]=r},Nr.prototype.setTripleAt=function(e,r,o,a,d,c,f,T){this.setXYAt(e,r,"v",f,T),this.setXYAt(o,a,"o",f,T),this.setXYAt(d,c,"i",f,T)},Nr.prototype.reverse=function(){var e=new Nr;e.setPathData(this.c,this._length);var r=this.v,o=this.o,a=this.i,d=0;this.c&&(e.setTripleAt(r[0][0],r[0][1],a[0][0],a[0][1],o[0][0],o[0][1],0,!1),d=1);var c=this._length-1,f=this._length,T;for(T=d;T<f;T+=1)e.setTripleAt(r[c][0],r[c][1],a[c][0],a[c][1],o[c][0],o[c][1],T,!1),c-=1;return e},Nr.prototype.length=function(){return this._length};var ne=function(){function e(){return new Nr}function r(d){var c=d._length,f;for(f=0;f<c;f+=1)Ni.release(d.v[f]),Ni.release(d.i[f]),Ni.release(d.o[f]),d.v[f]=null,d.i[f]=null,d.o[f]=null;d._length=0,d.c=!1}function o(d){var c=a.newElement(),f,T=d._length===void 0?d.v.length:d._length;for(c.setLength(T),c.c=d.c,f=0;f<T;f+=1)c.setTripleAt(d.v[f][0],d.v[f][1],d.o[f][0],d.o[f][1],d.i[f][0],d.i[f][1],f);return c}var a=Ma(4,e,r);return a.clone=o,a}();function Il(){this._length=0,this._maxLength=4,this.shapes=rt(this._maxLength)}Il.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(rt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Il.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ne.release(this.shapes[e]);this._length=0};var To=function(){var e={newShapeCollection:d,release:c},r=0,o=4,a=rt(o);function d(){var f;return r?(r-=1,f=a[r]):f=new Il,f}function c(f){var T,v=f._length;for(T=0;T<v;T+=1)ne.release(f.shapes[T]);f._length=0,r===o&&(a=Zd.double(a),o*=2),a[r]=f,r+=1}return e}(),Fa=function(){var e=-999999;function r(C,S,y){var A=y.lastIndex,k,D,V,G,Z,ut,dt,tt,bt,lt=this.keyframes;if(C<lt[0].t-this.offsetTime)k=lt[0].s[0],V=!0,A=0;else if(C>=lt[lt.length-1].t-this.offsetTime)k=lt[lt.length-1].s?lt[lt.length-1].s[0]:lt[lt.length-2].e[0],V=!0;else{for(var X=A,_=lt.length-1,O=!0,p,b,U;O&&(p=lt[X],b=lt[X+1],!(b.t-this.offsetTime>C));)X<_-1?X+=1:O=!1;if(U=this.keyframesMetadata[X]||{},V=p.h===1,A=X,!V){if(C>=b.t-this.offsetTime)tt=1;else if(C<p.t-this.offsetTime)tt=0;else{var F;U.__fnct?F=U.__fnct:(F=ys.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,U.__fnct=F),tt=F((C-(p.t-this.offsetTime))/(b.t-this.offsetTime-(p.t-this.offsetTime)))}D=b.s?b.s[0]:p.e[0]}k=p.s[0]}for(ut=S._length,dt=k.i[0].length,y.lastIndex=A,G=0;G<ut;G+=1)for(Z=0;Z<dt;Z+=1)bt=V?k.i[G][Z]:k.i[G][Z]+(D.i[G][Z]-k.i[G][Z])*tt,S.i[G][Z]=bt,bt=V?k.o[G][Z]:k.o[G][Z]+(D.o[G][Z]-k.o[G][Z])*tt,S.o[G][Z]=bt,bt=V?k.v[G][Z]:k.v[G][Z]+(D.v[G][Z]-k.v[G][Z])*tt,S.v[G][Z]=bt}function o(){var C=this.comp.renderedFrame-this.offsetTime,S=this.keyframes[0].t-this.offsetTime,y=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==e&&(A<S&&C<S||A>y&&C>y)||(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 y,A=C._length;for(y=0;y<A;y+=1)if(C.v[y][0]!==S.v[y][0]||C.v[y][1]!==S.v[y][1]||C.o[y][0]!==S.o[y][0]||C.o[y][1]!==S.o[y][1]||C.i[y][0]!==S.i[y][0]||C.i[y][1]!==S.i[y][1])return!1;return!0}function c(C){d(this.v,C)||(this.v=ne.clone(C),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function f(){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,y=this.effectsSequence.length;for(S=0;S<y;S+=1)C=this.effectsSequence[S](C);this.setVValue(C),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function T(C,S,y){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=y===3?S.pt.k:S.ks.k;this.v=ne.clone(A),this.pv=ne.clone(this.v),this.localShapeCollection=To.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function v(C){this.effectsSequence.push(C),this.container.addDynamicProperty(this)}T.prototype.interpolateShape=r,T.prototype.getValue=f,T.prototype.setVValue=c,T.prototype.addEffect=v;function I(C,S,y){this.propType="shape",this.comp=C.comp,this.elem=C,this.container=C,this.offsetTime=C.data.st,this.keyframes=y===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=ne.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,A),this.pv=ne.clone(this.v),this.localShapeCollection=To.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[o.bind(this)]}I.prototype.getValue=f,I.prototype.interpolateShape=r,I.prototype.setVValue=c,I.prototype.addEffect=v;var N=function(){var C=pe;function S(y,A){this.v=ne.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=To.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=A.d,this.elem=y,this.comp=y.comp,this.frameId=-1,this.initDynamicPropertyContainer(y),this.p=it.getProp(y,A.p,1,0,this),this.s=it.getProp(y,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}},$([ie],S),S}(),B=function(){function C(S,y){this.v=ne.newElement(),this.v.setPathData(!0,0),this.elem=S,this.comp=S.comp,this.data=y,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(S),y.sy===1?(this.ir=it.getProp(S,y.ir,0,0,this),this.is=it.getProp(S,y.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=it.getProp(S,y.pt,0,0,this),this.p=it.getProp(S,y.p,1,0,this),this.r=it.getProp(S,y.r,0,St,this),this.or=it.getProp(S,y.or,0,0,this),this.os=it.getProp(S,y.os,0,.01,this),this.localShapeCollection=To.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 y=Math.floor(this.pt.v)*2,A=Math.PI*2/y,k=!0,D=this.or.v,V=this.ir.v,G=this.os.v,Z=this.is.v,ut=2*Math.PI*D/(y*2),dt=2*Math.PI*V/(y*2),tt,bt,lt,X,_=-Math.PI/2;_+=this.r.v;var O=this.data.d===3?-1:1;for(this.v._length=0,tt=0;tt<y;tt+=1){bt=k?D:V,lt=k?G:Z,X=k?ut:dt;var p=bt*Math.cos(_),b=bt*Math.sin(_),U=p===0&&b===0?0:b/Math.sqrt(p*p+b*b),F=p===0&&b===0?0:-p/Math.sqrt(p*p+b*b);p+=+this.p.v[0],b+=+this.p.v[1],this.v.setTripleAt(p,b,p-U*X*lt*O,b-F*X*lt*O,p+U*X*lt*O,b+F*X*lt*O,tt,!0),k=!k,_+=A*O}},convertPolygonToPath:function(){var y=Math.floor(this.pt.v),A=Math.PI*2/y,k=this.or.v,D=this.os.v,V=2*Math.PI*k/(y*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<y;G+=1){var dt=k*Math.cos(Z),tt=k*Math.sin(Z),bt=dt===0&&tt===0?0:tt/Math.sqrt(dt*dt+tt*tt),lt=dt===0&&tt===0?0:-dt/Math.sqrt(dt*dt+tt*tt);dt+=+this.p.v[0],tt+=+this.p.v[1],this.v.setTripleAt(dt,tt,dt-bt*V*D*ut,tt-lt*V*D*ut,dt+bt*V*D*ut,tt+lt*V*D*ut,G,!0),Z+=A*ut}this.paths.length=0,this.paths[0]=this.v}},$([ie],C),C}(),E=function(){function C(S,y){this.v=ne.newElement(),this.v.c=!0,this.localShapeCollection=To.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=S,this.comp=S.comp,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(S),this.p=it.getProp(S,y.p,1,0,this),this.s=it.getProp(S,y.s,1,0,this),this.r=it.getProp(S,y.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return C.prototype={convertRectToPath:function(){var y=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-pe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(y+k,A-D+V,y+k,A-D+V,y+k,A-D+G,0,!0),this.v.setTripleAt(y+k,A+D-V,y+k,A+D-G,y+k,A+D-V,1,!0),V!==0?(this.v.setTripleAt(y+k-V,A+D,y+k-V,A+D,y+k-G,A+D,2,!0),this.v.setTripleAt(y-k+V,A+D,y-k+G,A+D,y-k+V,A+D,3,!0),this.v.setTripleAt(y-k,A+D-V,y-k,A+D-V,y-k,A+D-G,4,!0),this.v.setTripleAt(y-k,A-D+V,y-k,A-D+G,y-k,A-D+V,5,!0),this.v.setTripleAt(y-k+V,A-D,y-k+V,A-D,y-k+G,A-D,6,!0),this.v.setTripleAt(y+k-V,A-D,y+k-G,A-D,y+k-V,A-D,7,!0)):(this.v.setTripleAt(y-k,A+D,y-k+G,A+D,y-k,A+D,2),this.v.setTripleAt(y-k,A-D,y-k,A-D+G,y-k,A-D,3))):(this.v.setTripleAt(y+k,A-D+V,y+k,A-D+G,y+k,A-D+V,0,!0),V!==0?(this.v.setTripleAt(y+k-V,A-D,y+k-V,A-D,y+k-G,A-D,1,!0),this.v.setTripleAt(y-k+V,A-D,y-k+G,A-D,y-k+V,A-D,2,!0),this.v.setTripleAt(y-k,A-D+V,y-k,A-D+V,y-k,A-D+G,3,!0),this.v.setTripleAt(y-k,A+D-V,y-k,A+D-G,y-k,A+D-V,4,!0),this.v.setTripleAt(y-k+V,A+D,y-k+V,A+D,y-k+G,A+D,5,!0),this.v.setTripleAt(y+k-V,A+D,y+k-G,A+D,y+k-V,A+D,6,!0),this.v.setTripleAt(y+k,A+D-V,y+k,A+D-V,y+k,A+D-G,7,!0)):(this.v.setTripleAt(y-k,A-D,y-k+G,A-D,y-k,A-D,1,!0),this.v.setTripleAt(y-k,A+D,y-k,A+D-G,y-k,A+D,2,!0),this.v.setTripleAt(y+k,A+D,y+k-G,A+D,y+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},$([ie],C),C}();function L(C,S,y){var A;if(y===3||y===4){var k=y===3?S.pt:S.ks,D=k.k;D.length?A=new I(C,S,y):A=new T(C,S,y)}else y===5?A=new E(C,S):y===6?A=new N(C,S):y===7&&(A=new B(C,S));return A.k&&C.addDynamicProperty(A),A}function P(){return T}function M(){return I}var z={};return z.getShapeProp=L,z.getConstructorFunction=P,z.getKeyframedConstructorFunction=M,z}();var le=function(){var e=Math.cos,r=Math.sin,o=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 b=e(p),U=r(p);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function f(p){if(p===0)return this;var b=e(p),U=r(p);return this._t(1,0,0,0,0,b,-U,0,0,U,b,0,0,0,0,1)}function T(p){if(p===0)return this;var b=e(p),U=r(p);return this._t(b,0,U,0,0,1,0,0,-U,0,b,0,0,0,0,1)}function v(p){if(p===0)return this;var b=e(p),U=r(p);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function I(p,b){return this._t(1,b,p,1,0,0)}function N(p,b){return this.shear(o(p),o(b))}function B(p,b){var U=e(b),F=r(b);return this._t(U,F,0,0,-F,U,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,o(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 E(p,b,U){return!U&&U!==0&&(U=1),p===1&&b===1&&U===1?this:this._t(p,0,0,0,0,b,0,0,0,0,U,0,0,0,0,1)}function L(p,b,U,F,st,mt,ft,Ct,wt,Kt,_e,br,Se,oe,Oe,Rt){return this.props[0]=p,this.props[1]=b,this.props[2]=U,this.props[3]=F,this.props[4]=st,this.props[5]=mt,this.props[6]=ft,this.props[7]=Ct,this.props[8]=wt,this.props[9]=Kt,this.props[10]=_e,this.props[11]=br,this.props[12]=Se,this.props[13]=oe,this.props[14]=Oe,this.props[15]=Rt,this}function P(p,b,U){return U=U||0,p!==0||b!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,p,b,U,1):this}function M(p,b,U,F,st,mt,ft,Ct,wt,Kt,_e,br,Se,oe,Oe,Rt){var ct=this.props;if(p===1&&b===0&&U===0&&F===0&&st===0&&mt===1&&ft===0&&Ct===0&&wt===0&&Kt===0&&_e===1&&br===0)return ct[12]=ct[12]*p+ct[15]*Se,ct[13]=ct[13]*mt+ct[15]*oe,ct[14]=ct[14]*_e+ct[15]*Oe,ct[15]*=Rt,this._identityCalculated=!1,this;var Mr=ct[0],ci=ct[1],Or=ct[2],yr=ct[3],Pr=ct[4],Dr=ct[5],Ie=ct[6],di=ct[7],hi=ct[8],ar=ct[9],pi=ct[10],nr=ct[11],Oi=ct[12],ja=ct[13],Wa=ct[14],qa=ct[15];return ct[0]=Mr*p+ci*st+Or*wt+yr*Se,ct[1]=Mr*b+ci*mt+Or*Kt+yr*oe,ct[2]=Mr*U+ci*ft+Or*_e+yr*Oe,ct[3]=Mr*F+ci*Ct+Or*br+yr*Rt,ct[4]=Pr*p+Dr*st+Ie*wt+di*Se,ct[5]=Pr*b+Dr*mt+Ie*Kt+di*oe,ct[6]=Pr*U+Dr*ft+Ie*_e+di*Oe,ct[7]=Pr*F+Dr*Ct+Ie*br+di*Rt,ct[8]=hi*p+ar*st+pi*wt+nr*Se,ct[9]=hi*b+ar*mt+pi*Kt+nr*oe,ct[10]=hi*U+ar*ft+pi*_e+nr*Oe,ct[11]=hi*F+ar*Ct+pi*br+nr*Rt,ct[12]=Oi*p+ja*st+Wa*wt+qa*Se,ct[13]=Oi*b+ja*mt+Wa*Kt+qa*oe,ct[14]=Oi*U+ja*ft+Wa*_e+qa*Oe,ct[15]=Oi*F+ja*Ct+Wa*br+qa*Rt,this._identityCalculated=!1,this}function z(p){var b=p.props;return this.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[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 b=0;b<16;){if(p.props[b]!==this.props[b])return!1;b+=1}return!0}function y(p){var b;for(b=0;b<16;b+=1)p.props[b]=this.props[b];return p}function A(p){var b;for(b=0;b<16;b+=1)this.props[b]=p[b]}function k(p,b,U){return{x:p*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],y:p*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],z:p*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]}}function D(p,b,U){return p*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12]}function V(p,b,U){return p*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13]}function G(p,b,U){return p*this.props[2]+b*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],b=this.props[5]/p,U=-this.props[1]/p,F=-this.props[4]/p,st=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 le;return Ct.props[0]=b,Ct.props[1]=U,Ct.props[4]=F,Ct.props[5]=st,Ct.props[12]=mt,Ct.props[13]=ft,Ct}function ut(p){var b=this.getInverseMatrix();return b.applyToPointArray(p[0],p[1],p[2]||0)}function dt(p){var b,U=p.length,F=[];for(b=0;b<U;b+=1)F[b]=ut(p[b]);return F}function tt(p,b,U){var F=J("float32",6);if(this.isIdentity())F[0]=p[0],F[1]=p[1],F[2]=b[0],F[3]=b[1],F[4]=U[0],F[5]=U[1];else{var st=this.props[0],mt=this.props[1],ft=this.props[4],Ct=this.props[5],wt=this.props[12],Kt=this.props[13];F[0]=p[0]*st+p[1]*ft+wt,F[1]=p[0]*mt+p[1]*Ct+Kt,F[2]=b[0]*st+b[1]*ft+wt,F[3]=b[0]*mt+b[1]*Ct+Kt,F[4]=U[0]*st+U[1]*ft+wt,F[5]=U[0]*mt+U[1]*Ct+Kt}return F}function bt(p,b,U){var F;return this.isIdentity()?F=[p,b,U]:F=[p*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],p*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],p*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]],F}function lt(p,b){if(this.isIdentity())return p+","+b;var U=this.props;return Math.round((p*U[0]+b*U[4]+U[12])*100)/100+","+Math.round((p*U[1]+b*U[5]+U[13])*100)/100}function X(){for(var p=0,b=this.props,U="matrix3d(",F=1e4;p<16;)U+=a(b[p]*F)/F,U+=p===15?")":",",p+=1;return U}function _(p){var b=1e4;return p<1e-6&&p>0||p>-1e-6&&p<0?a(p*b)/b:p}function O(){var p=this.props,b=_(p[0]),U=_(p[1]),F=_(p[4]),st=_(p[5]),mt=_(p[12]),ft=_(p[13]);return"matrix("+b+","+U+","+F+","+st+","+mt+","+ft+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=f,this.rotateY=T,this.rotateZ=v,this.skew=N,this.skewFromAxis=B,this.shear=I,this.scale=E,this.setTransform=L,this.translate=P,this.transform=M,this.multiply=z,this.applyToPoint=k,this.applyToX=D,this.applyToY=V,this.applyToZ=G,this.applyToPointArray=bt,this.applyToTriplePoints=tt,this.applyToPointStringified=lt,this.toCSS=X,this.to2dCSS=O,this.clone=y,this.cloneFromProps=A,this.equals=S,this.inversePoints=dt,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 $a(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$a=function(o){return typeof o}:$a=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},$a(e)}var Nt={},za="__[STANDALONE]__",oh="__[ANIMATIONDATA]__",sh="";function xv(e){u(e)}function ah(){za===!0?qt.searchAnimations(oh,za,sh):qt.searchAnimations()}function Av(e){sv(e)}function _v(e){lv(e)}function Sv(e){return za===!0&&(e.animationData=JSON.parse(oh)),qt.loadAnimation(e)}function Iv(e){if(typeof e=="string")switch(e){case"high":La(200);break;default:case"medium":La(50);break;case"low":La(10);break}else!isNaN(e)&&e>1&&La(e);fs()>=50?Ve(!1):Ve(!0)}function kv(){return typeof navigator<"u"}function Cv(e,r){e==="expressions"&&nv(r)}function wv(e){switch(e){case"propertyFactory":return it;case"shapePropertyFactory":return Fa;case"matrix":return le;default:return null}}Nt.play=qt.play,Nt.pause=qt.pause,Nt.setLocationHref=xv,Nt.togglePause=qt.togglePause,Nt.setSpeed=qt.setSpeed,Nt.setDirection=qt.setDirection,Nt.stop=qt.stop,Nt.searchAnimations=ah,Nt.registerAnimation=qt.registerAnimation,Nt.loadAnimation=Sv,Nt.setSubframeRendering=Av,Nt.resize=qt.resize,Nt.goToAndStop=qt.goToAndStop,Nt.destroy=qt.destroy,Nt.setQuality=Iv,Nt.inBrowser=kv,Nt.installPlugin=Cv,Nt.freeze=qt.freeze,Nt.unfreeze=qt.unfreeze,Nt.setVolume=qt.setVolume,Nt.mute=qt.mute,Nt.unmute=qt.unmute,Nt.getRegisteredAnimations=qt.getRegisteredAnimations,Nt.useWebWorker=n,Nt.setIDPrefix=_v,Nt.__getFactory=wv,Nt.version="5.12.2";function Nv(){document.readyState==="complete"&&(clearInterval(Mv),ah())}function Lv(e){for(var r=nh.split("&"),o=0;o<r.length;o+=1){var a=r[o].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}var nh="";if(za){var lh=document.getElementsByTagName("script"),Rv=lh.length-1,ch=lh[Rv]||{src:""};nh=ch.src?ch.src.replace(/^[^\?]+\??/,""):"",sh=Lv("renderer")}var Mv=setInterval(Nv,100);try{!((typeof Ys>"u"?"undefined":$a(Ys))==="object"&&typeof En<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Nt)}catch{}var ii=function(){var e={},r={};e.registerModifier=o,e.getModifier=a;function o(d,c){r[d]||(r[d]=c)}function a(d,c,f){return new r[d](c,f)}return e}();function Ue(){}Ue.prototype.initModifierProperties=function(){},Ue.prototype.addShapeToModifier=function(){},Ue.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var r={shape:e.sh,data:e,localShapeCollection:To.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&e.setAsAnimated()}},Ue.prototype.init=function(e,r){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r),this.frameId=s,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ue.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},$([ie],Ue);function sr(){}$([Ue],sr),sr.prototype.initModifierProperties=function(e,r){this.s=it.getProp(e,r.s,0,.01,this),this.e=it.getProp(e,r.e,0,.01,this),this.o=it.getProp(e,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},sr.prototype.addShapeToModifier=function(e){e.pathsData=[]},sr.prototype.calculateShapeEdges=function(e,r,o,a,d){var c=[];r<=1?c.push({s:e,e:r}):e>=1?c.push({s:e-1,e:r-1}):(c.push({s:e,e:1}),c.push({s:0,e:r-1}));var f=[],T,v=c.length,I;for(T=0;T<v;T+=1)if(I=c[T],!(I.e*d<a||I.s*d>a+o)){var N,B;I.s*d<=a?N=0:N=(I.s*d-a)/o,I.e*d>=a+o?B=1:B=(I.e*d-a)/o,f.push([N,B])}return f.length||f.push([0,0]),f},sr.prototype.releasePathsData=function(e){var r,o=e.length;for(r=0;r<o;r+=1)Qd.release(e[r]);return e.length=0,e},sr.prototype.processShapes=function(e){var r,o;if(this._mdf||e){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?o=1+a:this.e.v<0?o=0+a:o=this.e.v+a,r>o){var d=r;r=o,o=d}r=Math.round(r*1e4)*1e-4,o=Math.round(o*1e4)*1e-4,this.sValue=r,this.eValue=o}else r=this.sValue,o=this.eValue;var c,f,T=this.shapes.length,v,I,N,B,E,L=0;if(o===r)for(f=0;f<T;f+=1)this.shapes[f].localShapeCollection.releaseShapes(),this.shapes[f].shape._mdf=!0,this.shapes[f].shape.paths=this.shapes[f].localShapeCollection,this._mdf&&(this.shapes[f].pathsData.length=0);else if(o===1&&r===0||o===0&&r===1){if(this._mdf)for(f=0;f<T;f+=1)this.shapes[f].pathsData.length=0,this.shapes[f].shape._mdf=!0}else{var P=[],M,z;for(f=0;f<T;f+=1)if(M=this.shapes[f],!M.shape._mdf&&!this._mdf&&!e&&this.m!==2)M.shape.paths=M.localShapeCollection;else{if(c=M.shape.paths,I=c._length,E=0,!M.shape._mdf&&M.pathsData.length)E=M.totalShapeLength;else{for(N=this.releasePathsData(M.pathsData),v=0;v<I;v+=1)B=vr.getSegmentsLength(c.shapes[v]),N.push(B),E+=B.totalLength;M.totalShapeLength=E,M.pathsData=N}L+=E,M.shape._mdf=!0}var C=r,S=o,y=0,A;for(f=T-1;f>=0;f-=1)if(M=this.shapes[f],M.shape._mdf){for(z=M.localShapeCollection,z.releaseShapes(),this.m===2&&T>1?(A=this.calculateShapeEdges(r,o,M.totalShapeLength,y,L),y+=M.totalShapeLength):A=[[C,S]],I=A.length,v=0;v<I;v+=1){C=A[v][0],S=A[v][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}}},sr.prototype.addPaths=function(e,r){var o,a=e.length;for(o=0;o<a;o+=1)r.addShape(e[o])},sr.prototype.addSegment=function(e,r,o,a,d,c,f){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(o[0],o[1],"i",c+1),f&&d.setXYAt(e[0],e[1],"v",c),d.setXYAt(a[0],a[1],"v",c+1)},sr.prototype.addSegmentFromArray=function(e,r,o,a){r.setXYAt(e[1],e[5],"o",o),r.setXYAt(e[2],e[6],"i",o+1),a&&r.setXYAt(e[0],e[4],"v",o),r.setXYAt(e[3],e[7],"v",o+1)},sr.prototype.addShapes=function(e,r,o){var a=e.pathsData,d=e.shape.paths.shapes,c,f=e.shape.paths._length,T,v,I=0,N,B,E,L,P=[],M,z=!0;for(o?(B=o._length,M=o._length):(o=ne.newElement(),B=0,M=0),P.push(o),c=0;c<f;c+=1){for(E=a[c].lengths,o.c=d[c].c,v=d[c].c?E.length:E.length+1,T=1;T<v;T+=1)if(N=E[T-1],I+N.addedLength<r.s)I+=N.addedLength,o.c=!1;else if(I>r.e){o.c=!1;break}else r.s<=I&&r.e>=I+N.addedLength?(this.addSegment(d[c].v[T-1],d[c].o[T-1],d[c].i[T],d[c].v[T],o,B,z),z=!1):(L=vr.getNewSegment(d[c].v[T-1],d[c].v[T],d[c].o[T-1],d[c].i[T],(r.s-I)/N.addedLength,(r.e-I)/N.addedLength,E[T-1]),this.addSegmentFromArray(L,o,B,z),z=!1,o.c=!1),I+=N.addedLength,B+=1;if(d[c].c&&E.length){if(N=E[T-1],I<=r.e){var C=E[T-1].addedLength;r.s<=I&&r.e>=I+C?(this.addSegment(d[c].v[T-1],d[c].o[T-1],d[c].i[0],d[c].v[0],o,B,z),z=!1):(L=vr.getNewSegment(d[c].v[T-1],d[c].v[0],d[c].o[T-1],d[c].i[0],(r.s-I)/C,(r.e-I)/C,E[T-1]),this.addSegmentFromArray(L,o,B,z),z=!1,o.c=!1)}else o.c=!1;I+=N.addedLength,B+=1}if(o._length&&(o.setXYAt(o.v[M][0],o.v[M][1],"i",M),o.setXYAt(o.v[o._length-1][0],o.v[o._length-1][1],"o",o._length-1)),I>r.e)break;c<f-1&&(o=ne.newElement(),z=!0,P.push(o),B=0)}return P};function Es(){}$([Ue],Es),Es.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=it.getProp(e,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Es.prototype.processPath=function(e,r){var o=r/100,a=[0,0],d=e._length,c=0;for(c=0;c<d;c+=1)a[0]+=e.v[c][0],a[1]+=e.v[c][1];a[0]/=d,a[1]/=d;var f=ne.newElement();f.c=e.c;var T,v,I,N,B,E;for(c=0;c<d;c+=1)T=e.v[c][0]+(a[0]-e.v[c][0])*o,v=e.v[c][1]+(a[1]-e.v[c][1])*o,I=e.o[c][0]+(a[0]-e.o[c][0])*-o,N=e.o[c][1]+(a[1]-e.o[c][1])*-o,B=e.i[c][0]+(a[0]-e.i[c][0])*-o,E=e.i[c][1]+(a[1]-e.i[c][1])*-o,f.setTripleAt(T,v,I,N,B,E,c);return f},Es.prototype.processShapes=function(e){var r,o,a=this.shapes.length,d,c,f=this.amount.v;if(f!==0){var T,v;for(o=0;o<a;o+=1){if(T=this.shapes[o],v=T.localShapeCollection,!(!T.shape._mdf&&!this._mdf&&!e))for(v.releaseShapes(),T.shape._mdf=!0,r=T.shape.paths.shapes,c=T.shape.paths._length,d=0;d<c;d+=1)v.addShape(this.processPath(r[d],f));T.shape.paths=T.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var kl=function(){var e=[0,0];function r(v){var I=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||I,this.a&&v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&v.skewFromAxis(-this.sk.v,this.sa.v),this.r?v.rotate(-this.r.v):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.data.p.s?this.data.p.z?v.translate(this.px.v,this.py.v,-this.pz.v):v.translate(this.px.v,this.py.v,0):v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function o(v){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||v){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 N,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?(N=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?(N=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)):(N=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){N=[],B=[];var E=this.px,L=this.py;E._caching.lastFrame+E.offsetTime<=E.keyframes[0].t?(N[0]=E.getValueAtTime((E.keyframes[0].t+.01)/I,0),N[1]=L.getValueAtTime((L.keyframes[0].t+.01)/I,0),B[0]=E.getValueAtTime(E.keyframes[0].t/I,0),B[1]=L.getValueAtTime(L.keyframes[0].t/I,0)):E._caching.lastFrame+E.offsetTime>=E.keyframes[E.keyframes.length-1].t?(N[0]=E.getValueAtTime(E.keyframes[E.keyframes.length-1].t/I,0),N[1]=L.getValueAtTime(L.keyframes[L.keyframes.length-1].t/I,0),B[0]=E.getValueAtTime((E.keyframes[E.keyframes.length-1].t-.01)/I,0),B[1]=L.getValueAtTime((L.keyframes[L.keyframes.length-1].t-.01)/I,0)):(N=[E.pv,L.pv],B[0]=E.getValueAtTime((E._caching.lastFrame+E.offsetTime-.01)/I,E.offsetTime),B[1]=L.getValueAtTime((L._caching.lastFrame+L.offsetTime-.01)/I,L.offsetTime))}else B=e,N=B;this.v.rotate(-Math.atan2(N[1]-B[1],N[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(v){this._addDynamicProperty(v),this.elem.addDynamicProperty(v),this._isDirty=!0}function f(v,I,N){if(this.elem=v,this.frameId=-1,this.propType="transform",this.data=I,this.v=new le,this.pre=new le,this.appliedTransformations=0,this.initDynamicPropertyContainer(N||v),I.p&&I.p.s?(this.px=it.getProp(v,I.p.x,0,0,this),this.py=it.getProp(v,I.p.y,0,0,this),I.p.z&&(this.pz=it.getProp(v,I.p.z,0,0,this))):this.p=it.getProp(v,I.p||{k:[0,0,0]},1,0,this),I.rx){if(this.rx=it.getProp(v,I.rx,0,St,this),this.ry=it.getProp(v,I.ry,0,St,this),this.rz=it.getProp(v,I.rz,0,St,this),I.or.k[0].ti){var B,E=I.or.k.length;for(B=0;B<E;B+=1)I.or.k[B].to=null,I.or.k[B].ti=null}this.or=it.getProp(v,I.or,1,St,this),this.or.sh=!0}else this.r=it.getProp(v,I.r||{k:0},0,St,this);I.sk&&(this.sk=it.getProp(v,I.sk,0,St,this),this.sa=it.getProp(v,I.sa,0,St,this)),this.a=it.getProp(v,I.a||{k:[0,0,0]},1,0,this),this.s=it.getProp(v,I.s||{k:[100,100,100]},1,.01,this),I.o?this.o=it.getProp(v,I.o,0,.01,v):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}f.prototype={applyToMatrix:r,getValue:o,precalculateMatrix:a,autoOrient:d},$([ie],f),f.prototype.addDynamicProperty=c,f.prototype._addDynamicProperty=ie.prototype.addDynamicProperty;function T(v,I,N){return new f(v,I,N)}return{getTransformProperty:T}}();function gr(){}$([Ue],gr),gr.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.c=it.getProp(e,r.c,0,null,this),this.o=it.getProp(e,r.o,0,null,this),this.tr=kl.getTransformProperty(e,r.tr,this),this.so=it.getProp(e,r.tr.so,0,.01,this),this.eo=it.getProp(e,r.tr.eo,0,.01,this),this.data=r,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new le,this.rMatrix=new le,this.sMatrix=new le,this.tMatrix=new le,this.matrix=new le},gr.prototype.applyTransforms=function(e,r,o,a,d,c){var f=c?-1:1,T=a.s.v[0]+(1-a.s.v[0])*(1-d),v=a.s.v[1]+(1-a.s.v[1])*(1-d);e.translate(a.p.v[0]*f*d,a.p.v[1]*f*d,a.p.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.rotate(-a.r.v*f*d),r.translate(a.a.v[0],a.a.v[1],a.a.v[2]),o.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),o.scale(c?1/T:T,c?1/v:v),o.translate(a.a.v[0],a.a.v[1],a.a.v[2])},gr.prototype.init=function(e,r,o,a){for(this.elem=e,this.arr=r,this.pos=o,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r[o]);o>0;)o-=1,this._elements.unshift(r[o]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},gr.prototype.resetElements=function(e){var r,o=e.length;for(r=0;r<o;r+=1)e[r]._processed=!1,e[r].ty==="gr"&&this.resetElements(e[r].it)},gr.prototype.cloneElements=function(e){var r=JSON.parse(JSON.stringify(e));return this.resetElements(r),r},gr.prototype.changeGroupRender=function(e,r){var o,a=e.length;for(o=0;o<a;o+=1)e[o]._render=r,e[o].ty==="gr"&&this.changeGroupRender(e[o].it,r)},gr.prototype.processShapes=function(e){var r,o,a,d,c,f=!1;if(this._mdf||e){var T=Math.ceil(this.c.v);if(this._groups.length<T){for(;this._groups.length<T;){var v={it:this.cloneElements(this._elements),ty:"gr"};v.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,v),this._groups.splice(0,0,v),this._currentCopies+=1}this.elem.reloadShapes(),f=!0}c=0;var I;for(a=0;a<=this._groups.length-1;a+=1){if(I=c<T,this._groups[a]._render=I,this.changeGroupRender(this._groups[a].it,I),!I){var N=this.elemsData[a].it,B=N[N.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=T;var E=this.o.v,L=E%1,P=E>0?Math.floor(E):Math.ceil(E),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(E>0){for(;S<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,L,!1),S+=L)}else if(E<0){for(;S>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-L,!0),S-=L)}a=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,c=this._currentCopies;for(var y,A;c;){if(r=this.elemsData[a].it,o=r[r.length-1].transform.mProps.v.props,A=o.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]),y=0;y<A;y+=1)o[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<A;y+=1)o[y]=this.matrix.props[y];S+=1,c-=1,a+=d}}else for(c=this._currentCopies,a=0,d=1;c;)r=this.elemsData[a].it,o=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 f},gr.prototype.addShape=function(){};function Ts(){}$([Ue],Ts),Ts.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.rd=it.getProp(e,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ts.prototype.processPath=function(e,r){var o=ne.newElement();o.c=e.c;var a,d=e._length,c,f,T,v,I,N,B=0,E,L,P,M,z,C;for(a=0;a<d;a+=1)c=e.v[a],T=e.o[a],f=e.i[a],c[0]===T[0]&&c[1]===T[1]&&c[0]===f[0]&&c[1]===f[1]?(a===0||a===d-1)&&!e.c?(o.setTripleAt(c[0],c[1],T[0],T[1],f[0],f[1],B),B+=1):(a===0?v=e.v[d-1]:v=e.v[a-1],I=Math.sqrt(Math.pow(c[0]-v[0],2)+Math.pow(c[1]-v[1],2)),N=I?Math.min(I/2,r)/I:0,z=c[0]+(v[0]-c[0])*N,E=z,C=c[1]-(c[1]-v[1])*N,L=C,P=E-(E-c[0])*pe,M=L-(L-c[1])*pe,o.setTripleAt(E,L,P,M,z,C,B),B+=1,a===d-1?v=e.v[0]:v=e.v[a+1],I=Math.sqrt(Math.pow(c[0]-v[0],2)+Math.pow(c[1]-v[1],2)),N=I?Math.min(I/2,r)/I:0,P=c[0]+(v[0]-c[0])*N,E=P,M=c[1]+(v[1]-c[1])*N,L=M,z=E-(E-c[0])*pe,C=L-(L-c[1])*pe,o.setTripleAt(E,L,P,M,z,C,B),B+=1):(o.setTripleAt(e.v[a][0],e.v[a][1],e.o[a][0],e.o[a][1],e.i[a][0],e.i[a][1],B),B+=1);return o},Ts.prototype.processShapes=function(e){var r,o,a=this.shapes.length,d,c,f=this.rd.v;if(f!==0){var T,v;for(o=0;o<a;o+=1){if(T=this.shapes[o],v=T.localShapeCollection,!(!T.shape._mdf&&!this._mdf&&!e))for(v.releaseShapes(),T.shape._mdf=!0,r=T.shape.paths.shapes,c=T.shape.paths._length,d=0;d<c;d+=1)v.addShape(this.processPath(r[d],f));T.shape.paths=T.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Va(e,r){return Math.abs(e-r)*1e5<=Math.min(Math.abs(e),Math.abs(r))}function Cl(e){return Math.abs(e)<=1e-5}function dh(e,r,o){return e*(1-o)+r*o}function oi(e,r,o){return[dh(e[0],r[0],o),dh(e[1],r[1],o)]}function Ov(e,r,o){if(e===0)return[];var a=r*r-4*e*o;if(a<0)return[];var d=-r/(2*e);if(a===0)return[d];var c=Math.sqrt(a)/(2*e);return[d-c,d+c]}function hh(e,r,o,a){return[-e+3*r-3*o+a,3*e-6*r+3*o,-3*e+3*r,e]}function ph(e){return new Bt(e,e,e,e,!1)}function Bt(e,r,o,a,d){d&&Ao(e,r)&&(r=oi(e,a,1/3)),d&&Ao(o,a)&&(o=oi(e,a,2/3));var c=hh(e[0],r[0],o[0],a[0]),f=hh(e[1],r[1],o[1],a[1]);this.a=[c[0],f[0]],this.b=[c[1],f[1]],this.c=[c[2],f[2]],this.d=[c[3],f[3]],this.points=[e,r,o,a]}Bt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},Bt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},Bt.prototype.tangentAngle=function(e){var r=this.derivative(e);return Math.atan2(r[1],r[0])},Bt.prototype.normalAngle=function(e){var r=this.derivative(e);return Math.atan2(r[0],r[1])},Bt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Cl(e))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,o=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(o<0)return[];var a=Math.sqrt(o);return Cl(a)?a>0&&a<1?[r]:[]:[r-a,r+a].filter(function(d){return d>0&&d<1})},Bt.prototype.split=function(e){if(e<=0)return[ph(this.points[0]),this];if(e>=1)return[this,ph(this.points[this.points.length-1])];var r=oi(this.points[0],this.points[1],e),o=oi(this.points[1],this.points[2],e),a=oi(this.points[2],this.points[3],e),d=oi(r,o,e),c=oi(o,a,e),f=oi(d,c,e);return[new Bt(this.points[0],r,d,f,!0),new Bt(f,c,a,this.points[3],!0)]};function mh(e,r){var o=e.points[0][r],a=e.points[e.points.length-1][r];if(o>a){var d=a;a=o,o=d}for(var c=Ov(3*e.a[r],2*e.b[r],e.c[r]),f=0;f<c.length;f+=1)if(c[f]>0&&c[f]<1){var T=e.point(c[f])[r];T<o?o=T:T>a&&(a=T)}return{min:o,max:a}}Bt.prototype.bounds=function(){return{x:mh(this,0),y:mh(this,1)}},Bt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Ba(e,r,o){var a=e.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:e,t:(r+o)/2,t1:r,t2:o}}function uh(e){var r=e.bez.split(.5);return[Ba(r[0],e.t1,e.t),Ba(r[1],e.t,e.t2)]}function Pv(e,r){return Math.abs(e.cx-r.cx)*2<e.width+r.width&&Math.abs(e.cy-r.cy)*2<e.height+r.height}function xs(e,r,o,a,d,c){if(Pv(e,r)){if(o>=c||e.width<=a&&e.height<=a&&r.width<=a&&r.height<=a){d.push([e.t,r.t]);return}var f=uh(e),T=uh(r);xs(f[0],T[0],o+1,a,d,c),xs(f[0],T[1],o+1,a,d,c),xs(f[1],T[0],o+1,a,d,c),xs(f[1],T[1],o+1,a,d,c)}}Bt.prototype.intersections=function(e,r,o){r===void 0&&(r=2),o===void 0&&(o=7);var a=[];return xs(Ba(this,0,1),Ba(e,0,1),0,r,a,o),a},Bt.shapeSegment=function(e,r){var o=(r+1)%e.length();return new Bt(e.v[r],e.o[r],e.i[o],e.v[o],!0)},Bt.shapeSegmentInverted=function(e,r){var o=(r+1)%e.length();return new Bt(e.v[o],e.i[o],e.o[r],e.v[r],!0)};function wl(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function Ua(e,r,o,a){var d=[e[0],e[1],1],c=[r[0],r[1],1],f=[o[0],o[1],1],T=[a[0],a[1],1],v=wl(wl(d,c),wl(f,T));return Cl(v[2])?null:[v[0]/v[2],v[1]/v[2]]}function xo(e,r,o){return[e[0]+Math.cos(r)*o,e[1]-Math.sin(r)*o]}function Nl(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function Ao(e,r){return Va(e[0],r[0])&&Va(e[1],r[1])}function As(){}$([Ue],As),As.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amplitude=it.getProp(e,r.s,0,null,this),this.frequency=it.getProp(e,r.r,0,null,this),this.pointsType=it.getProp(e,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function fh(e,r,o,a,d,c,f){var T=o-Math.PI/2,v=o+Math.PI/2,I=r[0]+Math.cos(o)*a*d,N=r[1]-Math.sin(o)*a*d;e.setTripleAt(I,N,I+Math.cos(T)*c,N-Math.sin(T)*c,I+Math.cos(v)*f,N-Math.sin(v)*f,e.length())}function Dv(e,r){var o=[r[0]-e[0],r[1]-e[1]],a=-Math.PI*.5,d=[Math.cos(a)*o[0]-Math.sin(a)*o[1],Math.sin(a)*o[0]+Math.cos(a)*o[1]];return d}function Fv(e,r){var o=r===0?e.length()-1:r-1,a=(r+1)%e.length(),d=e.v[o],c=e.v[a],f=Dv(d,c);return Math.atan2(0,1)-Math.atan2(f[1],f[0])}function vh(e,r,o,a,d,c,f){var T=Fv(r,o),v=r.v[o%r._length],I=r.v[o===0?r._length-1:o-1],N=r.v[(o+1)%r._length],B=c===2?Math.sqrt(Math.pow(v[0]-I[0],2)+Math.pow(v[1]-I[1],2)):0,E=c===2?Math.sqrt(Math.pow(v[0]-N[0],2)+Math.pow(v[1]-N[1],2)):0;fh(e,r.v[o%r._length],T,f,a,E/((d+1)*2),B/((d+1)*2),c)}function $v(e,r,o,a,d,c){for(var f=0;f<a;f+=1){var T=(f+1)/(a+1),v=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(T),N=r.point(T);fh(e,N,I,c,o,v/((a+1)*2),v/((a+1)*2),d),c=-c}return c}As.prototype.processPath=function(e,r,o,a){var d=e._length,c=ne.newElement();if(c.c=e.c,e.c||(d-=1),d===0)return c;var f=-1,T=Bt.shapeSegment(e,0);vh(c,e,0,r,o,a,f);for(var v=0;v<d;v+=1)f=$v(c,T,r,o,a,-f),v===d-1&&!e.c?T=null:T=Bt.shapeSegment(e,(v+1)%d),vh(c,e,v+1,r,o,a,f);return c},As.prototype.processShapes=function(e){var r,o,a=this.shapes.length,d,c,f=this.amplitude.v,T=Math.max(0,Math.round(this.frequency.v)),v=this.pointsType.v;if(f!==0){var I,N;for(o=0;o<a;o+=1){if(I=this.shapes[o],N=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(N.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)N.addShape(this.processPath(r[d],f,T,v));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ll(e,r,o){var a=Math.atan2(r[0]-e[0],r[1]-e[1]);return[xo(e,a,o),xo(r,a,o)]}function _o(e,r){var o,a,d,c,f,T,v;v=Ll(e.points[0],e.points[1],r),o=v[0],a=v[1],v=Ll(e.points[1],e.points[2],r),d=v[0],c=v[1],v=Ll(e.points[2],e.points[3],r),f=v[0],T=v[1];var I=Ua(o,a,d,c);I===null&&(I=a);var N=Ua(f,T,d,c);return N===null&&(N=f),new Bt(o,I,N,T)}function gh(e,r,o,a,d){var c=r.points[3],f=o.points[0];if(a===3||Ao(c,f))return c;if(a===2){var T=-r.tangentAngle(1),v=-o.tangentAngle(0)+Math.PI,I=Ua(c,xo(c,T+Math.PI/2,100),f,xo(f,T+Math.PI/2,100)),N=I?Nl(I,c):Nl(c,f)/2,B=xo(c,T,2*N*pe);return e.setXYAt(B[0],B[1],"o",e.length()-1),B=xo(f,v,2*N*pe),e.setTripleAt(f[0],f[1],f[0],f[1],B[0],B[1],e.length()),f}var E=Ao(c,r.points[2])?r.points[0]:r.points[2],L=Ao(f,o.points[1])?o.points[3]:o.points[1],P=Ua(E,c,f,L);return P&&Nl(P,c)<d?(e.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],e.length()),P):c}function bh(e,r){var o=e.intersections(r);return o.length&&Va(o[0][0],1)&&o.shift(),o.length?o[0]:null}function yh(e,r){var o=e.slice(),a=r.slice(),d=bh(e[e.length-1],r[0]);return d&&(o[e.length-1]=e[e.length-1].split(d[0])[0],a[0]=r[0].split(d[1])[1]),e.length>1&&r.length>1&&(d=bh(e[0],r[r.length-1]),d)?[[e[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[o,a]}function zv(e){for(var r,o=1;o<e.length;o+=1)r=yh(e[o-1],e[o]),e[o-1]=r[0],e[o]=r[1];return e.length>1&&(r=yh(e[e.length-1],e[0]),e[e.length-1]=r[0],e[0]=r[1]),e}function Eh(e,r){var o=e.inflectionPoints(),a,d,c,f;if(o.length===0)return[_o(e,r)];if(o.length===1||Va(o[1],1))return c=e.split(o[0]),a=c[0],d=c[1],[_o(a,r),_o(d,r)];c=e.split(o[0]),a=c[0];var T=(o[1]-o[0])/(1-o[0]);return c=c[1].split(T),f=c[0],d=c[1],[_o(a,r),_o(f,r),_o(d,r)]}function _s(){}$([Ue],_s),_s.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=it.getProp(e,r.a,0,null,this),this.miterLimit=it.getProp(e,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},_s.prototype.processPath=function(e,r,o,a){var d=ne.newElement();d.c=e.c;var c=e.length();e.c||(c-=1);var f,T,v,I=[];for(f=0;f<c;f+=1)v=Bt.shapeSegment(e,f),I.push(Eh(v,r));if(!e.c)for(f=c-1;f>=0;f-=1)v=Bt.shapeSegmentInverted(e,f),I.push(Eh(v,r));I=zv(I);var N=null,B=null;for(f=0;f<I.length;f+=1){var E=I[f];for(B&&(N=gh(d,B,E[0],o,a)),B=E[E.length-1],T=0;T<E.length;T+=1)v=E[T],N&&Ao(v.points[0],N)?d.setXYAt(v.points[1][0],v.points[1][1],"o",d.length()-1):d.setTripleAt(v.points[0][0],v.points[0][1],v.points[1][0],v.points[1][1],v.points[0][0],v.points[0][1],d.length()),d.setTripleAt(v.points[3][0],v.points[3][1],v.points[3][0],v.points[3][1],v.points[2][0],v.points[2][1],d.length()),N=v.points[3]}return I.length&&gh(d,B,I[0][0],o,a),d},_s.prototype.processShapes=function(e){var r,o,a=this.shapes.length,d,c,f=this.amount.v,T=this.miterLimit.v,v=this.lineJoin;if(f!==0){var I,N;for(o=0;o<a;o+=1){if(I=this.shapes[o],N=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(N.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)N.addShape(this.processPath(r[d],f,v,T));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Th(e){for(var r=e.fStyle?e.fStyle.split(" "):[],o="normal",a="normal",d=r.length,c,f=0;f<d;f+=1)switch(c=r[f].toLowerCase(),c){case"italic":a="italic";break;case"bold":o="700";break;case"black":o="900";break;case"medium":o="500";break;case"regular":case"normal":o="400";break;case"light":case"thin":o="200";break;default:break}return{style:a,weight:e.fWeight||o}}var Li=function(){var e=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},o=[];o=o.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,f=917626,T=65039,v=8205,I=127462,N=127487,B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function E(_){var O=_.split(","),p,b=O.length,U=[];for(p=0;p<b;p+=1)O[p]!=="sans-serif"&&O[p]!=="monospace"&&U.push(O[p]);return U.join(",")}function L(_,O){var p=R("span");p.setAttribute("aria-hidden",!0),p.style.fontFamily=O;var b=R("span");b.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(b),document.body.appendChild(p);var U=b.offsetWidth;return b.style.fontFamily=E(_)+", "+O,{node:b,w:U,parent:p}}function P(){var _,O=this.fonts.length,p,b,U=O;for(_=0;_<O;_+=1)this.fonts[_].loaded?U-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(p=this.fonts[_].monoCase.node,b=this.fonts[_].monoCase.w,p.offsetWidth!==b?(U-=1,this.fonts[_].loaded=!0):(p=this.fonts[_].sansCase.node,b=this.fonts[_].sansCase.w,p.offsetWidth!==b&&(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<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function M(_,O){var p=document.body&&O?"svg":"canvas",b,U=Th(_);if(p==="svg"){var F=gt("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,O.appendChild(F),b=F}else{var st=new OffscreenCanvas(500,500).getContext("2d");st.font=U.style+" "+U.weight+" 100px "+_.fFamily,b=st}function mt(ft){return p==="svg"?(b.textContent=ft,b.getComputedTextLength()):b.measureText(ft).width}return{measureText:mt}}function z(_,O){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 p=_.list,b,U=p.length,F=U;for(b=0;b<U;b+=1){var st=!0,mt,ft;if(p[b].loaded=!1,p[b].monoCase=L(p[b].fFamily,"monospace"),p[b].sansCase=L(p[b].fFamily,"sans-serif"),!p[b].fPath)p[b].loaded=!0,F-=1;else if(p[b].fOrigin==="p"||p[b].origin===3){if(mt=document.querySelectorAll('style[f-forigin="p"][f-family="'+p[b].fFamily+'"], style[f-origin="3"][f-family="'+p[b].fFamily+'"]'),mt.length>0&&(st=!1),st){var Ct=R("style");Ct.setAttribute("f-forigin",p[b].fOrigin),Ct.setAttribute("f-origin",p[b].origin),Ct.setAttribute("f-family",p[b].fFamily),Ct.type="text/css",Ct.innerText="@font-face {font-family: "+p[b].fFamily+"; font-style: normal; src: url('"+p[b].fPath+"');}",O.appendChild(Ct)}}else if(p[b].fOrigin==="g"||p[b].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[b].fPath)!==-1&&(st=!1);if(st){var wt=R("link");wt.setAttribute("f-forigin",p[b].fOrigin),wt.setAttribute("f-origin",p[b].origin),wt.type="text/css",wt.rel="stylesheet",wt.href=p[b].fPath,document.body.appendChild(wt)}}else if(p[b].fOrigin==="t"||p[b].origin===2){for(mt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ft=0;ft<mt.length;ft+=1)p[b].fPath===mt[ft].src&&(st=!1);if(st){var Kt=R("link");Kt.setAttribute("f-forigin",p[b].fOrigin),Kt.setAttribute("f-origin",p[b].origin),Kt.setAttribute("rel","stylesheet"),Kt.setAttribute("href",p[b].fPath),O.appendChild(Kt)}}p[b].helper=M(p[b],O),p[b].cache={},this.fonts.push(p[b])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function C(_){if(_){this.chars||(this.chars=[]);var O,p=_.length,b,U=this.chars.length,F;for(O=0;O<p;O+=1){for(b=0,F=!1;b<U;)this.chars[b].style===_[O].style&&this.chars[b].fFamily===_[O].fFamily&&this.chars[b].ch===_[O].ch&&(F=!0),b+=1;F||(this.chars.push(_[O]),U+=1)}}}function S(_,O,p){for(var b=0,U=this.chars.length;b<U;){if(this.chars[b].ch===_&&this.chars[b].style===O&&this.chars[b].fFamily===p)return this.chars[b];b+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,O,p)),r}function y(_,O,p){var b=this.getFontByName(O),U=_;if(!b.cache[U]){var F=b.helper;if(_===" "){var st=F.measureText("|"+_+"|"),mt=F.measureText("||");b.cache[U]=(st-mt)/100}else b.cache[U]=F.measureText(_)/100}return b.cache[U]*p}function A(_){for(var O=0,p=this.fonts.length;O<p;){if(this.fonts[O].fName===_)return this.fonts[O];O+=1}return this.fonts[0]}function k(_){var O=0,p=_.charCodeAt(0);if(p>=55296&&p<=56319){var b=_.charCodeAt(1);b>=56320&&b<=57343&&(O=(p-55296)*1024+b-56320+65536)}return O}function D(_,O){var p=_.toString(16)+O.toString(16);return B.indexOf(p)!==-1}function V(_){return _===v}function G(_){return _===T}function Z(_){var O=k(_);return O>=I&&O<=N}function ut(_){return Z(_.substr(0,2))&&Z(_.substr(2,2))}function dt(_){return o.indexOf(_)!==-1}function tt(_,O){var p=k(_.substr(O,2));if(p!==a)return!1;var b=0;for(O+=2;b<5;){if(p=k(_.substr(O,2)),p<c||p>f)return!1;b+=1,O+=2}return k(_.substr(O,2))===d}function bt(){this.isLoaded=!0}var lt=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)};lt.isModifier=D,lt.isZeroWidthJoiner=V,lt.isFlagEmoji=ut,lt.isRegionalCode=Z,lt.isCombinedCharacter=dt,lt.isRegionalFlag=tt,lt.isVariationSelector=G,lt.BLACK_FLAG_CODE_POINT=a;var X={addChars:C,addFonts:z,getCharData:S,getFontByName:A,measureText:y,checkLoadedFonts:P,setIsLoaded:bt};return lt.prototype=X,lt}();function xh(e){this.animationData=e}xh.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function Vv(e){return new xh(e)}function Ga(){}Ga.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,o=this.renderableComponents.length;for(r=0;r<o;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 Rl=function(){var e={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 e[r]||""}}();function Bv(e,r,o){this.p=it.getProp(r,e.v,0,0,o)}function Uv(e,r,o){this.p=it.getProp(r,e.v,0,0,o)}function Gv(e,r,o){this.p=it.getProp(r,e.v,1,0,o)}function Hv(e,r,o){this.p=it.getProp(r,e.v,1,0,o)}function Yv(e,r,o){this.p=it.getProp(r,e.v,0,0,o)}function jv(e,r,o){this.p=it.getProp(r,e.v,0,0,o)}function Wv(e,r,o){this.p=it.getProp(r,e.v,0,0,o)}function qv(){this.p={}}function Ah(e,r){var o=e.ef||[];this.effectElements=[];var a,d=o.length,c;for(a=0;a<d;a+=1)c=new Ss(o[a],r),this.effectElements.push(c)}function Ss(e,r){this.init(e,r)}$([ie],Ss),Ss.prototype.getValue=Ss.prototype.iterateDynamicProperties,Ss.prototype.init=function(e,r){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(r);var o,a=this.data.ef.length,d,c=this.data.ef;for(o=0;o<a;o+=1){switch(d=null,c[o].ty){case 0:d=new Bv(c[o],r,this);break;case 1:d=new Uv(c[o],r,this);break;case 2:d=new Gv(c[o],r,this);break;case 3:d=new Hv(c[o],r,this);break;case 4:case 7:d=new Wv(c[o],r,this);break;case 10:d=new Yv(c[o],r,this);break;case 11:d=new jv(c[o],r,this);break;case 5:d=new Ah(c[o],r,this);break;default:d=new qv(c[o],r,this);break}d&&this.effectElements.push(d)}};function si(){}si.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,o=this.data.masksProperties.length;r<o;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=Kd();if(r){var o=r("layer"),a=r("effects"),d=r("shape"),c=r("text"),f=r("comp");this.layerInterface=o(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var T=a.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(T),this.data.ty===0||this.data.xt?this.compInterface=f(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=Rl(this.data.bm),o=this.baseElement||this.layerElement;o.style["mix-blend-mode"]=r},initBaseData:function(r,o,a){this.globalData=o,this.comp=a,this.data=r,this.layerId=xe(),this.data.sr||(this.data.sr=1),this.effectsManager=new Ah(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function ai(){}ai.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,o){var a,d=this.dynamicProperties.length;for(a=0;a<d;a+=1)(o||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 ni(e,r,o){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(e,r,o)}ni.prototype.prepareFrame=function(){},$([Ga,si,ai],ni),ni.prototype.getBaseElement=function(){return null},ni.prototype.renderFrame=function(){},ni.prototype.destroy=function(){},ni.prototype.initExpressions=function(){var e=Kd();if(e){var r=e("footage");this.layerInterface=r(this)}},ni.prototype.getFootageData=function(){return this.footageData};function Ae(e,r,o){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.initBaseData(e,r,o),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=e.tm?it.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=it.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Ae.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var o=this._volume*this._volumeMultiplier;this._previousVolume!==o&&(this._previousVolume=o,this.audio.volume(o))},$([Ga,si,ai],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(e){this.audio.rate(e)},Ae.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*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 ce(){}ce.prototype.checkLayers=function(e){var r,o=this.layers.length,a;for(this.completeLayers=!0,r=o-1;r>=0;r-=1)this.elements[r]||(a=this.layers[r],a.ip-a.st<=e-this.layers[r].st&&a.op-a.st>e-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},ce.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},ce.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ce.prototype.createAudio=function(e){return new Ae(e,this.globalData,this)},ce.prototype.createFootage=function(e){return new ni(e,this.globalData,this)},ce.prototype.buildAllItems=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.buildItem(e);this.checkPendingElements()},ce.prototype.includeLayers=function(e){this.completeLayers=!1;var r,o=e.length,a,d=this.layers.length;for(r=0;r<o;r+=1)for(a=0;a<d;){if(this.layers[a].id===e[r].id){this.layers[a]=e[r];break}a+=1}},ce.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},ce.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ce.prototype.buildElementParenting=function(e,r,o){for(var a=this.elements,d=this.layers,c=0,f=d.length;c<f;)d[c].ind==r&&(!a[c]||a[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(o.push(a[c]),a[c].setAsParent(),d[c].parent!==void 0?this.buildElementParenting(e,d[c].parent,o):e.setHierarchy(o))),c+=1},ce.prototype.addPendingElement=function(e){this.pendingElements.push(e)},ce.prototype.searchExtraCompositions=function(e){var r,o=e.length;for(r=0;r<o;r+=1)if(e[r].xt){var a=this.createComp(e[r]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},ce.prototype.getElementById=function(e){var r,o=this.elements.length;for(r=0;r<o;r+=1)if(this.elements[r].data.ind===e)return this.elements[r];return null},ce.prototype.getElementByPath=function(e){var r=e.shift(),o;if(typeof r=="number")o=this.elements[r];else{var a,d=this.elements.length;for(a=0;a<d;a+=1)if(this.elements[a].data.nm===r){o=this.elements[a];break}}return e.length===0?o:o.getElementByPath(e)},ce.prototype.setupGlobalData=function(e,r){this.globalData.fontManager=new Li,this.globalData.slotManager=Vv(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var Kv={TRANSFORM_EFFECT:"transformEFfect"};function So(){}So.prototype={initTransform:function(){var r=new le;this.finalTransform={mProp:this.data.ks?kl.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,o=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,o.cloneFromProps(r),a=0;a<d;a+=1)o.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,o=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<o;)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<o;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<o;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(Kv.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new le;var o=0,a=r.length;for(o=0;o<a;o+=1)this.localTransforms.push(r[o])}}},globalToLocal:function(r){var o=[];o.push(this.finalTransform);for(var a=!0,d=this.comp;a;)d.finalTransform?(d.data.hasMask&&o.splice(0,0,d.finalTransform),d=d.comp):a=!1;var c,f=o.length,T;for(c=0;c<f;c+=1)T=o[c].mat.applyToPointArray(0,0,0),r=[r[0]-T[0],r[1]-T[1],0];return r},mHelper:new le};function Ri(e,r,o){this.data=e,this.element=r,this.globalData=o,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=rt(c),this.solidPath="";var f,T=this.masksProperties,v=0,I=[],N,B,E=xe(),L,P,M,z,C="clipPath",S="clip-path";for(d=0;d<c;d+=1)if((T[d].mode!=="a"&&T[d].mode!=="n"||T[d].inv||T[d].o.k!==100||T[d].o.x)&&(C="mask",S="mask"),(T[d].mode==="s"||T[d].mode==="i")&&v===0?(L=gt("rect"),L.setAttribute("fill","#ffffff"),L.setAttribute("width",this.element.comp.data.w||0),L.setAttribute("height",this.element.comp.data.h||0),I.push(L)):L=null,f=gt("path"),T[d].mode==="n")this.viewData[d]={op:it.getProp(this.element,T[d].o,0,.01,this.element),prop:Fa.getShapeProp(this.element,T[d],3),elem:f,lastPath:""},a.appendChild(f);else{v+=1,f.setAttribute("fill",T[d].mode==="s"?"#000000":"#ffffff"),f.setAttribute("clip-rule","nonzero");var y;if(T[d].x.k!==0?(C="mask",S="mask",z=it.getProp(this.element,T[d].x,0,null,this.element),y=xe(),P=gt("filter"),P.setAttribute("id",y),M=gt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),P.appendChild(M),a.appendChild(P),f.setAttribute("stroke",T[d].mode==="s"?"#000000":"#ffffff")):(M=null,z=null),this.storedData[d]={elem:f,x:z,expan:M,lastPath:"",lastOperator:"",filterId:y,lastRadius:0},T[d].mode==="i"){B=I.length;var A=gt("g");for(N=0;N<B;N+=1)A.appendChild(I[N]);var k=gt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",E+"_"+v),k.appendChild(f),a.appendChild(k),A.setAttribute("mask","url("+x()+"#"+E+"_"+v+")"),I.length=0,I.push(A)}else I.push(f);T[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:f,lastPath:"",op:it.getProp(this.element,T[d].o,0,.01,this.element),prop:Fa.getShapeProp(this.element,T[d],3),invRect:L},this.viewData[d].prop.k||this.drawPath(T[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=gt(C),c=I.length,d=0;d<c;d+=1)this.maskElement.appendChild(I[d]);v>0&&(this.maskElement.setAttribute("id",E),this.element.maskedElement.setAttribute(S,"url("+x()+"#"+E+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Ri.prototype.getMaskProperty=function(e){return this.viewData[e].prop},Ri.prototype.renderFrame=function(e){var r=this.element.finalTransform.mat,o,a=this.masksProperties.length;for(o=0;o<a;o+=1)if((this.viewData[o].prop._mdf||e)&&this.drawPath(this.masksProperties[o],this.viewData[o].prop.v,this.viewData[o]),(this.viewData[o].op._mdf||e)&&this.viewData[o].elem.setAttribute("fill-opacity",this.viewData[o].op.v),this.masksProperties[o].mode!=="n"&&(this.viewData[o].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[o].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[o].x&&(this.storedData[o].x._mdf||e))){var d=this.storedData[o].expan;this.storedData[o].x.v<0?(this.storedData[o].lastOperator!=="erode"&&(this.storedData[o].lastOperator="erode",this.storedData[o].elem.setAttribute("filter","url("+x()+"#"+this.storedData[o].filterId+")")),d.setAttribute("radius",-this.storedData[o].x.v)):(this.storedData[o].lastOperator!=="dilate"&&(this.storedData[o].lastOperator="dilate",this.storedData[o].elem.setAttribute("filter",null)),this.storedData[o].elem.setAttribute("stroke-width",this.storedData[o].x.v*2))}},Ri.prototype.getMaskelement=function(){return this.maskElement},Ri.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},Ri.prototype.drawPath=function(e,r,o){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]),o.lastPath!==a){var f="";o.elem&&(r.c&&(f=e.inv?this.solidPath+a:a),o.elem.setAttribute("d",f)),o.lastPath=a}},Ri.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Is=function(){var e={};e.createFilter=r,e.createAlphaToLuminanceFilter=o;function r(a,d){var c=gt("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 o(){var a=gt("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 e}(),_h=function(){var e={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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),Ha={},Sh="filter_result_";function Ml(e){var r,o="SourceGraphic",a=e.data.ef?e.data.ef.length:0,d=xe(),c=Is.createFilter(d,!0),f=0;this.filters=[];var T;for(r=0;r<a;r+=1){T=null;var v=e.data.ef[r].ty;if(Ha[v]){var I=Ha[v].effect;T=new I(c,e.effectsManager.effectElements[r],e,Sh+f,o),o=Sh+f,Ha[v].countsAsEffect&&(f+=1)}T&&this.filters.push(T)}f&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+x()+"#"+d+")")),this.filters.length&&e.addRenderableComponent(this)}Ml.prototype.renderFrame=function(e){var r,o=this.filters.length;for(r=0;r<o;r+=1)this.filters[r].renderFrame(e)},Ml.prototype.getEffects=function(e){var r,o=this.filters.length,a=[];for(r=0;r<o;r+=1)this.filters[r].type===e&&a.push(this.filters[r]);return a};function JE(e,r,o){Ha[e]={effect:r,countsAsEffect:o}}function ks(){}ks.prototype={initRendererElement:function(){this.layerElement=gt("g")},createContainerElements:function(){this.matteElement=gt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var o=gt("g");o.setAttribute("id",this.layerId),o.appendChild(this.layerElement),r=o,this.globalData.defs.appendChild(o)}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=gt("clipPath"),d=gt("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 f=gt("g");f.setAttribute("clip-path","url("+x()+"#"+c+")"),f.appendChild(this.layerElement),this.transformedElement=f,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+x()+"#"+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 Ri(this.data,this,this.globalData),this.renderableEffectsManager=new Ml(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var o=this.layerId+"_"+r,a,d,c,f;if(r===1||r===3){var T=gt("mask");T.setAttribute("id",o),T.setAttribute("mask-type",r===3?"luminance":"alpha"),c=gt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),T.appendChild(c),this.globalData.defs.appendChild(T),!_h.maskType&&r===1&&(T.setAttribute("mask-type","luminance"),a=xe(),d=Is.createFilter(a),this.globalData.defs.appendChild(d),d.appendChild(Is.createAlphaToLuminanceFilter()),f=gt("g"),f.appendChild(c),T.appendChild(f),f.setAttribute("filter","url("+x()+"#"+a+")"))}else if(r===2){var v=gt("mask");v.setAttribute("id",o),v.setAttribute("mask-type","alpha");var I=gt("g");v.appendChild(I),a=xe(),d=Is.createFilter(a);var N=gt("feComponentTransfer");N.setAttribute("in","SourceGraphic"),d.appendChild(N);var B=gt("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),N.appendChild(B),this.globalData.defs.appendChild(d);var E=gt("rect");E.setAttribute("width",this.comp.data.w),E.setAttribute("height",this.comp.data.h),E.setAttribute("x","0"),E.setAttribute("y","0"),E.setAttribute("fill","#ffffff"),E.setAttribute("opacity","0"),I.setAttribute("filter","url("+x()+"#"+a+")"),I.appendChild(E),c=gt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),_h.maskType||(v.setAttribute("mask-type","luminance"),d.appendChild(Is.createAlphaToLuminanceFilter()),f=gt("g"),I.appendChild(E),f.appendChild(this.layerElement),I.appendChild(f)),this.globalData.defs.appendChild(v)}this.matteMasks[r]=o}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+x()+"#"+r+")")}};function Io(){}Io.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 Cs(){}(function(){var e={initElement:function(o,a,d){this.initFrame(),this.initBaseData(o,a,d),this.initTransform(o,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 o=this.baseElement||this.layerElement;o.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var o=this.baseElement||this.layerElement;o.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(o){this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};$([Ga,K(e)],Cs)})();function ws(e,r,o){this.assetData=r.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(e,r,o),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}$([si,So,ks,Io,ai,Cs],ws),ws.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=gt("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",e),this.layerElement.appendChild(this.innerElem)},ws.prototype.sourceRectAtTime=function(){return this.sourceRect};function Xv(e,r){this.elem=e,this.pos=r}function Ih(){}Ih.prototype={addShapeToModifiers:function(r){var o,a=this.shapeModifiers.length;for(o=0;o<a;o+=1)this.shapeModifiers[o].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var o=0,a=this.shapeModifiers.length;o<a;)if(this.shapeModifiers[o].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,o=this.shapes.length;for(r=0;r<o;r+=1)this.shapes[r].sh.reset();o=this.shapeModifiers.length;var a;for(r=o-1;r>=0&&(a=this.shapeModifiers[r].processShapes(this._isFirstFrame),!a);r-=1);}},searchProcessedElement:function(r){for(var o=this.processedElements,a=0,d=o.length;a<d;){if(o[a].elem===r)return o[a].pos;a+=1}return 0},addProcessedElement:function(r,o){for(var a=this.processedElements,d=a.length;d;)if(d-=1,a[d].elem===r){a[d].pos=o;return}a.push(new Xv(r,o))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var kh={1:"butt",2:"round",3:"square"},Ch={1:"miter",2:"round",3:"bevel"};function wh(e,r,o){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=o,this.lvl=r,this._isAnimated=!!o.k;for(var a=0,d=e.length;a<d;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}wh.prototype.setAsAnimated=function(){this._isAnimated=!0};function Nh(e,r){this.data=e,this.type=e.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=e.hd===!0,this.pElem=gt("path"),this.msElem=null}Nh.prototype.reset=function(){this.d="",this._mdf=!1};function Ya(e,r,o,a){this.elem=e,this.frameId=-1,this.dataProps=rt(r.length),this.renderer=o,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,f;for(d=0;d<c;d+=1)f=it.getProp(e,r[d].v,0,0,this),this.k=f.k||this.k,this.dataProps[d]={n:r[d].n,p:f};this.k||this.getValue(!0),this._isAnimated=this.k}Ya.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var r=0,o=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<o;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}},$([ie],Ya);function Lh(e,r,o){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=it.getProp(e,r.o,0,.01,this),this.w=it.getProp(e,r.w,0,null,this),this.d=new Ya(e,r.d||{},"svg",this),this.c=it.getProp(e,r.c,1,255,this),this.style=o,this._isAnimated=!!this._isAnimated}$([ie],Lh);function Rh(e,r,o){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=it.getProp(e,r.o,0,.01,this),this.c=it.getProp(e,r.c,1,255,this),this.style=o}$([ie],Rh);function Mh(e,r,o){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=o}$([ie],Mh);function Ns(e,r,o){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(o),this.prop=it.getProp(e,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ns.prototype.comparePoints=function(e,r){for(var o=0,a=this.o.length/2,d;o<a;){if(d=Math.abs(e[o*4]-e[r*4+o*2]),d>.01)return!1;o+=1}return!0},Ns.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,r=this.data.k.k.length;e<r;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Ns.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var r,o=this.data.p*4,a,d;for(r=0;r<o;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=!e);if(this.o.length)for(o=this.prop.v.length,r=this.data.p*4;r<o;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=!e);this._mdf=!e}},$([ie],Ns);function ko(e,r,o){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,o)}ko.prototype.initGradientData=function(e,r,o){this.o=it.getProp(e,r.o,0,.01,this),this.s=it.getProp(e,r.s,1,null,this),this.e=it.getProp(e,r.e,1,null,this),this.h=it.getProp(e,r.h||{k:0},0,.01,this),this.a=it.getProp(e,r.a||{k:0},0,St,this),this.g=new Ns(e,r.g,this),this.style=o,this.stops=[],this.setGradientData(o.pElem,r),this.setGradientOpacity(r,o),this._isAnimated=!!this._isAnimated},ko.prototype.setGradientData=function(e,r){var o=xe(),a=gt(r.t===1?"linearGradient":"radialGradient");a.setAttribute("id",o),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,f,T;for(T=r.g.p*4,f=0;f<T;f+=4)c=gt("stop"),a.appendChild(c),d.push(c);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+x()+"#"+o+")"),this.gf=a,this.cst=d},ko.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var o,a,d,c=gt("mask"),f=gt("path");c.appendChild(f);var T=xe(),v=xe();c.setAttribute("id",v);var I=gt(e.t===1?"linearGradient":"radialGradient");I.setAttribute("id",T),I.setAttribute("spreadMethod","pad"),I.setAttribute("gradientUnits","userSpaceOnUse"),d=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var N=this.stops;for(a=e.g.p*4;a<d;a+=2)o=gt("stop"),o.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(o),N.push(o);f.setAttribute(e.ty==="gf"?"fill":"stroke","url("+x()+"#"+T+")"),e.ty==="gs"&&(f.setAttribute("stroke-linecap",kh[e.lc||2]),f.setAttribute("stroke-linejoin",Ch[e.lj||2]),e.lj===1&&f.setAttribute("stroke-miterlimit",e.ml)),this.of=I,this.ms=c,this.ost=N,this.maskId=v,r.msElem=f}},$([ie],ko);function Oh(e,r,o){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=it.getProp(e,r.w,0,null,this),this.d=new Ya(e,r.d||{},"svg",this),this.initGradientData(e,r,o),this._isAnimated=!!this._isAnimated}$([ko,ie],Oh);function Zv(){this.it=[],this.prevViewData=[],this.gr=gt("g")}function Jv(e,r,o){this.transform={mProps:e,op:r,container:o},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Ph=function(r,o,a,d){if(o===0)return"";var c=r.o,f=r.i,T=r.v,v,I=" M"+d.applyToPointStringified(T[0][0],T[0][1]);for(v=1;v<o;v+=1)I+=" C"+d.applyToPointStringified(c[v-1][0],c[v-1][1])+" "+d.applyToPointStringified(f[v][0],f[v][1])+" "+d.applyToPointStringified(T[v][0],T[v][1]);return a&&o&&(I+=" C"+d.applyToPointStringified(c[v-1][0],c[v-1][1])+" "+d.applyToPointStringified(f[0][0],f[0][1])+" "+d.applyToPointStringified(T[0][0],T[0][1]),I+="z"),I},Qv=function(){var e=new le,r=new le,o={createRenderFunction:a};function a(B){switch(B.ty){case"fl":return T;case"gf":return I;case"gs":return v;case"st":return N;case"sh":case"el":case"rc":case"sr":return f;case"tr":return d;case"no":return c;default:return null}}function d(B,E,L){(L||E.transform.op._mdf)&&E.transform.container.setAttribute("opacity",E.transform.op.v),(L||E.transform.mProps._mdf)&&E.transform.container.setAttribute("transform",E.transform.mProps.v.to2dCSS())}function c(){}function f(B,E,L){var P,M,z,C,S,y,A=E.styles.length,k=E.lvl,D,V,G,Z;for(y=0;y<A;y+=1){if(C=E.sh._mdf||L,E.styles[y].lvl<k){for(V=r.reset(),G=k-E.styles[y].lvl,Z=E.transformers.length-1;!C&&G>0;)C=E.transformers[Z].mProps._mdf||C,G-=1,Z-=1;if(C)for(G=k-E.styles[y].lvl,Z=E.transformers.length-1;G>0;)V.multiply(E.transformers[Z].mProps.v),G-=1,Z-=1}else V=e;if(D=E.sh.paths,M=D._length,C){for(z="",P=0;P<M;P+=1)S=D.shapes[P],S&&S._length&&(z+=Ph(S,S._length,S.c,V));E.caches[y]=z}else z=E.caches[y];E.styles[y].d+=B.hd===!0?"":z,E.styles[y]._mdf=C||E.styles[y]._mdf}}function T(B,E,L){var P=E.style;(E.c._mdf||L)&&P.pElem.setAttribute("fill","rgb("+re(E.c.v[0])+","+re(E.c.v[1])+","+re(E.c.v[2])+")"),(E.o._mdf||L)&&P.pElem.setAttribute("fill-opacity",E.o.v)}function v(B,E,L){I(B,E,L),N(B,E,L)}function I(B,E,L){var P=E.gf,M=E.g._hasOpacity,z=E.s.v,C=E.e.v;if(E.o._mdf||L){var S=B.ty==="gf"?"fill-opacity":"stroke-opacity";E.style.pElem.setAttribute(S,E.o.v)}if(E.s._mdf||L){var y=B.t===1?"x1":"cx",A=y==="x1"?"y1":"cy";P.setAttribute(y,z[0]),P.setAttribute(A,z[1]),M&&!E.g._collapsable&&(E.of.setAttribute(y,z[0]),E.of.setAttribute(A,z[1]))}var k,D,V,G;if(E.g._cmdf||L){k=E.cst;var Z=E.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&&(E.g._omdf||L)){var ut=E.g.o;for(E.g._collapsable?k=E.cst:k=E.ost,V=k.length,D=0;D<V;D+=1)G=k[D],E.g._collapsable||G.setAttribute("offset",ut[D*2]+"%"),G.setAttribute("stop-opacity",ut[D*2+1])}if(B.t===1)(E.e._mdf||L)&&(P.setAttribute("x2",C[0]),P.setAttribute("y2",C[1]),M&&!E.g._collapsable&&(E.of.setAttribute("x2",C[0]),E.of.setAttribute("y2",C[1])));else{var dt;if((E.s._mdf||E.e._mdf||L)&&(dt=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)),P.setAttribute("r",dt),M&&!E.g._collapsable&&E.of.setAttribute("r",dt)),E.e._mdf||E.h._mdf||E.a._mdf||L){dt||(dt=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)));var tt=Math.atan2(C[1]-z[1],C[0]-z[0]),bt=E.h.v;bt>=1?bt=.99:bt<=-1&&(bt=-.99);var lt=dt*bt,X=Math.cos(tt+E.a.v)*lt+z[0],_=Math.sin(tt+E.a.v)*lt+z[1];P.setAttribute("fx",X),P.setAttribute("fy",_),M&&!E.g._collapsable&&(E.of.setAttribute("fx",X),E.of.setAttribute("fy",_))}}}function N(B,E,L){var P=E.style,M=E.d;M&&(M._mdf||L)&&M.dashStr&&(P.pElem.setAttribute("stroke-dasharray",M.dashStr),P.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),E.c&&(E.c._mdf||L)&&P.pElem.setAttribute("stroke","rgb("+re(E.c.v[0])+","+re(E.c.v[1])+","+re(E.c.v[2])+")"),(E.o._mdf||L)&&P.pElem.setAttribute("stroke-opacity",E.o.v),(E.w._mdf||L)&&(P.pElem.setAttribute("stroke-width",E.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",E.w.v))}return o}();function Ht(e,r,o){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,r,o),this.prevViewData=[]}$([si,So,ks,Ih,Io,ai,Cs],Ht),Ht.prototype.initSecondaryElement=function(){},Ht.prototype.identityMatrix=new le,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 e,r=this.shapes.length,o,a,d=this.stylesList.length,c,f=[],T=!1;for(a=0;a<d;a+=1){for(c=this.stylesList[a],T=!1,f.length=0,e=0;e<r;e+=1)o=this.shapes[e],o.styles.indexOf(c)!==-1&&(f.push(o),T=o._isAnimated||T);f.length>1&&T&&this.setShapesAsAnimated(f)}},Ht.prototype.setShapesAsAnimated=function(e){var r,o=e.length;for(r=0;r<o;r+=1)e[r].setAsAnimated()},Ht.prototype.createStyleElement=function(e,r){var o,a=new Nh(e,r),d=a.pElem;if(e.ty==="st")o=new Lh(this,e,a);else if(e.ty==="fl")o=new Rh(this,e,a);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?ko:Oh;o=new c(this,e,a),this.globalData.defs.appendChild(o.gf),o.maskId&&(this.globalData.defs.appendChild(o.ms),this.globalData.defs.appendChild(o.of),d.setAttribute("mask","url("+x()+"#"+o.maskId+")"))}else e.ty==="no"&&(o=new Mh(this,e,a));return(e.ty==="st"||e.ty==="gs")&&(d.setAttribute("stroke-linecap",kh[e.lc||2]),d.setAttribute("stroke-linejoin",Ch[e.lj||2]),d.setAttribute("fill-opacity","0"),e.lj===1&&d.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&d.setAttribute("fill-rule","evenodd"),e.ln&&d.setAttribute("id",e.ln),e.cl&&d.setAttribute("class",e.cl),e.bm&&(d.style["mix-blend-mode"]=Rl(e.bm)),this.stylesList.push(a),this.addToAnimatedContents(e,o),o},Ht.prototype.createGroupElement=function(e){var r=new Zv;return e.ln&&r.gr.setAttribute("id",e.ln),e.cl&&r.gr.setAttribute("class",e.cl),e.bm&&(r.gr.style["mix-blend-mode"]=Rl(e.bm)),r},Ht.prototype.createTransformElement=function(e,r){var o=kl.getTransformProperty(this,e,this),a=new Jv(o,o.o,r);return this.addToAnimatedContents(e,a),a},Ht.prototype.createShapeElement=function(e,r,o){var a=4;e.ty==="rc"?a=5:e.ty==="el"?a=6:e.ty==="sr"&&(a=7);var d=Fa.getShapeProp(this,e,a,this),c=new wh(r,o,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},Ht.prototype.addToAnimatedContents=function(e,r){for(var o=0,a=this.animatedContents.length;o<a;){if(this.animatedContents[o].element===r)return;o+=1}this.animatedContents.push({fn:Qv.createRenderFunction(e),element:r,data:e})},Ht.prototype.setElementStyles=function(e){var r=e.styles,o,a=this.stylesList.length;for(o=0;o<a;o+=1)this.stylesList[o].closed||r.push(this.stylesList[o])},Ht.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Ht.prototype.searchShapes=function(e,r,o,a,d,c,f){var T=[].concat(c),v,I=e.length-1,N,B,E=[],L=[],P,M,z;for(v=I;v>=0;v-=1){if(z=this.searchProcessedElement(e[v]),z?r[v]=o[z-1]:e[v]._render=f,e[v].ty==="fl"||e[v].ty==="st"||e[v].ty==="gf"||e[v].ty==="gs"||e[v].ty==="no")z?r[v].style.closed=!1:r[v]=this.createStyleElement(e[v],d),e[v]._render&&r[v].style.pElem.parentNode!==a&&a.appendChild(r[v].style.pElem),E.push(r[v].style);else if(e[v].ty==="gr"){if(!z)r[v]=this.createGroupElement(e[v]);else for(B=r[v].it.length,N=0;N<B;N+=1)r[v].prevViewData[N]=r[v].it[N];this.searchShapes(e[v].it,r[v].it,r[v].prevViewData,r[v].gr,d+1,T,f),e[v]._render&&r[v].gr.parentNode!==a&&a.appendChild(r[v].gr)}else e[v].ty==="tr"?(z||(r[v]=this.createTransformElement(e[v],a)),P=r[v].transform,T.push(P)):e[v].ty==="sh"||e[v].ty==="rc"||e[v].ty==="el"||e[v].ty==="sr"?(z||(r[v]=this.createShapeElement(e[v],T,d)),this.setElementStyles(r[v])):e[v].ty==="tm"||e[v].ty==="rd"||e[v].ty==="ms"||e[v].ty==="pb"||e[v].ty==="zz"||e[v].ty==="op"?(z?(M=r[v],M.closed=!1):(M=ii.getModifier(e[v].ty),M.init(this,e[v]),r[v]=M,this.shapeModifiers.push(M)),L.push(M)):e[v].ty==="rp"&&(z?(M=r[v],M.closed=!0):(M=ii.getModifier(e[v].ty),r[v]=M,M.init(this,e,v,r),this.shapeModifiers.push(M),f=!1),L.push(M));this.addProcessedElement(e[v],v+1)}for(I=E.length,v=0;v<I;v+=1)E[v].closed=!0;for(I=L.length,v=0;v<I;v+=1)L[v].closed=!0},Ht.prototype.renderInnerContent=function(){this.renderModifiers();var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<r;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Ht.prototype.renderShape=function(){var e,r=this.animatedContents.length,o;for(e=0;e<r;e+=1)o=this.animatedContents[e],(this._isFirstFrame||o.element._isAnimated)&&o.data!==!0&&o.fn(o.data,o.element,this._isFirstFrame)},Ht.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Ol(e,r,o,a,d,c){this.o=e,this.sw=r,this.sc=o,this.fc=a,this.m=d,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!o,fc:!!a,m:!0,p:!0}}Ol.prototype.update=function(e,r,o,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 f=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,f=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,f=!0),this.sc!==o&&(this.sc=o,this._mdf.sc=!0,f=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,f=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,f=!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,f=!0),f};function me(e,r){this._frameId=s,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=e.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=e,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(e,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},me.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,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(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},me.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,o=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,d=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(a=0;a<d;a+=1)o!==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 e=this.data.d.k,r=this.elem.comp.renderedFrame,o=0,a=e.length;o<=a-1&&!(o===a-1||e[o+1].t>r);)o+=1;return this.keysIndex!==o&&(this.keysIndex=o),this.data.d.k[this.keysIndex].s},me.prototype.buildFinalText=function(e){for(var r=[],o=0,a=e.length,d,c,f=!1,T=!1,v="";o<a;)f=T,T=!1,d=e.charCodeAt(o),v=e.charAt(o),Li.isCombinedCharacter(d)?f=!0:d>=55296&&d<=56319?Li.isRegionalFlag(e,o)?v=e.substr(o,14):(c=e.charCodeAt(o+1),c>=56320&&c<=57343&&(Li.isModifier(d,c)?(v=e.substr(o,2),f=!0):Li.isFlagEmoji(e.substr(o,4))?v=e.substr(o,4):v=e.substr(o,2))):d>56319?(c=e.charCodeAt(o+1),Li.isVariationSelector(d)&&(f=!0)):Li.isZeroWidthJoiner(d)&&(f=!0,T=!0),f?(r[r.length-1]+=v,f=!1):r.push(v),o+=v.length;return r},me.prototype.completeTextData=function(e){e.__complete=!0;var r=this.elem.globalData.fontManager,o=this.data,a=[],d,c,f,T=0,v,I=o.m.g,N=0,B=0,E=0,L=[],P=0,M=0,z,C,S=r.getFontByName(e.f),y,A=0,k=Th(S);e.fWeight=k.weight,e.fStyle=k.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var D=e.tr/1e3*e.finalSize,V;if(e.sz)for(var G=!0,Z=e.sz[0],ut=e.sz[1],dt,tt;G;){tt=this.buildFinalText(e.t),dt=0,P=0,c=tt.length,D=e.tr/1e3*e.finalSize;var bt=-1;for(d=0;d<c;d+=1)V=tt[d].charCodeAt(0),f=!1,tt[d]===" "?bt=d:(V===13||V===3)&&(P=0,f=!0,dt+=e.finalLineHeight||e.finalSize*1.2),r.chars?(y=r.getCharData(tt[d],S.fStyle,S.fFamily),A=f?0:y.w*e.finalSize/100):A=r.measureText(tt[d],e.f,e.finalSize),P+A>Z&&tt[d]!==" "?(bt===-1?c+=1:d=bt,dt+=e.finalLineHeight||e.finalSize*1.2,tt.splice(d,bt===d?1:0,"\r"),bt=-1,P=0):(P+=A,P+=D);dt+=S.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&ut<dt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=tt,c=e.finalText.length,G=!1)}P=-D,A=0;var lt=0,X;for(d=0;d<c;d+=1)if(f=!1,X=e.finalText[d],V=X.charCodeAt(0),V===13||V===3?(lt=0,L.push(P),M=P>M?P:M,P=-2*D,v="",f=!0,E+=1):v=X,r.chars?(y=r.getCharData(X,S.fStyle,r.getFontByName(e.f).fFamily),A=f?0:y.w*e.finalSize/100):A=r.measureText(v,e.f,e.finalSize),X===" "?lt+=A+D:(P+=A+D+lt,lt=0),a.push({l:A,an:A,add:N,n:f,anIndexes:[],val:v,line:E,animatorJustifyOffset:0}),I==2){if(N+=A,v===""||v===" "||d===c-1){for((v===""||v===" ")&&(N-=A);B<=d;)a[B].an=N,a[B].ind=T,a[B].extra=A,B+=1;T+=1,N=0}}else if(I==3){if(N+=A,v===""||d===c-1){for(v===""&&(N-=A);B<=d;)a[B].an=N,a[B].ind=T,a[B].extra=A,B+=1;N=0,T+=1}}else a[T].ind=T,a[T].extra=0,T+=1;if(e.l=a,M=P>M?P:M,L.push(P),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=M,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=L;var _=o.a,O,p;C=_.length;var b,U,F=[];for(z=0;z<C;z+=1){for(O=_[z],O.a.sc&&(e.strokeColorAnim=!0),O.a.sw&&(e.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(e.fillColorAnim=!0),U=0,b=O.s.b,d=0;d<c;d+=1)p=a[d],p.anIndexes[z]=U,(b==1&&p.val!==""||b==2&&p.val!==""&&p.val!==" "||b==3&&(p.n||p.val==" "||d==c-1)||b==4&&(p.n||d==c-1))&&(O.s.rn===1&&F.push(U),U+=1);o.a[z].s.totalChars=U;var st=-1,mt;if(O.s.rn===1)for(d=0;d<c;d+=1)p=a[d],st!=p.anIndexes[z]&&(st=p.anIndexes[z],mt=F.splice(Math.floor(Math.random()*F.length),1)[0]),p.anIndexes[z]=mt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=S.ascent*e.finalSize/100},me.prototype.updateDocumentData=function(e,r){r=r===void 0?this.keysIndex:r;var o=this.copyData({},this.data.d.k[r].s);o=this.copyData(o,e),this.data.d.k[r].s=o,this.recalculate(r),this.setCurrentData(o),this.elem.addDynamicProperty(this)},me.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},me.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},me.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var tg=function(){var e=Math.max,r=Math.min,o=Math.floor;function a(c,f){this._currentTextLength=-1,this.k=!1,this.data=f,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=it.getProp(c,f.s||{k:0},0,0,this),"e"in f?this.e=it.getProp(c,f.e,0,0,this):this.e={v:100},this.o=it.getProp(c,f.o||{k:0},0,0,this),this.xe=it.getProp(c,f.xe||{k:0},0,0,this),this.ne=it.getProp(c,f.ne||{k:0},0,0,this),this.sm=it.getProp(c,f.sm||{k:100},0,0,this),this.a=it.getProp(c,f.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(f){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var T=0,v=0,I=1,N=1;this.ne.v>0?T=this.ne.v/100:v=-this.ne.v/100,this.xe.v>0?I=1-this.xe.v/100:N=1+this.xe.v/100;var B=ys.getBezierEasing(T,v,I,N).get,E=0,L=this.finalS,P=this.finalE,M=this.data.sh;if(M===2)P===L?E=f>=P?1:0:E=e(0,r(.5/(P-L)+(f-L)/(P-L),1)),E=B(E);else if(M===3)P===L?E=f>=P?0:1:E=1-e(0,r(.5/(P-L)+(f-L)/(P-L),1)),E=B(E);else if(M===4)P===L?E=0:(E=e(0,r(.5/(P-L)+(f-L)/(P-L),1)),E<.5?E*=2:E=1-2*(E-.5)),E=B(E);else if(M===5){if(P===L)E=0;else{var z=P-L;f=r(e(0,f+.5-L),P-L);var C=-z/2+f,S=z/2;E=Math.sqrt(1-C*C/(S*S))}E=B(E)}else M===6?(P===L?E=0:(f=r(e(0,f+.5-L),P-L),E=(1+Math.cos(Math.PI+Math.PI*2*f/(P-L)))/2),E=B(E)):(f>=o(L)&&(f-L<0?E=e(0,r(r(P,1)-(L-f),1)):E=e(0,r(P-f,1))),E=B(E));if(this.sm.v!==100){var y=this.sm.v*.01;y===0&&(y=1e-8);var A=.5-y*.5;E<A?E=0:(E=(E-A)/y,E>1&&(E=1))}return E*this.a.v},getValue:function(f){this.iterateDynamicProperties(),this._mdf=f||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,f&&this.data.r===2&&(this.e.v=this._currentTextLength);var T=this.data.r===2?1:100/this.data.totalChars,v=this.o.v/T,I=this.s.v/T+v,N=this.e.v/T+v;if(I>N){var B=I;I=N,N=B}this.finalS=I,this.finalE=N}},$([ie],a);function d(c,f,T){return new a(c,f,T)}return{getTextSelectorProp:d}}();function eg(e,r,o){var a={propType:!1},d=it.getProp,c=r.a;this.a={r:c.r?d(e,c.r,0,St,o):a,rx:c.rx?d(e,c.rx,0,St,o):a,ry:c.ry?d(e,c.ry,0,St,o):a,sk:c.sk?d(e,c.sk,0,St,o):a,sa:c.sa?d(e,c.sa,0,St,o):a,s:c.s?d(e,c.s,1,.01,o):a,a:c.a?d(e,c.a,1,0,o):a,o:c.o?d(e,c.o,0,.01,o):a,p:c.p?d(e,c.p,1,0,o):a,sw:c.sw?d(e,c.sw,0,0,o):a,sc:c.sc?d(e,c.sc,1,0,o):a,fc:c.fc?d(e,c.fc,1,0,o):a,fh:c.fh?d(e,c.fh,0,0,o):a,fs:c.fs?d(e,c.fs,0,.01,o):a,fb:c.fb?d(e,c.fb,0,.01,o):a,t:c.t?d(e,c.t,0,0,o):a},this.s=tg.getTextSelectorProp(e,r.s,o),this.s.t=r.s.t}function Mi(e,r,o){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=r,this._elem=o,this._animatorsData=rt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(o)}Mi.prototype.searchProperties=function(){var e,r=this._textData.a.length,o,a=it.getProp;for(e=0;e<r;e+=1)o=this._textData.a[e],this._animatorsData[e]=new eg(this._elem,o,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)},Mi.prototype.getMeasures=function(e,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var o=this._moreOptions.alignment.v,a=this._animatorsData,d=this._textData,c=this.mHelper,f=this._renderType,T=this.renderedLetters.length,v,I,N,B,E=e.l,L,P,M,z,C,S,y,A,k,D,V,G,Z,ut,dt;if(this._hasMaskedPath){if(dt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var tt=dt.v;this._pathData.r.v&&(tt=tt.reverse()),L={tLength:0,segments:[]},B=tt._length-1;var bt;for(G=0,N=0;N<B;N+=1)bt=vr.buildBezierData(tt.v[N],tt.v[N+1],[tt.o[N][0]-tt.v[N][0],tt.o[N][1]-tt.v[N][1]],[tt.i[N+1][0]-tt.v[N+1][0],tt.i[N+1][1]-tt.v[N+1][1]]),L.tLength+=bt.segmentLength,L.segments.push(bt),G+=bt.segmentLength;N=B,dt.v.c&&(bt=vr.buildBezierData(tt.v[N],tt.v[0],[tt.o[N][0]-tt.v[N][0],tt.o[N][1]-tt.v[N][1]],[tt.i[0][0]-tt.v[0][0],tt.i[0][1]-tt.v[0][1]]),L.tLength+=bt.segmentLength,L.segments.push(bt),G+=bt.segmentLength),this._pathData.pi=L}if(L=this._pathData.pi,P=this._pathData.f.v,y=0,S=1,z=0,C=!0,D=L.segments,P<0&&dt.v.c)for(L.tLength<Math.abs(P)&&(P=-Math.abs(P)%L.tLength),y=D.length-1,k=D[y].points,S=k.length-1;P<0;)P+=k[S].partialLength,S-=1,S<0&&(y-=1,k=D[y].points,S=k.length-1);k=D[y].points,A=k[S-1],M=k[S],V=M.partialLength}B=E.length,v=0,I=0;var lt=e.finalSize*1.2*.714,X=!0,_,O,p,b,U;b=a.length;var F,st=-1,mt,ft,Ct,wt=P,Kt=y,_e=S,br=-1,Se,oe,Oe,Rt,ct,Mr,ci,Or,yr="",Pr=this.defaultPropsArray,Dr;if(e.j===2||e.j===1){var Ie=0,di=0,hi=e.j===2?-.5:-1,ar=0,pi=!0;for(N=0;N<B;N+=1)if(E[N].n){for(Ie&&(Ie+=di);ar<N;)E[ar].animatorJustifyOffset=Ie,ar+=1;Ie=0,pi=!0}else{for(p=0;p<b;p+=1)_=a[p].a,_.t.propType&&(pi&&e.j===2&&(di+=_.t.v*hi),O=a[p].s,F=O.getMult(E[N].anIndexes[p],d.a[p].s.totalChars),F.length?Ie+=_.t.v*F[0]*hi:Ie+=_.t.v*F*hi);pi=!1}for(Ie&&(Ie+=di);ar<N;)E[ar].animatorJustifyOffset=Ie,ar+=1}for(N=0;N<B;N+=1){if(c.reset(),Se=1,E[N].n)v=0,I+=e.yOffset,I+=X?1:0,P=wt,X=!1,this._hasMaskedPath&&(y=Kt,S=_e,k=D[y].points,A=k[S-1],M=k[S],V=M.partialLength,z=0),yr="",Or="",Mr="",Dr="",Pr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(br!==E[N].line){switch(e.j){case 1:P+=G-e.lineWidths[E[N].line];break;case 2:P+=(G-e.lineWidths[E[N].line])/2;break;default:break}br=E[N].line}st!==E[N].ind&&(E[st]&&(P+=E[st].extra),P+=E[N].an/2,st=E[N].ind),P+=o[0]*E[N].an*.005;var nr=0;for(p=0;p<b;p+=1)_=a[p].a,_.p.propType&&(O=a[p].s,F=O.getMult(E[N].anIndexes[p],d.a[p].s.totalChars),F.length?nr+=_.p.v[0]*F[0]:nr+=_.p.v[0]*F),_.a.propType&&(O=a[p].s,F=O.getMult(E[N].anIndexes[p],d.a[p].s.totalChars),F.length?nr+=_.a.v[0]*F[0]:nr+=_.a.v[0]*F);for(C=!0,this._pathData.a.v&&(P=E[0].an*.5+(G-this._pathData.f.v-E[0].an*.5-E[E.length-1].an*.5)*st/(B-1),P+=this._pathData.f.v);C;)z+V>=P+nr||!k?(Z=(P+nr-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(-o[0]*E[N].an*.005,-(o[1]*lt)*.01),C=!1):k&&(z+=M.partialLength,S+=1,S>=k.length&&(S=0,y+=1,D[y]?k=D[y].points:dt.v.c?(S=0,y=0,k=D[y].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[S],V=M.partialLength));mt=E[N].an/2-E[N].add,c.translate(-mt,0,0)}else mt=E[N].an/2-E[N].add,c.translate(-mt,0,0),c.translate(-o[0]*E[N].an*.005,-o[1]*lt*.01,0);for(p=0;p<b;p+=1)_=a[p].a,_.t.propType&&(O=a[p].s,F=O.getMult(E[N].anIndexes[p],d.a[p].s.totalChars),(v!==0||e.j!==0)&&(this._hasMaskedPath?F.length?P+=_.t.v*F[0]:P+=_.t.v*F:F.length?v+=_.t.v*F[0]:v+=_.t.v*F));for(e.strokeWidthAnim&&(Oe=e.sw||0),e.strokeColorAnim&&(e.sc?oe=[e.sc[0],e.sc[1],e.sc[2]]:oe=[0,0,0]),e.fillColorAnim&&e.fc&&(Rt=[e.fc[0],e.fc[1],e.fc[2]]),p=0;p<b;p+=1)_=a[p].a,_.a.propType&&(O=a[p].s,F=O.getMult(E[N].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<b;p+=1)_=a[p].a,_.s.propType&&(O=a[p].s,F=O.getMult(E[N].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<b;p+=1){if(_=a[p].a,O=a[p].s,F=O.getMult(E[N].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?Se+=(_.o.v*F[0]-Se)*F[0]:Se+=(_.o.v*F-Se)*F),e.strokeWidthAnim&&_.sw.propType&&(F.length?Oe+=_.sw.v*F[0]:Oe+=_.sw.v*F),e.strokeColorAnim&&_.sc.propType)for(ct=0;ct<3;ct+=1)F.length?oe[ct]+=(_.sc.v[ct]-oe[ct])*F[0]:oe[ct]+=(_.sc.v[ct]-oe[ct])*F;if(e.fillColorAnim&&e.fc){if(_.fc.propType)for(ct=0;ct<3;ct+=1)F.length?Rt[ct]+=(_.fc.v[ct]-Rt[ct])*F[0]:Rt[ct]+=(_.fc.v[ct]-Rt[ct])*F;_.fh.propType&&(F.length?Rt=qd(Rt,_.fh.v*F[0]):Rt=qd(Rt,_.fh.v*F)),_.fs.propType&&(F.length?Rt=jd(Rt,_.fs.v*F[0]):Rt=jd(Rt,_.fs.v*F)),_.fb.propType&&(F.length?Rt=Wd(Rt,_.fb.v*F[0]):Rt=Wd(Rt,_.fb.v*F))}}for(p=0;p<b;p+=1)_=a[p].a,_.p.propType&&(O=a[p].s,F=O.getMult(E[N].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(e.strokeWidthAnim&&(Mr=Oe<0?0:Oe),e.strokeColorAnim&&(ci="rgb("+Math.round(oe[0]*255)+","+Math.round(oe[1]*255)+","+Math.round(oe[2]*255)+")"),e.fillColorAnim&&e.fc&&(Or="rgb("+Math.round(Rt[0]*255)+","+Math.round(Rt[1]*255)+","+Math.round(Rt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,o[1]*lt*.01+I,0),this._pathData.p.v){ut=(M.point[1]-A.point[1])/(M.point[0]-A.point[0]);var Oi=Math.atan(ut)*180/Math.PI;M.point[0]<A.point[0]&&(Oi+=180),c.rotate(-Oi*Math.PI/180)}c.translate(ft,Ct,0),P-=o[0]*E[N].an*.005,E[N+1]&&st!==E[N+1].ind&&(P+=E[N].an/2,P+=e.tr*.001*e.finalSize)}else{switch(c.translate(v,I,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(E[N].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[N].line]),0,0);break;case 2:c.translate(E[N].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[N].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(mt,0,0),c.translate(o[0]*E[N].an*.005,o[1]*lt*.01,0),v+=E[N].l+e.tr*.001*e.finalSize}f==="html"?yr=c.toCSS():f==="svg"?yr=c.to2dCSS():Pr=[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]],Dr=Se}T<=N?(U=new Ol(Dr,Mr,ci,Or,yr,Pr),this.renderedLetters.push(U),T+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[N],this.lettersChangedFlag=U.update(Dr,Mr,ci,Or,yr,Pr)||this.lettersChangedFlag)}}},Mi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Mi.prototype.mHelper=new le,Mi.prototype.defaultPropsArray=[],$([ie],Mi);function Ge(){}Ge.prototype.initElement=function(e,r,o){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,o),this.textProperty=new me(this,e.t,this.dynamicProperties),this.textAnimator=new Mi(e.t,this.renderType,this),this.initTransform(e,r,o),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Ge.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},Ge.prototype.createPathShape=function(e,r){var o,a=r.length,d,c="";for(o=0;o<a;o+=1)r[o].ty==="sh"&&(d=r[o].ks.k,c+=Ph(d,d.i.length,!0,e));return c},Ge.prototype.updateDocumentData=function(e,r){this.textProperty.updateDocumentData(e,r)},Ge.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},Ge.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},Ge.prototype.applyTextPropertiesToMatrix=function(e,r,o,a,d){switch(e.ps&&r.translate(e.ps[0],e.ps[1]+e.ascent,0),r.translate(0,-e.ls,0),e.j){case 1:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[o]),0,0);break;case 2:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[o])/2,0,0);break;default:break}r.translate(a,d,0)},Ge.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},Ge.prototype.emptyProp=new Ol,Ge.prototype.destroy=function(){},Ge.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var rg={shapes:[]};function Lr(e,r,o){this.textSpans=[],this.renderType="svg",this.initElement(e,r,o)}$([si,So,ks,Io,ai,Cs,Ge],Lr),Lr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=gt("text"))},Lr.prototype.buildTextContents=function(e){for(var r=0,o=e.length,a=[],d="";r<o;)e[r]==="\r"||e[r]===""?(a.push(d),d=""):d+=e[r],r+=1;return a.push(d),a},Lr.prototype.buildShapeData=function(e,r){if(e.shapes&&e.shapes.length){var o=e.shapes[0];if(o.it){var a=o.it[o.it.length-1];a.s&&(a.s.k[0]=r,a.s.k[1]=r)}}return e},Lr.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,r,o=this.textProperty.currentData;this.renderedLetters=rt(o?o.l.length:0),o.fc?this.layerElement.setAttribute("fill",this.buildColor(o.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),o.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(o.sc)),this.layerElement.setAttribute("stroke-width",o.sw)),this.layerElement.setAttribute("font-size",o.finalSize);var a=this.globalData.fontManager.getFontByName(o.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var d=o.fWeight,c=o.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",o.t);var f=o.l||[],T=!!this.globalData.fontManager.chars;r=f.length;var v,I=this.mHelper,N="",B=this.data.singleShape,E=0,L=0,P=!0,M=o.tr*.001*o.finalSize;if(B&&!T&&!o.sz){var z=this.textContainer,C="start";switch(o.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(o.finalText);for(r=S.length,L=o.ps?o.ps[1]+o.ascent:0,e=0;e<r;e+=1)v=this.textSpans[e].span||gt("tspan"),v.textContent=S[e],v.setAttribute("x",0),v.setAttribute("y",L),v.style.display="inherit",z.appendChild(v),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=v,L+=o.finalLineHeight;this.layerElement.appendChild(z)}else{var y=this.textSpans.length,A;for(e=0;e<r;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!T||!B||e===0){if(v=y>e?this.textSpans[e].span:gt(T?"g":"text"),y<=e){if(v.setAttribute("stroke-linecap","butt"),v.setAttribute("stroke-linejoin","round"),v.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=v,T){var k=gt("g");v.appendChild(k),this.textSpans[e].childSpan=k}this.textSpans[e].span=v,this.layerElement.appendChild(v)}v.style.display="inherit"}if(I.reset(),B&&(f[e].n&&(E=-M,L+=o.yOffset,L+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(o,I,f[e].line,E,L),E+=f[e].l||0,E+=M),T){A=this.globalData.fontManager.getCharData(o.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily);var D;if(A.t===1)D=new Ls(A.data,this.globalData,this);else{var V=rg;A.data&&A.data.shapes&&(V=this.buildShapeData(A.data,o.finalSize)),D=new Ht(V,this.globalData,this)}if(this.textSpans[e].glyph){var G=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(G.layerElement),G.destroy()}this.textSpans[e].glyph=D,D._debug=!0,D.prepareFrame(0),D.renderFrame(),this.textSpans[e].childSpan.appendChild(D.layerElement),A.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+o.finalSize/100+","+o.finalSize/100+")")}else B&&v.setAttribute("transform","translate("+I.props[12]+","+I.props[13]+")"),v.textContent=f[e].val,v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}B&&v&&v.setAttribute("d",N)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Lr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},Lr.prototype.getValue=function(){var e,r=this.textSpans.length,o;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)o=this.textSpans[e].glyph,o&&(o.prepareFrame(this.comp.renderedFrame-this.data.st),o._mdf&&(this._mdf=!0))},Lr.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 e,r,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;r=a.length;var d,c,f;for(e=0;e<r;e+=1)a[e].n||(d=o[e],c=this.textSpans[e].span,f=this.textSpans[e].glyph,f&&f.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 Pl(e,r,o){this.initElement(e,r,o)}$([ws],Pl),Pl.prototype.createContent=function(){var e=gt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function li(e,r,o){this.initFrame(),this.initBaseData(e,r,o),this.initFrame(),this.initTransform(e,r,o),this.initHierarchy()}li.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},li.prototype.renderFrame=function(){},li.prototype.getBaseElement=function(){return null},li.prototype.destroy=function(){},li.prototype.sourceRectAtTime=function(){},li.prototype.hide=function(){},$([si,So,Io,ai],li);function Jt(){}$([ce],Jt),Jt.prototype.createNull=function(e){return new li(e,this.globalData,this)},Jt.prototype.createShape=function(e){return new Ht(e,this.globalData,this)},Jt.prototype.createText=function(e){return new Lr(e,this.globalData,this)},Jt.prototype.createImage=function(e){return new ws(e,this.globalData,this)},Jt.prototype.createSolid=function(e){return new Pl(e,this.globalData,this)},Jt.prototype.configAnimation=function(e){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 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.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(e,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var o=gt("clipPath"),a=gt("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var d=xe();o.setAttribute("id",d),o.appendChild(a),this.layerElement.setAttribute("clip-path","url("+x()+"#"+d+")"),r.appendChild(o),this.layers=e.layers,this.elements=rt(e.layers.length)},Jt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,r=this.layers?this.layers.length:0;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Jt.prototype.updateContainerSize=function(){},Jt.prototype.findIndexByInd=function(e){var r=0,o=this.layers.length;for(r=0;r<o;r+=1)if(this.layers[r].ind===e)return r;return-1},Jt.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){r[e]=!0;var o=this.createItem(this.layers[e]);if(r[e]=o,Na()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(o),o.initExpressions()),this.appendElementInPos(o,e),this.layers[e].tt){var a="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(o);else{var d=r[a],c=d.getMatte(this.layers[e].tt);o.setMatte(c)}}}},Jt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var r=0,o=this.elements.length;r<o;){if(this.elements[r]===e){var a="tp"in e.data?this.findIndexByInd(e.data.tp):r-1,d=this.elements[a],c=d.getMatte(this.layers[r].tt);e.setMatte(c);break}r+=1}}},Jt.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r,o=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=o-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<o;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},Jt.prototype.appendElementInPos=function(e,r){var o=e.getBaseElement();if(o){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(o,d):this.layerElement.appendChild(o)}},Jt.prototype.hide=function(){this.layerElement.style.display="none"},Jt.prototype.show=function(){this.layerElement.style.display="block"};function Rr(){}$([si,So,Io,ai,Cs],Rr),Rr.prototype.initElement=function(e,r,o){this.initFrame(),this.initBaseData(e,r,o),this.initTransform(e,r,o),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},Rr.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var o,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),o=a-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&(this.elements[o].prepareFrame(this.renderedFrame-this.layers[o].st),this.elements[o]._mdf&&(this._mdf=!0))}},Rr.prototype.renderInnerContent=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},Rr.prototype.setElements=function(e){this.elements=e},Rr.prototype.getElements=function(){return this.elements},Rr.prototype.destroyElements=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy()},Rr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Ls(e,r,o){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?rt(this.layers.length):[],this.initElement(e,r,o),this.tm=e.tm?it.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}$([Jt,Rr,ks],Ls),Ls.prototype.createComp=function(e){return new Ls(e,this.globalData,this)};function Dl(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=gt("svg");var o="";if(r&&r.title){var a=gt("title"),d=xe();a.setAttribute("id",d),a.textContent=r.title,this.svgElement.appendChild(a),o+=d}if(r&&r.description){var c=gt("desc"),f=xe();c.setAttribute("id",f),c.textContent=r.description,this.svgElement.appendChild(c),o+=" "+f}o&&this.svgElement.setAttribute("aria-labelledby",o);var T=gt("defs");this.svgElement.appendChild(T);var v=gt("g");this.svgElement.appendChild(v),this.layerElement=v,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:T,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return $([Jt],Dl),Dl.prototype.createComp=function(e){return new Ls(e,this.globalData,this)},pv("svg",Dl),ii.registerModifier("tm",sr),ii.registerModifier("pb",Es),ii.registerModifier("rp",gr),ii.registerModifier("rd",Ts),ii.registerModifier("zz",As),ii.registerModifier("op",_s),Nt})});var Ka=globalThis,Xa=Ka.ShadowRoot&&(Ka.ShadyCSS===void 0||Ka.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$l=Symbol(),Fh=new WeakMap,Rs=class{constructor(i,t,s){if(this._$cssResult$=!0,s!==$l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(Xa&&i===void 0){let s=t!==void 0&&t.length===1;s&&(i=Fh.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),s&&Fh.set(t,i))}return i}toString(){return this.cssText}},$h=l=>new Rs(typeof l=="string"?l:l+"",void 0,$l),H=(l,...i)=>{let t=l.length===1?l[0]:i.reduce((s,n,h)=>s+(u=>{if(u._$cssResult$===!0)return u.cssText;if(typeof u=="number")return u;throw Error("Value passed to 'css' function must be a 'css' function result: "+u+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+l[h+1],l[0]);return new Rs(t,l,$l)},zl=(l,i)=>{if(Xa)l.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let s=document.createElement("style"),n=Ka.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=t.cssText,l.appendChild(s)}},Za=Xa?l=>l:l=>l instanceof CSSStyleSheet?(i=>{let t="";for(let s of i.cssRules)t+=s.cssText;return $h(t)})(l):l;var{is:dg,defineProperty:hg,getOwnPropertyDescriptor:pg,getOwnPropertyNames:mg,getOwnPropertySymbols:ug,getPrototypeOf:fg}=Object,mi=globalThis,zh=mi.trustedTypes,vg=zh?zh.emptyScript:"",Vl=mi.reactiveElementPolyfillSupport,Ms=(l,i)=>l,Os={toAttribute(l,i){switch(i){case Boolean:l=l?vg:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,i){let t=l;switch(i){case Boolean:t=l!==null;break;case Number:t=l===null?null:Number(l);break;case Object:case Array:try{t=JSON.parse(l)}catch{t=null}}return t}},Ja=(l,i)=>!dg(l,i),Vh={attribute:!0,type:String,converter:Os,reflect:!1,hasChanged:Ja},Bh,Uh;(Bh=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Uh=mi.litPropertyMetadata)!=null||(mi.litPropertyMetadata=new WeakMap);var Fr=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Vh){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(i,s,t);n!==void 0&&hg(this.prototype,i,n)}}static getPropertyDescriptor(i,t,s){var u;let{get:n,set:h}=(u=pg(this.prototype,i))!=null?u:{get(){return this[t]},set(x){this[t]=x}};return{get(){return n==null?void 0:n.call(this)},set(x){let R=n==null?void 0:n.call(this);h.call(this,x),this.requestUpdate(i,R,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:Vh}static _$Ei(){if(this.hasOwnProperty(Ms("elementProperties")))return;let i=fg(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Ms("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ms("properties"))){let t=this.properties,s=[...mg(t),...ug(t)];for(let n of s)this.createProperty(n,t[n])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[s,n]of t)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[t,s]of this.elementProperties){let n=this._$Eu(t,s);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let s=new Set(i.flat(1/0).reverse());for(let n of s)t.unshift(Za(n))}else i!==void 0&&t.push(Za(i));return t}static _$Eu(i,t){let s=t.attribute;return s===!1?void 0:typeof s=="string"?s:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,s;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((s=i.hostConnected)==null||s.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let s of t.keys())this.hasOwnProperty(s)&&(i.set(s,this[s]),delete this[s]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return zl(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(s=>{var n;return(n=s.hostConnected)==null?void 0:n.call(s)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var s;return(s=t.hostDisconnected)==null?void 0:s.call(t)})}attributeChangedCallback(i,t,s){this._$AK(i,s)}_$EC(i,t){var h;let s=this.constructor.elementProperties.get(i),n=this.constructor._$Eu(i,s);if(n!==void 0&&s.reflect===!0){let u=(((h=s.converter)==null?void 0:h.toAttribute)!==void 0?s.converter:Os).toAttribute(t,s.type);this._$Em=i,u==null?this.removeAttribute(n):this.setAttribute(n,u),this._$Em=null}}_$AK(i,t){var h;let s=this.constructor,n=s._$Eh.get(i);if(n!==void 0&&this._$Em!==n){let u=s.getPropertyOptions(n),x=typeof u.converter=="function"?{fromAttribute:u.converter}:((h=u.converter)==null?void 0:h.fromAttribute)!==void 0?u.converter:Os;this._$Em=n,this[n]=x.fromAttribute(t,u.type),this._$Em=null}}requestUpdate(i,t,s){var n;if(i!==void 0){if(s!=null||(s=this.constructor.getPropertyOptions(i)),!((n=s.hasChanged)!=null?n:Ja)(this[i],t))return;this.P(i,t,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,s){var n;this._$AL.has(i)||this._$AL.set(i,t),s.reflect===!0&&this._$Em!==i&&((n=this._$Ej)!=null?n:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!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[u,x]of this._$Ep)this[u]=x;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[u,x]of h)x.wrapped!==!0||this._$AL.has(u)||this[u]===void 0||this.P(u,this[u],x)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(n=this._$EO)==null||n.forEach(h=>{var u;return(u=h.hostUpdate)==null?void 0:u.call(h)}),this.update(t)):this._$EU()}catch(h){throw i=!1,this._$EU(),h}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},Gh;Fr.elementStyles=[],Fr.shadowRootOptions={mode:"open"},Fr[Ms("elementProperties")]=new Map,Fr[Ms("finalized")]=new Map,Vl==null||Vl({ReactiveElement:Fr}),((Gh=mi.reactiveElementVersions)!=null?Gh:mi.reactiveElementVersions=[]).push("2.0.4");var Ds=globalThis,Qa=Ds.trustedTypes,Hh=Qa?Qa.createPolicy("lit-html",{createHTML:l=>l}):void 0,Gl="$lit$",$r=`lit$${Math.random().toFixed(9).slice(2)}$`,Hl="?"+$r,gg=`<${Hl}>`,Fi=document,Fs=()=>Fi.createComment(""),$s=l=>l===null||typeof l!="object"&&typeof l!="function",Yl=Array.isArray,Zh=l=>Yl(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",Bl=`[
|
3
|
+
\f\r]`,Ps=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yh=/-->/g,jh=/>/g,Pi=RegExp(`>|${Bl}(?:([^\\s"'>=/]+)(${Bl}*=${Bl}*(?:[^
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Wh=/'/g,qh=/"/g,Jh=/^(?:script|style|textarea|title)$/i,jl=l=>(i,...t)=>({_$litType$:l,strings:i,values:t}),w=jl(1),oT=jl(2),sT=jl(3),ke=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Kh=new WeakMap,Di=Fi.createTreeWalker(Fi,129);function Qh(l,i){if(!Yl(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hh!==void 0?Hh.createHTML(i):i}var tp=(l,i)=>{let t=l.length-1,s=[],n,h=i===2?"<svg>":i===3?"<math>":"",u=Ps;for(let x=0;x<t;x++){let R=l[x],$,j,K=-1,at=0;for(;at<R.length&&(u.lastIndex=at,j=u.exec(R),j!==null);)at=u.lastIndex,u===Ps?j[1]==="!--"?u=Yh:j[1]!==void 0?u=jh:j[2]!==void 0?(Jh.test(j[2])&&(n=RegExp("</"+j[2],"g")),u=Pi):j[3]!==void 0&&(u=Pi):u===Pi?j[0]===">"?(u=n!=null?n:Ps,K=-1):j[1]===void 0?K=-2:(K=u.lastIndex-j[2].length,$=j[1],u=j[3]===void 0?Pi:j[3]==='"'?qh:Wh):u===qh||u===Wh?u=Pi:u===Yh||u===jh?u=Ps:(u=Pi,n=void 0);let J=u===Pi&&l[x+1].startsWith("/>")?" ":"";h+=u===Ps?R+gg:K>=0?(s.push($),R.slice(0,K)+Gl+R.slice(K)+$r+J):R+$r+(K===-2?x:J)}return[Qh(l,h+(l[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),s]},zs=class l{constructor({strings:i,_$litType$:t},s){let n;this.parts=[];let h=0,u=0,x=i.length-1,R=this.parts,[$,j]=tp(i,t);if(this.el=l.createElement($,s),Di.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(n=Di.nextNode())!==null&&R.length<x;){if(n.nodeType===1){if(n.hasAttributes())for(let K of n.getAttributeNames())if(K.endsWith(Gl)){let at=j[u++],J=n.getAttribute(K).split($r),rt=/([.?@])?(.*)/.exec(at);R.push({type:1,index:h,name:rt[2],strings:J,ctor:rt[1]==="."?en:rt[1]==="?"?rn:rt[1]==="@"?on:zi}),n.removeAttribute(K)}else K.startsWith($r)&&(R.push({type:6,index:h}),n.removeAttribute(K));if(Jh.test(n.tagName)){let K=n.textContent.split($r),at=K.length-1;if(at>0){n.textContent=Qa?Qa.emptyScript:"";for(let J=0;J<at;J++)n.append(K[J],Fs()),Di.nextNode(),R.push({type:2,index:++h});n.append(K[at],Fs())}}}else if(n.nodeType===8)if(n.data===Hl)R.push({type:2,index:h});else{let K=-1;for(;(K=n.data.indexOf($r,K+1))!==-1;)R.push({type:7,index:h}),K+=$r.length-1}h++}}static createElement(i,t){let s=Fi.createElement("template");return s.innerHTML=i,s}};function $i(l,i,t=l,s){var u,x,R;if(i===ke)return i;let n=s!==void 0?(u=t.o)==null?void 0:u[s]:t.l,h=$s(i)?void 0:i._$litDirective$;return(n==null?void 0:n.constructor)!==h&&((x=n==null?void 0:n._$AO)==null||x.call(n,!1),h===void 0?n=void 0:(n=new h(l),n._$AT(l,t,s)),s!==void 0?((R=t.o)!=null?R:t.o=[])[s]=n:t.l=n),n!==void 0&&(i=$i(l,n._$AS(l,i.values),n,s)),i}var tn=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var $;let{el:{content:t},parts:s}=this._$AD,n=(($=i==null?void 0:i.creationScope)!=null?$:Fi).importNode(t,!0);Di.currentNode=n;let h=Di.nextNode(),u=0,x=0,R=s[0];for(;R!==void 0;){if(u===R.index){let j;R.type===2?j=new Co(h,h.nextSibling,this,i):R.type===1?j=new R.ctor(h,R.name,R.strings,this,i):R.type===6&&(j=new sn(h,this,i)),this._$AV.push(j),R=s[++x]}u!==(R==null?void 0:R.index)&&(h=Di.nextNode(),u++)}return Di.currentNode=Fi,n}p(i){let t=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(i,s,t),t+=s.strings.length-2):s._$AI(i[t])),t++}},Co=class l{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this.v}constructor(i,t,s,n){var h;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=s,this.options=n,this.v=(h=n==null?void 0:n.isConnected)!=null?h:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=$i(this,i,t),$s(i)?i===W||i==null||i===""?(this._$AH!==W&&this._$AR(),this._$AH=W):i!==this._$AH&&i!==ke&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Zh(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==W&&$s(this._$AH)?this._$AA.nextSibling.data=i:this.T(Fi.createTextNode(i)),this._$AH=i}$(i){var h;let{values:t,_$litType$:s}=i,n=typeof s=="number"?this._$AC(i):(s.el===void 0&&(s.el=zs.createElement(Qh(s.h,s.h[0]),this.options)),s);if(((h=this._$AH)==null?void 0:h._$AD)===n)this._$AH.p(t);else{let u=new tn(n,this),x=u.u(this.options);u.p(t),this.T(x),this._$AH=u}}_$AC(i){let t=Kh.get(i.strings);return t===void 0&&Kh.set(i.strings,t=new zs(i)),t}k(i){Yl(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,s,n=0;for(let h of i)n===t.length?t.push(s=new l(this.O(Fs()),this.O(Fs()),this,this.options)):s=t[n],s._$AI(h),n++;n<t.length&&(this._$AR(s&&s._$AB.nextSibling,n),t.length=n)}_$AR(i=this._$AA.nextSibling,t){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,t);i&&i!==this._$AB;){let n=i.nextSibling;i.remove(),i=n}}setConnected(i){var t;this._$AM===void 0&&(this.v=i,(t=this._$AP)==null||t.call(this,i))}},zi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,s,n,h){this.type=1,this._$AH=W,this._$AN=void 0,this.element=i,this.name=t,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=W}_$AI(i,t=this,s,n){let h=this.strings,u=!1;if(h===void 0)i=$i(this,i,t,0),u=!$s(i)||i!==this._$AH&&i!==ke,u&&(this._$AH=i);else{let x=i,R,$;for(i=h[0],R=0;R<h.length-1;R++)$=$i(this,x[s+R],t,R),$===ke&&($=this._$AH[R]),u||(u=!$s($)||$!==this._$AH[R]),$===W?i=W:i!==W&&(i+=($!=null?$:"")+h[R+1]),this._$AH[R]=$}u&&!n&&this.j(i)}j(i){i===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},en=class extends zi{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===W?void 0:i}},rn=class extends zi{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==W)}},on=class extends zi{constructor(i,t,s,n,h){super(i,t,s,n,h),this.type=5}_$AI(i,t=this){var u;if((i=(u=$i(this,i,t,0))!=null?u:W)===ke)return;let s=this._$AH,n=i===W&&s!==W||i.capture!==s.capture||i.once!==s.once||i.passive!==s.passive,h=i!==W&&(s===W||n);n&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,s;typeof this._$AH=="function"?this._$AH.call((s=(t=this.options)==null?void 0:t.host)!=null?s:this.element,i):this._$AH.handleEvent(i)}},sn=class{constructor(i,t,s){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(i){$i(this,i)}},ep={M:Gl,P:$r,A:Hl,C:1,L:tp,R:tn,D:Zh,V:$i,I:Co,H:zi,N:rn,U:on,B:en,F:sn},Ul=Ds.litHtmlPolyfillSupport,Xh;Ul==null||Ul(zs,Co),((Xh=Ds.litHtmlVersions)!=null?Xh:Ds.litHtmlVersions=[]).push("3.2.0");var rp=(l,i,t)=>{var h,u;let s=(h=t==null?void 0:t.renderBefore)!=null?h:i,n=s._$litPart$;if(n===void 0){let x=(u=t==null?void 0:t.renderBefore)!=null?u:null;s._$litPart$=n=new Co(i.insertBefore(Fs(),x),x,void 0,t!=null?t:{})}return n._$AI(l),n};var ui=class extends Fr{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,s;let i=super.createRenderRoot();return(s=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this.o=rp(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this.o)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.o)==null||i.setConnected(!1)}render(){return ke}},ip;ui._$litElement$=!0,ui.finalized=!0,(ip=globalThis.litElementHydrateSupport)==null||ip.call(globalThis,{LitElement:ui});var Wl=globalThis.litElementPolyfillSupport;Wl==null||Wl({LitElement:ui});var op;((op=globalThis.litElementVersions)!=null?op:globalThis.litElementVersions=[]).push("4.1.0");var bg={attribute:!0,type:String,converter:Os,reflect:!1,hasChanged:Ja},yg=(l=bg,i,t)=>{let{kind:s,metadata:n}=t,h=globalThis.litPropertyMetadata.get(n);if(h===void 0&&globalThis.litPropertyMetadata.set(n,h=new Map),h.set(t.name,l),s==="accessor"){let{name:u}=t;return{set(x){let R=i.get.call(this);i.set.call(this,x),this.requestUpdate(u,R,l)},init(x){return x!==void 0&&this.P(u,void 0,l),x}}}if(s==="setter"){let{name:u}=t;return function(x){let R=this[u];i.call(this,x),this.requestUpdate(u,R,l)}}throw Error("Unsupported decorator location: "+s)};function g(l){return(i,t)=>typeof t=="object"?yg(l,i,t):((s,n,h)=>{let u=n.hasOwnProperty(h);return n.constructor.createProperty(h,u?{...s,wrapped:!0}:s),u?Object.getOwnPropertyDescriptor(n,h):void 0})(l,i,t)}function At(l){return g({...l,state:!0,attribute:!1})}var zr=(l,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(l,i,t),t);function Vr(l,i){return(t,s,n)=>{let h=u=>{var x,R;return(R=(x=u.renderRoot)==null?void 0:x.querySelector(l))!=null?R:null};if(i){let{get:u,set:x}=typeof s=="object"?t:n!=null?n:(()=>{let R=Symbol();return{get(){return this[R]},set($){this[R]=$}}})();return zr(t,s,{get(){let R=u.call(this);return R===void 0&&(R=h(this),(R!==null||this.hasUpdated)&&x.call(this,R)),R}})}return zr(t,s,{get(){return h(this)}})}}function Pt(l){return(i,t)=>{let{slot:s,selector:n}=l!=null?l:{},h="slot"+(s?`[name=${s}]`:":not([name])");return zr(i,t,{get(){var R,$;let u=(R=this.renderRoot)==null?void 0:R.querySelector(h),x=($=u==null?void 0:u.assignedElements(l))!=null?$:[];return n===void 0?x:x.filter(j=>j.matches(n))}})}}function an(l){return(i,t)=>{let{slot:s}=l!=null?l:{},n="slot"+(s?`[name=${s}]`:":not([name])");return zr(i,t,{get(){var u,x;let h=(u=this.renderRoot)==null?void 0:u.querySelector(n);return(x=h==null?void 0:h.assignedNodes(l))!=null?x:[]}})}}var sp=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
|
14
|
+
`;var nn=class extends ui{static register(i){customElements.get(i)||customElements.define(i,this)}};nn.styles=[sp];var ap=nn;var q=ap;var fi=class extends Event{constructor(i,t,s){super("context-request",{bubbles:!0,composed:!0}),this.context=i,this.callback=t,this.subscribe=s!=null?s:!1}};var wo=class{constructor(i,t,s,n){var h;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(u,x)=>{this.unsubscribe&&(this.unsubscribe!==x&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=u,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(u,x)),this.unsubscribe=x},this.host=i,t.context!==void 0){let u=t;this.context=u.context,this.callback=u.callback,this.subscribe=(h=u.subscribe)!=null?h:!1}else this.context=t,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 fi(this.context,this.t,this.subscribe))}};var ln=class{get value(){return this.o}set value(i){this.setValue(i)}setValue(i,t=!1){let s=t||!Object.is(i,this.o);this.o=i,s&&this.updateObservers()}constructor(i){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:s}]of this.subscriptions)t(this.o,s)},i!==void 0&&(this.value=i)}addCallback(i,t,s){if(!s)return void i(this.value);this.subscriptions.has(i)||this.subscriptions.set(i,{disposer:()=>{this.subscriptions.delete(i)},consumerHost:t});let{disposer:n}=this.subscriptions.get(i);i(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var ql=class extends Event{constructor(i){super("context-provider",{bubbles:!0,composed:!0}),this.context=i}},No=class extends ln{constructor(i,t,s){var n,h;super(t.context!==void 0?t.initialValue:s),this.onContextRequest=u=>{let x=u.composedPath()[0];u.context===this.context&&x!==this.host&&(u.stopPropagation(),this.addCallback(u.callback,x,u.subscribe))},this.onProviderRequest=u=>{let x=u.composedPath()[0];if(u.context!==this.context||x===this.host)return;let R=new Set;for(let[$,{consumerHost:j}]of this.subscriptions)R.has($)||(R.add($),j.dispatchEvent(new fi(this.context,$,!0)));u.stopPropagation()},this.host=i,t.context!==void 0?this.context=t.context:this.context=t,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 ql(this.context))}};var Eg=H`
|
15
15
|
:host {
|
16
16
|
display: contents;
|
17
17
|
}
|
18
|
-
`,
|
18
|
+
`,np=Eg;var dn=class extends q{constructor({context:i,initialValue:t}){super(),this.context=new No(this,{context:i,initialValue:t})}render(){return this.updateContext(),w`<slot></slot>`}};dn.styles=[...q.styles,np];var lp=dn;var Er=lp;var Q={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 cp=l=>{class i extends l{constructor(){super(...arguments);this.autofocus=!1}firstUpdated(n){super.firstUpdated(n),this.autofocus&&this.focus()}}return m([g({type:Boolean,reflect:!0})],i.prototype,"autofocus",2),i};var zt=l=>{class i extends l{}return m([g({reflect:!0,type:Boolean})],i.prototype,"disabled",2),i};var He=l=>{class i extends l{constructor(){super(...arguments);this.tabIndex=0}}return m([g({reflect:!0,type:Number})],i.prototype,"tabIndex",2),i};var Tg={PREFIX:"mdc",SEPARATOR:"-"},xg={NAMESPACE:Tg},Kl=xg;var Ag=l=>[Kl.NAMESPACE.PREFIX,l].join(Kl.NAMESPACE.SEPARATOR),Y={constructTagName:Ag};var et={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 Qx=Y.constructTagName("buttonsimple"),Vi={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Lo={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Vs={SIZE:Vi[32],TYPE:Lo.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Et=H`
|
19
19
|
:host {
|
20
20
|
align-items: center;
|
21
21
|
display: flex;
|
@@ -23,7 +23,7 @@
|
|
23
23
|
justify-content: center;
|
24
24
|
width: fit-content;
|
25
25
|
}
|
26
|
-
`,
|
26
|
+
`,hn=H`
|
27
27
|
:host {
|
28
28
|
--mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
|
29
29
|
--mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
|
@@ -36,10 +36,10 @@
|
|
36
36
|
--mdc-focus-ring-middle-offset: var(--mdc-focus-ring-inner-width);
|
37
37
|
--mdc-focus-ring-outer-offset: calc(var(--mdc-focus-ring-inner-width) + var(--mdc-focus-ring-middle-width));
|
38
38
|
}
|
39
|
-
`,
|
39
|
+
`,_t=(l=!1)=>{let i=H`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
|
40
40
|
0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
|
41
41
|
0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
|
42
|
-
`;return l?[
|
42
|
+
`;return l?[hn,H`
|
43
43
|
.mdc-focus-ring:focus-visible {
|
44
44
|
outline: none;
|
45
45
|
}
|
@@ -63,7 +63,7 @@
|
|
63
63
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
64
64
|
}
|
65
65
|
}
|
66
|
-
`]:[
|
66
|
+
`]:[hn,H`
|
67
67
|
:host([disabled]:focus) {
|
68
68
|
box-shadow: none;
|
69
69
|
}
|
@@ -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 _g=[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
|
-
`,...
|
139
|
+
`,..._t()],dp=_g;var lr=class extends cp(He(zt(q))){constructor(){super();this.size=Vs.SIZE;this.role=Vs.ROLE;this.type=Vs.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Vs.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Lo.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Lo.RESET&&this.form&&this.form.reset()}setActive(t,s){this.ariaStateKey&&this.ariaStateKey.split(",").filter(h=>h.trim().startsWith("aria-")).forEach(h=>{s===!0?t.setAttribute(h.trim(),"true"):s===!1?t.setAttribute(h.trim(),"false"):t.removeAttribute(h.trim())})}setSoftDisabled(t,s){s?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,s){s?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){[Q.ENTER,Q.SPACE].includes(t.key)&&(this.classList.add("pressed"),t.key===Q.ENTER&&this.triggerClickEvent(),t.preventDefault())}handleKeyUp(t){[Q.ENTER,Q.SPACE].includes(t.key)&&(this.classList.remove("pressed"),t.key===Q.SPACE&&this.triggerClickEvent())}render(){return w` <slot></slot> `}};lr.formAssociated=!0,lr.styles=[...q.styles,...dp],m([g({type:Boolean,reflect:!0})],lr.prototype,"active",2),m([g({type:Boolean,attribute:"soft-disabled",reflect:!0})],lr.prototype,"softDisabled",2),m([g({type:Number,reflect:!0})],lr.prototype,"size",2),m([g({type:String,reflect:!0})],lr.prototype,"role",2),m([g({type:String,reflect:!0})],lr.prototype,"ariaStateKey",2),m([g({reflect:!0})],lr.prototype,"type",2);var de=lr;var Sg=H`
|
140
140
|
:host {
|
141
141
|
height: 1.5rem;
|
142
142
|
gap: 0.25rem;
|
@@ -238,12 +238,12 @@
|
|
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="${
|
243
|
-
${this.label?
|
241
|
+
`,hp=[Et,Sg,..._t()];var Bs=Y.constructTagName("text"),ot={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"},vt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Pe={TYPE:ot.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:vt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var pp=Y.constructTagName("alertchip"),Bi={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Ro={VARIANT:Bi.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:vt.SPAN,SIZE:Vi[24],ROLE:"button"};var mp=l=>({[Bi.ERROR]:"error-legacy-badge-filled",[Bi.WARNING]:"warning-badge-filled",[Bi.SUCCESS]:"check-circle-badge-filled",[Bi.INFORMATIONAL]:"info-badge-filled",[Bi.NEUTRAL]:"dnd-presence-badge-filled"})[l];var Mo=class extends de{constructor(){super(...arguments);this.variant=Ro.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Ro.SIZE,this.role=Ro.ROLE}render(){return w`
|
242
|
+
<mdc-icon part="icon" name="${mp(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
243
|
+
${this.label?w`<mdc-text part="label" type="${Ro.TEXT_TYPE}" tagname="${Ro.TAG_NAME}"
|
244
244
|
>${this.label}</mdc-text
|
245
245
|
>`:W}
|
246
|
-
`}};
|
246
|
+
`}};Mo.styles=[...q.styles,...hp],m([g({type:String})],Mo.prototype,"variant",2),m([g({type:String})],Mo.prototype,"label",2);var Xl=Mo;var up=H`
|
247
247
|
:host::part(text) {
|
248
248
|
font-size: unset;
|
249
249
|
font-weight: unset;
|
@@ -486,14 +486,14 @@
|
|
486
486
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
487
487
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
488
488
|
}
|
489
|
-
`;var
|
489
|
+
`;var Ig=[H`
|
490
490
|
:host {
|
491
491
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
492
492
|
|
493
493
|
display: block;
|
494
494
|
font-family: var(--mdc-text-font-family);
|
495
495
|
}
|
496
|
-
`,
|
496
|
+
`,up],fp=Ig;var Oo=class extends q{constructor(){super(...arguments);this.type=Pe.TYPE;this.tagname=Pe.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case vt.H1:return w`<h1 part=${Pe.CSS_PART_TEXT}><slot></slot></h1>`;case vt.H2:return w`<h2 part=${Pe.CSS_PART_TEXT}><slot></slot></h2>`;case vt.H3:return w`<h3 part=${Pe.CSS_PART_TEXT}><slot></slot></h3>`;case vt.H4:return w`<h4 part=${Pe.CSS_PART_TEXT}><slot></slot></h4>`;case vt.H5:return w`<h5 part=${Pe.CSS_PART_TEXT}><slot></slot></h5>`;case vt.H6:return w`<h6 part=${Pe.CSS_PART_TEXT}><slot></slot></h6>`;case vt.DIV:return w`<div part=${Pe.CSS_PART_TEXT}><slot></slot></div>`;case vt.SPAN:return w`<span part=${Pe.CSS_PART_TEXT}><slot></slot></span>`;case vt.SMALL:return w`<small part=${Pe.CSS_PART_TEXT}><slot></slot></small>`;case vt.P:default:return w`<p part=${Pe.CSS_PART_TEXT}><slot></slot></p>`}}};Oo.styles=[...q.styles,...fp],m([g({attribute:"type",reflect:!0,type:String})],Oo.prototype,"type",2),m([g({attribute:"tagname",reflect:!0,type:String})],Oo.prototype,"tagname",2);var Zl=Oo;Zl.register(Bs);var kg=Zl;var Cg=l=>{let{host:i,context:t,subscribe:s}=l;return new wo(i,{context:t,subscribe:s!=null?s:!0})},wg={consume:Cg},Tr=wg;var pn=Y.constructTagName("iconprovider"),vp=["svg"],gp=["em","rem","px","%"],Ng={px:16,em:1,rem:1,"%":100},Br={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Ng.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var mn=class{};mn.context=pn;var un=mn;var xr=class extends Er{constructor(){super({context:un.context,initialValue:new un});this.iconSet=Br.ICON_SET;this.fileExtension=Br.FILE_EXTENSION;this.lengthUnit=Br.LENGTH_UNIT;this.size=Br.SIZE}static get Context(){return un.context}updateValuesInContext(){this.fileExtension&&vp.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Br.FILE_EXTENSION,this.context.value.fileExtension=Br.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&&gp.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Br.LENGTH_UNIT,this.context.value.lengthUnit=Br.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())}};m([g({type:String,attribute:"icon-set",reflect:!0})],xr.prototype,"iconSet",2),m([g({type:String})],xr.prototype,"url",2),m([g({type:String,attribute:"file-extension",reflect:!0})],xr.prototype,"fileExtension",2),m([g({type:String,attribute:"length-unit",reflect:!0})],xr.prototype,"lengthUnit",2),m([g({type:Number,reflect:!0})],xr.prototype,"size",2),m([g({type:String,attribute:"cache-strategy"})],xr.prototype,"cacheStrategy",2),m([g({type:String,attribute:"cache-name"})],xr.prototype,"cacheName",2);var Us=xr;var Lg=[Et,H`
|
497
497
|
:host {
|
498
498
|
--mdc-icon-fill-color: currentColor;
|
499
499
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -508,11 +508,11 @@
|
|
508
508
|
width: 100%;
|
509
509
|
fill: var(--mdc-icon-fill-color);
|
510
510
|
}
|
511
|
-
`,...At()],mp=Ag;var Vs={},up=async l=>(Vs[l]===void 0&&(Vs[l]=new Map),{async set(i,t){Vs[l].set(i.url,await t.text())},async get(i){return Vs[l].get(i.url)},async delete(i){Vs[l].delete(i.url)}}),fp=async l=>{let i=await caches.open(l);return{set:async(t,s)=>{await i.put(t,s)},get:async t=>{let s=await i.match(t);return s==null?void 0:s.text()},delete:async t=>{await i.delete(t)}}},vp=async(l,i)=>i==="in-memory-cache"?up(l):fp(l);var gp=async l=>fetch(l).then(i=>{if(!i.ok)throw new Error("There was a problem while fetching the icon!");return i}),bp=async({url:l,name:i,fileExtension:t,cacheStrategy:s,cacheName:n,renewSignal:h})=>{let m=h(),x=new Request(`${l}/${i}.${t}`,{signal:m});return!n||!s||!["in-memory-cache","web-cache-api"].includes(s)?gp(x).then(R=>R.text()):vp(n,s).then(R=>R.get(x).then($=>$||gp(x.clone()).then(Y=>{var K;return Y.status<400&&Y.headers.has("content-type")?(K=R.set)==null?void 0:K.call(R,x,Y.clone()).then(()=>Y.text()):Y.text()})).catch($=>{throw new Error(`Error in caching the Icon ${i}, ${$}`)}))};var yp=j.constructTagName("icon"),ql={NAME:void 0,SIZE:1};var Oe=class extends q{constructor(){super();this.name=ql.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=yr.consume({host:this,context:zs.Context});this.abortController=new AbortController}prepareIconElement(t){let s=new DOMParser().parseFromString(t,"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:x}=this.iconProviderContext.value;if(m==="custom-icons"&&n&&s&&this.name){let R=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return bp({url:n,name:this.name,fileExtension:s,cacheName:h,cacheStrategy:x,renewSignal:R}).then($=>{let Y=this.prepareIconElement($);this.handleIconLoadedSuccess(Y)}).catch($=>{this.handleIconLoadedFailure($)})}if(m==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(R=>{this.handleIconLoadedSuccess(R.default())}).catch(R=>{this.handleIconLoadedFailure(R)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let s=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(s)}handleIconLoadedFailure(t){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(s)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let s=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",s)}}get computedIconSize(){var t,s;return(s=(t=this.size)!=null?t:this.sizeFromContext)!=null?s:ql.SIZE}updated(t){var s,n,h,m;super.updated(t),t.has("name")&&this.getIconData().catch(x=>{x.name!=="AbortError"&&this.onerror&&this.onerror(x)}),(t.has("ariaLabel")||t.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(t.has("size")||t.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 L` ${this.iconData} `}};Oe.styles=[...q.styles,...mp],f([It()],Oe.prototype,"iconData",2),f([It()],Oe.prototype,"lengthUnitFromContext",2),f([It()],Oe.prototype,"sizeFromContext",2),f([g({type:String,reflect:!0})],Oe.prototype,"name",2),f([g({type:Number})],Oe.prototype,"size",2),f([g({type:String,attribute:"length-unit"})],Oe.prototype,"lengthUnit",2),f([g({type:String,attribute:"aria-label"})],Oe.prototype,"ariaLabel",2),f([g({type:String,attribute:"aria-labelledby"})],Oe.prototype,"ariaLabelledBy",2),f([It()],Oe.prototype,"abortController",2);var Kl=Oe;Kl.register(yp);var _g=Kl;Yl.register(np);var Sg=Yl;var{I:MA}=Xh;var hn=l=>l.strings===void 0;var Ig={},Ep=(l,i=Ig)=>l._$AH=i;var nr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},zi=l=>(...i)=>({_$litDirective$:l,values:i}),pi=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,s){this.t=i,this._$AM=t,this.i=s}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var Bs=(l,i)=>{var s;let t=l._$AN;if(t===void 0)return!1;for(let n of t)(s=n._$AO)==null||s.call(n,i,!1),Bs(n,i);return!0},pn=l=>{let i,t;do{if((i=l._$AM)===void 0)break;t=i._$AN,t.delete(l),l=i}while((t==null?void 0:t.size)===0)},Tp=l=>{for(let i;i=l._$AM;l=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(l))break;t.add(l),wg(i)}};function kg(l){this._$AN!==void 0?(pn(this),this._$AM=l,Tp(this)):this._$AM=l}function Cg(l,i=!1,t=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(i)if(Array.isArray(s))for(let h=t;h<s.length;h++)Bs(s[h],!1),pn(s[h]);else s!=null&&(Bs(s,!1),pn(s));else Bs(this,l)}var wg=l=>{var i,t;l.type==nr.CHILD&&((i=l._$AP)!=null||(l._$AP=Cg),(t=l._$AQ)!=null||(l._$AQ=kg))},mn=class extends pi{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,s){super._$AT(i,t,s),Tp(this),this.isConnected=i._$AU}_$AO(i,t=!0){var s,n;i!==this.isConnected&&(this.isConnected=i,i?(s=this.reconnected)==null||s.call(this):(n=this.disconnected)==null||n.call(this)),t&&(Bs(this,i),pn(this))}setValue(i){if(hn(this.t))this.t._$AI(i,this);else{let t=[...this.t._$AH];t[this.i]=i,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var un=()=>new Zl,Zl=class{},Xl=new WeakMap,fn=zi(class extends mn{render(l){return W}update(l,[i]){var s;let t=i!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=i,this.ht=(s=l.options)==null?void 0:s.host,this.rt(this.ct=l.element)),W}rt(l){var i;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let t=(i=this.ht)!=null?i:globalThis,s=Xl.get(t);s===void 0&&(s=new WeakMap,Xl.set(t,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,i,t;return typeof this.Y=="function"?(i=Xl.get((l=this.ht)!=null?l:globalThis))==null?void 0:i.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Sp=eg(xp());var Jl={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 Lg=[Et,H`
|
511
|
+
`,..._t()],bp=Lg;var Gs={},yp=async l=>(Gs[l]===void 0&&(Gs[l]=new Map),{async set(i,t){Gs[l].set(i.url,await t.text())},async get(i){return Gs[l].get(i.url)},async delete(i){Gs[l].delete(i.url)}}),Ep=async l=>{let i=await caches.open(l);return{set:async(t,s)=>{await i.put(t,s)},get:async t=>{let s=await i.match(t);return s==null?void 0:s.text()},delete:async t=>{await i.delete(t)}}},Tp=async(l,i)=>i==="in-memory-cache"?yp(l):Ep(l);var xp=async l=>fetch(l).then(i=>{if(!i.ok)throw new Error("There was a problem while fetching the icon!");return i}),Ap=async({url:l,name:i,fileExtension:t,cacheStrategy:s,cacheName:n,renewSignal:h})=>{let u=h(),x=new Request(`${l}/${i}.${t}`,{signal:u});return!n||!s||!["in-memory-cache","web-cache-api"].includes(s)?xp(x).then(R=>R.text()):Tp(n,s).then(R=>R.get(x).then($=>$||xp(x.clone()).then(j=>{var K;return j.status<400&&j.headers.has("content-type")?(K=R.set)==null?void 0:K.call(R,x,j.clone()).then(()=>j.text()):j.text()})).catch($=>{throw new Error(`Error in caching the Icon ${i}, ${$}`)}))};var _p=Y.constructTagName("icon"),Jl={NAME:void 0,SIZE:1};var De=class extends q{constructor(){super();this.name=Jl.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Tr.consume({host:this,context:Us.Context});this.abortController=new AbortController}prepareIconElement(t){let s=new DOMParser().parseFromString(t,"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:u,cacheStrategy:x}=this.iconProviderContext.value;if(u==="custom-icons"&&n&&s&&this.name){let R=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Ap({url:n,name:this.name,fileExtension:s,cacheName:h,cacheStrategy:x,renewSignal:R}).then($=>{let j=this.prepareIconElement($);this.handleIconLoadedSuccess(j)}).catch($=>{this.handleIconLoadedFailure($)})}if(u==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(R=>{this.handleIconLoadedSuccess(R.default())}).catch(R=>{this.handleIconLoadedFailure(R)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let s=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(s)}handleIconLoadedFailure(t){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(s)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let s=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",s)}}get computedIconSize(){var t,s;return(s=(t=this.size)!=null?t:this.sizeFromContext)!=null?s:Jl.SIZE}updated(t){var s,n,h,u;super.updated(t),t.has("name")&&this.getIconData().catch(x=>{x.name!=="AbortError"&&this.onerror&&this.onerror(x)}),(t.has("ariaLabel")||t.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(t.has("size")||t.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=(u=this.iconProviderContext.value)==null?void 0:u.size,this.updateSize())}render(){return w` ${this.iconData} `}};De.styles=[...q.styles,...bp],m([At()],De.prototype,"iconData",2),m([At()],De.prototype,"lengthUnitFromContext",2),m([At()],De.prototype,"sizeFromContext",2),m([g({type:String,reflect:!0})],De.prototype,"name",2),m([g({type:Number})],De.prototype,"size",2),m([g({type:String,attribute:"length-unit"})],De.prototype,"lengthUnit",2),m([g({type:String,attribute:"aria-label"})],De.prototype,"ariaLabel",2),m([g({type:String,attribute:"aria-labelledby"})],De.prototype,"ariaLabelledBy",2),m([At()],De.prototype,"abortController",2);var Ql=De;Ql.register(_p);var Rg=Ql;Xl.register(pp);var Mg=Xl;var{I:GA}=ep;var fn=l=>l.strings===void 0;var Og={},Sp=(l,i=Og)=>l._$AH=i;var cr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ui=l=>(...i)=>({_$litDirective$:l,values:i}),vi=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,s){this.t=i,this._$AM=t,this.i=s}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var Hs=(l,i)=>{var s;let t=l._$AN;if(t===void 0)return!1;for(let n of t)(s=n._$AO)==null||s.call(n,i,!1),Hs(n,i);return!0},vn=l=>{let i,t;do{if((i=l._$AM)===void 0)break;t=i._$AN,t.delete(l),l=i}while((t==null?void 0:t.size)===0)},Ip=l=>{for(let i;i=l._$AM;l=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(l))break;t.add(l),Fg(i)}};function Pg(l){this._$AN!==void 0?(vn(this),this._$AM=l,Ip(this)):this._$AM=l}function Dg(l,i=!1,t=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(i)if(Array.isArray(s))for(let h=t;h<s.length;h++)Hs(s[h],!1),vn(s[h]);else s!=null&&(Hs(s,!1),vn(s));else Hs(this,l)}var Fg=l=>{var i,t;l.type==cr.CHILD&&((i=l._$AP)!=null||(l._$AP=Dg),(t=l._$AQ)!=null||(l._$AQ=Pg))},gn=class extends vi{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,s){super._$AT(i,t,s),Ip(this),this.isConnected=i._$AU}_$AO(i,t=!0){var s,n;i!==this.isConnected&&(this.isConnected=i,i?(s=this.reconnected)==null||s.call(this):(n=this.disconnected)==null||n.call(this)),t&&(Hs(this,i),vn(this))}setValue(i){if(fn(this.t))this.t._$AI(i,this);else{let t=[...this.t._$AH];t[this.i]=i,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var bn=()=>new ec,ec=class{},tc=new WeakMap,yn=Ui(class extends gn{render(l){return W}update(l,[i]){var s;let t=i!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=i,this.ht=(s=l.options)==null?void 0:s.host,this.rt(this.ct=l.element)),W}rt(l){var i;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let t=(i=this.ht)!=null?i:globalThis,s=tc.get(t);s===void 0&&(s=new WeakMap,tc.set(t,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,i,t;return typeof this.Y=="function"?(i=tc.get((l=this.ht)!=null?l:globalThis))==null?void 0:i.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Np=cg(kp());var rc={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 $g=[Et,H`
|
512
512
|
:host svg {
|
513
513
|
display: block;
|
514
514
|
}
|
515
|
-
`],
|
515
|
+
`],Cp=$g;var wp=Y.constructTagName("animation"),Tn={NAME:void 0,AUTO_PLAY:!0,LOOP:"true"};var Ur=class extends q{constructor(){super(...arguments);this.name=Tn.NAME;this.loop=Tn.LOOP;this.autoplay=Tn.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledBy=null;this.containerRef=bn();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=Np.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(s)}getAnimationData(){this.name&&rc[this.name]?import(`@momentum-design/animations/dist/lottie${rc[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(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null)}render(){return w`<div aria-hidden="true" ${yn(this.containerRef)}></div>`}};Ur.styles=[...q.styles,...Cp],m([g({type:String,reflect:!0})],Ur.prototype,"name",2),m([g({type:String,reflect:!0})],Ur.prototype,"loop",2),m([g({type:Boolean,reflect:!0})],Ur.prototype,"autoplay",2),m([g({type:String,attribute:"aria-label"})],Ur.prototype,"ariaLabel",2),m([g({type:String,attribute:"aria-labelledby"})],Ur.prototype,"ariaLabelledBy",2);var ic=Ur;ic.register(wp);var zg=ic;var Vg=H`
|
516
516
|
:host {
|
517
517
|
--mdc-appheader-height: 4rem;
|
518
518
|
}
|
@@ -545,7 +545,7 @@
|
|
545
545
|
:host::part(trailing-section) {
|
546
546
|
justify-content: flex-end;
|
547
547
|
}
|
548
|
-
`,
|
548
|
+
`,Lp=[Vg];var xn=class extends q{render(){return w` <header part="container">
|
549
549
|
<div part="leading-section">
|
550
550
|
<slot name="leading"></slot>
|
551
551
|
</div>
|
@@ -555,7 +555,7 @@
|
|
555
555
|
<div part="trailing-section">
|
556
556
|
<slot name="trailing"></slot>
|
557
557
|
</div>
|
558
|
-
</header>`}};
|
558
|
+
</header>`}};xn.styles=[...q.styles,...Lp];var oc=xn;var Rp=Y.constructTagName("appheader");oc.register(Rp);var Bg=oc;var nt=l=>l!=null?l:W;var Mp=Y.constructTagName("avatar"),ue={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},sc=99,Ug="user-regular",Dt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Po={TYPE:ue.PHOTO,SIZE:Dt[32],ICON_NAME:Ug};var An=l=>{class i extends l{constructor(){super(...arguments);this.size=Po.SIZE;this.isTyping=!1}}return m([g({type:String})],i.prototype,"src",2),m([g({type:String})],i.prototype,"initials",2),m([g({type:String})],i.prototype,"presence",2),m([g({type:Number,reflect:!0,attribute:"size"})],i.prototype,"size",2),m([g({type:Number})],i.prototype,"counter",2),m([g({type:Boolean,attribute:"is-typing"})],i.prototype,"isTyping",2),i};var Qt=l=>{class i extends l{}return m([g({type:String,attribute:"icon-name"})],i.prototype,"iconName",2),i};var Gg=[Et,H`
|
559
559
|
:host {
|
560
560
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
561
561
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -682,9 +682,9 @@
|
|
682
682
|
outline: 0.125rem solid;
|
683
683
|
}
|
684
684
|
}
|
685
|
-
`],
|
686
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
687
|
-
`:W}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
|
685
|
+
`],Op=Gg;var Pp=Y.constructTagName("presence"),he={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"},te={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Do={TYPE:he.ACTIVE,SIZE:te.SMALL};var Dp=l=>({[Dt[124]]:te.XX_LARGE,[Dt[88]]:te.X_LARGE,[Dt[72]]:te.LARGE,[Dt[64]]:te.MIDSIZE,[Dt[48]]:te.SMALL,[Dt[32]]:te.X_SMALL,[Dt[24]]:te.XX_SMALL})[l]||te.X_SMALL,Fp=l=>({[Dt[124]]:4.75,[Dt[88]]:3,[Dt[72]]:2.5,[Dt[64]]:2.25,[Dt[48]]:1.75,[Dt[32]]:1.25,[Dt[24]]:1})[l]||1.25,$p=l=>({[Dt[124]]:ot.HEADING_XLARGE_MEDIUM,[Dt[88]]:ot.HEADING_LARGE_MEDIUM,[Dt[72]]:ot.HEADING_MIDSIZE_MEDIUM,[Dt[64]]:ot.HEADING_SMALL_MEDIUM,[Dt[48]]:ot.HEADING_SMALL_MEDIUM,[Dt[32]]:ot.BODY_MIDSIZE_MEDIUM,[Dt[24]]:ot.BODY_SMALL_MEDIUM})[l]||ot.BODY_MIDSIZE_MEDIUM;var js=class extends An(Qt(q)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(t){return t===ue.COUNTER&&(this.counter||this.counter===0)||this.isTyping?W:this.presence?w`
|
686
|
+
<mdc-presence part="presence" type="${this.presence}" size="${Dp(this.size)}"></mdc-presence>
|
687
|
+
`:W}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 w`
|
688
688
|
<img
|
689
689
|
part="photo"
|
690
690
|
src="${nt(this.src)}"
|
@@ -693,14 +693,14 @@
|
|
693
693
|
@load="${this.handleOnLoad}"
|
694
694
|
@error="${this.handleOnError}"
|
695
695
|
/>
|
696
|
-
`}iconTemplate(){let t=this.iconName||
|
697
|
-
<mdc-icon name="${nt(t)}" length-unit="rem" size="${
|
698
|
-
`}textTemplate(t){return
|
696
|
+
`}iconTemplate(){let t=this.iconName||Po.ICON_NAME;return w`
|
697
|
+
<mdc-icon name="${nt(t)}" length-unit="rem" size="${Fp(this.size)}"></mdc-icon>
|
698
|
+
`}textTemplate(t){return w` <mdc-text type="${$p(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>sc?`${sc}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let s="";return t===ue.TEXT&&this.initials&&(s=this.generateInitialsText(this.initials)),t===ue.COUNTER&&(this.counter||this.counter===0)&&(s=this.generateCounterText(this.counter)),this.textTemplate(s)}getTypeBasedOnInputs(){return this.src?ue.PHOTO:this.iconName?ue.ICON:this.initials?ue.TEXT:this.counter||this.counter===0?ue.COUNTER:ue.ICON}getTemplateBasedOnType(t){switch(t){case ue.PHOTO:return this.photoTemplate();case ue.TEXT:case ue.COUNTER:return this.generateTextContent(t);case ue.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?w`<div part="loading-wrapper"><div part="loader"></div></div>`:W}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?W:t===ue.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():W}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return w`
|
699
699
|
<div part="content" aria-hidden="true">
|
700
700
|
${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
|
701
701
|
${this.getPresenceTemplateBasedOnType(t)}
|
702
702
|
</div>
|
703
|
-
`}};
|
703
|
+
`}};js.styles=[...q.styles,...Op],m([At()],js.prototype,"isPhotoLoaded",2);var ac=js;var Hg=[Et,H`
|
704
704
|
:host {
|
705
705
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
706
706
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -794,7 +794,7 @@
|
|
794
794
|
.mdc-presence-icon__scheduled {
|
795
795
|
color: var(--mdc-presence-scheduled-background-color);
|
796
796
|
}
|
797
|
-
`],
|
797
|
+
`],zp=Hg;var Vp=l=>{switch(l){case he.AWAY:return"recents-presence-badge-filled";case he.AWAY_CALLING:return"away-calling-presence-filled";case he.BUSY:return"busy-presence-bold";case he.DND:return"dnd-presence-badge-filled";case he.MEETING:return"camera-filled";case he.ON_CALL:return"handset-filled";case he.ON_DEVICE:return"generic-device-video-badge-filled";case he.ON_MOBILE:return"phone-badge-filled";case he.PAUSE:return"pause-badge-filled";case he.PTO:return"pto-presence-filled";case he.PRESENTING:return"share-screen-badge-filled";case he.QUIET:return"quiet-hours-presence-filled";case he.SCHEDULED:return"meetings-presence-badge-filled";case he.ACTIVE:default:return"active-presence-small-filled"}};var Gi=class extends q{constructor(){super(...arguments);this.type=Do.TYPE;this.size=Do.SIZE;this.currentIconType=Do.TYPE}get iconSize(){switch(this.size){case te.MIDSIZE:return 1.16125;case te.LARGE:return 1.30625;case te.X_LARGE:return 1.596875;case te.XX_LARGE:return 2.25;case te.XX_SMALL:case te.X_SMALL:case te.SMALL:default:return this.size=Do.SIZE,.875}}get icon(){let t=Vp(this.type);return t==="active-presence-small-filled"&&(this.type=Do.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return w`
|
798
798
|
<div class="mdc-presence mdc-presence__${this.size}">
|
799
799
|
<mdc-icon
|
800
800
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -804,7 +804,7 @@
|
|
804
804
|
@error="${this.handleOnError}"
|
805
805
|
></mdc-icon>
|
806
806
|
</div>
|
807
|
-
`}};
|
807
|
+
`}};Gi.styles=[...q.styles,...zp],m([g({type:String,reflect:!0})],Gi.prototype,"type",2),m([g({type:String,reflect:!0})],Gi.prototype,"size",2),m([At()],Gi.prototype,"currentIconType",2);var nc=Gi;nc.register(Pp);var Yg=nc;ac.register(Mp);var jg=ac;var Gr=Y.constructTagName("button"),Ft={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ws={40:40,32:32,28:28,24:24},Ar={64:64,52:52,20:20,...Ws},Hi={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Fo={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ce={VARIANT:Ft.PRIMARY,SIZE:Ws[32],COLOR:Hi.DEFAULT,TYPE_INTERNAL:Fo.ICON,TYPE:Lo.BUTTON,INVERTED:!1};var Wg=[Et,H`
|
808
808
|
:host {
|
809
809
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
810
810
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
@@ -833,7 +833,7 @@
|
|
833
833
|
:host::part(presence) {
|
834
834
|
z-index: 2;
|
835
835
|
}
|
836
|
-
`,...
|
836
|
+
`,..._t()],Bp=Wg;var qs=class extends An(Qt(de)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=et.BUTTON,this.type=Ce.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Dt).includes(t)?`${t}`:Po.SIZE.toString())}render(){return w`
|
837
837
|
<div part="overlay" aria-hidden="true"></div>
|
838
838
|
<mdc-avatar
|
839
839
|
exportparts="content, photo, presence, loading-wrapper, loader"
|
@@ -845,7 +845,7 @@
|
|
845
845
|
size="${nt(this.size)}"
|
846
846
|
src="${nt(this.src)}"
|
847
847
|
></mdc-avatar>
|
848
|
-
`}};
|
848
|
+
`}};qs.styles=[...Bp],m([g({type:String,attribute:"aria-label"})],qs.prototype,"ariaLabel",2);var lc=qs;var Up=Y.constructTagName("avatarbutton");lc.register(Up);var qg=lc;var _r=Ui(class extends vi{constructor(l){var i;if(super(l),l.type!==cr.ATTRIBUTE||l.name!=="class"||((i=l.strings)==null?void 0:i.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(i=>l[i]).join(" ")+" "}update(l,[i]){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 i)i[h]&&!((s=this.nt)!=null&&s.has(h))&&this.st.add(h);return this.render(i)}let t=l.element.classList;for(let h of this.st)h in i||(t.remove(h),this.st.delete(h));for(let h in i){let u=!!i[h];u===this.st.has(h)||(n=this.nt)!=null&&n.has(h)||(u?(t.add(h),this.st.add(h)):(t.remove(h),this.st.delete(h)))}return ke}});var Gp=Y.constructTagName("badge"),Ye={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},_n={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Sn={PRIMARY:"primary",SECONDARY:"secondary"},Ks={SUCCESS:"success",WARNING:"warning",ERROR:"error"},fI={...Sn,...Ks},gi={TYPE:Ye.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Sn.PRIMARY,ICON_SIZE:1};var Kg=[Et,H`
|
849
849
|
:host {
|
850
850
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
851
851
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -921,21 +921,21 @@
|
|
921
921
|
outline: none;
|
922
922
|
}
|
923
923
|
}
|
924
|
-
`],
|
924
|
+
`],Hp=Kg;var Sr=class extends Qt(q){constructor(){super(...arguments);this.variant=gi.VARIANT;this.maxCounter=gi.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(t,s){return s===void 0||typeof s!="number"||t===0?"":s>t?`${t}+`:t>gi.MAX_COUNTER_LIMIT||s>gi.MAX_COUNTER_LIMIT?`${gi.MAX_COUNTER_LIMIT}+`:s.toString()}getBadgeIcon(t,s){return w`
|
925
925
|
<mdc-icon
|
926
|
-
class="mdc-badge-icon ${
|
926
|
+
class="mdc-badge-icon ${_r({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${s}`]:!0})}"
|
927
927
|
name="${nt(t)}"
|
928
|
-
size="${
|
928
|
+
size="${gi.ICON_SIZE}"
|
929
929
|
></mdc-icon>
|
930
|
-
`}getBadgeDot(){return
|
930
|
+
`}getBadgeDot(){return w`<div class="mdc-badge-dot ${_r({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return w`
|
931
931
|
<mdc-text
|
932
932
|
type="${ot.BODY_SMALL_MEDIUM}"
|
933
933
|
tagname="${vt.DIV}"
|
934
|
-
class="mdc-badge-text ${
|
934
|
+
class="mdc-badge-text ${_r({"mdc-badge-overlay":this.overlay})}"
|
935
935
|
>
|
936
936
|
${this.getCounterText(this.maxCounter,this.counter)}
|
937
937
|
</mdc-text>
|
938
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role=et.IMG:this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(
|
938
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role=et.IMG:this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Sn).includes(this.variant)&&(this.variant=gi.VARIANT);let{iconName:t,type:s,variant:n}=this;switch(s){case Ye.ICON:return this.getBadgeIcon(t||"",n);case Ye.COUNTER:return this.getBadgeCounterText();case Ye.SUCCESS:return this.getBadgeIcon(_n.SUCCESS_ICON_NAME,Ks.SUCCESS);case Ye.WARNING:return this.getBadgeIcon(_n.WARNING_ICON_NAME,Ks.WARNING);case Ye.ERROR:return this.getBadgeIcon(_n.ERROR_ICON_NAME,Ks.ERROR);case Ye.DOT:default:return this.type=Ye.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Sr.styles=[...q.styles,...Hp],m([g({type:String,reflect:!0})],Sr.prototype,"type",2),m([g({type:String,reflect:!0})],Sr.prototype,"variant",2),m([g({type:Number})],Sr.prototype,"counter",2),m([g({type:Number,attribute:"max-counter",reflect:!0})],Sr.prototype,"maxCounter",2),m([g({type:Boolean})],Sr.prototype,"overlay",2),m([g({type:String,attribute:"aria-label"})],Sr.prototype,"ariaLabel",2);var cc=Sr;cc.register(Gp);var Xg=cc;var Zg=H`
|
939
939
|
:host {
|
940
940
|
display: block;
|
941
941
|
height: 100%;
|
@@ -944,7 +944,7 @@
|
|
944
944
|
height: 100%;
|
945
945
|
width: 100%;
|
946
946
|
}
|
947
|
-
`,
|
947
|
+
`,Yp=[Zg];var jp=Y.constructTagName("brandvisual"),Wp={NAME:void 0};var $o=class extends q{constructor(){super(...arguments);this.name=Wp.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(t){super.updated(t),t.has("name")&&this.getBrandVisualData().catch(s=>{this.onerror&&this.onerror(s)})}handleBrandVisualLoadedSuccess(t){this.brandVisualData=t;let s=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(s)}handleBrandVisualLoadedFailure(t){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(s)}render(){return w` ${this.brandVisualData} `}};$o.styles=[...q.styles,...Yp],m([At()],$o.prototype,"brandVisualData",2),m([g({type:String,reflect:!0})],$o.prototype,"name",2);var dc=$o;dc.register(jp);var Jg=dc;var Qg=H`
|
948
948
|
:host {
|
949
949
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
950
950
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -965,7 +965,7 @@
|
|
965
965
|
:host([size='large']) {
|
966
966
|
height: var(--mdc-bullet-size-large);
|
967
967
|
}
|
968
|
-
`,
|
968
|
+
`,qp=[Qg];var Kp=Y.constructTagName("bullet"),Xp={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Xs=class extends q{constructor(){super(...arguments);this.size=Xp.SMALL}};Xs.styles=[...q.styles,...qp],m([g({type:String,reflect:!0})],Xs.prototype,"size",2);var hc=Xs;hc.register(Kp);var tb=hc;var In=l=>{class i extends l{constructor(){super(...arguments);this.variant=Ce.VARIANT;this.color=Ce.COLOR;this.typeInternal=Ce.TYPE_INTERNAL}setVariant(n){this.setAttribute("variant",Object.values(Ft).includes(n)?n:Ce.VARIANT)}setColor(n){!Object.values(Hi).includes(n)||this.variant===Ft.TERTIARY?this.setAttribute("color",`${Ce.COLOR}`):this.setAttribute("color",n)}setSize(n){let u=this.typeInternal===Fo.ICON?Object.values(Ar).includes(n)&&!(n===Ar[20]&&this.variant!==Ft.TERTIARY):Object.values(Ws).includes(n);this.setAttribute("size",u?`${n}`:`${Ce.SIZE}`)}inferButtonType(){var h,u;let n=(u=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"))==null?void 0:u.assignedNodes().filter(x=>{var R;return x.nodeType!==Node.TEXT_NODE||((R=x.textContent)==null?void 0:R.trim())}).length;n&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Fo.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!n&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Fo.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Fo.PILL,this.setAttribute("data-btn-type","pill"))}}return m([g({type:String,attribute:"prefix-icon",reflect:!0})],i.prototype,"prefixIcon",2),m([g({type:String,attribute:"postfix-icon",reflect:!0})],i.prototype,"postfixIcon",2),m([g({type:String})],i.prototype,"variant",2),m([g({type:String})],i.prototype,"color",2),m([At()],i.prototype,"typeInternal",2),i};var eb=H`
|
969
969
|
:host {
|
970
970
|
background-color: transparent;
|
971
971
|
border-radius: 1.25rem;
|
@@ -1213,19 +1213,19 @@
|
|
1213
1213
|
:host::part(postfix-icon) {
|
1214
1214
|
flex-shrink: 0;
|
1215
1215
|
}
|
1216
|
-
`,
|
1217
|
-
${this.prefixFilledIconName?
|
1216
|
+
`,Zp=[eb];var Yi=l=>{let i=l.split("-"),t=["bold","filled","regular","light"];return i.filter(s=>!t.includes(s)).join("-")};var Hr=class extends In(de){constructor(){super(...arguments);this.size=Ce.SIZE;this.inverted=Ce.INVERTED;this.role=et.BUTTON}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Yi(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Yi(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return w`
|
1217
|
+
${this.prefixFilledIconName?w` <mdc-icon
|
1218
1218
|
name="${this.prefixFilledIconName}"
|
1219
1219
|
part="prefix-icon"
|
1220
1220
|
length-unit="rem"
|
1221
1221
|
></mdc-icon>`:""}
|
1222
1222
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1223
|
-
${this.postfixFilledIconName?
|
1223
|
+
${this.postfixFilledIconName?w` <mdc-icon
|
1224
1224
|
name="${this.postfixFilledIconName}"
|
1225
1225
|
part="postfix-icon"
|
1226
1226
|
length-unit="rem"
|
1227
1227
|
></mdc-icon>`:""}
|
1228
|
-
`}};
|
1228
|
+
`}};Hr.styles=[...de.styles,...Zp],m([g({type:Number})],Hr.prototype,"size",2),m([g({type:Boolean,reflect:!0})],Hr.prototype,"inverted",2),m([g({type:String,reflect:!0})],Hr.prototype,"role",2),m([At()],Hr.prototype,"prefixFilledIconName",2),m([At()],Hr.prototype,"postfixFilledIconName",2);var ji=Hr;ji.register(Gr);var rb=ji;var Jp=Y.constructTagName("buttongroup"),ib={40:40,32:32,28:28,24:24},ob={HORIZONTAL:"horizontal",VERTICAL:"vertical"},sb={PRIMARY:"primary",SECONDARY:"secondary"},kn={SIZE:ib[28],VARIANT:sb.PRIMARY,ORIENTATION:ob.HORIZONTAL};var ab=H`
|
1229
1229
|
:host {
|
1230
1230
|
--mdc-buttongroup-border-radius: 1.25rem;
|
1231
1231
|
--mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
|
@@ -1302,7 +1302,7 @@
|
|
1302
1302
|
:host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
|
1303
1303
|
width: 2.5rem;
|
1304
1304
|
}
|
1305
|
-
`,
|
1305
|
+
`,Qp=[Et,ab];var Yr=class extends q{constructor(){super(...arguments);this.orientation=kn.ORIENTATION;this.variant=kn.VARIANT;this.size=kn.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(t=>{t.setAttribute("size",this.size.toString()),t.setAttribute("variant",this.variant)})}updated(t){super.updated(t),(t.has("size")||t.has("variant"))&&this.handleSlotChange()}render(){return w`<slot @slotchange=${this.handleSlotChange}></slot>`}};Yr.styles=[...q.styles,...Qp],m([g({type:String,reflect:!0})],Yr.prototype,"orientation",2),m([g({type:String,reflect:!0})],Yr.prototype,"variant",2),m([g({type:Number,reflect:!0})],Yr.prototype,"size",2),m([g({type:Boolean,reflect:!0})],Yr.prototype,"compact",2),m([Pt({selector:"mdc-button"})],Yr.prototype,"buttons",2);var pc=Yr;pc.register(Jp);var nb=pc;var tm=Y.constructTagName("linksimple"),zo={INLINE:!1,INVERTED:!1};var lb=[Et,H`
|
1306
1306
|
:host {
|
1307
1307
|
--mdc-link-border-radius: 0.25rem;
|
1308
1308
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
@@ -1368,33 +1368,33 @@
|
|
1368
1368
|
text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
|
1369
1369
|
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
|
1370
1370
|
}
|
1371
|
-
`,...
|
1372
|
-
${this.prefixIcon?
|
1371
|
+
`,..._t()],em=lb;var jr=class extends zt(He(q)){constructor(){super(...arguments);this.inline=zo.INLINE;this.inverted=zo.INVERTED;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=t=>{if((t.type==="click"||t instanceof KeyboardEvent&&t.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(t){t?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this.disabled)}render(){return w` <slot></slot> `}};jr.styles=[...q.styles,...em],m([g({type:Boolean,reflect:!0})],jr.prototype,"inline",2),m([g({type:Boolean,reflect:!0})],jr.prototype,"inverted",2),m([g({type:String,reflect:!0})],jr.prototype,"href",2),m([g({type:String,reflect:!0})],jr.prototype,"target",2),m([g({type:String,reflect:!0})],jr.prototype,"rel",2);var bi=jr;var Vo=class extends In(bi){constructor(){super(...arguments);this.size=Ce.SIZE}setSoftDisabled(t,s){s?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}render(){return w`
|
1372
|
+
${this.prefixIcon?w` <mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
1373
1373
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1374
|
-
${this.postfixIcon?
|
1375
|
-
`}}
|
1374
|
+
${this.postfixIcon?w` <mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1375
|
+
`}};Vo.styles=[...ji.styles],m([g({type:Number,reflect:!0})],Vo.prototype,"size",2),m([g({type:Boolean,attribute:"soft-disabled",reflect:!0})],Vo.prototype,"softDisabled",2);var mc=Vo;var rm=Y.constructTagName("buttonlink");mc.register(rm);var cb=mc;var Cn=Y.constructTagName("link"),wn={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Nn={LARGE:1,MIDSIZE:.875,SMALL:.75},im={LINK_SIZE:wn.LARGE};var om=Y.constructTagName("card"),uc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},db={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ee={VARIANT:uc.BORDER,ORIENTATION:db.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:vt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Cn,BUTTON:Gr};var Ln=l=>{class i extends l{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=ee.VARIANT;this.orientation=ee.ORIENTATION;this.titleTagName=ee.TAGNAME;this.subtitleTagName=ee.TAGNAME}renderImage(){return this.imageSrc?w`<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />`:W}renderIcon(){return this.iconName?w`<mdc-icon
|
1376
1376
|
part="icon"
|
1377
1377
|
size="${ee.ICON_SIZE}"
|
1378
1378
|
length-unit="${ee.ICON_LENGTH_UNIT}"
|
1379
1379
|
name="${this.iconName}"
|
1380
|
-
></mdc-icon>`:W}renderTitle(){return
|
1380
|
+
></mdc-icon>`:W}renderTitle(){return w`<div part="title-container">
|
1381
1381
|
<mdc-text part="title" type="${ee.TITLE_TYPE}" tagname="${this.titleTagName}">${this.cardTitle}</mdc-text>
|
1382
|
-
${this.subtitle?
|
1382
|
+
${this.subtitle?w`<mdc-text part="subtitle" type="${ee.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
|
1383
1383
|
>${this.subtitle}</mdc-text
|
1384
1384
|
>`:W}
|
1385
|
-
</div>`}}return
|
1385
|
+
</div>`}}return m([g({type:String,attribute:"card-title",reflect:!0})],i.prototype,"cardTitle",2),m([g({type:String,reflect:!0})],i.prototype,"subtitle",2),m([g({type:String,attribute:"image-src",reflect:!0})],i.prototype,"imageSrc",2),m([g({type:String,attribute:"image-alt",reflect:!0})],i.prototype,"imageAlt",2),m([g({type:String,reflect:!0})],i.prototype,"variant",2),m([g({type:String,reflect:!0})],i.prototype,"orientation",2),m([g({type:String,attribute:"title-tag-name",reflect:!0})],i.prototype,"titleTagName",2),m([g({type:String,attribute:"subtitle-tag-name",reflect:!0})],i.prototype,"subtitleTagName",2),m([g({type:String,attribute:"icon-name",reflect:!0})],i.prototype,"iconName",2),i};var Bo=l=>{class i extends l{updateFooterButtonColors(s){let n=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];n==null||n.forEach(h=>{s===uc.PROMOTIONAL?h.setAttribute("color",Hi.PROMOTIONAL):h.setAttribute("color",Hi.DEFAULT)})}handleFooterSlot(s,n){var u,x,R;let h=[];s===ee.LINK&&((u=this.footerLink)!=null&&u.length)?h=this.footerLink:s===ee.BUTTON&&n===Ft.PRIMARY&&((x=this.footerButtonPrimary)!=null&&x.length)?h=this.footerButtonPrimary:s===ee.BUTTON&&n===Ft.SECONDARY&&((R=this.footerButtonSecondary)!=null&&R.length)&&(h=this.footerButtonSecondary);for(let $=1;$<h.length;$+=1)h[$].remove();h.forEach($=>{$.matches(s)||$.remove(),n&&$.setAttribute("variant",n)})}renderFooter(){return w` <slot name="footer">
|
1386
1386
|
<div part="footer">
|
1387
1387
|
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(ee.LINK)}></slot>
|
1388
1388
|
<slot
|
1389
1389
|
name="footer-button-secondary"
|
1390
|
-
@slotchange=${()=>this.handleFooterSlot(ee.BUTTON,
|
1390
|
+
@slotchange=${()=>this.handleFooterSlot(ee.BUTTON,Ft.SECONDARY)}
|
1391
1391
|
></slot>
|
1392
1392
|
<slot
|
1393
1393
|
name="footer-button-primary"
|
1394
|
-
@slotchange=${()=>this.handleFooterSlot(ee.BUTTON,
|
1394
|
+
@slotchange=${()=>this.handleFooterSlot(ee.BUTTON,Ft.PRIMARY)}
|
1395
1395
|
></slot>
|
1396
1396
|
</div>
|
1397
|
-
</slot>`}}return
|
1397
|
+
</slot>`}}return m([Pt({slot:"footer-link"})],i.prototype,"footerLink",2),m([Pt({slot:"footer-button-primary"})],i.prototype,"footerButtonPrimary",2),m([Pt({slot:"footer-button-secondary"})],i.prototype,"footerButtonSecondary",2),i};var hb=H`
|
1398
1398
|
:host {
|
1399
1399
|
--mdc-card-width: 20rem;
|
1400
1400
|
align-items: flex-start;
|
@@ -1500,13 +1500,13 @@
|
|
1500
1500
|
margin-bottom: 0.5rem;
|
1501
1501
|
}
|
1502
1502
|
|
1503
|
-
|
1504
|
-
margin:
|
1503
|
+
mdc-text::part(text) {
|
1504
|
+
margin: 0;
|
1505
1505
|
}
|
1506
|
-
`,
|
1506
|
+
`,sm=[Et,hb];var Zs=class extends Ln(Bo(q)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(s=>{s.matches(ee.BUTTON)&&(s.setAttribute("variant",Ft.TERTIARY),s.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return this.cardTitle?w`<div part="header">
|
1507
1507
|
${this.renderIcon()} ${this.renderTitle()}
|
1508
1508
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
1509
|
-
</div>`:W}render(){return
|
1509
|
+
</div>`:W}render(){return w`
|
1510
1510
|
${this.renderImage()}
|
1511
1511
|
<div part="body">
|
1512
1512
|
${this.renderHeader()}
|
@@ -1517,7 +1517,7 @@
|
|
1517
1517
|
</div>
|
1518
1518
|
${this.renderFooter()}
|
1519
1519
|
</div>
|
1520
|
-
`}};
|
1520
|
+
`}};Zs.styles=[...q.styles,...sm],m([Pt({slot:"icon-button"})],Zs.prototype,"iconButtons",2);var dr=Zs;dr.register(om);var pb=dr;var mb=H`
|
1521
1521
|
:host {
|
1522
1522
|
cursor: pointer;
|
1523
1523
|
user-select: none;
|
@@ -1539,7 +1539,7 @@
|
|
1539
1539
|
:host([disabled])::part(image) {
|
1540
1540
|
opacity: 0.5;
|
1541
1541
|
}
|
1542
|
-
`,
|
1542
|
+
`,am=[mb,..._t()];var Rn=class extends Ln(de){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?w`<div part="header">${this.renderIcon()} ${this.renderTitle()}</div>`:W}render(){return w`
|
1543
1543
|
${this.renderImage()}
|
1544
1544
|
<div part="body">
|
1545
1545
|
${this.renderHeader()}
|
@@ -1547,7 +1547,7 @@
|
|
1547
1547
|
<slot name="body"></slot>
|
1548
1548
|
<slot name="after-body"></slot>
|
1549
1549
|
</div>
|
1550
|
-
`}};
|
1550
|
+
`}};Rn.styles=[...dr.styles,...am];var fc=Rn;var nm=Y.constructTagName("cardbutton");fc.register(nm);var ub=fc;var lm=Y.constructTagName("cardcheckbox"),vc={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},Mn={CHECK:"check",CHECKBOX:"checkbox"},On={SELECTION_TYPE:Mn.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var fb=H`
|
1551
1551
|
:host {
|
1552
1552
|
cursor: pointer;
|
1553
1553
|
user-select: none;
|
@@ -1604,16 +1604,16 @@
|
|
1604
1604
|
:host([disabled])::part(check-icon) {
|
1605
1605
|
color: var(--mds-color-theme-text-primary-disabled);
|
1606
1606
|
}
|
1607
|
-
`,
|
1607
|
+
`,cm=[fb,..._t()];var Uo=class extends zt(He(dr)){constructor(){super();this.checked=!1;this.selectionType=On.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=et.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked)}toggleOnEnter(t){t.key===Q.ENTER&&this.toggleChecked()}toggleOnSpace(t){t.key===Q.SPACE&&this.toggleChecked()}renderSelection(){let t=this.checked?vc.CHECKED:vc.DEFAULT;switch(this.selectionType){case Mn.CHECK:return w`<mdc-icon
|
1608
1608
|
part="check check-icon"
|
1609
|
-
size="${
|
1610
|
-
length-unit="${
|
1609
|
+
size="${On.ICON_SIZE}"
|
1610
|
+
length-unit="${On.ICON_LENGTH_UNIT}"
|
1611
1611
|
name="${t}"
|
1612
|
-
></mdc-icon>`;case
|
1612
|
+
></mdc-icon>`;case Mn.CHECKBOX:return w`<mdc-staticcheckbox
|
1613
1613
|
part="check"
|
1614
1614
|
?checked="${this.checked}"
|
1615
1615
|
?disabled="${this.disabled}"
|
1616
|
-
></mdc-staticcheckbox>`;default:return W}}renderHeader(){return this.cardTitle?
|
1616
|
+
></mdc-staticcheckbox>`;default:return W}}renderHeader(){return this.cardTitle?w`<div part="header">${this.renderIcon()} ${this.renderTitle()} ${this.renderSelection()}</div>`:W}render(){return w`
|
1617
1617
|
${this.renderImage()}
|
1618
1618
|
<div part="body">
|
1619
1619
|
${this.renderHeader()}
|
@@ -1621,7 +1621,7 @@
|
|
1621
1621
|
<slot name="body"></slot>
|
1622
1622
|
<slot name="after-body"></slot>
|
1623
1623
|
</div>
|
1624
|
-
`}};
|
1624
|
+
`}};Uo.styles=[...dr.styles,...cm],m([g({type:Boolean,reflect:!0})],Uo.prototype,"checked",2),m([g({type:String,attribute:"selection-type",reflect:!0})],Uo.prototype,"selectionType",2);var gc=Uo;var vb=[H`
|
1625
1625
|
:host {
|
1626
1626
|
margin: 0.125rem 0;
|
1627
1627
|
border-radius: 0.125rem;
|
@@ -1677,15 +1677,15 @@
|
|
1677
1677
|
border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
|
1678
1678
|
}
|
1679
1679
|
}
|
1680
|
-
`],
|
1680
|
+
`],dm=vb;var hm=Y.constructTagName("checkbox"),Pn={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var pm=Y.constructTagName("staticcheckbox");var Go=class extends zt(q){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let t=this.checked||this.indeterminate?w`
|
1681
1681
|
<mdc-icon
|
1682
1682
|
class="icon"
|
1683
|
-
name="${this.indeterminate?
|
1683
|
+
name="${this.indeterminate?Pn.INDETERMINATE:Pn.CHECKED}"
|
1684
1684
|
size="1"
|
1685
1685
|
length-unit="rem"
|
1686
1686
|
></mdc-icon>
|
1687
|
-
`:W;return
|
1688
|
-
<div part="icon-container">${t}</div>`}};
|
1687
|
+
`:W;return w`<slot></slot>
|
1688
|
+
<div part="icon-container">${t}</div>`}};Go.styles=[...q.styles,...dm],m([g({type:Boolean,reflect:!0})],Go.prototype,"checked",2),m([g({type:Boolean,reflect:!0})],Go.prototype,"indeterminate",2);var bc=Go;bc.register(pm);var gb=bc;gc.register(lm);var bb=gc;var yb=H`
|
1689
1689
|
:host {
|
1690
1690
|
cursor: pointer;
|
1691
1691
|
user-select: none;
|
@@ -1738,10 +1738,10 @@
|
|
1738
1738
|
:host([disabled])::part(image) {
|
1739
1739
|
opacity: 0.5;
|
1740
1740
|
}
|
1741
|
-
`,
|
1741
|
+
`,mm=[yb,..._t()];var Ho=class extends zt(He(dr)){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=et.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(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,s){t[s].focus(),t[s].toggleChecked()}toggleOnEnter(t){if(this.disabled)return;let n=this.getAllCardsWithinSameGroup().filter(u=>!u.disabled),h=n.indexOf(this);if(["ArrowDown","ArrowRight"].includes(t.key)){let u=(h+1)%n.length;this.updateCardRadio(n,u)}else if(["ArrowUp","ArrowLeft"].includes(t.key)){let u=(h-1+n.length)%n.length;this.updateCardRadio(n,u)}t.key===Q.ENTER&&this.toggleChecked()}toggleOnSpace(t){t.key===Q.SPACE&&this.toggleChecked()}renderHeader(){return this.cardTitle?w`<div part="header">
|
1742
1742
|
${this.renderIcon()} ${this.renderTitle()}
|
1743
1743
|
<mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
|
1744
|
-
</div>`:W}render(){return
|
1744
|
+
</div>`:W}render(){return w`
|
1745
1745
|
${this.renderImage()}
|
1746
1746
|
<div part="body">
|
1747
1747
|
${this.renderHeader()}
|
@@ -1749,7 +1749,7 @@
|
|
1749
1749
|
<slot name="body"></slot>
|
1750
1750
|
<slot name="after-body"></slot>
|
1751
1751
|
</div>
|
1752
|
-
`}};
|
1752
|
+
`}};Ho.styles=[...dr.styles,...mm],m([g({type:Boolean,reflect:!0})],Ho.prototype,"checked",2),m([g({type:String})],Ho.prototype,"name",2);var yc=Ho;var Dn=Y.constructTagName("cardradio");var Eb=[H`
|
1753
1753
|
:host {
|
1754
1754
|
display: block;
|
1755
1755
|
position: relative;
|
@@ -1832,8 +1832,8 @@
|
|
1832
1832
|
:host([readonly][checked]) .icon:after {
|
1833
1833
|
background-color: var(--mdc-staticradio-text-disabled-color);
|
1834
1834
|
}
|
1835
|
-
`],
|
1836
|
-
<span part="radio-icon" class="icon"></span>`}};Uo.styles=[...q.styles,...cm],f([g({type:Boolean,reflect:!0})],Uo.prototype,"checked",2),f([g({type:Boolean,reflect:!0})],Uo.prototype,"readonly",2);var vc=Uo;var dm=j.constructTagName("staticradio");vc.register(dm);var mb=vc;fc.register(Mn);var ub=fc;var Ar=Math.min,fe=Math.max,Xs=Math.round,Zs=Math.floor,cr=l=>({x:l,y:l}),fb={left:"right",right:"left",bottom:"top",top:"bottom"},vb={start:"end",end:"start"};function Pn(l,i,t){return fe(l,Ar(i,t))}function ji(l,i){return typeof l=="function"?l(i):l}function Gr(l){return l.split("-")[0]}function Yi(l){return l.split("-")[1]}function gc(l){return l==="x"?"y":"x"}function Dn(l){return l==="y"?"height":"width"}function vi(l){return["top","bottom"].includes(Gr(l))?"y":"x"}function Fn(l){return gc(vi(l))}function hm(l,i,t){t===void 0&&(t=!1);let s=Yi(l),n=Fn(l),h=Dn(n),m=n==="x"?s===(t?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[h]>i.floating[h]&&(m=Ks(m)),[m,Ks(m)]}function pm(l){let i=Ks(l);return[On(l),i,On(i)]}function On(l){return l.replace(/start|end/g,i=>vb[i])}function gb(l,i,t){let s=["left","right"],n=["right","left"],h=["top","bottom"],m=["bottom","top"];switch(l){case"top":case"bottom":return t?i?n:s:i?s:n;case"left":case"right":return i?h:m;default:return[]}}function mm(l,i,t,s){let n=Yi(l),h=gb(Gr(l),t==="start",s);return n&&(h=h.map(m=>m+"-"+n),i&&(h=h.concat(h.map(On)))),h}function Ks(l){return l.replace(/left|right|bottom|top/g,i=>fb[i])}function bb(l){return{top:0,right:0,bottom:0,left:0,...l}}function bc(l){return typeof l!="number"?bb(l):{top:l,right:l,bottom:l,left:l}}function Wi(l){let{x:i,y:t,width:s,height:n}=l;return{width:s,height:n,top:t,left:i,right:i+s,bottom:t+n,x:i,y:t}}function um(l,i,t){let{reference:s,floating:n}=l,h=vi(i),m=Fn(i),x=Dn(m),R=Gr(i),$=h==="y",Y=s.x+s.width/2-n.width/2,K=s.y+s.height/2-n.height/2,at=s[x]/2-n[x]/2,J;switch(R){case"top":J={x:Y,y:s.y-n.height};break;case"bottom":J={x:Y,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(Yi(i)){case"start":J[m]-=at*(t&&$?-1:1);break;case"end":J[m]+=at*(t&&$?-1:1);break}return J}var fm=async(l,i,t)=>{let{placement:s="bottom",strategy:n="absolute",middleware:h=[],platform:m}=t,x=h.filter(Boolean),R=await(m.isRTL==null?void 0:m.isRTL(i)),$=await m.getElementRects({reference:l,floating:i,strategy:n}),{x:Y,y:K}=um($,s,R),at=s,J={},rt=0;for(let ht=0;ht<x.length;ht++){let{name:Tt,fn:yt}=x[ht],{x:xt,y:kt,data:Gt,reset:Ot}=await yt({x:Y,y:K,initialPlacement:s,placement:at,strategy:n,middlewareData:J,rects:$,platform:m,elements:{reference:l,floating:i}});Y=xt!=null?xt:Y,K=kt!=null?kt:K,J={...J,[Tt]:{...J[Tt],...Gt}},Ot&&rt<=50&&(rt++,typeof Ot=="object"&&(Ot.placement&&(at=Ot.placement),Ot.rects&&($=Ot.rects===!0?await m.getElementRects({reference:l,floating:i,strategy:n}):Ot.rects),{x:Y,y:K}=um($,at,R)),ht=-1)}return{x:Y,y:K,placement:at,strategy:n,middlewareData:J}};async function $n(l,i){var t;i===void 0&&(i={});let{x:s,y:n,platform:h,rects:m,elements:x,strategy:R}=l,{boundary:$="clippingAncestors",rootBoundary:Y="viewport",elementContext:K="floating",altBoundary:at=!1,padding:J=0}=ji(i,l),rt=bc(J),Tt=x[at?K==="floating"?"reference":"floating":K],yt=Wi(await h.getClippingRect({element:(t=await(h.isElement==null?void 0:h.isElement(Tt)))==null||t?Tt:Tt.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(x.floating)),boundary:$,rootBoundary:Y,strategy:R})),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(x.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},Ot=Wi(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:x,rect:xt,offsetParent:kt,strategy:R}):xt);return{top:(yt.top-Ot.top+rt.top)/Gt.y,bottom:(Ot.bottom-yt.bottom+rt.bottom)/Gt.y,left:(yt.left-Ot.left+rt.left)/Gt.x,right:(Ot.right-yt.right+rt.right)/Gt.x}}var vm=l=>({name:"arrow",options:l,async fn(i){let{x:t,y:s,placement:n,rects:h,platform:m,elements:x,middlewareData:R}=i,{element:$,padding:Y=0}=ji(l,i)||{};if($==null)return{};let K=bc(Y),at={x:t,y:s},J=Fn(n),rt=Dn(J),ht=await m.getDimensions($),Tt=J==="y",yt=Tt?"top":"left",xt=Tt?"bottom":"right",kt=Tt?"clientHeight":"clientWidth",Gt=h.reference[rt]+h.reference[J]-at[J]-h.floating[rt],Ot=at[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=x.floating[kt]||h.floating[rt]);let re=Gt/2-Ot/2,Qe=Ee/2-ht[rt]/2-1,Ne=Ar(K[yt],Qe),Fe=Ar(K[xt],Qe),tr=Ne,er=Ee-ht[rt]-Fe,_t=Ee/2-ht[rt]/2+re,pe=Pn(tr,_t,er),$e=!R.arrow&&Yi(n)!=null&&_t!==pe&&h.reference[rt]/2-(_t<tr?Ne:Fe)-ht[rt]/2<0,rr=$e?_t<tr?_t-tr:_t-er:0;return{[J]:at[J]+rr,data:{[J]:pe,centerOffset:_t-pe-rr,...$e&&{alignmentOffset:rr}},reset:$e}}});var gm=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(i){var t,s;let{placement:n,middlewareData:h,rects:m,initialPlacement:x,platform:R,elements:$}=i,{mainAxis:Y=!0,crossAxis:K=!0,fallbackPlacements:at,fallbackStrategy:J="bestFit",fallbackAxisSideDirection:rt="none",flipAlignment:ht=!0,...Tt}=ji(l,i);if((t=h.arrow)!=null&&t.alignmentOffset)return{};let yt=Gr(n),xt=vi(x),kt=Gr(x)===x,Gt=await(R.isRTL==null?void 0:R.isRTL($.floating)),Ot=at||(kt||!ht?[Ks(x)]:pm(x)),Dt=rt!=="none";!at&&Dt&&Ot.push(...mm(x,ht,rt,Gt));let Ee=[x,...Ot],re=await $n(i,Tt),Qe=[],Ne=((s=h.flip)==null?void 0:s.overflows)||[];if(Y&&Qe.push(re[yt]),K){let _t=hm(n,m,Gt);Qe.push(re[_t[0]],re[_t[1]])}if(Ne=[...Ne,{placement:n,overflows:Qe}],!Qe.every(_t=>_t<=0)){var Fe,tr;let _t=(((Fe=h.flip)==null?void 0:Fe.index)||0)+1,pe=Ee[_t];if(pe)return{data:{index:_t,overflows:Ne},reset:{placement:pe}};let $e=(tr=Ne.filter(rr=>rr.overflows[0]<=0).sort((rr,Ir)=>rr.overflows[1]-Ir.overflows[1])[0])==null?void 0:tr.placement;if(!$e)switch(J){case"bestFit":{var er;let rr=(er=Ne.filter(Ir=>{if(Dt){let ze=vi(Ir.placement);return ze===xt||ze==="y"}return!0}).map(Ir=>[Ir.placement,Ir.overflows.filter(ze=>ze>0).reduce((ze,Sa)=>ze+Sa,0)]).sort((Ir,ze)=>Ir[1]-ze[1])[0])==null?void 0:er[0];rr&&($e=rr);break}case"initialPlacement":$e=x;break}if(n!==$e)return{reset:{placement:$e}}}return{}}}};async function yb(l,i){let{placement:t,platform:s,elements:n}=l,h=await(s.isRTL==null?void 0:s.isRTL(n.floating)),m=Gr(t),x=Yi(t),R=vi(t)==="y",$=["left","top"].includes(m)?-1:1,Y=h&&R?-1:1,K=ji(i,l),{mainAxis:at,crossAxis:J,alignmentAxis:rt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return x&&typeof rt=="number"&&(J=x==="end"?rt*-1:rt),R?{x:J*Y,y:at*$}:{x:at*$,y:J*Y}}var bm=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(i){var t,s;let{x:n,y:h,placement:m,middlewareData:x}=i,R=await yb(i,l);return m===((t=x.offset)==null?void 0:t.placement)&&(s=x.arrow)!=null&&s.alignmentOffset?{}:{x:n+R.x,y:h+R.y,data:{...R,placement:m}}}}},ym=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(i){let{x:t,y:s,placement:n}=i,{mainAxis:h=!0,crossAxis:m=!1,limiter:x={fn:Tt=>{let{x:yt,y:xt}=Tt;return{x:yt,y:xt}}},...R}=ji(l,i),$={x:t,y:s},Y=await $n(i,R),K=vi(Gr(n)),at=gc(K),J=$[at],rt=$[K];if(h){let Tt=at==="y"?"top":"left",yt=at==="y"?"bottom":"right",xt=J+Y[Tt],kt=J-Y[yt];J=Pn(xt,J,kt)}if(m){let Tt=K==="y"?"top":"left",yt=K==="y"?"bottom":"right",xt=rt+Y[Tt],kt=rt-Y[yt];rt=Pn(xt,rt,kt)}let ht=x.fn({...i,[at]:J,[K]:rt});return{...ht,data:{x:ht.x-t,y:ht.y-s,enabled:{[at]:h,[K]:m}}}}}};var Em=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(i){var t,s;let{placement:n,rects:h,platform:m,elements:x}=i,{apply:R=()=>{},...$}=ji(l,i),Y=await $n(i,$),K=Gr(n),at=Yi(n),J=vi(n)==="y",{width:rt,height:ht}=h.floating,Tt,yt;K==="top"||K==="bottom"?(Tt=K,yt=at===(await(m.isRTL==null?void 0:m.isRTL(x.floating))?"start":"end")?"left":"right"):(yt=K,Tt=at==="end"?"top":"bottom");let xt=ht-Y.top-Y.bottom,kt=rt-Y.left-Y.right,Gt=Ar(ht-Y[Tt],xt),Ot=Ar(rt-Y[yt],kt),Dt=!i.middlewareData.shift,Ee=Gt,re=Ot;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(re=kt),(s=i.middlewareData.shift)!=null&&s.enabled.y&&(Ee=xt),Dt&&!at){let Ne=fe(Y.left,0),Fe=fe(Y.right,0),tr=fe(Y.top,0),er=fe(Y.bottom,0);J?re=rt-2*(Ne!==0||Fe!==0?Ne+Fe:fe(Y.left,Y.right)):Ee=ht-2*(tr!==0||er!==0?tr+er:fe(Y.top,Y.bottom))}await R({...i,availableWidth:re,availableHeight:Ee});let Qe=await m.getDimensions(x.floating);return rt!==Qe.width||ht!==Qe.height?{reset:{rects:!0}}:{}}}};function zn(){return typeof window<"u"}function qi(l){return xm(l)?(l.nodeName||"").toLowerCase():"#document"}function Ce(l){var i;return(l==null||(i=l.ownerDocument)==null?void 0:i.defaultView)||window}function dr(l){var i;return(i=(xm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:i.documentElement}function xm(l){return zn()?l instanceof Node||l instanceof Ce(l).Node:!1}function He(l){return zn()?l instanceof Element||l instanceof Ce(l).Element:!1}function hr(l){return zn()?l instanceof HTMLElement||l instanceof Ce(l).HTMLElement:!1}function Tm(l){return!zn()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Ce(l).ShadowRoot}function Ho(l){let{overflow:i,overflowX:t,overflowY:s,display:n}=je(l);return/auto|scroll|overlay|hidden|clip/.test(i+s+t)&&!["inline","contents"].includes(n)}function Am(l){return["table","td","th"].includes(qi(l))}function Js(l){return[":popover-open",":modal"].some(i=>{try{return l.matches(i)}catch{return!1}})}function Vn(l){let i=Bn(),t=He(l)?je(l):l;return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(t.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(t.contain||"").includes(s))}function _m(l){let i=Hr(l);for(;hr(i)&&!Ki(i);){if(Vn(i))return i;if(Js(i))return null;i=Hr(i)}return null}function Bn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ki(l){return["html","body","#document"].includes(qi(l))}function je(l){return Ce(l).getComputedStyle(l)}function Qs(l){return He(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Hr(l){if(qi(l)==="html")return l;let i=l.assignedSlot||l.parentNode||Tm(l)&&l.host||dr(l);return Tm(i)?i.host:i}function Sm(l){let i=Hr(l);return Ki(i)?l.ownerDocument?l.ownerDocument.body:l.body:hr(i)&&Ho(i)?i:Sm(i)}function Go(l,i,t){var s;i===void 0&&(i=[]),t===void 0&&(t=!0);let n=Sm(l),h=n===((s=l.ownerDocument)==null?void 0:s.body),m=Ce(n);if(h){let x=Un(m);return i.concat(m,m.visualViewport||[],Ho(n)?n:[],x&&t?Go(x):[])}return i.concat(n,Go(n,[],t))}function Un(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function Cm(l){let i=je(l),t=parseFloat(i.width)||0,s=parseFloat(i.height)||0,n=hr(l),h=n?l.offsetWidth:t,m=n?l.offsetHeight:s,x=Xs(t)!==h||Xs(s)!==m;return x&&(t=h,s=m),{width:t,height:s,$:x}}function Ec(l){return He(l)?l:l.contextElement}function jo(l){let i=Ec(l);if(!hr(i))return cr(1);let t=i.getBoundingClientRect(),{width:s,height:n,$:h}=Cm(i),m=(h?Xs(t.width):t.width)/s,x=(h?Xs(t.height):t.height)/n;return(!m||!Number.isFinite(m))&&(m=1),(!x||!Number.isFinite(x))&&(x=1),{x:m,y:x}}var Eb=cr(0);function wm(l){let i=Ce(l);return!Bn()||!i.visualViewport?Eb:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Tb(l,i,t){return i===void 0&&(i=!1),!t||i&&t!==Ce(l)?!1:i}function Xi(l,i,t,s){i===void 0&&(i=!1),t===void 0&&(t=!1);let n=l.getBoundingClientRect(),h=Ec(l),m=cr(1);i&&(s?He(s)&&(m=jo(s)):m=jo(l));let x=Tb(h,t,s)?wm(h):cr(0),R=(n.left+x.x)/m.x,$=(n.top+x.y)/m.y,Y=n.width/m.x,K=n.height/m.y;if(h){let at=Ce(h),J=s&&He(s)?Ce(s):s,rt=at,ht=Un(rt);for(;ht&&s&&J!==rt;){let Tt=jo(ht),yt=ht.getBoundingClientRect(),xt=je(ht),kt=yt.left+(ht.clientLeft+parseFloat(xt.paddingLeft))*Tt.x,Gt=yt.top+(ht.clientTop+parseFloat(xt.paddingTop))*Tt.y;R*=Tt.x,$*=Tt.y,Y*=Tt.x,K*=Tt.y,R+=kt,$+=Gt,rt=Ce(ht),ht=Un(rt)}}return Wi({width:Y,height:K,x:R,y:$})}function Tc(l,i){let t=Qs(l).scrollLeft;return i?i.left+t:Xi(dr(l)).left+t}function Lm(l,i,t){t===void 0&&(t=!1);let s=l.getBoundingClientRect(),n=s.left+i.scrollLeft-(t?0:Tc(l,s)),h=s.top+i.scrollTop;return{x:n,y:h}}function xb(l){let{elements:i,rect:t,offsetParent:s,strategy:n}=l,h=n==="fixed",m=dr(s),x=i?Js(i.floating):!1;if(s===m||x&&h)return t;let R={scrollLeft:0,scrollTop:0},$=cr(1),Y=cr(0),K=hr(s);if((K||!K&&!h)&&((qi(s)!=="body"||Ho(m))&&(R=Qs(s)),hr(s))){let J=Xi(s);$=jo(s),Y.x=J.x+s.clientLeft,Y.y=J.y+s.clientTop}let at=m&&!K&&!h?Lm(m,R,!0):cr(0);return{width:t.width*$.x,height:t.height*$.y,x:t.x*$.x-R.scrollLeft*$.x+Y.x+at.x,y:t.y*$.y-R.scrollTop*$.y+Y.y+at.y}}function Ab(l){return Array.from(l.getClientRects())}function _b(l){let i=dr(l),t=Qs(l),s=l.ownerDocument.body,n=fe(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),h=fe(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight),m=-t.scrollLeft+Tc(l),x=-t.scrollTop;return je(s).direction==="rtl"&&(m+=fe(i.clientWidth,s.clientWidth)-n),{width:n,height:h,x:m,y:x}}function Sb(l,i){let t=Ce(l),s=dr(l),n=t.visualViewport,h=s.clientWidth,m=s.clientHeight,x=0,R=0;if(n){h=n.width,m=n.height;let $=Bn();(!$||$&&i==="fixed")&&(x=n.offsetLeft,R=n.offsetTop)}return{width:h,height:m,x,y:R}}function Ib(l,i){let t=Xi(l,!0,i==="fixed"),s=t.top+l.clientTop,n=t.left+l.clientLeft,h=hr(l)?jo(l):cr(1),m=l.clientWidth*h.x,x=l.clientHeight*h.y,R=n*h.x,$=s*h.y;return{width:m,height:x,x:R,y:$}}function Im(l,i,t){let s;if(i==="viewport")s=Sb(l,t);else if(i==="document")s=_b(dr(l));else if(He(i))s=Ib(i,t);else{let n=wm(l);s={x:i.x-n.x,y:i.y-n.y,width:i.width,height:i.height}}return Wi(s)}function Nm(l,i){let t=Hr(l);return t===i||!He(t)||Ki(t)?!1:je(t).position==="fixed"||Nm(t,i)}function kb(l,i){let t=i.get(l);if(t)return t;let s=Go(l,[],!1).filter(x=>He(x)&&qi(x)!=="body"),n=null,h=je(l).position==="fixed",m=h?Hr(l):l;for(;He(m)&&!Ki(m);){let x=je(m),R=Vn(m);!R&&x.position==="fixed"&&(n=null),(h?!R&&!n:!R&&x.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ho(m)&&!R&&Nm(l,m))?s=s.filter(Y=>Y!==m):n=x,m=Hr(m)}return i.set(l,s),s}function Cb(l){let{element:i,boundary:t,rootBoundary:s,strategy:n}=l,m=[...t==="clippingAncestors"?Js(i)?[]:kb(i,this._c):[].concat(t),s],x=m[0],R=m.reduce(($,Y)=>{let K=Im(i,Y,n);return $.top=fe(K.top,$.top),$.right=Ar(K.right,$.right),$.bottom=Ar(K.bottom,$.bottom),$.left=fe(K.left,$.left),$},Im(i,x,n));return{width:R.right-R.left,height:R.bottom-R.top,x:R.left,y:R.top}}function wb(l){let{width:i,height:t}=Cm(l);return{width:i,height:t}}function Lb(l,i,t){let s=hr(i),n=dr(i),h=t==="fixed",m=Xi(l,!0,h,i),x={scrollLeft:0,scrollTop:0},R=cr(0);if(s||!s&&!h)if((qi(i)!=="body"||Ho(n))&&(x=Qs(i)),s){let at=Xi(i,!0,h,i);R.x=at.x+i.clientLeft,R.y=at.y+i.clientTop}else n&&(R.x=Tc(n));let $=n&&!s&&!h?Lm(n,x):cr(0),Y=m.left+x.scrollLeft-R.x-$.x,K=m.top+x.scrollTop-R.y-$.y;return{x:Y,y:K,width:m.width,height:m.height}}function yc(l){return je(l).position==="static"}function km(l,i){if(!hr(l)||je(l).position==="fixed")return null;if(i)return i(l);let t=l.offsetParent;return dr(l)===t&&(t=t.ownerDocument.body),t}function Rm(l,i){let t=Ce(l);if(Js(l))return t;if(!hr(l)){let n=Hr(l);for(;n&&!Ki(n);){if(He(n)&&!yc(n))return n;n=Hr(n)}return t}let s=km(l,i);for(;s&&Am(s)&&yc(s);)s=km(s,i);return s&&Ki(s)&&yc(s)&&!Vn(s)?t:s||_m(l)||t}var Nb=async function(l){let i=this.getOffsetParent||Rm,t=this.getDimensions,s=await t(l.floating);return{reference:Lb(l.reference,await i(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Rb(l){return je(l).direction==="rtl"}var Mb={convertOffsetParentRelativeRectToViewportRelativeRect:xb,getDocumentElement:dr,getClippingRect:Cb,getOffsetParent:Rm,getElementRects:Nb,getClientRects:Ab,getDimensions:wb,getScale:jo,isElement:He,isRTL:Rb};function Ob(l,i){let t=null,s,n=dr(l);function h(){var x;clearTimeout(s),(x=t)==null||x.disconnect(),t=null}function m(x,R){x===void 0&&(x=!1),R===void 0&&(R=1),h();let{left:$,top:Y,width:K,height:at}=l.getBoundingClientRect();if(x||i(),!K||!at)return;let J=Zs(Y),rt=Zs(n.clientWidth-($+K)),ht=Zs(n.clientHeight-(Y+at)),Tt=Zs($),xt={rootMargin:-J+"px "+-rt+"px "+-ht+"px "+-Tt+"px",threshold:fe(0,Ar(1,R))||1},kt=!0;function Gt(Ot){let Dt=Ot[0].intersectionRatio;if(Dt!==R){if(!kt)return m();Dt?m(!1,Dt):s=setTimeout(()=>{m(!1,1e-7)},1e3)}kt=!1}try{t=new IntersectionObserver(Gt,{...xt,root:n.ownerDocument})}catch{t=new IntersectionObserver(Gt,xt)}t.observe(l)}return m(!0),h}function Mm(l,i,t,s){s===void 0&&(s={});let{ancestorScroll:n=!0,ancestorResize:h=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:x=typeof IntersectionObserver=="function",animationFrame:R=!1}=s,$=Ec(l),Y=n||h?[...$?Go($):[],...Go(i)]:[];Y.forEach(yt=>{n&&yt.addEventListener("scroll",t,{passive:!0}),h&&yt.addEventListener("resize",t)});let K=$&&x?Ob($,t):null,at=-1,J=null;m&&(J=new ResizeObserver(yt=>{let[xt]=yt;xt&&xt.target===$&&J&&(J.unobserve(i),cancelAnimationFrame(at),at=requestAnimationFrame(()=>{var kt;(kt=J)==null||kt.observe(i)})),t()}),$&&!R&&J.observe($),J.observe(i));let rt,ht=R?Xi(l):null;R&&Tt();function Tt(){let yt=Xi(l);ht&&(yt.x!==ht.x||yt.y!==ht.y||yt.width!==ht.width||yt.height!==ht.height)&&t(),ht=yt,rt=requestAnimationFrame(Tt)}return t(),()=>{var yt;Y.forEach(xt=>{n&&xt.removeEventListener("scroll",t),h&&xt.removeEventListener("resize",t)}),K==null||K(),(yt=J)==null||yt.disconnect(),J=null,R&&cancelAnimationFrame(rt)}}var Om=bm;var Pm=ym,Dm=gm,Fm=Em;var $m=vm;var zm=(l,i,t)=>{let s=new Map,n={platform:Mb,...t},h={...n.platform,_c:s};return fm(l,i,{...n,platform:h})};var Yo=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(t=>{t!==i&&t.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};Yo.stack=new Set,Yo.currentKeydownListener=null;var Gn=l=>{class i 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),Yo.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Yo.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(n){return n.getClientRects().length===0}hasZeroDimensions(n){let{width:h,height:m}=n.getBoundingClientRect(),{offsetWidth:x,offsetHeight:R}=n;return x+R+m+h===0}isNotVisible(n){return this.hasZeroDimensions(n)||this.hasNoClientRects(n)}hasHiddenStyle(n){let{display:h,opacity:m,visibility:x}=n.style;return h==="none"||m==="0"||x==="hidden"||x==="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(x=>{let R=x;this.isFocusable(R)&&h.add(R),R.shadowRoot?this.findFocusable(R.shadowRoot,h):R.tagName==="SLOT"?R.assignedElements({flatten:!0}).forEach(Y=>{Y instanceof HTMLElement&&this.findFocusable(Y,h)}):this.findFocusable(R,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 x=n+h;return this.shouldFocusTrapWrap?(x<0&&(x=m-1),x>=m&&(x=0)):(x<0&&(x=0),x>=m&&(x=m-1)),x}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 R=this.focusableElements[this.focusTrapIndex];R.tagName!=="IFRAME"&&R&&(n.preventDefault(),R.focus())}handleTabKeydown(n){this.isFocusTrapActivated&&n.key==="Tab"&&this.trapFocus(n)}}return f([g({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var Hn=l=>{class i 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 i};var Vm=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"},Ji={TONAL:"tonal",CONTRAST:"contrast"},Nt={PLACEMENT:Ut.BOTTOM,TRIGGER:Zi.CLICK,COLOR:Ji.TONAL,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,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 jr=class{static dispatchPopoverEvent(i,t){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var xc=class{constructor(){this.stack=[]}push(i){this.stack.push(i)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(i){this.stack=this.stack.filter(t=>t!==i)}has(i){return this.stack.includes(i)}clear(){this.stack=[]}},ve=new xc;var Pb=H`
|
1835
|
+
`],um=Eb;var Yo=class extends zt(q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return w` <slot></slot>
|
1836
|
+
<span part="radio-icon" class="icon"></span>`}};Yo.styles=[...q.styles,...um],m([g({type:Boolean,reflect:!0})],Yo.prototype,"checked",2),m([g({type:Boolean,reflect:!0})],Yo.prototype,"readonly",2);var Ec=Yo;var fm=Y.constructTagName("staticradio");Ec.register(fm);var Tb=Ec;yc.register(Dn);var xb=yc;var Ir=Math.min,fe=Math.max,Qs=Math.round,ta=Math.floor,hr=l=>({x:l,y:l}),Ab={left:"right",right:"left",bottom:"top",top:"bottom"},_b={start:"end",end:"start"};function $n(l,i,t){return fe(l,Ir(i,t))}function Wi(l,i){return typeof l=="function"?l(i):l}function Wr(l){return l.split("-")[0]}function qi(l){return l.split("-")[1]}function Tc(l){return l==="x"?"y":"x"}function zn(l){return l==="y"?"height":"width"}function yi(l){return["top","bottom"].includes(Wr(l))?"y":"x"}function Vn(l){return Tc(yi(l))}function vm(l,i,t){t===void 0&&(t=!1);let s=qi(l),n=Vn(l),h=zn(n),u=n==="x"?s===(t?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[h]>i.floating[h]&&(u=Js(u)),[u,Js(u)]}function gm(l){let i=Js(l);return[Fn(l),i,Fn(i)]}function Fn(l){return l.replace(/start|end/g,i=>_b[i])}function Sb(l,i,t){let s=["left","right"],n=["right","left"],h=["top","bottom"],u=["bottom","top"];switch(l){case"top":case"bottom":return t?i?n:s:i?s:n;case"left":case"right":return i?h:u;default:return[]}}function bm(l,i,t,s){let n=qi(l),h=Sb(Wr(l),t==="start",s);return n&&(h=h.map(u=>u+"-"+n),i&&(h=h.concat(h.map(Fn)))),h}function Js(l){return l.replace(/left|right|bottom|top/g,i=>Ab[i])}function Ib(l){return{top:0,right:0,bottom:0,left:0,...l}}function xc(l){return typeof l!="number"?Ib(l):{top:l,right:l,bottom:l,left:l}}function Ki(l){let{x:i,y:t,width:s,height:n}=l;return{width:s,height:n,top:t,left:i,right:i+s,bottom:t+n,x:i,y:t}}function ym(l,i,t){let{reference:s,floating:n}=l,h=yi(i),u=Vn(i),x=zn(u),R=Wr(i),$=h==="y",j=s.x+s.width/2-n.width/2,K=s.y+s.height/2-n.height/2,at=s[x]/2-n[x]/2,J;switch(R){case"top":J={x:j,y:s.y-n.height};break;case"bottom":J={x:j,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(qi(i)){case"start":J[u]-=at*(t&&$?-1:1);break;case"end":J[u]+=at*(t&&$?-1:1);break}return J}var Em=async(l,i,t)=>{let{placement:s="bottom",strategy:n="absolute",middleware:h=[],platform:u}=t,x=h.filter(Boolean),R=await(u.isRTL==null?void 0:u.isRTL(i)),$=await u.getElementRects({reference:l,floating:i,strategy:n}),{x:j,y:K}=ym($,s,R),at=s,J={},rt=0;for(let ht=0;ht<x.length;ht++){let{name:Tt,fn:yt}=x[ht],{x:xt,y:kt,data:Gt,reset:Ot}=await yt({x:j,y:K,initialPlacement:s,placement:at,strategy:n,middlewareData:J,rects:$,platform:u,elements:{reference:l,floating:i}});j=xt!=null?xt:j,K=kt!=null?kt:K,J={...J,[Tt]:{...J[Tt],...Gt}},Ot&&rt<=50&&(rt++,typeof Ot=="object"&&(Ot.placement&&(at=Ot.placement),Ot.rects&&($=Ot.rects===!0?await u.getElementRects({reference:l,floating:i,strategy:n}):Ot.rects),{x:j,y:K}=ym($,at,R)),ht=-1)}return{x:j,y:K,placement:at,strategy:n,middlewareData:J}};async function Bn(l,i){var t;i===void 0&&(i={});let{x:s,y:n,platform:h,rects:u,elements:x,strategy:R}=l,{boundary:$="clippingAncestors",rootBoundary:j="viewport",elementContext:K="floating",altBoundary:at=!1,padding:J=0}=Wi(i,l),rt=xc(J),Tt=x[at?K==="floating"?"reference":"floating":K],yt=Ki(await h.getClippingRect({element:(t=await(h.isElement==null?void 0:h.isElement(Tt)))==null||t?Tt:Tt.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(x.floating)),boundary:$,rootBoundary:j,strategy:R})),xt=K==="floating"?{x:s,y:n,width:u.floating.width,height:u.floating.height}:u.reference,kt=await(h.getOffsetParent==null?void 0:h.getOffsetParent(x.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},Ot=Ki(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:x,rect:xt,offsetParent:kt,strategy:R}):xt);return{top:(yt.top-Ot.top+rt.top)/Gt.y,bottom:(Ot.bottom-yt.bottom+rt.bottom)/Gt.y,left:(yt.left-Ot.left+rt.left)/Gt.x,right:(Ot.right-yt.right+rt.right)/Gt.x}}var Tm=l=>({name:"arrow",options:l,async fn(i){let{x:t,y:s,placement:n,rects:h,platform:u,elements:x,middlewareData:R}=i,{element:$,padding:j=0}=Wi(l,i)||{};if($==null)return{};let K=xc(j),at={x:t,y:s},J=Vn(n),rt=zn(J),ht=await u.getDimensions($),Tt=J==="y",yt=Tt?"top":"left",xt=Tt?"bottom":"right",kt=Tt?"clientHeight":"clientWidth",Gt=h.reference[rt]+h.reference[J]-at[J]-h.floating[rt],Ot=at[J]-h.reference[J],$t=await(u.getOffsetParent==null?void 0:u.getOffsetParent($)),Te=$t?$t[kt]:0;(!Te||!await(u.isElement==null?void 0:u.isElement($t)))&&(Te=x.floating[kt]||h.floating[rt]);let re=Gt/2-Ot/2,er=Te/2-ht[rt]/2-1,Me=Ir(K[yt],er),ze=Ir(K[xt],er),rr=Me,ir=Te-ht[rt]-ze,St=Te/2-ht[rt]/2+re,pe=$n(rr,St,ir),Ve=!R.arrow&&qi(n)!=null&&St!==pe&&h.reference[rt]/2-(St<rr?Me:ze)-ht[rt]/2<0,or=Ve?St<rr?St-rr:St-ir:0;return{[J]:at[J]+or,data:{[J]:pe,centerOffset:St-pe-or,...Ve&&{alignmentOffset:or}},reset:Ve}}});var xm=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(i){var t,s;let{placement:n,middlewareData:h,rects:u,initialPlacement:x,platform:R,elements:$}=i,{mainAxis:j=!0,crossAxis:K=!0,fallbackPlacements:at,fallbackStrategy:J="bestFit",fallbackAxisSideDirection:rt="none",flipAlignment:ht=!0,...Tt}=Wi(l,i);if((t=h.arrow)!=null&&t.alignmentOffset)return{};let yt=Wr(n),xt=yi(x),kt=Wr(x)===x,Gt=await(R.isRTL==null?void 0:R.isRTL($.floating)),Ot=at||(kt||!ht?[Js(x)]:gm(x)),$t=rt!=="none";!at&&$t&&Ot.push(...bm(x,ht,rt,Gt));let Te=[x,...Ot],re=await Bn(i,Tt),er=[],Me=((s=h.flip)==null?void 0:s.overflows)||[];if(j&&er.push(re[yt]),K){let St=vm(n,u,Gt);er.push(re[St[0]],re[St[1]])}if(Me=[...Me,{placement:n,overflows:er}],!er.every(St=>St<=0)){var ze,rr;let St=(((ze=h.flip)==null?void 0:ze.index)||0)+1,pe=Te[St];if(pe)return{data:{index:St,overflows:Me},reset:{placement:pe}};let Ve=(rr=Me.filter(or=>or.overflows[0]<=0).sort((or,wr)=>or.overflows[1]-wr.overflows[1])[0])==null?void 0:rr.placement;if(!Ve)switch(J){case"bestFit":{var ir;let or=(ir=Me.filter(wr=>{if($t){let Be=yi(wr.placement);return Be===xt||Be==="y"}return!0}).map(wr=>[wr.placement,wr.overflows.filter(Be=>Be>0).reduce((Be,wa)=>Be+wa,0)]).sort((wr,Be)=>wr[1]-Be[1])[0])==null?void 0:ir[0];or&&(Ve=or);break}case"initialPlacement":Ve=x;break}if(n!==Ve)return{reset:{placement:Ve}}}return{}}}};async function kb(l,i){let{placement:t,platform:s,elements:n}=l,h=await(s.isRTL==null?void 0:s.isRTL(n.floating)),u=Wr(t),x=qi(t),R=yi(t)==="y",$=["left","top"].includes(u)?-1:1,j=h&&R?-1:1,K=Wi(i,l),{mainAxis:at,crossAxis:J,alignmentAxis:rt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return x&&typeof rt=="number"&&(J=x==="end"?rt*-1:rt),R?{x:J*j,y:at*$}:{x:at*$,y:J*j}}var Am=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(i){var t,s;let{x:n,y:h,placement:u,middlewareData:x}=i,R=await kb(i,l);return u===((t=x.offset)==null?void 0:t.placement)&&(s=x.arrow)!=null&&s.alignmentOffset?{}:{x:n+R.x,y:h+R.y,data:{...R,placement:u}}}}},_m=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(i){let{x:t,y:s,placement:n}=i,{mainAxis:h=!0,crossAxis:u=!1,limiter:x={fn:Tt=>{let{x:yt,y:xt}=Tt;return{x:yt,y:xt}}},...R}=Wi(l,i),$={x:t,y:s},j=await Bn(i,R),K=yi(Wr(n)),at=Tc(K),J=$[at],rt=$[K];if(h){let Tt=at==="y"?"top":"left",yt=at==="y"?"bottom":"right",xt=J+j[Tt],kt=J-j[yt];J=$n(xt,J,kt)}if(u){let Tt=K==="y"?"top":"left",yt=K==="y"?"bottom":"right",xt=rt+j[Tt],kt=rt-j[yt];rt=$n(xt,rt,kt)}let ht=x.fn({...i,[at]:J,[K]:rt});return{...ht,data:{x:ht.x-t,y:ht.y-s,enabled:{[at]:h,[K]:u}}}}}};var Sm=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(i){var t,s;let{placement:n,rects:h,platform:u,elements:x}=i,{apply:R=()=>{},...$}=Wi(l,i),j=await Bn(i,$),K=Wr(n),at=qi(n),J=yi(n)==="y",{width:rt,height:ht}=h.floating,Tt,yt;K==="top"||K==="bottom"?(Tt=K,yt=at===(await(u.isRTL==null?void 0:u.isRTL(x.floating))?"start":"end")?"left":"right"):(yt=K,Tt=at==="end"?"top":"bottom");let xt=ht-j.top-j.bottom,kt=rt-j.left-j.right,Gt=Ir(ht-j[Tt],xt),Ot=Ir(rt-j[yt],kt),$t=!i.middlewareData.shift,Te=Gt,re=Ot;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(re=kt),(s=i.middlewareData.shift)!=null&&s.enabled.y&&(Te=xt),$t&&!at){let Me=fe(j.left,0),ze=fe(j.right,0),rr=fe(j.top,0),ir=fe(j.bottom,0);J?re=rt-2*(Me!==0||ze!==0?Me+ze:fe(j.left,j.right)):Te=ht-2*(rr!==0||ir!==0?rr+ir:fe(j.top,j.bottom))}await R({...i,availableWidth:re,availableHeight:Te});let er=await u.getDimensions(x.floating);return rt!==er.width||ht!==er.height?{reset:{rects:!0}}:{}}}};function Un(){return typeof window<"u"}function Xi(l){return km(l)?(l.nodeName||"").toLowerCase():"#document"}function we(l){var i;return(l==null||(i=l.ownerDocument)==null?void 0:i.defaultView)||window}function pr(l){var i;return(i=(km(l)?l.ownerDocument:l.document)||window.document)==null?void 0:i.documentElement}function km(l){return Un()?l instanceof Node||l instanceof we(l).Node:!1}function je(l){return Un()?l instanceof Element||l instanceof we(l).Element:!1}function mr(l){return Un()?l instanceof HTMLElement||l instanceof we(l).HTMLElement:!1}function Im(l){return!Un()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof we(l).ShadowRoot}function Wo(l){let{overflow:i,overflowX:t,overflowY:s,display:n}=We(l);return/auto|scroll|overlay|hidden|clip/.test(i+s+t)&&!["inline","contents"].includes(n)}function Cm(l){return["table","td","th"].includes(Xi(l))}function ea(l){return[":popover-open",":modal"].some(i=>{try{return l.matches(i)}catch{return!1}})}function Gn(l){let i=Hn(),t=je(l)?We(l):l;return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(t.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(t.contain||"").includes(s))}function wm(l){let i=qr(l);for(;mr(i)&&!Zi(i);){if(Gn(i))return i;if(ea(i))return null;i=qr(i)}return null}function Hn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zi(l){return["html","body","#document"].includes(Xi(l))}function We(l){return we(l).getComputedStyle(l)}function ra(l){return je(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function qr(l){if(Xi(l)==="html")return l;let i=l.assignedSlot||l.parentNode||Im(l)&&l.host||pr(l);return Im(i)?i.host:i}function Nm(l){let i=qr(l);return Zi(i)?l.ownerDocument?l.ownerDocument.body:l.body:mr(i)&&Wo(i)?i:Nm(i)}function jo(l,i,t){var s;i===void 0&&(i=[]),t===void 0&&(t=!0);let n=Nm(l),h=n===((s=l.ownerDocument)==null?void 0:s.body),u=we(n);if(h){let x=Yn(u);return i.concat(u,u.visualViewport||[],Wo(n)?n:[],x&&t?jo(x):[])}return i.concat(n,jo(n,[],t))}function Yn(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function Mm(l){let i=We(l),t=parseFloat(i.width)||0,s=parseFloat(i.height)||0,n=mr(l),h=n?l.offsetWidth:t,u=n?l.offsetHeight:s,x=Qs(t)!==h||Qs(s)!==u;return x&&(t=h,s=u),{width:t,height:s,$:x}}function _c(l){return je(l)?l:l.contextElement}function qo(l){let i=_c(l);if(!mr(i))return hr(1);let t=i.getBoundingClientRect(),{width:s,height:n,$:h}=Mm(i),u=(h?Qs(t.width):t.width)/s,x=(h?Qs(t.height):t.height)/n;return(!u||!Number.isFinite(u))&&(u=1),(!x||!Number.isFinite(x))&&(x=1),{x:u,y:x}}var Cb=hr(0);function Om(l){let i=we(l);return!Hn()||!i.visualViewport?Cb:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function wb(l,i,t){return i===void 0&&(i=!1),!t||i&&t!==we(l)?!1:i}function Ji(l,i,t,s){i===void 0&&(i=!1),t===void 0&&(t=!1);let n=l.getBoundingClientRect(),h=_c(l),u=hr(1);i&&(s?je(s)&&(u=qo(s)):u=qo(l));let x=wb(h,t,s)?Om(h):hr(0),R=(n.left+x.x)/u.x,$=(n.top+x.y)/u.y,j=n.width/u.x,K=n.height/u.y;if(h){let at=we(h),J=s&&je(s)?we(s):s,rt=at,ht=Yn(rt);for(;ht&&s&&J!==rt;){let Tt=qo(ht),yt=ht.getBoundingClientRect(),xt=We(ht),kt=yt.left+(ht.clientLeft+parseFloat(xt.paddingLeft))*Tt.x,Gt=yt.top+(ht.clientTop+parseFloat(xt.paddingTop))*Tt.y;R*=Tt.x,$*=Tt.y,j*=Tt.x,K*=Tt.y,R+=kt,$+=Gt,rt=we(ht),ht=Yn(rt)}}return Ki({width:j,height:K,x:R,y:$})}function Sc(l,i){let t=ra(l).scrollLeft;return i?i.left+t:Ji(pr(l)).left+t}function Pm(l,i,t){t===void 0&&(t=!1);let s=l.getBoundingClientRect(),n=s.left+i.scrollLeft-(t?0:Sc(l,s)),h=s.top+i.scrollTop;return{x:n,y:h}}function Nb(l){let{elements:i,rect:t,offsetParent:s,strategy:n}=l,h=n==="fixed",u=pr(s),x=i?ea(i.floating):!1;if(s===u||x&&h)return t;let R={scrollLeft:0,scrollTop:0},$=hr(1),j=hr(0),K=mr(s);if((K||!K&&!h)&&((Xi(s)!=="body"||Wo(u))&&(R=ra(s)),mr(s))){let J=Ji(s);$=qo(s),j.x=J.x+s.clientLeft,j.y=J.y+s.clientTop}let at=u&&!K&&!h?Pm(u,R,!0):hr(0);return{width:t.width*$.x,height:t.height*$.y,x:t.x*$.x-R.scrollLeft*$.x+j.x+at.x,y:t.y*$.y-R.scrollTop*$.y+j.y+at.y}}function Lb(l){return Array.from(l.getClientRects())}function Rb(l){let i=pr(l),t=ra(l),s=l.ownerDocument.body,n=fe(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),h=fe(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight),u=-t.scrollLeft+Sc(l),x=-t.scrollTop;return We(s).direction==="rtl"&&(u+=fe(i.clientWidth,s.clientWidth)-n),{width:n,height:h,x:u,y:x}}function Mb(l,i){let t=we(l),s=pr(l),n=t.visualViewport,h=s.clientWidth,u=s.clientHeight,x=0,R=0;if(n){h=n.width,u=n.height;let $=Hn();(!$||$&&i==="fixed")&&(x=n.offsetLeft,R=n.offsetTop)}return{width:h,height:u,x,y:R}}function Ob(l,i){let t=Ji(l,!0,i==="fixed"),s=t.top+l.clientTop,n=t.left+l.clientLeft,h=mr(l)?qo(l):hr(1),u=l.clientWidth*h.x,x=l.clientHeight*h.y,R=n*h.x,$=s*h.y;return{width:u,height:x,x:R,y:$}}function Lm(l,i,t){let s;if(i==="viewport")s=Mb(l,t);else if(i==="document")s=Rb(pr(l));else if(je(i))s=Ob(i,t);else{let n=Om(l);s={x:i.x-n.x,y:i.y-n.y,width:i.width,height:i.height}}return Ki(s)}function Dm(l,i){let t=qr(l);return t===i||!je(t)||Zi(t)?!1:We(t).position==="fixed"||Dm(t,i)}function Pb(l,i){let t=i.get(l);if(t)return t;let s=jo(l,[],!1).filter(x=>je(x)&&Xi(x)!=="body"),n=null,h=We(l).position==="fixed",u=h?qr(l):l;for(;je(u)&&!Zi(u);){let x=We(u),R=Gn(u);!R&&x.position==="fixed"&&(n=null),(h?!R&&!n:!R&&x.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Wo(u)&&!R&&Dm(l,u))?s=s.filter(j=>j!==u):n=x,u=qr(u)}return i.set(l,s),s}function Db(l){let{element:i,boundary:t,rootBoundary:s,strategy:n}=l,u=[...t==="clippingAncestors"?ea(i)?[]:Pb(i,this._c):[].concat(t),s],x=u[0],R=u.reduce(($,j)=>{let K=Lm(i,j,n);return $.top=fe(K.top,$.top),$.right=Ir(K.right,$.right),$.bottom=Ir(K.bottom,$.bottom),$.left=fe(K.left,$.left),$},Lm(i,x,n));return{width:R.right-R.left,height:R.bottom-R.top,x:R.left,y:R.top}}function Fb(l){let{width:i,height:t}=Mm(l);return{width:i,height:t}}function $b(l,i,t){let s=mr(i),n=pr(i),h=t==="fixed",u=Ji(l,!0,h,i),x={scrollLeft:0,scrollTop:0},R=hr(0);if(s||!s&&!h)if((Xi(i)!=="body"||Wo(n))&&(x=ra(i)),s){let at=Ji(i,!0,h,i);R.x=at.x+i.clientLeft,R.y=at.y+i.clientTop}else n&&(R.x=Sc(n));let $=n&&!s&&!h?Pm(n,x):hr(0),j=u.left+x.scrollLeft-R.x-$.x,K=u.top+x.scrollTop-R.y-$.y;return{x:j,y:K,width:u.width,height:u.height}}function Ac(l){return We(l).position==="static"}function Rm(l,i){if(!mr(l)||We(l).position==="fixed")return null;if(i)return i(l);let t=l.offsetParent;return pr(l)===t&&(t=t.ownerDocument.body),t}function Fm(l,i){let t=we(l);if(ea(l))return t;if(!mr(l)){let n=qr(l);for(;n&&!Zi(n);){if(je(n)&&!Ac(n))return n;n=qr(n)}return t}let s=Rm(l,i);for(;s&&Cm(s)&&Ac(s);)s=Rm(s,i);return s&&Zi(s)&&Ac(s)&&!Gn(s)?t:s||wm(l)||t}var zb=async function(l){let i=this.getOffsetParent||Fm,t=this.getDimensions,s=await t(l.floating);return{reference:$b(l.reference,await i(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Vb(l){return We(l).direction==="rtl"}var Bb={convertOffsetParentRelativeRectToViewportRelativeRect:Nb,getDocumentElement:pr,getClippingRect:Db,getOffsetParent:Fm,getElementRects:zb,getClientRects:Lb,getDimensions:Fb,getScale:qo,isElement:je,isRTL:Vb};function Ub(l,i){let t=null,s,n=pr(l);function h(){var x;clearTimeout(s),(x=t)==null||x.disconnect(),t=null}function u(x,R){x===void 0&&(x=!1),R===void 0&&(R=1),h();let{left:$,top:j,width:K,height:at}=l.getBoundingClientRect();if(x||i(),!K||!at)return;let J=ta(j),rt=ta(n.clientWidth-($+K)),ht=ta(n.clientHeight-(j+at)),Tt=ta($),xt={rootMargin:-J+"px "+-rt+"px "+-ht+"px "+-Tt+"px",threshold:fe(0,Ir(1,R))||1},kt=!0;function Gt(Ot){let $t=Ot[0].intersectionRatio;if($t!==R){if(!kt)return u();$t?u(!1,$t):s=setTimeout(()=>{u(!1,1e-7)},1e3)}kt=!1}try{t=new IntersectionObserver(Gt,{...xt,root:n.ownerDocument})}catch{t=new IntersectionObserver(Gt,xt)}t.observe(l)}return u(!0),h}function $m(l,i,t,s){s===void 0&&(s={});let{ancestorScroll:n=!0,ancestorResize:h=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:x=typeof IntersectionObserver=="function",animationFrame:R=!1}=s,$=_c(l),j=n||h?[...$?jo($):[],...jo(i)]:[];j.forEach(yt=>{n&&yt.addEventListener("scroll",t,{passive:!0}),h&&yt.addEventListener("resize",t)});let K=$&&x?Ub($,t):null,at=-1,J=null;u&&(J=new ResizeObserver(yt=>{let[xt]=yt;xt&&xt.target===$&&J&&(J.unobserve(i),cancelAnimationFrame(at),at=requestAnimationFrame(()=>{var kt;(kt=J)==null||kt.observe(i)})),t()}),$&&!R&&J.observe($),J.observe(i));let rt,ht=R?Ji(l):null;R&&Tt();function Tt(){let yt=Ji(l);ht&&(yt.x!==ht.x||yt.y!==ht.y||yt.width!==ht.width||yt.height!==ht.height)&&t(),ht=yt,rt=requestAnimationFrame(Tt)}return t(),()=>{var yt;j.forEach(xt=>{n&&xt.removeEventListener("scroll",t),h&&xt.removeEventListener("resize",t)}),K==null||K(),(yt=J)==null||yt.disconnect(),J=null,R&&cancelAnimationFrame(rt)}}var zm=Am;var Vm=_m,Bm=xm,Um=Sm;var Gm=Tm;var Hm=(l,i,t)=>{let s=new Map,n={platform:Bb,...t},h={...n.platform,_c:s};return Em(l,i,{...n,platform:h})};var Ko=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(t=>{t!==i&&t.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};Ko.stack=new Set,Ko.currentKeydownListener=null;var jn=l=>{class i 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),Ko.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Ko.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(n){return n.getClientRects().length===0}hasZeroDimensions(n){let{width:h,height:u}=n.getBoundingClientRect(),{offsetWidth:x,offsetHeight:R}=n;return x+R+u+h===0}isNotVisible(n){return this.hasZeroDimensions(n)||this.hasNoClientRects(n)}hasHiddenStyle(n){let{display:h,opacity:u,visibility:x}=n.style;return h==="none"||u==="0"||x==="hidden"||x==="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(x=>{let R=x;this.isFocusable(R)&&h.add(R),R.shadowRoot?this.findFocusable(R.shadowRoot,h):R.tagName==="SLOT"?R.assignedElements({flatten:!0}).forEach(j=>{j instanceof HTMLElement&&this.findFocusable(j,h)}):this.findFocusable(R,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:u}=this.focusableElements;if(n===-1)return h>0?0:u-1;let x=n+h;return this.shouldFocusTrapWrap?(x<0&&(x=u-1),x>=u&&(x=0)):(x<0&&(x=0),x>=u&&(x=u-1)),x}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(),u=this.findElement(h);n.shiftKey?this.focusTrapIndex=this.calculateNextIndex(u,-1):this.focusTrapIndex=this.calculateNextIndex(u,1);let R=this.focusableElements[this.focusTrapIndex];R.tagName!=="IFRAME"&&R&&(n.preventDefault(),R.focus())}handleTabKeydown(n){this.isFocusTrapActivated&&n.key==="Tab"&&this.trapFocus(n)}}return m([g({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var Wn=l=>{class i 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 i};var Ym=Y.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"},Qi={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},to={TONAL:"tonal",CONTRAST:"contrast"},Lt={PLACEMENT:Ut.BOTTOM,TRIGGER:Qi.CLICK,COLOR:to.TONAL,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,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 Kr=class{static dispatchPopoverEvent(i,t){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var Ic=class{constructor(){this.stack=[]}push(i){this.stack.push(i)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(i){this.stack=this.stack.filter(t=>t!==i)}has(i){return this.stack.includes(i)}clear(){this.stack=[]}},ve=new Ic;var Gb=H`
|
1837
1837
|
:host {
|
1838
1838
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1839
1839
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -1947,7 +1947,7 @@
|
|
1947
1947
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
1948
1948
|
border-bottom-left-radius: 100%;
|
1949
1949
|
}
|
1950
|
-
`,
|
1950
|
+
`,jm=[Gb];var qn=class{constructor(i){this.arrowPixelChange=!1;this.popover=i}setupDelay(){try{let[i,t]=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[i,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(i){let t=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(t.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(t)switch(i.split("-")[0]){case"top":t.style.height=s,t.style.bottom=`calc(-1 * (${s}))`,t.style.left="50%",t.style.width=`${h}px`;break;case"left":t.style.height=`${n}px`,t.style.width=s,t.style.right=`calc(-1.5 * (${s}))`;break;case"right":t.style.height=`${n}px`,t.style.width=s,t.style.left=`calc(-0.5 * (${s}))`;break;case"bottom":default:t.style.height=s,t.style.top=`calc(-1 * (${s}))`,t.style.left="50%",t.style.width=`${h}px`;break}}setupAppendTo(){if(this.popover.appendTo){let i=document.getElementById(this.popover.appendTo);i&&i.appendChild(this.popover)}}setupAccessibility(){var i,t,s;this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal"),this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((i=this.popover.triggerElement)==null?void 0:i.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((s=this.popover.triggerElement)==null?void 0:s.id)||""))}updateAriaHasPopupAttribute(){var i,t,s;this.popover.interactive&&!this.popover.disableAriaHasPopup?(t=this.popover.triggerElement)==null||t.setAttribute("aria-haspopup",((i=this.popover.triggerElement)==null?void 0:i.getAttribute("aria-haspopup"))||"dialog"):(s=this.popover.triggerElement)==null||s.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var i,t;this.popover.disableAriaExpanded?(i=this.popover.triggerElement)==null||i.removeAttribute("aria-expanded"):(t=this.popover.triggerElement)==null||t.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(i,t){var j;if(!this.popover.arrowElement)return;let s=t.split("-")[0],n={top:"bottom",right:"left",bottom:"top",left:"right"}[s],{x:h,y:u}=i,x=this.popover.arrowElement.getBoundingClientRect(),R=(j=this.popover.arrowElement.offsetParent)==null?void 0:j.getBoundingClientRect();if(!this.arrowPixelChange){let K=R!=null&&R[n]?12-Math.abs(x[n]-R[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:u!=null?`${u}px`:"",[n]:`${-this.popover.arrowElement.offsetHeight/2-$}px`})}updatePopoverStyle(i,t){Object.assign(this.popover.style,{left:`${i}px`,top:`${t}px`})}createBackdrop(){var i;if(!this.popover.backdropElement){let t=document.createElement("div");t.classList.add("popover-backdrop");let s=document.createElement("style");s.textContent=`
|
1951
1951
|
.popover-backdrop {
|
1952
1952
|
position: fixed;
|
1953
1953
|
top: 0;
|
@@ -1957,9 +1957,9 @@
|
|
1957
1957
|
background: transparent;
|
1958
1958
|
z-index: ${this.popover.zIndex-1};
|
1959
1959
|
}
|
1960
|
-
`,t.appendChild(s),(i=this.popover.parentElement)==null||i.appendChild(t),this.popover.backdropElement=t}}};var
|
1960
|
+
`,t.appendChild(s),(i=this.popover.parentElement)==null||i.appendChild(t),this.popover.backdropElement=t}}};var It=class It extends Wn(jn(q)){constructor(){super();this.id="";this.triggerID="";this.trigger=Lt.TRIGGER;this.placement=Lt.PLACEMENT;this.color=Lt.COLOR;this.visible=Lt.VISIBLE;this.offset=Lt.OFFSET;this.boundary=Lt.BOUNDARY;this.boundaryRoot=Lt.BOUNDARY_ROOT;this.focusTrap=Lt.FOCUS_TRAP;this.preventScroll=Lt.PREVENT_SCROLL;this.showArrow=Lt.ARROW;this.closeButton=Lt.CLOSE_BUTTON;this.interactive=Lt.INTERACTIVE;this.delay=Lt.DELAY;this.hideOnEscape=Lt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Lt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Lt.HIDE_ON_BLUR;this.hideOnOutsideClick=Lt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Lt.FOCUS_BACK;this.backdrop=Lt.BACKDROP;this.flip=Lt.FLIP;this.size=Lt.SIZE;this.zIndex=Lt.Z_INDEX;this.closeButtonAriaLabel=null;this.role=Lt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Lt.DISABLE_ARIA_EXPANDED;this.disableAriaHasPopup=Lt.DISABLE_ARIA_HAS_POPUP;this.arrowElement=null;this.triggerElement=null;this.triggerElementOriginalStyle={zIndex:"",position:""};this.hoverTimer=null;this.isHovered=!1;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=t=>{if(ve.peek()!==this)return;let s=!1,n=t.composedPath();s=this.contains(t.target)||n.includes(this.triggerElement)||n.includes(this);let h=this.backdropElement?n.includes(this.backdropElement):!1;(!s||h)&&(this.hidePopover(),Kr.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hidePopover(),Kr.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.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 qn(this)}async firstUpdated(t){var s,n;super.firstUpdated(t),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,Kr.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 t;super.disconnectedCallback(),this.removeEventListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),Kr.onDestroyedPopover(this),ve.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 t=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),t==null||t.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 t=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),t==null||t.removeEventListener("mouseenter",this.showPopover),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(t){if(super.updated(t),t.has("role")&&this.role===""&&(this.role=null),t.has("visible")){let s=t.get("visible")||!1;await this.isOpenUpdated(s,this.visible),this.utils.updateAriaExpandedAttribute()}if(t.has("placement")&&this.setAttribute("placement",Object.values(Ut).includes(this.placement)?this.placement:Lt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("trigger")){let n=this.trigger.split(" ").filter(h=>Object.values(Qi).includes(h));this.setAttribute("trigger",n.length>0?this.trigger:Lt.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}t.has("color")&&this.setAttribute("color",Object.values(to).includes(this.color)?this.color:Lt.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),t.has("append-to")&&this.utils.setupAppendTo(),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.setupAccessibility(),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),(t.has("interactive")||t.has("disableAriaHasPopup"))&&this.utils.updateAriaHasPopupAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,s){var n,h,u,x,R,$,j;t===s||!this.triggerElement||(s?(ve.peek()!==this&&ve.push(this),this.backdrop&&(this.utils.createBackdrop(),this.triggerElementOriginalStyle={position:this.triggerElement.style.position,zIndex:this.triggerElement.style.zIndex},this.triggerElement.style.position="relative",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),(u=this.setInitialFocus)==null||u.call(this)),Kr.onShowPopover(this)):(ve.peek()===this&&ve.pop(),this.backdrop&&(this.triggerElement.style.position=this.triggerElementOriginalStyle.position,this.triggerElement.style.zIndex=this.triggerElementOriginalStyle.zIndex),this.backdropElement&&((x=this.backdropElement)==null||x.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),(R=this.triggerElement)==null||R.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&&((j=this.triggerElement)==null||j.focus()),Kr.onHidePopover(this)))}positionPopover(){if(!this.triggerElement)return;let t=[Vm({boundary:!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),rootBoundary:this.boundaryRoot,padding:this.boundaryPadding})],s=this.offset;if(this.flip&&t.push(Bm()),this.size){let n=u=>{this.style.setProperty("--mdc-popover-internal-available-height",`${u}px`)},h=this.renderRoot.querySelector('[part="popover-content"]');t.push(Um({apply({availableHeight:u}){h&&(Object.assign(h.style,{maxHeight:`${u}px`,overflowY:"auto"}),n(u))},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,t.push(Gm({element:this.arrowElement,padding:12}))}t.push(zm(s)),$m(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:n,y:h,middlewareData:u,placement:x}=await Hm(this.triggerElement,this,{placement:this.placement,middleware:t});this.utils.updatePopoverStyle(n,h),u.arrow&&this.arrowElement&&this.utils.updateArrowStyle(u.arrow,x),this.trigger.includes("mouseenter")&&this.interactive&&this.utils.setupHoverBridge(x)})}findClosestPopover(t){let s=t;for(;s&&!(s instanceof It);)s=s.parentElement;return s}render(){return w`
|
1961
1961
|
<div class="popover-hover-bridge"></div>
|
1962
|
-
${this.closeButton?
|
1962
|
+
${this.closeButton?w` <mdc-button
|
1963
1963
|
class="popover-close"
|
1964
1964
|
prefix-icon="cancel-bold"
|
1965
1965
|
variant="tertiary"
|
@@ -1967,11 +1967,11 @@
|
|
1967
1967
|
aria-label=${nt(this.closeButtonAriaLabel)||""}
|
1968
1968
|
@click="${this.hidePopover}"
|
1969
1969
|
></mdc-button>`:W}
|
1970
|
-
${this.showArrow?
|
1970
|
+
${this.showArrow?w`<div class="popover-arrow"></div>`:W}
|
1971
1971
|
<div part="popover-content">
|
1972
1972
|
<slot></slot>
|
1973
1973
|
</div>
|
1974
|
-
`}};
|
1974
|
+
`}};It.styles=[...q.styles,...jm],m([g({type:String,reflect:!0})],It.prototype,"id",2),m([g({type:String,reflect:!0})],It.prototype,"triggerID",2),m([g({type:String,reflect:!0})],It.prototype,"trigger",2),m([g({type:String,reflect:!0})],It.prototype,"placement",2),m([g({type:String,reflect:!0})],It.prototype,"color",2),m([g({type:Boolean,reflect:!0})],It.prototype,"visible",2),m([g({type:Number,reflect:!0})],It.prototype,"offset",2),m([g({type:String,reflect:!0,attribute:"boundary"})],It.prototype,"boundary",2),m([g({type:String,reflect:!0,attribute:"boundary-root"})],It.prototype,"boundaryRoot",2),m([g({type:Number,reflect:!0,attribute:"boundary-padding"})],It.prototype,"boundaryPadding",2),m([g({type:Boolean,reflect:!0,attribute:"focus-trap"})],It.prototype,"focusTrap",2),m([g({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],It.prototype,"preventScroll",2),m([g({type:Boolean,reflect:!0,attribute:"show-arrow"})],It.prototype,"showArrow",2),m([g({type:Boolean,reflect:!0,attribute:"close-button"})],It.prototype,"closeButton",2),m([g({type:Boolean,reflect:!0})],It.prototype,"interactive",2),m([g({type:String,reflect:!0})],It.prototype,"delay",2),m([g({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],It.prototype,"hideOnEscape",2),m([g({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],It.prototype,"propagateEventOnEscape",2),m([g({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],It.prototype,"hideOnBlur",2),m([g({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],It.prototype,"hideOnOutsideClick",2),m([g({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],It.prototype,"focusBackToTrigger",2),m([g({type:Boolean,reflect:!0})],It.prototype,"backdrop",2),m([g({type:Boolean,reflect:!0})],It.prototype,"flip",2),m([g({type:Boolean,reflect:!0})],It.prototype,"size",2),m([g({type:Number,reflect:!0,attribute:"z-index"})],It.prototype,"zIndex",2),m([g({type:String,reflect:!0,attribute:"append-to"})],It.prototype,"appendTo",2),m([g({type:String,attribute:"close-button-aria-label",reflect:!0})],It.prototype,"closeButtonAriaLabel",2),m([g({type:String,reflect:!0})],It.prototype,"role",2),m([g({type:String,reflect:!0,attribute:"aria-labelledby"})],It.prototype,"ariaLabelledby",2),m([g({type:String,reflect:!0,attribute:"aria-describedby"})],It.prototype,"ariaDescribedby",2),m([g({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],It.prototype,"disableAriaExpanded",2),m([g({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],It.prototype,"disableAriaHasPopup",2);var kc=It,Ne=kc;var Wm=Y.constructTagName("toggletip"),eo={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Ut.TOP,CLICK:Qi.CLICK,SHOW_ARROW:!0};var Hb=H`
|
1975
1975
|
:host {
|
1976
1976
|
--mdc-toggletip-max-width: 400px;
|
1977
1977
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
@@ -2001,7 +2001,7 @@
|
|
2001
2001
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
2002
2002
|
margin-left: 2rem;
|
2003
2003
|
}
|
2004
|
-
`,
|
2004
|
+
`,qm=[Hb];var Ei=class extends Ne{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=eo.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:eo.CLOSE_BUTTON,this.closeButtonAriaLabel=eo.CLOSE_BUTTON_ARIA_LABEL,this.trigger=eo.CLICK,this.showArrow=eo.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0}getToggleTipText(){var t,s;return((s=(t=this.defaultSlotNodes)==null?void 0:t.map(n=>n.textContent).join(" "))==null?void 0:s.trim())||""}onPlacementUpdated(){Object.values(Ut).includes(this.placement)||(this.placement=eo.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return w`
|
2005
2005
|
${super.render()}
|
2006
2006
|
<mdc-screenreaderannouncer
|
2007
2007
|
identity="${nt(this.screenreaderAnnouncerIdentity)}"
|
@@ -2009,12 +2009,12 @@
|
|
2009
2009
|
delay="300"
|
2010
2010
|
>
|
2011
2011
|
</mdc-screenreaderannouncer>
|
2012
|
-
`}};
|
2012
|
+
`}};Ei.styles=[...Ne.styles,...qm],m([an()],Ei.prototype,"defaultSlotNodes",2),m([At()],Ei.prototype,"currentAnnouncement",2),m([g({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Ei.prototype,"screenreaderAnnouncerIdentity",2),m([g({type:String,reflect:!0})],Ei.prototype,"placement",2);var Cc=Ei;var se=[];for(let l=0;l<256;++l)se.push((l+256).toString(16).slice(1));function Km(l,i=0){return(se[l[i+0]]+se[l[i+1]]+se[l[i+2]]+se[l[i+3]]+"-"+se[l[i+4]]+se[l[i+5]]+"-"+se[l[i+6]]+se[l[i+7]]+"-"+se[l[i+8]]+se[l[i+9]]+"-"+se[l[i+10]]+se[l[i+11]]+se[l[i+12]]+se[l[i+13]]+se[l[i+14]]+se[l[i+15]]).toLowerCase()}var wc,Yb=new Uint8Array(16);function Nc(){if(!wc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");wc=crypto.getRandomValues.bind(crypto)}return wc(Yb)}var jb=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Lc={randomUUID:jb};function Wb(l,i,t){var n,h,u;if(Lc.randomUUID&&!i&&!l)return Lc.randomUUID();l=l||{};let s=(u=(h=l.random)!=null?h:(n=l.rng)==null?void 0:n.call(l))!=null?u:Nc();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,i){if(t=t||0,t<0||t+16>i.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let x=0;x<16;++x)i[t+x]=s[x];return i}return Km(s)}var qe=Wb;var Xm=Y.constructTagName("screenreaderannouncer"),qb={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Xo={ARIA_LIVE:qb.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Kb=[H`
|
2013
2013
|
:host {
|
2014
2014
|
display: none;
|
2015
2015
|
visibility: hidden;
|
2016
2016
|
}
|
2017
|
-
`],
|
2017
|
+
`],Zm=Kb;var Xr=class extends q{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=Xo.ARIA_LIVE;this.delay=Xo.DELAY;this.timeout=Xo.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(t,s,n,h){var u;if(t.length>0){let x=`mdc-screenreaderannouncer-announcement-${qe()}`,R=document.createElement("div");R.id=x,R.ariaLive=h,(u=document.getElementById(this.identity))==null||u.appendChild(R);let $=window.setTimeout(()=>{let j=document.createElement("p");j.textContent=t,R.appendChild(j),this.ariaLiveAnnouncementIds.push(x);let K=window.setTimeout(()=>{var at;(at=document.getElementById(x))==null||at.remove()},n);this.timeOutIds.push(K)},s);this.timeOutIds.push($)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var s;(s=document.getElementById(t))==null||s.remove()})}createAnnouncementAriaLiveRegion(){let t=document.getElementById(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let s=document.createElement("style");s.textContent=`
|
2018
2018
|
.mdc-screenreaderannouncer__visually-hidden {
|
2019
2019
|
clip: rect(0 0 0 0);
|
2020
2020
|
clip-path: inset(50%);
|
@@ -2024,7 +2024,7 @@
|
|
2024
2024
|
white-space: nowrap;
|
2025
2025
|
width: 1px;
|
2026
2026
|
}
|
2027
|
-
`,t.appendChild(s),t.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(t)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=
|
2027
|
+
`,t.appendChild(s),t.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(t)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Xo.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(t){t.has("identity")&&this.identity.length===0&&(this.identity=Xo.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Xr.styles=[...q.styles,...Zm],m([g({type:String,reflect:!0})],Xr.prototype,"announcement",2),m([g({type:String,reflect:!0})],Xr.prototype,"identity",2),m([g({type:String,reflect:!0,attribute:"data-aria-live"})],Xr.prototype,"dataAriaLive",2),m([g({type:Number,reflect:!0})],Xr.prototype,"delay",2),m([g({type:Number,reflect:!0})],Xr.prototype,"timeout",2);var Rc=Xr;Rc.register(Xm);var Xb=Rc;Cc.register(Wm);var Zb=Cc;var Yt=l=>{class i extends l{constructor(){super(...arguments);this.dataAriaLabel=null}}return m([g({type:String,reflect:!0,attribute:"data-aria-label"})],i.prototype,"dataAriaLabel",2),i};var Le=l=>{class i 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-${qe()}`}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 i.formAssociated=!0,m([g({reflect:!0,type:String})],i.prototype,"name",2),m([g({reflect:!0,type:String})],i.prototype,"value",2),m([g({reflect:!0,type:String,attribute:"validation-message"})],i.prototype,"validationMessage",2),m([Vr("input")],i.prototype,"inputElement",2),i};var Jm=Y.constructTagName("formfieldwrapper"),jt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Mt={VALIDATION:jt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:"top"},ia={TAGNAME:vt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var Jb=[Et,H`
|
2028
2028
|
:host {
|
2029
2029
|
flex-direction: column;
|
2030
2030
|
align-items: flex-start;
|
@@ -2082,29 +2082,29 @@
|
|
2082
2082
|
:host([help-text-type='priority']) .mdc-help-text {
|
2083
2083
|
color: var(--mds-color-theme-text-accent-normal);
|
2084
2084
|
}
|
2085
|
-
`],
|
2085
|
+
`],Qm=Jb;var tu=l=>({[jt.ERROR]:"error-legacy-badge-filled",[jt.WARNING]:"warning-badge-filled",[jt.SUCCESS]:"check-circle-badge-filled",[jt.PRIORITY]:"priority-badge-filled",[jt.DEFAULT]:""})[l]||"";var Ke=class extends zt(q){constructor(){super(...arguments);this.required=!1;this.id="";this.helpTextType=Mt.VALIDATION;this.toggletipPlacement=Mt.TOGGLETIP_PLACEMENT;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?w`<label for="${this.id}" id="${Mt.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:w` <mdc-text
|
2086
2086
|
id="${Mt.HEADING_ID}"
|
2087
|
-
tagname="${
|
2088
|
-
type="${
|
2087
|
+
tagname="${ia.TAGNAME}"
|
2088
|
+
type="${ia.HEADER_TYPE}"
|
2089
2089
|
part="label"
|
2090
2090
|
>${this.label}</mdc-text
|
2091
|
-
>`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=
|
2091
|
+
>`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=tu(this.helpTextType||Mt.VALIDATION);return t&&!this.disabled?w`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:W}renderHelpText(){return this.helpText?w`
|
2092
2092
|
<mdc-text
|
2093
2093
|
id="${Mt.HELPER_TEXT_ID}"
|
2094
2094
|
part="help-text"
|
2095
|
-
tagname=${
|
2096
|
-
type=${
|
2095
|
+
tagname=${ia.TAGNAME}
|
2096
|
+
type=${ia.TYPE}
|
2097
2097
|
>
|
2098
2098
|
${this.helpText}
|
2099
2099
|
</mdc-text>
|
2100
|
-
`:W}renderLabel(){return this.label?
|
2100
|
+
`:W}renderLabel(){return this.label?w`<div class="mdc-label-text" part="label-text">
|
2101
2101
|
<slot name="label">${this.renderLabelElement()}</slot>
|
2102
|
-
${this.required?
|
2103
|
-
${this.toggletipText?
|
2102
|
+
${this.required?w`<span part="required-indicator">*</span>`:W}
|
2103
|
+
${this.toggletipText?w` <mdc-button
|
2104
2104
|
part="info-icon-btn"
|
2105
2105
|
prefix-icon="${Mt.INFO_ICON}"
|
2106
2106
|
size="${Mt.ICON_SIZE}"
|
2107
|
-
variant="${
|
2107
|
+
variant="${Ft.TERTIARY}"
|
2108
2108
|
aria-label="${nt(this.infoIconAriaLabel)}"
|
2109
2109
|
id="info-icon-id"
|
2110
2110
|
></mdc-button>
|
@@ -2116,10 +2116,10 @@
|
|
2116
2116
|
show-arrow
|
2117
2117
|
>${this.toggletipText}</mdc-toggletip
|
2118
2118
|
>`:W}
|
2119
|
-
</div>`:W}renderHelperText(){return this.helpText?
|
2119
|
+
</div>`:W}renderHelperText(){return this.helpText?w`<div class="mdc-help-text" part="help-text">
|
2120
2120
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
2121
2121
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
2122
|
-
</div>`:W}};
|
2122
|
+
</div>`:W}};Ke.styles=[...q.styles,...Qm],m([g({reflect:!0,type:String})],Ke.prototype,"label",2),m([g({type:Boolean,reflect:!0,attribute:"required"})],Ke.prototype,"required",2),m([g({type:String})],Ke.prototype,"id",2),m([g({reflect:!0,attribute:"help-text-type"})],Ke.prototype,"helpTextType",2),m([g({type:String,reflect:!0,attribute:"help-text"})],Ke.prototype,"helpText",2),m([g({type:String,reflect:!0,attribute:"toggletip-text"})],Ke.prototype,"toggletipText",2),m([g({type:String,reflect:!0,attribute:"toggletip-placement"})],Ke.prototype,"toggletipPlacement",2),m([g({type:String,reflect:!0,attribute:"info-icon-aria-label"})],Ke.prototype,"infoIconAriaLabel",2);var ge=Ke;var Qb=[H`
|
2123
2123
|
:host {
|
2124
2124
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
2125
2125
|
--mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
|
@@ -2191,7 +2191,7 @@
|
|
2191
2191
|
flex-direction: column;
|
2192
2192
|
gap: 0.25rem;
|
2193
2193
|
}
|
2194
|
-
`,...
|
2194
|
+
`,..._t(!0)],eu=Qb;var ro=class extends Le(Yt(ge)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?w`<div class="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(t){var s;t.key===Q.ENTER&&((s=this.form)==null||s.requestSubmit())}handleChange(t){this.toggleState();let s=t.constructor;this.dispatchEvent(new s(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return w`
|
2195
2195
|
<mdc-staticcheckbox
|
2196
2196
|
class="mdc-focus-ring"
|
2197
2197
|
?checked="${this.checked}"
|
@@ -2218,7 +2218,7 @@
|
|
2218
2218
|
/>
|
2219
2219
|
</mdc-staticcheckbox>
|
2220
2220
|
${this.renderLabelAndHelperText()}
|
2221
|
-
`}};
|
2221
|
+
`}};ro.styles=[...ge.styles,...eu],m([g({type:Boolean,reflect:!0})],ro.prototype,"checked",2),m([g({type:Boolean,reflect:!0})],ro.prototype,"indeterminate",2),m([g({type:Boolean,reflect:!0})],ro.prototype,"autofocus",2);var Mc=ro;Mc.register(hm);var ty=Mc;var ru=Y.constructTagName("chip"),ey={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Zo={COLOR:ey.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:vt.SPAN,SIZE:Vi[24],ROLE:et.BUTTON};var ry=H`
|
2222
2222
|
:host {
|
2223
2223
|
height: 1.5rem;
|
2224
2224
|
gap: 0.25rem;
|
@@ -2370,12 +2370,12 @@
|
|
2370
2370
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2371
2371
|
cursor: auto;
|
2372
2372
|
}
|
2373
|
-
`,
|
2373
|
+
`,iu=[Et,ry,..._t()];var Jo=class extends Qt(de){constructor(){super(...arguments);this.color=Zo.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=Zo.ROLE,this.size=Zo.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?w` <mdc-icon name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}render(){return w`
|
2374
2374
|
${this.renderIcon()}
|
2375
|
-
${this.label?
|
2375
|
+
${this.label?w`<mdc-text part="label" type="${Zo.TEXT_TYPE}" tagname="${Zo.TAG_NAME}"
|
2376
2376
|
>${this.label}</mdc-text
|
2377
2377
|
>`:W}
|
2378
|
-
`}};
|
2378
|
+
`}};Jo.styles=[...q.styles,...iu],m([g({type:String,reflect:!0})],Jo.prototype,"color",2),m([g({type:String})],Jo.prototype,"label",2);var Qo=Jo;Qo.register(ru);var iy=Qo;var ou=Y.constructTagName("coachmark"),io={COLOR:to.CONTRAST,TRIGGER:Qi.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var oo=class extends Ne{constructor(){super(...arguments);this.trigger=io.TRIGGER;this.showArrow=io.ARROW;this.closeButton=io.CLOSE_BUTTON;this.disableAriaExpanded=io.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=io.COLOR,this.showArrow=io.ARROW}};m([g({type:String,reflect:!0})],oo.prototype,"trigger",2),m([g({type:Boolean,attribute:"show-arrow"})],oo.prototype,"showArrow",2),m([g({type:Boolean,reflect:!0,attribute:"close-button"})],oo.prototype,"closeButton",2),m([g({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],oo.prototype,"disableAriaExpanded",2);var Oc=oo;Oc.register(ou);var oy=Oc;var su=Y.constructTagName("dialog"),sy={DEFAULT:"default",PROMOTIONAL:"promotional"},Xe={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:sy.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0};var Ti=class{static dispatchDialogEvent(i,t,s=!0){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:s}))}static onShowDialog(i){this.dispatchDialogEvent("shown",i)}static onHideDialog(i){this.dispatchDialogEvent("hidden",i)}static onCloseDialog(i,t=!0){this.dispatchDialogEvent("close",i,t)}static onCreatedDialog(i){this.dispatchDialogEvent("created",i)}static onDestroyedDialog(i){this.dispatchDialogEvent("destroyed",i)}};var ay=H`
|
2379
2379
|
:host {
|
2380
2380
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
2381
2381
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2497,7 +2497,7 @@
|
|
2497
2497
|
mdc-text::part(text) {
|
2498
2498
|
margin: 0;
|
2499
2499
|
}
|
2500
|
-
`,
|
2500
|
+
`,au=[ay];var Vt=class extends Wn(jn(Bo(q))){constructor(){super(...arguments);this.id="";this.visible=Xe.VISIBLE;this.zIndex=Xe.Z_INDEX;this.size=Xe.SIZE;this.variant=Xe.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedBy=null;this.ariaDescription=null;this.headerTagName=Xe.HEADER_TAG_NAME;this.descriptionTagName=Xe.DESCRIPTION_TAG_NAME;this.role=Xe.ROLE;this.disableAriaHasPopup=Xe.DISABLE_ARIA_HAS_POPUP;this.focusTrap=Xe.FOCUS_TRAP;this.preventScroll=!0;this.triggerElement=null;this.backdropElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(t.preventDefault(),t.stopPropagation(),this.closeDialog())}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,s,n;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),(t=this.backdropElement)==null||t.remove(),this.backdropElement=null,(s=this.triggerElement)==null||s.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(n=this.deactivateFocusTrap)==null||n.call(this),this.focusBackToTrigger(),Ti.onDestroyedDialog(this)}applyZIndex(){var t;this.style.setProperty("z-index",`${this.zIndex}`),(t=this.backdropElement)==null||t.style.setProperty("z-index",`${this.zIndex-1}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),Ti.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerId")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.setupAriaHasPopup()),t.has("visible")){let s=t.get("visible");await this.isOpenUpdated(s,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=Xe.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledBy")||t.has("ariaDescribedBy")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,s;this.disableAriaHasPopup||(s=this.triggerElement)==null||s.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerId&&this.setAttribute("aria-labelledby",this.triggerId)),!this.ariaDescribedBy&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerId&&this.setAttribute("aria-describedby",this.triggerId))}createBackdrop(){var n;let t=document.createElement("div");t.classList.add("dialog-backdrop");let s=document.createElement("style");s.textContent=`
|
2501
2501
|
.dialog-backdrop {
|
2502
2502
|
position: fixed;
|
2503
2503
|
top: 0;
|
@@ -2507,8 +2507,8 @@
|
|
2507
2507
|
background: var(--mds-color-theme-common-overlays-secondary-normal);
|
2508
2508
|
z-index: ${this.zIndex-1};
|
2509
2509
|
}
|
2510
|
-
`,t.appendChild(s),(n=this.parentElement)==null||n.appendChild(t),this.backdropElement=t}closeDialog(){
|
2511
|
-
${this.headerText?
|
2510
|
+
`,t.appendChild(s),(n=this.parentElement)==null||n.appendChild(t),this.backdropElement=t}closeDialog(){Ti.onCloseDialog(this,!1)}async isOpenUpdated(t,s){var n,h,u,x,R,$;t!==s&&(s&&!t?(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),(u=this.triggerElement)==null||u.setAttribute("aria-expanded","true"),Ti.onShowDialog(this)):!s&&t&&((x=this.backdropElement)==null||x.remove(),this.backdropElement=null,(R=this.triggerElement)==null||R.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),($=this.deactivateFocusTrap)==null||$.call(this),this.focusBackToTrigger(),Ti.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}render(){return w`
|
2511
|
+
${this.headerText?w` <div part="header-section">
|
2512
2512
|
<div part="header">
|
2513
2513
|
<slot name="header-prefix"></slot>
|
2514
2514
|
<mdc-text
|
@@ -2519,7 +2519,7 @@
|
|
2519
2519
|
${this.headerText}
|
2520
2520
|
</mdc-text>
|
2521
2521
|
</div>
|
2522
|
-
${this.descriptionText?
|
2522
|
+
${this.descriptionText?w`<mdc-text
|
2523
2523
|
part="description-text"
|
2524
2524
|
tagname="${vt[this.descriptionTagName.toUpperCase()]}"
|
2525
2525
|
type="${ot.BODY_MIDSIZE_REGULAR}"
|
@@ -2529,9 +2529,9 @@
|
|
2529
2529
|
</div>`:W}
|
2530
2530
|
<mdc-button
|
2531
2531
|
part="dialog-close-btn"
|
2532
|
-
prefix-icon="${
|
2533
|
-
variant="${
|
2534
|
-
size="${
|
2532
|
+
prefix-icon="${Xe.CANCEL_ICON}"
|
2533
|
+
variant="${Ft.TERTIARY}"
|
2534
|
+
size="${Ar[20]}"
|
2535
2535
|
aria-label="${nt(this.closeButtonAriaLabel)||""}"
|
2536
2536
|
@click="${this.closeDialog}"
|
2537
2537
|
></mdc-button>
|
@@ -2539,7 +2539,7 @@
|
|
2539
2539
|
<slot name="dialog-body"></slot>
|
2540
2540
|
</div>
|
2541
2541
|
${this.renderFooter()}
|
2542
|
-
`}};
|
2542
|
+
`}};Vt.styles=[...q.styles,...au],m([g({type:String,reflect:!0})],Vt.prototype,"id",2),m([g({type:String,reflect:!0})],Vt.prototype,"triggerId",2),m([g({type:Boolean,reflect:!0})],Vt.prototype,"visible",2),m([g({type:Number,reflect:!0,attribute:"z-index"})],Vt.prototype,"zIndex",2),m([g({type:String,reflect:!0})],Vt.prototype,"size",2),m([g({type:String,reflect:!0})],Vt.prototype,"variant",2),m([g({type:String,attribute:"close-button-aria-label"})],Vt.prototype,"closeButtonAriaLabel",2),m([g({type:String,reflect:!0,attribute:"aria-label"})],Vt.prototype,"ariaLabel",2),m([g({type:String,reflect:!0,attribute:"aria-labelledby"})],Vt.prototype,"ariaLabelledby",2),m([g({type:String,reflect:!0,attribute:"aria-describedby"})],Vt.prototype,"ariaDescribedBy",2),m([g({type:String,reflect:!0,attribute:"aria-description"})],Vt.prototype,"ariaDescription",2),m([g({type:String,reflect:!0,attribute:"header-text"})],Vt.prototype,"headerText",2),m([g({type:String,reflect:!0,attribute:"description-text"})],Vt.prototype,"descriptionText",2),m([g({type:String,reflect:!0,attribute:"header-tag-name"})],Vt.prototype,"headerTagName",2),m([g({type:String,reflect:!0,attribute:"description-tag-name"})],Vt.prototype,"descriptionTagName",2),m([g({type:String,reflect:!0})],Vt.prototype,"role",2),m([g({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],Vt.prototype,"disableAriaHasPopup",2),m([g({type:Boolean,reflect:!0,attribute:"focus-trap"})],Vt.prototype,"focusTrap",2);var Pc=Vt;Pc.register(su);var ny=Pc;var nu=Y.constructTagName("divider"),so={HORIZONTAL:"horizontal",VERTICAL:"vertical"},oa={SOLID:"solid",GRADIENT:"gradient"},be={POSITIVE:"positive",NEGATIVE:"negative"},sa={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},ao={ORIENTATION:so.HORIZONTAL,VARIANT:oa.SOLID,ARROW_DIRECTION:be.NEGATIVE,BUTTON_DIRECTION:be.NEGATIVE};var ly=[Et,H`
|
2543
2543
|
:host {
|
2544
2544
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
2545
2545
|
--mdc-divider-width: 0.0625rem;
|
@@ -2736,11 +2736,11 @@
|
|
2736
2736
|
line-height: var(--mdc-divider-text-line-height);
|
2737
2737
|
flex-shrink: 0;
|
2738
2738
|
}
|
2739
|
-
`],
|
2739
|
+
`],lu=ly;var xi=class extends q{constructor(){super(...arguments);this.orientation=ao.ORIENTATION;this.variant=ao.VARIANT;this.arrowDirection=ao.ARROW_DIRECTION;this.buttonPosition=ao.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(oa).includes(t)?t:ao.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(so).includes(t)?t:ao.ORIENTATION)}ensureValidDirections(){let t=this.orientation===so.HORIZONTAL?be.NEGATIVE:be.POSITIVE;Object.values(be).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(be).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let s=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",s)}}getArrowIcon(){let t=this.orientation===so.HORIZONTAL,s=this.arrowDirection===be.POSITIVE;return t?s?sa.UP:sa.DOWN:s?sa.RIGHT:sa.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var u;let t=(u=this.shadowRoot)==null?void 0:u.querySelector("slot"),s=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(s.length>1)return;let n=s.some(x=>x.tagName===Bs.toUpperCase()),h=s.some(x=>x.tagName===Gr.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 w`
|
2740
2740
|
<div></div>
|
2741
2741
|
<slot @slotchange=${this.inferDividerType}></slot>
|
2742
2742
|
<div></div>
|
2743
|
-
`}};
|
2743
|
+
`}};xi.styles=[...q.styles,...lu],m([g({type:String,reflect:!0})],xi.prototype,"orientation",2),m([g({type:String,reflect:!0})],xi.prototype,"variant",2),m([g({type:String,attribute:"arrow-direction",reflect:!0})],xi.prototype,"arrowDirection",2),m([g({type:String,attribute:"button-position",reflect:!0})],xi.prototype,"buttonPosition",2);var Dc=xi;Dc.register(nu);var cy=Dc;var dy=H`
|
2744
2744
|
:host([selected]) {
|
2745
2745
|
border: 2px solid;
|
2746
2746
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
@@ -2762,7 +2762,7 @@
|
|
2762
2762
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2763
2763
|
cursor: auto;
|
2764
2764
|
}
|
2765
|
-
`,
|
2765
|
+
`,cu=[dy];var du=Y.constructTagName("filterchip"),Fc={ICON_NAME:"check-bold",COLOR:"default"};var aa=class extends Qo{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Fc.COLOR}setSelected(t){t?(this.iconName=Fc.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(t){super.update(t),t.has("selected")&&this.setSelected(this.selected)}};aa.styles=[...Qo.styles,...cu],m([g({type:Boolean,reflect:!0})],aa.prototype,"selected",2);var $c=aa;$c.register(du);var hy=$c;var py=H`
|
2766
2766
|
:host::part(container) {
|
2767
2767
|
display: flex;
|
2768
2768
|
flex-direction: column;
|
@@ -2778,7 +2778,7 @@
|
|
2778
2778
|
:host::part(label-text) {
|
2779
2779
|
font-weight: bold;
|
2780
2780
|
}
|
2781
|
-
`,
|
2781
|
+
`,hu=[py];var Kn=class extends Yt(ge){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.disabled=void 0}render(){var t;return w`
|
2782
2782
|
<div
|
2783
2783
|
part="container"
|
2784
2784
|
role="${this.isRadio?et.RADIOGROUP:et.GROUP}"
|
@@ -2789,7 +2789,7 @@
|
|
2789
2789
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
2790
2790
|
<slot></slot>
|
2791
2791
|
</div>
|
2792
|
-
`}};
|
2792
|
+
`}};Kn.styles=[...ge.styles,...hu];var zc=Kn;var pu=Y.constructTagName("formfieldgroup");zc.register(pu);var Xn=zc;Us.register(pn);var my=Us;var mu=Ui(class extends vi{constructor(l){if(super(l),l.type!==cr.PROPERTY&&l.type!==cr.ATTRIBUTE&&l.type!==cr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!fn(l))throw Error("`live` bindings can only contain a single expression")}render(l){return l}update(l,[i]){if(i===ke||i===W)return i;let t=l.element,s=l.name;if(l.type===cr.PROPERTY){if(i===t[s])return ke}else if(l.type===cr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(s))return ke}else if(l.type===cr.ATTRIBUTE&&t.getAttribute(s)===i+"")return ke;return Sp(l),i}});ge.register(Jm);var Ze=ge;var uu=Y.constructTagName("input"),Zn={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Vc={OFF:"off",ON:"on"},ts={PASSWORD:"password",TEXT:"text",SEARCH:"search"},fu={MAX_LENGTH:10,VALIDATION:jt.ERROR},Zr={VALIDATION:jt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ft.TERTIARY,CLEAR_BUTTON_SIZE:Ar[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:vt.SPAN,AUTO_COMPLETE:Vc.OFF,INPUT_TYPE:ts.TEXT};var uy=[H`
|
2793
2793
|
:host {
|
2794
2794
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
2795
2795
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2913,42 +2913,42 @@
|
|
2913
2913
|
opacity: 0;
|
2914
2914
|
pointer-events: none;
|
2915
2915
|
}
|
2916
|
-
`,...
|
2916
|
+
`,..._t(!0)],vu=uy;var Xt=class extends Le(Yt(Ze)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=Zn.OFF;this.autocomplete=Vc.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,s,n){super.attributeChangedCallback(t,s,n),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(h=>{this.onerror&&this.onerror(h)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage&&this.inputElement.setCustomValidity(this.validationMessage),this.setValidity()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity(),this.checkValidity()}onChange(t){this.updateValue(),this.setInputValidity();let s=t.constructor;this.dispatchEvent(new s(t.type,t))}handleKeyDown(t){var s;t.key===Q.ENTER&&((s=this.form)==null||s.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?w`
|
2917
2917
|
<mdc-icon
|
2918
2918
|
class="leading-icon"
|
2919
2919
|
part="leading-icon"
|
2920
2920
|
name=${this.leadingIcon}
|
2921
|
-
size="${
|
2922
|
-
length-unit="${
|
2921
|
+
size="${Zr.ICON_SIZE_VALUE}"
|
2922
|
+
length-unit="${Zr.ICON_SIZE_UNIT}"
|
2923
2923
|
>
|
2924
2924
|
</mdc-icon>
|
2925
|
-
`:W}renderPrefixText(){return this.prefixText?
|
2925
|
+
`:W}renderPrefixText(){return this.prefixText?w`
|
2926
2926
|
<mdc-text
|
2927
2927
|
class="prefix-text"
|
2928
|
-
tagname="${
|
2929
|
-
type="${
|
2928
|
+
tagname="${Zr.PREFIX_TEXT_TAG}"
|
2929
|
+
type="${Zr.PREFIX_TEXT_TYPE}"
|
2930
2930
|
aria-hidden="true"
|
2931
2931
|
>
|
2932
|
-
${this.prefixText.slice(0,
|
2932
|
+
${this.prefixText.slice(0,fu.MAX_LENGTH)}
|
2933
2933
|
</mdc-text>
|
2934
|
-
`:W}clearInputText(){var t;this.value="",(t=this.inputElement)==null||t.focus()}renderTrailingButton(t=!1){let s=t||this.value&&this.trailingButton;return s?
|
2934
|
+
`:W}clearInputText(){var t;this.value="",(t=this.inputElement)==null||t.focus()}renderTrailingButton(t=!1){let s=t||this.value&&this.trailingButton;return s?w`
|
2935
2935
|
<mdc-button
|
2936
2936
|
part="trailing-button"
|
2937
2937
|
class="own-focus-ring ${s?"":"hidden"}"
|
2938
|
-
prefix-icon="${
|
2939
|
-
variant="${
|
2940
|
-
size="${
|
2938
|
+
prefix-icon="${Zr.CLEAR_BUTTON_ICON}"
|
2939
|
+
variant="${Zr.CLEAR_BUTTON_VARIANT}"
|
2940
|
+
size="${Zr.CLEAR_BUTTON_SIZE}"
|
2941
2941
|
aria-label="${this.clearAriaLabel}"
|
2942
2942
|
@click=${this.clearInputText}
|
2943
2943
|
?disabled=${this.disabled||this.readonly||!s}
|
2944
2944
|
></mdc-button>
|
2945
|
-
`:W}renderInputElement(t,s=!1){var h;let n=s?"":this.placeholder;return
|
2945
|
+
`:W}renderInputElement(t,s=!1){var h;let n=s?"":this.placeholder;return w`<input
|
2946
2946
|
aria-label="${(h=this.dataAriaLabel)!=null?h:""}"
|
2947
2947
|
class="input"
|
2948
2948
|
part="mdc-input"
|
2949
2949
|
id="${this.id}"
|
2950
2950
|
name="${this.name}"
|
2951
|
-
.value="${
|
2951
|
+
.value="${mu(this.value)}"
|
2952
2952
|
?disabled="${this.disabled}"
|
2953
2953
|
?readonly="${this.readonly}"
|
2954
2954
|
?required="${this.required}"
|
@@ -2968,18 +2968,18 @@
|
|
2968
2968
|
@input=${this.onInput}
|
2969
2969
|
@change=${this.onChange}
|
2970
2970
|
@keydown=${this.handleKeyDown}
|
2971
|
-
/>`}render(){return
|
2971
|
+
/>`}render(){return w`
|
2972
2972
|
${this.renderLabel()}
|
2973
2973
|
<div class="input-container mdc-focus-ring" part="input-container">
|
2974
2974
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
2975
2975
|
<div class="input-section" part="input-section">
|
2976
2976
|
<slot name="input-prefix-text">${this.renderPrefixText()}</slot>
|
2977
|
-
<slot name="input">${this.renderInputElement(
|
2977
|
+
<slot name="input">${this.renderInputElement(Zr.INPUT_TYPE)}</slot>
|
2978
2978
|
</div>
|
2979
2979
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
2980
2980
|
</div>
|
2981
2981
|
${this.helpText?this.renderHelperText():W}
|
2982
|
-
`}};Xt.styles=[...
|
2982
|
+
`}};Xt.styles=[...Ze.styles,...vu],m([g({type:String})],Xt.prototype,"placeholder",2),m([g({type:Boolean})],Xt.prototype,"readonly",2),m([g({type:String,attribute:"prefix-text"})],Xt.prototype,"prefixText",2),m([g({type:String,attribute:"leading-icon"})],Xt.prototype,"leadingIcon",2),m([g({type:Boolean,attribute:"trailing-button"})],Xt.prototype,"trailingButton",2),m([g({type:Number})],Xt.prototype,"maxlength",2),m([g({type:Number})],Xt.prototype,"minlength",2),m([g({type:String})],Xt.prototype,"autocapitalize",2),m([g({type:String})],Xt.prototype,"autocomplete",2),m([g({type:Boolean})],Xt.prototype,"autofocus",2),m([g({type:String})],Xt.prototype,"dirname",2),m([g({type:String})],Xt.prototype,"pattern",2),m([g({type:String})],Xt.prototype,"list",2),m([g({type:Number})],Xt.prototype,"size",2),m([g({type:String,attribute:"clear-aria-label"})],Xt.prototype,"clearAriaLabel",2);var Jr=Xt;Jr.register(uu);var fy=Jr;var vy=H`
|
2983
2983
|
:host {
|
2984
2984
|
height: 1.5rem;
|
2985
2985
|
gap: 0.25rem;
|
@@ -3010,9 +3010,9 @@
|
|
3010
3010
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
3011
3011
|
cursor: auto;
|
3012
3012
|
}
|
3013
|
-
`,
|
3013
|
+
`,gu=[Et,vy];var Jn=Y.constructTagName("inputchip"),Qn={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:vt.SPAN,CLOSE_ICON:"cancel-bold"};var no=class extends Qt(zt(q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?w` <mdc-icon name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return w`
|
3014
3014
|
${this.renderIcon()}
|
3015
|
-
${this.label?
|
3015
|
+
${this.label?w`<mdc-text part="label" type="${Qn.TEXT_TYPE}" tagname="${Qn.TAG_NAME}"
|
3016
3016
|
>${this.label}</mdc-text
|
3017
3017
|
>`:W}
|
3018
3018
|
<mdc-button
|
@@ -3020,11 +3020,11 @@
|
|
3020
3020
|
variant="tertiary"
|
3021
3021
|
part="close-icon"
|
3022
3022
|
aria-label="${this.clearAriaLabel}"
|
3023
|
-
prefix-icon="${
|
3023
|
+
prefix-icon="${Qn.CLOSE_ICON}"
|
3024
3024
|
size="20"
|
3025
3025
|
@click="${this.handleClose}"
|
3026
3026
|
></mdc-button>
|
3027
|
-
`}};
|
3027
|
+
`}};no.styles=[...q.styles,...gu],m([g({type:String})],no.prototype,"label",2),m([g({type:Boolean})],no.prototype,"error",2),m([g({type:String,attribute:"clear-aria-label"})],no.prototype,"clearAriaLabel",2);var Bc=no;Bc.register(Jn);var gy=Bc;var by=H`
|
3028
3028
|
:host {
|
3029
3029
|
gap: 0.25rem;
|
3030
3030
|
}
|
@@ -3082,10 +3082,10 @@
|
|
3082
3082
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
3083
3083
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
3084
3084
|
}
|
3085
|
-
`,
|
3085
|
+
`,bu=[by];var na=class extends Qt(bi){constructor(){super(...arguments);this.size=im.LINK_SIZE}getIconSize(){switch(this.size){case wn.SMALL:return Nn.SMALL;case wn.MIDSIZE:return Nn.MIDSIZE;default:return Nn.LARGE}}render(){return w`
|
3086
3086
|
<slot></slot>
|
3087
|
-
${this.iconName?
|
3088
|
-
`}};
|
3087
|
+
${this.iconName?w` <mdc-icon name=${this.iconName} size=${this.getIconSize()} length-unit="rem"></mdc-icon> `:W}
|
3088
|
+
`}};na.styles=[...bi.styles,...bu],m([g({type:String,reflect:!0})],na.prototype,"size",2);var la=na;la.register(Cn);var yy=la;var yu=Y.constructTagName("linkbutton"),es={12:12,14:14,16:16},rs={SIZE:es[16],ROLE:et.BUTTON,INLINE:zo.INLINE,INVERTED:zo.INVERTED};var Eu=l=>{switch(l){case es[12]:return .75;case es[14]:return .875;default:return 1}};var Ey=H`
|
3089
3089
|
:host {
|
3090
3090
|
--mdc-link-color-disabled: var(--mds-color-theme-text-primary-disabled);
|
3091
3091
|
gap: 0.25rem;
|
@@ -3148,31 +3148,31 @@
|
|
3148
3148
|
:host([soft-disabled]) {
|
3149
3149
|
color: var(--mdc-link-color-disabled);
|
3150
3150
|
}
|
3151
|
-
`,
|
3151
|
+
`,Tu=[Ey];var lo=class extends Qt(de){constructor(){super(...arguments);this.size=rs.SIZE;this.inline=rs.INLINE;this.inverted=rs.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=rs.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(es).includes(t)?`${t}`:rs.SIZE.toString())}render(){return w`
|
3152
3152
|
<slot></slot>
|
3153
|
-
${this.iconName?
|
3154
|
-
`}};
|
3153
|
+
${this.iconName?w` <mdc-icon name=${this.iconName} size=${Eu(this.size)} length-unit="rem"></mdc-icon> `:W}
|
3154
|
+
`}};lo.styles=[...la.styles,...Tu],m([g({type:Number,reflect:!0})],lo.prototype,"size",2),m([g({type:Boolean,reflect:!0})],lo.prototype,"inline",2),m([g({type:Boolean,reflect:!0})],lo.prototype,"inverted",2);var Uc=lo;Uc.register(yu);var Ty=Uc;bi.register(tm);var xy=bi;var tl=Y.constructTagName("listitem"),ca={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Gc={VARIANT:ca.FULL_WIDTH,TOOLTIP_PLACEMENT:Ut.TOP};var xu=Y.constructTagName("list"),Hc="header-id";var Ay=H`
|
3155
3155
|
:host::part(header-text) {
|
3156
3156
|
padding: 0.5rem 0.75rem;
|
3157
3157
|
}
|
3158
|
-
`,
|
3158
|
+
`,Au=[Ay];var is=class extends Yt(q){constructor(){super();this.dataRole=et.LIST;this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var h;let s=this.getCurrentIndex(t.target),n=this.getNewIndexBasedOnKey(t.key,s,this.listItems.length);n!==void 0&&((h=this.listItems[n])==null||h.focus(),this.resetTabIndexAndSetActiveTabIndex(n))}getCurrentIndex(t){return this.listItems.findIndex(s=>s===t||s===t.parentElement)}getNewIndexBasedOnKey(t,s,n){switch(t){case Q.ARROW_DOWN:return(s+1)%n;case Q.ARROW_UP:return(s-1+n)%n;case Q.HOME:return 0;case Q.END:return n-1;default:return}}handleMouseClick(t){let s=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(s)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((s,n)=>{let h=t===n?"0":"-1";s==null||s.setAttribute("tabindex",h)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var s;let t=this.headerText?w`
|
3159
3159
|
<mdc-text
|
3160
|
-
id="${
|
3160
|
+
id="${Hc}"
|
3161
3161
|
part="header-text"
|
3162
3162
|
type="${ot.BODY_MIDSIZE_BOLD}"
|
3163
3163
|
tagname="${vt.SPAN}"
|
3164
3164
|
>${this.headerText}</mdc-text
|
3165
3165
|
>
|
3166
|
-
`:W;return
|
3166
|
+
`:W;return w`
|
3167
3167
|
<div
|
3168
3168
|
role="${this.dataRole}"
|
3169
|
-
aria-labelledby="${this.headerText?
|
3169
|
+
aria-labelledby="${this.headerText?Hc:""}"
|
3170
3170
|
aria-label="${(s=this.dataAriaLabel)!=null?s:""}"
|
3171
3171
|
>
|
3172
3172
|
${t}
|
3173
3173
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
3174
3174
|
</div>
|
3175
|
-
`}};
|
3175
|
+
`}};is.styles=[...q.styles,...Au],m([Pt({selector:`${tl}:not([disabled])`})],is.prototype,"listItems",2),m([g({type:String,attribute:"header-text",reflect:!0})],is.prototype,"headerText",2);var Yc=is;Yc.register(xu);var _y=Yc;var da=Y.constructTagName("tooltip"),Fe={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Ai={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:Ut.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Fe.DESCRIPTION};var Sy=H`
|
3176
3176
|
:host {
|
3177
3177
|
--mdc-tooltip-max-width: 400px;
|
3178
3178
|
--mdc-tooltip-padding: 0.75rem;
|
@@ -3196,7 +3196,7 @@
|
|
3196
3196
|
:host([color='contrast'])::part(popover-content) {
|
3197
3197
|
color: var(--mdc-tooltip-text-color-contrast);
|
3198
3198
|
}
|
3199
|
-
`,
|
3199
|
+
`,_u=[Sy];var os=class extends Ne{constructor(){super(...arguments);this.tooltipType=Ai.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||Ai.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||Ai.OFFSET,this.placement=this.placement||Ai.PLACEMENT,this.role=et.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 t,s;return((s=(t=this.defaultSlotNodes)==null?void 0:t.map(n=>n.textContent).join(" "))==null?void 0:s.trim())||""}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Fe).includes(t)?t:Ai.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${qe()}`);let t=document.getElementById(this.triggerID);if(t)switch(this.tooltipType){case Fe.DESCRIPTION:t.setAttribute("aria-describedby",this.id);break;case Fe.LABEL:t.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Ut).includes(this.placement)||(this.placement=Ai.PLACEMENT)}onTooltipTypeUpdated(t){let s=t.get("tooltipType");Object.values(Fe).includes(this.tooltipType)||this.setTooltipType(Ai.TOOLTIP_TYPE);let n=document.getElementById(this.triggerID);if(n){let h=this.getTooltipText();switch(this.tooltipType){case Fe.DESCRIPTION:s===Fe.LABEL&&n.removeAttribute("aria-labelledby"),n.setAttribute("aria-describedby",this.id);break;case Fe.LABEL:s===Fe.DESCRIPTION&&n.removeAttribute("aria-describedby"),n.setAttribute("aria-labelledby",this.id);break;default:s===Fe.DESCRIPTION?n.removeAttribute("aria-describedby"):s===Fe.LABEL&&n.removeAttribute("aria-labelledby");break}h.length>0&&this.tooltipType!==Fe.NONE&&!this.ariaLabel&&(this.ariaLabel=h)}}update(t){super.update(t),t.has("id")&&this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}};os.styles=[...Ne.styles,..._u],m([g({type:String,attribute:"tooltip-type",reflect:!0})],os.prototype,"tooltipType",2),m([an()],os.prototype,"defaultSlotNodes",2);var jc=os;jc.register(da);var Iy=jc;var ky=H`
|
3200
3200
|
:host {
|
3201
3201
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
3202
3202
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -3291,21 +3291,21 @@
|
|
3291
3291
|
display: flex;
|
3292
3292
|
flex-direction: row;
|
3293
3293
|
}
|
3294
|
-
`,
|
3294
|
+
`,Su=[ky,..._t()];var Iu=()=>`listitem-tooltip-popover-${qe()}`,ku=()=>`listitem-tooltip-triggerid-${qe()}`;var co=class{static dispatchListItemEvent(i,t){t.dispatchEvent(new Event(i,{composed:!0,bubbles:!0}))}static onDisableListItem(i){this.dispatchListItemEvent("disabled",i)}static onEnableListItem(i){this.dispatchListItemEvent("enabled",i)}static onCreatedListItem(i){setTimeout(()=>this.dispatchListItemEvent("created",i),0)}static onDestroyedListItem(i){this.dispatchListItemEvent("destroyed",i)}};var ye=class extends zt(He(q)){constructor(){super();this.variant=Gc.VARIANT;this.tooltipPlacement=Gc.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||et.LISTITEM,this.id=this.id||ku(),co.onCreatedListItem(this)}disconnectedCallback(){super.disconnectedCallback(),co.onDestroyedListItem(this)}handleKeyDown(t){(t.key===Q.ENTER||t.key===Q.SPACE)&&(this.triggerClickEvent(),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(){var s,n;if(!this.tooltipText)return;this.hideTooltipOnLeave();let t=document.createElement(da);t.id=Iu(),t.textContent=this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("placement",this.tooltipPlacement),t.setAttribute("visible",""),t.setAttribute("show-arrow",""),(s=this.parentElement)!=null&&s.hasAttribute("slot")&&t.setAttribute("slot",this.parentElement.getAttribute("slot")||""),(n=this.parentElement)==null||n.after(t)}hideTooltipOnLeave(){let t=document.querySelector(`${da}[triggerid="${this.id}"]`);t&&t.remove()}getText(t,s,n){return w`
|
3295
3295
|
<slot name="${t}">
|
3296
|
-
${n?
|
3296
|
+
${n?w`<mdc-text part="${t}" type="${s}" tagname="${vt.SPAN}">${n}</mdc-text>`:W}
|
3297
3297
|
</slot>
|
3298
|
-
`}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(s=>{t?(s.setAttribute("disabled",""),
|
3298
|
+
`}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(s=>{t?(s.setAttribute("disabled",""),co.onDisableListItem(this)):(s.removeAttribute("disabled"),co.onEnableListItem(this))}),this.setAttribute("aria-disabled",`${t}`)}update(t){super.update(t),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled)),t.has("softDisabled")&&this.disableSlottedChildren(this.softDisabled)}renderTrailingControls(){return w`<slot
|
3299
3299
|
name="trailing-controls"
|
3300
3300
|
@click=${this.stopEventPropagation}
|
3301
3301
|
@keyup=${this.stopEventPropagation}
|
3302
3302
|
@keydown=${this.stopEventPropagation}
|
3303
|
-
></slot>`}renderLeadingControls(){return
|
3303
|
+
></slot>`}renderLeadingControls(){return w`<slot
|
3304
3304
|
name="leading-controls"
|
3305
3305
|
@click=${this.stopEventPropagation}
|
3306
3306
|
@keyup=${this.stopEventPropagation}
|
3307
3307
|
@keydown=${this.stopEventPropagation}
|
3308
|
-
></slot>`}stopEventPropagation(t){(t instanceof KeyboardEvent&&(t.key===Q.ENTER||t.key===Q.SPACE)||t instanceof MouseEvent)&&t.stopPropagation()}render(){return
|
3308
|
+
></slot>`}stopEventPropagation(t){(t instanceof KeyboardEvent&&(t.key===Q.ENTER||t.key===Q.SPACE)||t instanceof MouseEvent)&&t.stopPropagation()}render(){return w`
|
3309
3309
|
<div part="leading">
|
3310
3310
|
${this.renderLeadingControls()}
|
3311
3311
|
<div part="leading-text">
|
@@ -3321,7 +3321,7 @@
|
|
3321
3321
|
</div>
|
3322
3322
|
${this.renderTrailingControls()}
|
3323
3323
|
</div>
|
3324
|
-
`}};ye.styles=[...q.styles,...
|
3324
|
+
`}};ye.styles=[...q.styles,...Su],m([Pt({slot:"leading-controls"})],ye.prototype,"leadingControlsSlot",2),m([Pt({slot:"trailing-controls"})],ye.prototype,"trailingControlsSlot",2),m([g({type:String,reflect:!0})],ye.prototype,"variant",2),m([g({type:String,reflect:!0})],ye.prototype,"label",2),m([g({type:String,reflect:!0,attribute:"secondary-label"})],ye.prototype,"secondaryLabel",2),m([g({type:String,reflect:!0,attribute:"tertiary-label"})],ye.prototype,"tertiaryLabel",2),m([g({type:String,reflect:!0,attribute:"side-header-text"})],ye.prototype,"sideHeaderText",2),m([g({type:String,reflect:!0,attribute:"subline-text"})],ye.prototype,"sublineText",2),m([g({type:Boolean,reflect:!0,attribute:"soft-disabled"})],ye.prototype,"softDisabled",2),m([g({type:String,reflect:!0,attribute:"tooltip-text"})],ye.prototype,"tooltipText",2),m([g({type:String,reflect:!0,attribute:"tooltip-placement"})],ye.prototype,"tooltipPlacement",2);var Qr=ye;Qr.register(tl);var Cy=Qr;var wy=H`
|
3325
3325
|
:host {
|
3326
3326
|
--mdc-marker-width: 0.25rem;
|
3327
3327
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -3346,7 +3346,7 @@
|
|
3346
3346
|
var(--mdc-marker-striped-background-color) 0.375rem
|
3347
3347
|
);
|
3348
3348
|
}
|
3349
|
-
`,
|
3349
|
+
`,Cu=[wy];var wu=Y.constructTagName("marker"),Nu={SOLID:"solid",STRIPED:"striped"};var ha=class extends q{constructor(){super(...arguments);this.variant=Nu.SOLID}};ha.styles=[...q.styles,...Cu],m([g({type:String,reflect:!0})],ha.prototype,"variant",2);var Wc=ha;Wc.register(wu);var Ny=Wc;var Wt=Y.constructTagName("menupopover"),qc={PLACEMENT:Ut.BOTTOM_START,ORIENTATION:"vertical"};var ti=Y.constructTagName("menusection"),Lu={DIVIDER_VARIANT:"solid"};var _i=Y.constructTagName("sidenavigation"),kr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",HIDDEN:"hidden"},pa={VARIANT:kr.FLEXIBLE};var ma=Y.constructTagName("menubar"),Ru={ORIENTATION:"vertical"};var Ly=H`
|
3350
3350
|
:host {
|
3351
3351
|
display: flex;
|
3352
3352
|
}
|
@@ -3358,7 +3358,7 @@
|
|
3358
3358
|
:host([aria-orientation='vertical']) {
|
3359
3359
|
flex-direction: column;
|
3360
3360
|
}
|
3361
|
-
`,
|
3361
|
+
`,Mu=[Ly];var ua=class extends q{constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}async connectedCallback(){var i;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=Ru.ORIENTATION,await this.updateComplete,(i=this.menusections)==null||i.forEach(t=>{t.setAttribute("divider-variant","gradient")})}get menuItems(){var h,u;let i=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"),t=(u=i==null?void 0:i.assignedElements({flatten:!0}))!=null?u:[],s=[],n=x=>{x.role===et.MENUITEM&&!x.hasAttribute("disabled")?s.push(x):x.tagName.toLowerCase()===ti&&Array.from(x.children).forEach(n)};return t.forEach(n),s}getAllPopovers(){var n,h;if(!this.menuItems.length)return[];let i=(h=(n=this.menuItems[0])==null?void 0:n.closest(_i))!=null?h:this;if(!i)return[];let t=[],s=u=>{u.querySelectorAll(`${Wt}`).forEach(x=>{t.push(x)}),u.querySelectorAll("slot").forEach(x=>{x.assignedElements({flatten:!0}).forEach(s)})};return s(i),t}update(i){super.update(i)}firstUpdated(i){super.firstUpdated(i),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(i){i.forEach((t,s)=>{let n=s===0?"0":"-1";t==null||t.setAttribute("tabindex",n)})}getCurrentIndex(i){return this.menuItems.findIndex(t=>t===i||t===i.parentElement)}getSubmenu(i){if(i)return this.getAllPopovers().find(t=>t.getAttribute("triggerid")===i)}showSubmenu(i){if(!i||!this.menuItems.find(n=>n.getAttribute("id")===i))return;let s=this.getSubmenu(i);s&&s.showPopover()}updatePopoverPlacement(){let i=Ut.RIGHT_START;this.getAllPopovers().forEach(t=>{t.setAttribute("placement",i)})}updateTabIndexAndFocus(i,t,s){var n,h,u;s<0||t<0||(t!==s&&((n=i[t])==null||n.setAttribute("tabindex","-1"),(h=i[s])==null||h.setAttribute("tabindex","0")),(u=i[s])==null||u.focus())}navigateToMenuItem(i,t,s=!1){var u;let{length:n}=this.menuItems;if(n===0)return;let h=i;if(h=t==="prev"?(i-1+n)%n:(i+1)%n,this.updateTabIndexAndFocus(this.menuItems,i,h),s){let x=(u=this.menuItems[h])==null?void 0:u.getAttribute("id");this.getSubmenu(x)&&!this.menuItems[h].hasAttribute("soft-disabled")&&this.showSubmenu(x)}}getKeyWithDirectionFix(i){return window.getComputedStyle(this).direction==="rtl"?i===Q.ARROW_LEFT?Q.ARROW_RIGHT:i===Q.ARROW_RIGHT?Q.ARROW_LEFT:i:i}isTopLevelMenuItem(i){var h;let t=i.parentElement;if(!t||i.role!==et.MENUITEM)return!1;let s=t.tagName.toLowerCase(),n=(h=t.parentElement)==null?void 0:h.tagName.toLowerCase();return s===ma||s===_i||s===ti&&(n===ma||n===_i)}isNestedMenuItem(i){return!!i.closest(Wt)&&i.role===et.MENUITEM}async closeAllMenuPopovers(){let i=[];for(;ve.peek();){let t=ve.pop();t&&(t.hidePopover(),i.push(t))}await Promise.all(i.map(t=>t.updateComplete))}async crossMenubarNavigationOnLeft(i){if(i.role===et.MENUITEM){let s=i.closest(Wt),n=s==null?void 0:s.getAttribute("triggerid"),h=this.menuItems.find(u=>u.getAttribute("id")===n);if(h){this.isTopLevelMenuItem(h)&&(s==null||s.hidePopover()),await(s==null?void 0:s.updateComplete);let u=this.getCurrentIndex(h);this.navigateToMenuItem(u,"prev",!0)}}}async crossMenubarNavigationOnRight(i){if(this.isTopLevelMenuItem(i)&&this.getSubmenu(i.id)&&!i.hasAttribute("soft-disabled"))this.showSubmenu(i.id);else if(this.isNestedMenuItem(i)&&!this.getSubmenu(i.id)){await this.closeAllMenuPopovers();let t=this.getParentMenuItemIndex(i);t>=0&&this.navigateToMenuItem(t,"next",!0)}}getParentMenuItemIndex(i){let t=i.parentElement;for(;t;){if(t.tagName.toLowerCase()===Wt){let s=t.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)}t=t.parentElement}return-1}async handleKeyDown(i){let t=this.getCurrentIndex(i.target);switch(this.getKeyWithDirectionFix(i.key)){case Q.HOME:this.updateTabIndexAndFocus(this.menuItems,t,0);break;case Q.END:this.updateTabIndexAndFocus(this.menuItems,t,this.menuItems.length-1);break;case Q.ARROW_LEFT:{let n=t>=0?this.menuItems[t]:i.target;await this.crossMenubarNavigationOnLeft(n);break}case Q.ARROW_RIGHT:{let n=t>=0?this.menuItems[t]:i.target;await this.crossMenubarNavigationOnRight(n);break}case Q.ARROW_UP:{this.navigateToMenuItem(t,"prev"),i.preventDefault();break}case Q.ARROW_DOWN:{this.navigateToMenuItem(t,"next"),i.preventDefault();break}default:break}}render(){return w`<slot role="${et.GROUP}"></slot>`}};ua.styles=[...q.styles,...Mu],m([Pt({selector:"mdc-menusection",flatten:!0})],ua.prototype,"menusections",2);var Kc=ua;Kc.register(ma);var Ry=Kc;var fa=Y.constructTagName("menuitem"),va={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Xc={POSITIVE:"positive",NEGATIVE:"negative"},Zc={LEADING:"leading",TRAILING:"trailing"};var My=H`
|
3362
3362
|
:host(:dir(rtl))::part(trailing-arrow),
|
3363
3363
|
:host(:dir(rtl))::part(leading-arrow) {
|
3364
3364
|
transform: rotate(180deg);
|
@@ -3367,23 +3367,23 @@
|
|
3367
3367
|
:host::part(leading-arrow) {
|
3368
3368
|
--mdc-icon-size: 1.25rem;
|
3369
3369
|
}
|
3370
|
-
`,
|
3370
|
+
`,Ou=[My];var Si=class extends Qr{constructor(){super();this.name=void 0;this.value=void 0;this.addEventListener("keyup",this.handleKeyUp)}handleKeyDown(t){t.key===Q.ENTER&&(this.triggerClickEvent(),t.preventDefault())}handleKeyUp(t){t.key===Q.SPACE&&(this.triggerClickEvent(),t.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=ca.INSET_RECTANGLE}renderTrailingControls(){let t=this.arrowDirection===Xc.NEGATIVE?va.LEFT:va.RIGHT;return w`
|
3371
3371
|
<slot
|
3372
3372
|
name="trailing-controls"
|
3373
3373
|
@click=${this.stopEventPropagation}
|
3374
3374
|
@keyup=${this.stopEventPropagation}
|
3375
3375
|
@keydown=${this.stopEventPropagation}
|
3376
3376
|
></slot>
|
3377
|
-
${this.arrowPosition===
|
3378
|
-
`}renderLeadingControls(){let t=this.arrowDirection===
|
3377
|
+
${this.arrowPosition===Zc.TRAILING?w`<mdc-icon name="${t}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:W}
|
3378
|
+
`}renderLeadingControls(){let t=this.arrowDirection===Xc.POSITIVE?va.RIGHT:va.LEFT;return w`
|
3379
3379
|
<slot
|
3380
3380
|
name="leading-controls"
|
3381
3381
|
@click=${this.stopEventPropagation}
|
3382
3382
|
@keyup=${this.stopEventPropagation}
|
3383
3383
|
@keydown=${this.stopEventPropagation}
|
3384
3384
|
></slot>
|
3385
|
-
${this.arrowPosition===
|
3386
|
-
`}};
|
3385
|
+
${this.arrowPosition===Zc.LEADING?w`<mdc-icon name="${t}" length-unit="rem" part="leading-arrow"></mdc-icon>`:W}
|
3386
|
+
`}};Si.styles=[...Qr.styles,...Ou],m([g({type:String,reflect:!0,attribute:"arrow-position"})],Si.prototype,"arrowPosition",2),m([g({type:String,reflect:!0,attribute:"arrow-direction"})],Si.prototype,"arrowDirection",2),m([g({type:String,reflect:!0})],Si.prototype,"name",2),m([g({type:String,reflect:!0})],Si.prototype,"value",2);var Je=Si;Je.register(fa);var Oy=Je;var Pu=Y.constructTagName("statictoggle"),Py={DEFAULT:"default",COMPACT:"compact"},Jc={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Du={compact:.75,default:1.25},Fu={SIZE:Py.DEFAULT};var Dy=[H`
|
3387
3387
|
:host {
|
3388
3388
|
--mdc-statictoggle-width: 3rem;
|
3389
3389
|
--mdc-statictoggle-height: 1.5rem;
|
@@ -3463,44 +3463,44 @@
|
|
3463
3463
|
border: var(--mdc-statictoggle-border);
|
3464
3464
|
}
|
3465
3465
|
}
|
3466
|
-
`]
|
3466
|
+
`],$u=Dy;var ss=class extends zt(q){constructor(){super(...arguments);this.checked=!1;this.size=Fu.SIZE}render(){return w`
|
3467
3467
|
<slot></slot>
|
3468
3468
|
<div part="slider">
|
3469
3469
|
<mdc-icon
|
3470
|
-
name="${this.checked?
|
3470
|
+
name="${this.checked?Jc.CHECKED:Jc.UNCHECKED}"
|
3471
3471
|
class="icon"
|
3472
3472
|
length-unit="rem"
|
3473
|
-
size="${
|
3473
|
+
size="${Du[this.size]}"
|
3474
3474
|
></mdc-icon>
|
3475
3475
|
</div>
|
3476
|
-
`}};
|
3476
|
+
`}};ss.styles=[...q.styles,...$u],m([g({type:Boolean,reflect:!0})],ss.prototype,"checked",2),m([g({type:String,reflect:!0})],ss.prototype,"size",2);var Qc=ss;Qc.register(Pu);var Fy=Qc;var zu=Y.constructTagName("toggle"),ga={DEFAULT:"default",COMPACT:"compact"};var td={SIZE:ga.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var el=Y.constructTagName("menuitemcheckbox"),ba={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},Vu={INDICATOR:ba.CHECKBOX};var $y=H`
|
3477
3477
|
:host::part(checkmark-icon) {
|
3478
3478
|
--mdc-icon-fill-color: currentColor;
|
3479
3479
|
}
|
3480
3480
|
:host .hidden-checkmark {
|
3481
3481
|
visibility: hidden;
|
3482
3482
|
}
|
3483
|
-
`,
|
3483
|
+
`,Bu=[$y];var as=class extends Je{constructor(){super();this.checked=!1;this.indicator=Vu.INDICATOR;this.handleMouseClick=()=>{this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))};this.addEventListener("click",this.handleMouseClick)}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMCHECKBOX}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===ba.CHECKBOX?w`
|
3484
3484
|
<mdc-staticcheckbox
|
3485
3485
|
slot="leading-controls"
|
3486
3486
|
?checked="${this.checked}"
|
3487
3487
|
?disabled="${this.disabled}"
|
3488
3488
|
></mdc-staticcheckbox>
|
3489
|
-
`:W}staticToggle(){return this.indicator===
|
3489
|
+
`:W}staticToggle(){return this.indicator===ba.TOGGLE?w`
|
3490
3490
|
<mdc-statictoggle
|
3491
3491
|
slot="trailing-controls"
|
3492
3492
|
?checked="${this.checked}"
|
3493
3493
|
?disabled="${this.disabled}"
|
3494
|
-
size="${
|
3494
|
+
size="${ga.COMPACT}"
|
3495
3495
|
></mdc-statictoggle>
|
3496
|
-
`:W}getCheckmarkIcon(){return this.indicator===
|
3496
|
+
`:W}getCheckmarkIcon(){return this.indicator===ba.CHECKMARK?w`
|
3497
3497
|
<mdc-icon
|
3498
3498
|
slot="trailing-controls"
|
3499
3499
|
name="check-bold"
|
3500
3500
|
part="checkmark-icon"
|
3501
|
-
class=${
|
3501
|
+
class=${_r({"hidden-checkmark":!this.checked})}
|
3502
3502
|
></mdc-icon>
|
3503
|
-
`:W}render(){return
|
3503
|
+
`:W}render(){return w`
|
3504
3504
|
<div part="leading">
|
3505
3505
|
${this.staticCheckbox()}
|
3506
3506
|
<slot name="leading-controls"></slot>
|
@@ -3518,27 +3518,27 @@
|
|
3518
3518
|
<slot name="trailing-controls"></slot>
|
3519
3519
|
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
3520
3520
|
</div>
|
3521
|
-
`}};
|
3521
|
+
`}};as.styles=[...Je.styles,...Bu],m([g({type:Boolean,reflect:!0})],as.prototype,"checked",2),m([g({type:String,reflect:!0})],as.prototype,"indicator",2);var ed=as;ed.register(el);var zy=ed;var rl=Y.constructTagName("menuitemradio"),il={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},Uu={INDICATOR:il.RADIO};var Vy=H`
|
3522
3522
|
:host::part(checkmark-icon) {
|
3523
3523
|
--mdc-icon-fill-color: currentColor;
|
3524
3524
|
}
|
3525
3525
|
:host .hidden-checkmark {
|
3526
3526
|
visibility: hidden;
|
3527
3527
|
}
|
3528
|
-
|
3528
|
+
`,Gu=[Vy];var ns=class extends Je{constructor(){super();this.checked=!1;this.indicator=Uu.INDICATOR;this.handleMouseClick=()=>{this.disabled||this.checked||(this.updateOtherRadiosCheckedState(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))};this.addEventListener("click",this.handleMouseClick)}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${ti}, ${Wt}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(s=>{s!==this&&s.removeAttribute("checked")})}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===il.RADIO?w`
|
3529
3529
|
<mdc-staticradio
|
3530
3530
|
slot="leading-controls"
|
3531
3531
|
?checked="${this.checked}"
|
3532
3532
|
?disabled="${this.disabled}"
|
3533
3533
|
></mdc-staticradio>
|
3534
|
-
`:W}renderCheckmarkIcon(){return this.indicator===
|
3534
|
+
`:W}renderCheckmarkIcon(){return this.indicator===il.CHECKMARK?w`
|
3535
3535
|
<mdc-icon
|
3536
3536
|
slot="trailing-controls"
|
3537
3537
|
name="check-bold"
|
3538
3538
|
part="checkmark-icon"
|
3539
|
-
class=${
|
3539
|
+
class=${_r({"hidden-checkmark":!this.checked})}
|
3540
3540
|
></mdc-icon>
|
3541
|
-
`:W}render(){return
|
3541
|
+
`:W}render(){return w`
|
3542
3542
|
<div part="leading">
|
3543
3543
|
${this.renderStaticRadio()}
|
3544
3544
|
<slot name="leading-controls"></slot>
|
@@ -3556,7 +3556,7 @@
|
|
3556
3556
|
<slot name="trailing-controls"></slot>
|
3557
3557
|
${this.renderCheckmarkIcon()}
|
3558
3558
|
</div>
|
3559
|
-
`}};
|
3559
|
+
`}};ns.styles=[...Je.styles,...Gu],m([g({type:Boolean,reflect:!0})],ns.prototype,"checked",2),m([g({type:String,reflect:!0})],ns.prototype,"indicator",2);var rd=ns;rd.register(rl);var By=rd;var Uy=H`
|
3560
3560
|
:host::part(popover-content) {
|
3561
3561
|
padding: 0.75rem 0.5rem;
|
3562
3562
|
}
|
@@ -3564,7 +3564,7 @@
|
|
3564
3564
|
::slotted(mdc-divider) {
|
3565
3565
|
margin-block: 0.25rem;
|
3566
3566
|
}
|
3567
|
-
`,
|
3567
|
+
`,Hu=[Uy];var ya=l=>{var t;if(!l)return!1;let i=(t=l.getAttribute("role"))==null?void 0:t.toLowerCase();return i===et.MENUITEM||i===et.MENUITEMCHECKBOX||i===et.MENUITEMRADIO},Yu=l=>{var i;return((i=l==null?void 0:l.tagName)==null?void 0:i.toLowerCase())===Wt};var Ea=class extends Ne{constructor(){super();this.placement=qc.PLACEMENT;this.menuItems=[];this.onOutsidePopoverClick=t=>{if(ve.peek()!==this)return;let s=this.findClosestPopover(t.target);if(s&&ve.has(s)){this.closeAllMenuPopovers(s);return}let n=t.composedPath(),h=this.contains(t.target)||n.includes(this.triggerElement),u=this.backdropElement?n.includes(this.backdropElement):!1;(!h||u)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=()=>{var t;(t=this.triggerElement)!=null&&t.hasAttribute("soft-disabled")||(this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(s=>s.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("click",this.handleMouseClick),this.addEventListener("created",this.handleItemCreation)}collectMenuItems(){var n;let t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot"),s=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=s.map(h=>h.tagName.toLowerCase()===ti?Array.from(h.children).filter(u=>ya(u)):ya(h)?h:[]).flat().filter(h=>!!h&&!h.hasAttribute("disabled"))}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=qc.ORIENTATION,this.backdrop=!1,this.color=to.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,s){return t===s||!this.triggerElement?Promise.resolve():(s&&(this.backdrop=this.triggerElement.tagName.toLowerCase()!==fa),this.resetMenuNavigation(),super.isOpenUpdated(t,s))}async firstUpdated(t){var s;await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0),(s=this.triggerElement)==null||s.setAttribute("aria-haspopup",et.MENU)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(s=>s.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(s=>s===t)}resetTabIndexAndSetFocus(t,s){t!==s&&(this.menuItems[s].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){for(;ve.peek()!==t;){let s=ve.pop();if(s)s.hidePopover();else break}}hasSubmenuWithTriggerId(t){var s,n;return!!t&&((n=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:n.call(s,`${Wt}[triggerid="${t}"]`))!==null}closeMenu(t){let s=t.getAttribute("id");ya(t)&&!this.hasSubmenuWithTriggerId(s)&&this===t.closest(Wt)&&(this.closeAllMenuPopovers(),t.matches(fa)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0})))}handleMouseClick(t){let s=t.target;t.isTrusted&&this.closeMenu(s)}handleItemCreation(t){let s=t.target;ya(s)&&(t.stopImmediatePropagation(),s.addEventListener("destroyed",this.handleItemChangeEvent),s.addEventListener("disabled",this.handleItemChangeEvent))}resolveDirectionKey(t,s){if(!s)return t;switch(t){case Q.ARROW_LEFT:return Q.ARROW_RIGHT;case Q.ARROW_RIGHT:return Q.ARROW_LEFT;default:return t}}handleKeyDown(t){var R,$;let s=!1;this.collectMenuItems();let n=t.target,h=this.getCurrentIndex(n);if(h===-1)return;this.resetTabIndexes(h);let u=window.getComputedStyle(this).direction==="rtl";switch(this.resolveDirectionKey(t.key,u)){case Q.HOME:{this.resetTabIndexAndSetFocus(0,h),s=!0;break}case Q.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,h),s=!0;break}case Q.ARROW_DOWN:{let j=h+1===this.menuItems.length?0:h+1;this.resetTabIndexAndSetFocus(j,h),s=!0;break}case Q.ARROW_UP:{let j=h-1===-1?this.menuItems.length-1:h-1;this.resetTabIndexAndSetFocus(j,h),s=!0;break}case Q.ARROW_RIGHT:{let j=(R=this.menuItems[h])==null?void 0:R.getAttribute("id");if(this.hasSubmenuWithTriggerId(j)){let K=($=this.parentElement)==null?void 0:$.querySelector(`${Wt}[triggerid="${j}"]`);K&&(K.showPopover(),s=!0)}break}case Q.ARROW_LEFT:{Yu(this.parentElement)&&(this.hidePopover(),this.resetTabIndexAndSetFocus(0,h),s=!0);break}case Q.ESCAPE:{this.resetTabIndexAndSetFocus(0,h),s=!0;break}case Q.ENTER:{this.closeMenu(n),s=!0;break}case Q.SPACE:{s=!0;break}default:break}s&&(t.stopPropagation(),t.preventDefault())}handleKeyUp(t){let s=!1,n=t.target;switch(t.key){case Q.SPACE:{n.matches(`${rl}, ${el}`)||(this.closeMenu(n),s=!0);break}default:break}s&&(t.stopPropagation(),t.preventDefault())}};Ea.styles=[...Ne.styles,...Hu],m([g({type:String,reflect:!0})],Ea.prototype,"placement",2);var id=Ea;id.register(Wt);var Gy=id;var ls=Y.constructTagName("navmenuitem"),ju={DOT:Ye.DOT,COUNTER:Ye.COUNTER},Wu={RIGHT_ARROW:"arrow-right-bold"},qu={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:vt.SPAN,SIZE:Vi[24],VARIANT:kr.FLEXIBLE};var ol=class{constructor(i,t,s){this.variant=i,this.expanded=t,this.parentNavTooltipText=s}hasSiblingWithTriggerId(i){var n,h;let t=i==null?void 0:i.getAttribute("id");return t?Array.from((h=(n=i==null?void 0:i.parentElement)==null?void 0:n.children)!=null?h:[]).some(u=>u!==i&&u.tagName.toLowerCase()===Wt&&u.getAttribute("triggerid")===t):!1}getParentNavMenuItems(i){if(!i)return[];let t=[],s=i;for(;s;){let n=s==null?void 0:s.closest(Wt);if(!n)break;let h=n.getAttribute("triggerid");if(!h)break;let u=document.getElementById(h);if(u&&u.tagName.toLowerCase()===ls)t.push(u),s=u;else break}return t}setCurrentActiveNavMenuItem(i){var h;let t=((h=this.currentActiveNavMenuItem)==null?void 0:h.navId)===(i==null?void 0:i.navId),s=(i==null?void 0:i.disableAriaCurrent)||this.hasSiblingWithTriggerId(i)||(i==null?void 0:i.softDisabled);if(t||s||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(x=>{x.removeAttribute("tooltip-text"),x.removeAttribute("tooltip-placement"),x.removeAttribute("active")})),!i))return;this.currentActiveNavMenuItem=i,i.setAttribute("aria-current","page"),i.setAttribute("active",""),this.getParentNavMenuItems(i).forEach(u=>{u.setAttribute("tooltip-text",this.parentNavTooltipText||""),u.setAttribute("tooltip-placement",Ut.BOTTOM),u.setAttribute("active","")})}};ol.context=_i;var sl=ol;var Hy=H`
|
3568
3568
|
:host {
|
3569
3569
|
--mdc-sidenavigation-expanded-width: 15rem;
|
3570
3570
|
--mdc-sidenavigation-collapsed-width: 4.5rem;
|
@@ -3629,7 +3629,7 @@
|
|
3629
3629
|
:host::part(separator) {
|
3630
3630
|
margin-bottom: 0.75rem;
|
3631
3631
|
}
|
3632
|
-
`,
|
3632
|
+
`,Ku=[Hy];var ur=class extends Er{constructor(){super({context:sl.context,initialValue:new sl(pa.VARIANT,!0)});this.variant=pa.VARIANT;this.footerText="";this.flexibleExpanded=this.variant===pa.VARIANT;this.arrowDirection=this.flexibleExpanded?be.NEGATIVE:be.POSITIVE;this.handleNestedNavMenuItemActiveChange=t=>{var s;if((s=this.context)!=null&&s.value){let n=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(n)}};this.findNav=(t,s)=>t.find(n=>n.navId===s);this.updateExpansionState=()=>{switch(this.variant){case kr.FLEXIBLE:this.expanded=this.flexibleExpanded;break;case kr.FIXED_EXPANDED:this.expanded=!0;break;case kr.FIXED_COLLAPSED:this.expanded=!1;break;default:}};this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange)}connectedCallback(){super.connectedCallback(),this.role=et.NAVIGATION}static get Context(){return sl.context}updated(t){super.updated(t),t.has("variant")&&(this.setVariant(this.variant),this.updateExpansionState()),(t.has("variant")||t.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())}get navMenuItems(){return Array.from(this.querySelectorAll(`${ls}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(kr).includes(t)?t:pa.VARIANT)}toggleSideNavigation(){this.flexibleExpanded=!this.flexibleExpanded,this.arrowDirection=this.arrowDirection===be.NEGATIVE?be.POSITIVE:be.NEGATIVE,this.updateExpansionState()}preventScrollOnSpace(t){t.key===Q.SPACE&&t.preventDefault()}render(){var t;return this.variant===kr.HIDDEN?w``:w`
|
3633
3633
|
<div part="side-navigation-container" id="side-nav-container">
|
3634
3634
|
<div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
|
3635
3635
|
<slot name="scrollable-section">
|
@@ -3647,15 +3647,15 @@
|
|
3647
3647
|
</slot>
|
3648
3648
|
<div part="brand-logo-container">
|
3649
3649
|
<slot name="brand-logo"></slot>
|
3650
|
-
${this.expanded?
|
3650
|
+
${this.expanded?w`<mdc-text type=${ot.BODY_MIDSIZE_MEDIUM} tagname=${vt.SPAN} part="label"
|
3651
3651
|
>${this.footerText}</mdc-text
|
3652
3652
|
>`:W}
|
3653
3653
|
</div>
|
3654
3654
|
</div>
|
3655
3655
|
</div>
|
3656
|
-
${this.variant===
|
3657
|
-
orientation=${
|
3658
|
-
variant=${
|
3656
|
+
${this.variant===kr.FLEXIBLE?w`<mdc-divider
|
3657
|
+
orientation=${so.VERTICAL}
|
3658
|
+
variant=${oa.GRADIENT}
|
3659
3659
|
arrow-direction=${this.arrowDirection}
|
3660
3660
|
button-position=${be.POSITIVE}
|
3661
3661
|
>
|
@@ -3667,7 +3667,7 @@
|
|
3667
3667
|
part="grabber-btn"
|
3668
3668
|
></mdc-button>
|
3669
3669
|
</mdc-divider>`:W}
|
3670
|
-
`}};
|
3670
|
+
`}};ur.styles=[...q.styles,...Ku],m([g({type:String,reflect:!0})],ur.prototype,"variant",2),m([g({type:String,reflect:!0,attribute:"footer-text"})],ur.prototype,"footerText",2),m([g({type:Boolean,reflect:!0})],ur.prototype,"expanded",2),m([g({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],ur.prototype,"grabberBtnAriaLabel",2),m([g({type:String,reflect:!0,attribute:"parent-nav-tooltip-text"})],ur.prototype,"parentNavTooltipText",2),m([At()],ur.prototype,"flexibleExpanded",2),m([At()],ur.prototype,"arrowDirection",2);var ho=ur;var Yy=H`
|
3671
3671
|
:host {
|
3672
3672
|
display: flex;
|
3673
3673
|
flex-direction: column;
|
@@ -3685,16 +3685,16 @@
|
|
3685
3685
|
:host(:dir(rtl))::part(align-header) {
|
3686
3686
|
padding-right: 1.75rem;
|
3687
3687
|
}
|
3688
|
-
`,
|
3688
|
+
`,Xu=[Yy];var Cr=class extends q{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=Lu.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Tr.consume({host:this,context:ho.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var h;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let s=(h=this.sideNavigationContext)==null?void 0:h.value;if(!s)return;let{expanded:n}=s;this.hideHeaderText=!n}renderHeader(){var t,s;return this.headerText?w` <mdc-listheader
|
3689
3689
|
part="header ${(s=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&s.expanded?"align-header":""}"
|
3690
3690
|
header-text="${this.headerText}"
|
3691
3691
|
prefix-icon="${nt(this.prefixIcon)}"
|
3692
3692
|
>
|
3693
|
-
</mdc-listheader>`:null}render(){return
|
3693
|
+
</mdc-listheader>`:null}render(){return w`
|
3694
3694
|
${this.hideHeaderText?null:this.renderHeader()}
|
3695
3695
|
<slot></slot>
|
3696
|
-
${this.showDivider?
|
3697
|
-
`}};
|
3696
|
+
${this.showDivider?w`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
|
3697
|
+
`}};Cr.styles=[...q.styles,...Xu],m([g({type:String,reflect:!0,attribute:"aria-label"})],Cr.prototype,"ariaLabel",2),m([g({type:String,reflect:!0,attribute:"header-text"})],Cr.prototype,"headerText",2),m([g({type:String,attribute:"prefix-icon"})],Cr.prototype,"prefixIcon",2),m([g({type:Boolean,reflect:!0,attribute:"show-divider"})],Cr.prototype,"showDivider",2),m([g({type:String,reflect:!0,attribute:"divider-variant"})],Cr.prototype,"dividerVariant",2),m([g({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Cr.prototype,"hideHeaderText",2);var od=Cr;var jy=H`
|
3698
3698
|
:host {
|
3699
3699
|
--mdc-listheader-padding: 0.5rem 0.75rem;
|
3700
3700
|
--mdc-listheader-gap: 0.5rem;
|
@@ -3721,26 +3721,26 @@
|
|
3721
3721
|
:host::part(postfix-icon) {
|
3722
3722
|
flex-shrink: 0;
|
3723
3723
|
}
|
3724
|
-
`,
|
3725
|
-
${this.prefixIcon?
|
3724
|
+
`,Zu=[jy];var Ii=class extends q{constructor(){super(...arguments);this.disabled=!1}render(){return w`
|
3725
|
+
${this.prefixIcon?w`<mdc-icon
|
3726
3726
|
part="prefix-icon"
|
3727
3727
|
name="${this.prefixIcon}"
|
3728
3728
|
aria-hidden="true"
|
3729
3729
|
size="1"
|
3730
3730
|
length-unit="rem"
|
3731
3731
|
></mdc-icon>`:W}
|
3732
|
-
${this.headerText?
|
3732
|
+
${this.headerText?w`<mdc-text part="header-text" type="body-midsize-bold" tagname="span" aria-hidden="true"
|
3733
3733
|
>${this.headerText}</mdc-text
|
3734
3734
|
>`:W}
|
3735
3735
|
<slot></slot>
|
3736
|
-
${this.postfixIcon?
|
3736
|
+
${this.postfixIcon?w`<mdc-icon
|
3737
3737
|
part="postfix-icon"
|
3738
3738
|
name="${this.postfixIcon}"
|
3739
3739
|
aria-hidden="true"
|
3740
3740
|
size="1"
|
3741
3741
|
length-unit="rem"
|
3742
3742
|
></mdc-icon>`:W}
|
3743
|
-
`}};
|
3743
|
+
`}};Ii.styles=[...q.styles,...Zu],m([g({type:String,attribute:"prefix-icon"})],Ii.prototype,"prefixIcon",2),m([g({type:String,attribute:"postfix-icon"})],Ii.prototype,"postfixIcon",2),m([g({type:String,attribute:"header-text"})],Ii.prototype,"headerText",2),m([g({type:Boolean,reflect:!0})],Ii.prototype,"disabled",2);var sd=Ii;var Ju=Y.constructTagName("listheader");sd.register(Ju);var Wy=sd;od.register(ti);var qy=od;var Ky=[Et,H`
|
3744
3744
|
:host {
|
3745
3745
|
--mdc-navmenuitem-color: var(--mds-color-theme-text-primary-normal);
|
3746
3746
|
--mdc-navmenuitem-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -3886,7 +3886,7 @@
|
|
3886
3886
|
left: -0.75rem;
|
3887
3887
|
top: 0.875rem;
|
3888
3888
|
}
|
3889
|
-
`,...
|
3889
|
+
`,..._t()],Qu=Ky;var Qe=class extends Qt(Je){constructor(){super();this.maxCounter=qu.MAX_COUNTER;this.ariaLabel=null;this.sideNavigationContext=Tr.consume({host:this,context:ho.Context});this.emitNavMenuItemActiveChange=t=>{let s=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(s)};this.addEventListener("click",this.handleClickEvent)}connectedCallback(){super.connectedCallback(),this.variant=void 0,this.tooltipPlacement=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}updated(){var s,n;let t=(s=this.sideNavigationContext)==null?void 0:s.value;if(t)if(this.showLabel=this.isNested()?!0:t.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 t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===Wt)return!0;t=t.parentElement}return!1}modifyIconName(t){if(!this.iconName)return;let s=this.iconName.endsWith("-filled"),n=Yi(this.iconName);t?s||(this.prevIconName=this.iconName,this.iconName=`${n}-filled`):this.prevIconName&&(this.iconName=this.prevIconName)}handleClickEvent(){this.disabled||this.emitNavMenuItemActiveChange(this.active)}update(t){super.update(t),t.has("active")&&this.modifyIconName(this.active)}renderTextLabel(t){return w`
|
3890
3890
|
<mdc-text
|
3891
3891
|
type=${this.active?ot.BODY_MIDSIZE_BOLD:ot.BODY_MIDSIZE_MEDIUM}
|
3892
3892
|
tagname=${vt.SPAN}
|
@@ -3894,9 +3894,9 @@
|
|
3894
3894
|
>
|
3895
3895
|
${t}
|
3896
3896
|
</mdc-text>
|
3897
|
-
`}renderArrowIcon(t){let s=t?"":"arrow";return
|
3898
|
-
<mdc-icon name=${
|
3899
|
-
`}renderBadge(t){let s=t?"":"badge";return Object.values(
|
3897
|
+
`}renderArrowIcon(t){let s=t?"":"arrow";return w`
|
3898
|
+
<mdc-icon name=${Wu.RIGHT_ARROW} length-unit="rem" part="trailing-arrow" class="${s}"> </mdc-icon>
|
3899
|
+
`}renderBadge(t){let s=t?"":"badge";return Object.values(ju).includes(this.badgeType)?w`
|
3900
3900
|
<mdc-badge
|
3901
3901
|
class="${s}"
|
3902
3902
|
type="${nt(this.badgeType)}"
|
@@ -3904,14 +3904,14 @@
|
|
3904
3904
|
max-counter="${this.maxCounter}"
|
3905
3905
|
>
|
3906
3906
|
</mdc-badge>
|
3907
|
-
`:W}render(){var s;let t=(s=this.sideNavigationContext)==null?void 0:s.value;return
|
3907
|
+
`:W}render(){var s;let t=(s=this.sideNavigationContext)==null?void 0:s.value;return w`
|
3908
3908
|
<div part="icon-container">
|
3909
3909
|
<mdc-icon name="${this.iconName}" size="1.5" length-unit="rem" part="icon"></mdc-icon>
|
3910
3910
|
${this.showLabel?W:this.renderBadge(this.showLabel)}
|
3911
3911
|
</div>
|
3912
|
-
${this.showLabel?
|
3912
|
+
${this.showLabel?w`${this.renderTextLabel(this.label)}${this.renderBadge(this.showLabel)}`:W}
|
3913
3913
|
${t!=null&&t.hasSiblingWithTriggerId(this)?this.renderArrowIcon(this.showLabel):W}
|
3914
|
-
`}};
|
3914
|
+
`}};Qe.styles=[...Je.styles,...Qu],m([g({type:Boolean,reflect:!0})],Qe.prototype,"active",2),m([g({type:String,reflect:!0,attribute:"badge-type"})],Qe.prototype,"badgeType",2),m([g({type:Number,reflect:!0})],Qe.prototype,"counter",2),m([g({type:Number,attribute:"max-counter",reflect:!0})],Qe.prototype,"maxCounter",2),m([g({type:String,reflect:!0,attribute:"nav-id"})],Qe.prototype,"navId",2),m([g({type:Boolean,reflect:!0,attribute:"show-label"})],Qe.prototype,"showLabel",2),m([g({type:String,attribute:"aria-label"})],Qe.prototype,"ariaLabel",2),m([g({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],Qe.prototype,"disableAriaCurrent",2);var ad=Qe;ad.register(ls);var Xy=ad;var tf=Y.constructTagName("optgroup"),nd="header-id";var Zy=H`
|
3915
3915
|
:host {
|
3916
3916
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
3917
3917
|
}
|
@@ -3924,24 +3924,24 @@
|
|
3924
3924
|
color: var(--mdc-optgroup-disabled-color);
|
3925
3925
|
cursor: default;
|
3926
3926
|
}
|
3927
|
-
`,
|
3927
|
+
`,ef=[Zy];var cs=class extends Yt(zt(q)){setDisabledForAllOptions(){this.options.forEach(i=>{this.disabled?i.setAttribute("disabled",""):i.removeAttribute("disabled")})}updated(i){super.updated(i),i.has("disabled")&&this.setDisabledForAllOptions()}render(){var t;let i=this.label?w`
|
3928
3928
|
<mdc-text
|
3929
|
-
id="${
|
3929
|
+
id="${nd}"
|
3930
3930
|
part="header-text"
|
3931
3931
|
type="${ot.BODY_MIDSIZE_BOLD}"
|
3932
3932
|
tagname="${vt.SPAN}"
|
3933
3933
|
>${this.label}</mdc-text
|
3934
3934
|
>
|
3935
|
-
`:W;return
|
3935
|
+
`:W;return w`
|
3936
3936
|
<div
|
3937
3937
|
role="${et.GROUP}"
|
3938
|
-
aria-labelledby="${this.label?
|
3938
|
+
aria-labelledby="${this.label?nd:""}"
|
3939
3939
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
3940
3940
|
>
|
3941
3941
|
${i}
|
3942
3942
|
<slot role="${et.PRESENTATION}"></slot>
|
3943
3943
|
</div>
|
3944
|
-
`}};
|
3944
|
+
`}};cs.styles=[...q.styles,...ef],m([g({type:String,reflect:!0})],cs.prototype,"label",2),m([Pt({selector:"mdc-option"})],cs.prototype,"options",2);var ld=cs;ld.register(tf);var Jy=ld;var rf="check-bold",ds=Y.constructTagName("option");var Qy=H`
|
3945
3945
|
:host {
|
3946
3946
|
--mdc-option-icon-width: 1rem;
|
3947
3947
|
|
@@ -3967,29 +3967,29 @@
|
|
3967
3967
|
/** 2x of leading and trailing icon width + 2x of column gap on both sides of the label text */
|
3968
3968
|
width: calc(100% - (2 * var(--mdc-option-icon-width)) - (2 * var(--mdc-listitem-column-gap)));
|
3969
3969
|
}
|
3970
|
-
`,
|
3970
|
+
`,of=[Qy];var po=class extends Le(Qr){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=ca.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&this.setAttribute("aria-selected",`${this.selected}`)}render(){let t=this.prefixIcon?w`
|
3971
3971
|
<div part="leading-icon">
|
3972
3972
|
<mdc-icon length-unit="rem" slot="leading-controls" name="${nt(this.prefixIcon)}"></mdc-icon>
|
3973
3973
|
</div>
|
3974
|
-
`:W,s=this.selected?
|
3974
|
+
`:W,s=this.selected?w` <mdc-icon length-unit="rem" slot="trailing-controls" name="${rf}"></mdc-icon> `:W;return w`
|
3975
3975
|
${t}
|
3976
3976
|
<div part="leading-text">
|
3977
3977
|
${this.getText("leading-text-primary-label",ot.BODY_MIDSIZE_REGULAR,this.label)}
|
3978
3978
|
${this.getText("leading-text-secondary-label",ot.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3979
3979
|
</div>
|
3980
3980
|
<div part="trailing">${s}</div>
|
3981
|
-
`}};
|
3981
|
+
`}};po.styles=[...Qr.styles,...of],m([g({type:Boolean,reflect:!0})],po.prototype,"selected",2),m([g({type:String,reflect:!0,attribute:"prefix-icon"})],po.prototype,"prefixIcon",2),m([g({type:String,reflect:!0,attribute:"aria-label"})],po.prototype,"ariaLabel",2);var cd=po;cd.register(ds);var tE=cd;var dd={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},sf=Y.constructTagName("password");var mo=class extends Jr{constructor(){super(...arguments);this.showHideButtonAriaLabel="";this.helpTextType=Mt.VALIDATION;this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let s=t||this.value;return s?w`
|
3982
3982
|
<mdc-button
|
3983
3983
|
part="trailing-button"
|
3984
3984
|
class="own-focus-ring ${s?"":"hidden"}"
|
3985
|
-
variant=${
|
3985
|
+
variant=${Ft.TERTIARY}
|
3986
3986
|
?disabled=${this.disabled||this.readonly||!s}
|
3987
3987
|
size="${Mt.ICON_SIZE}"
|
3988
3988
|
@click=${this.toggleShowPassword}
|
3989
3989
|
aria-label=${this.showHideButtonAriaLabel}
|
3990
|
-
prefix-icon=${this.showPassword?
|
3990
|
+
prefix-icon=${this.showPassword?dd.HIDE_BOLD:dd.SHOW_BOLD}
|
3991
3991
|
></mdc-button>
|
3992
|
-
`:W}renderInputElement(t,s){let n=this.showPassword?
|
3992
|
+
`:W}renderInputElement(t,s){let n=this.showPassword?ts.TEXT:ts.PASSWORD;return super.renderInputElement(n,s)}};mo.styles=[...Jr.styles],m([g({type:String,attribute:"show-hide-button-aria-label"})],mo.prototype,"showHideButtonAriaLabel",2),m([g({type:String,attribute:"help-text-type"})],mo.prototype,"helpTextType",2),m([At()],mo.prototype,"showPassword",2);var hd=mo;hd.register(sf);var eE=hd;Ne.register(Ym);var rE=Ne;var af=Y.constructTagName("progressbar"),al={DEFAULT:"default",INLINE:"inline"},nf={VARIANT:al.DEFAULT,VALIDATION:jt.DEFAULT};var iE=[Et,H`
|
3993
3993
|
:host {
|
3994
3994
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
3995
3995
|
--mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
|
@@ -4076,7 +4076,7 @@
|
|
4076
4076
|
border: var(--mdc-progressbar-border);
|
4077
4077
|
}
|
4078
4078
|
}
|
4079
|
-
`],
|
4079
|
+
`],lf=iE;var uo=class extends Yt(Ze){constructor(){super(...arguments);this.variant=nf.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var h;let t=this.getValidationVariant(),s=this.clampedValue>0&&this.clampedValue<100,n=this.error?"100":`${this.clampedValue}`;return w`
|
4080
4080
|
<div
|
4081
4081
|
part="progress-container ${s?"gap":""}"
|
4082
4082
|
role="${et.PROGRESSBAR}"
|
@@ -4088,15 +4088,15 @@
|
|
4088
4088
|
<div part="progress-bar ${t}" style="width: ${n}%"></div>
|
4089
4089
|
<div part="remaining"></div>
|
4090
4090
|
</div>
|
4091
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${
|
4092
|
-
${t?
|
4091
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${qe()}`,this.disabled=void 0,this.toggletipText=void 0,this.toggletipPlacement=void 0}get clampedValue(){let t=Number(this.value);return Number.isNaN(t)?0:Math.max(0,Math.min(100,t))}getValidationVariant(){return this.error?this.helpTextType=jt.ERROR:this.clampedValue===100?this.helpTextType=jt.SUCCESS:this.helpTextType=jt.DEFAULT,this.helpTextType}render(){let t=this.variant===al.INLINE;return w`
|
4092
|
+
${t?w`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:w`
|
4093
4093
|
<div part="label-container">
|
4094
4094
|
${this.renderLabelElement()}
|
4095
|
-
${this.variant===
|
4095
|
+
${this.variant===al.DEFAULT&&this.label?w`<span part="percentage">${this.clampedValue}%</span>`:""}
|
4096
4096
|
</div>
|
4097
4097
|
${this.renderProgressbar()} ${this.renderHelperText()}
|
4098
4098
|
`}
|
4099
|
-
`}};
|
4099
|
+
`}};uo.styles=[...Ze.styles,...lf],m([g({type:String,reflect:!0})],uo.prototype,"variant",2),m([g({type:String,reflect:!0})],uo.prototype,"value",2),m([g({type:Boolean,attribute:"error"})],uo.prototype,"error",2);var Ta=uo;Ta.register(af);var oE=Ta;var cf=Y.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"},pd={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var md=l=>{if(l===0)return 0;let i=l/100*Zt.CIRCUMFERENCE-Zt.GAP_SIZE;return Math.max(i,.1*l)},df=l=>{let i=Zt.CIRCUMFERENCE-md(l)-2*Zt.GAP_SIZE;return l===0?Zt.CIRCUMFERENCE:i<0?0:i},hf=l=>l===0?0:Zt.GAP_SIZE*.5,pf=(l,i)=>{let t=i+Zt.GAP_SIZE*1.5;return l===0?0:t};var sE=H`
|
4100
4100
|
:host {
|
4101
4101
|
--mdc-spinner-size: 3rem;
|
4102
4102
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
@@ -4140,7 +4140,7 @@
|
|
4140
4140
|
color: var(--mdc-progress-error-color);
|
4141
4141
|
margin: 0.5rem;
|
4142
4142
|
}
|
4143
|
-
`,
|
4143
|
+
`,mf=[sE];var nl=class extends Ta{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 i=md(this.clampedValue),t=df(this.clampedValue),s=hf(this.clampedValue),n=pf(this.clampedValue,i);return w`
|
4144
4144
|
<div
|
4145
4145
|
part="spinner-container ${this.variant}"
|
4146
4146
|
role="${et.PROGRESSBAR}"
|
@@ -4170,23 +4170,23 @@
|
|
4170
4170
|
/>
|
4171
4171
|
</svg>
|
4172
4172
|
</div>
|
4173
|
-
`}renderErrorState(){var i;return
|
4173
|
+
`}renderErrorState(){var i;return w`
|
4174
4174
|
<mdc-icon
|
4175
4175
|
part="error-icon"
|
4176
4176
|
aria-label="${(i=this.dataAriaLabel)!=null?i:""}"
|
4177
|
-
name="${
|
4177
|
+
name="${pd.ERROR_LEGACY_FILLED}"
|
4178
4178
|
size="${Zt.ERROR_ICON_SIZE}"
|
4179
4179
|
length-unit="${Zt.ICON_LENGTH_UNIT}"
|
4180
4180
|
></mdc-icon>
|
4181
|
-
`}renderSuccessState(){var i;return
|
4181
|
+
`}renderSuccessState(){var i;return w`
|
4182
4182
|
<mdc-icon
|
4183
4183
|
part="success-icon"
|
4184
4184
|
aria-label="${(i=this.dataAriaLabel)!=null?i:""}"
|
4185
|
-
name="${
|
4185
|
+
name="${pd.CHECK_CIRCLE_BOLD}"
|
4186
4186
|
size="${Zt.SUCCESS_ICON_SIZE}"
|
4187
4187
|
length-unit="${Zt.ICON_LENGTH_UNIT}"
|
4188
4188
|
></mdc-icon>
|
4189
|
-
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():
|
4189
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():w` ${this.renderProgressSpinner()}`}};nl.styles=[...q.styles,...mf];var ud=nl;ud.register(cf);var aE=ud;var nE=[Et,H`
|
4190
4190
|
:host {
|
4191
4191
|
display: flex;
|
4192
4192
|
flex-direction: row;
|
@@ -4271,7 +4271,7 @@
|
|
4271
4271
|
:host::part(required-indicator) {
|
4272
4272
|
display: none;
|
4273
4273
|
}
|
4274
|
-
`,...
|
4274
|
+
`,..._t(!0)],uf=nE;var fo=class extends Le(Yt(ge)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?w`<div class="mdc-radio__label-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(t){let s=t.constructor;this.dispatchEvent(new s(t.type,t))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(s=>{s.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(s=>{this.onerror&&this.onerror(s)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(t,s){this.updateComplete.then(()=>{t.forEach(n=>{n.setComponentValidity(s)})}).catch(n=>{this.onerror&&this.onerror(n)})}setActualFormValue(){let t="";this.checked?t=this.value?this.value:"on":t=null;let s=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(s,!0);else{let n=s.some(x=>x.required),h=!!s.find(x=>x.checked),u=n&&!h;this.setGroupValidity(s,!u)}this.internals.setFormValue(t)}handleChange(t){var h;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(u=>{var R;let x=(R=u.shadowRoot)==null?void 0:R.querySelector("input");x&&(u.checked=!1,x.checked=!1)}),this.checked=!0;let n=(h=this.shadowRoot)==null?void 0:h.querySelector("input");n&&(n.checked=!0),this.dispatchChangeEvent(t)}updateRadio(t,s,n){var h,u;(u=(h=t[s].shadowRoot)==null?void 0:h.querySelector("input"))==null||u.focus(),t[s].handleChange(n)}handleKeyDown(t){var u;if(this.disabled)return;let n=this.getAllRadiosWithinSameGroup().filter(x=>!x.disabled),h=n.indexOf(this);if(["ArrowDown","ArrowRight"].includes(t.key)){let x=(h+1)%n.length;this.updateRadio(n,x,t)}else if(["ArrowUp","ArrowLeft"].includes(t.key)){let x=(h-1+n.length)%n.length;this.updateRadio(n,x,t)}else t.key===Q.SPACE&&this.updateRadio(n,h,t);this.updateTabIndex(),t.key===Q.ENTER&&((u=this.form)==null||u.requestSubmit())}updateTabIndex(){let t=this.getAllRadiosWithinSameGroup(),s=t.find(h=>h.checked),n=t.find(h=>!h.disabled);t.forEach(h=>{var x;let u=(x=h.shadowRoot)==null?void 0:x.querySelector("input");u&&(u.tabIndex=-1,(h===s||!s&&h===n)&&(u.tabIndex=0))})}update(t){super.update(t),t.has("checked")&&this.setActualFormValue()}render(){var t;return w`
|
4275
4275
|
<mdc-staticradio
|
4276
4276
|
class="mdc-focus-ring"
|
4277
4277
|
?checked="${this.checked}"
|
@@ -4298,7 +4298,7 @@
|
|
4298
4298
|
/>
|
4299
4299
|
</mdc-staticradio>
|
4300
4300
|
${this.renderLabelAndHelperText()}
|
4301
|
-
`}};
|
4301
|
+
`}};fo.styles=[...ge.styles,...uf],m([g({type:Boolean,reflect:!0})],fo.prototype,"checked",2),m([g({type:Boolean,reflect:!0})],fo.prototype,"readonly",2),m([g({type:Boolean,reflect:!0})],fo.prototype,"autofocus",2);var fd=fo;var ll=Y.constructTagName("radio");fd.register(ll);var lE=fd;var xa=class extends Xn{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t,s,n,h,u;(u=(h=(n=(s=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:s.flatMap(x=>x.assignedElements({flatten:!0})))==null?void 0:n.filter(x=>x.tagName.toLowerCase()===ll||x.tagName.toLowerCase()===Dn))==null?void 0:h.filter(x=>!x.hasAttribute("name")))==null||u.forEach(x=>{x.setAttribute("name",this.name),this.required&&x.setAttribute("required",this.required.toString())})}};xa.styles=[...Xn.styles],m([g({type:String})],xa.prototype,"name",2);var vd=xa;var ff=Y.constructTagName("radiogroup");vd.register(ff);var cE=vd;var dE=H`
|
4302
4302
|
:host::part(filters-container) {
|
4303
4303
|
display: flex;
|
4304
4304
|
gap: 0.25rem;
|
@@ -4323,10 +4323,10 @@
|
|
4323
4323
|
position: relative;
|
4324
4324
|
scrollbar-width: none;
|
4325
4325
|
}
|
4326
|
-
`,
|
4326
|
+
`,vf=[dE];var gf=Y.constructTagName("searchfield"),Aa={TYPE:ts.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:Jn};var vo=class extends Jr{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(t){super.handleKeyDown(t),t.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=Aa.ICON,this.trailingButton=Aa.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var t;this.hasInputChips=!!((t=this.inputChips)!=null&&t.length),this.inputChips&&this.inputChips.forEach(s=>{s.matches(Aa.INPUT_CHIP_TAG)||s.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var t;super.clearInputText(),(t=this.inputChips)==null||t.forEach(s=>{s.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return w`
|
4327
4327
|
${this.renderLabelElement()}
|
4328
4328
|
<div
|
4329
|
-
class="${
|
4329
|
+
class="${_r({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}"
|
4330
4330
|
part="input-container"
|
4331
4331
|
>
|
4332
4332
|
${this.renderLeadingIcon()}
|
@@ -4339,11 +4339,11 @@
|
|
4339
4339
|
>
|
4340
4340
|
<slot name="filters" @slotchange=${this.renderInputChips}></slot>
|
4341
4341
|
</div>
|
4342
|
-
${this.renderInputElement(
|
4342
|
+
${this.renderInputElement(Aa.TYPE,this.hasInputChips)}
|
4343
4343
|
</div>
|
4344
4344
|
${this.renderTrailingButton(this.hasInputChips)}
|
4345
4345
|
</div>
|
4346
|
-
`}};
|
4346
|
+
`}};vo.styles=[...Jr.styles,...vf],m([Pt({slot:"filters"})],vo.prototype,"inputChips",2),m([At()],vo.prototype,"isInputFocused",2),m([At()],vo.prototype,"hasInputChips",2);var gd=vo;gd.register(gf);var hE=gd;var bf=Y.constructTagName("select"),bd={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},_a="select-base-triggerid",yd="select-listbox";var pE=H`
|
4347
4347
|
:host {
|
4348
4348
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
4349
4349
|
--mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
|
@@ -4462,28 +4462,28 @@
|
|
4462
4462
|
:host([readonly])::part(icon-container) {
|
4463
4463
|
color: var(--mdc-select-disabled-text-color);
|
4464
4464
|
}
|
4465
|
-
`,
|
4465
|
+
`,yf=[pE,..._t(!0)];var $e=class extends Le(Yt(ge)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.placement=Ut.BOTTOM_START;this.displayPopover=!1;this.initialSelectedOption=null}getAllValidOptions(){var t;return Array.from(((t=this.slottedListboxes[0])==null?void 0:t.querySelectorAll(ds))||[])}getFirstValidOption(){var t;return(t=this.slottedListboxes[0])==null?void 0:t.querySelector(ds)}getLastValidOption(){let t=this.getAllValidOptions();return t.length>0?t[t.length-1]:null}getFirstSelectedOption(){var t;return(t=this.slottedListboxes[0])==null?void 0:t.querySelector(`${ds}[selected]`)}async firstUpdated(){await this.updateComplete,this.modifyListBoxWrapper();let t=this.getFirstSelectedOption();if(t)this.initialSelectedOption=t,this.setSelectedOption(t);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let s=this.getFirstValidOption();this.setSelectedOption(s),this.fireEvents()}}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1),t.has("dataAriaLabel")&&this.modifyListBoxWrapper()}modifyListBoxWrapper(){let t=this.slottedListboxes[0];t&&(t.setAttribute("id",yd),t.setAttribute("aria-label",this.dataAriaLabel||""),t.setAttribute("aria-labelledby",_a))}handleOptionsClick(t){this.setSelectedOption(t.target),this.displayPopover=!1,this.fireEvents()}setSelectedOption(t){var s,n;this.updateSelectedInChildOptions(t),this.updateTabIndexForAllOptions(t),this.selectedOption=t,this.value=(n=(s=this.selectedOption)==null?void 0:s.value)!=null?n:"",this.internals.setFormValue(this.value),this.inputElement.setAttribute("value",this.value),this.setInputValidity()}updateTabIndexForAllOptions(t){let s=this.getAllValidOptions(),n=t||s[0];s.forEach(h=>{h.setAttribute("tabindex",h===n?"0":"-1")})}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.getAllValidOptions().forEach(n=>{n!==t&&n.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){!this.selectedOption&&this.required&&this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}formResetCallback(){var s;let t=this.initialSelectedOption||null;((s=this.selectedOption)==null?void 0:s.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var n;let s=this.getAllValidOptions().find(h=>h.value===t||h.label===t);((n=this.selectedOption)==null?void 0:n.value)!==(s==null?void 0:s.value)&&(this.setSelectedOption(s||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleKeydownCombobox(t){if(!(this.disabled||this.softDisabled||this.readonly))switch(t.key){case Q.ARROW_DOWN:case Q.ARROW_UP:this.displayPopover=!0,t.preventDefault();break;case Q.ENTER:case Q.SPACE:this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case Q.HOME:{this.displayPopover=!0;let s=this.getFirstValidOption();s&&(s==null||s.focus(),this.updateTabIndexForAllOptions(s)),t.preventDefault();break}case Q.END:{this.displayPopover=!0;let s=this.getLastValidOption();s&&(s.focus(),this.updateTabIndexForAllOptions(s)),t.preventDefault();break}default:break}}handlePopoverKeydown(t){switch(t.key){case Q.HOME:{let s=this.getFirstValidOption();this.focusAndUpdateTabIndexes(s),t.preventDefault();break}case Q.END:{let s=this.getLastValidOption();this.focusAndUpdateTabIndexes(s),t.preventDefault();break}case Q.ARROW_DOWN:{let s=this.getAllValidOptions(),n=s.findIndex(u=>u===t.target),h=Math.min(n+1,s.length-1);this.focusAndUpdateTabIndexes(s[h]),t.preventDefault();break}case Q.ARROW_UP:{let s=this.getAllValidOptions(),n=s.findIndex(u=>u===t.target),h=Math.max(n-1,0);this.focusAndUpdateTabIndexes(s[h]),t.preventDefault();break}case Q.PAGE_DOWN:{let s=this.getAllValidOptions(),n=s.findIndex(u=>u===t.target),h=Math.min(n+10,s.length-1);this.focusAndUpdateTabIndexes(s[h]),t.preventDefault();break}case Q.PAGE_UP:{let s=this.getAllValidOptions(),n=s.findIndex(u=>u===t.target),h=Math.max(n-10,0);this.focusAndUpdateTabIndexes(s[h]),t.preventDefault();break}default:break}}focusAndUpdateTabIndexes(t){t&&(t.focus(),this.updateTabIndexForAllOptions(t))}handleNativeInputFocus(){this.visualCombobox.focus()}updateState(){var s;let t=this.getFirstSelectedOption();t?((s=this.selectedOption)==null?void 0:s.value)!==t.value&&this.setSelectedOption(t):this.setSelectedOption(this.placeholder?null:this.getFirstValidOption())}render(){var t,s,n,h,u,x;return w`
|
4466
4466
|
${this.renderLabel()}
|
4467
4467
|
<div part="container">
|
4468
4468
|
<div
|
4469
|
-
id="${
|
4469
|
+
id="${_a}"
|
4470
4470
|
part="base-container"
|
4471
4471
|
@click="${this.handleClickCombobox}"
|
4472
4472
|
@keydown="${this.handleKeydownCombobox}"
|
4473
4473
|
tabindex="${this.disabled?"-1":"0"}"
|
4474
4474
|
class="${this.disabled?"":"mdc-focus-ring"}"
|
4475
4475
|
role="${et.COMBOBOX}"
|
4476
|
-
aria-controls="${
|
4476
|
+
aria-controls="${yd}"
|
4477
4477
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
4478
4478
|
aria-labelledby="${this.label?Mt.HEADING_ID:""}"
|
4479
4479
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
4480
4480
|
aria-haspopup="${et.LISTBOX}"
|
4481
4481
|
aria-required="${this.required?"true":"false"}"
|
4482
|
-
aria-invalid="${this.helpTextType===
|
4482
|
+
aria-invalid="${this.helpTextType===jt.ERROR?"true":"false"}"
|
4483
4483
|
aria-disabled="${nt(this.disabled||this.softDisabled)}"
|
4484
4484
|
aria-readonly="${nt(this.readonly)}"
|
4485
4485
|
>
|
4486
|
-
${(s=this.selectedOption)!=null&&s.prefixIcon?
|
4486
|
+
${(s=this.selectedOption)!=null&&s.prefixIcon?w`<mdc-icon
|
4487
4487
|
length-unit="rem"
|
4488
4488
|
size="1"
|
4489
4489
|
name="${(n=this.selectedOption)==null?void 0:n.prefixIcon}"
|
@@ -4494,13 +4494,13 @@
|
|
4494
4494
|
type="${ot.BODY_MIDSIZE_REGULAR}"
|
4495
4495
|
tagname="${vt.SPAN}"
|
4496
4496
|
>
|
4497
|
-
${(x=(
|
4497
|
+
${(x=(u=this.selectedOption)==null?void 0:u.label)!=null?x:this.placeholder}
|
4498
4498
|
</mdc-text>
|
4499
4499
|
<div part="icon-container">
|
4500
4500
|
<mdc-icon
|
4501
4501
|
size="1"
|
4502
4502
|
length-unit="rem"
|
4503
|
-
name="${this.displayPopover?
|
4503
|
+
name="${this.displayPopover?bd.ARROW_UP:bd.ARROW_DOWN}"
|
4504
4504
|
></mdc-icon>
|
4505
4505
|
</div>
|
4506
4506
|
</div>
|
@@ -4521,7 +4521,7 @@
|
|
4521
4521
|
/>
|
4522
4522
|
<mdc-popover
|
4523
4523
|
trigger="manual"
|
4524
|
-
triggerid="${
|
4524
|
+
triggerid="${_a}"
|
4525
4525
|
@keydown="${this.handlePopoverKeydown}"
|
4526
4526
|
interactive
|
4527
4527
|
?visible="${this.displayPopover}"
|
@@ -4540,7 +4540,7 @@
|
|
4540
4540
|
</mdc-popover>
|
4541
4541
|
</div>
|
4542
4542
|
${this.renderHelperText()}
|
4543
|
-
`}}
|
4543
|
+
`}};$e.styles=[...ge.styles,...yf],m([g({type:String})],$e.prototype,"placeholder",2),m([g({type:Boolean})],$e.prototype,"readonly",2),m([g({type:String})],$e.prototype,"height",2),m([g({type:String,reflect:!0})],$e.prototype,"placement",2),m([g({type:Boolean,attribute:"soft-disabled"})],$e.prototype,"softDisabled",2),m([Pt({selector:"mdc-selectlistbox"})],$e.prototype,"slottedListboxes",2),m([Vr(`[id="${_a}"]`)],$e.prototype,"visualCombobox",2),m([At()],$e.prototype,"selectedOption",2),m([At()],$e.prototype,"displayPopover",2);var Ed=$e;Ed.register(bf);var mE=Ed;ho.register(_i);var uE=ho;var Ef=Y.constructTagName("skeleton"),Tf={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},xf={VARIANT:Tf.RECTANGULAR};var fE=H`
|
4544
4544
|
:host {
|
4545
4545
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
4546
4546
|
--mdc-skeleton-height: 100%;
|
@@ -4577,7 +4577,7 @@
|
|
4577
4577
|
::slotted(*) {
|
4578
4578
|
visibility: hidden;
|
4579
4579
|
}
|
4580
|
-
`,
|
4580
|
+
`,Af=fE;var Sa=class extends q{constructor(){super(...arguments);this.variant=xf.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return w`<slot @slotchange=${this.checkSlotContent}></slot>`}};Sa.styles=[...q.styles,Af],m([g({type:String,reflect:!0})],Sa.prototype,"variant",2);var Td=Sa;Td.register(Ef);var vE=Td;var gE=[Et,H`
|
4581
4581
|
:host {
|
4582
4582
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
4583
4583
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -4641,11 +4641,150 @@
|
|
4641
4641
|
stroke-dashoffset: -292;
|
4642
4642
|
}
|
4643
4643
|
}
|
4644
|
-
`],
|
4644
|
+
`],_f=gE;var Sf=Y.constructTagName("spinner"),bE={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},yE={STANDALONE:"standalone",BUTTON:"button"},cl={VARIANT:yE.STANDALONE,SIZE:bE.MIDSIZE,INVERTED:!1};var ki=class extends q{constructor(){super(...arguments);this.inverted=cl.INVERTED;this.size=cl.SIZE;this.ariaLabel=null;this.variant=cl.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?et.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return w`
|
4645
4645
|
<svg part="container" viewBox="0 0 100 100">
|
4646
4646
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
4647
4647
|
</svg>
|
4648
|
-
`}};
|
4648
|
+
`}};ki.styles=[...q.styles,..._f],m([g({type:Boolean,reflect:!0})],ki.prototype,"inverted",2),m([g({type:String,reflect:!0})],ki.prototype,"size",2),m([g({type:String,attribute:"aria-label"})],ki.prototype,"ariaLabel",2),m([g({type:String,reflect:!0})],ki.prototype,"variant",2);var xd=ki;xd.register(Sf);var EE=xd;var If=Y.constructTagName("toast"),Ia={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},dl={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Re={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:Ar[20],BUTTON:Gr,PRIMARY_BUTTON:Ft.PRIMARY,SECONDARY_BUTTON:Ft.SECONDARY,TERTIARY_BUTTON:Ft.TERTIARY,VARIANT:Ia.CUSTOM};var kf=l=>{switch(l){case Ia.SUCCESS:return dl.SUCCESS_ICON_NAME;case Ia.WARNING:return dl.WARNING_ICON_NAME;case Ia.ERROR:return dl.ERROR_ICON_NAME;default:return null}};var TE=H`
|
4649
|
+
:host {
|
4650
|
+
--mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
4651
|
+
--mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
|
4652
|
+
--mdc-toast-header-text-color: var(--mds-color-theme-text-primary-normal);
|
4653
|
+
--mdc-toast-icon-color: var(--mdc-toast-header-text-color);
|
4654
|
+
--mdc-toast-elevation-3: var(--mds-elevation-3);
|
4655
|
+
--mdc-toast-width: 25rem;
|
4656
|
+
--mdc-toast-padding: 1rem;
|
4657
|
+
|
4658
|
+
display: block;
|
4659
|
+
width: var(--mdc-toast-width);
|
4660
|
+
max-width: 100%;
|
4661
|
+
padding: var(--mdc-toast-padding);
|
4662
|
+
background-color: var(--mdc-toast-background-color);
|
4663
|
+
border: 0.0625rem solid var(--mdc-toast-border-color);
|
4664
|
+
border-radius: 0.5rem;
|
4665
|
+
filter: var(--mdc-toast-elevation-3);
|
4666
|
+
}
|
4667
|
+
|
4668
|
+
:host::part(toast-prefix-icon) {
|
4669
|
+
color: var(--mdc-toast-icon-color);
|
4670
|
+
}
|
4671
|
+
|
4672
|
+
:host([variant='success'])::part(toast-prefix-icon) {
|
4673
|
+
--mdc-toast-icon-color: var(--mds-color-theme-text-success-normal);
|
4674
|
+
}
|
4675
|
+
|
4676
|
+
:host([variant='warning'])::part(toast-prefix-icon) {
|
4677
|
+
--mdc-toast-icon-color: var(--mds-color-theme-text-warning-normal);
|
4678
|
+
}
|
4679
|
+
|
4680
|
+
:host([variant='error'])::part(toast-prefix-icon) {
|
4681
|
+
--mdc-toast-icon-color: var(--mds-color-theme-text-error-normal);
|
4682
|
+
}
|
4683
|
+
|
4684
|
+
:host::part(content-container) {
|
4685
|
+
display: flex;
|
4686
|
+
align-items: flex-start;
|
4687
|
+
gap: 0.75rem;
|
4688
|
+
align-self: stretch;
|
4689
|
+
}
|
4690
|
+
|
4691
|
+
:host::part(toast-content) {
|
4692
|
+
display: flex;
|
4693
|
+
flex-direction: column;
|
4694
|
+
justify-content: center;
|
4695
|
+
align-items: flex-start;
|
4696
|
+
gap: 0.25rem;
|
4697
|
+
flex: 1 0 0;
|
4698
|
+
align-self: stretch;
|
4699
|
+
}
|
4700
|
+
|
4701
|
+
:host::part(toast-header) {
|
4702
|
+
display: -webkit-box;
|
4703
|
+
-webkit-box-orient: vertical;
|
4704
|
+
-webkit-line-clamp: 2;
|
4705
|
+
align-self: stretch;
|
4706
|
+
overflow: hidden;
|
4707
|
+
text-overflow: ellipsis;
|
4708
|
+
color: var(--mdc-toast-header-text-color);
|
4709
|
+
font-weight: 500;
|
4710
|
+
font-size: var(--mds-font-size-body-large);
|
4711
|
+
line-height: var(--mds-font-lineheight-body-large);
|
4712
|
+
}
|
4713
|
+
|
4714
|
+
:host::part(footer) {
|
4715
|
+
display: flex;
|
4716
|
+
justify-content: flex-end;
|
4717
|
+
align-items: center;
|
4718
|
+
gap: 0.75rem;
|
4719
|
+
align-self: stretch;
|
4720
|
+
}
|
4721
|
+
|
4722
|
+
.has-footer-buttons {
|
4723
|
+
margin-top: 1rem;
|
4724
|
+
}
|
4725
|
+
|
4726
|
+
:host::part(footer-button-toggle) {
|
4727
|
+
text-decoration: none;
|
4728
|
+
}
|
4729
|
+
|
4730
|
+
mdc-text::part(text) {
|
4731
|
+
margin: 0;
|
4732
|
+
}
|
4733
|
+
`,Cf=[TE];var Ee=class extends Bo(q){constructor(){super(...arguments);this.variant=Re.VARIANT;this.headerTagName=Re.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible}updateDetailedSlotPresence(){var t,s;this.hasDetailedSlot=(s=(t=this.detailedElements)==null?void 0:t.some(n=>{var h;return(h=n.textContent)==null?void 0:h.trim()}))!=null?s:!1}updateFooterButtonsPresence(){var t,s,n,h;this.hasFooterButtons=((s=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?s:0)>0||((h=(n=this.footerButtonSecondary)==null?void 0:n.length)!=null?h:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence()}renderIcon(t){return t?w`
|
4734
|
+
<mdc-icon
|
4735
|
+
name="${t}"
|
4736
|
+
size="${Re.PREFIX_ICON_SIZE}"
|
4737
|
+
part="toast-prefix-icon"
|
4738
|
+
></mdc-icon>
|
4739
|
+
`:W}shouldRenderToggleButton(){return this.hasDetailedSlot&&this.showMoreText&&this.showLessText}renderToggleDetailButton(){return this.shouldRenderToggleButton()?w`
|
4740
|
+
<mdc-linkbutton
|
4741
|
+
part="footer-button-toggle"
|
4742
|
+
@click="${this.toggleDetailVisibility}"
|
4743
|
+
icon-name="${this.isDetailVisible?Re.ARROW_UP_BOLD:Re.ARROW_DOWN_BOLD}"
|
4744
|
+
>
|
4745
|
+
${this.isDetailVisible?this.showLessText:this.showMoreText}
|
4746
|
+
</mdc-linkbutton>
|
4747
|
+
`:W}renderHeader(){return this.headerText?w`
|
4748
|
+
<mdc-text
|
4749
|
+
part="toast-header"
|
4750
|
+
tagname="${this.headerTagName}"
|
4751
|
+
type="${ot.BODY_LARGE_BOLD}"
|
4752
|
+
>
|
4753
|
+
${this.headerText}
|
4754
|
+
</mdc-text>
|
4755
|
+
`:W}handleFooterSlot(t,s){super.handleFooterSlot(t,s),this.updateFooterButtonsPresence()}renderFooter(){return this.updateFooterButtonsPresence(),w` <slot name="footer">
|
4756
|
+
<div part="footer" class="${this.hasFooterButtons}">
|
4757
|
+
${this.renderToggleDetailButton()}
|
4758
|
+
<slot
|
4759
|
+
name="footer-button-secondary"
|
4760
|
+
@slotchange=${()=>this.handleFooterSlot(Re.BUTTON,Re.SECONDARY_BUTTON)}
|
4761
|
+
></slot>
|
4762
|
+
<slot
|
4763
|
+
name="footer-button-primary"
|
4764
|
+
@slotchange=${()=>this.handleFooterSlot(Re.BUTTON,Re.PRIMARY_BUTTON)}
|
4765
|
+
></slot>
|
4766
|
+
</div>
|
4767
|
+
</slot>`}render(){var t;return w`
|
4768
|
+
<div part="content-container">
|
4769
|
+
${this.variant===Re.VARIANT?w`<slot name="content-prefix"></slot>`:w`${this.renderIcon((t=kf(this.variant))!=null?t:"")}`}
|
4770
|
+
<div part="toast-content">
|
4771
|
+
${this.renderHeader()}
|
4772
|
+
<slot name="toast-body-normal"></slot>
|
4773
|
+
<div ?hidden="${!this.isDetailVisible}">
|
4774
|
+
<slot name="toast-body-detailed"></slot>
|
4775
|
+
</div>
|
4776
|
+
</div>
|
4777
|
+
<mdc-button
|
4778
|
+
part="toast-close-btn"
|
4779
|
+
prefix-icon="${Re.CANCEL_ICON}"
|
4780
|
+
variant="${Re.TERTIARY_BUTTON}"
|
4781
|
+
size="${Re.CLOSE_ICON_SIZE}"
|
4782
|
+
aria-label="${nt(this.closeButtonAriaLabel)}"
|
4783
|
+
@click="${this.closeToast}"
|
4784
|
+
></mdc-button>
|
4785
|
+
</div>
|
4786
|
+
${this.renderFooter()}
|
4787
|
+
`}};Ee.styles=[...q.styles,...Cf],m([g({type:String,reflect:!0})],Ee.prototype,"variant",2),m([g({type:String,attribute:"close-button-aria-label"})],Ee.prototype,"closeButtonAriaLabel",2),m([g({type:String,reflect:!0,attribute:"header-text"})],Ee.prototype,"headerText",2),m([g({type:String,reflect:!0,attribute:"header-tag-name"})],Ee.prototype,"headerTagName",2),m([g({type:String,reflect:!0,attribute:"aria-label"})],Ee.prototype,"ariaLabel",2),m([g({type:String,reflect:!0,attribute:"show-more-text"})],Ee.prototype,"showMoreText",2),m([g({type:String,reflect:!0,attribute:"show-less-text"})],Ee.prototype,"showLessText",2),m([At()],Ee.prototype,"isDetailVisible",2),m([At()],Ee.prototype,"hasDetailedSlot",2),m([Pt({slot:"toast-body-detailed",flatten:!0})],Ee.prototype,"detailedElements",2),m([At()],Ee.prototype,"hasFooterButtons",2);var Ad=Ee;Ad.register(If);var xE=Ad;var wf=Y.constructTagName("tab"),_d={GLASS:"glass",LINE:"line",PILL:"pill"},hl={VARIANT:_d.PILL,ACTIVE:!1};var AE=[Et,H`
|
4649
4788
|
:host {
|
4650
4789
|
--mdc-tab-content-gap: 0.5rem;
|
4651
4790
|
--mdc-tab-height: 2rem;
|
@@ -4887,10 +5026,10 @@
|
|
4887
5026
|
background-color: var(--mdc-tab-pill-active-background-color-disabled);
|
4888
5027
|
color: var(--mdc-tab-pill-active-color-disabled);
|
4889
5028
|
}
|
4890
|
-
`,...
|
5029
|
+
`,..._t()],Nf=AE;var Ci=class extends Qt(de){constructor(){super(...arguments);this.active=hl.ACTIVE;this.variant=hl.VARIANT;this.handleTabActiveChange=t=>{let s=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(s)}}connectedCallback(){super.connectedCallback(),this.role=et.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(t){this.iconName&&(t?(this.prevIconName=this.iconName,this.iconName=`${Yi(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(_d).includes(t)?t:hl.VARIANT)}setActive(t,s){super.setActive(t,s),this.modifyIconName(s)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return w`
|
4891
5030
|
<div part="container">
|
4892
|
-
${this.iconName?
|
4893
|
-
${this.text?
|
5031
|
+
${this.iconName?w` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:W}
|
5032
|
+
${this.text?w` <mdc-text
|
4894
5033
|
type=${this.active?ot.BODY_MIDSIZE_BOLD:ot.BODY_MIDSIZE_MEDIUM}
|
4895
5034
|
tagname=${vt.SPAN}
|
4896
5035
|
data-text=${this.text}
|
@@ -4901,7 +5040,7 @@
|
|
4901
5040
|
<slot name="chip"></slot>
|
4902
5041
|
</div>
|
4903
5042
|
<div part="indicator"></div>
|
4904
|
-
`}};
|
5043
|
+
`}};Ci.styles=[...de.styles,...Nf],m([g({type:Boolean,reflect:!0})],Ci.prototype,"active",2),m([g({type:String,reflect:!0})],Ci.prototype,"text",2),m([g({type:String,reflect:!0})],Ci.prototype,"variant",2),m([g({type:String,reflect:!0,attribute:"tab-id"})],Ci.prototype,"tabId",2);var tr=Ci;tr.register(wf);var _E=tr;var SE=[hn,H`
|
4905
5044
|
:host {
|
4906
5045
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
4907
5046
|
--mdc-tablist-gap: 0.5rem;
|
@@ -4931,16 +5070,16 @@
|
|
4931
5070
|
:host mdc-button[prefix-icon='arrow-right-regular'] {
|
4932
5071
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
4933
5072
|
}
|
4934
|
-
`],
|
5073
|
+
`],Lf=[...SE];var Rf=Y.constructTagName("tablist"),ka={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},hs={FORWARD:"forward",BACKWARD:"backward"};var pl=l=>l[0],Sd=l=>l[l.length-1],Mf=(l,i)=>{let t=l.findIndex(s=>i===s)-1;return l[(t+l.length)%l.length]},Of=(l,i)=>{let t=l.findIndex(s=>i===s)+1;return l[t%l.length]},Pf=(l,i)=>l.find(t=>t.tabId===i),Id=l=>l.find(i=>i.active);var fr=class extends q{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.fireTabChangeEvent=t=>{let s=new CustomEvent("change",{detail:{tabId:t.tabId}});this.dispatchEvent(s)};this.handleFocus=async t=>{if(t.relatedTarget instanceof tr||!(t.target instanceof tr))return;let s=Id(this.tabs||[]);s instanceof tr&&await this.focusTab(s)};this.handleMousedown=t=>{t.target instanceof tr&&t.preventDefault()};this.handleNestedTabActiveChange=async t=>{t.stopPropagation();let s=t.target;s instanceof tr&&(this.setActiveTab(s),await this.focusTab(s),this.activeTabId=s.tabId)};this.resetTabIndexAndSetNewTabIndex=t=>{var s;(s=this.tabs)==null||s.forEach(n=>{n.setAttribute("tabindex",n===t?"0":"-1")})};this.setActiveTab=t=>{var s;(s=this.tabs)==null||s.forEach(n=>{n===t?n.setAttribute("active",""):n.removeAttribute("active")})};this.focusTab=async t=>{t instanceof tr&&(t!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(t),t.focus()),await this.handleArrowButtonVisibility())};this.handleKeydown=async t=>{let s=t.target;if(!(s instanceof tr)||!this.tabs)return;let n=Mf(this.tabs,s),h=Of(this.tabs,s),u=pl(this.tabs),x=Sd(this.tabs);switch(t.code){case ka.LEFT:t.preventDefault(),await this.focusTab(this.isRtl()?h:n);break;case ka.RIGHT:t.preventDefault(),await this.focusTab(this.isRtl()?n:h);break;case ka.HOME:await this.focusTab(u);break;case ka.END:await this.focusTab(x);break;default:}};this.shouldShowArrowButton=t=>t===hs.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var t,s;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=Id(this.tabs||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((s=this.notFocusedArrowButton)==null||s.focus())};this.handleArrowButtonVisibility=async()=>{var K,at,J;if(!this.tabs||!this.tabsContainer)return;let t=!1;((K=this.shadowRoot)==null?void 0:K.activeElement)instanceof ji&&(t=!0);let s=pl(this.tabs),n=Sd(this.tabs),h=s.getBoundingClientRect().left,u=(at=this.tabsContainer)==null?void 0:at.getBoundingClientRect().left,x=n.getBoundingClientRect().right,R=(J=this.tabsContainer)==null?void 0:J.getBoundingClientRect().right,$=s.getBoundingClientRect().right,j=n.getBoundingClientRect().left;if(!this.isRtl()){h<=u?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,x>R?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus();return}$>R?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,j<u?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus()};this.scrollTabs=async t=>{var h;let s=this.isRtl()?-1:1,n=this.isRtl()?1:-1;(h=this.tabsContainer)==null||h.scrollBy({left:this.tabsContainer.clientWidth*(t===hs.FORWARD?s:n),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var n,h,u;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 t=this.tabs.map(x=>x.tabId);new Set(t).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=pl(this.tabs))==null?void 0:n.tabId),(h=this.tabsContainer)==null||h.addEventListener("focusin",this.handleFocus),(u=this.tabsContainer)==null||u.addEventListener("mousedown",this.handleMousedown)}async update(t){if(super.update(t),t.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let s=Pf(this.tabs,this.activeTabId);if(!(s instanceof tr))return;this.setActiveTab(s),t.get("activeTabId")?(this.fireTabChangeEvent(s),await this.focusTab(s)):this.resetTabIndexAndSetNewTabIndex(s)}}render(){let t=this.isRtl()?"left":"right",s=this.isRtl()?"right":"left",n=h=>w` ${this.shouldShowArrowButton(h)?w`<mdc-button
|
4935
5074
|
variant="tertiary"
|
4936
|
-
prefix-icon="arrow-${h===
|
4937
|
-
aria-label="Scroll tabs ${h===
|
5075
|
+
prefix-icon="arrow-${h===hs.FORWARD?t:s}-regular"
|
5076
|
+
aria-label="Scroll tabs ${h===hs.FORWARD?t:s}"
|
4938
5077
|
@click="${()=>this.scrollTabs(h)}"
|
4939
|
-
></mdc-button>`:W}`;return
|
5078
|
+
></mdc-button>`:W}`;return w` ${n("backward")}
|
4940
5079
|
<div class="container" role="${et.TABLIST}" tabindex="-1" aria-label="${nt(this.dataAriaLabel)}">
|
4941
5080
|
<slot></slot>
|
4942
5081
|
</div>
|
4943
|
-
${n(
|
5082
|
+
${n(hs.FORWARD)}`}};fr.styles=[...q.styles,...Lf],m([g({type:String,attribute:"active-tab-id",reflect:!0})],fr.prototype,"activeTabId",2),m([g({type:String,attribute:"data-aria-label"})],fr.prototype,"dataAriaLabel",2),m([Vr(".container")],fr.prototype,"tabsContainer",2),m([Vr("mdc-button:not(:focus-visible)")],fr.prototype,"notFocusedArrowButton",2),m([Pt({selector:"mdc-tab"})],fr.prototype,"tabs",2),m([At()],fr.prototype,"showForwardArrowButton",2),m([At()],fr.prototype,"showBackwardArrowButton",2);var kd=fr;kd.register(Rf);var IE=kd;var Df=Y.constructTagName("textarea"),Cd={HARD:"hard",SOFT:"soft"},Ff={OFF:"off",ON:"on"},ml={CHARACTER_COUNTER_TYPE:ot.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Cd.SOFT};var kE=[H`
|
4944
5083
|
:host {
|
4945
5084
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
4946
5085
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -5059,11 +5198,11 @@
|
|
5059
5198
|
opacity: 0;
|
5060
5199
|
pointer-events: none;
|
5061
5200
|
}
|
5062
|
-
`,...
|
5063
|
-
<mdc-text part="character-counter" tagname="span" type=${
|
5201
|
+
`,..._t(!0)],$f=kE;var ae=class extends Le(Yt(Ze)){constructor(){super(...arguments);this.readonly=!1;this.rows=ml.ROWS;this.cols=ml.COLS;this.wrap=Cd.SOFT;this.autocapitalize=Zn.OFF;this.autocomplete=Ff.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(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===jt.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(t,s,n){super.attributeChangedCallback(t,s,n),["maxlength","minlength","required"].includes(t)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(u=>{this.onerror&&this.onerror(u)})}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(t){this.updateValue();let s=t.constructor;this.dispatchEvent(new s(t.type,t))}renderCharacterCounter(){return this.maxCharacterLimit?w`
|
5202
|
+
<mdc-text part="character-counter" tagname="span" type=${ml.CHARACTER_COUNTER_TYPE}>
|
5064
5203
|
${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
|
5065
5204
|
</mdc-text>
|
5066
|
-
`:W}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?W:
|
5205
|
+
`:W}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?W:w` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}render(){var t;return w`
|
5067
5206
|
${this.renderLabel()}
|
5068
5207
|
<div class="textarea-container mdc-focus-ring" part="textarea-container">
|
5069
5208
|
<textarea
|
@@ -5092,7 +5231,7 @@
|
|
5092
5231
|
></textarea>
|
5093
5232
|
</div>
|
5094
5233
|
${this.renderTextareaFooter()}
|
5095
|
-
`}};ae.styles=[...
|
5234
|
+
`}};ae.styles=[...Ze.styles,...$f],m([g({type:String})],ae.prototype,"placeholder",2),m([g({type:Boolean})],ae.prototype,"readonly",2),m([g({type:Number})],ae.prototype,"rows",2),m([g({type:Number})],ae.prototype,"cols",2),m([g({type:String})],ae.prototype,"wrap",2),m([g({type:String})],ae.prototype,"autocapitalize",2),m([g({type:String})],ae.prototype,"autocomplete",2),m([g({type:Boolean})],ae.prototype,"autofocus",2),m([g({type:String})],ae.prototype,"dirname",2),m([g({type:Number})],ae.prototype,"maxlength",2),m([g({type:Number})],ae.prototype,"minlength",2),m([g({type:Number,attribute:"max-character-limit"})],ae.prototype,"maxCharacterLimit",2),m([Vr("textarea")],ae.prototype,"inputElement",2);var wd=ae;wd.register(Df);var CE=wd;var ul=Y.constructTagName("themeprovider"),Nd={THEMECLASS:"mds-theme-stable-darkWebex"};var fl=class{constructor(i){this.themeclass=i}};fl.context=ul;var vl=fl;var wE=H`
|
5096
5235
|
:host {
|
5097
5236
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
5098
5237
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -5119,7 +5258,7 @@
|
|
5119
5258
|
* {
|
5120
5259
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
5121
5260
|
}
|
5122
|
-
`,
|
5261
|
+
`,zf=[wE];var ps=class extends Er{constructor(){super({context:vl.context,initialValue:new vl(Nd.THEMECLASS)});this.themeclass=Nd.THEMECLASS}static get Context(){return vl.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};ps.styles=[...Er.styles,...zf],m([At()],ps.prototype,"currentThemeClass",2),m([g({type:String})],ps.prototype,"themeclass",2);var Ld=ps;Ld.register(ul);var NE=Ld;var LE=[Et,H`
|
5123
5262
|
:host {
|
5124
5263
|
--mdc-toggle-width: 3rem;
|
5125
5264
|
--mdc-toggle-height: 1.5rem;
|
@@ -5205,7 +5344,7 @@
|
|
5205
5344
|
:host([disabled]) .mdc-help-text {
|
5206
5345
|
color: var(--mdc-toggle-label-color-disabled);
|
5207
5346
|
}
|
5208
|
-
`,...
|
5347
|
+
`,..._t(!0)],Vf=LE;var go=class extends Le(Yt(Ze)){constructor(){super(...arguments);this.checked=!1;this.size=td.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(t){var s;t.key===Q.ENTER&&((s=this.form)==null||s.requestSubmit())}handleChange(t){this.toggleState();let s=t.constructor;this.dispatchEvent(new s(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(ga).includes(t)?t:td.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return w`
|
5209
5348
|
<mdc-statictoggle
|
5210
5349
|
?checked="${this.checked}"
|
5211
5350
|
?disabled="${this.disabled}"
|
@@ -5233,10 +5372,10 @@
|
|
5233
5372
|
/>
|
5234
5373
|
</mdc-statictoggle>
|
5235
5374
|
${this.renderLabel()} ${this.renderHelperText()}
|
5236
|
-
`}};
|
5375
|
+
`}};go.styles=[...Ze.styles,...Vf],m([g({type:Boolean,reflect:!0})],go.prototype,"checked",2),m([g({type:String,reflect:!0})],go.prototype,"size",2),m([g({type:Boolean,reflect:!0})],go.prototype,"autofocus",2);var Rd=go;Rd.register(zu);var RE=Rd;function bo(l,i,t){var h;let s=(h=t.initialDeps)!=null?h:[],n;return()=>{var u,x,R,$;let j;t.key&&((u=t.debug)!=null&&u.call(t))&&(j=Date.now());let K=l();if(!(K.length!==s.length||K.some((rt,ht)=>s[ht]!==rt)))return n;s=K;let J;if(t.key&&((x=t.debug)!=null&&x.call(t))&&(J=Date.now()),n=i(...K),t.key&&((R=t.debug)!=null&&R.call(t))){let rt=Math.round((Date.now()-j)*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(rt,5)} ms`,`
|
5237
5376
|
font-size: .6rem;
|
5238
5377
|
font-weight: bold;
|
5239
|
-
color: hsl(${Math.max(0,Math.min(120-120*Tt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return($=t==null?void 0:t.onChange)==null||$.call(t,n),n}}function ml(l,i){if(l===void 0)throw new Error(`Unexpected undefined${i?`: ${i}`:""}`);return l}var Mf=(l,i)=>Math.abs(l-i)<1,Of=(l,i,t)=>{let s;return function(...n){l.clearTimeout(s),s=l.setTimeout(()=>i.apply(this,n),t)}};var AE=l=>l,_E=l=>{let i=Math.max(l.startIndex-l.overscan,0),t=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let n=i;n<=t;n++)s.push(n);return s},Df=(l,i)=>{let t=l.scrollElement;if(!t)return;let s=l.targetWindow;if(!s)return;let n=m=>{let{width:x,height:R}=m;i({width:Math.round(x),height:Math.round(R)})};if(n(t.getBoundingClientRect()),!s.ResizeObserver)return()=>{};let h=new s.ResizeObserver(m=>{let x=m[0];if(x!=null&&x.borderBoxSize){let R=x.borderBoxSize[0];if(R){n({width:R.inlineSize,height:R.blockSize});return}}n(t.getBoundingClientRect())});return h.observe(t,{box:"border-box"}),()=>{h.unobserve(t)}},Pf={passive:!0};var SE=typeof window>"u"?!0:"onscrollend"in window,Ff=(l,i)=>{let t=l.scrollElement;if(!t)return;let s=l.targetWindow;if(!s)return;let n=0,h=l.options.useScrollendEvent&&SE?()=>{}:Of(s,()=>{i(n,!1)},l.options.isScrollingResetDelay),m=$=>()=>{let{horizontal:Y,isRtl:K}=l.options;n=Y?t.scrollLeft*(K&&-1||1):t.scrollTop,h(),i(n,$)},x=m(!0),R=m(!1);return R(),t.addEventListener("scroll",x,Pf),t.addEventListener("scrollend",R,Pf),()=>{t.removeEventListener("scroll",x),t.removeEventListener("scrollend",R)}};var IE=(l,i,t)=>{if(i!=null&&i.borderBoxSize){let s=i.borderBoxSize[0];if(s)return Math.round(s[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[t.options.horizontal?"width":"height"])};var $f=(l,{adjustments:i=0,behavior:t},s)=>{var n,h;let m=l+i;(h=(n=s.scrollElement)==null?void 0:n.scrollTo)==null||h.call(n,{[s.options.horizontal?"left":"top"]:m,behavior:t})},ul=class{constructor(i){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 t=null,s=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(n=>{n.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var n;(n=s())==null||n.disconnect(),t=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=t=>{Object.entries(t).forEach(([s,n])=>{typeof n>"u"&&delete t[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:AE,rangeExtractor:_E,onChange:()=>{},measureElement:IE,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...t}},this.notify=t=>{var s,n;(n=(s=this.options).onChange)==null||n.call(s,this,t)},this.maybeNotify=vo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;var t;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=(t=this.scrollElement)==null?void 0:t.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 t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,s)=>{let n=new Map,h=new Map;for(let m=s-1;m>=0;m--){let x=t[m];if(n.has(x.lane))continue;let R=h.get(x.lane);if(R==null||x.end>R.end?h.set(x.lane,x):x.end<R.end&&n.set(x.lane,!0),n.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((m,x)=>m.end===x.end?m.index-x.index:m.end-x.end)[0]:void 0},this.getMeasurementOptions=vo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,s,n,h,m)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:m}),{key:!1}),this.getMeasurements=vo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:m},x)=>{if(!m)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(Y=>{this.itemSizeCache.set(Y.key,Y.size)}));let R=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,R);for(let Y=R;Y<t;Y++){let K=h(Y),at=this.options.lanes===1?$[Y-1]:this.getFurthestMeasurement($,Y),J=at?at.end+this.options.gap:s+n,rt=x.get(K),ht=typeof rt=="number"?rt:this.options.estimateSize(Y),Tt=J+ht,yt=at?at.lane:Y%this.options.lanes;$[Y]={index:Y,start:J,size:ht,end:Tt,key:K,lane:yt}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=vo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,s,n)=>this.range=t.length>0&&s>0?kE({measurements:t,outerSize:s,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=vo(()=>{let t=null,s=null,n=this.calculateRange();return n&&(t=n.startIndex,s=n.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,s]},(t,s,n,h,m)=>h===null||m===null?[]:t({startIndex:h,endIndex:m,overscan:s,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let s=this.options.indexAttribute,n=t.getAttribute(s);return n?parseInt(n,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(t,s)=>{let n=this.indexFromElement(t),h=this.measurementsCache[n];if(!h)return;let m=h.key,x=this.elementsCache.get(m);x!==t&&(x&&this.observer.unobserve(x),this.observer.observe(t),this.elementsCache.set(m,t)),t.isConnected&&this.resizeItem(n,this.options.measureElement(t,s,this))},this.resizeItem=(t,s)=>{var x;let n=this.measurementsCache[t];if(!n)return;let h=(x=this.itemSizeCache.get(n.key))!=null?x: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=t=>{if(!t){this.elementsCache.forEach((s,n)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(n))});return}this._measureElement(t,void 0)},this.getVirtualItems=vo(()=>[this.getIndexes(),this.getMeasurements()],(t,s)=>{let n=[];for(let h=0,m=t.length;h<m;h++){let x=t[h],R=s[x];n.push(R)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let s=this.getMeasurements();if(s.length!==0)return ml(s[zf(0,s.length-1,n=>ml(s[n]).start,t)])},this.getOffsetForAlignment=(t,s)=>{let n=this.getSize(),h=this.getScrollOffset();s==="auto"&&t>=h+n&&(s="end"),s==="end"&&(t-=n);let m=this.options.horizontal?"scrollWidth":"scrollHeight",R=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[m]:this.scrollElement[m]:0)-n;return Math.max(Math.min(R,t),0)},this.getOffsetForIndex=(t,s="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let n=this.measurementsCache[t];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 x=n.start-this.options.scrollPaddingStart+(n.size-h)/2;switch(s){case"center":return[this.getOffsetForAlignment(x,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=(t,{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(t,s),{adjustments:void 0,behavior:n})},this.scrollToIndex=(t,{align:s="auto",behavior:n}={})=>{t=Math.max(0,Math.min(t,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(t,s);if(!h)return;let[m,x]=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(t))){let[$]=ml(this.getOffsetForIndex(t,x));Mf($,this.getScrollOffset())||this.scrollToIndex(t,{align:x,behavior:n})}else this.scrollToIndex(t,{align:x,behavior:n})}))},this.scrollBy=(t,{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()+t,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var h;var t;let s=this.getMeasurements(),n;return s.length===0?n=this.options.paddingStart:n=this.options.lanes===1?(h=(t=s[s.length-1])==null?void 0:t.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=(t,{adjustments:s,behavior:n})=>{this.options.scrollToFn(t,{behavior:n,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}},zf=(l,i,t,s)=>{for(;l<=i;){let n=(l+i)/2|0,h=t(n);if(h<s)l=n+1;else if(h>s)i=n-1;else return n}return l>0?l-1:0};function kE({measurements:l,outerSize:i,scrollOffset:t}){let s=l.length-1,h=zf(0,s,x=>l[x].start,t),m=h;for(;m<s&&l[m].end<t+i;)m++;return{startIndex:h,endIndex:m}}var Cd=class{constructor(i,t){this.cleanup=()=>{},(this.host=i).addController(this);let s={...t,onChange:(n,h)=>{var m;this.host.updateComplete.then(()=>this.host.requestUpdate()),(m=t.onChange)==null||m.call(t,n,h)}};this.virtualizer=new ul(s)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},fl=class extends Cd{constructor(i,t){super(i,{observeElementRect:Df,observeElementOffset:Ff,scrollToFn:$f,...t})}};var CE=[H`
|
5378
|
+
color: hsl(${Math.max(0,Math.min(120-120*Tt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return($=t==null?void 0:t.onChange)==null||$.call(t,n),n}}function gl(l,i){if(l===void 0)throw new Error(`Unexpected undefined${i?`: ${i}`:""}`);return l}var Bf=(l,i)=>Math.abs(l-i)<1,Uf=(l,i,t)=>{let s;return function(...n){l.clearTimeout(s),s=l.setTimeout(()=>i.apply(this,n),t)}};var ME=l=>l,OE=l=>{let i=Math.max(l.startIndex-l.overscan,0),t=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let n=i;n<=t;n++)s.push(n);return s},Hf=(l,i)=>{let t=l.scrollElement;if(!t)return;let s=l.targetWindow;if(!s)return;let n=u=>{let{width:x,height:R}=u;i({width:Math.round(x),height:Math.round(R)})};if(n(t.getBoundingClientRect()),!s.ResizeObserver)return()=>{};let h=new s.ResizeObserver(u=>{let x=u[0];if(x!=null&&x.borderBoxSize){let R=x.borderBoxSize[0];if(R){n({width:R.inlineSize,height:R.blockSize});return}}n(t.getBoundingClientRect())});return h.observe(t,{box:"border-box"}),()=>{h.unobserve(t)}},Gf={passive:!0};var PE=typeof window>"u"?!0:"onscrollend"in window,Yf=(l,i)=>{let t=l.scrollElement;if(!t)return;let s=l.targetWindow;if(!s)return;let n=0,h=l.options.useScrollendEvent&&PE?()=>{}:Uf(s,()=>{i(n,!1)},l.options.isScrollingResetDelay),u=$=>()=>{let{horizontal:j,isRtl:K}=l.options;n=j?t.scrollLeft*(K&&-1||1):t.scrollTop,h(),i(n,$)},x=u(!0),R=u(!1);return R(),t.addEventListener("scroll",x,Gf),t.addEventListener("scrollend",R,Gf),()=>{t.removeEventListener("scroll",x),t.removeEventListener("scrollend",R)}};var DE=(l,i,t)=>{if(i!=null&&i.borderBoxSize){let s=i.borderBoxSize[0];if(s)return Math.round(s[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[t.options.horizontal?"width":"height"])};var jf=(l,{adjustments:i=0,behavior:t},s)=>{var n,h;let u=l+i;(h=(n=s.scrollElement)==null?void 0:n.scrollTo)==null||h.call(n,{[s.options.horizontal?"left":"top"]:u,behavior:t})},bl=class{constructor(i){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 t=null,s=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(n=>{n.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var n;(n=s())==null||n.disconnect(),t=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=t=>{Object.entries(t).forEach(([s,n])=>{typeof n>"u"&&delete t[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:ME,rangeExtractor:OE,onChange:()=>{},measureElement:DE,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...t}},this.notify=t=>{var s,n;(n=(s=this.options).onChange)==null||n.call(s,this,t)},this.maybeNotify=bo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;var t;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=(t=this.scrollElement)==null?void 0:t.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,u)=>{this.scrollAdjustments=0,this.scrollDirection=u?this.getScrollOffset()<h?"forward":"backward":null,this.scrollOffset=h,this.isScrolling=u,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,s)=>{let n=new Map,h=new Map;for(let u=s-1;u>=0;u--){let x=t[u];if(n.has(x.lane))continue;let R=h.get(x.lane);if(R==null||x.end>R.end?h.set(x.lane,x):x.end<R.end&&n.set(x.lane,!0),n.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((u,x)=>u.end===x.end?u.index-x.index:u.end-x.end)[0]:void 0},this.getMeasurementOptions=bo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,s,n,h,u)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:u}),{key:!1}),this.getMeasurements=bo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:u},x)=>{if(!u)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(j=>{this.itemSizeCache.set(j.key,j.size)}));let R=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,R);for(let j=R;j<t;j++){let K=h(j),at=this.options.lanes===1?$[j-1]:this.getFurthestMeasurement($,j),J=at?at.end+this.options.gap:s+n,rt=x.get(K),ht=typeof rt=="number"?rt:this.options.estimateSize(j),Tt=J+ht,yt=at?at.lane:j%this.options.lanes;$[j]={index:j,start:J,size:ht,end:Tt,key:K,lane:yt}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=bo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,s,n)=>this.range=t.length>0&&s>0?FE({measurements:t,outerSize:s,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=bo(()=>{let t=null,s=null,n=this.calculateRange();return n&&(t=n.startIndex,s=n.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,s]},(t,s,n,h,u)=>h===null||u===null?[]:t({startIndex:h,endIndex:u,overscan:s,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let s=this.options.indexAttribute,n=t.getAttribute(s);return n?parseInt(n,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(t,s)=>{let n=this.indexFromElement(t),h=this.measurementsCache[n];if(!h)return;let u=h.key,x=this.elementsCache.get(u);x!==t&&(x&&this.observer.unobserve(x),this.observer.observe(t),this.elementsCache.set(u,t)),t.isConnected&&this.resizeItem(n,this.options.measureElement(t,s,this))},this.resizeItem=(t,s)=>{var x;let n=this.measurementsCache[t];if(!n)return;let h=(x=this.itemSizeCache.get(n.key))!=null?x:n.size,u=s-h;u!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,u,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,s)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((s,n)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(n))});return}this._measureElement(t,void 0)},this.getVirtualItems=bo(()=>[this.getIndexes(),this.getMeasurements()],(t,s)=>{let n=[];for(let h=0,u=t.length;h<u;h++){let x=t[h],R=s[x];n.push(R)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let s=this.getMeasurements();if(s.length!==0)return gl(s[Wf(0,s.length-1,n=>gl(s[n]).start,t)])},this.getOffsetForAlignment=(t,s)=>{let n=this.getSize(),h=this.getScrollOffset();s==="auto"&&t>=h+n&&(s="end"),s==="end"&&(t-=n);let u=this.options.horizontal?"scrollWidth":"scrollHeight",R=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[u]:this.scrollElement[u]:0)-n;return Math.max(Math.min(R,t),0)},this.getOffsetForIndex=(t,s="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let n=this.measurementsCache[t];if(!n)return;let h=this.getSize(),u=this.getScrollOffset();if(s==="auto")if(n.end>=u+h-this.options.scrollPaddingEnd)s="end";else if(n.start<=u+this.options.scrollPaddingStart)s="start";else return[u,s];let x=n.start-this.options.scrollPaddingStart+(n.size-h)/2;switch(s){case"center":return[this.getOffsetForAlignment(x,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=(t,{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(t,s),{adjustments:void 0,behavior:n})},this.scrollToIndex=(t,{align:s="auto",behavior:n}={})=>{t=Math.max(0,Math.min(t,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(t,s);if(!h)return;let[u,x]=h;this._scrollToOffset(u,{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(t))){let[$]=gl(this.getOffsetForIndex(t,x));Bf($,this.getScrollOffset())||this.scrollToIndex(t,{align:x,behavior:n})}else this.scrollToIndex(t,{align:x,behavior:n})}))},this.scrollBy=(t,{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()+t,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var h;var t;let s=this.getMeasurements(),n;return s.length===0?n=this.options.paddingStart:n=this.options.lanes===1?(h=(t=s[s.length-1])==null?void 0:t.end)!=null?h:0:Math.max(...s.slice(-this.options.lanes).map(u=>u.end)),Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:s,behavior:n})=>{this.options.scrollToFn(t,{behavior:n,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}},Wf=(l,i,t,s)=>{for(;l<=i;){let n=(l+i)/2|0,h=t(n);if(h<s)l=n+1;else if(h>s)i=n-1;else return n}return l>0?l-1:0};function FE({measurements:l,outerSize:i,scrollOffset:t}){let s=l.length-1,h=Wf(0,s,x=>l[x].start,t),u=h;for(;u<s&&l[u].end<t+i;)u++;return{startIndex:h,endIndex:u}}var Md=class{constructor(i,t){this.cleanup=()=>{},(this.host=i).addController(this);let s={...t,onChange:(n,h)=>{var u;this.host.updateComplete.then(()=>this.host.requestUpdate()),(u=t.onChange)==null||u.call(t,n,h)}};this.virtualizer=new bl(s)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},yl=class extends Md{constructor(i,t){super(i,{observeElementRect:Hf,observeElementOffset:Yf,scrollToFn:jf,...t})}};var $E=[H`
|
5240
5379
|
:host::part(scroll) {
|
5241
5380
|
height: 100%;
|
5242
5381
|
width: 100%;
|
@@ -5246,11 +5385,11 @@
|
|
5246
5385
|
position: relative;
|
5247
5386
|
width: 100%;
|
5248
5387
|
}
|
5249
|
-
`],
|
5388
|
+
`],qf=$E;var Kf=Y.constructTagName("virtualizedlist"),zj=Y.constructTagName("virtualizedwrapper"),Xf={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var yo=class extends q{constructor(){super();this.virtualizerProps=Xf.VIRTUALIZER_PROPS;this.scrollElementRef=bn();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(t){super.update(t),t.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(t){super.firstUpdated(t),this.setVirtualizerOptions()}setVirtualizerOptions(){var t;(t=this.virtualizer)==null||t.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var t;this.virtualizerController=new yl(this,{count:this.virtualizerProps.count,estimateSize:(t=this.virtualizerProps)==null?void 0:t.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(t){var x,R;this.virtualizer=t.getVirtualizer();let{getTotalSize:s,getVirtualItems:n,measureElement:h}=this.virtualizer,u=n();if(u!==this.virtualItems){this.virtualItems=u;let $=n(),j={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(R=(x=$[0])==null?void 0:x.start)!=null?R:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:$,measureElement:h,listStyle:j})}return w`<div part="container" style="height: ${s()}px;">
|
5250
5389
|
<slot></slot>
|
5251
|
-
</div>`}render(){return
|
5252
|
-
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):
|
5253
|
-
</div> `}};
|
5390
|
+
</div>`}render(){return w`<div ${yn(this.scrollElementRef)} part="scroll" @scroll=${this.onscroll&&this.onscroll}>
|
5391
|
+
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):w``}
|
5392
|
+
</div> `}};yo.styles=[...q.styles,...qf],m([g({type:Function,attribute:"onscroll"})],yo.prototype,"onscroll",2),m([g({type:Object,attribute:"virtualizerprops"})],yo.prototype,"virtualizerProps",2),m([g({type:Function,attribute:"setlistdata"})],yo.prototype,"setlistdata",2);var Od=yo;Od.register(Kf);var zE=Od;var Pd=class extends q{constructor(){super(...arguments);this.role=et.LISTBOX}createRenderRoot(){return this}},Dd=Pd;var Zf=Y.constructTagName("selectlistbox");Dd.register(Zf);var VE=Dd;var BE={COMPLETE:"complete",INCOMPLETE:"incomplete"},Fd={VERTICAL:"vertical",HORIZONTAL:"horizontal"},$d={STATUS:BE.INCOMPLETE,ORIENTATION:Fd.HORIZONTAL},Jf=Y.constructTagName("stepperconnector");var Qf=Y.constructTagName("stepperitem"),zd={INLINE:"inline",STACKED:"stacked"},ei={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},El={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},Vd={VARIANT:zd.INLINE,STATUS:ei.NOT_STARTED};var Tl=Y.constructTagName("stepper"),Ca={ORIENTATION:Fd.HORIZONTAL,VARIANT:zd.INLINE};var xl=class{constructor(i,t){this.orientation=i,this.variant=t}};xl.context=Tl;var Al=xl;var UE=H`
|
5254
5393
|
:host {
|
5255
5394
|
gap: 0.5rem;
|
5256
5395
|
}
|
@@ -5287,7 +5426,7 @@
|
|
5287
5426
|
padding-top: 0.9375rem;
|
5288
5427
|
margin: 0 -3rem;
|
5289
5428
|
}
|
5290
|
-
`,
|
5429
|
+
`,tv=[Et,UE];var ms=class extends Er{constructor(){super({context:Al.context,initialValue:new Al(Ca.ORIENTATION,Ca.VARIANT)});this.orientation=Ca.ORIENTATION;this.variant=Ca.VARIANT}connectedCallback(){super.connectedCallback(),this.role=et.LIST}static get Context(){return Al.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return w` <slot></slot> `}};ms.styles=[...q.styles,...tv],m([g({type:String,reflect:!0})],ms.prototype,"orientation",2),m([g({type:String,reflect:!0})],ms.prototype,"variant",2);var Eo=ms;var GE=H`
|
5291
5430
|
:host {
|
5292
5431
|
gap: 0.5rem;
|
5293
5432
|
border-radius: 0.25rem;
|
@@ -5444,23 +5583,23 @@
|
|
5444
5583
|
:host([status='error-incomplete']:active) {
|
5445
5584
|
--mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
|
5446
5585
|
}
|
5447
|
-
`,
|
5586
|
+
`,ev=[Et,GE,..._t()];var ri=class extends He(q){constructor(){super();this.variant=Vd.VARIANT;this.status=Vd.STATUS;this.label="";this.stepperContext=Tr.consume({host:this,context:Eo.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var n;super.updated(t);let s=(n=this.stepperContext)==null?void 0:n.value;!s||!s.variant||(this.variant=s.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleKeyDown(t){[Q.ENTER,Q.SPACE].includes(t.key)&&(this.classList.add("pressed"),t.key===Q.ENTER&&this.triggerClickEvent(),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){[Q.ENTER,Q.SPACE].includes(t.key)&&(this.classList.remove("pressed"),t.key===Q.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===ei.COMPLETED?w`<mdc-icon part="status-icon" name=${El.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===ei.ERROR_CURRENT||this.status===ei.CURRENT?w`<mdc-icon part="status-icon" name=${El.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===ei.NOT_STARTED||this.status===ei.ERROR_INCOMPLETE)?w`<mdc-text part="step-number" tagname=${vt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
|
5448
5587
|
>${this.stepNumber}</mdc-text
|
5449
|
-
>`:W}renderHelpText(){if(!this.helpText)return W;let t=
|
5588
|
+
>`:W}renderHelpText(){if(!this.helpText)return W;let t=w`<mdc-text
|
5450
5589
|
part="help-text"
|
5451
5590
|
tagname=${vt.SPAN}
|
5452
5591
|
type=${ot.BODY_MIDSIZE_REGULAR}
|
5453
5592
|
>${this.helpText}</mdc-text
|
5454
|
-
>`;return this.status===
|
5455
|
-
<mdc-icon part="help-icon" name=${
|
5593
|
+
>`;return this.status===ei.ERROR_INCOMPLETE||this.status===ei.ERROR_CURRENT?w`<div part="help-text-container">
|
5594
|
+
<mdc-icon part="help-icon" name=${El.ERROR} length-unit="rem" size="1"></mdc-icon>
|
5456
5595
|
${t}
|
5457
|
-
</div>`:t}render(){return
|
5596
|
+
</div>`:t}render(){return w` <div part="status-container">${this.renderStatusIcon()}</div>
|
5458
5597
|
<div part="label-container">
|
5459
|
-
${this.label?
|
5598
|
+
${this.label?w`<mdc-text part="label" tagname=${vt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
|
5460
5599
|
>${this.label}</mdc-text
|
5461
5600
|
>`:W}
|
5462
5601
|
${this.renderHelpText()}
|
5463
|
-
</div>`}};
|
5602
|
+
</div>`}};ri.styles=[...q.styles,...ev],m([g({type:String,reflect:!0})],ri.prototype,"variant",2),m([g({type:String,reflect:!0})],ri.prototype,"status",2),m([g({type:String,reflect:!0})],ri.prototype,"label",2),m([g({type:String,reflect:!0,attribute:"help-text"})],ri.prototype,"helpText",2),m([g({type:Number,reflect:!0,attribute:"step-number"})],ri.prototype,"stepNumber",2);var Bd=ri;Bd.register(Qf);var HE=Bd;var YE=H`
|
5464
5603
|
:host {
|
5465
5604
|
--mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
|
5466
5605
|
--mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
|
@@ -5495,7 +5634,7 @@
|
|
5495
5634
|
border-left: 1px solid var(--mdc-stepperconnector-complete-background);
|
5496
5635
|
}
|
5497
5636
|
}
|
5498
|
-
`,
|
5637
|
+
`,rv=[YE];var us=class extends q{constructor(){super(...arguments);this.status=$d.STATUS;this.orientation=$d.ORIENTATION;this.stepperContext=Tr.consume({host:this,context:Eo.Context})}updated(t){var n;super.updated(t),t.has("orientation")&&(this.ariaOrientation=this.orientation);let s=(n=this.stepperContext)==null?void 0:n.value;!s||!s.orientation||(this.orientation=s.orientation)}render(){return w` <div part="connector"></div> `}};us.styles=[...q.styles,...rv],m([g({type:String,reflect:!0})],us.prototype,"status",2),m([g({type:String,reflect:!0})],us.prototype,"orientation",2);var Ud=us;Ud.register(Jf);var jE=Ud;Eo.register(Tl);var WE=Eo;})();
|
5499
5638
|
/*! Bundled license information:
|
5500
5639
|
|
5501
5640
|
lottie-web/build/player/lottie_light.js:
|