@momentum-design/components 0.134.13 → 0.134.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- "use strict";(()=>{var ET=Object.create;var Wc=Object.defineProperty;var $u=Object.getOwnPropertyDescriptor;var TT=Object.getOwnPropertyNames;var xT=Object.getPrototypeOf,AT=Object.prototype.hasOwnProperty;var ST=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var IT=(a,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of TT(o))!AT.call(a,i)&&i!==t&&Wc(a,i,{get:()=>o[i],enumerable:!(e=$u(o,i))||e.enumerable});return a};var CT=(a,o,t)=>(t=a!=null?ET(xT(a)):{},IT(o||!a||!a.__esModule?Wc(t,"default",{value:a,enumerable:!0}):t,a));var h=(a,o,t,e)=>{for(var i=e>1?void 0:e?$u(o,t):o,l=a.length-1,c;l>=0;l--)(c=a[l])&&(i=(e?c(o,t,i):c(i))||i);return e&&i&&Wc(o,t,i),i};var Wf=ST((an,Yl)=>{typeof navigator<"u"&&function(a,o){typeof an=="object"&&typeof Yl<"u"?Yl.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(an,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},l=function(){return t},c=function(s){o=s},f=function(){return o};function g(r){return document.createElement(r)}function A(r,s){var n,d=r.length,m;for(n=0;n<d;n+=1){m=r[n].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function F(r,s){return Object.getOwnPropertyDescriptor(r,s)}function H(r){function s(){}return s.prototype=r,s}var Q=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].pause()},resume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].resume()},setRate:function(n){var d,m=this.audios.length;for(d=0;d<m;d+=1)this.audios[d].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),X=function(){function r(n,d){var m=0,p=[],b;switch(n){case"int16":case"uint8c":b=1;break;default:b=1.1;break}for(m=0;m<d;m+=1)p.push(b);return p}function s(n,d){return n==="float32"?new Float32Array(d):n==="int16"?new Int16Array(d):n==="uint8c"?new Uint8ClampedArray(d):r(n,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function J(r){return Array.apply(null,{length:r})}function at(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?at=function(n){return typeof n}:at=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},at(r)}var nt=!0,ht=null,yt=null,Ct="",Ot=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Vt=!1,Gt=Math.pow,Dt=Math.sqrt,ae=Math.floor,Ge=Math.max,jt=Math.min,Ee={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,n=r.length;for(s=0;s<n;s+=1)Ee[r[s]]=Math[r[s]]})();function Te(){return{}}Ee.random=Math.random,Ee.abs=function(r){var s=at(r);if(s==="object"&&r.length){var n=J(r.length),d,m=r.length;for(d=0;d<m;d+=1)n[d]=Math.abs(r[d]);return n}return Math.abs(r)};var xe=150,wt=Math.PI/180,oe=.5519;function Ke(r){Vt=!!r}function Qe(r){return Vt?Math.round(r):r}function Je(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function xr(r,s,n,d){this.type=r,this.currentTime=s,this.totalTime=n,this.direction=d<0?-1:1}function Zn(r,s){this.type=r,this.direction=s<0?-1:1}function Km(r,s,n,d){this.type=r,this.currentLoop=n,this.totalLoops=s,this.direction=d<0?-1:1}function Wm(r,s,n){this.type=r,this.firstFrame=s,this.totalFrames=n}function Ym(r,s){this.type=r,this.target=s}function EE(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function TE(r){this.type="configError",this.nativeError=r}function wI(r,s){this.type=r,this.nativeError=s}var tr=function(){var r=0;return function(){return r+=1,Ct+"__lottie_element_"+r}}();function Oc(r,s,n){var d,m,p,b,I,y,k,M;switch(b=Math.floor(r*6),I=r*6-b,y=n*(1-s),k=n*(1-I*s),M=n*(1-(1-I)*s),b%6){case 0:d=n,m=M,p=y;break;case 1:d=k,m=n,p=y;break;case 2:d=y,m=n,p=M;break;case 3:d=y,m=k,p=n;break;case 4:d=M,m=y,p=n;break;case 5:d=n,m=y,p=k;break;default:break}return[d,m,p]}function Rc(r,s,n){var d=Math.max(r,s,n),m=Math.min(r,s,n),p=d-m,b,I=d===0?0:p/d,y=d/255;switch(d){case m:b=0;break;case r:b=s-n+p*(s<n?6:0),b/=6*p;break;case s:b=n-r+p*2,b/=6*p;break;case n:b=r-s+p*4,b/=6*p;break;default:break}return[b,I,y]}function jm(r,s){var n=Rc(r[0]*255,r[1]*255,r[2]*255);return n[1]+=s,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),Oc(n[0],n[1],n[2])}function qm(r,s){var n=Rc(r[0]*255,r[1]*255,r[2]*255);return n[2]+=s,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),Oc(n[0],n[1],n[2])}function Xm(r,s){var n=Rc(r[0]*255,r[1]*255,r[2]*255);return n[0]+=s/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),Oc(n[0],n[1],n[2])}var kI=function(){var r=[],s,n;for(s=0;s<256;s+=1)n=s.toString(16),r[s]=n.length===1?"0"+n:n;return function(d,m,p){return d<0&&(d=0),m<0&&(m=0),p<0&&(p=0),"#"+r[d]+r[m]+r[p]}}(),xE=function(s){nt=!!s},AE=function(){return nt},SE=function(s){ht=s},Qn=function(){return ht},NI=function(s){yt=s},Zm=function(){return yt},Jn=function(s){xe=s},Aa=function(){return xe},IE=function(s){Ct=s},LI=function(){return Ct};function St(r){return document.createElementNS(a,r)}function tl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tl=function(n){return typeof n}:tl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tl(r)}var Sa=function(){var r=1,s=[],n,d,m={onmessage:function(){},postMessage:function(O){n({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function b(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),P=URL.createObjectURL(O);return new Worker(P)}return n=x,m}function I(){d||(d=b(function(O){function P(){function U(rt,_){var D,v,E=rt.length,j,V,ct,gt;for(v=0;v<E;v+=1)if(D=rt[v],"ks"in D&&!D.completed){if(D.completed=!0,D.hasMask){var At=D.masksProperties;for(V=At.length,j=0;j<V;j+=1)if(At[j].pt.k.i)N(At[j].pt.k);else for(gt=At[j].pt.k.length,ct=0;ct<gt;ct+=1)At[j].pt.k[ct].s&&N(At[j].pt.k[ct].s[0]),At[j].pt.k[ct].e&&N(At[j].pt.k[ct].e[0])}D.ty===0?(D.layers=T(D.refId,_),U(D.layers,_)):D.ty===4?C(D.shapes):D.ty===5&&It(D)}}function L(rt,_){if(rt){var D=0,v=rt.length;for(D=0;D<v;D+=1)rt[D].t===1&&(rt[D].data.layers=T(rt[D].data.refId,_),U(rt[D].data.layers,_))}}function w(rt,_){for(var D=0,v=_.length;D<v;){if(_[D].id===rt)return _[D];D+=1}return null}function T(rt,_){var D=w(rt,_);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function C(rt){var _,D=rt.length,v,E;for(_=D-1;_>=0;_-=1)if(rt[_].ty==="sh")if(rt[_].ks.k.i)N(rt[_].ks.k);else for(E=rt[_].ks.k.length,v=0;v<E;v+=1)rt[_].ks.k[v].s&&N(rt[_].ks.k[v].s[0]),rt[_].ks.k[v].e&&N(rt[_].ks.k[v].e[0]);else rt[_].ty==="gr"&&C(rt[_].it)}function N(rt){var _,D=rt.i.length;for(_=0;_<D;_+=1)rt.i[_][0]+=rt.v[_][0],rt.i[_][1]+=rt.v[_][1],rt.o[_][0]+=rt.v[_][0],rt.o[_][1]+=rt.v[_][1]}function $(rt,_){var D=_?_.split("."):[100,100,100];return rt[0]>D[0]?!0:D[0]>rt[0]?!1:rt[1]>D[1]?!0:D[1]>rt[1]?!1:rt[2]>D[2]?!0:D[2]>rt[2]?!1:null}var G=function(){var rt=[4,4,14];function _(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),q=function(){var rt=[4,7,99];return function(_){if(_.chars&&!$(rt,_.v)){var D,v=_.chars.length;for(D=0;D<v;D+=1){var E=_.chars[D];E.data&&E.data.shapes&&(C(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[D].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function _(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),xt=function(){var rt=[4,1,9];function _(v){var E,j=v.length,V,ct;for(E=0;E<j;E+=1)if(v[E].ty==="gr")_(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(ct=v[E].c.k.length,V=0;V<ct;V+=1)v[E].c.k[V].s&&(v[E].c.k[V].s[0]/=255,v[E].c.k[V].s[1]/=255,v[E].c.k[V].s[2]/=255,v[E].c.k[V].s[3]/=255),v[E].c.k[V].e&&(v[E].c.k[V].e[0]/=255,v[E].c.k[V].e[1]/=255,v[E].c.k[V].e[2]/=255,v[E].c.k[V].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===4&&_(v[E].shapes)}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),ft=function(){var rt=[4,4,18];function _(v){var E,j=v.length,V,ct;for(E=j-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(ct=v[E].ks.k.length,V=0;V<ct;V+=1)v[E].ks.k[V].s&&(v[E].ks.k[V].s[0].c=v[E].closed),v[E].ks.k[V].e&&(v[E].ks.k[V].e[0].c=v[E].closed);else v[E].ty==="gr"&&_(v[E].it)}function D(v){var E,j,V=v.length,ct,gt,At,Ft;for(j=0;j<V;j+=1){if(E=v[j],E.hasMask){var $t=E.masksProperties;for(gt=$t.length,ct=0;ct<gt;ct+=1)if($t[ct].pt.k.i)$t[ct].pt.k.c=$t[ct].cl;else for(Ft=$t[ct].pt.k.length,At=0;At<Ft;At+=1)$t[ct].pt.k[At].s&&($t[ct].pt.k[At].s[0].c=$t[ct].cl),$t[ct].pt.k[At].e&&($t[ct].pt.k[At].e[0].c=$t[ct].cl)}E.ty===4&&_(E.shapes)}}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}();function ot(rt){rt.__complete||(xt(rt),G(rt),q(rt),it(rt),ft(rt),U(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function It(rt){rt.t.a.length===0&&"m"in rt.t.p}var pt={};return pt.completeData=ot,pt.checkColors=xt,pt.checkChars=q,pt.checkPathProperties=it,pt.checkShapes=ft,pt.completeLayers=U,pt}if(p.dataManager||(p.dataManager=P()),p.assetLoader||(p.assetLoader=function(){function U(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&tl(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function L(w,T,C,N){var $,G=new XMLHttpRequest;try{G.responseType="json"}catch{}G.onreadystatechange=function(){if(G.readyState===4)if(G.status===200)$=U(G),C($);else try{$=U(G),C($)}catch(q){N&&N(q)}};try{G.open(["G","E","T"].join(""),w,!0)}catch{G.open(["G","E","T"].join(""),T+"/"+w,!0)}G.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.dataManager.completeData(U),p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;p.dataManager.completeData(R),p.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,P=O.id,R=s[P];s[P]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function y(x,O){r+=1;var P="processId_"+r;return s[P]={onComplete:x,onError:O},P}function k(x,O,P){I();var R=y(O,P);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function M(x,O,P){I();var R=y(O,P);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function K(x,O,P){I();var R=y(O,P);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:k,loadData:M,completeAnimation:K}}(),CE=function(){var r=function(){var L=g("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(L,w,T){var C="";if(L.e)C=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),C=w+N}else C=T,C+=L.u?L.u:"",C+=L.p;return C}function m(L){var w=0,T=setInterval((function(){var C=L.getBBox();(C.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function p(L){var w=d(L,this.assetsPath,this.path),T=St("image");Ot?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function b(L){var w=d(L,this.assetsPath,this.path),T=g("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.src=w;var C={img:T,assetData:L};return C}function I(L){var w={assetData:L},T=d(L,this.assetsPath,this.path);return Sa.loadData(T,(function(C){w.img=C,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function y(L,w){this.imagesLoadedCb=w;var T,C=L.length;for(T=0;T<C;T+=1)L[T].layers||(!L[T].t||L[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[T]))):L[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[T]))))}function k(L){this.path=L||""}function M(L){this.assetsPath=L||""}function K(L){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===L)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function R(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function U(){this._imageLoaded=s.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return U.prototype={loadAssets:y,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:P,destroy:x,getAsset:K,createImgData:b,createImageData:p,imageLoaded:s,footageLoaded:n,setCacheType:R},U}();function Qm(){}Qm.prototype={triggerEvent:function(s,n){if(this._cbs[s])for(var d=this._cbs[s],m=0;m<d.length;m+=1)d[m](n)},addEventListener:function(s,n){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(n),(function(){this.removeEventListener(s,n)}).bind(this)},removeEventListener:function(s,n){if(!n)this._cbs[s]=null;else if(this._cbs[s]){for(var d=0,m=this._cbs[s].length;d<m;)this._cbs[s][d]===n&&(this._cbs[s].splice(d,1),d-=1,m-=1),d+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var _E=function(){function r(s){for(var n=s.split(`\r
2
- `),d={},m,p=0,b=0;b<n.length;b+=1)m=n[b].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(s){for(var n=[],d=0;d<s.length;d+=1){var m=s[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[d].cm)}catch{try{p.payload=r(s[d].cm)}catch{p.payload={name:s[d].cm}}}n.push(p)}return n}}(),wE=function(){function r(s){this.compositions.push(s)}return function(){function s(n){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),Ia={},kE=function(s,n){Ia[s]=n};function NE(r){return Ia[r]}function LE(){if(Ia.canvas)return"canvas";for(var r in Ia)if(Ia[r])return r;return""}function Ca(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ca=function(n){return typeof n}:Ca=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ca(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=tr(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=AE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=wE(),this.imagePreloader=new CE,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new xr("drawnFrame",0,0,0),this.expressionsPlugin=Qn()};A([Qm],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var n=NE(s);this.renderer=new n(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Sa.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Sa.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Ca(s)!=="object"&&(s=JSON.parse(s));var n={wrapper:r,animationData:s},d=r.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:LE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?n.loop=!1:m==="true"?n.loop=!0:m!==""&&(n.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=p!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var b=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";b==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,n,d=s.length,m=r.layers,p,b=m.length;for(p=0;p<b;p+=1)for(n=0;n<d;){if(s[n].id===m[p].id){s[n]=m[p];break}n+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(d=r.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(r.assets[n]);this.animationData.__complete=!1,Sa.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=Qn();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Sa.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=_E(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=Qn();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var n=typeof r=="number"?r:void 0,d=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(n,d)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,n=0;n<this.markers.length;n+=1)if(s=this.markers[n],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(d,s,n);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,n=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(n=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,s=0)):this.setCurrentRawFrameValue(s),n&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?n=r:this.currentRawFrame+this.firstFrame>s&&(n=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Ca(r[0])==="object"){var n,d=r.length;for(n=0;n<d;n+=1)this.segments.push(r[n])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var n=r.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),s=this.assetsPath+n}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,n=this.assets.length;s<n;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,n){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(s,n)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new xr(r,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new Km(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new Zn(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Wm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new Ym(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new xr(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Km(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new Zn(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Wm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Ym(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new EE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new TE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var me=function(){var r={},s=[],n=0,d=0,m=0,p=!0,b=!1;function I(_){for(var D=0,v=_.target;D<d;)s[D].animation===v&&(s.splice(D,1),D-=1,d-=1,v.isPaused||K()),D+=1}function y(_,D){if(!_)return null;for(var v=0;v<d;){if(s[v].elem===_&&s[v].elem!==null)return s[v].animation;v+=1}var E=new vt;return x(E,_),E.setData(_,D),E}function k(){var _,D=s.length,v=[];for(_=0;_<D;_+=1)v.push(s[_].animation);return v}function M(){m+=1,xt()}function K(){m-=1}function x(_,D){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",K),s.push({elem:D,animation:_}),d+=1}function O(_){var D=new vt;return x(D,null),D.setParams(_),D}function P(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setSpeed(_,D)}function R(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setDirection(_,D)}function U(_){var D;for(D=0;D<d;D+=1)s[D].animation.play(_)}function L(_){var D=_-n,v;for(v=0;v<d;v+=1)s[v].animation.advanceTime(D);n=_,m&&!b?window.requestAnimationFrame(L):p=!0}function w(_){n=_,window.requestAnimationFrame(L)}function T(_){var D;for(D=0;D<d;D+=1)s[D].animation.pause(_)}function C(_,D,v){var E;for(E=0;E<d;E+=1)s[E].animation.goToAndStop(_,D,v)}function N(_){var D;for(D=0;D<d;D+=1)s[D].animation.stop(_)}function $(_){var D;for(D=0;D<d;D+=1)s[D].animation.togglePause(_)}function G(_){var D;for(D=d-1;D>=0;D-=1)s[D].animation.destroy(_)}function q(_,D,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),j,V=E.length;for(j=0;j<V;j+=1)v&&E[j].setAttribute("data-bm-type",v),y(E[j],_);if(D&&V===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=g("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),y(gt,_)}}function it(){var _;for(_=0;_<d;_+=1)s[_].animation.resize()}function xt(){!b&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ft(){b=!0}function ot(){b=!1,xt()}function It(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setVolume(_,D)}function pt(_){var D;for(D=0;D<d;D+=1)s[D].animation.mute(_)}function rt(_){var D;for(D=0;D<d;D+=1)s[D].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=P,r.setDirection=R,r.play=U,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=q,r.resize=it,r.goToAndStop=C,r.destroy=G,r.freeze=ft,r.unfreeze=ot,r.setVolume=It,r.mute=pt,r.unmute=rt,r.getRegisteredAnimations=k,r}(),_a=function(){var r={};r.getBezierEasing=n;var s={};function n(w,T,C,N,$){var G=$||("bez_"+w+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[G])return s[G];var q=new L([w,T,C,N]);return s[G]=q,q}var d=4,m=.001,p=1e-7,b=10,I=11,y=1/(I-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function K(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,C){return((M(T,C)*w+K(T,C))*w+x(T))*w}function P(w,T,C){return 3*M(T,C)*w*w+2*K(T,C)*w+x(T)}function R(w,T,C,N,$){var G,q,it=0;do q=T+(C-T)/2,G=O(q,N,$)-w,G>0?C=q:T=q;while(Math.abs(G)>p&&++it<b);return q}function U(w,T,C,N){for(var $=0;$<d;++$){var G=P(T,C,N);if(G===0)return T;var q=O(T,C,N)-w;T-=q/G}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var C=this._p[0],N=this._p[1],$=this._p[2],G=this._p[3];return this._precomputed||this._precompute(),C===N&&$===G?T:T===0?0:T===1?1:O(this._getTForX(T),N,G)},_precompute:function(){var T=this._p[0],C=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==C||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],C=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*y,T,C)},_getTForX:function(T){for(var C=this._p[0],N=this._p[2],$=this._mSampleValues,G=0,q=1,it=I-1;q!==it&&$[q]<=T;++q)G+=y;--q;var xt=(T-$[q])/($[q+1]-$[q]),ft=G+xt*y,ot=P(ft,C,N);return ot>=m?U(T,ft,C,N):ot===0?ft:R(T,G,G+y,C,N)}},r}(),Jm=function(){function r(s){return s.concat(J(s.length))}return{double:r}}(),el=function(){return function(r,s,n){var d=0,m=r,p=J(m),b={newElement:I,release:y};function I(){var k;return d?(d-=1,k=p[d]):k=s(),k}function y(k){d===m&&(p=Jm.double(p),m*=2),n&&n(k),p[d]=k,d+=1}return b}}(),tu=function(){function r(){return{addedLength:0,percents:X("float32",Aa()),lengths:X("float32",Aa())}}return el(8,r)}(),eu=function(){function r(){return{lengths:[],totalLength:0}}function s(n){var d,m=n.lengths.length;for(d=0;d<m;d+=1)tu.release(n.lengths[d]);n.lengths.length=0}return el(8,r,s)}();function ME(){var r=Math;function s(x,O,P,R,U,L){var w=x*R+O*U+P*L-U*R-L*x-P*O;return w>-.001&&w<.001}function n(x,O,P,R,U,L,w,T,C){if(P===0&&L===0&&C===0)return s(x,O,R,U,w,T);var N=r.sqrt(r.pow(R-x,2)+r.pow(U-O,2)+r.pow(L-P,2)),$=r.sqrt(r.pow(w-x,2)+r.pow(T-O,2)+r.pow(C-P,2)),G=r.sqrt(r.pow(w-R,2)+r.pow(T-U,2)+r.pow(C-L,2)),q;return N>$?N>G?q=N-$-G:q=G-$-N:G>$?q=G-$-N:q=$-N-G,q>-1e-4&&q<1e-4}var d=function(){return function(x,O,P,R){var U=Aa(),L,w,T,C,N,$=0,G,q=[],it=[],xt=tu.newElement();for(T=P.length,L=0;L<U;L+=1){for(N=L/(U-1),G=0,w=0;w<T;w+=1)C=Gt(1-N,3)*x[w]+3*Gt(1-N,2)*N*P[w]+3*(1-N)*Gt(N,2)*R[w]+Gt(N,3)*O[w],q[w]=C,it[w]!==null&&(G+=Gt(q[w]-it[w],2)),it[w]=q[w];G&&(G=Dt(G),$+=G),xt.percents[L]=N,xt.lengths[L]=$}return xt.addedLength=$,xt}}();function m(x){var O=eu.newElement(),P=x.c,R=x.v,U=x.o,L=x.i,w,T=x._length,C=O.lengths,N=0;for(w=0;w<T-1;w+=1)C[w]=d(R[w],R[w+1],U[w],L[w+1]),N+=C[w].addedLength;return P&&T&&(C[w]=d(R[w],R[0],U[w],L[0]),N+=C[w].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function b(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,P,R,U){var L=(O[0]+"_"+O[1]+"_"+P[0]+"_"+P[1]+"_"+R[0]+"_"+R[1]+"_"+U[0]+"_"+U[1]).replace(/\./g,"p");if(!x[L]){var w=Aa(),T,C,N,$,G,q=0,it,xt,ft=null;O.length===2&&(O[0]!==P[0]||O[1]!==P[1])&&s(O[0],O[1],P[0],P[1],O[0]+R[0],O[1]+R[1])&&s(O[0],O[1],P[0],P[1],P[0]+U[0],P[1]+U[1])&&(w=2);var ot=new p(w);for(N=R.length,T=0;T<w;T+=1){for(xt=J(N),G=T/(w-1),it=0,C=0;C<N;C+=1)$=Gt(1-G,3)*O[C]+3*Gt(1-G,2)*G*(O[C]+R[C])+3*(1-G)*Gt(G,2)*(P[C]+U[C])+Gt(G,3)*P[C],xt[C]=$,ft!==null&&(it+=Gt(xt[C]-ft[C],2));it=Dt(it),q+=it,ot.points[T]=new b(it,xt),ft=xt}ot.segmentLength=q,x[L]=ot}return x[L]}}();function y(x,O){var P=O.percents,R=O.lengths,U=P.length,L=ae((U-1)*x),w=x*O.addedLength,T=0;if(L===U-1||L===0||w===R[L])return P[L];for(var C=R[L]>w?-1:1,N=!0;N;)if(R[L]<=w&&R[L+1]>w?(T=(w-R[L])/(R[L+1]-R[L]),N=!1):L+=C,L<0||L>=U-1){if(L===U-1)return P[L];N=!1}return P[L]+(P[L+1]-P[L])*T}function k(x,O,P,R,U,L){var w=y(U,L),T=1-w,C=r.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*P[0]+(w*w*T+T*w*w+w*T*w)*R[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*P[1]+(w*w*T+T*w*w+w*T*w)*R[1]+w*w*w*O[1])*1e3)/1e3;return[C,N]}var M=X("float32",8);function K(x,O,P,R,U,L,w){U<0?U=0:U>1&&(U=1);var T=y(U,w);L=L>1?1:L;var C=y(L,w),N,$=x.length,G=1-T,q=1-C,it=G*G*G,xt=T*G*G*3,ft=T*T*G*3,ot=T*T*T,It=G*G*q,pt=T*G*q+G*T*q+G*G*C,rt=T*T*q+G*T*C+T*G*C,_=T*T*C,D=G*q*q,v=T*q*q+G*C*q+G*q*C,E=T*C*q+G*C*C+T*q*C,j=T*C*C,V=q*q*q,ct=C*q*q+q*C*q+q*q*C,gt=C*C*q+q*C*C+C*q*C,At=C*C*C;for(N=0;N<$;N+=1)M[N*4]=r.round((it*x[N]+xt*P[N]+ft*R[N]+ot*O[N])*1e3)/1e3,M[N*4+1]=r.round((It*x[N]+pt*P[N]+rt*R[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((D*x[N]+v*P[N]+E*R[N]+j*O[N])*1e3)/1e3,M[N*4+3]=r.round((V*x[N]+ct*P[N]+gt*R[N]+At*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:K,getPointInSegment:k,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:n}}var Xr=ME(),Oo=e,ru=Math.abs;function iu(r,s){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=X("float32",this.pv.length));for(var m=s.lastIndex,p=m,b=this.keyframes.length-1,I=!0,y,k,M;I;){if(y=this.keyframes[p],k=this.keyframes[p+1],p===b-1&&r>=k.t-n){y.h&&(y=k),m=0;break}if(k.t-n>r){m=p;break}p<b-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var K,x,O,P,R,U,L=k.t-n,w=y.t-n,T;if(y.to){M.bezierData||(M.bezierData=Xr.buildBezierData(y.s,k.s||y.e,y.to,y.ti));var C=M.bezierData;if(r>=L||r<w){var N=r>=L?C.points.length-1:0;for(x=C.points[N].point.length,K=0;K<x;K+=1)d[K]=C.points[N].point[K]}else{M.__fnct?U=M.__fnct:(U=_a.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=U),O=U((r-w)/(L-w));var $=C.segmentLength*O,G,q=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(R=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,P=C.points.length;I;){if(q+=C.points[R].partialLength,$===0||O===0||R===C.points.length-1){for(x=C.points[R].point.length,K=0;K<x;K+=1)d[K]=C.points[R].point[K];break}else if($>=q&&$<q+C.points[R+1].partialLength){for(G=($-q)/C.points[R+1].partialLength,x=C.points[R].point.length,K=0;K<x;K+=1)d[K]=C.points[R].point[K]+(C.points[R+1].point[K]-C.points[R].point[K])*G;break}R<P-1?R+=1:I=!1}s._lastPoint=R,s._lastAddedLength=q-C.points[R].partialLength,s._lastKeyframeIndex=p}}else{var it,xt,ft,ot,It;if(b=y.s.length,T=k.s||y.e,this.sh&&y.h!==1)if(r>=L)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=w)d[0]=y.s[0],d[1]=y.s[1],d[2]=y.s[2];else{var pt=ou(y.s),rt=ou(T),_=(r-w)/(L-w);RE(d,OE(pt,rt,_))}else for(p=0;p<b;p+=1)y.h!==1&&(r>=L?O=1:r<w?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?U=M.__fnct[p]:(it=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],xt=y.o.y[p]===void 0?y.o.y[0]:y.o.y[p],ft=y.i.x[p]===void 0?y.i.x[0]:y.i.x[p],ot=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],U=_a.getBezierEasing(it,xt,ft,ot).get,M.__fnct[p]=U)):M.__fnct?U=M.__fnct:(it=y.o.x,xt=y.o.y,ft=y.i.x,ot=y.i.y,U=_a.getBezierEasing(it,xt,ft,ot).get,y.keyframeMetadata=U),O=U((r-w)/(L-w)))),T=k.s||y.e,It=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?d[p]=It:d=It}return s.lastIndex=m,d}function OE(r,s,n){var d=[],m=r[0],p=r[1],b=r[2],I=r[3],y=s[0],k=s[1],M=s[2],K=s[3],x,O,P,R,U;return O=m*y+p*k+b*M+I*K,O<0&&(O=-O,y=-y,k=-k,M=-M,K=-K),1-O>1e-6?(x=Math.acos(O),P=Math.sin(x),R=Math.sin((1-n)*x)/P,U=Math.sin(n*x)/P):(R=1-n,U=n),d[0]=R*m+U*y,d[1]=R*p+U*k,d[2]=R*b+U*M,d[3]=R*I+U*K,d}function RE(r,s){var n=s[0],d=s[1],m=s[2],p=s[3],b=Math.atan2(2*d*p-2*n*m,1-2*d*d-2*m*m),I=Math.asin(2*n*d+2*m*p),y=Math.atan2(2*n*p-2*d*m,1-2*n*n-2*m*m);r[0]=b/wt,r[1]=I/wt,r[2]=y/wt}function ou(r){var s=r[0]*wt,n=r[1]*wt,d=r[2]*wt,m=Math.cos(s/2),p=Math.cos(n/2),b=Math.cos(d/2),I=Math.sin(s/2),y=Math.sin(n/2),k=Math.sin(d/2),M=m*p*b-I*y*k,K=I*y*b+m*p*k,x=I*p*b+m*y*k,O=m*y*b-I*p*k;return[K,x,O,M]}function su(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Oo&&(this._caching.lastFrame>=n&&r>=n||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function rl(r){var s;if(this.propType==="unidimensional")s=r*this.mult,ru(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)s=r[n]*this.mult,ru(this.v[n]-s)>1e-5&&(this.v[n]=s,this._mdf=!0),n+=1}function il(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)n=this.effectsSequence[r](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ol(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function DE(r,s,n,d){this.propType="unidimensional",this.mult=n||1,this.data=s,this.v=n?s.k*n:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=il,this.setVValue=rl,this.addEffect=ol}function PE(r,s,n,d){this.propType="multidimensional",this.mult=n||1,this.data=s,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=X("float32",p),this.pv=X("float32",p),this.vel=X("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=il,this.setVValue=rl,this.addEffect=ol}function FE(r,s,n,d){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Oo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=Oo,this.pv=Oo,this._isFirstFrame=!0,this.getValue=il,this.setVValue=rl,this.interpolateValue=iu,this.effectsSequence=[su.bind(this)],this.addEffect=ol}function $E(r,s,n,d){this.propType="multidimensional";var m,p=s.k.length,b,I,y,k;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(b=s.k[m].s,I=s.k[m+1].s,y=s.k[m].to,k=s.k[m].ti,(b.length===2&&!(b[0]===I[0]&&b[1]===I[1])&&Xr.pointOnLine2D(b[0],b[1],I[0],I[1],b[0]+y[0],b[1]+y[1])&&Xr.pointOnLine2D(b[0],b[1],I[0],I[1],I[0]+k[0],I[1]+k[1])||b.length===3&&!(b[0]===I[0]&&b[1]===I[1]&&b[2]===I[2])&&Xr.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],b[0]+y[0],b[1]+y[1],b[2]+y[2])&&Xr.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],I[0]+k[0],I[1]+k[1],I[2]+k[2]))&&(s.k[m].to=null,s.k[m].ti=null),b[0]===I[0]&&b[1]===I[1]&&y[0]===0&&y[1]===0&&k[0]===0&&k[1]===0&&(b.length===2||b[2]===I[2]&&y[2]===0&&k[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[su.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=il,this.setVValue=rl,this.interpolateValue=iu,this.frameId=-1;var M=s.k[0].s.length;for(this.v=X("float32",M),this.pv=X("float32",M),m=0;m<M;m+=1)this.v[m]=Oo,this.pv[m]=Oo;this._caching={lastFrame:Oo,lastIndex:0,value:X("float32",M)},this.addEffect=ol}var lt=function(){function r(n,d,m,p,b){d.sid&&(d=n.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new DE(n,d,p,b);else if(typeof d.k[0]=="number")I=new PE(n,d,p,b);else switch(m){case 0:I=new FE(n,d,p,b);break;case 1:I=new $E(n,d,p,b);break;default:break}return I.effectsSequence.length&&b.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ne(){}Ne.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,n=this.dynamicProperties.length;for(s=0;s<n;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Ro=function(){function r(){return X("float32",2)}return el(8,r)}();function gi(){this.c=!1,this._length=0,this._maxLength=8,this.v=J(this._maxLength),this.o=J(this._maxLength),this.i=J(this._maxLength)}gi.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var n=0;n<s;)this.v[n]=Ro.newElement(),this.o[n]=Ro.newElement(),this.i[n]=Ro.newElement(),n+=1},gi.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},gi.prototype.doubleArrayLength=function(){this.v=this.v.concat(J(this._maxLength)),this.i=this.i.concat(J(this._maxLength)),this.o=this.o.concat(J(this._maxLength)),this._maxLength*=2},gi.prototype.setXYAt=function(r,s,n,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=Ro.newElement()),p[d][0]=r,p[d][1]=s},gi.prototype.setTripleAt=function(r,s,n,d,m,p,b,I){this.setXYAt(r,s,"v",b,I),this.setXYAt(n,d,"o",b,I),this.setXYAt(m,p,"i",b,I)},gi.prototype.reverse=function(){var r=new gi;r.setPathData(this.c,this._length);var s=this.v,n=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),m=1);var p=this._length-1,b=this._length,I;for(I=m;I<b;I+=1)r.setTripleAt(s[p][0],s[p][1],d[p][0],d[p][1],n[p][0],n[p][1],I,!1),p-=1;return r},gi.prototype.length=function(){return this._length};var De=function(){function r(){return new gi}function s(m){var p=m._length,b;for(b=0;b<p;b+=1)Ro.release(m.v[b]),Ro.release(m.i[b]),Ro.release(m.o[b]),m.v[b]=null,m.i[b]=null,m.o[b]=null;m._length=0,m.c=!1}function n(m){var p=d.newElement(),b,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,b=0;b<I;b+=1)p.setTripleAt(m.v[b][0],m.v[b][1],m.o[b][0],m.o[b][1],m.i[b][0],m.i[b][1],b);return p}var d=el(4,r,s);return d.clone=n,d}();function Dc(){this._length=0,this._maxLength=4,this.shapes=J(this._maxLength)}Dc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(J(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},Dc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Cs=function(){var r={newShapeCollection:m,release:p},s=0,n=4,d=J(n);function m(){var b;return s?(s-=1,b=d[s]):b=new Dc,b}function p(b){var I,y=b._length;for(I=0;I<y;I+=1)De.release(b.shapes[I]);b._length=0,s===n&&(d=Jm.double(d),n*=2),d[s]=b,s+=1}return r}(),sl=function(){var r=-999999;function s(L,w,T){var C=T.lastIndex,N,$,G,q,it,xt,ft,ot,It,pt=this.keyframes;if(L<pt[0].t-this.offsetTime)N=pt[0].s[0],G=!0,C=0;else if(L>=pt[pt.length-1].t-this.offsetTime)N=pt[pt.length-1].s?pt[pt.length-1].s[0]:pt[pt.length-2].e[0],G=!0;else{for(var rt=C,_=pt.length-1,D=!0,v,E,j;D&&(v=pt[rt],E=pt[rt+1],!(E.t-this.offsetTime>L));)rt<_-1?rt+=1:D=!1;if(j=this.keyframesMetadata[rt]||{},G=v.h===1,C=rt,!G){if(L>=E.t-this.offsetTime)ot=1;else if(L<v.t-this.offsetTime)ot=0;else{var V;j.__fnct?V=j.__fnct:(V=_a.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,j.__fnct=V),ot=V((L-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(xt=w._length,ft=N.i[0].length,T.lastIndex=C,q=0;q<xt;q+=1)for(it=0;it<ft;it+=1)It=G?N.i[q][it]:N.i[q][it]+($.i[q][it]-N.i[q][it])*ot,w.i[q][it]=It,It=G?N.o[q][it]:N.o[q][it]+($.o[q][it]-N.o[q][it])*ot,w.o[q][it]=It,It=G?N.v[q][it]:N.v[q][it]+($.v[q][it]-N.v[q][it])*ot,w.v[q][it]=It}function n(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<w&&L<w||C>T&&L>T)||(this._caching.lastIndex=C<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function d(){this.paths=this.localShapeCollection}function m(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,C=L._length;for(T=0;T<C;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function p(L){m(this.v,L)||(this.v=De.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function b(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var C=T===3?w.pt.k:w.ks.k;this.v=De.clone(C),this.pv=De.clone(this.v),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function y(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=b,I.prototype.setVValue=p,I.prototype.addEffect=y;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var C=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=De.clone(this.v),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[n.bind(this)]}k.prototype.getValue=b,k.prototype.interpolateShape=s,k.prototype.setVValue=p,k.prototype.addEffect=y;var M=function(){var L=oe;function w(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=C.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=lt.getProp(T,C.p,1,0,this),this.s=lt.getProp(T,C.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var C=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,G=this.s.v[1]/2,q=this.d!==3,it=this.v;it.v[0][0]=C,it.v[0][1]=N-G,it.v[1][0]=q?C+$:C-$,it.v[1][1]=N,it.v[2][0]=C,it.v[2][1]=N+G,it.v[3][0]=q?C-$:C+$,it.v[3][1]=N,it.i[0][0]=q?C-$*L:C+$*L,it.i[0][1]=N-G,it.i[1][0]=q?C+$:C-$,it.i[1][1]=N-G*L,it.i[2][0]=q?C+$*L:C-$*L,it.i[2][1]=N+G,it.i[3][0]=q?C-$:C+$,it.i[3][1]=N+G*L,it.o[0][0]=q?C+$*L:C-$*L,it.o[0][1]=N-G,it.o[1][0]=q?C+$:C-$,it.o[1][1]=N+G*L,it.o[2][0]=q?C-$*L:C+$*L,it.o[2][1]=N+G,it.o[3][0]=q?C-$:C+$,it.o[3][1]=N-G*L}},A([Ne],w),w}(),K=function(){function L(w,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=lt.getProp(w,T.ir,0,0,this),this.is=lt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(w,T.pt,0,0,this),this.p=lt.getProp(w,T.p,1,0,this),this.r=lt.getProp(w,T.r,0,wt,this),this.or=lt.getProp(w,T.or,0,0,this),this.os=lt.getProp(w,T.os,0,.01,this),this.localShapeCollection=Cs.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,C=Math.PI*2/T,N=!0,$=this.or.v,G=this.ir.v,q=this.os.v,it=this.is.v,xt=2*Math.PI*$/(T*2),ft=2*Math.PI*G/(T*2),ot,It,pt,rt,_=-Math.PI/2;_+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,ot=0;ot<T;ot+=1){It=N?$:G,pt=N?q:it,rt=N?xt:ft;var v=It*Math.cos(_),E=It*Math.sin(_),j=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),V=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-j*rt*pt*D,E-V*rt*pt*D,v+j*rt*pt*D,E+V*rt*pt*D,ot,!0),N=!N,_+=C*D}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,$=this.os.v,G=2*Math.PI*N/(T*4),q,it=-Math.PI*.5,xt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,q=0;q<T;q+=1){var ft=N*Math.cos(it),ot=N*Math.sin(it),It=ft===0&&ot===0?0:ot/Math.sqrt(ft*ft+ot*ot),pt=ft===0&&ot===0?0:-ft/Math.sqrt(ft*ft+ot*ot);ft+=+this.p.v[0],ot+=+this.p.v[1],this.v.setTripleAt(ft,ot,ft-It*G*$*xt,ot-pt*G*$*xt,ft+It*G*$*xt,ot+pt*G*$*xt,q,!0),it+=C*xt}this.paths.length=0,this.paths[0]=this.v}},A([Ne],L),L}(),x=function(){function L(w,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=Cs.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=lt.getProp(w,T.p,1,0,this),this.s=lt.getProp(w,T.s,1,0,this),this.r=lt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],C=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,G=jt(N,$,this.r.v),q=G*(1-oe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-$+G,T+N,C-$+G,T+N,C-$+q,0,!0),this.v.setTripleAt(T+N,C+$-G,T+N,C+$-q,T+N,C+$-G,1,!0),G!==0?(this.v.setTripleAt(T+N-G,C+$,T+N-G,C+$,T+N-q,C+$,2,!0),this.v.setTripleAt(T-N+G,C+$,T-N+q,C+$,T-N+G,C+$,3,!0),this.v.setTripleAt(T-N,C+$-G,T-N,C+$-G,T-N,C+$-q,4,!0),this.v.setTripleAt(T-N,C-$+G,T-N,C-$+q,T-N,C-$+G,5,!0),this.v.setTripleAt(T-N+G,C-$,T-N+G,C-$,T-N+q,C-$,6,!0),this.v.setTripleAt(T+N-G,C-$,T+N-q,C-$,T+N-G,C-$,7,!0)):(this.v.setTripleAt(T-N,C+$,T-N+q,C+$,T-N,C+$,2),this.v.setTripleAt(T-N,C-$,T-N,C-$+q,T-N,C-$,3))):(this.v.setTripleAt(T+N,C-$+G,T+N,C-$+q,T+N,C-$+G,0,!0),G!==0?(this.v.setTripleAt(T+N-G,C-$,T+N-G,C-$,T+N-q,C-$,1,!0),this.v.setTripleAt(T-N+G,C-$,T-N+q,C-$,T-N+G,C-$,2,!0),this.v.setTripleAt(T-N,C-$+G,T-N,C-$+G,T-N,C-$+q,3,!0),this.v.setTripleAt(T-N,C+$-G,T-N,C+$-q,T-N,C+$-G,4,!0),this.v.setTripleAt(T-N+G,C+$,T-N+G,C+$,T-N+q,C+$,5,!0),this.v.setTripleAt(T+N-G,C+$,T+N-q,C+$,T+N-G,C+$,6,!0),this.v.setTripleAt(T+N,C+$-G,T+N,C+$-G,T+N,C+$-q,7,!0)):(this.v.setTripleAt(T-N,C-$,T-N+q,C-$,T-N,C-$,1,!0),this.v.setTripleAt(T-N,C+$,T-N,C+$-q,T-N,C+$,2,!0),this.v.setTripleAt(T+N,C+$,T+N-q,C+$,T+N,C+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Ne],L),L}();function O(L,w,T){var C;if(T===3||T===4){var N=T===3?w.pt:w.ks,$=N.k;$.length?C=new k(L,w,T):C=new I(L,w,T)}else T===5?C=new x(L,w):T===6?C=new M(L,w):T===7&&(C=new K(L,w));return C.k&&L.addDynamicProperty(C),C}function P(){return I}function R(){return k}var U={};return U.getShapeProp=O,U.getConstructorFunction=P,U.getKeyframedConstructorFunction=R,U}();var Pe=function(){var r=Math.cos,s=Math.sin,n=Math.tan,d=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function b(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(1,0,0,0,0,E,-j,0,0,j,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,0,j,0,0,1,0,0,-j,0,E,0,0,0,0,1)}function y(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function k(v,E){return this._t(1,E,v,1,0,0)}function M(v,E){return this.shear(n(v),n(E))}function K(v,E){var j=r(E),V=s(E);return this._t(j,V,0,0,-V,j,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(j,-V,0,0,V,j,0,0,0,0,1,0,0,0,0,1)}function x(v,E,j){return!j&&j!==0&&(j=1),v===1&&E===1&&j===1?this:this._t(v,0,0,0,0,E,0,0,0,0,j,0,0,0,0,1)}function O(v,E,j,V,ct,gt,At,Ft,$t,ue,rr,Qr,ir,Le,ur,Yt){return this.props[0]=v,this.props[1]=E,this.props[2]=j,this.props[3]=V,this.props[4]=ct,this.props[5]=gt,this.props[6]=At,this.props[7]=Ft,this.props[8]=$t,this.props[9]=ue,this.props[10]=rr,this.props[11]=Qr,this.props[12]=ir,this.props[13]=Le,this.props[14]=ur,this.props[15]=Yt,this}function P(v,E,j){return j=j||0,v!==0||E!==0||j!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,j,1):this}function R(v,E,j,V,ct,gt,At,Ft,$t,ue,rr,Qr,ir,Le,ur,Yt){var mt=this.props;if(v===1&&E===0&&j===0&&V===0&&ct===0&&gt===1&&At===0&&Ft===0&&$t===0&&ue===0&&rr===1&&Qr===0)return mt[12]=mt[12]*v+mt[15]*ir,mt[13]=mt[13]*gt+mt[15]*Le,mt[14]=mt[14]*rr+mt[15]*ur,mt[15]*=Yt,this._identityCalculated=!1,this;var Ei=mt[0],to=mt[1],Ti=mt[2],Jr=mt[3],xi=mt[4],Ai=mt[5],or=mt[6],eo=mt[7],ro=mt[8],Dr=mt[9],io=mt[10],Pr=mt[11],$o=mt[12],ul=mt[13],fl=mt[14],vl=mt[15];return mt[0]=Ei*v+to*ct+Ti*$t+Jr*ir,mt[1]=Ei*E+to*gt+Ti*ue+Jr*Le,mt[2]=Ei*j+to*At+Ti*rr+Jr*ur,mt[3]=Ei*V+to*Ft+Ti*Qr+Jr*Yt,mt[4]=xi*v+Ai*ct+or*$t+eo*ir,mt[5]=xi*E+Ai*gt+or*ue+eo*Le,mt[6]=xi*j+Ai*At+or*rr+eo*ur,mt[7]=xi*V+Ai*Ft+or*Qr+eo*Yt,mt[8]=ro*v+Dr*ct+io*$t+Pr*ir,mt[9]=ro*E+Dr*gt+io*ue+Pr*Le,mt[10]=ro*j+Dr*At+io*rr+Pr*ur,mt[11]=ro*V+Dr*Ft+io*Qr+Pr*Yt,mt[12]=$o*v+ul*ct+fl*$t+vl*ir,mt[13]=$o*E+ul*gt+fl*ue+vl*Le,mt[14]=$o*j+ul*At+fl*rr+vl*ur,mt[15]=$o*V+ul*Ft+fl*Qr+vl*Yt,this._identityCalculated=!1,this}function U(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function C(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,j){return{x:v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}}function $(v,E,j){return v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12]}function G(v,E,j){return v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13]}function q(v,E,j){return v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,j=-this.props[1]/v,V=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,At=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Ft=new Pe;return Ft.props[0]=E,Ft.props[1]=j,Ft.props[4]=V,Ft.props[5]=ct,Ft.props[12]=gt,Ft.props[13]=At,Ft}function xt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ft(v){var E,j=v.length,V=[];for(E=0;E<j;E+=1)V[E]=xt(v[E]);return V}function ot(v,E,j){var V=X("float32",6);if(this.isIdentity())V[0]=v[0],V[1]=v[1],V[2]=E[0],V[3]=E[1],V[4]=j[0],V[5]=j[1];else{var ct=this.props[0],gt=this.props[1],At=this.props[4],Ft=this.props[5],$t=this.props[12],ue=this.props[13];V[0]=v[0]*ct+v[1]*At+$t,V[1]=v[0]*gt+v[1]*Ft+ue,V[2]=E[0]*ct+E[1]*At+$t,V[3]=E[0]*gt+E[1]*Ft+ue,V[4]=j[0]*ct+j[1]*At+$t,V[5]=j[0]*gt+j[1]*Ft+ue}return V}function It(v,E,j){var V;return this.isIdentity()?V=[v,E,j]:V=[v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]],V}function pt(v,E){if(this.isIdentity())return v+","+E;var j=this.props;return Math.round((v*j[0]+E*j[4]+j[12])*100)/100+","+Math.round((v*j[1]+E*j[5]+j[13])*100)/100}function rt(){for(var v=0,E=this.props,j="matrix3d(",V=1e4;v<16;)j+=d(E[v]*V)/V,j+=v===15?")":",",v+=1;return j}function _(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function D(){var v=this.props,E=_(v[0]),j=_(v[1]),V=_(v[4]),ct=_(v[5]),gt=_(v[12]),At=_(v[13]);return"matrix("+E+","+j+","+V+","+ct+","+gt+","+At+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=b,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=K,this.shear=k,this.scale=x,this.setTransform=O,this.translate=P,this.transform=R,this.multiply=U,this.applyToPoint=N,this.applyToX=$,this.applyToY=G,this.applyToZ=q,this.applyToPointArray=It,this.applyToTriplePoints=ot,this.applyToPointStringified=pt,this.toCSS=rt,this.to2dCSS=D,this.clone=T,this.cloneFromProps=C,this.equals=w,this.inversePoints=ft,this.inversePoint=xt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function al(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?al=function(n){return typeof n}:al=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},al(r)}var Kt={},nl="__[STANDALONE]__",au="__[ANIMATIONDATA]__",nu="";function VE(r){c(r)}function lu(){nl===!0?me.searchAnimations(au,nl,nu):me.searchAnimations()}function zE(r){xE(r)}function BE(r){IE(r)}function HE(r){return nl===!0&&(r.animationData=JSON.parse(au)),me.loadAnimation(r)}function UE(r){if(typeof r=="string")switch(r){case"high":Jn(200);break;default:case"medium":Jn(50);break;case"low":Jn(10);break}else!isNaN(r)&&r>1&&Jn(r);Aa()>=50?Ke(!1):Ke(!0)}function GE(){return typeof navigator<"u"}function KE(r,s){r==="expressions"&&SE(s)}function WE(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return sl;case"matrix":return Pe;default:return null}}Kt.play=me.play,Kt.pause=me.pause,Kt.setLocationHref=VE,Kt.togglePause=me.togglePause,Kt.setSpeed=me.setSpeed,Kt.setDirection=me.setDirection,Kt.stop=me.stop,Kt.searchAnimations=lu,Kt.registerAnimation=me.registerAnimation,Kt.loadAnimation=HE,Kt.setSubframeRendering=zE,Kt.resize=me.resize,Kt.goToAndStop=me.goToAndStop,Kt.destroy=me.destroy,Kt.setQuality=UE,Kt.inBrowser=GE,Kt.installPlugin=KE,Kt.freeze=me.freeze,Kt.unfreeze=me.unfreeze,Kt.setVolume=me.setVolume,Kt.mute=me.mute,Kt.unmute=me.unmute,Kt.getRegisteredAnimations=me.getRegisteredAnimations,Kt.useWebWorker=i,Kt.setIDPrefix=BE,Kt.__getFactory=WE,Kt.version="5.12.2";function YE(){document.readyState==="complete"&&(clearInterval(XE),lu())}function jE(r){for(var s=du.split("&"),n=0;n<s.length;n+=1){var d=s[n].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var du="";if(nl){var cu=document.getElementsByTagName("script"),qE=cu.length-1,hu=cu[qE]||{src:""};du=hu.src?hu.src.replace(/^[^\?]+\??/,""):"",nu=jE("renderer")}var XE=setInterval(YE,100);try{!((typeof an>"u"?"undefined":al(an))==="object"&&typeof Yl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Kt)}catch{}var ji=function(){var r={},s={};r.registerModifier=n,r.getModifier=d;function n(m,p){s[m]||(s[m]=p)}function d(m,p,b){return new s[m](p,b)}return r}();function Ar(){}Ar.prototype.initModifierProperties=function(){},Ar.prototype.addShapeToModifier=function(){},Ar.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Cs.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Ar.prototype.init=function(r,s){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ar.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Ne],Ar);function Rr(){}A([Ar],Rr),Rr.prototype.initModifierProperties=function(r,s){this.s=lt.getProp(r,s.s,0,.01,this),this.e=lt.getProp(r,s.e,0,.01,this),this.o=lt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Rr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Rr.prototype.calculateShapeEdges=function(r,s,n,d,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var b=[],I,y=p.length,k;for(I=0;I<y;I+=1)if(k=p[I],!(k.e*m<d||k.s*m>d+n)){var M,K;k.s*m<=d?M=0:M=(k.s*m-d)/n,k.e*m>=d+n?K=1:K=(k.e*m-d)/n,b.push([M,K])}return b.length||b.push([0,0]),b},Rr.prototype.releasePathsData=function(r){var s,n=r.length;for(s=0;s<n;s+=1)eu.release(r[s]);return r.length=0,r},Rr.prototype.processShapes=function(r){var s,n;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?s=1+d:this.s.v<0?s=0+d:s=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,s>n){var m=s;s=n,n=m}s=Math.round(s*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=s,this.eValue=n}else s=this.sValue,n=this.eValue;var p,b,I=this.shapes.length,y,k,M,K,x,O=0;if(n===s)for(b=0;b<I;b+=1)this.shapes[b].localShapeCollection.releaseShapes(),this.shapes[b].shape._mdf=!0,this.shapes[b].shape.paths=this.shapes[b].localShapeCollection,this._mdf&&(this.shapes[b].pathsData.length=0);else if(n===1&&s===0||n===0&&s===1){if(this._mdf)for(b=0;b<I;b+=1)this.shapes[b].pathsData.length=0,this.shapes[b].shape._mdf=!0}else{var P=[],R,U;for(b=0;b<I;b+=1)if(R=this.shapes[b],!R.shape._mdf&&!this._mdf&&!r&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(p=R.shape.paths,k=p._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(M=this.releasePathsData(R.pathsData),y=0;y<k;y+=1)K=Xr.getSegmentsLength(p.shapes[y]),M.push(K),x+=K.totalLength;R.totalShapeLength=x,R.pathsData=M}O+=x,R.shape._mdf=!0}var L=s,w=n,T=0,C;for(b=I-1;b>=0;b-=1)if(R=this.shapes[b],R.shape._mdf){for(U=R.localShapeCollection,U.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):C=[[L,w]],k=C.length,y=0;y<k;y+=1){L=C[y][0],w=C[y][1],P.length=0,w<=1?P.push({s:R.totalShapeLength*L,e:R.totalShapeLength*w}):L>=1?P.push({s:R.totalShapeLength*(L-1),e:R.totalShapeLength*(w-1)}):(P.push({s:R.totalShapeLength*L,e:R.totalShapeLength}),P.push({s:0,e:R.totalShapeLength*(w-1)}));var N=this.addShapes(R,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var G=N.pop();this.addPaths(N,U),N=this.addShapes(R,P[1],G)}else this.addPaths(N,U),N=this.addShapes(R,P[1])}this.addPaths(N,U)}}R.shape.paths=U}}},Rr.prototype.addPaths=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)s.addShape(r[n])},Rr.prototype.addSegment=function(r,s,n,d,m,p,b){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(n[0],n[1],"i",p+1),b&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Rr.prototype.addSegmentFromArray=function(r,s,n,d){s.setXYAt(r[1],r[5],"o",n),s.setXYAt(r[2],r[6],"i",n+1),d&&s.setXYAt(r[0],r[4],"v",n),s.setXYAt(r[3],r[7],"v",n+1)},Rr.prototype.addShapes=function(r,s,n){var d=r.pathsData,m=r.shape.paths.shapes,p,b=r.shape.paths._length,I,y,k=0,M,K,x,O,P=[],R,U=!0;for(n?(K=n._length,R=n._length):(n=De.newElement(),K=0,R=0),P.push(n),p=0;p<b;p+=1){for(x=d[p].lengths,n.c=m[p].c,y=m[p].c?x.length:x.length+1,I=1;I<y;I+=1)if(M=x[I-1],k+M.addedLength<s.s)k+=M.addedLength,n.c=!1;else if(k>s.e){n.c=!1;break}else s.s<=k&&s.e>=k+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],n,K,U),U=!1):(O=Xr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-k)/M.addedLength,(s.e-k)/M.addedLength,x[I-1]),this.addSegmentFromArray(O,n,K,U),U=!1,n.c=!1),k+=M.addedLength,K+=1;if(m[p].c&&x.length){if(M=x[I-1],k<=s.e){var L=x[I-1].addedLength;s.s<=k&&s.e>=k+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],n,K,U),U=!1):(O=Xr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-k)/L,(s.e-k)/L,x[I-1]),this.addSegmentFromArray(O,n,K,U),U=!1,n.c=!1)}else n.c=!1;k+=M.addedLength,K+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],"i",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),k>s.e)break;p<b-1&&(n=De.newElement(),U=!0,P.push(n),K=0)}return P};function wa(){}A([Ar],wa),wa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},wa.prototype.processPath=function(r,s){var n=s/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var b=De.newElement();b.c=r.c;var I,y,k,M,K,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*n,y=r.v[p][1]+(d[1]-r.v[p][1])*n,k=r.o[p][0]+(d[0]-r.o[p][0])*-n,M=r.o[p][1]+(d[1]-r.o[p][1])*-n,K=r.i[p][0]+(d[0]-r.i[p][0])*-n,x=r.i[p][1]+(d[1]-r.i[p][1])*-n,b.setTripleAt(I,y,k,M,K,x,p);return b},wa.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,b=this.amount.v;if(b!==0){var I,y;for(n=0;n<d;n+=1){if(I=this.shapes[n],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Pc=function(){var r=[0,0];function s(y){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&y.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&y.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&y.skewFromAxis(-this.sk.v,this.sa.v),this.r?y.rotate(-this.r.v):y.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?y.translate(this.px.v,this.py.v,-this.pz.v):y.translate(this.px.v,this.py.v,0):y.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,K;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),K=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),K=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,K=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],K=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),K[0]=x.getValueAtTime(x.keyframes[0].t/k,0),K[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),K[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),K[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],K[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),K[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else K=r,M=K;this.v.rotate(-Math.atan2(M[1]-K[1],M[0]-K[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(y){this._addDynamicProperty(y),this.elem.addDynamicProperty(y),this._isDirty=!0}function b(y,k,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),k.p&&k.p.s?(this.px=lt.getProp(y,k.p.x,0,0,this),this.py=lt.getProp(y,k.p.y,0,0,this),k.p.z&&(this.pz=lt.getProp(y,k.p.z,0,0,this))):this.p=lt.getProp(y,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=lt.getProp(y,k.rx,0,wt,this),this.ry=lt.getProp(y,k.ry,0,wt,this),this.rz=lt.getProp(y,k.rz,0,wt,this),k.or.k[0].ti){var K,x=k.or.k.length;for(K=0;K<x;K+=1)k.or.k[K].to=null,k.or.k[K].ti=null}this.or=lt.getProp(y,k.or,1,wt,this),this.or.sh=!0}else this.r=lt.getProp(y,k.r||{k:0},0,wt,this);k.sk&&(this.sk=lt.getProp(y,k.sk,0,wt,this),this.sa=lt.getProp(y,k.sa,0,wt,this)),this.a=lt.getProp(y,k.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(y,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=lt.getProp(y,k.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}b.prototype={applyToMatrix:s,getValue:n,precalculateMatrix:d,autoOrient:m},A([Ne],b),b.prototype.addDynamicProperty=p,b.prototype._addDynamicProperty=Ne.prototype.addDynamicProperty;function I(y,k,M){return new b(y,k,M)}return{getTransformProperty:I}}();function Zr(){}A([Ar],Zr),Zr.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=lt.getProp(r,s.c,0,null,this),this.o=lt.getProp(r,s.o,0,null,this),this.tr=Pc.getTransformProperty(r,s.tr,this),this.so=lt.getProp(r,s.tr.so,0,.01,this),this.eo=lt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},Zr.prototype.applyTransforms=function(r,s,n,d,m,p){var b=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),y=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*b*m,d.p.v[1]*b*m,d.p.v[2]),s.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),s.rotate(-d.r.v*b*m),s.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(p?1/I:I,p?1/y:y),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Zr.prototype.init=function(r,s,n,d){for(this.elem=r,this.arr=s,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[n]);n>0;)n-=1,this._elements.unshift(s[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Zr.prototype.resetElements=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Zr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Zr.prototype.changeGroupRender=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)r[n]._render=s,r[n].ty==="gr"&&this.changeGroupRender(r[n].it,s)},Zr.prototype.processShapes=function(r){var s,n,d,m,p,b=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var y={it:this.cloneElements(this._elements),ty:"gr"};y.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,y),this._groups.splice(0,0,y),this._currentCopies+=1}this.elem.reloadShapes(),b=!0}p=0;var k;for(d=0;d<=this._groups.length-1;d+=1){if(k=p<I,this._groups[d]._render=k,this.changeGroupRender(this._groups[d].it,k),!k){var M=this.elemsData[d].it,K=M[M.length-1];K.transform.op.v!==0?(K.transform.op._mdf=!0,K.transform.op.v=0):K.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,P=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,U=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}d=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,C;p;){if(s=this.elemsData[d].it,n=s[s.length-1].transform.mProps.v.props,C=n.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),w!==0){for((d!==0&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<C;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)n[T]=this.matrix.props[T];w+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)s=this.elemsData[d].it,n=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,d+=m;return b},Zr.prototype.addShape=function(){};function ka(){}A([Ar],ka),ka.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=lt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ka.prototype.processPath=function(r,s){var n=De.newElement();n.c=r.c;var d,m=r._length,p,b,I,y,k,M,K=0,x,O,P,R,U,L;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],b=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===b[0]&&p[1]===b[1]?(d===0||d===m-1)&&!r.c?(n.setTripleAt(p[0],p[1],I[0],I[1],b[0],b[1],K),K+=1):(d===0?y=r.v[m-1]:y=r.v[d-1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,U=p[0]+(y[0]-p[0])*M,x=U,L=p[1]-(p[1]-y[1])*M,O=L,P=x-(x-p[0])*oe,R=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,U,L,K),K+=1,d===m-1?y=r.v[0]:y=r.v[d+1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,P=p[0]+(y[0]-p[0])*M,x=P,R=p[1]+(y[1]-p[1])*M,O=R,U=x-(x-p[0])*oe,L=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,U,L,K),K+=1):(n.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],K),K+=1);return n},ka.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,b=this.rd.v;if(b!==0){var I,y;for(n=0;n<d;n+=1){if(I=this.shapes[n],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ll(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Fc(r){return Math.abs(r)<=1e-5}function pu(r,s,n){return r*(1-n)+s*n}function qi(r,s,n){return[pu(r[0],s[0],n),pu(r[1],s[1],n)]}function ZE(r,s,n){if(r===0)return[];var d=s*s-4*r*n;if(d<0)return[];var m=-s/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function mu(r,s,n,d){return[-r+3*s-3*n+d,3*r-6*s+3*n,-3*r+3*s,r]}function uu(r){return new ne(r,r,r,r,!1)}function ne(r,s,n,d,m){m&&ws(r,s)&&(s=qi(r,d,1/3)),m&&ws(n,d)&&(n=qi(r,d,2/3));var p=mu(r[0],s[0],n[0],d[0]),b=mu(r[1],s[1],n[1],d[1]);this.a=[p[0],b[0]],this.b=[p[1],b[1]],this.c=[p[2],b[2]],this.d=[p[3],b[3]],this.points=[r,s,n,d]}ne.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},ne.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},ne.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},ne.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},ne.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Fc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,n=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(n<0)return[];var d=Math.sqrt(n);return Fc(d)?d>0&&d<1?[s]:[]:[s-d,s+d].filter(function(m){return m>0&&m<1})},ne.prototype.split=function(r){if(r<=0)return[uu(this.points[0]),this];if(r>=1)return[this,uu(this.points[this.points.length-1])];var s=qi(this.points[0],this.points[1],r),n=qi(this.points[1],this.points[2],r),d=qi(this.points[2],this.points[3],r),m=qi(s,n,r),p=qi(n,d,r),b=qi(m,p,r);return[new ne(this.points[0],s,m,b,!0),new ne(b,p,d,this.points[3],!0)]};function fu(r,s){var n=r.points[0][s],d=r.points[r.points.length-1][s];if(n>d){var m=d;d=n,n=m}for(var p=ZE(3*r.a[s],2*r.b[s],r.c[s]),b=0;b<p.length;b+=1)if(p[b]>0&&p[b]<1){var I=r.point(p[b])[s];I<n?n=I:I>d&&(d=I)}return{min:n,max:d}}ne.prototype.bounds=function(){return{x:fu(this,0),y:fu(this,1)}},ne.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function dl(r,s,n){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(s+n)/2,t1:s,t2:n}}function vu(r){var s=r.bez.split(.5);return[dl(s[0],r.t1,r.t),dl(s[1],r.t,r.t2)]}function QE(r,s){return Math.abs(r.cx-s.cx)*2<r.width+s.width&&Math.abs(r.cy-s.cy)*2<r.height+s.height}function Na(r,s,n,d,m,p){if(QE(r,s)){if(n>=p||r.width<=d&&r.height<=d&&s.width<=d&&s.height<=d){m.push([r.t,s.t]);return}var b=vu(r),I=vu(s);Na(b[0],I[0],n+1,d,m,p),Na(b[0],I[1],n+1,d,m,p),Na(b[1],I[0],n+1,d,m,p),Na(b[1],I[1],n+1,d,m,p)}}ne.prototype.intersections=function(r,s,n){s===void 0&&(s=2),n===void 0&&(n=7);var d=[];return Na(dl(this,0,1),dl(r,0,1),0,s,d,n),d},ne.shapeSegment=function(r,s){var n=(s+1)%r.length();return new ne(r.v[s],r.o[s],r.i[n],r.v[n],!0)},ne.shapeSegmentInverted=function(r,s){var n=(s+1)%r.length();return new ne(r.v[n],r.i[n],r.o[s],r.v[s],!0)};function $c(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function cl(r,s,n,d){var m=[r[0],r[1],1],p=[s[0],s[1],1],b=[n[0],n[1],1],I=[d[0],d[1],1],y=$c($c(m,p),$c(b,I));return Fc(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function _s(r,s,n){return[r[0]+Math.cos(s)*n,r[1]-Math.sin(s)*n]}function Vc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function ws(r,s){return ll(r[0],s[0])&&ll(r[1],s[1])}function La(){}A([Ar],La),La.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=lt.getProp(r,s.s,0,null,this),this.frequency=lt.getProp(r,s.r,0,null,this),this.pointsType=lt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function gu(r,s,n,d,m,p,b){var I=n-Math.PI/2,y=n+Math.PI/2,k=s[0]+Math.cos(n)*d*m,M=s[1]-Math.sin(n)*d*m;r.setTripleAt(k,M,k+Math.cos(I)*p,M-Math.sin(I)*p,k+Math.cos(y)*b,M-Math.sin(y)*b,r.length())}function JE(r,s){var n=[s[0]-r[0],s[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return m}function tT(r,s){var n=s===0?r.length()-1:s-1,d=(s+1)%r.length(),m=r.v[n],p=r.v[d],b=JE(m,p);return Math.atan2(0,1)-Math.atan2(b[1],b[0])}function bu(r,s,n,d,m,p,b){var I=tT(s,n),y=s.v[n%s._length],k=s.v[n===0?s._length-1:n-1],M=s.v[(n+1)%s._length],K=p===2?Math.sqrt(Math.pow(y[0]-k[0],2)+Math.pow(y[1]-k[1],2)):0,x=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;gu(r,s.v[n%s._length],I,b,d,x/((m+1)*2),K/((m+1)*2),p)}function eT(r,s,n,d,m,p){for(var b=0;b<d;b+=1){var I=(b+1)/(d+1),y=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,k=s.normalAngle(I),M=s.point(I);gu(r,M,k,p,n,y/((d+1)*2),y/((d+1)*2),m),p=-p}return p}La.prototype.processPath=function(r,s,n,d){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var b=-1,I=ne.shapeSegment(r,0);bu(p,r,0,s,n,d,b);for(var y=0;y<m;y+=1)b=eT(p,I,s,n,d,-b),y===m-1&&!r.c?I=null:I=ne.shapeSegment(r,(y+1)%m),bu(p,r,y+1,s,n,d,b);return p},La.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,b=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(b!==0){var k,M;for(n=0;n<d;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,I,y));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function zc(r,s,n){var d=Math.atan2(s[0]-r[0],s[1]-r[1]);return[_s(r,d,n),_s(s,d,n)]}function ks(r,s){var n,d,m,p,b,I,y;y=zc(r.points[0],r.points[1],s),n=y[0],d=y[1],y=zc(r.points[1],r.points[2],s),m=y[0],p=y[1],y=zc(r.points[2],r.points[3],s),b=y[0],I=y[1];var k=cl(n,d,m,p);k===null&&(k=d);var M=cl(b,I,m,p);return M===null&&(M=b),new ne(n,k,M,I)}function yu(r,s,n,d,m){var p=s.points[3],b=n.points[0];if(d===3||ws(p,b))return p;if(d===2){var I=-s.tangentAngle(1),y=-n.tangentAngle(0)+Math.PI,k=cl(p,_s(p,I+Math.PI/2,100),b,_s(b,I+Math.PI/2,100)),M=k?Vc(k,p):Vc(p,b)/2,K=_s(p,I,2*M*oe);return r.setXYAt(K[0],K[1],"o",r.length()-1),K=_s(b,y,2*M*oe),r.setTripleAt(b[0],b[1],b[0],b[1],K[0],K[1],r.length()),b}var x=ws(p,s.points[2])?s.points[0]:s.points[2],O=ws(b,n.points[1])?n.points[3]:n.points[1],P=cl(x,p,b,O);return P&&Vc(P,p)<m?(r.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],r.length()),P):p}function Eu(r,s){var n=r.intersections(s);return n.length&&ll(n[0][0],1)&&n.shift(),n.length?n[0]:null}function Tu(r,s){var n=r.slice(),d=s.slice(),m=Eu(r[r.length-1],s[0]);return m&&(n[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=Eu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[n,d]}function rT(r){for(var s,n=1;n<r.length;n+=1)s=Tu(r[n-1],r[n]),r[n-1]=s[0],r[n]=s[1];return r.length>1&&(s=Tu(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function xu(r,s){var n=r.inflectionPoints(),d,m,p,b;if(n.length===0)return[ks(r,s)];if(n.length===1||ll(n[1],1))return p=r.split(n[0]),d=p[0],m=p[1],[ks(d,s),ks(m,s)];p=r.split(n[0]),d=p[0];var I=(n[1]-n[0])/(1-n[0]);return p=p[1].split(I),b=p[0],m=p[1],[ks(d,s),ks(b,s),ks(m,s)]}function Ma(){}A([Ar],Ma),Ma.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this.miterLimit=lt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ma.prototype.processPath=function(r,s,n,d){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var b,I,y,k=[];for(b=0;b<p;b+=1)y=ne.shapeSegment(r,b),k.push(xu(y,s));if(!r.c)for(b=p-1;b>=0;b-=1)y=ne.shapeSegmentInverted(r,b),k.push(xu(y,s));k=rT(k);var M=null,K=null;for(b=0;b<k.length;b+=1){var x=k[b];for(K&&(M=yu(m,K,x[0],n,d)),K=x[x.length-1],I=0;I<x.length;I+=1)y=x[I],M&&ws(y.points[0],M)?m.setXYAt(y.points[1][0],y.points[1][1],"o",m.length()-1):m.setTripleAt(y.points[0][0],y.points[0][1],y.points[1][0],y.points[1][1],y.points[0][0],y.points[0][1],m.length()),m.setTripleAt(y.points[3][0],y.points[3][1],y.points[3][0],y.points[3][1],y.points[2][0],y.points[2][1],m.length()),M=y.points[3]}return k.length&&yu(m,K,k[0][0],n,d),m},Ma.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,b=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(b!==0){var k,M;for(n=0;n<d;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,y,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Au(r){for(var s=r.fStyle?r.fStyle.split(" "):[],n="normal",d="normal",m=s.length,p,b=0;b<m;b+=1)switch(p=s[b].toLowerCase(),p){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:r.fWeight||n}}var Do=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,m=917631,p=917601,b=917626,I=65039,y=8205,k=127462,M=127487,K=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var D=_.split(","),v,E=D.length,j=[];for(v=0;v<E;v+=1)D[v]!=="sans-serif"&&D[v]!=="monospace"&&j.push(D[v]);return j.join(",")}function O(_,D){var v=g("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=D;var E=g("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var j=E.offsetWidth;return E.style.fontFamily=x(_)+", "+D,{node:E,w:j,parent:v}}function P(){var _,D=this.fonts.length,v,E,j=D;for(_=0;_<D;_+=1)this.fonts[_].loaded?j-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(v=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,v.offsetWidth!==E?(j-=1,this.fonts[_].loaded=!0):(v=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,v.offsetWidth!==E&&(j-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));j!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(_,D){var v=document.body&&D?"svg":"canvas",E,j=Au(_);if(v==="svg"){var V=St("text");V.style.fontSize="100px",V.setAttribute("font-family",_.fFamily),V.setAttribute("font-style",j.style),V.setAttribute("font-weight",j.weight),V.textContent="1",_.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",_.fClass)):V.style.fontFamily=_.fFamily,D.appendChild(V),E=V}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=j.style+" "+j.weight+" 100px "+_.fFamily,E=ct}function gt(At){return v==="svg"?(E.textContent=At,E.getComputedTextLength()):E.measureText(At).width}return{measureText:gt}}function U(_,D){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(rr){rr.helper=R(rr),rr.cache={}}),this.fonts=_.list;return}var v=_.list,E,j=v.length,V=j;for(E=0;E<j;E+=1){var ct=!0,gt,At;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,V-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Ft=g("style");Ft.setAttribute("f-forigin",v[E].fOrigin),Ft.setAttribute("f-origin",v[E].origin),Ft.setAttribute("f-family",v[E].fFamily),Ft.type="text/css",Ft.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",D.appendChild(Ft)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),At=0;At<gt.length;At+=1)gt[At].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var $t=g("link");$t.setAttribute("f-forigin",v[E].fOrigin),$t.setAttribute("f-origin",v[E].origin),$t.type="text/css",$t.rel="stylesheet",$t.href=v[E].fPath,document.body.appendChild($t)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),At=0;At<gt.length;At+=1)v[E].fPath===gt[At].src&&(ct=!1);if(ct){var ue=g("link");ue.setAttribute("f-forigin",v[E].fOrigin),ue.setAttribute("f-origin",v[E].origin),ue.setAttribute("rel","stylesheet"),ue.setAttribute("href",v[E].fPath),D.appendChild(ue)}}v[E].helper=R(v[E],D),v[E].cache={},this.fonts.push(v[E])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var D,v=_.length,E,j=this.chars.length,V;for(D=0;D<v;D+=1){for(E=0,V=!1;E<j;)this.chars[E].style===_[D].style&&this.chars[E].fFamily===_[D].fFamily&&this.chars[E].ch===_[D].ch&&(V=!0),E+=1;V||(this.chars.push(_[D]),j+=1)}}}function w(_,D,v){for(var E=0,j=this.chars.length;E<j;){if(this.chars[E].ch===_&&this.chars[E].style===D&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,D,v)),s}function T(_,D,v){var E=this.getFontByName(D),j=_;if(!E.cache[j]){var V=E.helper;if(_===" "){var ct=V.measureText("|"+_+"|"),gt=V.measureText("||");E.cache[j]=(ct-gt)/100}else E.cache[j]=V.measureText(_)/100}return E.cache[j]*v}function C(_){for(var D=0,v=this.fonts.length;D<v;){if(this.fonts[D].fName===_)return this.fonts[D];D+=1}return this.fonts[0]}function N(_){var D=0,v=_.charCodeAt(0);if(v>=55296&&v<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(D=(v-55296)*1024+E-56320+65536)}return D}function $(_,D){var v=_.toString(16)+D.toString(16);return K.indexOf(v)!==-1}function G(_){return _===y}function q(_){return _===I}function it(_){var D=N(_);return D>=k&&D<=M}function xt(_){return it(_.substr(0,2))&&it(_.substr(2,2))}function ft(_){return n.indexOf(_)!==-1}function ot(_,D){var v=N(_.substr(D,2));if(v!==d)return!1;var E=0;for(D+=2;E<5;){if(v=N(_.substr(D,2)),v<p||v>b)return!1;E+=1,D+=2}return N(_.substr(D,2))===m}function It(){this.isLoaded=!0}var pt=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)};pt.isModifier=$,pt.isZeroWidthJoiner=G,pt.isFlagEmoji=xt,pt.isRegionalCode=it,pt.isCombinedCharacter=ft,pt.isRegionalFlag=ot,pt.isVariationSelector=q,pt.BLACK_FLAG_CODE_POINT=d;var rt={addChars:L,addFonts:U,getCharData:w,getFontByName:C,measureText:T,checkLoadedFonts:P,setIsLoaded:It};return pt.prototype=rt,pt}();function Su(r){this.animationData=r}Su.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function iT(r){return new Su(r)}function hl(){}hl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,n=this.renderableComponents.length;for(s=0;s<n;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Bc=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return r[s]||""}}();function oT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function sT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function aT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function nT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function lT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function dT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function cT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function hT(){this.p={}}function Iu(r,s){var n=r.ef||[];this.effectElements=[];var d,m=n.length,p;for(d=0;d<m;d+=1)p=new Oa(n[d],s),this.effectElements.push(p)}function Oa(r,s){this.init(r,s)}A([Ne],Oa),Oa.prototype.getValue=Oa.prototype.iterateDynamicProperties,Oa.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var n,d=this.data.ef.length,m,p=this.data.ef;for(n=0;n<d;n+=1){switch(m=null,p[n].ty){case 0:m=new oT(p[n],s,this);break;case 1:m=new sT(p[n],s,this);break;case 2:m=new aT(p[n],s,this);break;case 3:m=new nT(p[n],s,this);break;case 4:case 7:m=new cT(p[n],s,this);break;case 10:m=new lT(p[n],s,this);break;case 11:m=new dT(p[n],s,this);break;case 5:m=new Iu(p[n],s,this);break;default:m=new hT(p[n],s,this);break}m&&this.effectElements.push(m)}};function Xi(){}Xi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,n=this.data.masksProperties.length;s<n;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Zm();if(s){var n=s("layer"),d=s("effects"),m=s("shape"),p=s("text"),b=s("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=b(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=Bc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=s},initBaseData:function(s,n,d){this.globalData=n,this.comp=d,this.data=s,this.layerId=tr(),this.data.sr||(this.data.sr=1),this.effectsManager=new Iu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Zi(){}Zi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,n){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function Qi(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,n)}Qi.prototype.prepareFrame=function(){},A([hl,Xi,Zi],Qi),Qi.prototype.getBaseElement=function(){return null},Qi.prototype.renderFrame=function(){},Qi.prototype.destroy=function(){},Qi.prototype.initExpressions=function(){var r=Zm();if(r){var s=r("footage");this.layerInterface=s(this)}},Qi.prototype.getFootageData=function(){return this.footageData};function er(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=lt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}er.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([hl,Xi,Zi],er),er.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},er.prototype.show=function(){},er.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},er.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},er.prototype.resume=function(){this._canPlay=!0},er.prototype.setRate=function(r){this.audio.rate(r)},er.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},er.prototype.getBaseElement=function(){return null},er.prototype.destroy=function(){},er.prototype.sourceRectAtTime=function(){},er.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,n=this.layers.length,d;for(this.completeLayers=!0,s=n-1;s>=0;s-=1)this.elements[s]||(d=this.layers[s],d.ip-d.st<=r-this.layers[s].st&&d.op-d.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new er(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new Qi(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,n=r.length,d,m=this.layers.length;for(s=0;s<n;s+=1)for(d=0;d<m;){if(this.layers[d].id===r[s].id){this.layers[d]=r[s];break}d+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,n){for(var d=this.elements,m=this.layers,p=0,b=m.length;p<b;)m[p].ind==s&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(n.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,n):r.setHierarchy(n))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,n=r.length;for(s=0;s<n;s+=1)if(r[s].xt){var d=this.createComp(r[s]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Fe.prototype.getElementById=function(r){var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),n;if(typeof s=="number")n=this.elements[s];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===s){n=this.elements[d];break}}return r.length===0?n:n.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Do,this.globalData.slotManager=iT(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var pT={TRANSFORM_EFFECT:"transformEFfect"};function Ns(){}Ns.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?Pc.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,n=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,n.cloneFromProps(s),d=0;d<m;d+=1)n.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<n;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),s=1;s<n;s+=1){var m=this.localTransforms[s].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<n;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(pT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var n=0,d=s.length;for(n=0;n<d;n+=1)this.localTransforms.push(s[n])}}},globalToLocal:function(s){var n=[];n.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&n.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,b=n.length,I;for(p=0;p<b;p+=1)I=n[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Po(r,s,n){this.data=r,this.element=s,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=J(p),this.solidPath="";var b,I=this.masksProperties,y=0,k=[],M,K,x=tr(),O,P,R,U,L="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(L="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=St("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,b=St("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:sl.getShapeProp(this.element,I[m],3),elem:b,lastPath:""},d.appendChild(b);else{y+=1,b.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),b.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(L="mask",w="mask",U=lt.getProp(this.element,I[m].x,0,null,this.element),T=tr(),P=St("filter"),P.setAttribute("id",T),R=St("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),P.appendChild(R),d.appendChild(P),b.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(R=null,U=null),this.storedData[m]={elem:b,x:U,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){K=k.length;var C=St("g");for(M=0;M<K;M+=1)C.appendChild(k[M]);var N=St("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+y),N.appendChild(b),d.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+y+")"),k.length=0,k.push(C)}else k.push(b);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:b,lastPath:"",op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:sl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=St(L),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);y>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Po.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Po.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||r)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||r)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[n].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||r))){var m=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),m.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},Po.prototype.getMaskelement=function(){return this.maskElement},Po.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Po.prototype.drawPath=function(r,s,n){var d=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),n.lastPath!==d){var b="";n.elem&&(s.c&&(b=r.inv?this.solidPath+d:d),n.elem.setAttribute("d",b)),n.lastPath=d}},Po.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ra=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=n;function s(d,m){var p=St("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function n(){var d=St("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),Cu=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),pl={},_u="filter_result_";function Hc(r){var s,n="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=tr(),p=Ra.createFilter(m,!0),b=0;this.filters=[];var I;for(s=0;s<d;s+=1){I=null;var y=r.data.ef[s].ty;if(pl[y]){var k=pl[y].effect;I=new k(p,r.effectsManager.effectElements[s],r,_u+b,n),n=_u+b,pl[y].countsAsEffect&&(b+=1)}I&&this.filters.push(I)}b&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}Hc.prototype.renderFrame=function(r){var s,n=this.filters.length;for(s=0;s<n;s+=1)this.filters[s].renderFrame(r)},Hc.prototype.getEffects=function(r){var s,n=this.filters.length,d=[];for(s=0;s<n;s+=1)this.filters[s].type===r&&d.push(this.filters[s]);return d};function MI(r,s,n){pl[r]={effect:s,countsAsEffect:n}}function Da(){}Da.prototype={initRendererElement:function(){this.layerElement=St("g")},createContainerElements:function(){this.matteElement=St("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var n=St("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),s=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=St("clipPath"),m=St("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=tr();if(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var b=St("g");b.setAttribute("clip-path","url("+f()+"#"+p+")"),b.appendChild(this.layerElement),this.transformedElement=b,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Po(this.data,this,this.globalData),this.renderableEffectsManager=new Hc(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var n=this.layerId+"_"+s,d,m,p,b;if(s===1||s===3){var I=St("mask");I.setAttribute("id",n),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=St("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Cu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),d=tr(),m=Ra.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(Ra.createAlphaToLuminanceFilter()),b=St("g"),b.appendChild(p),I.appendChild(b),b.setAttribute("filter","url("+f()+"#"+d+")"))}else if(s===2){var y=St("mask");y.setAttribute("id",n),y.setAttribute("mask-type","alpha");var k=St("g");y.appendChild(k),d=tr(),m=Ra.createFilter(d);var M=St("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var K=St("feFuncA");K.setAttribute("type","table"),K.setAttribute("tableValues","1.0 0.0"),M.appendChild(K),this.globalData.defs.appendChild(m);var x=St("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+d+")"),k.appendChild(x),p=St("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),Cu.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(Ra.createAlphaToLuminanceFilter()),b=St("g"),k.appendChild(x),b.appendChild(this.layerElement),k.appendChild(b)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=n}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Ls(){}Ls.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Pa(){}(function(){var r={initElement:function(n,d,m){this.initFrame(),this.initBaseData(n,d,m),this.initTransform(n,d,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.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(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([hl,H(r)],Pa)})();function Fa(r,s,n){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Xi,Ns,Da,Ls,Zi,Pa],Fa),Fa.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=St("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Fa.prototype.sourceRectAtTime=function(){return this.sourceRect};function mT(r,s){this.elem=r,this.pos=s}function wu(){}wu.prototype={addShapeToModifiers:function(s){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,n=this.shapes.length;for(s=0;s<n;s+=1)this.shapes[s].sh.reset();n=this.shapeModifiers.length;var d;for(s=n-1;s>=0&&(d=this.shapeModifiers[s].processShapes(this._isFirstFrame),!d);s-=1);}},searchProcessedElement:function(s){for(var n=this.processedElements,d=0,m=n.length;d<m;){if(n[d].elem===s)return n[d].pos;d+=1}return 0},addProcessedElement:function(s,n){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===s){d[m].pos=n;return}d.push(new mT(s,n))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var ku={1:"butt",2:"round",3:"square"},Nu={1:"miter",2:"round",3:"bevel"};function Lu(r,s,n){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=n,this.lvl=s,this._isAnimated=!!n.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}Lu.prototype.setAsAnimated=function(){this._isAnimated=!0};function Mu(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=St("path"),this.msElem=null}Mu.prototype.reset=function(){this.d="",this._mdf=!1};function ml(r,s,n,d){this.elem=r,this.frameId=-1,this.dataProps=J(s.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=X("float32",s.length?s.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(d);var m,p=s.length||0,b;for(m=0;m<p;m+=1)b=lt.getProp(r,s[m].v,0,0,this),this.k=b.k||this.k,this.dataProps[m]={n:s[m].n,p:b};this.k||this.getValue(!0),this._isAnimated=this.k}ml.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<n;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},A([Ne],ml);function Ou(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.w=lt.getProp(r,s.w,0,null,this),this.d=new ml(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([Ne],Ou);function Ru(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n}A([Ne],Ru);function Du(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=n}A([Ne],Du);function $a(r,s,n){this.data=s,this.c=X("uint8c",s.p*4);var d=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=X("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(n),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}$a.prototype.comparePoints=function(r,s){for(var n=0,d=this.o.length/2,m;n<d;){if(m=Math.abs(r[n*4]-r[s*4+n*2]),m>.01)return!1;n+=1}return!0},$a.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,s=this.data.k.k.length;r<s;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},$a.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,n=this.data.p*4,d,m;for(s=0;s<n;s+=1)d=s%4===0?100:255,m=Math.round(this.prop.v[s]*d),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(n=this.prop.v.length,s=this.data.p*4;s<n;s+=1)d=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Ne],$a);function Ms(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,n)}Ms.prototype.initGradientData=function(r,s,n){this.o=lt.getProp(r,s.o,0,.01,this),this.s=lt.getProp(r,s.s,1,null,this),this.e=lt.getProp(r,s.e,1,null,this),this.h=lt.getProp(r,s.h||{k:0},0,.01,this),this.a=lt.getProp(r,s.a||{k:0},0,wt,this),this.g=new $a(r,s.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,s),this.setGradientOpacity(s,n),this._isAnimated=!!this._isAnimated},Ms.prototype.setGradientData=function(r,s){var n=tr(),d=St(s.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,b,I;for(I=s.g.p*4,b=0;b<I;b+=4)p=St("stop"),d.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=m},Ms.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,m,p=St("mask"),b=St("path");p.appendChild(b);var I=tr(),y=tr();p.setAttribute("id",y);var k=St(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var M=this.stops;for(d=r.g.p*4;d<m;d+=2)n=St("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(n),M.push(n);b.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(b.setAttribute("stroke-linecap",ku[r.lc||2]),b.setAttribute("stroke-linejoin",Nu[r.lj||2]),r.lj===1&&b.setAttribute("stroke-miterlimit",r.ml)),this.of=k,this.ms=p,this.ost=M,this.maskId=y,s.msElem=b}},A([Ne],Ms);function Pu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new ml(r,s.d||{},"svg",this),this.initGradientData(r,s,n),this._isAnimated=!!this._isAnimated}A([Ms,Ne],Pu);function uT(){this.it=[],this.prevViewData=[],this.gr=St("g")}function fT(r,s,n){this.transform={mProps:r,op:s,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Fu=function(s,n,d,m){if(n===0)return"";var p=s.o,b=s.i,I=s.v,y,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<n;y+=1)k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[y][0],b[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return d&&n&&(k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[0][0],b[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},vT=function(){var r=new Pe,s=new Pe,n={createRenderFunction:d};function d(K){switch(K.ty){case"fl":return I;case"gf":return k;case"gs":return y;case"st":return M;case"sh":case"el":case"rc":case"sr":return b;case"tr":return m;case"no":return p;default:return null}}function m(K,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function b(K,x,O){var P,R,U,L,w,T,C=x.styles.length,N=x.lvl,$,G,q,it;for(T=0;T<C;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(G=s.reset(),q=N-x.styles[T].lvl,it=x.transformers.length-1;!L&&q>0;)L=x.transformers[it].mProps._mdf||L,q-=1,it-=1;if(L)for(q=N-x.styles[T].lvl,it=x.transformers.length-1;q>0;)G.multiply(x.transformers[it].mProps.v),q-=1,it-=1}else G=r;if($=x.sh.paths,R=$._length,L){for(U="",P=0;P<R;P+=1)w=$.shapes[P],w&&w._length&&(U+=Fu(w,w._length,w.c,G));x.caches[T]=U}else U=x.caches[T];x.styles[T].d+=K.hd===!0?"":U,x.styles[T]._mdf=L||x.styles[T]._mdf}}function I(K,x,O){var P=x.style;(x.c._mdf||O)&&P.pElem.setAttribute("fill","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("fill-opacity",x.o.v)}function y(K,x,O){k(K,x,O),M(K,x,O)}function k(K,x,O){var P=x.gf,R=x.g._hasOpacity,U=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=K.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=K.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";P.setAttribute(T,U[0]),P.setAttribute(C,U[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,U[0]),x.of.setAttribute(C,U[1]))}var N,$,G,q;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(G=N.length,$=0;$<G;$+=1)q=N[$],q.setAttribute("offset",it[$*4]+"%"),q.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var xt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,G=N.length,$=0;$<G;$+=1)q=N[$],x.g._collapsable||q.setAttribute("offset",xt[$*2]+"%"),q.setAttribute("stop-opacity",xt[$*2+1])}if(K.t===1)(x.e._mdf||O)&&(P.setAttribute("x2",L[0]),P.setAttribute("y2",L[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ft;if((x.s._mdf||x.e._mdf||O)&&(ft=Math.sqrt(Math.pow(U[0]-L[0],2)+Math.pow(U[1]-L[1],2)),P.setAttribute("r",ft),R&&!x.g._collapsable&&x.of.setAttribute("r",ft)),x.e._mdf||x.h._mdf||x.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(U[0]-L[0],2)+Math.pow(U[1]-L[1],2)));var ot=Math.atan2(L[1]-U[1],L[0]-U[0]),It=x.h.v;It>=1?It=.99:It<=-1&&(It=-.99);var pt=ft*It,rt=Math.cos(ot+x.a.v)*pt+U[0],_=Math.sin(ot+x.a.v)*pt+U[1];P.setAttribute("fx",rt),P.setAttribute("fy",_),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",_))}}}function M(K,x,O){var P=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(P.pElem.setAttribute("stroke-dasharray",R.dashStr),P.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&P.pElem.setAttribute("stroke","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(P.pElem.setAttribute("stroke-width",x.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",x.w.v))}return n}();function de(r,s,n){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,n),this.prevViewData=[]}A([Xi,Ns,Da,wu,Ls,Zi,Pa],de),de.prototype.initSecondaryElement=function(){},de.prototype.identityMatrix=new Pe,de.prototype.buildExpressionInterface=function(){},de.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},de.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,n,d,m=this.stylesList.length,p,b=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,b.length=0,r=0;r<s;r+=1)n=this.shapes[r],n.styles.indexOf(p)!==-1&&(b.push(n),I=n._isAnimated||I);b.length>1&&I&&this.setShapesAsAnimated(b)}},de.prototype.setShapesAsAnimated=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s].setAsAnimated()},de.prototype.createStyleElement=function(r,s){var n,d=new Mu(r,s),m=d.pElem;if(r.ty==="st")n=new Ou(this,r,d);else if(r.ty==="fl")n=new Ru(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ms:Pu;n=new p(this,r,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),m.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else r.ty==="no"&&(n=new Du(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",ku[r.lc||2]),m.setAttribute("stroke-linejoin",Nu[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=Bc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,n),n},de.prototype.createGroupElement=function(r){var s=new uT;return r.ln&&s.gr.setAttribute("id",r.ln),r.cl&&s.gr.setAttribute("class",r.cl),r.bm&&(s.gr.style["mix-blend-mode"]=Bc(r.bm)),s},de.prototype.createTransformElement=function(r,s){var n=Pc.getTransformProperty(this,r,this),d=new fT(n,n.o,s);return this.addToAnimatedContents(r,d),d},de.prototype.createShapeElement=function(r,s,n){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=sl.getShapeProp(this,r,d,this),p=new Lu(s,n,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},de.prototype.addToAnimatedContents=function(r,s){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===s)return;n+=1}this.animatedContents.push({fn:vT.createRenderFunction(r),element:s,data:r})},de.prototype.setElementStyles=function(r){var s=r.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||s.push(this.stylesList[n])},de.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},de.prototype.searchShapes=function(r,s,n,d,m,p,b){var I=[].concat(p),y,k=r.length-1,M,K,x=[],O=[],P,R,U;for(y=k;y>=0;y-=1){if(U=this.searchProcessedElement(r[y]),U?s[y]=n[U-1]:r[y]._render=b,r[y].ty==="fl"||r[y].ty==="st"||r[y].ty==="gf"||r[y].ty==="gs"||r[y].ty==="no")U?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==d&&d.appendChild(s[y].style.pElem),x.push(s[y].style);else if(r[y].ty==="gr"){if(!U)s[y]=this.createGroupElement(r[y]);else for(K=s[y].it.length,M=0;M<K;M+=1)s[y].prevViewData[M]=s[y].it[M];this.searchShapes(r[y].it,s[y].it,s[y].prevViewData,s[y].gr,m+1,I,b),r[y]._render&&s[y].gr.parentNode!==d&&d.appendChild(s[y].gr)}else r[y].ty==="tr"?(U||(s[y]=this.createTransformElement(r[y],d)),P=s[y].transform,I.push(P)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(U||(s[y]=this.createShapeElement(r[y],I,m)),this.setElementStyles(s[y])):r[y].ty==="tm"||r[y].ty==="rd"||r[y].ty==="ms"||r[y].ty==="pb"||r[y].ty==="zz"||r[y].ty==="op"?(U?(R=s[y],R.closed=!1):(R=ji.getModifier(r[y].ty),R.init(this,r[y]),s[y]=R,this.shapeModifiers.push(R)),O.push(R)):r[y].ty==="rp"&&(U?(R=s[y],R.closed=!0):(R=ji.getModifier(r[y].ty),s[y]=R,R.init(this,r,y,s),this.shapeModifiers.push(R),b=!1),O.push(R));this.addProcessedElement(r[y],y+1)}for(k=x.length,y=0;y<k;y+=1)x[y].closed=!0;for(k=O.length,y=0;y<k;y+=1)O[y].closed=!0},de.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},de.prototype.renderShape=function(){var r,s=this.animatedContents.length,n;for(r=0;r<s;r+=1)n=this.animatedContents[r],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},de.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Uc(r,s,n,d,m,p){this.o=r,this.sw=s,this.sc=n,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!n,fc:!!d,m:!0,p:!0}}Uc.prototype.update=function(r,s,n,d,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var b=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,b=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,b=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,b=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,b=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,b=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,b=!0),b};function We(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}We.prototype.defaultBoxWidth=[0,0],We.prototype.copyData=function(r,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(r[n]=s[n]);return r},We.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},We.prototype.searchProperty=function(){return this.searchKeyframes()},We.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},We.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},We.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)n!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},We.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,n=0,d=r.length;n<=d-1&&!(n===d-1||r[n+1].t>s);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},We.prototype.buildFinalText=function(r){for(var s=[],n=0,d=r.length,m,p,b=!1,I=!1,y="";n<d;)b=I,I=!1,m=r.charCodeAt(n),y=r.charAt(n),Do.isCombinedCharacter(m)?b=!0:m>=55296&&m<=56319?Do.isRegionalFlag(r,n)?y=r.substr(n,14):(p=r.charCodeAt(n+1),p>=56320&&p<=57343&&(Do.isModifier(m,p)?(y=r.substr(n,2),b=!0):Do.isFlagEmoji(r.substr(n,4))?y=r.substr(n,4):y=r.substr(n,2))):m>56319?(p=r.charCodeAt(n+1),Do.isVariationSelector(m)&&(b=!0)):Do.isZeroWidthJoiner(m)&&(b=!0,I=!0),b?(s[s.length-1]+=y,b=!1):s.push(y),n+=y.length;return s},We.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,n=this.data,d=[],m,p,b,I=0,y,k=n.m.g,M=0,K=0,x=0,O=[],P=0,R=0,U,L,w=s.getFontByName(r.f),T,C=0,N=Au(w);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,G;if(r.sz)for(var q=!0,it=r.sz[0],xt=r.sz[1],ft,ot;q;){ot=this.buildFinalText(r.t),ft=0,P=0,p=ot.length,$=r.tr/1e3*r.finalSize;var It=-1;for(m=0;m<p;m+=1)G=ot[m].charCodeAt(0),b=!1,ot[m]===" "?It=m:(G===13||G===3)&&(P=0,b=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(ot[m],w.fStyle,w.fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(ot[m],r.f,r.finalSize),P+C>it&&ot[m]!==" "?(It===-1?p+=1:m=It,ft+=r.finalLineHeight||r.finalSize*1.2,ot.splice(m,It===m?1:0,"\r"),It=-1,P=0):(P+=C,P+=$);ft+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&xt<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=ot,p=r.finalText.length,q=!1)}P=-$,C=0;var pt=0,rt;for(m=0;m<p;m+=1)if(b=!1,rt=r.finalText[m],G=rt.charCodeAt(0),G===13||G===3?(pt=0,O.push(P),R=P>R?P:R,P=-2*$,y="",b=!0,x+=1):y=rt,s.chars?(T=s.getCharData(rt,w.fStyle,s.getFontByName(r.f).fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),rt===" "?pt+=C+$:(P+=C+$+pt,pt=0),d.push({l:C,an:C,add:M,n:b,anIndexes:[],val:y,line:x,animatorJustifyOffset:0}),k==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);K<=m;)d[K].an=M,d[K].ind=I,d[K].extra=C,K+=1;I+=1,M=0}}else if(k==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);K<=m;)d[K].an=M,d[K].ind=I,d[K].extra=C,K+=1;M=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,R=P>R?P:R,O.push(P),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=R,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=n.a,D,v;L=_.length;var E,j,V=[];for(U=0;U<L;U+=1){for(D=_[U],D.a.sc&&(r.strokeColorAnim=!0),D.a.sw&&(r.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(r.fillColorAnim=!0),j=0,E=D.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[U]=j,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(D.s.rn===1&&V.push(j),j+=1);n.a[U].s.totalChars=j;var ct=-1,gt;if(D.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[U]&&(ct=v.anIndexes[U],gt=V.splice(Math.floor(Math.random()*V.length),1)[0]),v.anIndexes[U]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},We.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var n=this.copyData({},this.data.d.k[s].s);n=this.copyData(n,r),this.data.d.k[s].s=n,this.recalculate(s),this.setCurrentData(n),this.elem.addDynamicProperty(this)},We.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},We.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},We.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var gT=function(){var r=Math.max,s=Math.min,n=Math.floor;function d(p,b){this._currentTextLength=-1,this.k=!1,this.data=b,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=lt.getProp(p,b.s||{k:0},0,0,this),"e"in b?this.e=lt.getProp(p,b.e,0,0,this):this.e={v:100},this.o=lt.getProp(p,b.o||{k:0},0,0,this),this.xe=lt.getProp(p,b.xe||{k:0},0,0,this),this.ne=lt.getProp(p,b.ne||{k:0},0,0,this),this.sm=lt.getProp(p,b.sm||{k:100},0,0,this),this.a=lt.getProp(p,b.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(b){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,y=0,k=1,M=1;this.ne.v>0?I=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var K=_a.getBezierEasing(I,y,k,M).get,x=0,O=this.finalS,P=this.finalE,R=this.data.sh;if(R===2)P===O?x=b>=P?1:0:x=r(0,s(.5/(P-O)+(b-O)/(P-O),1)),x=K(x);else if(R===3)P===O?x=b>=P?0:1:x=1-r(0,s(.5/(P-O)+(b-O)/(P-O),1)),x=K(x);else if(R===4)P===O?x=0:(x=r(0,s(.5/(P-O)+(b-O)/(P-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=K(x);else if(R===5){if(P===O)x=0;else{var U=P-O;b=s(r(0,b+.5-O),P-O);var L=-U/2+b,w=U/2;x=Math.sqrt(1-L*L/(w*w))}x=K(x)}else R===6?(P===O?x=0:(b=s(r(0,b+.5-O),P-O),x=(1+Math.cos(Math.PI+Math.PI*2*b/(P-O)))/2),x=K(x)):(b>=n(O)&&(b-O<0?x=r(0,s(s(P,1)-(O-b),1)):x=r(0,s(P-b,1))),x=K(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;x<C?x=0:(x=(x-C)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(b){this.iterateDynamicProperties(),this._mdf=b||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,b&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,y=this.o.v/I,k=this.s.v/I+y,M=this.e.v/I+y;if(k>M){var K=k;k=M,M=K}this.finalS=k,this.finalE=M}},A([Ne],d);function m(p,b,I){return new d(p,b,I)}return{getTextSelectorProp:m}}();function bT(r,s,n){var d={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,wt,n):d,rx:p.rx?m(r,p.rx,0,wt,n):d,ry:p.ry?m(r,p.ry,0,wt,n):d,sk:p.sk?m(r,p.sk,0,wt,n):d,sa:p.sa?m(r,p.sa,0,wt,n):d,s:p.s?m(r,p.s,1,.01,n):d,a:p.a?m(r,p.a,1,0,n):d,o:p.o?m(r,p.o,0,.01,n):d,p:p.p?m(r,p.p,1,0,n):d,sw:p.sw?m(r,p.sw,0,0,n):d,sc:p.sc?m(r,p.sc,1,0,n):d,fc:p.fc?m(r,p.fc,1,0,n):d,fh:p.fh?m(r,p.fh,0,0,n):d,fs:p.fs?m(r,p.fs,0,.01,n):d,fb:p.fb?m(r,p.fb,0,.01,n):d,t:p.t?m(r,p.t,0,0,n):d},this.s=gT.getTextSelectorProp(r,s.s,n),this.s.t=s.s.t}function Fo(r,s,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=n,this._animatorsData=J(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}Fo.prototype.searchProperties=function(){var r,s=this._textData.a.length,n,d=lt.getProp;for(r=0;r<s;r+=1)n=this._textData.a[r],this._animatorsData[r]=new bT(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},Fo.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,b=this._renderType,I=this.renderedLetters.length,y,k,M,K,x=r.l,O,P,R,U,L,w,T,C,N,$,G,q,it,xt,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var ot=ft.v;this._pathData.r.v&&(ot=ot.reverse()),O={tLength:0,segments:[]},K=ot._length-1;var It;for(q=0,M=0;M<K;M+=1)It=Xr.buildBezierData(ot.v[M],ot.v[M+1],[ot.o[M][0]-ot.v[M][0],ot.o[M][1]-ot.v[M][1]],[ot.i[M+1][0]-ot.v[M+1][0],ot.i[M+1][1]-ot.v[M+1][1]]),O.tLength+=It.segmentLength,O.segments.push(It),q+=It.segmentLength;M=K,ft.v.c&&(It=Xr.buildBezierData(ot.v[M],ot.v[0],[ot.o[M][0]-ot.v[M][0],ot.o[M][1]-ot.v[M][1]],[ot.i[0][0]-ot.v[0][0],ot.i[0][1]-ot.v[0][1]]),O.tLength+=It.segmentLength,O.segments.push(It),q+=It.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,P=this._pathData.f.v,T=0,w=1,U=0,L=!0,$=O.segments,P<0&&ft.v.c)for(O.tLength<Math.abs(P)&&(P=-Math.abs(P)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;P<0;)P+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,C=N[w-1],R=N[w],G=R.partialLength}K=x.length,y=0,k=0;var pt=r.finalSize*1.2*.714,rt=!0,_,D,v,E,j;E=d.length;var V,ct=-1,gt,At,Ft,$t=P,ue=T,rr=w,Qr=-1,ir,Le,ur,Yt,mt,Ei,to,Ti,Jr="",xi=this.defaultPropsArray,Ai;if(r.j===2||r.j===1){var or=0,eo=0,ro=r.j===2?-.5:-1,Dr=0,io=!0;for(M=0;M<K;M+=1)if(x[M].n){for(or&&(or+=eo);Dr<M;)x[Dr].animatorJustifyOffset=or,Dr+=1;or=0,io=!0}else{for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(io&&r.j===2&&(eo+=_.t.v*ro),D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),V.length?or+=_.t.v*V[0]*ro:or+=_.t.v*V*ro);io=!1}for(or&&(or+=eo);Dr<M;)x[Dr].animatorJustifyOffset=or,Dr+=1}for(M=0;M<K;M+=1){if(p.reset(),ir=1,x[M].n)y=0,k+=r.yOffset,k+=rt?1:0,P=$t,rt=!1,this._hasMaskedPath&&(T=ue,w=rr,N=$[T].points,C=N[w-1],R=N[w],G=R.partialLength,U=0),Jr="",Ti="",Ei="",Ai="",xi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Qr!==x[M].line){switch(r.j){case 1:P+=q-r.lineWidths[x[M].line];break;case 2:P+=(q-r.lineWidths[x[M].line])/2;break;default:break}Qr=x[M].line}ct!==x[M].ind&&(x[ct]&&(P+=x[ct].extra),P+=x[M].an/2,ct=x[M].ind),P+=n[0]*x[M].an*.005;var Pr=0;for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),V.length?Pr+=_.p.v[0]*V[0]:Pr+=_.p.v[0]*V),_.a.propType&&(D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),V.length?Pr+=_.a.v[0]*V[0]:Pr+=_.a.v[0]*V);for(L=!0,this._pathData.a.v&&(P=x[0].an*.5+(q-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(K-1),P+=this._pathData.f.v);L;)U+G>=P+Pr||!N?(it=(P+Pr-U)/R.partialLength,At=C.point[0]+(R.point[0]-C.point[0])*it,Ft=C.point[1]+(R.point[1]-C.point[1])*it,p.translate(-n[0]*x[M].an*.005,-(n[1]*pt)*.01),L=!1):N&&(U+=R.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ft.v.c?(w=0,T=0,N=$[T].points):(U-=R.partialLength,N=null)),N&&(C=R,R=N[w],G=R.partialLength));gt=x[M].an/2-x[M].add,p.translate(-gt,0,0)}else gt=x[M].an/2-x[M].add,p.translate(-gt,0,0),p.translate(-n[0]*x[M].an*.005,-n[1]*pt*.01,0);for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?V.length?P+=_.t.v*V[0]:P+=_.t.v*V:V.length?y+=_.t.v*V[0]:y+=_.t.v*V));for(r.strokeWidthAnim&&(ur=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Yt=[r.fc[0],r.fc[1],r.fc[2]]),v=0;v<E;v+=1)_=d[v].a,_.a.propType&&(D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),V.length?p.translate(-_.a.v[0]*V[0],-_.a.v[1]*V[1],_.a.v[2]*V[2]):p.translate(-_.a.v[0]*V,-_.a.v[1]*V,_.a.v[2]*V));for(v=0;v<E;v+=1)_=d[v].a,_.s.propType&&(D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),V.length?p.scale(1+(_.s.v[0]-1)*V[0],1+(_.s.v[1]-1)*V[1],1):p.scale(1+(_.s.v[0]-1)*V,1+(_.s.v[1]-1)*V,1));for(v=0;v<E;v+=1){if(_=d[v].a,D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),_.sk.propType&&(V.length?p.skewFromAxis(-_.sk.v*V[0],_.sa.v*V[1]):p.skewFromAxis(-_.sk.v*V,_.sa.v*V)),_.r.propType&&(V.length?p.rotateZ(-_.r.v*V[2]):p.rotateZ(-_.r.v*V)),_.ry.propType&&(V.length?p.rotateY(_.ry.v*V[1]):p.rotateY(_.ry.v*V)),_.rx.propType&&(V.length?p.rotateX(_.rx.v*V[0]):p.rotateX(_.rx.v*V)),_.o.propType&&(V.length?ir+=(_.o.v*V[0]-ir)*V[0]:ir+=(_.o.v*V-ir)*V),r.strokeWidthAnim&&_.sw.propType&&(V.length?ur+=_.sw.v*V[0]:ur+=_.sw.v*V),r.strokeColorAnim&&_.sc.propType)for(mt=0;mt<3;mt+=1)V.length?Le[mt]+=(_.sc.v[mt]-Le[mt])*V[0]:Le[mt]+=(_.sc.v[mt]-Le[mt])*V;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(mt=0;mt<3;mt+=1)V.length?Yt[mt]+=(_.fc.v[mt]-Yt[mt])*V[0]:Yt[mt]+=(_.fc.v[mt]-Yt[mt])*V;_.fh.propType&&(V.length?Yt=Xm(Yt,_.fh.v*V[0]):Yt=Xm(Yt,_.fh.v*V)),_.fs.propType&&(V.length?Yt=jm(Yt,_.fs.v*V[0]):Yt=jm(Yt,_.fs.v*V)),_.fb.propType&&(V.length?Yt=qm(Yt,_.fb.v*V[0]):Yt=qm(Yt,_.fb.v*V))}}for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?V.length?p.translate(0,_.p.v[1]*V[0],-_.p.v[2]*V[1]):p.translate(0,_.p.v[1]*V,-_.p.v[2]*V):V.length?p.translate(_.p.v[0]*V[0],_.p.v[1]*V[1],-_.p.v[2]*V[2]):p.translate(_.p.v[0]*V,_.p.v[1]*V,-_.p.v[2]*V));if(r.strokeWidthAnim&&(Ei=ur<0?0:ur),r.strokeColorAnim&&(to="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(Ti="rgb("+Math.round(Yt[0]*255)+","+Math.round(Yt[1]*255)+","+Math.round(Yt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,n[1]*pt*.01+k,0),this._pathData.p.v){xt=(R.point[1]-C.point[1])/(R.point[0]-C.point[0]);var $o=Math.atan(xt)*180/Math.PI;R.point[0]<C.point[0]&&($o+=180),p.rotate(-$o*Math.PI/180)}p.translate(At,Ft,0),P-=n[0]*x[M].an*.005,x[M+1]&&ct!==x[M+1].ind&&(P+=x[M].an/2,P+=r.tr*.001*r.finalSize)}else{switch(p.translate(y,k,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line]),0,0);break;case 2:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(n[0]*x[M].an*.005,n[1]*pt*.01,0),y+=x[M].l+r.tr*.001*r.finalSize}b==="html"?Jr=p.toCSS():b==="svg"?Jr=p.to2dCSS():xi=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],Ai=ir}I<=M?(j=new Uc(Ai,Ei,to,Ti,Jr,xi),this.renderedLetters.push(j),I+=1,this.lettersChangedFlag=!0):(j=this.renderedLetters[M],this.lettersChangedFlag=j.update(Ai,Ei,to,Ti,Jr,xi)||this.lettersChangedFlag)}}},Fo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Fo.prototype.mHelper=new Pe,Fo.prototype.defaultPropsArray=[],A([Ne],Fo);function Sr(){}Sr.prototype.initElement=function(r,s,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,n),this.textProperty=new We(this,r.t,this.dynamicProperties),this.textAnimator=new Fo(r.t,this.renderType,this),this.initTransform(r,s,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Sr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Sr.prototype.createPathShape=function(r,s){var n,d=s.length,m,p="";for(n=0;n<d;n+=1)s[n].ty==="sh"&&(m=s[n].ks.k,p+=Fu(m,m.i.length,!0,r));return p},Sr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Sr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Sr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Sr.prototype.applyTextPropertiesToMatrix=function(r,s,n,d,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n])/2,0,0);break;default:break}s.translate(d,m,0)},Sr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Sr.prototype.emptyProp=new Uc,Sr.prototype.destroy=function(){},Sr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var yT={shapes:[]};function bi(r,s,n){this.textSpans=[],this.renderType="svg",this.initElement(r,s,n)}A([Xi,Ns,Da,Ls,Zi,Pa,Sr],bi),bi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=St("text"))},bi.prototype.buildTextContents=function(r){for(var s=0,n=r.length,d=[],m="";s<n;)r[s]==="\r"||r[s]===""?(d.push(m),m=""):m+=r[s],s+=1;return d.push(m),d},bi.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var n=r.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=s,d.s.k[1]=s)}}return r},bi.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,n=this.textProperty.currentData;this.renderedLetters=J(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=n.fWeight,p=n.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",n.t);var b=n.l||[],I=!!this.globalData.fontManager.chars;s=b.length;var y,k=this.mHelper,M="",K=this.data.singleShape,x=0,O=0,P=!0,R=n.tr*.001*n.finalSize;if(K&&!I&&!n.sz){var U=this.textContainer,L="start";switch(n.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}U.setAttribute("text-anchor",L),U.setAttribute("letter-spacing",R);var w=this.buildTextContents(n.finalText);for(s=w.length,O=n.ps?n.ps[1]+n.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||St("tspan"),y.textContent=w[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",U.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=n.finalLineHeight;this.layerElement.appendChild(U)}else{var T=this.textSpans.length,C;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!K||r===0){if(y=T>r?this.textSpans[r].span:St(I?"g":"text"),T<=r){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=y,I){var N=St("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(k.reset(),K&&(b[r].n&&(x=-R,O+=n.yOffset,O+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(n,k,b[r].line,x,O),x+=b[r].l||0,x+=R),I){C=this.globalData.fontManager.getCharData(n.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(C.t===1)$=new Va(C.data,this.globalData,this);else{var G=yT;C.data&&C.data.shapes&&(G=this.buildShapeData(C.data,n.finalSize)),$=new de(G,this.globalData,this)}if(this.textSpans[r].glyph){var q=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(q.layerElement),q.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else K&&y.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),y.textContent=b[r].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}K&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},bi.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},bi.prototype.getValue=function(){var r,s=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)n=this.textSpans[r].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},bi.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;s=d.length;var m,p,b;for(r=0;r<s;r+=1)d[r].n||(m=n[r],p=this.textSpans[r].span,b=this.textSpans[r].glyph,b&&b.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function Gc(r,s,n){this.initElement(r,s,n)}A([Fa],Gc),Gc.prototype.createContent=function(){var r=St("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function Ji(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initFrame(),this.initTransform(r,s,n),this.initHierarchy()}Ji.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},Ji.prototype.renderFrame=function(){},Ji.prototype.getBaseElement=function(){return null},Ji.prototype.destroy=function(){},Ji.prototype.sourceRectAtTime=function(){},Ji.prototype.hide=function(){},A([Xi,Ns,Ls,Zi],Ji);function Ae(){}A([Fe],Ae),Ae.prototype.createNull=function(r){return new Ji(r,this.globalData,this)},Ae.prototype.createShape=function(r){return new de(r,this.globalData,this)},Ae.prototype.createText=function(r){return new bi(r,this.globalData,this)},Ae.prototype.createImage=function(r){return new Fa(r,this.globalData,this)},Ae.prototype.createSolid=function(r){return new Gc(r,this.globalData,this)},Ae.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var n=St("clipPath"),d=St("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=tr();n.setAttribute("id",m),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(n),this.layers=r.layers,this.elements=J(r.layers.length)},Ae.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ae.prototype.updateContainerSize=function(){},Ae.prototype.findIndexByInd=function(r){var s=0,n=this.layers.length;for(s=0;s<n;s+=1)if(this.layers[s].ind===r)return s;return-1},Ae.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var n=this.createItem(this.layers[r]);if(s[r]=n,Qn()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var m=s[d],p=m.getMatte(this.layers[r].tt);n.setMatte(p)}}}},Ae.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,n=this.elements.length;s<n;){if(this.elements[s]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[d],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ae.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,n=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=n-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<n;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ae.prototype.appendElementInPos=function(r,s){var n=r.getBaseElement();if(n){for(var d=0,m;d<s;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(n,m):this.layerElement.appendChild(n)}},Ae.prototype.hide=function(){this.layerElement.style.display="none"},Ae.prototype.show=function(){this.layerElement.style.display="block"};function yi(){}A([Xi,Ns,Ls,Zi,Pa],yi),yi.prototype.initElement=function(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initTransform(r,s,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},yi.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var n,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=d-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},yi.prototype.renderInnerContent=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},yi.prototype.setElements=function(r){this.elements=r},yi.prototype.getElements=function(){return this.elements},yi.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},yi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Va(r,s,n){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?J(this.layers.length):[],this.initElement(r,s,n),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Ae,yi,Da],Va),Va.prototype.createComp=function(r){return new Va(r,this.globalData,this)};function Kc(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=St("svg");var n="";if(s&&s.title){var d=St("title"),m=tr();d.setAttribute("id",m),d.textContent=s.title,this.svgElement.appendChild(d),n+=m}if(s&&s.description){var p=St("desc"),b=tr();p.setAttribute("id",b),p.textContent=s.description,this.svgElement.appendChild(p),n+=" "+b}n&&this.svgElement.setAttribute("aria-labelledby",n);var I=St("defs");this.svgElement.appendChild(I);var y=St("g");this.svgElement.appendChild(y),this.layerElement=y,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Ae],Kc),Kc.prototype.createComp=function(r){return new Va(r,this.globalData,this)},kE("svg",Kc),ji.registerModifier("tm",Rr),ji.registerModifier("pb",wa),ji.registerModifier("rp",Zr),ji.registerModifier("rd",ka),ji.registerModifier("zz",La),ji.registerModifier("op",Ma),Kt})});var gl=globalThis,bl=gl.ShadowRoot&&(gl.ShadyCSS===void 0||gl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yc=Symbol(),Vu=new WeakMap,za=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==Yc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(bl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=Vu.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&Vu.set(t,o))}return o}toString(){return this.cssText}},zu=a=>new za(typeof a=="string"?a:a+"",void 0,Yc),B=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((e,i,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+a[l+1],a[0]);return new za(t,a,Yc)},jc=(a,o)=>{if(bl)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=gl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,a.appendChild(e)}},yl=bl?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return zu(t)})(a):a;var{is:_T,defineProperty:wT,getOwnPropertyDescriptor:kT,getOwnPropertyNames:NT,getOwnPropertySymbols:LT,getPrototypeOf:MT}=Object,oo=globalThis,Bu=oo.trustedTypes,OT=Bu?Bu.emptyScript:"",qc=oo.reactiveElementPolyfillSupport,Ba=(a,o)=>a,Ha={toAttribute(a,o){switch(o){case Boolean:a=a?OT:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},El=(a,o)=>!_T(a,o),Hu={attribute:!0,type:String,converter:Ha,reflect:!1,hasChanged:El},Uu,Gu;(Uu=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Gu=oo.litPropertyMetadata)!=null||(oo.litPropertyMetadata=new WeakMap);var Si=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=Hu){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),i=this.getPropertyDescriptor(o,e,t);i!==void 0&&wT(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var c;let{get:i,set:l}=(c=kT(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let g=i==null?void 0:i.call(this);l.call(this,f),this.requestUpdate(o,g,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Hu}static _$Ei(){if(this.hasOwnProperty(Ba("elementProperties")))return;let o=MT(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Ba("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ba("properties"))){let t=this.properties,e=[...NT(t),...LT(t)];for(let i of e)this.createProperty(i,t[i])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let i=this._$Eu(t,e);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let i of e)t.unshift(yl(i))}else o!==void 0&&t.push(yl(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((e=o.hostConnected)==null||e.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return jc(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$EC(o,t){var l;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let c=(((l=e.converter)==null?void 0:l.toAttribute)!==void 0?e.converter:Ha).toAttribute(t,e.type);this._$Em=o,c==null?this.removeAttribute(i):this.setAttribute(i,c),this._$Em=null}}_$AK(o,t){var l;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let c=e.getPropertyOptions(i),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:Ha;this._$Em=i,this[i]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(o,t,e){var i;if(o!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(o)),!((i=e.hasChanged)!=null?i:El)(this[o],t))return;this.P(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,e){var i;this._$AL.has(o)||this._$AL.set(o,t),e.reflect===!0&&this._$Em!==o&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw o=!1,this._$EU(),l}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},Ku;Si.elementStyles=[],Si.shadowRootOptions={mode:"open"},Si[Ba("elementProperties")]=new Map,Si[Ba("finalized")]=new Map,qc==null||qc({ReactiveElement:Si}),((Ku=oo.reactiveElementVersions)!=null?Ku:oo.reactiveElementVersions=[]).push("2.0.4");var Ga=globalThis,Tl=Ga.trustedTypes,Wu=Tl?Tl.createPolicy("lit-html",{createHTML:a=>a}):void 0,Qc="$lit$",Ii=`lit$${Math.random().toFixed(9).slice(2)}$`,Jc="?"+Ii,RT=`<${Jc}>`,Bo=document,Ka=()=>Bo.createComment(""),Wa=a=>a===null||typeof a!="object"&&typeof a!="function",th=Array.isArray,Ju=a=>th(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",Xc=`[
1
+ "use strict";(()=>{var ET=Object.create;var Wc=Object.defineProperty;var $u=Object.getOwnPropertyDescriptor;var TT=Object.getOwnPropertyNames;var xT=Object.getPrototypeOf,AT=Object.prototype.hasOwnProperty;var ST=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var IT=(a,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of TT(o))!AT.call(a,i)&&i!==t&&Wc(a,i,{get:()=>o[i],enumerable:!(e=$u(o,i))||e.enumerable});return a};var CT=(a,o,t)=>(t=a!=null?ET(xT(a)):{},IT(o||!a||!a.__esModule?Wc(t,"default",{value:a,enumerable:!0}):t,a));var h=(a,o,t,e)=>{for(var i=e>1?void 0:e?$u(o,t):o,l=a.length-1,c;l>=0;l--)(c=a[l])&&(i=(e?c(o,t,i):c(i))||i);return e&&i&&Wc(o,t,i),i};var Wf=ST((an,Yl)=>{typeof navigator<"u"&&function(a,o){typeof an=="object"&&typeof Yl<"u"?Yl.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(an,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},l=function(){return t},c=function(s){o=s},f=function(){return o};function g(r){return document.createElement(r)}function A(r,s){var n,d=r.length,m;for(n=0;n<d;n+=1){m=r[n].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function P(r,s){return Object.getOwnPropertyDescriptor(r,s)}function H(r){function s(){}return s.prototype=r,s}var Q=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].pause()},resume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].resume()},setRate:function(n){var d,m=this.audios.length;for(d=0;d<m;d+=1)this.audios[d].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),X=function(){function r(n,d){var m=0,p=[],b;switch(n){case"int16":case"uint8c":b=1;break;default:b=1.1;break}for(m=0;m<d;m+=1)p.push(b);return p}function s(n,d){return n==="float32"?new Float32Array(d):n==="int16"?new Int16Array(d):n==="uint8c"?new Uint8ClampedArray(d):r(n,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function J(r){return Array.apply(null,{length:r})}function at(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?at=function(n){return typeof n}:at=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},at(r)}var nt=!0,ht=null,yt=null,Ct="",Ot=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Vt=!1,Gt=Math.pow,Dt=Math.sqrt,ae=Math.floor,Ge=Math.max,jt=Math.min,Ee={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,n=r.length;for(s=0;s<n;s+=1)Ee[r[s]]=Math[r[s]]})();function Te(){return{}}Ee.random=Math.random,Ee.abs=function(r){var s=at(r);if(s==="object"&&r.length){var n=J(r.length),d,m=r.length;for(d=0;d<m;d+=1)n[d]=Math.abs(r[d]);return n}return Math.abs(r)};var xe=150,wt=Math.PI/180,oe=.5519;function Ke(r){Vt=!!r}function Qe(r){return Vt?Math.round(r):r}function Je(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function xr(r,s,n,d){this.type=r,this.currentTime=s,this.totalTime=n,this.direction=d<0?-1:1}function Zn(r,s){this.type=r,this.direction=s<0?-1:1}function Km(r,s,n,d){this.type=r,this.currentLoop=n,this.totalLoops=s,this.direction=d<0?-1:1}function Wm(r,s,n){this.type=r,this.firstFrame=s,this.totalFrames=n}function Ym(r,s){this.type=r,this.target=s}function EE(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function TE(r){this.type="configError",this.nativeError=r}function wI(r,s){this.type=r,this.nativeError=s}var tr=function(){var r=0;return function(){return r+=1,Ct+"__lottie_element_"+r}}();function Oc(r,s,n){var d,m,p,b,I,y,k,M;switch(b=Math.floor(r*6),I=r*6-b,y=n*(1-s),k=n*(1-I*s),M=n*(1-(1-I)*s),b%6){case 0:d=n,m=M,p=y;break;case 1:d=k,m=n,p=y;break;case 2:d=y,m=n,p=M;break;case 3:d=y,m=k,p=n;break;case 4:d=M,m=y,p=n;break;case 5:d=n,m=y,p=k;break;default:break}return[d,m,p]}function Rc(r,s,n){var d=Math.max(r,s,n),m=Math.min(r,s,n),p=d-m,b,I=d===0?0:p/d,y=d/255;switch(d){case m:b=0;break;case r:b=s-n+p*(s<n?6:0),b/=6*p;break;case s:b=n-r+p*2,b/=6*p;break;case n:b=r-s+p*4,b/=6*p;break;default:break}return[b,I,y]}function jm(r,s){var n=Rc(r[0]*255,r[1]*255,r[2]*255);return n[1]+=s,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),Oc(n[0],n[1],n[2])}function qm(r,s){var n=Rc(r[0]*255,r[1]*255,r[2]*255);return n[2]+=s,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),Oc(n[0],n[1],n[2])}function Xm(r,s){var n=Rc(r[0]*255,r[1]*255,r[2]*255);return n[0]+=s/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),Oc(n[0],n[1],n[2])}var kI=function(){var r=[],s,n;for(s=0;s<256;s+=1)n=s.toString(16),r[s]=n.length===1?"0"+n:n;return function(d,m,p){return d<0&&(d=0),m<0&&(m=0),p<0&&(p=0),"#"+r[d]+r[m]+r[p]}}(),xE=function(s){nt=!!s},AE=function(){return nt},SE=function(s){ht=s},Qn=function(){return ht},NI=function(s){yt=s},Zm=function(){return yt},Jn=function(s){xe=s},Aa=function(){return xe},IE=function(s){Ct=s},LI=function(){return Ct};function St(r){return document.createElementNS(a,r)}function tl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tl=function(n){return typeof n}:tl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tl(r)}var Sa=function(){var r=1,s=[],n,d,m={onmessage:function(){},postMessage:function(O){n({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function b(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),F=URL.createObjectURL(O);return new Worker(F)}return n=x,m}function I(){d||(d=b(function(O){function F(){function U(rt,_){var D,v,E=rt.length,j,V,ct,gt;for(v=0;v<E;v+=1)if(D=rt[v],"ks"in D&&!D.completed){if(D.completed=!0,D.hasMask){var At=D.masksProperties;for(V=At.length,j=0;j<V;j+=1)if(At[j].pt.k.i)N(At[j].pt.k);else for(gt=At[j].pt.k.length,ct=0;ct<gt;ct+=1)At[j].pt.k[ct].s&&N(At[j].pt.k[ct].s[0]),At[j].pt.k[ct].e&&N(At[j].pt.k[ct].e[0])}D.ty===0?(D.layers=T(D.refId,_),U(D.layers,_)):D.ty===4?C(D.shapes):D.ty===5&&It(D)}}function L(rt,_){if(rt){var D=0,v=rt.length;for(D=0;D<v;D+=1)rt[D].t===1&&(rt[D].data.layers=T(rt[D].data.refId,_),U(rt[D].data.layers,_))}}function w(rt,_){for(var D=0,v=_.length;D<v;){if(_[D].id===rt)return _[D];D+=1}return null}function T(rt,_){var D=w(rt,_);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function C(rt){var _,D=rt.length,v,E;for(_=D-1;_>=0;_-=1)if(rt[_].ty==="sh")if(rt[_].ks.k.i)N(rt[_].ks.k);else for(E=rt[_].ks.k.length,v=0;v<E;v+=1)rt[_].ks.k[v].s&&N(rt[_].ks.k[v].s[0]),rt[_].ks.k[v].e&&N(rt[_].ks.k[v].e[0]);else rt[_].ty==="gr"&&C(rt[_].it)}function N(rt){var _,D=rt.i.length;for(_=0;_<D;_+=1)rt.i[_][0]+=rt.v[_][0],rt.i[_][1]+=rt.v[_][1],rt.o[_][0]+=rt.v[_][0],rt.o[_][1]+=rt.v[_][1]}function $(rt,_){var D=_?_.split("."):[100,100,100];return rt[0]>D[0]?!0:D[0]>rt[0]?!1:rt[1]>D[1]?!0:D[1]>rt[1]?!1:rt[2]>D[2]?!0:D[2]>rt[2]?!1:null}var G=function(){var rt=[4,4,14];function _(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),q=function(){var rt=[4,7,99];return function(_){if(_.chars&&!$(rt,_.v)){var D,v=_.chars.length;for(D=0;D<v;D+=1){var E=_.chars[D];E.data&&E.data.shapes&&(C(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[D].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function _(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),xt=function(){var rt=[4,1,9];function _(v){var E,j=v.length,V,ct;for(E=0;E<j;E+=1)if(v[E].ty==="gr")_(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(ct=v[E].c.k.length,V=0;V<ct;V+=1)v[E].c.k[V].s&&(v[E].c.k[V].s[0]/=255,v[E].c.k[V].s[1]/=255,v[E].c.k[V].s[2]/=255,v[E].c.k[V].s[3]/=255),v[E].c.k[V].e&&(v[E].c.k[V].e[0]/=255,v[E].c.k[V].e[1]/=255,v[E].c.k[V].e[2]/=255,v[E].c.k[V].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===4&&_(v[E].shapes)}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),ft=function(){var rt=[4,4,18];function _(v){var E,j=v.length,V,ct;for(E=j-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(ct=v[E].ks.k.length,V=0;V<ct;V+=1)v[E].ks.k[V].s&&(v[E].ks.k[V].s[0].c=v[E].closed),v[E].ks.k[V].e&&(v[E].ks.k[V].e[0].c=v[E].closed);else v[E].ty==="gr"&&_(v[E].it)}function D(v){var E,j,V=v.length,ct,gt,At,Ft;for(j=0;j<V;j+=1){if(E=v[j],E.hasMask){var $t=E.masksProperties;for(gt=$t.length,ct=0;ct<gt;ct+=1)if($t[ct].pt.k.i)$t[ct].pt.k.c=$t[ct].cl;else for(Ft=$t[ct].pt.k.length,At=0;At<Ft;At+=1)$t[ct].pt.k[At].s&&($t[ct].pt.k[At].s[0].c=$t[ct].cl),$t[ct].pt.k[At].e&&($t[ct].pt.k[At].e[0].c=$t[ct].cl)}E.ty===4&&_(E.shapes)}}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}();function ot(rt){rt.__complete||(xt(rt),G(rt),q(rt),it(rt),ft(rt),U(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function It(rt){rt.t.a.length===0&&"m"in rt.t.p}var pt={};return pt.completeData=ot,pt.checkColors=xt,pt.checkChars=q,pt.checkPathProperties=it,pt.checkShapes=ft,pt.completeLayers=U,pt}if(p.dataManager||(p.dataManager=F()),p.assetLoader||(p.assetLoader=function(){function U(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&tl(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function L(w,T,C,N){var $,G=new XMLHttpRequest;try{G.responseType="json"}catch{}G.onreadystatechange=function(){if(G.readyState===4)if(G.status===200)$=U(G),C($);else try{$=U(G),C($)}catch(q){N&&N(q)}};try{G.open(["G","E","T"].join(""),w,!0)}catch{G.open(["G","E","T"].join(""),T+"/"+w,!0)}G.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.dataManager.completeData(U),p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;p.dataManager.completeData(R),p.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,F=O.id,R=s[F];s[F]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function y(x,O){r+=1;var F="processId_"+r;return s[F]={onComplete:x,onError:O},F}function k(x,O,F){I();var R=y(O,F);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function M(x,O,F){I();var R=y(O,F);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function K(x,O,F){I();var R=y(O,F);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:k,loadData:M,completeAnimation:K}}(),CE=function(){var r=function(){var L=g("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(L,w,T){var C="";if(L.e)C=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),C=w+N}else C=T,C+=L.u?L.u:"",C+=L.p;return C}function m(L){var w=0,T=setInterval((function(){var C=L.getBBox();(C.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function p(L){var w=d(L,this.assetsPath,this.path),T=St("image");Ot?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function b(L){var w=d(L,this.assetsPath,this.path),T=g("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.src=w;var C={img:T,assetData:L};return C}function I(L){var w={assetData:L},T=d(L,this.assetsPath,this.path);return Sa.loadData(T,(function(C){w.img=C,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function y(L,w){this.imagesLoadedCb=w;var T,C=L.length;for(T=0;T<C;T+=1)L[T].layers||(!L[T].t||L[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[T]))):L[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[T]))))}function k(L){this.path=L||""}function M(L){this.assetsPath=L||""}function K(L){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===L)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function F(){return this.totalFootages===this.loadedFootagesCount}function R(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function U(){this._imageLoaded=s.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return U.prototype={loadAssets:y,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:F,destroy:x,getAsset:K,createImgData:b,createImageData:p,imageLoaded:s,footageLoaded:n,setCacheType:R},U}();function Qm(){}Qm.prototype={triggerEvent:function(s,n){if(this._cbs[s])for(var d=this._cbs[s],m=0;m<d.length;m+=1)d[m](n)},addEventListener:function(s,n){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(n),(function(){this.removeEventListener(s,n)}).bind(this)},removeEventListener:function(s,n){if(!n)this._cbs[s]=null;else if(this._cbs[s]){for(var d=0,m=this._cbs[s].length;d<m;)this._cbs[s][d]===n&&(this._cbs[s].splice(d,1),d-=1,m-=1),d+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var _E=function(){function r(s){for(var n=s.split(`\r
2
+ `),d={},m,p=0,b=0;b<n.length;b+=1)m=n[b].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(s){for(var n=[],d=0;d<s.length;d+=1){var m=s[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[d].cm)}catch{try{p.payload=r(s[d].cm)}catch{p.payload={name:s[d].cm}}}n.push(p)}return n}}(),wE=function(){function r(s){this.compositions.push(s)}return function(){function s(n){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),Ia={},kE=function(s,n){Ia[s]=n};function NE(r){return Ia[r]}function LE(){if(Ia.canvas)return"canvas";for(var r in Ia)if(Ia[r])return r;return""}function Ca(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ca=function(n){return typeof n}:Ca=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ca(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=tr(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=AE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=wE(),this.imagePreloader=new CE,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new xr("drawnFrame",0,0,0),this.expressionsPlugin=Qn()};A([Qm],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var n=NE(s);this.renderer=new n(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Sa.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Sa.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Ca(s)!=="object"&&(s=JSON.parse(s));var n={wrapper:r,animationData:s},d=r.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:LE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?n.loop=!1:m==="true"?n.loop=!0:m!==""&&(n.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=p!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var b=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";b==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,n,d=s.length,m=r.layers,p,b=m.length;for(p=0;p<b;p+=1)for(n=0;n<d;){if(s[n].id===m[p].id){s[n]=m[p];break}n+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(d=r.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(r.assets[n]);this.animationData.__complete=!1,Sa.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=Qn();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Sa.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=_E(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=Qn();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var n=typeof r=="number"?r:void 0,d=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(n,d)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,n=0;n<this.markers.length;n+=1)if(s=this.markers[n],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(d,s,n);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,n=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(n=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,s=0)):this.setCurrentRawFrameValue(s),n&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?n=r:this.currentRawFrame+this.firstFrame>s&&(n=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Ca(r[0])==="object"){var n,d=r.length;for(n=0;n<d;n+=1)this.segments.push(r[n])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var n=r.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),s=this.assetsPath+n}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,n=this.assets.length;s<n;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,n){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(s,n)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new xr(r,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new Km(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new Zn(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Wm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new Ym(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new xr(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Km(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new Zn(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Wm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Ym(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new EE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new TE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var me=function(){var r={},s=[],n=0,d=0,m=0,p=!0,b=!1;function I(_){for(var D=0,v=_.target;D<d;)s[D].animation===v&&(s.splice(D,1),D-=1,d-=1,v.isPaused||K()),D+=1}function y(_,D){if(!_)return null;for(var v=0;v<d;){if(s[v].elem===_&&s[v].elem!==null)return s[v].animation;v+=1}var E=new vt;return x(E,_),E.setData(_,D),E}function k(){var _,D=s.length,v=[];for(_=0;_<D;_+=1)v.push(s[_].animation);return v}function M(){m+=1,xt()}function K(){m-=1}function x(_,D){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",K),s.push({elem:D,animation:_}),d+=1}function O(_){var D=new vt;return x(D,null),D.setParams(_),D}function F(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setSpeed(_,D)}function R(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setDirection(_,D)}function U(_){var D;for(D=0;D<d;D+=1)s[D].animation.play(_)}function L(_){var D=_-n,v;for(v=0;v<d;v+=1)s[v].animation.advanceTime(D);n=_,m&&!b?window.requestAnimationFrame(L):p=!0}function w(_){n=_,window.requestAnimationFrame(L)}function T(_){var D;for(D=0;D<d;D+=1)s[D].animation.pause(_)}function C(_,D,v){var E;for(E=0;E<d;E+=1)s[E].animation.goToAndStop(_,D,v)}function N(_){var D;for(D=0;D<d;D+=1)s[D].animation.stop(_)}function $(_){var D;for(D=0;D<d;D+=1)s[D].animation.togglePause(_)}function G(_){var D;for(D=d-1;D>=0;D-=1)s[D].animation.destroy(_)}function q(_,D,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),j,V=E.length;for(j=0;j<V;j+=1)v&&E[j].setAttribute("data-bm-type",v),y(E[j],_);if(D&&V===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=g("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),y(gt,_)}}function it(){var _;for(_=0;_<d;_+=1)s[_].animation.resize()}function xt(){!b&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ft(){b=!0}function ot(){b=!1,xt()}function It(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setVolume(_,D)}function pt(_){var D;for(D=0;D<d;D+=1)s[D].animation.mute(_)}function rt(_){var D;for(D=0;D<d;D+=1)s[D].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=F,r.setDirection=R,r.play=U,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=q,r.resize=it,r.goToAndStop=C,r.destroy=G,r.freeze=ft,r.unfreeze=ot,r.setVolume=It,r.mute=pt,r.unmute=rt,r.getRegisteredAnimations=k,r}(),_a=function(){var r={};r.getBezierEasing=n;var s={};function n(w,T,C,N,$){var G=$||("bez_"+w+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[G])return s[G];var q=new L([w,T,C,N]);return s[G]=q,q}var d=4,m=.001,p=1e-7,b=10,I=11,y=1/(I-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function K(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,C){return((M(T,C)*w+K(T,C))*w+x(T))*w}function F(w,T,C){return 3*M(T,C)*w*w+2*K(T,C)*w+x(T)}function R(w,T,C,N,$){var G,q,it=0;do q=T+(C-T)/2,G=O(q,N,$)-w,G>0?C=q:T=q;while(Math.abs(G)>p&&++it<b);return q}function U(w,T,C,N){for(var $=0;$<d;++$){var G=F(T,C,N);if(G===0)return T;var q=O(T,C,N)-w;T-=q/G}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var C=this._p[0],N=this._p[1],$=this._p[2],G=this._p[3];return this._precomputed||this._precompute(),C===N&&$===G?T:T===0?0:T===1?1:O(this._getTForX(T),N,G)},_precompute:function(){var T=this._p[0],C=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==C||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],C=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*y,T,C)},_getTForX:function(T){for(var C=this._p[0],N=this._p[2],$=this._mSampleValues,G=0,q=1,it=I-1;q!==it&&$[q]<=T;++q)G+=y;--q;var xt=(T-$[q])/($[q+1]-$[q]),ft=G+xt*y,ot=F(ft,C,N);return ot>=m?U(T,ft,C,N):ot===0?ft:R(T,G,G+y,C,N)}},r}(),Jm=function(){function r(s){return s.concat(J(s.length))}return{double:r}}(),el=function(){return function(r,s,n){var d=0,m=r,p=J(m),b={newElement:I,release:y};function I(){var k;return d?(d-=1,k=p[d]):k=s(),k}function y(k){d===m&&(p=Jm.double(p),m*=2),n&&n(k),p[d]=k,d+=1}return b}}(),tu=function(){function r(){return{addedLength:0,percents:X("float32",Aa()),lengths:X("float32",Aa())}}return el(8,r)}(),eu=function(){function r(){return{lengths:[],totalLength:0}}function s(n){var d,m=n.lengths.length;for(d=0;d<m;d+=1)tu.release(n.lengths[d]);n.lengths.length=0}return el(8,r,s)}();function ME(){var r=Math;function s(x,O,F,R,U,L){var w=x*R+O*U+F*L-U*R-L*x-F*O;return w>-.001&&w<.001}function n(x,O,F,R,U,L,w,T,C){if(F===0&&L===0&&C===0)return s(x,O,R,U,w,T);var N=r.sqrt(r.pow(R-x,2)+r.pow(U-O,2)+r.pow(L-F,2)),$=r.sqrt(r.pow(w-x,2)+r.pow(T-O,2)+r.pow(C-F,2)),G=r.sqrt(r.pow(w-R,2)+r.pow(T-U,2)+r.pow(C-L,2)),q;return N>$?N>G?q=N-$-G:q=G-$-N:G>$?q=G-$-N:q=$-N-G,q>-1e-4&&q<1e-4}var d=function(){return function(x,O,F,R){var U=Aa(),L,w,T,C,N,$=0,G,q=[],it=[],xt=tu.newElement();for(T=F.length,L=0;L<U;L+=1){for(N=L/(U-1),G=0,w=0;w<T;w+=1)C=Gt(1-N,3)*x[w]+3*Gt(1-N,2)*N*F[w]+3*(1-N)*Gt(N,2)*R[w]+Gt(N,3)*O[w],q[w]=C,it[w]!==null&&(G+=Gt(q[w]-it[w],2)),it[w]=q[w];G&&(G=Dt(G),$+=G),xt.percents[L]=N,xt.lengths[L]=$}return xt.addedLength=$,xt}}();function m(x){var O=eu.newElement(),F=x.c,R=x.v,U=x.o,L=x.i,w,T=x._length,C=O.lengths,N=0;for(w=0;w<T-1;w+=1)C[w]=d(R[w],R[w+1],U[w],L[w+1]),N+=C[w].addedLength;return F&&T&&(C[w]=d(R[w],R[0],U[w],L[0]),N+=C[w].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function b(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,F,R,U){var L=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+R[0]+"_"+R[1]+"_"+U[0]+"_"+U[1]).replace(/\./g,"p");if(!x[L]){var w=Aa(),T,C,N,$,G,q=0,it,xt,ft=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&s(O[0],O[1],F[0],F[1],O[0]+R[0],O[1]+R[1])&&s(O[0],O[1],F[0],F[1],F[0]+U[0],F[1]+U[1])&&(w=2);var ot=new p(w);for(N=R.length,T=0;T<w;T+=1){for(xt=J(N),G=T/(w-1),it=0,C=0;C<N;C+=1)$=Gt(1-G,3)*O[C]+3*Gt(1-G,2)*G*(O[C]+R[C])+3*(1-G)*Gt(G,2)*(F[C]+U[C])+Gt(G,3)*F[C],xt[C]=$,ft!==null&&(it+=Gt(xt[C]-ft[C],2));it=Dt(it),q+=it,ot.points[T]=new b(it,xt),ft=xt}ot.segmentLength=q,x[L]=ot}return x[L]}}();function y(x,O){var F=O.percents,R=O.lengths,U=F.length,L=ae((U-1)*x),w=x*O.addedLength,T=0;if(L===U-1||L===0||w===R[L])return F[L];for(var C=R[L]>w?-1:1,N=!0;N;)if(R[L]<=w&&R[L+1]>w?(T=(w-R[L])/(R[L+1]-R[L]),N=!1):L+=C,L<0||L>=U-1){if(L===U-1)return F[L];N=!1}return F[L]+(F[L+1]-F[L])*T}function k(x,O,F,R,U,L){var w=y(U,L),T=1-w,C=r.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*R[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*R[1]+w*w*w*O[1])*1e3)/1e3;return[C,N]}var M=X("float32",8);function K(x,O,F,R,U,L,w){U<0?U=0:U>1&&(U=1);var T=y(U,w);L=L>1?1:L;var C=y(L,w),N,$=x.length,G=1-T,q=1-C,it=G*G*G,xt=T*G*G*3,ft=T*T*G*3,ot=T*T*T,It=G*G*q,pt=T*G*q+G*T*q+G*G*C,rt=T*T*q+G*T*C+T*G*C,_=T*T*C,D=G*q*q,v=T*q*q+G*C*q+G*q*C,E=T*C*q+G*C*C+T*q*C,j=T*C*C,V=q*q*q,ct=C*q*q+q*C*q+q*q*C,gt=C*C*q+q*C*C+C*q*C,At=C*C*C;for(N=0;N<$;N+=1)M[N*4]=r.round((it*x[N]+xt*F[N]+ft*R[N]+ot*O[N])*1e3)/1e3,M[N*4+1]=r.round((It*x[N]+pt*F[N]+rt*R[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((D*x[N]+v*F[N]+E*R[N]+j*O[N])*1e3)/1e3,M[N*4+3]=r.round((V*x[N]+ct*F[N]+gt*R[N]+At*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:K,getPointInSegment:k,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:n}}var Xr=ME(),Oo=e,ru=Math.abs;function iu(r,s){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=X("float32",this.pv.length));for(var m=s.lastIndex,p=m,b=this.keyframes.length-1,I=!0,y,k,M;I;){if(y=this.keyframes[p],k=this.keyframes[p+1],p===b-1&&r>=k.t-n){y.h&&(y=k),m=0;break}if(k.t-n>r){m=p;break}p<b-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var K,x,O,F,R,U,L=k.t-n,w=y.t-n,T;if(y.to){M.bezierData||(M.bezierData=Xr.buildBezierData(y.s,k.s||y.e,y.to,y.ti));var C=M.bezierData;if(r>=L||r<w){var N=r>=L?C.points.length-1:0;for(x=C.points[N].point.length,K=0;K<x;K+=1)d[K]=C.points[N].point[K]}else{M.__fnct?U=M.__fnct:(U=_a.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=U),O=U((r-w)/(L-w));var $=C.segmentLength*O,G,q=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(R=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,F=C.points.length;I;){if(q+=C.points[R].partialLength,$===0||O===0||R===C.points.length-1){for(x=C.points[R].point.length,K=0;K<x;K+=1)d[K]=C.points[R].point[K];break}else if($>=q&&$<q+C.points[R+1].partialLength){for(G=($-q)/C.points[R+1].partialLength,x=C.points[R].point.length,K=0;K<x;K+=1)d[K]=C.points[R].point[K]+(C.points[R+1].point[K]-C.points[R].point[K])*G;break}R<F-1?R+=1:I=!1}s._lastPoint=R,s._lastAddedLength=q-C.points[R].partialLength,s._lastKeyframeIndex=p}}else{var it,xt,ft,ot,It;if(b=y.s.length,T=k.s||y.e,this.sh&&y.h!==1)if(r>=L)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=w)d[0]=y.s[0],d[1]=y.s[1],d[2]=y.s[2];else{var pt=ou(y.s),rt=ou(T),_=(r-w)/(L-w);RE(d,OE(pt,rt,_))}else for(p=0;p<b;p+=1)y.h!==1&&(r>=L?O=1:r<w?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?U=M.__fnct[p]:(it=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],xt=y.o.y[p]===void 0?y.o.y[0]:y.o.y[p],ft=y.i.x[p]===void 0?y.i.x[0]:y.i.x[p],ot=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],U=_a.getBezierEasing(it,xt,ft,ot).get,M.__fnct[p]=U)):M.__fnct?U=M.__fnct:(it=y.o.x,xt=y.o.y,ft=y.i.x,ot=y.i.y,U=_a.getBezierEasing(it,xt,ft,ot).get,y.keyframeMetadata=U),O=U((r-w)/(L-w)))),T=k.s||y.e,It=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?d[p]=It:d=It}return s.lastIndex=m,d}function OE(r,s,n){var d=[],m=r[0],p=r[1],b=r[2],I=r[3],y=s[0],k=s[1],M=s[2],K=s[3],x,O,F,R,U;return O=m*y+p*k+b*M+I*K,O<0&&(O=-O,y=-y,k=-k,M=-M,K=-K),1-O>1e-6?(x=Math.acos(O),F=Math.sin(x),R=Math.sin((1-n)*x)/F,U=Math.sin(n*x)/F):(R=1-n,U=n),d[0]=R*m+U*y,d[1]=R*p+U*k,d[2]=R*b+U*M,d[3]=R*I+U*K,d}function RE(r,s){var n=s[0],d=s[1],m=s[2],p=s[3],b=Math.atan2(2*d*p-2*n*m,1-2*d*d-2*m*m),I=Math.asin(2*n*d+2*m*p),y=Math.atan2(2*n*p-2*d*m,1-2*n*n-2*m*m);r[0]=b/wt,r[1]=I/wt,r[2]=y/wt}function ou(r){var s=r[0]*wt,n=r[1]*wt,d=r[2]*wt,m=Math.cos(s/2),p=Math.cos(n/2),b=Math.cos(d/2),I=Math.sin(s/2),y=Math.sin(n/2),k=Math.sin(d/2),M=m*p*b-I*y*k,K=I*y*b+m*p*k,x=I*p*b+m*y*k,O=m*y*b-I*p*k;return[K,x,O,M]}function su(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Oo&&(this._caching.lastFrame>=n&&r>=n||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function rl(r){var s;if(this.propType==="unidimensional")s=r*this.mult,ru(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)s=r[n]*this.mult,ru(this.v[n]-s)>1e-5&&(this.v[n]=s,this._mdf=!0),n+=1}function il(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)n=this.effectsSequence[r](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ol(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function DE(r,s,n,d){this.propType="unidimensional",this.mult=n||1,this.data=s,this.v=n?s.k*n:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=il,this.setVValue=rl,this.addEffect=ol}function PE(r,s,n,d){this.propType="multidimensional",this.mult=n||1,this.data=s,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=X("float32",p),this.pv=X("float32",p),this.vel=X("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=il,this.setVValue=rl,this.addEffect=ol}function FE(r,s,n,d){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Oo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=Oo,this.pv=Oo,this._isFirstFrame=!0,this.getValue=il,this.setVValue=rl,this.interpolateValue=iu,this.effectsSequence=[su.bind(this)],this.addEffect=ol}function $E(r,s,n,d){this.propType="multidimensional";var m,p=s.k.length,b,I,y,k;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(b=s.k[m].s,I=s.k[m+1].s,y=s.k[m].to,k=s.k[m].ti,(b.length===2&&!(b[0]===I[0]&&b[1]===I[1])&&Xr.pointOnLine2D(b[0],b[1],I[0],I[1],b[0]+y[0],b[1]+y[1])&&Xr.pointOnLine2D(b[0],b[1],I[0],I[1],I[0]+k[0],I[1]+k[1])||b.length===3&&!(b[0]===I[0]&&b[1]===I[1]&&b[2]===I[2])&&Xr.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],b[0]+y[0],b[1]+y[1],b[2]+y[2])&&Xr.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],I[0]+k[0],I[1]+k[1],I[2]+k[2]))&&(s.k[m].to=null,s.k[m].ti=null),b[0]===I[0]&&b[1]===I[1]&&y[0]===0&&y[1]===0&&k[0]===0&&k[1]===0&&(b.length===2||b[2]===I[2]&&y[2]===0&&k[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[su.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=il,this.setVValue=rl,this.interpolateValue=iu,this.frameId=-1;var M=s.k[0].s.length;for(this.v=X("float32",M),this.pv=X("float32",M),m=0;m<M;m+=1)this.v[m]=Oo,this.pv[m]=Oo;this._caching={lastFrame:Oo,lastIndex:0,value:X("float32",M)},this.addEffect=ol}var lt=function(){function r(n,d,m,p,b){d.sid&&(d=n.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new DE(n,d,p,b);else if(typeof d.k[0]=="number")I=new PE(n,d,p,b);else switch(m){case 0:I=new FE(n,d,p,b);break;case 1:I=new $E(n,d,p,b);break;default:break}return I.effectsSequence.length&&b.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ne(){}Ne.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,n=this.dynamicProperties.length;for(s=0;s<n;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Ro=function(){function r(){return X("float32",2)}return el(8,r)}();function gi(){this.c=!1,this._length=0,this._maxLength=8,this.v=J(this._maxLength),this.o=J(this._maxLength),this.i=J(this._maxLength)}gi.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var n=0;n<s;)this.v[n]=Ro.newElement(),this.o[n]=Ro.newElement(),this.i[n]=Ro.newElement(),n+=1},gi.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},gi.prototype.doubleArrayLength=function(){this.v=this.v.concat(J(this._maxLength)),this.i=this.i.concat(J(this._maxLength)),this.o=this.o.concat(J(this._maxLength)),this._maxLength*=2},gi.prototype.setXYAt=function(r,s,n,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=Ro.newElement()),p[d][0]=r,p[d][1]=s},gi.prototype.setTripleAt=function(r,s,n,d,m,p,b,I){this.setXYAt(r,s,"v",b,I),this.setXYAt(n,d,"o",b,I),this.setXYAt(m,p,"i",b,I)},gi.prototype.reverse=function(){var r=new gi;r.setPathData(this.c,this._length);var s=this.v,n=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),m=1);var p=this._length-1,b=this._length,I;for(I=m;I<b;I+=1)r.setTripleAt(s[p][0],s[p][1],d[p][0],d[p][1],n[p][0],n[p][1],I,!1),p-=1;return r},gi.prototype.length=function(){return this._length};var De=function(){function r(){return new gi}function s(m){var p=m._length,b;for(b=0;b<p;b+=1)Ro.release(m.v[b]),Ro.release(m.i[b]),Ro.release(m.o[b]),m.v[b]=null,m.i[b]=null,m.o[b]=null;m._length=0,m.c=!1}function n(m){var p=d.newElement(),b,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,b=0;b<I;b+=1)p.setTripleAt(m.v[b][0],m.v[b][1],m.o[b][0],m.o[b][1],m.i[b][0],m.i[b][1],b);return p}var d=el(4,r,s);return d.clone=n,d}();function Dc(){this._length=0,this._maxLength=4,this.shapes=J(this._maxLength)}Dc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(J(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},Dc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Cs=function(){var r={newShapeCollection:m,release:p},s=0,n=4,d=J(n);function m(){var b;return s?(s-=1,b=d[s]):b=new Dc,b}function p(b){var I,y=b._length;for(I=0;I<y;I+=1)De.release(b.shapes[I]);b._length=0,s===n&&(d=Jm.double(d),n*=2),d[s]=b,s+=1}return r}(),sl=function(){var r=-999999;function s(L,w,T){var C=T.lastIndex,N,$,G,q,it,xt,ft,ot,It,pt=this.keyframes;if(L<pt[0].t-this.offsetTime)N=pt[0].s[0],G=!0,C=0;else if(L>=pt[pt.length-1].t-this.offsetTime)N=pt[pt.length-1].s?pt[pt.length-1].s[0]:pt[pt.length-2].e[0],G=!0;else{for(var rt=C,_=pt.length-1,D=!0,v,E,j;D&&(v=pt[rt],E=pt[rt+1],!(E.t-this.offsetTime>L));)rt<_-1?rt+=1:D=!1;if(j=this.keyframesMetadata[rt]||{},G=v.h===1,C=rt,!G){if(L>=E.t-this.offsetTime)ot=1;else if(L<v.t-this.offsetTime)ot=0;else{var V;j.__fnct?V=j.__fnct:(V=_a.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,j.__fnct=V),ot=V((L-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(xt=w._length,ft=N.i[0].length,T.lastIndex=C,q=0;q<xt;q+=1)for(it=0;it<ft;it+=1)It=G?N.i[q][it]:N.i[q][it]+($.i[q][it]-N.i[q][it])*ot,w.i[q][it]=It,It=G?N.o[q][it]:N.o[q][it]+($.o[q][it]-N.o[q][it])*ot,w.o[q][it]=It,It=G?N.v[q][it]:N.v[q][it]+($.v[q][it]-N.v[q][it])*ot,w.v[q][it]=It}function n(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<w&&L<w||C>T&&L>T)||(this._caching.lastIndex=C<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function d(){this.paths=this.localShapeCollection}function m(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,C=L._length;for(T=0;T<C;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function p(L){m(this.v,L)||(this.v=De.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function b(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var C=T===3?w.pt.k:w.ks.k;this.v=De.clone(C),this.pv=De.clone(this.v),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function y(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=b,I.prototype.setVValue=p,I.prototype.addEffect=y;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var C=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=De.clone(this.v),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[n.bind(this)]}k.prototype.getValue=b,k.prototype.interpolateShape=s,k.prototype.setVValue=p,k.prototype.addEffect=y;var M=function(){var L=oe;function w(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=C.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=lt.getProp(T,C.p,1,0,this),this.s=lt.getProp(T,C.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var C=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,G=this.s.v[1]/2,q=this.d!==3,it=this.v;it.v[0][0]=C,it.v[0][1]=N-G,it.v[1][0]=q?C+$:C-$,it.v[1][1]=N,it.v[2][0]=C,it.v[2][1]=N+G,it.v[3][0]=q?C-$:C+$,it.v[3][1]=N,it.i[0][0]=q?C-$*L:C+$*L,it.i[0][1]=N-G,it.i[1][0]=q?C+$:C-$,it.i[1][1]=N-G*L,it.i[2][0]=q?C+$*L:C-$*L,it.i[2][1]=N+G,it.i[3][0]=q?C-$:C+$,it.i[3][1]=N+G*L,it.o[0][0]=q?C+$*L:C-$*L,it.o[0][1]=N-G,it.o[1][0]=q?C+$:C-$,it.o[1][1]=N+G*L,it.o[2][0]=q?C-$*L:C+$*L,it.o[2][1]=N+G,it.o[3][0]=q?C-$:C+$,it.o[3][1]=N-G*L}},A([Ne],w),w}(),K=function(){function L(w,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=lt.getProp(w,T.ir,0,0,this),this.is=lt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(w,T.pt,0,0,this),this.p=lt.getProp(w,T.p,1,0,this),this.r=lt.getProp(w,T.r,0,wt,this),this.or=lt.getProp(w,T.or,0,0,this),this.os=lt.getProp(w,T.os,0,.01,this),this.localShapeCollection=Cs.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,C=Math.PI*2/T,N=!0,$=this.or.v,G=this.ir.v,q=this.os.v,it=this.is.v,xt=2*Math.PI*$/(T*2),ft=2*Math.PI*G/(T*2),ot,It,pt,rt,_=-Math.PI/2;_+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,ot=0;ot<T;ot+=1){It=N?$:G,pt=N?q:it,rt=N?xt:ft;var v=It*Math.cos(_),E=It*Math.sin(_),j=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),V=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-j*rt*pt*D,E-V*rt*pt*D,v+j*rt*pt*D,E+V*rt*pt*D,ot,!0),N=!N,_+=C*D}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,$=this.os.v,G=2*Math.PI*N/(T*4),q,it=-Math.PI*.5,xt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,q=0;q<T;q+=1){var ft=N*Math.cos(it),ot=N*Math.sin(it),It=ft===0&&ot===0?0:ot/Math.sqrt(ft*ft+ot*ot),pt=ft===0&&ot===0?0:-ft/Math.sqrt(ft*ft+ot*ot);ft+=+this.p.v[0],ot+=+this.p.v[1],this.v.setTripleAt(ft,ot,ft-It*G*$*xt,ot-pt*G*$*xt,ft+It*G*$*xt,ot+pt*G*$*xt,q,!0),it+=C*xt}this.paths.length=0,this.paths[0]=this.v}},A([Ne],L),L}(),x=function(){function L(w,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=Cs.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=lt.getProp(w,T.p,1,0,this),this.s=lt.getProp(w,T.s,1,0,this),this.r=lt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],C=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,G=jt(N,$,this.r.v),q=G*(1-oe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-$+G,T+N,C-$+G,T+N,C-$+q,0,!0),this.v.setTripleAt(T+N,C+$-G,T+N,C+$-q,T+N,C+$-G,1,!0),G!==0?(this.v.setTripleAt(T+N-G,C+$,T+N-G,C+$,T+N-q,C+$,2,!0),this.v.setTripleAt(T-N+G,C+$,T-N+q,C+$,T-N+G,C+$,3,!0),this.v.setTripleAt(T-N,C+$-G,T-N,C+$-G,T-N,C+$-q,4,!0),this.v.setTripleAt(T-N,C-$+G,T-N,C-$+q,T-N,C-$+G,5,!0),this.v.setTripleAt(T-N+G,C-$,T-N+G,C-$,T-N+q,C-$,6,!0),this.v.setTripleAt(T+N-G,C-$,T+N-q,C-$,T+N-G,C-$,7,!0)):(this.v.setTripleAt(T-N,C+$,T-N+q,C+$,T-N,C+$,2),this.v.setTripleAt(T-N,C-$,T-N,C-$+q,T-N,C-$,3))):(this.v.setTripleAt(T+N,C-$+G,T+N,C-$+q,T+N,C-$+G,0,!0),G!==0?(this.v.setTripleAt(T+N-G,C-$,T+N-G,C-$,T+N-q,C-$,1,!0),this.v.setTripleAt(T-N+G,C-$,T-N+q,C-$,T-N+G,C-$,2,!0),this.v.setTripleAt(T-N,C-$+G,T-N,C-$+G,T-N,C-$+q,3,!0),this.v.setTripleAt(T-N,C+$-G,T-N,C+$-q,T-N,C+$-G,4,!0),this.v.setTripleAt(T-N+G,C+$,T-N+G,C+$,T-N+q,C+$,5,!0),this.v.setTripleAt(T+N-G,C+$,T+N-q,C+$,T+N-G,C+$,6,!0),this.v.setTripleAt(T+N,C+$-G,T+N,C+$-G,T+N,C+$-q,7,!0)):(this.v.setTripleAt(T-N,C-$,T-N+q,C-$,T-N,C-$,1,!0),this.v.setTripleAt(T-N,C+$,T-N,C+$-q,T-N,C+$,2,!0),this.v.setTripleAt(T+N,C+$,T+N-q,C+$,T+N,C+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Ne],L),L}();function O(L,w,T){var C;if(T===3||T===4){var N=T===3?w.pt:w.ks,$=N.k;$.length?C=new k(L,w,T):C=new I(L,w,T)}else T===5?C=new x(L,w):T===6?C=new M(L,w):T===7&&(C=new K(L,w));return C.k&&L.addDynamicProperty(C),C}function F(){return I}function R(){return k}var U={};return U.getShapeProp=O,U.getConstructorFunction=F,U.getKeyframedConstructorFunction=R,U}();var Pe=function(){var r=Math.cos,s=Math.sin,n=Math.tan,d=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function b(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(1,0,0,0,0,E,-j,0,0,j,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,0,j,0,0,1,0,0,-j,0,E,0,0,0,0,1)}function y(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function k(v,E){return this._t(1,E,v,1,0,0)}function M(v,E){return this.shear(n(v),n(E))}function K(v,E){var j=r(E),V=s(E);return this._t(j,V,0,0,-V,j,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(j,-V,0,0,V,j,0,0,0,0,1,0,0,0,0,1)}function x(v,E,j){return!j&&j!==0&&(j=1),v===1&&E===1&&j===1?this:this._t(v,0,0,0,0,E,0,0,0,0,j,0,0,0,0,1)}function O(v,E,j,V,ct,gt,At,Ft,$t,ue,rr,Qr,ir,Le,ur,Yt){return this.props[0]=v,this.props[1]=E,this.props[2]=j,this.props[3]=V,this.props[4]=ct,this.props[5]=gt,this.props[6]=At,this.props[7]=Ft,this.props[8]=$t,this.props[9]=ue,this.props[10]=rr,this.props[11]=Qr,this.props[12]=ir,this.props[13]=Le,this.props[14]=ur,this.props[15]=Yt,this}function F(v,E,j){return j=j||0,v!==0||E!==0||j!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,j,1):this}function R(v,E,j,V,ct,gt,At,Ft,$t,ue,rr,Qr,ir,Le,ur,Yt){var mt=this.props;if(v===1&&E===0&&j===0&&V===0&&ct===0&&gt===1&&At===0&&Ft===0&&$t===0&&ue===0&&rr===1&&Qr===0)return mt[12]=mt[12]*v+mt[15]*ir,mt[13]=mt[13]*gt+mt[15]*Le,mt[14]=mt[14]*rr+mt[15]*ur,mt[15]*=Yt,this._identityCalculated=!1,this;var Ei=mt[0],to=mt[1],Ti=mt[2],Jr=mt[3],xi=mt[4],Ai=mt[5],or=mt[6],eo=mt[7],ro=mt[8],Dr=mt[9],io=mt[10],Pr=mt[11],$o=mt[12],ul=mt[13],fl=mt[14],vl=mt[15];return mt[0]=Ei*v+to*ct+Ti*$t+Jr*ir,mt[1]=Ei*E+to*gt+Ti*ue+Jr*Le,mt[2]=Ei*j+to*At+Ti*rr+Jr*ur,mt[3]=Ei*V+to*Ft+Ti*Qr+Jr*Yt,mt[4]=xi*v+Ai*ct+or*$t+eo*ir,mt[5]=xi*E+Ai*gt+or*ue+eo*Le,mt[6]=xi*j+Ai*At+or*rr+eo*ur,mt[7]=xi*V+Ai*Ft+or*Qr+eo*Yt,mt[8]=ro*v+Dr*ct+io*$t+Pr*ir,mt[9]=ro*E+Dr*gt+io*ue+Pr*Le,mt[10]=ro*j+Dr*At+io*rr+Pr*ur,mt[11]=ro*V+Dr*Ft+io*Qr+Pr*Yt,mt[12]=$o*v+ul*ct+fl*$t+vl*ir,mt[13]=$o*E+ul*gt+fl*ue+vl*Le,mt[14]=$o*j+ul*At+fl*rr+vl*ur,mt[15]=$o*V+ul*Ft+fl*Qr+vl*Yt,this._identityCalculated=!1,this}function U(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function L(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function C(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,j){return{x:v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}}function $(v,E,j){return v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12]}function G(v,E,j){return v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13]}function q(v,E,j){return v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,j=-this.props[1]/v,V=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,At=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Ft=new Pe;return Ft.props[0]=E,Ft.props[1]=j,Ft.props[4]=V,Ft.props[5]=ct,Ft.props[12]=gt,Ft.props[13]=At,Ft}function xt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ft(v){var E,j=v.length,V=[];for(E=0;E<j;E+=1)V[E]=xt(v[E]);return V}function ot(v,E,j){var V=X("float32",6);if(this.isIdentity())V[0]=v[0],V[1]=v[1],V[2]=E[0],V[3]=E[1],V[4]=j[0],V[5]=j[1];else{var ct=this.props[0],gt=this.props[1],At=this.props[4],Ft=this.props[5],$t=this.props[12],ue=this.props[13];V[0]=v[0]*ct+v[1]*At+$t,V[1]=v[0]*gt+v[1]*Ft+ue,V[2]=E[0]*ct+E[1]*At+$t,V[3]=E[0]*gt+E[1]*Ft+ue,V[4]=j[0]*ct+j[1]*At+$t,V[5]=j[0]*gt+j[1]*Ft+ue}return V}function It(v,E,j){var V;return this.isIdentity()?V=[v,E,j]:V=[v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]],V}function pt(v,E){if(this.isIdentity())return v+","+E;var j=this.props;return Math.round((v*j[0]+E*j[4]+j[12])*100)/100+","+Math.round((v*j[1]+E*j[5]+j[13])*100)/100}function rt(){for(var v=0,E=this.props,j="matrix3d(",V=1e4;v<16;)j+=d(E[v]*V)/V,j+=v===15?")":",",v+=1;return j}function _(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function D(){var v=this.props,E=_(v[0]),j=_(v[1]),V=_(v[4]),ct=_(v[5]),gt=_(v[12]),At=_(v[13]);return"matrix("+E+","+j+","+V+","+ct+","+gt+","+At+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=b,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=K,this.shear=k,this.scale=x,this.setTransform=O,this.translate=F,this.transform=R,this.multiply=U,this.applyToPoint=N,this.applyToX=$,this.applyToY=G,this.applyToZ=q,this.applyToPointArray=It,this.applyToTriplePoints=ot,this.applyToPointStringified=pt,this.toCSS=rt,this.to2dCSS=D,this.clone=T,this.cloneFromProps=C,this.equals=w,this.inversePoints=ft,this.inversePoint=xt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function al(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?al=function(n){return typeof n}:al=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},al(r)}var Kt={},nl="__[STANDALONE]__",au="__[ANIMATIONDATA]__",nu="";function VE(r){c(r)}function lu(){nl===!0?me.searchAnimations(au,nl,nu):me.searchAnimations()}function zE(r){xE(r)}function BE(r){IE(r)}function HE(r){return nl===!0&&(r.animationData=JSON.parse(au)),me.loadAnimation(r)}function UE(r){if(typeof r=="string")switch(r){case"high":Jn(200);break;default:case"medium":Jn(50);break;case"low":Jn(10);break}else!isNaN(r)&&r>1&&Jn(r);Aa()>=50?Ke(!1):Ke(!0)}function GE(){return typeof navigator<"u"}function KE(r,s){r==="expressions"&&SE(s)}function WE(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return sl;case"matrix":return Pe;default:return null}}Kt.play=me.play,Kt.pause=me.pause,Kt.setLocationHref=VE,Kt.togglePause=me.togglePause,Kt.setSpeed=me.setSpeed,Kt.setDirection=me.setDirection,Kt.stop=me.stop,Kt.searchAnimations=lu,Kt.registerAnimation=me.registerAnimation,Kt.loadAnimation=HE,Kt.setSubframeRendering=zE,Kt.resize=me.resize,Kt.goToAndStop=me.goToAndStop,Kt.destroy=me.destroy,Kt.setQuality=UE,Kt.inBrowser=GE,Kt.installPlugin=KE,Kt.freeze=me.freeze,Kt.unfreeze=me.unfreeze,Kt.setVolume=me.setVolume,Kt.mute=me.mute,Kt.unmute=me.unmute,Kt.getRegisteredAnimations=me.getRegisteredAnimations,Kt.useWebWorker=i,Kt.setIDPrefix=BE,Kt.__getFactory=WE,Kt.version="5.12.2";function YE(){document.readyState==="complete"&&(clearInterval(XE),lu())}function jE(r){for(var s=du.split("&"),n=0;n<s.length;n+=1){var d=s[n].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var du="";if(nl){var cu=document.getElementsByTagName("script"),qE=cu.length-1,hu=cu[qE]||{src:""};du=hu.src?hu.src.replace(/^[^\?]+\??/,""):"",nu=jE("renderer")}var XE=setInterval(YE,100);try{!((typeof an>"u"?"undefined":al(an))==="object"&&typeof Yl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Kt)}catch{}var ji=function(){var r={},s={};r.registerModifier=n,r.getModifier=d;function n(m,p){s[m]||(s[m]=p)}function d(m,p,b){return new s[m](p,b)}return r}();function Ar(){}Ar.prototype.initModifierProperties=function(){},Ar.prototype.addShapeToModifier=function(){},Ar.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Cs.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Ar.prototype.init=function(r,s){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ar.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Ne],Ar);function Rr(){}A([Ar],Rr),Rr.prototype.initModifierProperties=function(r,s){this.s=lt.getProp(r,s.s,0,.01,this),this.e=lt.getProp(r,s.e,0,.01,this),this.o=lt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Rr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Rr.prototype.calculateShapeEdges=function(r,s,n,d,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var b=[],I,y=p.length,k;for(I=0;I<y;I+=1)if(k=p[I],!(k.e*m<d||k.s*m>d+n)){var M,K;k.s*m<=d?M=0:M=(k.s*m-d)/n,k.e*m>=d+n?K=1:K=(k.e*m-d)/n,b.push([M,K])}return b.length||b.push([0,0]),b},Rr.prototype.releasePathsData=function(r){var s,n=r.length;for(s=0;s<n;s+=1)eu.release(r[s]);return r.length=0,r},Rr.prototype.processShapes=function(r){var s,n;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?s=1+d:this.s.v<0?s=0+d:s=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,s>n){var m=s;s=n,n=m}s=Math.round(s*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=s,this.eValue=n}else s=this.sValue,n=this.eValue;var p,b,I=this.shapes.length,y,k,M,K,x,O=0;if(n===s)for(b=0;b<I;b+=1)this.shapes[b].localShapeCollection.releaseShapes(),this.shapes[b].shape._mdf=!0,this.shapes[b].shape.paths=this.shapes[b].localShapeCollection,this._mdf&&(this.shapes[b].pathsData.length=0);else if(n===1&&s===0||n===0&&s===1){if(this._mdf)for(b=0;b<I;b+=1)this.shapes[b].pathsData.length=0,this.shapes[b].shape._mdf=!0}else{var F=[],R,U;for(b=0;b<I;b+=1)if(R=this.shapes[b],!R.shape._mdf&&!this._mdf&&!r&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(p=R.shape.paths,k=p._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(M=this.releasePathsData(R.pathsData),y=0;y<k;y+=1)K=Xr.getSegmentsLength(p.shapes[y]),M.push(K),x+=K.totalLength;R.totalShapeLength=x,R.pathsData=M}O+=x,R.shape._mdf=!0}var L=s,w=n,T=0,C;for(b=I-1;b>=0;b-=1)if(R=this.shapes[b],R.shape._mdf){for(U=R.localShapeCollection,U.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):C=[[L,w]],k=C.length,y=0;y<k;y+=1){L=C[y][0],w=C[y][1],F.length=0,w<=1?F.push({s:R.totalShapeLength*L,e:R.totalShapeLength*w}):L>=1?F.push({s:R.totalShapeLength*(L-1),e:R.totalShapeLength*(w-1)}):(F.push({s:R.totalShapeLength*L,e:R.totalShapeLength}),F.push({s:0,e:R.totalShapeLength*(w-1)}));var N=this.addShapes(R,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var G=N.pop();this.addPaths(N,U),N=this.addShapes(R,F[1],G)}else this.addPaths(N,U),N=this.addShapes(R,F[1])}this.addPaths(N,U)}}R.shape.paths=U}}},Rr.prototype.addPaths=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)s.addShape(r[n])},Rr.prototype.addSegment=function(r,s,n,d,m,p,b){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(n[0],n[1],"i",p+1),b&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Rr.prototype.addSegmentFromArray=function(r,s,n,d){s.setXYAt(r[1],r[5],"o",n),s.setXYAt(r[2],r[6],"i",n+1),d&&s.setXYAt(r[0],r[4],"v",n),s.setXYAt(r[3],r[7],"v",n+1)},Rr.prototype.addShapes=function(r,s,n){var d=r.pathsData,m=r.shape.paths.shapes,p,b=r.shape.paths._length,I,y,k=0,M,K,x,O,F=[],R,U=!0;for(n?(K=n._length,R=n._length):(n=De.newElement(),K=0,R=0),F.push(n),p=0;p<b;p+=1){for(x=d[p].lengths,n.c=m[p].c,y=m[p].c?x.length:x.length+1,I=1;I<y;I+=1)if(M=x[I-1],k+M.addedLength<s.s)k+=M.addedLength,n.c=!1;else if(k>s.e){n.c=!1;break}else s.s<=k&&s.e>=k+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],n,K,U),U=!1):(O=Xr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-k)/M.addedLength,(s.e-k)/M.addedLength,x[I-1]),this.addSegmentFromArray(O,n,K,U),U=!1,n.c=!1),k+=M.addedLength,K+=1;if(m[p].c&&x.length){if(M=x[I-1],k<=s.e){var L=x[I-1].addedLength;s.s<=k&&s.e>=k+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],n,K,U),U=!1):(O=Xr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-k)/L,(s.e-k)/L,x[I-1]),this.addSegmentFromArray(O,n,K,U),U=!1,n.c=!1)}else n.c=!1;k+=M.addedLength,K+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],"i",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),k>s.e)break;p<b-1&&(n=De.newElement(),U=!0,F.push(n),K=0)}return F};function wa(){}A([Ar],wa),wa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},wa.prototype.processPath=function(r,s){var n=s/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var b=De.newElement();b.c=r.c;var I,y,k,M,K,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*n,y=r.v[p][1]+(d[1]-r.v[p][1])*n,k=r.o[p][0]+(d[0]-r.o[p][0])*-n,M=r.o[p][1]+(d[1]-r.o[p][1])*-n,K=r.i[p][0]+(d[0]-r.i[p][0])*-n,x=r.i[p][1]+(d[1]-r.i[p][1])*-n,b.setTripleAt(I,y,k,M,K,x,p);return b},wa.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,b=this.amount.v;if(b!==0){var I,y;for(n=0;n<d;n+=1){if(I=this.shapes[n],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Pc=function(){var r=[0,0];function s(y){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&y.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&y.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&y.skewFromAxis(-this.sk.v,this.sa.v),this.r?y.rotate(-this.r.v):y.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?y.translate(this.px.v,this.py.v,-this.pz.v):y.translate(this.px.v,this.py.v,0):y.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,K;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),K=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),K=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,K=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],K=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),K[0]=x.getValueAtTime(x.keyframes[0].t/k,0),K[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),K[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),K[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],K[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),K[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else K=r,M=K;this.v.rotate(-Math.atan2(M[1]-K[1],M[0]-K[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(y){this._addDynamicProperty(y),this.elem.addDynamicProperty(y),this._isDirty=!0}function b(y,k,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),k.p&&k.p.s?(this.px=lt.getProp(y,k.p.x,0,0,this),this.py=lt.getProp(y,k.p.y,0,0,this),k.p.z&&(this.pz=lt.getProp(y,k.p.z,0,0,this))):this.p=lt.getProp(y,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=lt.getProp(y,k.rx,0,wt,this),this.ry=lt.getProp(y,k.ry,0,wt,this),this.rz=lt.getProp(y,k.rz,0,wt,this),k.or.k[0].ti){var K,x=k.or.k.length;for(K=0;K<x;K+=1)k.or.k[K].to=null,k.or.k[K].ti=null}this.or=lt.getProp(y,k.or,1,wt,this),this.or.sh=!0}else this.r=lt.getProp(y,k.r||{k:0},0,wt,this);k.sk&&(this.sk=lt.getProp(y,k.sk,0,wt,this),this.sa=lt.getProp(y,k.sa,0,wt,this)),this.a=lt.getProp(y,k.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(y,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=lt.getProp(y,k.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}b.prototype={applyToMatrix:s,getValue:n,precalculateMatrix:d,autoOrient:m},A([Ne],b),b.prototype.addDynamicProperty=p,b.prototype._addDynamicProperty=Ne.prototype.addDynamicProperty;function I(y,k,M){return new b(y,k,M)}return{getTransformProperty:I}}();function Zr(){}A([Ar],Zr),Zr.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=lt.getProp(r,s.c,0,null,this),this.o=lt.getProp(r,s.o,0,null,this),this.tr=Pc.getTransformProperty(r,s.tr,this),this.so=lt.getProp(r,s.tr.so,0,.01,this),this.eo=lt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},Zr.prototype.applyTransforms=function(r,s,n,d,m,p){var b=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),y=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*b*m,d.p.v[1]*b*m,d.p.v[2]),s.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),s.rotate(-d.r.v*b*m),s.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(p?1/I:I,p?1/y:y),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Zr.prototype.init=function(r,s,n,d){for(this.elem=r,this.arr=s,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[n]);n>0;)n-=1,this._elements.unshift(s[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Zr.prototype.resetElements=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Zr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Zr.prototype.changeGroupRender=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)r[n]._render=s,r[n].ty==="gr"&&this.changeGroupRender(r[n].it,s)},Zr.prototype.processShapes=function(r){var s,n,d,m,p,b=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var y={it:this.cloneElements(this._elements),ty:"gr"};y.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,y),this._groups.splice(0,0,y),this._currentCopies+=1}this.elem.reloadShapes(),b=!0}p=0;var k;for(d=0;d<=this._groups.length-1;d+=1){if(k=p<I,this._groups[d]._render=k,this.changeGroupRender(this._groups[d].it,k),!k){var M=this.elemsData[d].it,K=M[M.length-1];K.transform.op.v!==0?(K.transform.op._mdf=!0,K.transform.op.v=0):K.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,F=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,U=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>F;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}d=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,C;p;){if(s=this.elemsData[d].it,n=s[s.length-1].transform.mProps.v.props,C=n.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),w!==0){for((d!==0&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<C;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)n[T]=this.matrix.props[T];w+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)s=this.elemsData[d].it,n=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,d+=m;return b},Zr.prototype.addShape=function(){};function ka(){}A([Ar],ka),ka.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=lt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ka.prototype.processPath=function(r,s){var n=De.newElement();n.c=r.c;var d,m=r._length,p,b,I,y,k,M,K=0,x,O,F,R,U,L;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],b=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===b[0]&&p[1]===b[1]?(d===0||d===m-1)&&!r.c?(n.setTripleAt(p[0],p[1],I[0],I[1],b[0],b[1],K),K+=1):(d===0?y=r.v[m-1]:y=r.v[d-1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,U=p[0]+(y[0]-p[0])*M,x=U,L=p[1]-(p[1]-y[1])*M,O=L,F=x-(x-p[0])*oe,R=O-(O-p[1])*oe,n.setTripleAt(x,O,F,R,U,L,K),K+=1,d===m-1?y=r.v[0]:y=r.v[d+1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,F=p[0]+(y[0]-p[0])*M,x=F,R=p[1]+(y[1]-p[1])*M,O=R,U=x-(x-p[0])*oe,L=O-(O-p[1])*oe,n.setTripleAt(x,O,F,R,U,L,K),K+=1):(n.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],K),K+=1);return n},ka.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,b=this.rd.v;if(b!==0){var I,y;for(n=0;n<d;n+=1){if(I=this.shapes[n],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ll(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Fc(r){return Math.abs(r)<=1e-5}function pu(r,s,n){return r*(1-n)+s*n}function qi(r,s,n){return[pu(r[0],s[0],n),pu(r[1],s[1],n)]}function ZE(r,s,n){if(r===0)return[];var d=s*s-4*r*n;if(d<0)return[];var m=-s/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function mu(r,s,n,d){return[-r+3*s-3*n+d,3*r-6*s+3*n,-3*r+3*s,r]}function uu(r){return new ne(r,r,r,r,!1)}function ne(r,s,n,d,m){m&&ws(r,s)&&(s=qi(r,d,1/3)),m&&ws(n,d)&&(n=qi(r,d,2/3));var p=mu(r[0],s[0],n[0],d[0]),b=mu(r[1],s[1],n[1],d[1]);this.a=[p[0],b[0]],this.b=[p[1],b[1]],this.c=[p[2],b[2]],this.d=[p[3],b[3]],this.points=[r,s,n,d]}ne.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},ne.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},ne.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},ne.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},ne.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Fc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,n=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(n<0)return[];var d=Math.sqrt(n);return Fc(d)?d>0&&d<1?[s]:[]:[s-d,s+d].filter(function(m){return m>0&&m<1})},ne.prototype.split=function(r){if(r<=0)return[uu(this.points[0]),this];if(r>=1)return[this,uu(this.points[this.points.length-1])];var s=qi(this.points[0],this.points[1],r),n=qi(this.points[1],this.points[2],r),d=qi(this.points[2],this.points[3],r),m=qi(s,n,r),p=qi(n,d,r),b=qi(m,p,r);return[new ne(this.points[0],s,m,b,!0),new ne(b,p,d,this.points[3],!0)]};function fu(r,s){var n=r.points[0][s],d=r.points[r.points.length-1][s];if(n>d){var m=d;d=n,n=m}for(var p=ZE(3*r.a[s],2*r.b[s],r.c[s]),b=0;b<p.length;b+=1)if(p[b]>0&&p[b]<1){var I=r.point(p[b])[s];I<n?n=I:I>d&&(d=I)}return{min:n,max:d}}ne.prototype.bounds=function(){return{x:fu(this,0),y:fu(this,1)}},ne.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function dl(r,s,n){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(s+n)/2,t1:s,t2:n}}function vu(r){var s=r.bez.split(.5);return[dl(s[0],r.t1,r.t),dl(s[1],r.t,r.t2)]}function QE(r,s){return Math.abs(r.cx-s.cx)*2<r.width+s.width&&Math.abs(r.cy-s.cy)*2<r.height+s.height}function Na(r,s,n,d,m,p){if(QE(r,s)){if(n>=p||r.width<=d&&r.height<=d&&s.width<=d&&s.height<=d){m.push([r.t,s.t]);return}var b=vu(r),I=vu(s);Na(b[0],I[0],n+1,d,m,p),Na(b[0],I[1],n+1,d,m,p),Na(b[1],I[0],n+1,d,m,p),Na(b[1],I[1],n+1,d,m,p)}}ne.prototype.intersections=function(r,s,n){s===void 0&&(s=2),n===void 0&&(n=7);var d=[];return Na(dl(this,0,1),dl(r,0,1),0,s,d,n),d},ne.shapeSegment=function(r,s){var n=(s+1)%r.length();return new ne(r.v[s],r.o[s],r.i[n],r.v[n],!0)},ne.shapeSegmentInverted=function(r,s){var n=(s+1)%r.length();return new ne(r.v[n],r.i[n],r.o[s],r.v[s],!0)};function $c(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function cl(r,s,n,d){var m=[r[0],r[1],1],p=[s[0],s[1],1],b=[n[0],n[1],1],I=[d[0],d[1],1],y=$c($c(m,p),$c(b,I));return Fc(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function _s(r,s,n){return[r[0]+Math.cos(s)*n,r[1]-Math.sin(s)*n]}function Vc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function ws(r,s){return ll(r[0],s[0])&&ll(r[1],s[1])}function La(){}A([Ar],La),La.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=lt.getProp(r,s.s,0,null,this),this.frequency=lt.getProp(r,s.r,0,null,this),this.pointsType=lt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function gu(r,s,n,d,m,p,b){var I=n-Math.PI/2,y=n+Math.PI/2,k=s[0]+Math.cos(n)*d*m,M=s[1]-Math.sin(n)*d*m;r.setTripleAt(k,M,k+Math.cos(I)*p,M-Math.sin(I)*p,k+Math.cos(y)*b,M-Math.sin(y)*b,r.length())}function JE(r,s){var n=[s[0]-r[0],s[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return m}function tT(r,s){var n=s===0?r.length()-1:s-1,d=(s+1)%r.length(),m=r.v[n],p=r.v[d],b=JE(m,p);return Math.atan2(0,1)-Math.atan2(b[1],b[0])}function bu(r,s,n,d,m,p,b){var I=tT(s,n),y=s.v[n%s._length],k=s.v[n===0?s._length-1:n-1],M=s.v[(n+1)%s._length],K=p===2?Math.sqrt(Math.pow(y[0]-k[0],2)+Math.pow(y[1]-k[1],2)):0,x=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;gu(r,s.v[n%s._length],I,b,d,x/((m+1)*2),K/((m+1)*2),p)}function eT(r,s,n,d,m,p){for(var b=0;b<d;b+=1){var I=(b+1)/(d+1),y=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,k=s.normalAngle(I),M=s.point(I);gu(r,M,k,p,n,y/((d+1)*2),y/((d+1)*2),m),p=-p}return p}La.prototype.processPath=function(r,s,n,d){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var b=-1,I=ne.shapeSegment(r,0);bu(p,r,0,s,n,d,b);for(var y=0;y<m;y+=1)b=eT(p,I,s,n,d,-b),y===m-1&&!r.c?I=null:I=ne.shapeSegment(r,(y+1)%m),bu(p,r,y+1,s,n,d,b);return p},La.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,b=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(b!==0){var k,M;for(n=0;n<d;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,I,y));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function zc(r,s,n){var d=Math.atan2(s[0]-r[0],s[1]-r[1]);return[_s(r,d,n),_s(s,d,n)]}function ks(r,s){var n,d,m,p,b,I,y;y=zc(r.points[0],r.points[1],s),n=y[0],d=y[1],y=zc(r.points[1],r.points[2],s),m=y[0],p=y[1],y=zc(r.points[2],r.points[3],s),b=y[0],I=y[1];var k=cl(n,d,m,p);k===null&&(k=d);var M=cl(b,I,m,p);return M===null&&(M=b),new ne(n,k,M,I)}function yu(r,s,n,d,m){var p=s.points[3],b=n.points[0];if(d===3||ws(p,b))return p;if(d===2){var I=-s.tangentAngle(1),y=-n.tangentAngle(0)+Math.PI,k=cl(p,_s(p,I+Math.PI/2,100),b,_s(b,I+Math.PI/2,100)),M=k?Vc(k,p):Vc(p,b)/2,K=_s(p,I,2*M*oe);return r.setXYAt(K[0],K[1],"o",r.length()-1),K=_s(b,y,2*M*oe),r.setTripleAt(b[0],b[1],b[0],b[1],K[0],K[1],r.length()),b}var x=ws(p,s.points[2])?s.points[0]:s.points[2],O=ws(b,n.points[1])?n.points[3]:n.points[1],F=cl(x,p,b,O);return F&&Vc(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function Eu(r,s){var n=r.intersections(s);return n.length&&ll(n[0][0],1)&&n.shift(),n.length?n[0]:null}function Tu(r,s){var n=r.slice(),d=s.slice(),m=Eu(r[r.length-1],s[0]);return m&&(n[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=Eu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[n,d]}function rT(r){for(var s,n=1;n<r.length;n+=1)s=Tu(r[n-1],r[n]),r[n-1]=s[0],r[n]=s[1];return r.length>1&&(s=Tu(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function xu(r,s){var n=r.inflectionPoints(),d,m,p,b;if(n.length===0)return[ks(r,s)];if(n.length===1||ll(n[1],1))return p=r.split(n[0]),d=p[0],m=p[1],[ks(d,s),ks(m,s)];p=r.split(n[0]),d=p[0];var I=(n[1]-n[0])/(1-n[0]);return p=p[1].split(I),b=p[0],m=p[1],[ks(d,s),ks(b,s),ks(m,s)]}function Ma(){}A([Ar],Ma),Ma.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this.miterLimit=lt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ma.prototype.processPath=function(r,s,n,d){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var b,I,y,k=[];for(b=0;b<p;b+=1)y=ne.shapeSegment(r,b),k.push(xu(y,s));if(!r.c)for(b=p-1;b>=0;b-=1)y=ne.shapeSegmentInverted(r,b),k.push(xu(y,s));k=rT(k);var M=null,K=null;for(b=0;b<k.length;b+=1){var x=k[b];for(K&&(M=yu(m,K,x[0],n,d)),K=x[x.length-1],I=0;I<x.length;I+=1)y=x[I],M&&ws(y.points[0],M)?m.setXYAt(y.points[1][0],y.points[1][1],"o",m.length()-1):m.setTripleAt(y.points[0][0],y.points[0][1],y.points[1][0],y.points[1][1],y.points[0][0],y.points[0][1],m.length()),m.setTripleAt(y.points[3][0],y.points[3][1],y.points[3][0],y.points[3][1],y.points[2][0],y.points[2][1],m.length()),M=y.points[3]}return k.length&&yu(m,K,k[0][0],n,d),m},Ma.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,b=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(b!==0){var k,M;for(n=0;n<d;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,y,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Au(r){for(var s=r.fStyle?r.fStyle.split(" "):[],n="normal",d="normal",m=s.length,p,b=0;b<m;b+=1)switch(p=s[b].toLowerCase(),p){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:r.fWeight||n}}var Do=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,m=917631,p=917601,b=917626,I=65039,y=8205,k=127462,M=127487,K=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var D=_.split(","),v,E=D.length,j=[];for(v=0;v<E;v+=1)D[v]!=="sans-serif"&&D[v]!=="monospace"&&j.push(D[v]);return j.join(",")}function O(_,D){var v=g("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=D;var E=g("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var j=E.offsetWidth;return E.style.fontFamily=x(_)+", "+D,{node:E,w:j,parent:v}}function F(){var _,D=this.fonts.length,v,E,j=D;for(_=0;_<D;_+=1)this.fonts[_].loaded?j-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(v=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,v.offsetWidth!==E?(j-=1,this.fonts[_].loaded=!0):(v=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,v.offsetWidth!==E&&(j-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));j!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(_,D){var v=document.body&&D?"svg":"canvas",E,j=Au(_);if(v==="svg"){var V=St("text");V.style.fontSize="100px",V.setAttribute("font-family",_.fFamily),V.setAttribute("font-style",j.style),V.setAttribute("font-weight",j.weight),V.textContent="1",_.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",_.fClass)):V.style.fontFamily=_.fFamily,D.appendChild(V),E=V}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=j.style+" "+j.weight+" 100px "+_.fFamily,E=ct}function gt(At){return v==="svg"?(E.textContent=At,E.getComputedTextLength()):E.measureText(At).width}return{measureText:gt}}function U(_,D){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(rr){rr.helper=R(rr),rr.cache={}}),this.fonts=_.list;return}var v=_.list,E,j=v.length,V=j;for(E=0;E<j;E+=1){var ct=!0,gt,At;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,V-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Ft=g("style");Ft.setAttribute("f-forigin",v[E].fOrigin),Ft.setAttribute("f-origin",v[E].origin),Ft.setAttribute("f-family",v[E].fFamily),Ft.type="text/css",Ft.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",D.appendChild(Ft)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),At=0;At<gt.length;At+=1)gt[At].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var $t=g("link");$t.setAttribute("f-forigin",v[E].fOrigin),$t.setAttribute("f-origin",v[E].origin),$t.type="text/css",$t.rel="stylesheet",$t.href=v[E].fPath,document.body.appendChild($t)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),At=0;At<gt.length;At+=1)v[E].fPath===gt[At].src&&(ct=!1);if(ct){var ue=g("link");ue.setAttribute("f-forigin",v[E].fOrigin),ue.setAttribute("f-origin",v[E].origin),ue.setAttribute("rel","stylesheet"),ue.setAttribute("href",v[E].fPath),D.appendChild(ue)}}v[E].helper=R(v[E],D),v[E].cache={},this.fonts.push(v[E])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var D,v=_.length,E,j=this.chars.length,V;for(D=0;D<v;D+=1){for(E=0,V=!1;E<j;)this.chars[E].style===_[D].style&&this.chars[E].fFamily===_[D].fFamily&&this.chars[E].ch===_[D].ch&&(V=!0),E+=1;V||(this.chars.push(_[D]),j+=1)}}}function w(_,D,v){for(var E=0,j=this.chars.length;E<j;){if(this.chars[E].ch===_&&this.chars[E].style===D&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,D,v)),s}function T(_,D,v){var E=this.getFontByName(D),j=_;if(!E.cache[j]){var V=E.helper;if(_===" "){var ct=V.measureText("|"+_+"|"),gt=V.measureText("||");E.cache[j]=(ct-gt)/100}else E.cache[j]=V.measureText(_)/100}return E.cache[j]*v}function C(_){for(var D=0,v=this.fonts.length;D<v;){if(this.fonts[D].fName===_)return this.fonts[D];D+=1}return this.fonts[0]}function N(_){var D=0,v=_.charCodeAt(0);if(v>=55296&&v<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(D=(v-55296)*1024+E-56320+65536)}return D}function $(_,D){var v=_.toString(16)+D.toString(16);return K.indexOf(v)!==-1}function G(_){return _===y}function q(_){return _===I}function it(_){var D=N(_);return D>=k&&D<=M}function xt(_){return it(_.substr(0,2))&&it(_.substr(2,2))}function ft(_){return n.indexOf(_)!==-1}function ot(_,D){var v=N(_.substr(D,2));if(v!==d)return!1;var E=0;for(D+=2;E<5;){if(v=N(_.substr(D,2)),v<p||v>b)return!1;E+=1,D+=2}return N(_.substr(D,2))===m}function It(){this.isLoaded=!0}var pt=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)};pt.isModifier=$,pt.isZeroWidthJoiner=G,pt.isFlagEmoji=xt,pt.isRegionalCode=it,pt.isCombinedCharacter=ft,pt.isRegionalFlag=ot,pt.isVariationSelector=q,pt.BLACK_FLAG_CODE_POINT=d;var rt={addChars:L,addFonts:U,getCharData:w,getFontByName:C,measureText:T,checkLoadedFonts:F,setIsLoaded:It};return pt.prototype=rt,pt}();function Su(r){this.animationData=r}Su.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function iT(r){return new Su(r)}function hl(){}hl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,n=this.renderableComponents.length;for(s=0;s<n;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Bc=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return r[s]||""}}();function oT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function sT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function aT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function nT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function lT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function dT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function cT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function hT(){this.p={}}function Iu(r,s){var n=r.ef||[];this.effectElements=[];var d,m=n.length,p;for(d=0;d<m;d+=1)p=new Oa(n[d],s),this.effectElements.push(p)}function Oa(r,s){this.init(r,s)}A([Ne],Oa),Oa.prototype.getValue=Oa.prototype.iterateDynamicProperties,Oa.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var n,d=this.data.ef.length,m,p=this.data.ef;for(n=0;n<d;n+=1){switch(m=null,p[n].ty){case 0:m=new oT(p[n],s,this);break;case 1:m=new sT(p[n],s,this);break;case 2:m=new aT(p[n],s,this);break;case 3:m=new nT(p[n],s,this);break;case 4:case 7:m=new cT(p[n],s,this);break;case 10:m=new lT(p[n],s,this);break;case 11:m=new dT(p[n],s,this);break;case 5:m=new Iu(p[n],s,this);break;default:m=new hT(p[n],s,this);break}m&&this.effectElements.push(m)}};function Xi(){}Xi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,n=this.data.masksProperties.length;s<n;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Zm();if(s){var n=s("layer"),d=s("effects"),m=s("shape"),p=s("text"),b=s("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=b(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=Bc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=s},initBaseData:function(s,n,d){this.globalData=n,this.comp=d,this.data=s,this.layerId=tr(),this.data.sr||(this.data.sr=1),this.effectsManager=new Iu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Zi(){}Zi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,n){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function Qi(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,n)}Qi.prototype.prepareFrame=function(){},A([hl,Xi,Zi],Qi),Qi.prototype.getBaseElement=function(){return null},Qi.prototype.renderFrame=function(){},Qi.prototype.destroy=function(){},Qi.prototype.initExpressions=function(){var r=Zm();if(r){var s=r("footage");this.layerInterface=s(this)}},Qi.prototype.getFootageData=function(){return this.footageData};function er(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=lt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}er.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([hl,Xi,Zi],er),er.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},er.prototype.show=function(){},er.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},er.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},er.prototype.resume=function(){this._canPlay=!0},er.prototype.setRate=function(r){this.audio.rate(r)},er.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},er.prototype.getBaseElement=function(){return null},er.prototype.destroy=function(){},er.prototype.sourceRectAtTime=function(){},er.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,n=this.layers.length,d;for(this.completeLayers=!0,s=n-1;s>=0;s-=1)this.elements[s]||(d=this.layers[s],d.ip-d.st<=r-this.layers[s].st&&d.op-d.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new er(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new Qi(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,n=r.length,d,m=this.layers.length;for(s=0;s<n;s+=1)for(d=0;d<m;){if(this.layers[d].id===r[s].id){this.layers[d]=r[s];break}d+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,n){for(var d=this.elements,m=this.layers,p=0,b=m.length;p<b;)m[p].ind==s&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(n.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,n):r.setHierarchy(n))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,n=r.length;for(s=0;s<n;s+=1)if(r[s].xt){var d=this.createComp(r[s]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Fe.prototype.getElementById=function(r){var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),n;if(typeof s=="number")n=this.elements[s];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===s){n=this.elements[d];break}}return r.length===0?n:n.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Do,this.globalData.slotManager=iT(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var pT={TRANSFORM_EFFECT:"transformEFfect"};function Ns(){}Ns.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?Pc.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,n=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,n.cloneFromProps(s),d=0;d<m;d+=1)n.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<n;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),s=1;s<n;s+=1){var m=this.localTransforms[s].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<n;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(pT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var n=0,d=s.length;for(n=0;n<d;n+=1)this.localTransforms.push(s[n])}}},globalToLocal:function(s){var n=[];n.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&n.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,b=n.length,I;for(p=0;p<b;p+=1)I=n[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Po(r,s,n){this.data=r,this.element=s,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=J(p),this.solidPath="";var b,I=this.masksProperties,y=0,k=[],M,K,x=tr(),O,F,R,U,L="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(L="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=St("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,b=St("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:sl.getShapeProp(this.element,I[m],3),elem:b,lastPath:""},d.appendChild(b);else{y+=1,b.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),b.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(L="mask",w="mask",U=lt.getProp(this.element,I[m].x,0,null,this.element),T=tr(),F=St("filter"),F.setAttribute("id",T),R=St("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),F.appendChild(R),d.appendChild(F),b.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(R=null,U=null),this.storedData[m]={elem:b,x:U,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){K=k.length;var C=St("g");for(M=0;M<K;M+=1)C.appendChild(k[M]);var N=St("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+y),N.appendChild(b),d.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+y+")"),k.length=0,k.push(C)}else k.push(b);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:b,lastPath:"",op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:sl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=St(L),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);y>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Po.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Po.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||r)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||r)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[n].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||r))){var m=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),m.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},Po.prototype.getMaskelement=function(){return this.maskElement},Po.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Po.prototype.drawPath=function(r,s,n){var d=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),n.lastPath!==d){var b="";n.elem&&(s.c&&(b=r.inv?this.solidPath+d:d),n.elem.setAttribute("d",b)),n.lastPath=d}},Po.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ra=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=n;function s(d,m){var p=St("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function n(){var d=St("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),Cu=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),pl={},_u="filter_result_";function Hc(r){var s,n="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=tr(),p=Ra.createFilter(m,!0),b=0;this.filters=[];var I;for(s=0;s<d;s+=1){I=null;var y=r.data.ef[s].ty;if(pl[y]){var k=pl[y].effect;I=new k(p,r.effectsManager.effectElements[s],r,_u+b,n),n=_u+b,pl[y].countsAsEffect&&(b+=1)}I&&this.filters.push(I)}b&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}Hc.prototype.renderFrame=function(r){var s,n=this.filters.length;for(s=0;s<n;s+=1)this.filters[s].renderFrame(r)},Hc.prototype.getEffects=function(r){var s,n=this.filters.length,d=[];for(s=0;s<n;s+=1)this.filters[s].type===r&&d.push(this.filters[s]);return d};function MI(r,s,n){pl[r]={effect:s,countsAsEffect:n}}function Da(){}Da.prototype={initRendererElement:function(){this.layerElement=St("g")},createContainerElements:function(){this.matteElement=St("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var n=St("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),s=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=St("clipPath"),m=St("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=tr();if(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var b=St("g");b.setAttribute("clip-path","url("+f()+"#"+p+")"),b.appendChild(this.layerElement),this.transformedElement=b,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Po(this.data,this,this.globalData),this.renderableEffectsManager=new Hc(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var n=this.layerId+"_"+s,d,m,p,b;if(s===1||s===3){var I=St("mask");I.setAttribute("id",n),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=St("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Cu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),d=tr(),m=Ra.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(Ra.createAlphaToLuminanceFilter()),b=St("g"),b.appendChild(p),I.appendChild(b),b.setAttribute("filter","url("+f()+"#"+d+")"))}else if(s===2){var y=St("mask");y.setAttribute("id",n),y.setAttribute("mask-type","alpha");var k=St("g");y.appendChild(k),d=tr(),m=Ra.createFilter(d);var M=St("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var K=St("feFuncA");K.setAttribute("type","table"),K.setAttribute("tableValues","1.0 0.0"),M.appendChild(K),this.globalData.defs.appendChild(m);var x=St("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+d+")"),k.appendChild(x),p=St("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),Cu.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(Ra.createAlphaToLuminanceFilter()),b=St("g"),k.appendChild(x),b.appendChild(this.layerElement),k.appendChild(b)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=n}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Ls(){}Ls.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Pa(){}(function(){var r={initElement:function(n,d,m){this.initFrame(),this.initBaseData(n,d,m),this.initTransform(n,d,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.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(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([hl,H(r)],Pa)})();function Fa(r,s,n){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Xi,Ns,Da,Ls,Zi,Pa],Fa),Fa.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=St("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Fa.prototype.sourceRectAtTime=function(){return this.sourceRect};function mT(r,s){this.elem=r,this.pos=s}function wu(){}wu.prototype={addShapeToModifiers:function(s){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,n=this.shapes.length;for(s=0;s<n;s+=1)this.shapes[s].sh.reset();n=this.shapeModifiers.length;var d;for(s=n-1;s>=0&&(d=this.shapeModifiers[s].processShapes(this._isFirstFrame),!d);s-=1);}},searchProcessedElement:function(s){for(var n=this.processedElements,d=0,m=n.length;d<m;){if(n[d].elem===s)return n[d].pos;d+=1}return 0},addProcessedElement:function(s,n){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===s){d[m].pos=n;return}d.push(new mT(s,n))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var ku={1:"butt",2:"round",3:"square"},Nu={1:"miter",2:"round",3:"bevel"};function Lu(r,s,n){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=n,this.lvl=s,this._isAnimated=!!n.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}Lu.prototype.setAsAnimated=function(){this._isAnimated=!0};function Mu(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=St("path"),this.msElem=null}Mu.prototype.reset=function(){this.d="",this._mdf=!1};function ml(r,s,n,d){this.elem=r,this.frameId=-1,this.dataProps=J(s.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=X("float32",s.length?s.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(d);var m,p=s.length||0,b;for(m=0;m<p;m+=1)b=lt.getProp(r,s[m].v,0,0,this),this.k=b.k||this.k,this.dataProps[m]={n:s[m].n,p:b};this.k||this.getValue(!0),this._isAnimated=this.k}ml.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<n;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},A([Ne],ml);function Ou(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.w=lt.getProp(r,s.w,0,null,this),this.d=new ml(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([Ne],Ou);function Ru(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n}A([Ne],Ru);function Du(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=n}A([Ne],Du);function $a(r,s,n){this.data=s,this.c=X("uint8c",s.p*4);var d=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=X("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(n),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}$a.prototype.comparePoints=function(r,s){for(var n=0,d=this.o.length/2,m;n<d;){if(m=Math.abs(r[n*4]-r[s*4+n*2]),m>.01)return!1;n+=1}return!0},$a.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,s=this.data.k.k.length;r<s;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},$a.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,n=this.data.p*4,d,m;for(s=0;s<n;s+=1)d=s%4===0?100:255,m=Math.round(this.prop.v[s]*d),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(n=this.prop.v.length,s=this.data.p*4;s<n;s+=1)d=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Ne],$a);function Ms(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,n)}Ms.prototype.initGradientData=function(r,s,n){this.o=lt.getProp(r,s.o,0,.01,this),this.s=lt.getProp(r,s.s,1,null,this),this.e=lt.getProp(r,s.e,1,null,this),this.h=lt.getProp(r,s.h||{k:0},0,.01,this),this.a=lt.getProp(r,s.a||{k:0},0,wt,this),this.g=new $a(r,s.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,s),this.setGradientOpacity(s,n),this._isAnimated=!!this._isAnimated},Ms.prototype.setGradientData=function(r,s){var n=tr(),d=St(s.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,b,I;for(I=s.g.p*4,b=0;b<I;b+=4)p=St("stop"),d.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=m},Ms.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,m,p=St("mask"),b=St("path");p.appendChild(b);var I=tr(),y=tr();p.setAttribute("id",y);var k=St(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var M=this.stops;for(d=r.g.p*4;d<m;d+=2)n=St("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(n),M.push(n);b.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(b.setAttribute("stroke-linecap",ku[r.lc||2]),b.setAttribute("stroke-linejoin",Nu[r.lj||2]),r.lj===1&&b.setAttribute("stroke-miterlimit",r.ml)),this.of=k,this.ms=p,this.ost=M,this.maskId=y,s.msElem=b}},A([Ne],Ms);function Pu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new ml(r,s.d||{},"svg",this),this.initGradientData(r,s,n),this._isAnimated=!!this._isAnimated}A([Ms,Ne],Pu);function uT(){this.it=[],this.prevViewData=[],this.gr=St("g")}function fT(r,s,n){this.transform={mProps:r,op:s,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Fu=function(s,n,d,m){if(n===0)return"";var p=s.o,b=s.i,I=s.v,y,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<n;y+=1)k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[y][0],b[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return d&&n&&(k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[0][0],b[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},vT=function(){var r=new Pe,s=new Pe,n={createRenderFunction:d};function d(K){switch(K.ty){case"fl":return I;case"gf":return k;case"gs":return y;case"st":return M;case"sh":case"el":case"rc":case"sr":return b;case"tr":return m;case"no":return p;default:return null}}function m(K,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function b(K,x,O){var F,R,U,L,w,T,C=x.styles.length,N=x.lvl,$,G,q,it;for(T=0;T<C;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(G=s.reset(),q=N-x.styles[T].lvl,it=x.transformers.length-1;!L&&q>0;)L=x.transformers[it].mProps._mdf||L,q-=1,it-=1;if(L)for(q=N-x.styles[T].lvl,it=x.transformers.length-1;q>0;)G.multiply(x.transformers[it].mProps.v),q-=1,it-=1}else G=r;if($=x.sh.paths,R=$._length,L){for(U="",F=0;F<R;F+=1)w=$.shapes[F],w&&w._length&&(U+=Fu(w,w._length,w.c,G));x.caches[T]=U}else U=x.caches[T];x.styles[T].d+=K.hd===!0?"":U,x.styles[T]._mdf=L||x.styles[T]._mdf}}function I(K,x,O){var F=x.style;(x.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",x.o.v)}function y(K,x,O){k(K,x,O),M(K,x,O)}function k(K,x,O){var F=x.gf,R=x.g._hasOpacity,U=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=K.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=K.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";F.setAttribute(T,U[0]),F.setAttribute(C,U[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,U[0]),x.of.setAttribute(C,U[1]))}var N,$,G,q;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(G=N.length,$=0;$<G;$+=1)q=N[$],q.setAttribute("offset",it[$*4]+"%"),q.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var xt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,G=N.length,$=0;$<G;$+=1)q=N[$],x.g._collapsable||q.setAttribute("offset",xt[$*2]+"%"),q.setAttribute("stop-opacity",xt[$*2+1])}if(K.t===1)(x.e._mdf||O)&&(F.setAttribute("x2",L[0]),F.setAttribute("y2",L[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ft;if((x.s._mdf||x.e._mdf||O)&&(ft=Math.sqrt(Math.pow(U[0]-L[0],2)+Math.pow(U[1]-L[1],2)),F.setAttribute("r",ft),R&&!x.g._collapsable&&x.of.setAttribute("r",ft)),x.e._mdf||x.h._mdf||x.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(U[0]-L[0],2)+Math.pow(U[1]-L[1],2)));var ot=Math.atan2(L[1]-U[1],L[0]-U[0]),It=x.h.v;It>=1?It=.99:It<=-1&&(It=-.99);var pt=ft*It,rt=Math.cos(ot+x.a.v)*pt+U[0],_=Math.sin(ot+x.a.v)*pt+U[1];F.setAttribute("fx",rt),F.setAttribute("fy",_),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",_))}}}function M(K,x,O){var F=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(F.pElem.setAttribute("stroke-dasharray",R.dashStr),F.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",x.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",x.w.v))}return n}();function de(r,s,n){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,n),this.prevViewData=[]}A([Xi,Ns,Da,wu,Ls,Zi,Pa],de),de.prototype.initSecondaryElement=function(){},de.prototype.identityMatrix=new Pe,de.prototype.buildExpressionInterface=function(){},de.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},de.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,n,d,m=this.stylesList.length,p,b=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,b.length=0,r=0;r<s;r+=1)n=this.shapes[r],n.styles.indexOf(p)!==-1&&(b.push(n),I=n._isAnimated||I);b.length>1&&I&&this.setShapesAsAnimated(b)}},de.prototype.setShapesAsAnimated=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s].setAsAnimated()},de.prototype.createStyleElement=function(r,s){var n,d=new Mu(r,s),m=d.pElem;if(r.ty==="st")n=new Ou(this,r,d);else if(r.ty==="fl")n=new Ru(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ms:Pu;n=new p(this,r,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),m.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else r.ty==="no"&&(n=new Du(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",ku[r.lc||2]),m.setAttribute("stroke-linejoin",Nu[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=Bc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,n),n},de.prototype.createGroupElement=function(r){var s=new uT;return r.ln&&s.gr.setAttribute("id",r.ln),r.cl&&s.gr.setAttribute("class",r.cl),r.bm&&(s.gr.style["mix-blend-mode"]=Bc(r.bm)),s},de.prototype.createTransformElement=function(r,s){var n=Pc.getTransformProperty(this,r,this),d=new fT(n,n.o,s);return this.addToAnimatedContents(r,d),d},de.prototype.createShapeElement=function(r,s,n){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=sl.getShapeProp(this,r,d,this),p=new Lu(s,n,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},de.prototype.addToAnimatedContents=function(r,s){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===s)return;n+=1}this.animatedContents.push({fn:vT.createRenderFunction(r),element:s,data:r})},de.prototype.setElementStyles=function(r){var s=r.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||s.push(this.stylesList[n])},de.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},de.prototype.searchShapes=function(r,s,n,d,m,p,b){var I=[].concat(p),y,k=r.length-1,M,K,x=[],O=[],F,R,U;for(y=k;y>=0;y-=1){if(U=this.searchProcessedElement(r[y]),U?s[y]=n[U-1]:r[y]._render=b,r[y].ty==="fl"||r[y].ty==="st"||r[y].ty==="gf"||r[y].ty==="gs"||r[y].ty==="no")U?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==d&&d.appendChild(s[y].style.pElem),x.push(s[y].style);else if(r[y].ty==="gr"){if(!U)s[y]=this.createGroupElement(r[y]);else for(K=s[y].it.length,M=0;M<K;M+=1)s[y].prevViewData[M]=s[y].it[M];this.searchShapes(r[y].it,s[y].it,s[y].prevViewData,s[y].gr,m+1,I,b),r[y]._render&&s[y].gr.parentNode!==d&&d.appendChild(s[y].gr)}else r[y].ty==="tr"?(U||(s[y]=this.createTransformElement(r[y],d)),F=s[y].transform,I.push(F)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(U||(s[y]=this.createShapeElement(r[y],I,m)),this.setElementStyles(s[y])):r[y].ty==="tm"||r[y].ty==="rd"||r[y].ty==="ms"||r[y].ty==="pb"||r[y].ty==="zz"||r[y].ty==="op"?(U?(R=s[y],R.closed=!1):(R=ji.getModifier(r[y].ty),R.init(this,r[y]),s[y]=R,this.shapeModifiers.push(R)),O.push(R)):r[y].ty==="rp"&&(U?(R=s[y],R.closed=!0):(R=ji.getModifier(r[y].ty),s[y]=R,R.init(this,r,y,s),this.shapeModifiers.push(R),b=!1),O.push(R));this.addProcessedElement(r[y],y+1)}for(k=x.length,y=0;y<k;y+=1)x[y].closed=!0;for(k=O.length,y=0;y<k;y+=1)O[y].closed=!0},de.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},de.prototype.renderShape=function(){var r,s=this.animatedContents.length,n;for(r=0;r<s;r+=1)n=this.animatedContents[r],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},de.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Uc(r,s,n,d,m,p){this.o=r,this.sw=s,this.sc=n,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!n,fc:!!d,m:!0,p:!0}}Uc.prototype.update=function(r,s,n,d,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var b=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,b=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,b=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,b=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,b=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,b=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,b=!0),b};function We(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}We.prototype.defaultBoxWidth=[0,0],We.prototype.copyData=function(r,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(r[n]=s[n]);return r},We.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},We.prototype.searchProperty=function(){return this.searchKeyframes()},We.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},We.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},We.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)n!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},We.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,n=0,d=r.length;n<=d-1&&!(n===d-1||r[n+1].t>s);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},We.prototype.buildFinalText=function(r){for(var s=[],n=0,d=r.length,m,p,b=!1,I=!1,y="";n<d;)b=I,I=!1,m=r.charCodeAt(n),y=r.charAt(n),Do.isCombinedCharacter(m)?b=!0:m>=55296&&m<=56319?Do.isRegionalFlag(r,n)?y=r.substr(n,14):(p=r.charCodeAt(n+1),p>=56320&&p<=57343&&(Do.isModifier(m,p)?(y=r.substr(n,2),b=!0):Do.isFlagEmoji(r.substr(n,4))?y=r.substr(n,4):y=r.substr(n,2))):m>56319?(p=r.charCodeAt(n+1),Do.isVariationSelector(m)&&(b=!0)):Do.isZeroWidthJoiner(m)&&(b=!0,I=!0),b?(s[s.length-1]+=y,b=!1):s.push(y),n+=y.length;return s},We.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,n=this.data,d=[],m,p,b,I=0,y,k=n.m.g,M=0,K=0,x=0,O=[],F=0,R=0,U,L,w=s.getFontByName(r.f),T,C=0,N=Au(w);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,G;if(r.sz)for(var q=!0,it=r.sz[0],xt=r.sz[1],ft,ot;q;){ot=this.buildFinalText(r.t),ft=0,F=0,p=ot.length,$=r.tr/1e3*r.finalSize;var It=-1;for(m=0;m<p;m+=1)G=ot[m].charCodeAt(0),b=!1,ot[m]===" "?It=m:(G===13||G===3)&&(F=0,b=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(ot[m],w.fStyle,w.fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(ot[m],r.f,r.finalSize),F+C>it&&ot[m]!==" "?(It===-1?p+=1:m=It,ft+=r.finalLineHeight||r.finalSize*1.2,ot.splice(m,It===m?1:0,"\r"),It=-1,F=0):(F+=C,F+=$);ft+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&xt<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=ot,p=r.finalText.length,q=!1)}F=-$,C=0;var pt=0,rt;for(m=0;m<p;m+=1)if(b=!1,rt=r.finalText[m],G=rt.charCodeAt(0),G===13||G===3?(pt=0,O.push(F),R=F>R?F:R,F=-2*$,y="",b=!0,x+=1):y=rt,s.chars?(T=s.getCharData(rt,w.fStyle,s.getFontByName(r.f).fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),rt===" "?pt+=C+$:(F+=C+$+pt,pt=0),d.push({l:C,an:C,add:M,n:b,anIndexes:[],val:y,line:x,animatorJustifyOffset:0}),k==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);K<=m;)d[K].an=M,d[K].ind=I,d[K].extra=C,K+=1;I+=1,M=0}}else if(k==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);K<=m;)d[K].an=M,d[K].ind=I,d[K].extra=C,K+=1;M=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,R=F>R?F:R,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=R,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=n.a,D,v;L=_.length;var E,j,V=[];for(U=0;U<L;U+=1){for(D=_[U],D.a.sc&&(r.strokeColorAnim=!0),D.a.sw&&(r.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(r.fillColorAnim=!0),j=0,E=D.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[U]=j,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(D.s.rn===1&&V.push(j),j+=1);n.a[U].s.totalChars=j;var ct=-1,gt;if(D.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[U]&&(ct=v.anIndexes[U],gt=V.splice(Math.floor(Math.random()*V.length),1)[0]),v.anIndexes[U]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},We.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var n=this.copyData({},this.data.d.k[s].s);n=this.copyData(n,r),this.data.d.k[s].s=n,this.recalculate(s),this.setCurrentData(n),this.elem.addDynamicProperty(this)},We.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},We.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},We.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var gT=function(){var r=Math.max,s=Math.min,n=Math.floor;function d(p,b){this._currentTextLength=-1,this.k=!1,this.data=b,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=lt.getProp(p,b.s||{k:0},0,0,this),"e"in b?this.e=lt.getProp(p,b.e,0,0,this):this.e={v:100},this.o=lt.getProp(p,b.o||{k:0},0,0,this),this.xe=lt.getProp(p,b.xe||{k:0},0,0,this),this.ne=lt.getProp(p,b.ne||{k:0},0,0,this),this.sm=lt.getProp(p,b.sm||{k:100},0,0,this),this.a=lt.getProp(p,b.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(b){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,y=0,k=1,M=1;this.ne.v>0?I=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var K=_a.getBezierEasing(I,y,k,M).get,x=0,O=this.finalS,F=this.finalE,R=this.data.sh;if(R===2)F===O?x=b>=F?1:0:x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=K(x);else if(R===3)F===O?x=b>=F?0:1:x=1-r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=K(x);else if(R===4)F===O?x=0:(x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=K(x);else if(R===5){if(F===O)x=0;else{var U=F-O;b=s(r(0,b+.5-O),F-O);var L=-U/2+b,w=U/2;x=Math.sqrt(1-L*L/(w*w))}x=K(x)}else R===6?(F===O?x=0:(b=s(r(0,b+.5-O),F-O),x=(1+Math.cos(Math.PI+Math.PI*2*b/(F-O)))/2),x=K(x)):(b>=n(O)&&(b-O<0?x=r(0,s(s(F,1)-(O-b),1)):x=r(0,s(F-b,1))),x=K(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;x<C?x=0:(x=(x-C)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(b){this.iterateDynamicProperties(),this._mdf=b||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,b&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,y=this.o.v/I,k=this.s.v/I+y,M=this.e.v/I+y;if(k>M){var K=k;k=M,M=K}this.finalS=k,this.finalE=M}},A([Ne],d);function m(p,b,I){return new d(p,b,I)}return{getTextSelectorProp:m}}();function bT(r,s,n){var d={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,wt,n):d,rx:p.rx?m(r,p.rx,0,wt,n):d,ry:p.ry?m(r,p.ry,0,wt,n):d,sk:p.sk?m(r,p.sk,0,wt,n):d,sa:p.sa?m(r,p.sa,0,wt,n):d,s:p.s?m(r,p.s,1,.01,n):d,a:p.a?m(r,p.a,1,0,n):d,o:p.o?m(r,p.o,0,.01,n):d,p:p.p?m(r,p.p,1,0,n):d,sw:p.sw?m(r,p.sw,0,0,n):d,sc:p.sc?m(r,p.sc,1,0,n):d,fc:p.fc?m(r,p.fc,1,0,n):d,fh:p.fh?m(r,p.fh,0,0,n):d,fs:p.fs?m(r,p.fs,0,.01,n):d,fb:p.fb?m(r,p.fb,0,.01,n):d,t:p.t?m(r,p.t,0,0,n):d},this.s=gT.getTextSelectorProp(r,s.s,n),this.s.t=s.s.t}function Fo(r,s,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=n,this._animatorsData=J(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}Fo.prototype.searchProperties=function(){var r,s=this._textData.a.length,n,d=lt.getProp;for(r=0;r<s;r+=1)n=this._textData.a[r],this._animatorsData[r]=new bT(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},Fo.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,b=this._renderType,I=this.renderedLetters.length,y,k,M,K,x=r.l,O,F,R,U,L,w,T,C,N,$,G,q,it,xt,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var ot=ft.v;this._pathData.r.v&&(ot=ot.reverse()),O={tLength:0,segments:[]},K=ot._length-1;var It;for(q=0,M=0;M<K;M+=1)It=Xr.buildBezierData(ot.v[M],ot.v[M+1],[ot.o[M][0]-ot.v[M][0],ot.o[M][1]-ot.v[M][1]],[ot.i[M+1][0]-ot.v[M+1][0],ot.i[M+1][1]-ot.v[M+1][1]]),O.tLength+=It.segmentLength,O.segments.push(It),q+=It.segmentLength;M=K,ft.v.c&&(It=Xr.buildBezierData(ot.v[M],ot.v[0],[ot.o[M][0]-ot.v[M][0],ot.o[M][1]-ot.v[M][1]],[ot.i[0][0]-ot.v[0][0],ot.i[0][1]-ot.v[0][1]]),O.tLength+=It.segmentLength,O.segments.push(It),q+=It.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,U=0,L=!0,$=O.segments,F<0&&ft.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,C=N[w-1],R=N[w],G=R.partialLength}K=x.length,y=0,k=0;var pt=r.finalSize*1.2*.714,rt=!0,_,D,v,E,j;E=d.length;var V,ct=-1,gt,At,Ft,$t=F,ue=T,rr=w,Qr=-1,ir,Le,ur,Yt,mt,Ei,to,Ti,Jr="",xi=this.defaultPropsArray,Ai;if(r.j===2||r.j===1){var or=0,eo=0,ro=r.j===2?-.5:-1,Dr=0,io=!0;for(M=0;M<K;M+=1)if(x[M].n){for(or&&(or+=eo);Dr<M;)x[Dr].animatorJustifyOffset=or,Dr+=1;or=0,io=!0}else{for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(io&&r.j===2&&(eo+=_.t.v*ro),D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),V.length?or+=_.t.v*V[0]*ro:or+=_.t.v*V*ro);io=!1}for(or&&(or+=eo);Dr<M;)x[Dr].animatorJustifyOffset=or,Dr+=1}for(M=0;M<K;M+=1){if(p.reset(),ir=1,x[M].n)y=0,k+=r.yOffset,k+=rt?1:0,F=$t,rt=!1,this._hasMaskedPath&&(T=ue,w=rr,N=$[T].points,C=N[w-1],R=N[w],G=R.partialLength,U=0),Jr="",Ti="",Ei="",Ai="",xi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Qr!==x[M].line){switch(r.j){case 1:F+=q-r.lineWidths[x[M].line];break;case 2:F+=(q-r.lineWidths[x[M].line])/2;break;default:break}Qr=x[M].line}ct!==x[M].ind&&(x[ct]&&(F+=x[ct].extra),F+=x[M].an/2,ct=x[M].ind),F+=n[0]*x[M].an*.005;var Pr=0;for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),V.length?Pr+=_.p.v[0]*V[0]:Pr+=_.p.v[0]*V),_.a.propType&&(D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),V.length?Pr+=_.a.v[0]*V[0]:Pr+=_.a.v[0]*V);for(L=!0,this._pathData.a.v&&(F=x[0].an*.5+(q-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(K-1),F+=this._pathData.f.v);L;)U+G>=F+Pr||!N?(it=(F+Pr-U)/R.partialLength,At=C.point[0]+(R.point[0]-C.point[0])*it,Ft=C.point[1]+(R.point[1]-C.point[1])*it,p.translate(-n[0]*x[M].an*.005,-(n[1]*pt)*.01),L=!1):N&&(U+=R.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ft.v.c?(w=0,T=0,N=$[T].points):(U-=R.partialLength,N=null)),N&&(C=R,R=N[w],G=R.partialLength));gt=x[M].an/2-x[M].add,p.translate(-gt,0,0)}else gt=x[M].an/2-x[M].add,p.translate(-gt,0,0),p.translate(-n[0]*x[M].an*.005,-n[1]*pt*.01,0);for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?V.length?F+=_.t.v*V[0]:F+=_.t.v*V:V.length?y+=_.t.v*V[0]:y+=_.t.v*V));for(r.strokeWidthAnim&&(ur=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Yt=[r.fc[0],r.fc[1],r.fc[2]]),v=0;v<E;v+=1)_=d[v].a,_.a.propType&&(D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),V.length?p.translate(-_.a.v[0]*V[0],-_.a.v[1]*V[1],_.a.v[2]*V[2]):p.translate(-_.a.v[0]*V,-_.a.v[1]*V,_.a.v[2]*V));for(v=0;v<E;v+=1)_=d[v].a,_.s.propType&&(D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),V.length?p.scale(1+(_.s.v[0]-1)*V[0],1+(_.s.v[1]-1)*V[1],1):p.scale(1+(_.s.v[0]-1)*V,1+(_.s.v[1]-1)*V,1));for(v=0;v<E;v+=1){if(_=d[v].a,D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),_.sk.propType&&(V.length?p.skewFromAxis(-_.sk.v*V[0],_.sa.v*V[1]):p.skewFromAxis(-_.sk.v*V,_.sa.v*V)),_.r.propType&&(V.length?p.rotateZ(-_.r.v*V[2]):p.rotateZ(-_.r.v*V)),_.ry.propType&&(V.length?p.rotateY(_.ry.v*V[1]):p.rotateY(_.ry.v*V)),_.rx.propType&&(V.length?p.rotateX(_.rx.v*V[0]):p.rotateX(_.rx.v*V)),_.o.propType&&(V.length?ir+=(_.o.v*V[0]-ir)*V[0]:ir+=(_.o.v*V-ir)*V),r.strokeWidthAnim&&_.sw.propType&&(V.length?ur+=_.sw.v*V[0]:ur+=_.sw.v*V),r.strokeColorAnim&&_.sc.propType)for(mt=0;mt<3;mt+=1)V.length?Le[mt]+=(_.sc.v[mt]-Le[mt])*V[0]:Le[mt]+=(_.sc.v[mt]-Le[mt])*V;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(mt=0;mt<3;mt+=1)V.length?Yt[mt]+=(_.fc.v[mt]-Yt[mt])*V[0]:Yt[mt]+=(_.fc.v[mt]-Yt[mt])*V;_.fh.propType&&(V.length?Yt=Xm(Yt,_.fh.v*V[0]):Yt=Xm(Yt,_.fh.v*V)),_.fs.propType&&(V.length?Yt=jm(Yt,_.fs.v*V[0]):Yt=jm(Yt,_.fs.v*V)),_.fb.propType&&(V.length?Yt=qm(Yt,_.fb.v*V[0]):Yt=qm(Yt,_.fb.v*V))}}for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(D=d[v].s,V=D.getMult(x[M].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?V.length?p.translate(0,_.p.v[1]*V[0],-_.p.v[2]*V[1]):p.translate(0,_.p.v[1]*V,-_.p.v[2]*V):V.length?p.translate(_.p.v[0]*V[0],_.p.v[1]*V[1],-_.p.v[2]*V[2]):p.translate(_.p.v[0]*V,_.p.v[1]*V,-_.p.v[2]*V));if(r.strokeWidthAnim&&(Ei=ur<0?0:ur),r.strokeColorAnim&&(to="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(Ti="rgb("+Math.round(Yt[0]*255)+","+Math.round(Yt[1]*255)+","+Math.round(Yt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,n[1]*pt*.01+k,0),this._pathData.p.v){xt=(R.point[1]-C.point[1])/(R.point[0]-C.point[0]);var $o=Math.atan(xt)*180/Math.PI;R.point[0]<C.point[0]&&($o+=180),p.rotate(-$o*Math.PI/180)}p.translate(At,Ft,0),F-=n[0]*x[M].an*.005,x[M+1]&&ct!==x[M+1].ind&&(F+=x[M].an/2,F+=r.tr*.001*r.finalSize)}else{switch(p.translate(y,k,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line]),0,0);break;case 2:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(n[0]*x[M].an*.005,n[1]*pt*.01,0),y+=x[M].l+r.tr*.001*r.finalSize}b==="html"?Jr=p.toCSS():b==="svg"?Jr=p.to2dCSS():xi=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],Ai=ir}I<=M?(j=new Uc(Ai,Ei,to,Ti,Jr,xi),this.renderedLetters.push(j),I+=1,this.lettersChangedFlag=!0):(j=this.renderedLetters[M],this.lettersChangedFlag=j.update(Ai,Ei,to,Ti,Jr,xi)||this.lettersChangedFlag)}}},Fo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Fo.prototype.mHelper=new Pe,Fo.prototype.defaultPropsArray=[],A([Ne],Fo);function Sr(){}Sr.prototype.initElement=function(r,s,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,n),this.textProperty=new We(this,r.t,this.dynamicProperties),this.textAnimator=new Fo(r.t,this.renderType,this),this.initTransform(r,s,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Sr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Sr.prototype.createPathShape=function(r,s){var n,d=s.length,m,p="";for(n=0;n<d;n+=1)s[n].ty==="sh"&&(m=s[n].ks.k,p+=Fu(m,m.i.length,!0,r));return p},Sr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Sr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Sr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Sr.prototype.applyTextPropertiesToMatrix=function(r,s,n,d,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n])/2,0,0);break;default:break}s.translate(d,m,0)},Sr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Sr.prototype.emptyProp=new Uc,Sr.prototype.destroy=function(){},Sr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var yT={shapes:[]};function bi(r,s,n){this.textSpans=[],this.renderType="svg",this.initElement(r,s,n)}A([Xi,Ns,Da,Ls,Zi,Pa,Sr],bi),bi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=St("text"))},bi.prototype.buildTextContents=function(r){for(var s=0,n=r.length,d=[],m="";s<n;)r[s]==="\r"||r[s]===""?(d.push(m),m=""):m+=r[s],s+=1;return d.push(m),d},bi.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var n=r.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=s,d.s.k[1]=s)}}return r},bi.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,n=this.textProperty.currentData;this.renderedLetters=J(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=n.fWeight,p=n.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",n.t);var b=n.l||[],I=!!this.globalData.fontManager.chars;s=b.length;var y,k=this.mHelper,M="",K=this.data.singleShape,x=0,O=0,F=!0,R=n.tr*.001*n.finalSize;if(K&&!I&&!n.sz){var U=this.textContainer,L="start";switch(n.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}U.setAttribute("text-anchor",L),U.setAttribute("letter-spacing",R);var w=this.buildTextContents(n.finalText);for(s=w.length,O=n.ps?n.ps[1]+n.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||St("tspan"),y.textContent=w[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",U.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=n.finalLineHeight;this.layerElement.appendChild(U)}else{var T=this.textSpans.length,C;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!K||r===0){if(y=T>r?this.textSpans[r].span:St(I?"g":"text"),T<=r){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=y,I){var N=St("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(k.reset(),K&&(b[r].n&&(x=-R,O+=n.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(n,k,b[r].line,x,O),x+=b[r].l||0,x+=R),I){C=this.globalData.fontManager.getCharData(n.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(C.t===1)$=new Va(C.data,this.globalData,this);else{var G=yT;C.data&&C.data.shapes&&(G=this.buildShapeData(C.data,n.finalSize)),$=new de(G,this.globalData,this)}if(this.textSpans[r].glyph){var q=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(q.layerElement),q.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else K&&y.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),y.textContent=b[r].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}K&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},bi.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},bi.prototype.getValue=function(){var r,s=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)n=this.textSpans[r].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},bi.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;s=d.length;var m,p,b;for(r=0;r<s;r+=1)d[r].n||(m=n[r],p=this.textSpans[r].span,b=this.textSpans[r].glyph,b&&b.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function Gc(r,s,n){this.initElement(r,s,n)}A([Fa],Gc),Gc.prototype.createContent=function(){var r=St("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function Ji(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initFrame(),this.initTransform(r,s,n),this.initHierarchy()}Ji.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},Ji.prototype.renderFrame=function(){},Ji.prototype.getBaseElement=function(){return null},Ji.prototype.destroy=function(){},Ji.prototype.sourceRectAtTime=function(){},Ji.prototype.hide=function(){},A([Xi,Ns,Ls,Zi],Ji);function Ae(){}A([Fe],Ae),Ae.prototype.createNull=function(r){return new Ji(r,this.globalData,this)},Ae.prototype.createShape=function(r){return new de(r,this.globalData,this)},Ae.prototype.createText=function(r){return new bi(r,this.globalData,this)},Ae.prototype.createImage=function(r){return new Fa(r,this.globalData,this)},Ae.prototype.createSolid=function(r){return new Gc(r,this.globalData,this)},Ae.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var n=St("clipPath"),d=St("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=tr();n.setAttribute("id",m),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(n),this.layers=r.layers,this.elements=J(r.layers.length)},Ae.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ae.prototype.updateContainerSize=function(){},Ae.prototype.findIndexByInd=function(r){var s=0,n=this.layers.length;for(s=0;s<n;s+=1)if(this.layers[s].ind===r)return s;return-1},Ae.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var n=this.createItem(this.layers[r]);if(s[r]=n,Qn()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var m=s[d],p=m.getMatte(this.layers[r].tt);n.setMatte(p)}}}},Ae.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,n=this.elements.length;s<n;){if(this.elements[s]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[d],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ae.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,n=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=n-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<n;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ae.prototype.appendElementInPos=function(r,s){var n=r.getBaseElement();if(n){for(var d=0,m;d<s;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(n,m):this.layerElement.appendChild(n)}},Ae.prototype.hide=function(){this.layerElement.style.display="none"},Ae.prototype.show=function(){this.layerElement.style.display="block"};function yi(){}A([Xi,Ns,Ls,Zi,Pa],yi),yi.prototype.initElement=function(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initTransform(r,s,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},yi.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var n,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=d-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},yi.prototype.renderInnerContent=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},yi.prototype.setElements=function(r){this.elements=r},yi.prototype.getElements=function(){return this.elements},yi.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},yi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Va(r,s,n){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?J(this.layers.length):[],this.initElement(r,s,n),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Ae,yi,Da],Va),Va.prototype.createComp=function(r){return new Va(r,this.globalData,this)};function Kc(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=St("svg");var n="";if(s&&s.title){var d=St("title"),m=tr();d.setAttribute("id",m),d.textContent=s.title,this.svgElement.appendChild(d),n+=m}if(s&&s.description){var p=St("desc"),b=tr();p.setAttribute("id",b),p.textContent=s.description,this.svgElement.appendChild(p),n+=" "+b}n&&this.svgElement.setAttribute("aria-labelledby",n);var I=St("defs");this.svgElement.appendChild(I);var y=St("g");this.svgElement.appendChild(y),this.layerElement=y,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Ae],Kc),Kc.prototype.createComp=function(r){return new Va(r,this.globalData,this)},kE("svg",Kc),ji.registerModifier("tm",Rr),ji.registerModifier("pb",wa),ji.registerModifier("rp",Zr),ji.registerModifier("rd",ka),ji.registerModifier("zz",La),ji.registerModifier("op",Ma),Kt})});var gl=globalThis,bl=gl.ShadowRoot&&(gl.ShadyCSS===void 0||gl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yc=Symbol(),Vu=new WeakMap,za=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==Yc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(bl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=Vu.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&Vu.set(t,o))}return o}toString(){return this.cssText}},zu=a=>new za(typeof a=="string"?a:a+"",void 0,Yc),B=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((e,i,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+a[l+1],a[0]);return new za(t,a,Yc)},jc=(a,o)=>{if(bl)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=gl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,a.appendChild(e)}},yl=bl?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return zu(t)})(a):a;var{is:_T,defineProperty:wT,getOwnPropertyDescriptor:kT,getOwnPropertyNames:NT,getOwnPropertySymbols:LT,getPrototypeOf:MT}=Object,oo=globalThis,Bu=oo.trustedTypes,OT=Bu?Bu.emptyScript:"",qc=oo.reactiveElementPolyfillSupport,Ba=(a,o)=>a,Ha={toAttribute(a,o){switch(o){case Boolean:a=a?OT:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},El=(a,o)=>!_T(a,o),Hu={attribute:!0,type:String,converter:Ha,reflect:!1,hasChanged:El},Uu,Gu;(Uu=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Gu=oo.litPropertyMetadata)!=null||(oo.litPropertyMetadata=new WeakMap);var Si=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=Hu){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),i=this.getPropertyDescriptor(o,e,t);i!==void 0&&wT(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var c;let{get:i,set:l}=(c=kT(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let g=i==null?void 0:i.call(this);l.call(this,f),this.requestUpdate(o,g,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Hu}static _$Ei(){if(this.hasOwnProperty(Ba("elementProperties")))return;let o=MT(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Ba("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ba("properties"))){let t=this.properties,e=[...NT(t),...LT(t)];for(let i of e)this.createProperty(i,t[i])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let i=this._$Eu(t,e);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let i of e)t.unshift(yl(i))}else o!==void 0&&t.push(yl(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((e=o.hostConnected)==null||e.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return jc(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$EC(o,t){var l;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let c=(((l=e.converter)==null?void 0:l.toAttribute)!==void 0?e.converter:Ha).toAttribute(t,e.type);this._$Em=o,c==null?this.removeAttribute(i):this.setAttribute(i,c),this._$Em=null}}_$AK(o,t){var l;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let c=e.getPropertyOptions(i),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:Ha;this._$Em=i,this[i]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(o,t,e){var i;if(o!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(o)),!((i=e.hasChanged)!=null?i:El)(this[o],t))return;this.P(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,e){var i;this._$AL.has(o)||this._$AL.set(o,t),e.reflect===!0&&this._$Em!==o&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw o=!1,this._$EU(),l}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},Ku;Si.elementStyles=[],Si.shadowRootOptions={mode:"open"},Si[Ba("elementProperties")]=new Map,Si[Ba("finalized")]=new Map,qc==null||qc({ReactiveElement:Si}),((Ku=oo.reactiveElementVersions)!=null?Ku:oo.reactiveElementVersions=[]).push("2.0.4");var Ga=globalThis,Tl=Ga.trustedTypes,Wu=Tl?Tl.createPolicy("lit-html",{createHTML:a=>a}):void 0,Qc="$lit$",Ii=`lit$${Math.random().toFixed(9).slice(2)}$`,Jc="?"+Ii,RT=`<${Jc}>`,Bo=document,Ka=()=>Bo.createComment(""),Wa=a=>a===null||typeof a!="object"&&typeof a!="function",th=Array.isArray,Ju=a=>th(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",Xc=`[
3
3
  \f\r]`,Ua=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yu=/-->/g,ju=/>/g,Vo=RegExp(`>|${Xc}(?:([^\\s"'>=/]+)(${Xc}*=${Xc}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),qu=/'/g,Xu=/"/g,tf=/^(?:script|style|textarea|title)$/i,eh=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),S=eh(1),$I=eh(2),VI=eh(3),$e=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Zu=new WeakMap,zo=Bo.createTreeWalker(Bo,129);function ef(a,o){if(!th(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wu!==void 0?Wu.createHTML(o):o}var rf=(a,o)=>{let t=a.length-1,e=[],i,l=o===2?"<svg>":o===3?"<math>":"",c=Ua;for(let f=0;f<t;f++){let g=a[f],A,F,H=-1,Q=0;for(;Q<g.length&&(c.lastIndex=Q,F=c.exec(g),F!==null);)Q=c.lastIndex,c===Ua?F[1]==="!--"?c=Yu:F[1]!==void 0?c=ju:F[2]!==void 0?(tf.test(F[2])&&(i=RegExp("</"+F[2],"g")),c=Vo):F[3]!==void 0&&(c=Vo):c===Vo?F[0]===">"?(c=i!=null?i:Ua,H=-1):F[1]===void 0?H=-2:(H=c.lastIndex-F[2].length,A=F[1],c=F[3]===void 0?Vo:F[3]==='"'?Xu:qu):c===Xu||c===qu?c=Vo:c===Yu||c===ju?c=Ua:(c=Vo,i=void 0);let X=c===Vo&&a[f+1].startsWith("/>")?" ":"";l+=c===Ua?g+RT:H>=0?(e.push(A),g.slice(0,H)+Qc+g.slice(H)+Ii+X):g+Ii+(H===-2?f:X)}return[ef(a,l+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Ya=class a{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let l=0,c=0,f=o.length-1,g=this.parts,[A,F]=rf(o,t);if(this.el=a.createElement(A,e),zo.currentNode=this.el.content,t===2||t===3){let H=this.el.content.firstChild;H.replaceWith(...H.childNodes)}for(;(i=zo.nextNode())!==null&&g.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let H of i.getAttributeNames())if(H.endsWith(Qc)){let Q=F[c++],X=i.getAttribute(H).split(Ii),J=/([.?@])?(.*)/.exec(Q);g.push({type:1,index:l,name:J[2],strings:X,ctor:J[1]==="."?Al:J[1]==="?"?Sl:J[1]==="@"?Il:Uo}),i.removeAttribute(H)}else H.startsWith(Ii)&&(g.push({type:6,index:l}),i.removeAttribute(H));if(tf.test(i.tagName)){let H=i.textContent.split(Ii),Q=H.length-1;if(Q>0){i.textContent=Tl?Tl.emptyScript:"";for(let X=0;X<Q;X++)i.append(H[X],Ka()),zo.nextNode(),g.push({type:2,index:++l});i.append(H[Q],Ka())}}}else if(i.nodeType===8)if(i.data===Jc)g.push({type:2,index:l});else{let H=-1;for(;(H=i.data.indexOf(Ii,H+1))!==-1;)g.push({type:7,index:l}),H+=Ii.length-1}l++}}static createElement(o,t){let e=Bo.createElement("template");return e.innerHTML=o,e}};function Ho(a,o,t=a,e){var c,f,g;if(o===$e)return o;let i=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,l=Wa(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==l&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),l===void 0?i=void 0:(i=new l(a),i._$AT(a,t,e)),e!==void 0?((g=t.o)!=null?g:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Ho(a,i._$AS(a,o.values),i,e)),o}var xl=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var A;let{el:{content:t},parts:e}=this._$AD,i=((A=o==null?void 0:o.creationScope)!=null?A:Bo).importNode(t,!0);zo.currentNode=i;let l=zo.nextNode(),c=0,f=0,g=e[0];for(;g!==void 0;){if(c===g.index){let F;g.type===2?F=new Os(l,l.nextSibling,this,o):g.type===1?F=new g.ctor(l,g.name,g.strings,this,o):g.type===6&&(F=new Cl(l,this,o)),this._$AV.push(F),g=e[++f]}c!==(g==null?void 0:g.index)&&(l=zo.nextNode(),c++)}return zo.currentNode=Bo,i}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Os=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,e,i){var l;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(l=i==null?void 0:i.isConnected)!=null?l:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Ho(this,o,t),Wa(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Ju(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==W&&Wa(this._$AH)?this._$AA.nextSibling.data=o:this.T(Bo.createTextNode(o)),this._$AH=o}$(o){var l;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Ya.createElement(ef(e.h,e.h[0]),this.options)),e);if(((l=this._$AH)==null?void 0:l._$AD)===i)this._$AH.p(t);else{let c=new xl(i,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=Zu.get(o.strings);return t===void 0&&Zu.set(o.strings,t=new Ya(o)),t}k(o){th(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let l of o)i===t.length?t.push(e=new a(this.O(Ka()),this.O(Ka()),this,this.options)):e=t[i],e._$AI(l),i++;i<t.length&&(this._$AR(e&&e._$AB.nextSibling,i),t.length=i)}_$AR(o=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Uo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,l){this.type=1,this._$AH=W,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}_$AI(o,t=this,e,i){let l=this.strings,c=!1;if(l===void 0)o=Ho(this,o,t,0),c=!Wa(o)||o!==this._$AH&&o!==$e,c&&(this._$AH=o);else{let f=o,g,A;for(o=l[0],g=0;g<l.length-1;g++)A=Ho(this,f[e+g],t,g),A===$e&&(A=this._$AH[g]),c||(c=!Wa(A)||A!==this._$AH[g]),A===W?o=W:o!==W&&(o+=(A!=null?A:"")+l[g+1]),this._$AH[g]=A}c&&!i&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Al=class extends Uo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},Sl=class extends Uo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},Il=class extends Uo{constructor(o,t,e,i,l){super(o,t,e,i,l),this.type=5}_$AI(o,t=this){var c;if((o=(c=Ho(this,o,t,0))!=null?c:W)===$e)return;let e=this._$AH,i=o===W&&e!==W||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==W&&(e===W||i);i&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,o):this._$AH.handleEvent(o)}},Cl=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Ho(this,o)}},of={M:Qc,P:Ii,A:Jc,C:1,L:rf,R:xl,D:Ju,V:Ho,I:Os,H:Uo,N:Sl,U:Il,B:Al,F:Cl},Zc=Ga.litHtmlPolyfillSupport,Qu;Zc==null||Zc(Ya,Os),((Qu=Ga.litHtmlVersions)!=null?Qu:Ga.litHtmlVersions=[]).push("3.2.0");var sf=(a,o,t)=>{var l,c;let e=(l=t==null?void 0:t.renderBefore)!=null?l:o,i=e._$litPart$;if(i===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=i=new Os(o.insertBefore(Ka(),f),f,void 0,t!=null?t:{})}return i._$AI(a),i};var so=class extends Si{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=sf(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return $e}},af;so._$litElement$=!0,so.finalized=!0,(af=globalThis.litElementHydrateSupport)==null||af.call(globalThis,{LitElement:so});var rh=globalThis.litElementPolyfillSupport;rh==null||rh({LitElement:so});var nf;((nf=globalThis.litElementVersions)!=null?nf:globalThis.litElementVersions=[]).push("4.1.0");var DT={attribute:!0,type:String,converter:Ha,reflect:!1,hasChanged:El},PT=(a=DT,o,t)=>{let{kind:e,metadata:i}=t,l=globalThis.litPropertyMetadata.get(i);if(l===void 0&&globalThis.litPropertyMetadata.set(i,l=new Map),l.set(t.name,a),e==="accessor"){let{name:c}=t;return{set(f){let g=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,g,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(e==="setter"){let{name:c}=t;return function(f){let g=this[c];o.call(this,f),this.requestUpdate(c,g,a)}}throw Error("Unsupported decorator location: "+e)};function u(a){return(o,t)=>typeof t=="object"?PT(a,o,t):((e,i,l)=>{let c=i.hasOwnProperty(l);return i.constructor.createProperty(l,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(i,l):void 0})(a,o,t)}function dt(a){return u({...a,state:!0,attribute:!1})}function lf(a){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,a)}}var ti=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function zt(a,o){return(t,e,i)=>{let l=c=>{var f,g;return(g=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?g:null};if(o){let{get:c,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let g=Symbol();return{get(){return this[g]},set(A){this[g]=A}}})();return ti(t,e,{get(){let g=c.call(this);return g===void 0&&(g=l(this),(g!==null||this.hasUpdated)&&f.call(this,g)),g}})}return ti(t,e,{get(){return l(this)}})}}var ih;function df(a){return(o,t)=>ti(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:ih!=null?ih:ih=document.createDocumentFragment()).querySelectorAll(a)}})}function qt(a){return(o,t)=>{let{slot:e,selector:i}=a!=null?a:{},l="slot"+(e?`[name=${e}]`:":not([name])");return ti(o,t,{get(){var g,A;let c=(g=this.renderRoot)==null?void 0:g.querySelector(l),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return i===void 0?f:f.filter(F=>F.matches(i))}})}}function cf(a){return(o,t)=>{let{slot:e}=a!=null?a:{},i="slot"+(e?`[name=${e}]`:":not([name])");return ti(o,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(i);return(f=l==null?void 0:l.assignedNodes(a))!=null?f:[]}})}}var FT={PREFIX:"mdc",SEPARATOR:"-"},$T={NAMESPACE:FT},oh=$T;var VT=a=>[oh.NAMESPACE.PREFIX,a].join(oh.NAMESPACE.SEPARATOR),z={constructTagName:VT};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var hf=z.constructTagName("buttonsimple"),Go={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},Rs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},ja={SIZE:Go[32],TYPE:Rs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Ci=z.constructTagName("button"),Bt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},qa={40:40,32:32,28:28,24:24},Ir={64:64,52:52,20:20,...qa},ei={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ds={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},pf={DEFAULT:ei.DEFAULT,ACCENT:ei.ACCENT,NEGATIVE:ei.NEGATIVE},sr={VARIANT:Bt.PRIMARY,SIZE:qa[32],COLOR:ei.DEFAULT,TYPE_INTERNAL:Ds.ICON,TYPE:Rs.BUTTON,INVERTED:!1};var _l=a=>{class o extends a{constructor(){super(...arguments);this.variant=sr.VARIANT;this.color=sr.COLOR;this.typeInternal=sr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Bt).includes(i)?i:sr.VARIANT)}setColor(i){let l=Object.values(ei).includes(i),c=this.variant===Bt.TERTIARY&&!Object.values(pf).includes(i);!l||c?this.setAttribute("color",`${sr.COLOR}`):this.setAttribute("color",i)}setSize(i){let c=this.typeInternal===Ds.ICON?Object.values(Ir).includes(i)&&!(i===Ir[20]&&this.variant!==Bt.TERTIARY):Object.values(qa).includes(i);this.setAttribute("size",c?`${i}`:`${sr.SIZE}`)}inferButtonType(){var A,F,H,Q,X,J;let i=(F=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:F.assignedNodes().filter(at=>{var nt;return at.nodeType!==Node.TEXT_NODE||((nt=at.textContent)==null?void 0:nt.trim())}).length,l=(Q=(H=this.shadowRoot)==null?void 0:H.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(at=>{var nt;return at.nodeType!==Node.TEXT_NODE||((nt=at.textContent)==null?void 0:nt.trim())}).length,c=this.prefixIcon||l&&l>0,f=(J=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:J.assignedNodes().filter(at=>{var nt;return at.nodeType!==Node.TEXT_NODE||((nt=at.textContent)==null?void 0:nt.trim())}).length,g=this.postfixIcon||f&&f>0;i&&(c||g)?(this.typeInternal=Ds.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(c||g)?(this.typeInternal=Ds.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ds.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),h([u({type:String})],o.prototype,"variant",2),h([u({type:String})],o.prototype,"color",2),h([dt()],o.prototype,"typeInternal",2),o};var mf=B`
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),qu=/'/g,Xu=/"/g,tf=/^(?:script|style|textarea|title)$/i,eh=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),S=eh(1),$I=eh(2),VI=eh(3),$e=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Zu=new WeakMap,zo=Bo.createTreeWalker(Bo,129);function ef(a,o){if(!th(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wu!==void 0?Wu.createHTML(o):o}var rf=(a,o)=>{let t=a.length-1,e=[],i,l=o===2?"<svg>":o===3?"<math>":"",c=Ua;for(let f=0;f<t;f++){let g=a[f],A,P,H=-1,Q=0;for(;Q<g.length&&(c.lastIndex=Q,P=c.exec(g),P!==null);)Q=c.lastIndex,c===Ua?P[1]==="!--"?c=Yu:P[1]!==void 0?c=ju:P[2]!==void 0?(tf.test(P[2])&&(i=RegExp("</"+P[2],"g")),c=Vo):P[3]!==void 0&&(c=Vo):c===Vo?P[0]===">"?(c=i!=null?i:Ua,H=-1):P[1]===void 0?H=-2:(H=c.lastIndex-P[2].length,A=P[1],c=P[3]===void 0?Vo:P[3]==='"'?Xu:qu):c===Xu||c===qu?c=Vo:c===Yu||c===ju?c=Ua:(c=Vo,i=void 0);let X=c===Vo&&a[f+1].startsWith("/>")?" ":"";l+=c===Ua?g+RT:H>=0?(e.push(A),g.slice(0,H)+Qc+g.slice(H)+Ii+X):g+Ii+(H===-2?f:X)}return[ef(a,l+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Ya=class a{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let l=0,c=0,f=o.length-1,g=this.parts,[A,P]=rf(o,t);if(this.el=a.createElement(A,e),zo.currentNode=this.el.content,t===2||t===3){let H=this.el.content.firstChild;H.replaceWith(...H.childNodes)}for(;(i=zo.nextNode())!==null&&g.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let H of i.getAttributeNames())if(H.endsWith(Qc)){let Q=P[c++],X=i.getAttribute(H).split(Ii),J=/([.?@])?(.*)/.exec(Q);g.push({type:1,index:l,name:J[2],strings:X,ctor:J[1]==="."?Al:J[1]==="?"?Sl:J[1]==="@"?Il:Uo}),i.removeAttribute(H)}else H.startsWith(Ii)&&(g.push({type:6,index:l}),i.removeAttribute(H));if(tf.test(i.tagName)){let H=i.textContent.split(Ii),Q=H.length-1;if(Q>0){i.textContent=Tl?Tl.emptyScript:"";for(let X=0;X<Q;X++)i.append(H[X],Ka()),zo.nextNode(),g.push({type:2,index:++l});i.append(H[Q],Ka())}}}else if(i.nodeType===8)if(i.data===Jc)g.push({type:2,index:l});else{let H=-1;for(;(H=i.data.indexOf(Ii,H+1))!==-1;)g.push({type:7,index:l}),H+=Ii.length-1}l++}}static createElement(o,t){let e=Bo.createElement("template");return e.innerHTML=o,e}};function Ho(a,o,t=a,e){var c,f,g;if(o===$e)return o;let i=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,l=Wa(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==l&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),l===void 0?i=void 0:(i=new l(a),i._$AT(a,t,e)),e!==void 0?((g=t.o)!=null?g:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Ho(a,i._$AS(a,o.values),i,e)),o}var xl=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var A;let{el:{content:t},parts:e}=this._$AD,i=((A=o==null?void 0:o.creationScope)!=null?A:Bo).importNode(t,!0);zo.currentNode=i;let l=zo.nextNode(),c=0,f=0,g=e[0];for(;g!==void 0;){if(c===g.index){let P;g.type===2?P=new Os(l,l.nextSibling,this,o):g.type===1?P=new g.ctor(l,g.name,g.strings,this,o):g.type===6&&(P=new Cl(l,this,o)),this._$AV.push(P),g=e[++f]}c!==(g==null?void 0:g.index)&&(l=zo.nextNode(),c++)}return zo.currentNode=Bo,i}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Os=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,e,i){var l;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(l=i==null?void 0:i.isConnected)!=null?l:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Ho(this,o,t),Wa(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Ju(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==W&&Wa(this._$AH)?this._$AA.nextSibling.data=o:this.T(Bo.createTextNode(o)),this._$AH=o}$(o){var l;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Ya.createElement(ef(e.h,e.h[0]),this.options)),e);if(((l=this._$AH)==null?void 0:l._$AD)===i)this._$AH.p(t);else{let c=new xl(i,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=Zu.get(o.strings);return t===void 0&&Zu.set(o.strings,t=new Ya(o)),t}k(o){th(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let l of o)i===t.length?t.push(e=new a(this.O(Ka()),this.O(Ka()),this,this.options)):e=t[i],e._$AI(l),i++;i<t.length&&(this._$AR(e&&e._$AB.nextSibling,i),t.length=i)}_$AR(o=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Uo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,l){this.type=1,this._$AH=W,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}_$AI(o,t=this,e,i){let l=this.strings,c=!1;if(l===void 0)o=Ho(this,o,t,0),c=!Wa(o)||o!==this._$AH&&o!==$e,c&&(this._$AH=o);else{let f=o,g,A;for(o=l[0],g=0;g<l.length-1;g++)A=Ho(this,f[e+g],t,g),A===$e&&(A=this._$AH[g]),c||(c=!Wa(A)||A!==this._$AH[g]),A===W?o=W:o!==W&&(o+=(A!=null?A:"")+l[g+1]),this._$AH[g]=A}c&&!i&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Al=class extends Uo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},Sl=class extends Uo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},Il=class extends Uo{constructor(o,t,e,i,l){super(o,t,e,i,l),this.type=5}_$AI(o,t=this){var c;if((o=(c=Ho(this,o,t,0))!=null?c:W)===$e)return;let e=this._$AH,i=o===W&&e!==W||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==W&&(e===W||i);i&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,o):this._$AH.handleEvent(o)}},Cl=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Ho(this,o)}},of={M:Qc,P:Ii,A:Jc,C:1,L:rf,R:xl,D:Ju,V:Ho,I:Os,H:Uo,N:Sl,U:Il,B:Al,F:Cl},Zc=Ga.litHtmlPolyfillSupport,Qu;Zc==null||Zc(Ya,Os),((Qu=Ga.litHtmlVersions)!=null?Qu:Ga.litHtmlVersions=[]).push("3.2.0");var sf=(a,o,t)=>{var l,c;let e=(l=t==null?void 0:t.renderBefore)!=null?l:o,i=e._$litPart$;if(i===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=i=new Os(o.insertBefore(Ka(),f),f,void 0,t!=null?t:{})}return i._$AI(a),i};var so=class extends Si{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=sf(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return $e}},af;so._$litElement$=!0,so.finalized=!0,(af=globalThis.litElementHydrateSupport)==null||af.call(globalThis,{LitElement:so});var rh=globalThis.litElementPolyfillSupport;rh==null||rh({LitElement:so});var nf;((nf=globalThis.litElementVersions)!=null?nf:globalThis.litElementVersions=[]).push("4.1.0");var DT={attribute:!0,type:String,converter:Ha,reflect:!1,hasChanged:El},PT=(a=DT,o,t)=>{let{kind:e,metadata:i}=t,l=globalThis.litPropertyMetadata.get(i);if(l===void 0&&globalThis.litPropertyMetadata.set(i,l=new Map),l.set(t.name,a),e==="accessor"){let{name:c}=t;return{set(f){let g=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,g,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(e==="setter"){let{name:c}=t;return function(f){let g=this[c];o.call(this,f),this.requestUpdate(c,g,a)}}throw Error("Unsupported decorator location: "+e)};function u(a){return(o,t)=>typeof t=="object"?PT(a,o,t):((e,i,l)=>{let c=i.hasOwnProperty(l);return i.constructor.createProperty(l,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(i,l):void 0})(a,o,t)}function dt(a){return u({...a,state:!0,attribute:!1})}function lf(a){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,a)}}var ti=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function zt(a,o){return(t,e,i)=>{let l=c=>{var f,g;return(g=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?g:null};if(o){let{get:c,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let g=Symbol();return{get(){return this[g]},set(A){this[g]=A}}})();return ti(t,e,{get(){let g=c.call(this);return g===void 0&&(g=l(this),(g!==null||this.hasUpdated)&&f.call(this,g)),g}})}return ti(t,e,{get(){return l(this)}})}}var ih;function df(a){return(o,t)=>ti(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:ih!=null?ih:ih=document.createDocumentFragment()).querySelectorAll(a)}})}function qt(a){return(o,t)=>{let{slot:e,selector:i}=a!=null?a:{},l="slot"+(e?`[name=${e}]`:":not([name])");return ti(o,t,{get(){var g,A;let c=(g=this.renderRoot)==null?void 0:g.querySelector(l),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return i===void 0?f:f.filter(P=>P.matches(i))}})}}function cf(a){return(o,t)=>{let{slot:e}=a!=null?a:{},i="slot"+(e?`[name=${e}]`:":not([name])");return ti(o,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(i);return(f=l==null?void 0:l.assignedNodes(a))!=null?f:[]}})}}var FT={PREFIX:"mdc",SEPARATOR:"-"},$T={NAMESPACE:FT},oh=$T;var VT=a=>[oh.NAMESPACE.PREFIX,a].join(oh.NAMESPACE.SEPARATOR),z={constructTagName:VT};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var hf=z.constructTagName("buttonsimple"),Go={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},Rs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},ja={SIZE:Go[32],TYPE:Rs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Ci=z.constructTagName("button"),Bt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},qa={40:40,32:32,28:28,24:24},Ir={64:64,52:52,20:20,...qa},ei={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ds={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},pf={DEFAULT:ei.DEFAULT,ACCENT:ei.ACCENT,NEGATIVE:ei.NEGATIVE},sr={VARIANT:Bt.PRIMARY,SIZE:qa[32],COLOR:ei.DEFAULT,TYPE_INTERNAL:Ds.ICON,TYPE:Rs.BUTTON,INVERTED:!1};var _l=a=>{class o extends a{constructor(){super(...arguments);this.variant=sr.VARIANT;this.color=sr.COLOR;this.typeInternal=sr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Bt).includes(i)?i:sr.VARIANT)}setColor(i){let l=Object.values(ei).includes(i),c=this.variant===Bt.TERTIARY&&!Object.values(pf).includes(i);!l||c?this.setAttribute("color",`${sr.COLOR}`):this.setAttribute("color",i)}setSize(i){let c=this.typeInternal===Ds.ICON?Object.values(Ir).includes(i)&&!(i===Ir[20]&&this.variant!==Bt.TERTIARY):Object.values(qa).includes(i);this.setAttribute("size",c?`${i}`:`${sr.SIZE}`)}inferButtonType(){var A,P,H,Q,X,J;let i=(P=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:P.assignedNodes().filter(at=>{var nt;return at.nodeType!==Node.TEXT_NODE||((nt=at.textContent)==null?void 0:nt.trim())}).length,l=(Q=(H=this.shadowRoot)==null?void 0:H.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(at=>{var nt;return at.nodeType!==Node.TEXT_NODE||((nt=at.textContent)==null?void 0:nt.trim())}).length,c=this.prefixIcon||l&&l>0,f=(J=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:J.assignedNodes().filter(at=>{var nt;return at.nodeType!==Node.TEXT_NODE||((nt=at.textContent)==null?void 0:nt.trim())}).length,g=this.postfixIcon||f&&f>0;i&&(c||g)?(this.typeInternal=Ds.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(c||g)?(this.typeInternal=Ds.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ds.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),h([u({type:String})],o.prototype,"variant",2),h([u({type:String})],o.prototype,"color",2),h([dt()],o.prototype,"typeInternal",2),o};var mf=B`
5
5
  :host {
6
6
  box-sizing: border-box;
7
7
  }
@@ -11,11 +11,11 @@
11
11
  :host *::after {
12
12
  box-sizing: inherit;
13
13
  }
14
- `;var wl=class extends so{static register(o){customElements.get(o)||customElements.define(o,this)}};wl.styles=[mf];var uf=wl;var Z=uf;var ao=class extends Event{constructor(o,t,e){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=e!=null?e:!1}};var Ps=class{constructor(o,t,e,i){var l;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(c,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(c,f)),this.unsubscribe=f},this.host=o,t.context!==void 0){let c=t;this.context=c.context,this.callback=c.callback,this.subscribe=(l=c.subscribe)!=null?l:!1}else this.context=t,this.callback=e,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ao(this.context,this.t,this.subscribe))}};var kl=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:i}=this.subscriptions.get(o);o(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var sh=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},Fs=class extends kl{constructor(o,t,e){var i,l;super(t.context!==void 0?t.initialValue:e),this.onContextRequest=c=>{let f=c.composedPath()[0];c.context===this.context&&f!==this.host&&(c.stopPropagation(),this.addCallback(c.callback,f,c.subscribe))},this.onProviderRequest=c=>{let f=c.composedPath()[0];if(c.context!==this.context||f===this.host)return;let g=new Set;for(let[A,{consumerHost:F}]of this.subscriptions)g.has(A)||(g.add(A),F.dispatchEvent(new ao(this.context,A,!0)));c.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(l=(i=this.host).addController)==null||l.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new sh(this.context))}};var zT=B`
14
+ `;var wl=class extends so{static register(o){customElements.get(o)||customElements.define(o,this)}};wl.styles=[mf];var uf=wl;var Z=uf;var ao=class extends Event{constructor(o,t,e){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=e!=null?e:!1}};var Ps=class{constructor(o,t,e,i){var l;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(c,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(c,f)),this.unsubscribe=f},this.host=o,t.context!==void 0){let c=t;this.context=c.context,this.callback=c.callback,this.subscribe=(l=c.subscribe)!=null?l:!1}else this.context=t,this.callback=e,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ao(this.context,this.t,this.subscribe))}};var kl=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:i}=this.subscriptions.get(o);o(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var sh=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},Fs=class extends kl{constructor(o,t,e){var i,l;super(t.context!==void 0?t.initialValue:e),this.onContextRequest=c=>{let f=c.composedPath()[0];c.context===this.context&&f!==this.host&&(c.stopPropagation(),this.addCallback(c.callback,f,c.subscribe))},this.onProviderRequest=c=>{let f=c.composedPath()[0];if(c.context!==this.context||f===this.host)return;let g=new Set;for(let[A,{consumerHost:P}]of this.subscriptions)g.has(A)||(g.add(A),P.dispatchEvent(new ao(this.context,A,!0)));c.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(l=(i=this.host).addController)==null||l.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new sh(this.context))}};var zT=B`
15
15
  :host {
16
16
  display: contents;
17
17
  }
18
- `,ff=zT;var Nl=class extends Z{constructor({context:o,initialValue:t}){super(),this.context=new Fs(this,{context:o,initialValue:t})}render(){return this.updateContext(),S`<slot></slot>`}};Nl.styles=[...Z.styles,ff];var vf=Nl;var Se=vf;var Ve=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(i){super.firstUpdated(i),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var te=a=>{class o extends a{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ri=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var kt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var BT=a=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:l}=a,c=(i||l)&&(f=>{l&&l.forEach(g=>{o.requestUpdate(g)}),i==null||i(f)});return new Ps(o,{context:t,callback:c,subscribe:e!=null?e:!0})},HT={consume:BT},Ie=HT;var gf=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),bf=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),UT=a=>a.getClientRects().length===0,GT=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=a;return e+i+t+o===0},nh=a=>{if(!(a instanceof Element))return null;let o=getComputedStyle(a),{overflowX:t,overflowY:e}=o,i=t==="auto"||t==="scroll",l=e==="auto"||e==="scroll";return i&&l?"both":i?"horizontal":l?"vertical":null},KT=a=>GT(a)||UT(a),WT=a=>{let{display:o,opacity:t,visibility:e}=a.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},YT=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},jT=a=>getComputedStyle(a).display==="contents",qT=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||WT(a)||!jT(a)&&(YT(a)||KT(a)),XT=a=>a.disabled,ZT=a=>a.getAttribute("tabindex")!=="-1",QT=a=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1),ah=(a,o)=>o.some(t=>a.matches(t));var $s=(a,o={})=>{var A,F,H,Q,X;if(!a)return[];let t=new Set((A=o==null?void 0:o.excludedElements)!=null?A:[]),e=(F=o==null?void 0:o.includeSelectors)!=null?F:[],i=(H=o==null?void 0:o.excludeSelectors)!=null?H:[],l=(Q=o==null?void 0:o.stopAtNonTabbable)!=null?Q:!1,c=new Set((X=o.includeElements)!=null?X:[]),f=J=>{if(!(J instanceof HTMLSlotElement)&&(qT(J)||XT(J)||ah(J,i)))return"stop";if(l&&!(J instanceof HTMLSlotElement)&&J.getAttribute("tabindex")==="-1"){let at=J.getRootNode();if(!(at instanceof ShadowRoot&&at.delegatesFocus))return"stop"}return ah(J,e)||ZT(J)&&QT(J)?"focusable":"continue"},g=J=>{if(t.has(J)||J instanceof HTMLElement&&ah(J,i))return;J instanceof HTMLElement&&f(J)==="focusable"&&c.add(J);let at=[];J instanceof HTMLElement&&J.shadowRoot?at=Array.from(J.shadowRoot.children):J.children.length&&(at=Array.from(J.children)),at.forEach(nt=>{let ht=nt,yt=f(ht);yt==="focusable"&&c.add(ht),yt!=="stop"&&(ht.shadowRoot?g(ht.shadowRoot):ht.tagName==="SLOT"?ht.assignedElements({flatten:!0}).forEach(Ot=>{if(Ot instanceof HTMLElement){if(l&&!(Ot instanceof HTMLSlotElement)&&Ot.getAttribute("tabindex")==="-1")return;g(Ot)}}):g(ht))})};return g(a),[...c]},Xa=(a=document)=>{var t;let o=a instanceof Document?a.activeElement:a;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},Ll=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",lh=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?lh(o.host):a},Ml=a=>{let o=[a],t=a;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var _i=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};_i.stack=new Set,_i.currentKeydownListener=null;var Ol=z.constructTagName("spatialnavigationprovider");var dh={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var JT=Ol,ch=JT;var yf=a=>{let{x:o,y:t,width:e,height:i,left:l,top:c,right:f,bottom:g}=a.getBoundingClientRect(),A=o+e/2,F=t+i/2;return{x:o,y:t,width:e,height:i,left:l,top:c,right:f,bottom:g,xMid:A,yMid:F}},tx=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),ex=(a,o)=>o==="horizontal"?a.height/2:a.width/2,rx=(a,o,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)):Math.max(0,Math.min(a.right,o.right)-Math.max(a.left,o.left)),ix=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,ox=(a,o,t,e)=>{let i=o.xMid-a.xMid,l=o.yMid-a.yMid,c=Math.sqrt(i*i+l*l),f=tx(a,o,t)+ex(a,t)*e.orthogonalWeight[t],g=rx(a,o,t),A=ix(a,t,g)*e.alignWeight;return c+f-A-Math.sqrt(g)},Ef=(a,o,t,e)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let i=yf(a),l=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let g=yf(f);if(t==="left"&&g.right>i.xMid||t==="right"&&g.left<i.xMid||t==="up"&&g.bottom>i.yMid||t==="down"&&g.top<i.yMid)return c;let A=ox(i,g,l,e);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Ko=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var Za=class extends Se{constructor(){super({context:ch});this.navigationKeyMapping=dh.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=dh.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDownBefore=t=>{if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=!1,i=t.target,l=this.context.value.keyToActionMap[t.key];if(this.isDirectionKey(t.key)&&this.getElementSelectorForDirectionAttr(i,l)!==void 0&&(e=!0,this.handleKeyDown(t)),i.parentElement&&!i.hasAttribute("data-spatial-noscroll")){let c=i.parentElement,f=nh(c);if(f){let g=i.getBoundingClientRect(),A=c.getBoundingClientRect();(f==="vertical"||f==="both")&&(l==="up"&&g.top<A.top&&c.scrollTop>0&&(c.scrollTo({top:c.scrollTop-A.height/2,behavior:"auto"}),e=!0),l==="down"&&g.bottom>A.bottom&&c.scrollTop+A.height<c.scrollHeight&&(c.scrollTo({top:c.scrollTop+A.height/2,behavior:"auto"}),e=!0)),(f==="horizontal"||f==="both")&&(l==="right"&&g.left<A.left&&c.scrollLeft>0&&(c.scrollTo({left:c.scrollLeft-A.width/2,behavior:"auto"}),e=!0),l==="left"&&g.right>A.right&&c.scrollLeft+A.width<c.scrollWidth&&(c.scrollTo({left:c.scrollLeft+A.width/2,behavior:"auto"}),e=!0))}}e&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new Ko("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(i)),i.defaultPrevented)return;let l=!1;switch(e){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Ko("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=Xa();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}isNavigationKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape].includes(t)}isDirectionKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right].includes(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDownBefore,{capture:!0}),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDownBefore,{capture:!0}),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return ch}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,i])=>[i,e]))},this.context.updateObservers())}initActiveElement(t){let e=$s(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let i=t[0];i&&this.setActiveElementAndFocus(i)}}focusNext(t,e){let i=_i.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let g of f)if(g===i||g===this.root||nh(g)){c.push(...$s(g,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"],excludeSelectors:["[data-spatial-exclude]"]}));let A=this.focusNextInFocusableAria(c,e);if(A||g===i||g===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;l=g}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let l=new Ko("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}getElementSelectorForDirectionAttr(t,e){var l;let i=`data-spatial-${e}`;return(l=t==null?void 0:t.getAttribute(i))!=null?l:void 0}focusNextInFocusableAria(t,e){var f,g;let i=this.getActiveElement(),l=Xa();if((!i||!t.includes(i)||i!==l)&&(l&&t.includes(l)?i=l:[i]=t,this.setActiveElement(i)),l){let A=`data-spatial-${e}`,F=Ml(l).find(Q=>Q.hasAttribute(A)),H=F==null?void 0:F.getAttribute(A);if(F&&H){let Q=F.getRootNode(),X=(f=Q==null?void 0:Q.getElementById(H))!=null?f:Q==null?void 0:Q.querySelector(H);if(X)return X}}return i!==Xa()?i:t.length===0||(g=Ef(i,t,e,this.distanceCalculationWeights)[0])==null?void 0:g.candidate}emitGoBackEvent(t){let e=new Ko("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=Xa();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=$s(this.root).find(i=>i.hasAttribute("data-spatial-go-back")),e=this.emitGoBackEvent(t);return t&&!e?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};h([u({attribute:!1})],Za.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],Za.prototype,"distanceCalculationWeights",2);var hh=Za;hh.register(Ol);var Tf=hh;var Y={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},sx={[kt.ARROW_UP]:Y.UP,[kt.ARROW_DOWN]:Y.DOWN,[kt.ARROW_LEFT]:Y.LEFT,[kt.ARROW_RIGHT]:Y.RIGHT,[kt.ENTER]:Y.ENTER,[kt.SPACE]:Y.SPACE,[kt.ESCAPE]:Y.ESCAPE,[kt.TAB]:Y.TAB,[kt.HOME]:Y.HOME,[kt.END]:Y.END,[kt.BACKSPACE]:Y.BACKSPACE},ee={DEFAULT:"default",SPATIAL:"spatial"},Nt=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=Ie.consume({host:this,context:Tf.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?ee.SPATIAL:ee.DEFAULT}getActionForKeyEvent(i,l=!1){var g,A,F;let f=((F=(A=(g=this.spatialNavigationContext)==null?void 0:g.value)==null?void 0:A.keyToActionMap)!=null?F:sx)[i.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===Y.LEFT)return Y.RIGHT;if(f===Y.RIGHT)return Y.LEFT}return f}isDirectionAction(i){return i===Y.UP||i===Y.DOWN||i===Y.LEFT||i===Y.RIGHT}}return o};var Mt=a=>{class o extends a{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var Et=B`
18
+ `,ff=zT;var Nl=class extends Z{constructor({context:o,initialValue:t}){super(),this.context=new Fs(this,{context:o,initialValue:t})}render(){return this.updateContext(),S`<slot></slot>`}};Nl.styles=[...Z.styles,ff];var vf=Nl;var Se=vf;var Ve=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(i){super.firstUpdated(i),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var te=a=>{class o extends a{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ri=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var kt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var BT=a=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:l}=a,c=(i||l)&&(f=>{l&&l.forEach(g=>{o.requestUpdate(g)}),i==null||i(f)});return new Ps(o,{context:t,callback:c,subscribe:e!=null?e:!0})},HT={consume:BT},Ie=HT;var gf=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),bf=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),UT=a=>a.getClientRects().length===0,GT=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=a;return e+i+t+o===0},nh=a=>{if(!(a instanceof Element))return null;let o=getComputedStyle(a),{overflowX:t,overflowY:e}=o,i=t==="auto"||t==="scroll",l=e==="auto"||e==="scroll";return i&&l?"both":i?"horizontal":l?"vertical":null},KT=a=>GT(a)||UT(a),WT=a=>{let{display:o,opacity:t,visibility:e}=a.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},YT=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},jT=a=>getComputedStyle(a).display==="contents",qT=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||WT(a)||!jT(a)&&(YT(a)||KT(a)),XT=a=>a.disabled,ZT=a=>a.getAttribute("tabindex")!=="-1",QT=a=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1),ah=(a,o)=>o.some(t=>a.matches(t));var $s=(a,o={})=>{var A,P,H,Q,X;if(!a)return[];let t=new Set((A=o==null?void 0:o.excludedElements)!=null?A:[]),e=(P=o==null?void 0:o.includeSelectors)!=null?P:[],i=(H=o==null?void 0:o.excludeSelectors)!=null?H:[],l=(Q=o==null?void 0:o.stopAtNonTabbable)!=null?Q:!1,c=new Set((X=o.includeElements)!=null?X:[]),f=J=>{if(!(J instanceof HTMLSlotElement)&&(qT(J)||XT(J)||ah(J,i)))return"stop";if(l&&!(J instanceof HTMLSlotElement)&&J.getAttribute("tabindex")==="-1"){let at=J.getRootNode();if(!(at instanceof ShadowRoot&&at.delegatesFocus))return"stop"}return ah(J,e)||ZT(J)&&QT(J)?"focusable":"continue"},g=J=>{if(t.has(J)||J instanceof HTMLElement&&ah(J,i))return;J instanceof HTMLElement&&f(J)==="focusable"&&c.add(J);let at=[];J instanceof HTMLElement&&J.shadowRoot?at=Array.from(J.shadowRoot.children):J.children.length&&(at=Array.from(J.children)),at.forEach(nt=>{let ht=nt,yt=f(ht);yt==="focusable"&&c.add(ht),yt!=="stop"&&(ht.shadowRoot?g(ht.shadowRoot):ht.tagName==="SLOT"?ht.assignedElements({flatten:!0}).forEach(Ot=>{if(Ot instanceof HTMLElement){if(l&&!(Ot instanceof HTMLSlotElement)&&Ot.getAttribute("tabindex")==="-1")return;g(Ot)}}):g(ht))})};return g(a),[...c]},Xa=(a=document)=>{var t;let o=a instanceof Document?a.activeElement:a;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},Ll=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",lh=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?lh(o.host):a},Ml=a=>{let o=[a],t=a;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var _i=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};_i.stack=new Set,_i.currentKeydownListener=null;var Ol=z.constructTagName("spatialnavigationprovider");var dh={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var JT=Ol,ch=JT;var yf=a=>{let{x:o,y:t,width:e,height:i,left:l,top:c,right:f,bottom:g}=a.getBoundingClientRect(),A=o+e/2,P=t+i/2;return{x:o,y:t,width:e,height:i,left:l,top:c,right:f,bottom:g,xMid:A,yMid:P}},tx=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),ex=(a,o)=>o==="horizontal"?a.height/2:a.width/2,rx=(a,o,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)):Math.max(0,Math.min(a.right,o.right)-Math.max(a.left,o.left)),ix=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,ox=(a,o,t,e)=>{let i=o.xMid-a.xMid,l=o.yMid-a.yMid,c=Math.sqrt(i*i+l*l),f=tx(a,o,t)+ex(a,t)*e.orthogonalWeight[t],g=rx(a,o,t),A=ix(a,t,g)*e.alignWeight;return c+f-A-Math.sqrt(g)},Ef=(a,o,t,e)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let i=yf(a),l=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let g=yf(f);if(t==="left"&&g.right>i.xMid||t==="right"&&g.left<i.xMid||t==="up"&&g.bottom>i.yMid||t==="down"&&g.top<i.yMid)return c;let A=ox(i,g,l,e);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Ko=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var Za=class extends Se{constructor(){super({context:ch});this.navigationKeyMapping=dh.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=dh.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDownBefore=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=!1,i=t.target,l=this.context.value.keyToActionMap[t.key];if(this.isDirectionKey(t.key)&&this.getElementSelectorForDirectionAttr(i,l)!==void 0&&(e=!0,this.handleKeyDown(t)),i.parentElement&&!i.hasAttribute("data-spatial-noscroll")){let f=(c=i.closest("[data-spatial-scroll-parent]"))!=null?c:i.parentElement,g=nh(f);if(g){let A=i.getBoundingClientRect(),P=f.getBoundingClientRect();(g==="vertical"||g==="both")&&(l==="up"&&A.top<P.top&&f.scrollTop>0&&(f.scrollTo({top:f.scrollTop-P.height/2,behavior:"auto"}),e=!0),l==="down"&&A.bottom>P.bottom&&f.scrollTop+P.height<f.scrollHeight&&(f.scrollTo({top:f.scrollTop+P.height/2,behavior:"auto"}),e=!0)),(g==="horizontal"||g==="both")&&(l==="right"&&A.left<P.left&&f.scrollLeft>0&&(f.scrollTo({left:f.scrollLeft-P.width/2,behavior:"auto"}),e=!0),l==="left"&&A.right>P.right&&f.scrollLeft+P.width<f.scrollWidth&&(f.scrollTo({left:f.scrollLeft+P.width/2,behavior:"auto"}),e=!0))}}e&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new Ko("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(i)),i.defaultPrevented)return;let l=!1;switch(e){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Ko("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=Xa();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}isNavigationKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape].includes(t)}isDirectionKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right].includes(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDownBefore,{capture:!0}),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDownBefore,{capture:!0}),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return ch}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,i])=>[i,e]))},this.context.updateObservers())}initActiveElement(t){let e=$s(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let i=t[0];i&&this.setActiveElementAndFocus(i)}}focusNext(t,e){let i=_i.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let g of f)if(g===i||g===this.root||nh(g)){c.push(...$s(g,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"],excludeSelectors:["[data-spatial-exclude]"]}));let A=this.focusNextInFocusableAria(c,e);if(A||g===i||g===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;l=g}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let l=new Ko("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}getElementSelectorForDirectionAttr(t,e){var l;let i=`data-spatial-${e}`;return(l=t==null?void 0:t.getAttribute(i))!=null?l:void 0}focusNextInFocusableAria(t,e){var f,g;let i=this.getActiveElement(),l=Xa();if((!i||!t.includes(i)||i!==l)&&(l&&t.includes(l)?i=l:[i]=t,this.setActiveElement(i)),l){let A=`data-spatial-${e}`,P=Ml(l).find(Q=>Q.hasAttribute(A)),H=P==null?void 0:P.getAttribute(A);if(P&&H){let Q=P.getRootNode(),X=(f=Q==null?void 0:Q.getElementById(H))!=null?f:Q==null?void 0:Q.querySelector(H);if(X)return X}}return i!==Xa()?i:t.length===0||(g=Ef(i,t,e,this.distanceCalculationWeights)[0])==null?void 0:g.candidate}emitGoBackEvent(t){let e=new Ko("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=Xa();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=$s(this.root).find(i=>i.hasAttribute("data-spatial-go-back")),e=this.emitGoBackEvent(t);return t&&!e?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};h([u({attribute:!1})],Za.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],Za.prototype,"distanceCalculationWeights",2);var hh=Za;hh.register(Ol);var Tf=hh;var Y={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},sx={[kt.ARROW_UP]:Y.UP,[kt.ARROW_DOWN]:Y.DOWN,[kt.ARROW_LEFT]:Y.LEFT,[kt.ARROW_RIGHT]:Y.RIGHT,[kt.ENTER]:Y.ENTER,[kt.SPACE]:Y.SPACE,[kt.ESCAPE]:Y.ESCAPE,[kt.TAB]:Y.TAB,[kt.HOME]:Y.HOME,[kt.END]:Y.END,[kt.BACKSPACE]:Y.BACKSPACE},ee={DEFAULT:"default",SPATIAL:"spatial"},Nt=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=Ie.consume({host:this,context:Tf.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?ee.SPATIAL:ee.DEFAULT}getActionForKeyEvent(i,l=!1){var g,A,P;let f=((P=(A=(g=this.spatialNavigationContext)==null?void 0:g.value)==null?void 0:A.keyToActionMap)!=null?P:sx)[i.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===Y.LEFT)return Y.RIGHT;if(f===Y.RIGHT)return Y.LEFT}return f}isDirectionAction(i){return i===Y.UP||i===Y.DOWN||i===Y.LEFT||i===Y.RIGHT}}return o};var Mt=a=>{class o extends a{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var Et=B`
19
19
  :host {
20
20
  align-items: center;
21
21
  display: flex;
@@ -487,7 +487,7 @@
487
487
  width: 100%;
488
488
  fill: var(--mdc-icon-fill-color);
489
489
  }
490
- `,...Tt()],Cf=dx;var Ja={},_f=async a=>(Ja[a]===void 0&&(Ja[a]=new Map),{async set(o,t){Ja[a].set(o.url,await t.text())},async get(o){return Ja[a].get(o.url)},async delete(o){Ja[a].delete(o.url)}}),wf=async a=>{let o=await caches.open(a);return{set:async(t,e)=>{await o.put(t,e)},get:async t=>{let e=await o.match(t);return e==null?void 0:e.text()},delete:async t=>{await o.delete(t)}}},$l=async(a,o)=>o==="in-memory-cache"?_f(a):wf(a);var kf=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Nf=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?kf(f).then(g=>g.text()):$l(i,e).then(g=>g.get(f).then(A=>A||kf(f.clone()).then(F=>{var H;return F.status<400&&F.headers.has("content-type")?(H=g.set)==null?void 0:H.call(g,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${o}, ${A}`)}))};var Lf=z.constructTagName("icon"),ph={NAME:void 0,SIZE:1};var vr=class extends Z{constructor(){super();this.name=ph.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ie.consume({host:this,context:Qa.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:i,cacheName:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&i&&e&&this.name){let g=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return Nf({url:i,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:g}).then(A=>{let F=this.prepareIconElement(A);this.handleIconLoadedSuccess(F)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(g=>{this.handleIconLoadedSuccess(g.default())}).catch(g=>{this.handleIconLoadedFailure(g)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:ph.SIZE}updated(t){var e,i,l,c;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((l=this.iconProviderContext.value)==null?void 0:l.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};vr.styles=[...Z.styles,...Cf],h([dt()],vr.prototype,"iconData",2),h([dt()],vr.prototype,"lengthUnitFromContext",2),h([dt()],vr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],vr.prototype,"name",2),h([u({type:Number})],vr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],vr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],vr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],vr.prototype,"ariaLabelledby",2),h([dt()],vr.prototype,"abortController",2);var mh=vr;mh.register(Lf);var cx=mh;Yo.register(Ci);var hx=Yo;var Mf=B`
490
+ `,...Tt()],Cf=dx;var Ja={},_f=async a=>(Ja[a]===void 0&&(Ja[a]=new Map),{async set(o,t){Ja[a].set(o.url,await t.text())},async get(o){return Ja[a].get(o.url)},async delete(o){Ja[a].delete(o.url)}}),wf=async a=>{let o=await caches.open(a);return{set:async(t,e)=>{await o.put(t,e)},get:async t=>{let e=await o.match(t);return e==null?void 0:e.text()},delete:async t=>{await o.delete(t)}}},$l=async(a,o)=>o==="in-memory-cache"?_f(a):wf(a);var kf=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Nf=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?kf(f).then(g=>g.text()):$l(i,e).then(g=>g.get(f).then(A=>A||kf(f.clone()).then(P=>{var H;return P.status<400&&P.headers.has("content-type")?(H=g.set)==null?void 0:H.call(g,f,P.clone()).then(()=>P.text()):P.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${o}, ${A}`)}))};var Lf=z.constructTagName("icon"),ph={NAME:void 0,SIZE:1};var vr=class extends Z{constructor(){super();this.name=ph.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ie.consume({host:this,context:Qa.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:i,cacheName:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&i&&e&&this.name){let g=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return Nf({url:i,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:g}).then(A=>{let P=this.prepareIconElement(A);this.handleIconLoadedSuccess(P)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(g=>{this.handleIconLoadedSuccess(g.default())}).catch(g=>{this.handleIconLoadedFailure(g)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:ph.SIZE}updated(t){var e,i,l,c;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((l=this.iconProviderContext.value)==null?void 0:l.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};vr.styles=[...Z.styles,...Cf],h([dt()],vr.prototype,"iconData",2),h([dt()],vr.prototype,"lengthUnitFromContext",2),h([dt()],vr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],vr.prototype,"name",2),h([u({type:Number})],vr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],vr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],vr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],vr.prototype,"ariaLabelledby",2),h([dt()],vr.prototype,"abortController",2);var mh=vr;mh.register(Lf);var cx=mh;Yo.register(Ci);var hx=Yo;var Mf=B`
491
491
  :host::part(text) {
492
492
  font-size: unset;
493
493
  font-weight: unset;
@@ -1092,7 +1092,7 @@
1092
1092
  ${this.label?S`<mdc-text part="label" type="${zs.TEXT_TYPE}" tagname="${zs.TAG_NAME}"
1093
1093
  >${this.label}</mdc-text
1094
1094
  >`:W}
1095
- `}};Bs.styles=[...Z.styles,...Vf],h([u({type:String,reflect:!0})],Bs.prototype,"variant",2),h([u({type:String})],Bs.prototype,"label",2);var Th=Bs;Th.register(Bl);var Cx=Th;var{I:_x}=of;var Hl=a=>a.strings===void 0,Bf=()=>document.createComment(""),Hs=(a,o,t)=>{var l;let e=a._$AA.parentNode,i=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=e.insertBefore(Bf(),i),f=e.insertBefore(Bf(),i);t=new _x(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,g=f!==a;if(g){let A;(l=t._$AQ)==null||l.call(t,a),t._$AM=a,t._$AP!==void 0&&(A=a._$AU)!==f._$AU&&t._$AP(A)}if(c!==i||g){let A=t._$AA;for(;A!==c;){let F=A.nextSibling;e.insertBefore(A,i),A=F}}}return t},co=(a,o,t=a)=>(a._$AI(o,t),a),wx={},Ul=(a,o=wx)=>a._$AH=o,Hf=a=>a._$AH,Gl=a=>{var e;(e=a._$AP)==null||e.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var gr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ni=a=>(...o)=>({_$litDirective$:a,values:o}),ai=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this.t=o,this._$AM=t,this.i=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var sn=(a,o)=>{var e;let t=a._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),sn(i,o);return!0},Kl=a=>{let o,t;do{if((o=a._$AM)===void 0)break;t=o._$AN,t.delete(a),a=o}while((t==null?void 0:t.size)===0)},Uf=a=>{for(let o;o=a._$AM;a=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(a))break;t.add(a),Lx(o)}};function kx(a){this._$AN!==void 0?(Kl(this),this._$AM=a,Uf(this)):this._$AM=a}function Nx(a,o=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(o)if(Array.isArray(e))for(let l=t;l<e.length;l++)sn(e[l],!1),Kl(e[l]);else e!=null&&(sn(e,!1),Kl(e));else sn(this,a)}var Lx=a=>{var o,t;a.type==gr.CHILD&&((o=a._$AP)!=null||(a._$AP=Nx),(t=a._$AQ)!=null||(a._$AQ=kx))},Wl=class extends ai{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),Uf(this),this.isConnected=o._$AU}_$AO(o,t=!0){var e,i;o!==this.isConnected&&(this.isConnected=o,o?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(sn(this,o),Kl(this))}setValue(o){if(Hl(this.t))this.t._$AI(o,this);else{let t=[...this.t._$AH];t[this.i]=o,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Gf=()=>new Ah,Ah=class{},xh=new WeakMap,Kf=Ni(class extends Wl{render(a){return W}update(a,[o]){var e;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(e=a.options)==null?void 0:e.host,this.rt(this.ct=a.element)),W}rt(a){var o;if(this.isConnected||(a=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=xh.get(t);e===void 0&&(e=new WeakMap,xh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,a),a!==void 0&&this.Y.call(this.ht,a)}else this.Y.value=a}get lt(){var a,o,t;return typeof this.Y=="function"?(o=xh.get((a=this.ht)!=null?a:globalThis))==null?void 0:o.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var qf=CT(Wf());var Sh={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 Mx=[Et,B`
1095
+ `}};Bs.styles=[...Z.styles,...Vf],h([u({type:String,reflect:!0})],Bs.prototype,"variant",2),h([u({type:String})],Bs.prototype,"label",2);var Th=Bs;Th.register(Bl);var Cx=Th;var{I:_x}=of;var Hl=a=>a.strings===void 0,Bf=()=>document.createComment(""),Hs=(a,o,t)=>{var l;let e=a._$AA.parentNode,i=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=e.insertBefore(Bf(),i),f=e.insertBefore(Bf(),i);t=new _x(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,g=f!==a;if(g){let A;(l=t._$AQ)==null||l.call(t,a),t._$AM=a,t._$AP!==void 0&&(A=a._$AU)!==f._$AU&&t._$AP(A)}if(c!==i||g){let A=t._$AA;for(;A!==c;){let P=A.nextSibling;e.insertBefore(A,i),A=P}}}return t},co=(a,o,t=a)=>(a._$AI(o,t),a),wx={},Ul=(a,o=wx)=>a._$AH=o,Hf=a=>a._$AH,Gl=a=>{var e;(e=a._$AP)==null||e.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var gr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ni=a=>(...o)=>({_$litDirective$:a,values:o}),ai=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this.t=o,this._$AM=t,this.i=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var sn=(a,o)=>{var e;let t=a._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),sn(i,o);return!0},Kl=a=>{let o,t;do{if((o=a._$AM)===void 0)break;t=o._$AN,t.delete(a),a=o}while((t==null?void 0:t.size)===0)},Uf=a=>{for(let o;o=a._$AM;a=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(a))break;t.add(a),Lx(o)}};function kx(a){this._$AN!==void 0?(Kl(this),this._$AM=a,Uf(this)):this._$AM=a}function Nx(a,o=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(o)if(Array.isArray(e))for(let l=t;l<e.length;l++)sn(e[l],!1),Kl(e[l]);else e!=null&&(sn(e,!1),Kl(e));else sn(this,a)}var Lx=a=>{var o,t;a.type==gr.CHILD&&((o=a._$AP)!=null||(a._$AP=Nx),(t=a._$AQ)!=null||(a._$AQ=kx))},Wl=class extends ai{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),Uf(this),this.isConnected=o._$AU}_$AO(o,t=!0){var e,i;o!==this.isConnected&&(this.isConnected=o,o?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(sn(this,o),Kl(this))}setValue(o){if(Hl(this.t))this.t._$AI(o,this);else{let t=[...this.t._$AH];t[this.i]=o,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Gf=()=>new Ah,Ah=class{},xh=new WeakMap,Kf=Ni(class extends Wl{render(a){return W}update(a,[o]){var e;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(e=a.options)==null?void 0:e.host,this.rt(this.ct=a.element)),W}rt(a){var o;if(this.isConnected||(a=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=xh.get(t);e===void 0&&(e=new WeakMap,xh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,a),a!==void 0&&this.Y.call(this.ht,a)}else this.Y.value=a}get lt(){var a,o,t;return typeof this.Y=="function"?(o=xh.get((a=this.ht)!=null?a:globalThis))==null?void 0:o.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var qf=CT(Wf());var Sh={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 Mx=[Et,B`
1096
1096
  :host svg {
1097
1097
  display: block;
1098
1098
  }
@@ -1379,7 +1379,7 @@
1379
1379
  height: var(--mdc-illustration-size);
1380
1380
  width: var(--mdc-illustration-size);
1381
1381
  }
1382
- `],nv=$x;var lv=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),dv=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?lv(f).then(g=>g.text()):$l(i,e).then(g=>g.get(f).then(A=>A||lv(f.clone()).then(F=>{var H;return F.status<400&&F.headers.has("content-type")?(H=g.set)==null?void 0:H.call(g,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${o}, ${A}`)}))};var cv=z.constructTagName("illustration"),hv={NAME:void 0};var Li=class extends Z{constructor(){super();this.name=hv.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Ie.consume({host:this,context:ln.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","illustration"),e.setAttribute("aria-hidden","true"),e}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:e,url:i,cacheName:l,illustrationSet:c,cacheStrategy:f}=this.illustrationProviderContext.value;if(c==="custom-illustrations"&&i&&e&&this.name){let g=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return dv({url:i,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:g}).then(A=>{let F=this.prepareIllustrationElement(A);this.handleIllustrationLoadedSuccess(F)}).catch(A=>{this.handleIllustrationLoadedFailure(A)})}if(c==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(g=>{this.handleIllustrationLoadedSuccess(g.default())}).catch(g=>{this.handleIllustrationLoadedFailure(g)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIllustrationLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(e=>{e.name!=="AbortError"&&this.onerror&&this.onerror(e)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.illustrationData} `}};Li.styles=[...Z.styles,...nv],h([dt()],Li.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],Li.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],Li.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Li.prototype,"ariaLabelledby",2),h([dt()],Li.prototype,"abortController",2);var Rh=Li;Rh.register(cv);var Vx=Rh;Oh.register(ov);var zx=Oh;var Bx=B`
1382
+ `],nv=$x;var lv=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),dv=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?lv(f).then(g=>g.text()):$l(i,e).then(g=>g.get(f).then(A=>A||lv(f.clone()).then(P=>{var H;return P.status<400&&P.headers.has("content-type")?(H=g.set)==null?void 0:H.call(g,f,P.clone()).then(()=>P.text()):P.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${o}, ${A}`)}))};var cv=z.constructTagName("illustration"),hv={NAME:void 0};var Li=class extends Z{constructor(){super();this.name=hv.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Ie.consume({host:this,context:ln.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","illustration"),e.setAttribute("aria-hidden","true"),e}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:e,url:i,cacheName:l,illustrationSet:c,cacheStrategy:f}=this.illustrationProviderContext.value;if(c==="custom-illustrations"&&i&&e&&this.name){let g=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return dv({url:i,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:g}).then(A=>{let P=this.prepareIllustrationElement(A);this.handleIllustrationLoadedSuccess(P)}).catch(A=>{this.handleIllustrationLoadedFailure(A)})}if(c==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(g=>{this.handleIllustrationLoadedSuccess(g.default())}).catch(g=>{this.handleIllustrationLoadedFailure(g)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIllustrationLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(e=>{e.name!=="AbortError"&&this.onerror&&this.onerror(e)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.illustrationData} `}};Li.styles=[...Z.styles,...nv],h([dt()],Li.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],Li.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],Li.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Li.prototype,"ariaLabelledby",2),h([dt()],Li.prototype,"abortController",2);var Rh=Li;Rh.register(cv);var Vx=Rh;Oh.register(ov);var zx=Oh;var Bx=B`
1383
1383
  :host {
1384
1384
  --mdc-appheader-height: 4rem;
1385
1385
  }
@@ -2624,7 +2624,7 @@
2624
2624
  }
2625
2625
  }
2626
2626
  `],Xv=EA;var Jo=class extends te(Z){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return S` <slot></slot>
2627
- <span part="radio-icon" class="radio-icon"></span>`}};Jo.styles=[...Z.styles,...Xv],h([u({type:Boolean,reflect:!0})],Jo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Jo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Jo.prototype,"softDisabled",2);var Qh=Jo;var Zv=z.constructTagName("staticradio");Qh.register(Zv);var TA=Qh;Zh.register(fd);var xA=Zh;var br=Math.min,we=Math.max,fn=Math.round,vn=Math.floor,Hr=a=>({x:a,y:a}),AA={left:"right",right:"left",bottom:"top",top:"bottom"},SA={start:"end",end:"start"};function gd(a,o,t){return we(a,br(o,t))}function fo(a,o){return typeof a=="function"?a(o):a}function Ur(a){return a.split("-")[0]}function ts(a){return a.split("-")[1]}function Jh(a){return a==="x"?"y":"x"}function bd(a){return a==="y"?"height":"width"}var IA=new Set(["top","bottom"]);function Gr(a){return IA.has(Ur(a))?"y":"x"}function yd(a){return Jh(Gr(a))}function tg(a,o,t){t===void 0&&(t=!1);let e=ts(a),i=yd(a),l=bd(i),c=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=un(c)),[c,un(c)]}function eg(a){let o=un(a);return[vd(a),o,vd(o)]}function vd(a){return a.replace(/start|end/g,o=>SA[o])}var Qv=["left","right"],Jv=["right","left"],CA=["top","bottom"],_A=["bottom","top"];function wA(a,o,t){switch(a){case"top":case"bottom":return t?o?Jv:Qv:o?Qv:Jv;case"left":case"right":return o?CA:_A;default:return[]}}function rg(a,o,t,e){let i=ts(a),l=wA(Ur(a),t==="start",e);return i&&(l=l.map(c=>c+"-"+i),o&&(l=l.concat(l.map(vd)))),l}function un(a){return a.replace(/left|right|bottom|top/g,o=>AA[o])}function kA(a){return{top:0,right:0,bottom:0,left:0,...a}}function Ed(a){return typeof a!="number"?kA(a):{top:a,right:a,bottom:a,left:a}}function Di(a){let{x:o,y:t,width:e,height:i}=a;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function ig(a,o,t){let{reference:e,floating:i}=a,l=Gr(o),c=yd(o),f=bd(c),g=Ur(o),A=l==="y",F=e.x+e.width/2-i.width/2,H=e.y+e.height/2-i.height/2,Q=e[f]/2-i[f]/2,X;switch(g){case"top":X={x:F,y:e.y-i.height};break;case"bottom":X={x:F,y:e.y+e.height};break;case"right":X={x:e.x+e.width,y:H};break;case"left":X={x:e.x-i.width,y:H};break;default:X={x:e.x,y:e.y}}switch(ts(o)){case"start":X[c]-=Q*(t&&A?-1:1);break;case"end":X[c]+=Q*(t&&A?-1:1);break}return X}var og=async(a,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),g=await(c.isRTL==null?void 0:c.isRTL(o)),A=await c.getElementRects({reference:a,floating:o,strategy:i}),{x:F,y:H}=ig(A,e,g),Q=e,X={},J=0;for(let at=0;at<f.length;at++){let{name:nt,fn:ht}=f[at],{x:yt,y:Ct,data:Ot,reset:Vt}=await ht({x:F,y:H,initialPlacement:e,placement:Q,strategy:i,middlewareData:X,rects:A,platform:c,elements:{reference:a,floating:o}});F=yt!=null?yt:F,H=Ct!=null?Ct:H,X={...X,[nt]:{...X[nt],...Ot}},Vt&&J<=50&&(J++,typeof Vt=="object"&&(Vt.placement&&(Q=Vt.placement),Vt.rects&&(A=Vt.rects===!0?await c.getElementRects({reference:a,floating:o,strategy:i}):Vt.rects),{x:F,y:H}=ig(A,Q,g)),at=-1)}return{x:F,y:H,placement:Q,strategy:i,middlewareData:X}};async function Td(a,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:l,rects:c,elements:f,strategy:g}=a,{boundary:A="clippingAncestors",rootBoundary:F="viewport",elementContext:H="floating",altBoundary:Q=!1,padding:X=0}=fo(o,a),J=Ed(X),nt=f[Q?H==="floating"?"reference":"floating":H],ht=Di(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(nt)))==null||t?nt:nt.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:F,strategy:g})),yt=H==="floating"?{x:e,y:i,width:c.floating.width,height:c.floating.height}:c.reference,Ct=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),Ot=await(l.isElement==null?void 0:l.isElement(Ct))?await(l.getScale==null?void 0:l.getScale(Ct))||{x:1,y:1}:{x:1,y:1},Vt=Di(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:yt,offsetParent:Ct,strategy:g}):yt);return{top:(ht.top-Vt.top+J.top)/Ot.y,bottom:(Vt.bottom-ht.bottom+J.bottom)/Ot.y,left:(ht.left-Vt.left+J.left)/Ot.x,right:(Vt.right-ht.right+J.right)/Ot.x}}var sg=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:e,placement:i,rects:l,platform:c,elements:f,middlewareData:g}=o,{element:A,padding:F=0}=fo(a,o)||{};if(A==null)return{};let H=Ed(F),Q={x:t,y:e},X=yd(i),J=bd(X),at=await c.getDimensions(A),nt=X==="y",ht=nt?"top":"left",yt=nt?"bottom":"right",Ct=nt?"clientHeight":"clientWidth",Ot=l.reference[J]+l.reference[X]-Q[X]-l.floating[J],Vt=Q[X]-l.reference[X],Gt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),Dt=Gt?Gt[Ct]:0;(!Dt||!await(c.isElement==null?void 0:c.isElement(Gt)))&&(Dt=f.floating[Ct]||l.floating[J]);let ae=Ot/2-Vt/2,Ge=Dt/2-at[J]/2-1,jt=br(H[ht],Ge),Ee=br(H[yt],Ge),Te=jt,xe=Dt-at[J]-Ee,wt=Dt/2-at[J]/2+ae,oe=gd(Te,wt,xe),Ke=!g.arrow&&ts(i)!=null&&wt!==oe&&l.reference[J]/2-(wt<Te?jt:Ee)-at[J]/2<0,Qe=Ke?wt<Te?wt-Te:wt-xe:0;return{[X]:Q[X]+Qe,data:{[X]:oe,centerOffset:wt-oe-Qe,...Ke&&{alignmentOffset:Qe}},reset:Ke}}});var ag=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,e;let{placement:i,middlewareData:l,rects:c,initialPlacement:f,platform:g,elements:A}=o,{mainAxis:F=!0,crossAxis:H=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:J="none",flipAlignment:at=!0,...nt}=fo(a,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let ht=Ur(i),yt=Gr(f),Ct=Ur(f)===f,Ot=await(g.isRTL==null?void 0:g.isRTL(A.floating)),Vt=Q||(Ct||!at?[un(f)]:eg(f)),Gt=J!=="none";!Q&&Gt&&Vt.push(...rg(f,at,J,Ot));let Dt=[f,...Vt],ae=await Td(o,nt),Ge=[],jt=((e=l.flip)==null?void 0:e.overflows)||[];if(F&&Ge.push(ae[ht]),H){let wt=tg(i,c,Ot);Ge.push(ae[wt[0]],ae[wt[1]])}if(jt=[...jt,{placement:i,overflows:Ge}],!Ge.every(wt=>wt<=0)){var Ee,Te;let wt=(((Ee=l.flip)==null?void 0:Ee.index)||0)+1,oe=Dt[wt];if(oe&&(!(H==="alignment"?yt!==Gr(oe):!1)||jt.every(Je=>Je.overflows[0]>0&&Gr(Je.placement)===yt)))return{data:{index:wt,overflows:jt},reset:{placement:oe}};let Ke=(Te=jt.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:Te.placement;if(!Ke)switch(X){case"bestFit":{var xe;let Qe=(xe=jt.filter(Je=>{if(Gt){let xr=Gr(Je.placement);return xr===yt||xr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(xr=>xr>0).reduce((xr,Zn)=>xr+Zn,0)]).sort((Je,xr)=>Je[1]-xr[1])[0])==null?void 0:xe[0];Qe&&(Ke=Qe);break}case"initialPlacement":Ke=f;break}if(i!==Ke)return{reset:{placement:Ke}}}return{}}}};function ng(a){let o=br(...a.map(l=>l.left)),t=br(...a.map(l=>l.top)),e=we(...a.map(l=>l.right)),i=we(...a.map(l=>l.bottom));return{x:o,y:t,width:e-o,height:i-t}}function NA(a){let o=a.slice().sort((i,l)=>i.y-l.y),t=[],e=null;for(let i=0;i<o.length;i++){let l=o[i];!e||l.y-e.y>e.height/2?t.push([l]):t[t.length-1].push(l),e=l}return t.map(i=>Di(ng(i)))}var lg=function(a){return a===void 0&&(a={}),{name:"inline",options:a,async fn(o){let{placement:t,elements:e,rects:i,platform:l,strategy:c}=o,{padding:f=2,x:g,y:A}=fo(a,o),F=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(e.reference))||[]),H=NA(F),Q=Di(ng(F)),X=Ed(f);function J(){if(H.length===2&&H[0].left>H[1].right&&g!=null&&A!=null)return H.find(nt=>g>nt.left-X.left&&g<nt.right+X.right&&A>nt.top-X.top&&A<nt.bottom+X.bottom)||Q;if(H.length>=2){if(Gr(t)==="y"){let jt=H[0],Ee=H[H.length-1],Te=Ur(t)==="top",xe=jt.top,wt=Ee.bottom,oe=Te?jt.left:Ee.left,Ke=Te?jt.right:Ee.right,Qe=Ke-oe,Je=wt-xe;return{top:xe,bottom:wt,left:oe,right:Ke,width:Qe,height:Je,x:oe,y:xe}}let nt=Ur(t)==="left",ht=we(...H.map(jt=>jt.right)),yt=br(...H.map(jt=>jt.left)),Ct=H.filter(jt=>nt?jt.left===yt:jt.right===ht),Ot=Ct[0].top,Vt=Ct[Ct.length-1].bottom,Gt=yt,Dt=ht,ae=Dt-Gt,Ge=Vt-Ot;return{top:Ot,bottom:Vt,left:Gt,right:Dt,width:ae,height:Ge,x:Gt,y:Ot}}return Q}let at=await l.getElementRects({reference:{getBoundingClientRect:J},floating:e.floating,strategy:c});return i.reference.x!==at.reference.x||i.reference.y!==at.reference.y||i.reference.width!==at.reference.width||i.reference.height!==at.reference.height?{reset:{rects:at}}:{}}}},LA=new Set(["left","top"]);async function MA(a,o){let{placement:t,platform:e,elements:i}=a,l=await(e.isRTL==null?void 0:e.isRTL(i.floating)),c=Ur(t),f=ts(t),g=Gr(t)==="y",A=LA.has(c)?-1:1,F=l&&g?-1:1,H=fo(o,a),{mainAxis:Q,crossAxis:X,alignmentAxis:J}=typeof H=="number"?{mainAxis:H,crossAxis:0,alignmentAxis:null}:{mainAxis:H.mainAxis||0,crossAxis:H.crossAxis||0,alignmentAxis:H.alignmentAxis};return f&&typeof J=="number"&&(X=f==="end"?J*-1:J),g?{x:X*F,y:Q*A}:{x:Q*A,y:X*F}}var dg=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,e;let{x:i,y:l,placement:c,middlewareData:f}=o,g=await MA(o,a);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+g.x,y:l+g.y,data:{...g,placement:c}}}}},cg=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:nt=>{let{x:ht,y:yt}=nt;return{x:ht,y:yt}}},...g}=fo(a,o),A={x:t,y:e},F=await Td(o,g),H=Gr(Ur(i)),Q=Jh(H),X=A[Q],J=A[H];if(l){let nt=Q==="y"?"top":"left",ht=Q==="y"?"bottom":"right",yt=X+F[nt],Ct=X-F[ht];X=gd(yt,X,Ct)}if(c){let nt=H==="y"?"top":"left",ht=H==="y"?"bottom":"right",yt=J+F[nt],Ct=J-F[ht];J=gd(yt,J,Ct)}let at=f.fn({...o,[Q]:X,[H]:J});return{...at,data:{x:at.x-t,y:at.y-e,enabled:{[Q]:l,[H]:c}}}}}};var hg=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,e;let{placement:i,rects:l,platform:c,elements:f}=o,{apply:g=()=>{},...A}=fo(a,o),F=await Td(o,A),H=Ur(i),Q=ts(i),X=Gr(i)==="y",{width:J,height:at}=l.floating,nt,ht;H==="top"||H==="bottom"?(nt=H,ht=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=H,nt=Q==="end"?"top":"bottom");let yt=at-F.top-F.bottom,Ct=J-F.left-F.right,Ot=br(at-F[nt],yt),Vt=br(J-F[ht],Ct),Gt=!o.middlewareData.shift,Dt=Ot,ae=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ae=Ct),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Dt=yt),Gt&&!Q){let jt=we(F.left,0),Ee=we(F.right,0),Te=we(F.top,0),xe=we(F.bottom,0);X?ae=J-2*(jt!==0||Ee!==0?jt+Ee:we(F.left,F.right)):Dt=at-2*(Te!==0||xe!==0?Te+xe:we(F.top,F.bottom))}await g({...o,availableWidth:ae,availableHeight:Dt});let Ge=await c.getDimensions(f.floating);return J!==Ge.width||at!==Ge.height?{reset:{rects:!0}}:{}}}};function xd(){return typeof window<"u"}function es(a){return mg(a)?(a.nodeName||"").toLowerCase():"#document"}function ar(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function Kr(a){var o;return(o=(mg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function mg(a){return xd()?a instanceof Node||a instanceof ar(a).Node:!1}function wr(a){return xd()?a instanceof Element||a instanceof ar(a).Element:!1}function Wr(a){return xd()?a instanceof HTMLElement||a instanceof ar(a).HTMLElement:!1}function pg(a){return!xd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ar(a).ShadowRoot}var OA=new Set(["inline","contents"]);function ta(a){let{overflow:o,overflowX:t,overflowY:e,display:i}=kr(a);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!OA.has(i)}var RA=new Set(["table","td","th"]);function ug(a){return RA.has(es(a))}var DA=[":popover-open",":modal"];function gn(a){return DA.some(o=>{try{return a.matches(o)}catch{return!1}})}var PA=["transform","translate","scale","rotate","perspective"],FA=["transform","translate","scale","rotate","perspective","filter"],$A=["paint","layout","strict","content"];function Ad(a){let o=Sd(),t=wr(a)?kr(a):a;return PA.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||FA.some(e=>(t.willChange||"").includes(e))||$A.some(e=>(t.contain||"").includes(e))}function fg(a){let o=Pi(a);for(;Wr(o)&&!rs(o);){if(Ad(o))return o;if(gn(o))return null;o=Pi(o)}return null}function Sd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var VA=new Set(["html","body","#document"]);function rs(a){return VA.has(es(a))}function kr(a){return ar(a).getComputedStyle(a)}function bn(a){return wr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Pi(a){if(es(a)==="html")return a;let o=a.assignedSlot||a.parentNode||pg(a)&&a.host||Kr(a);return pg(o)?o.host:o}function vg(a){let o=Pi(a);return rs(o)?a.ownerDocument?a.ownerDocument.body:a.body:Wr(o)&&ta(o)?o:vg(o)}function Js(a,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=vg(a),l=i===((e=a.ownerDocument)==null?void 0:e.body),c=ar(i);if(l){let f=Id(c);return o.concat(c,c.visualViewport||[],ta(i)?i:[],f&&t?Js(f):[])}return o.concat(i,Js(i,[],t))}function Id(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function yg(a){let o=kr(a),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Wr(a),l=i?a.offsetWidth:t,c=i?a.offsetHeight:e,f=fn(t)!==l||fn(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function ep(a){return wr(a)?a:a.contextElement}function ea(a){let o=ep(a);if(!Wr(o))return Hr(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:l}=yg(o),c=(l?fn(t.width):t.width)/e,f=(l?fn(t.height):t.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var zA=Hr(0);function Eg(a){let o=ar(a);return!Sd()||!o.visualViewport?zA:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function BA(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==ar(a)?!1:o}function is(a,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=a.getBoundingClientRect(),l=ep(a),c=Hr(1);o&&(e?wr(e)&&(c=ea(e)):c=ea(a));let f=BA(l,t,e)?Eg(l):Hr(0),g=(i.left+f.x)/c.x,A=(i.top+f.y)/c.y,F=i.width/c.x,H=i.height/c.y;if(l){let Q=ar(l),X=e&&wr(e)?ar(e):e,J=Q,at=Id(J);for(;at&&e&&X!==J;){let nt=ea(at),ht=at.getBoundingClientRect(),yt=kr(at),Ct=ht.left+(at.clientLeft+parseFloat(yt.paddingLeft))*nt.x,Ot=ht.top+(at.clientTop+parseFloat(yt.paddingTop))*nt.y;g*=nt.x,A*=nt.y,F*=nt.x,H*=nt.y,g+=Ct,A+=Ot,J=ar(at),at=Id(J)}}return Di({width:F,height:H,x:g,y:A})}function rp(a,o){let t=bn(a).scrollLeft;return o?o.left+t:is(Kr(a)).left+t}function Tg(a,o,t){t===void 0&&(t=!1);let e=a.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:rp(a,e)),l=e.top+o.scrollTop;return{x:i,y:l}}function HA(a){let{elements:o,rect:t,offsetParent:e,strategy:i}=a,l=i==="fixed",c=Kr(e),f=o?gn(o.floating):!1;if(e===c||f&&l)return t;let g={scrollLeft:0,scrollTop:0},A=Hr(1),F=Hr(0),H=Wr(e);if((H||!H&&!l)&&((es(e)!=="body"||ta(c))&&(g=bn(e)),Wr(e))){let X=is(e);A=ea(e),F.x=X.x+e.clientLeft,F.y=X.y+e.clientTop}let Q=c&&!H&&!l?Tg(c,g,!0):Hr(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-g.scrollLeft*A.x+F.x+Q.x,y:t.y*A.y-g.scrollTop*A.y+F.y+Q.y}}function UA(a){return Array.from(a.getClientRects())}function GA(a){let o=Kr(a),t=bn(a),e=a.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+rp(a),f=-t.scrollTop;return kr(e).direction==="rtl"&&(c+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:l,x:c,y:f}}function KA(a,o){let t=ar(a),e=Kr(a),i=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,g=0;if(i){l=i.width,c=i.height;let A=Sd();(!A||A&&o==="fixed")&&(f=i.offsetLeft,g=i.offsetTop)}return{width:l,height:c,x:f,y:g}}var WA=new Set(["absolute","fixed"]);function YA(a,o){let t=is(a,!0,o==="fixed"),e=t.top+a.clientTop,i=t.left+a.clientLeft,l=Wr(a)?ea(a):Hr(1),c=a.clientWidth*l.x,f=a.clientHeight*l.y,g=i*l.x,A=e*l.y;return{width:c,height:f,x:g,y:A}}function gg(a,o,t){let e;if(o==="viewport")e=KA(a,t);else if(o==="document")e=GA(Kr(a));else if(wr(o))e=YA(o,t);else{let i=Eg(a);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Di(e)}function xg(a,o){let t=Pi(a);return t===o||!wr(t)||rs(t)?!1:kr(t).position==="fixed"||xg(t,o)}function jA(a,o){let t=o.get(a);if(t)return t;let e=Js(a,[],!1).filter(f=>wr(f)&&es(f)!=="body"),i=null,l=kr(a).position==="fixed",c=l?Pi(a):a;for(;wr(c)&&!rs(c);){let f=kr(c),g=Ad(c);!g&&f.position==="fixed"&&(i=null),(l?!g&&!i:!g&&f.position==="static"&&!!i&&WA.has(i.position)||ta(c)&&!g&&xg(a,c))?e=e.filter(F=>F!==c):i=f,c=Pi(c)}return o.set(a,e),e}function qA(a){let{element:o,boundary:t,rootBoundary:e,strategy:i}=a,c=[...t==="clippingAncestors"?gn(o)?[]:jA(o,this._c):[].concat(t),e],f=c[0],g=c.reduce((A,F)=>{let H=gg(o,F,i);return A.top=we(H.top,A.top),A.right=br(H.right,A.right),A.bottom=br(H.bottom,A.bottom),A.left=we(H.left,A.left),A},gg(o,f,i));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function XA(a){let{width:o,height:t}=yg(a);return{width:o,height:t}}function ZA(a,o,t){let e=Wr(o),i=Kr(o),l=t==="fixed",c=is(a,!0,l,o),f={scrollLeft:0,scrollTop:0},g=Hr(0);function A(){g.x=rp(i)}if(e||!e&&!l)if((es(o)!=="body"||ta(i))&&(f=bn(o)),e){let X=is(o,!0,l,o);g.x=X.x+o.clientLeft,g.y=X.y+o.clientTop}else i&&A();l&&!e&&i&&A();let F=i&&!e&&!l?Tg(i,f):Hr(0),H=c.left+f.scrollLeft-g.x-F.x,Q=c.top+f.scrollTop-g.y-F.y;return{x:H,y:Q,width:c.width,height:c.height}}function tp(a){return kr(a).position==="static"}function bg(a,o){if(!Wr(a)||kr(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return Kr(a)===t&&(t=t.ownerDocument.body),t}function Ag(a,o){let t=ar(a);if(gn(a))return t;if(!Wr(a)){let i=Pi(a);for(;i&&!rs(i);){if(wr(i)&&!tp(i))return i;i=Pi(i)}return t}let e=bg(a,o);for(;e&&ug(e)&&tp(e);)e=bg(e,o);return e&&rs(e)&&tp(e)&&!Ad(e)?t:e||fg(a)||t}var QA=async function(a){let o=this.getOffsetParent||Ag,t=this.getDimensions,e=await t(a.floating);return{reference:ZA(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function JA(a){return kr(a).direction==="rtl"}var t0={convertOffsetParentRelativeRectToViewportRelativeRect:HA,getDocumentElement:Kr,getClippingRect:qA,getOffsetParent:Ag,getElementRects:QA,getClientRects:UA,getDimensions:XA,getScale:ea,isElement:wr,isRTL:JA};function Sg(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function e0(a,o){let t=null,e,i=Kr(a);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,g){f===void 0&&(f=!1),g===void 0&&(g=1),l();let A=a.getBoundingClientRect(),{left:F,top:H,width:Q,height:X}=A;if(f||o(),!Q||!X)return;let J=vn(H),at=vn(i.clientWidth-(F+Q)),nt=vn(i.clientHeight-(H+X)),ht=vn(F),Ct={rootMargin:-J+"px "+-at+"px "+-nt+"px "+-ht+"px",threshold:we(0,br(1,g))||1},Ot=!0;function Vt(Gt){let Dt=Gt[0].intersectionRatio;if(Dt!==g){if(!Ot)return c();Dt?c(!1,Dt):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Dt===1&&!Sg(A,a.getBoundingClientRect())&&c(),Ot=!1}try{t=new IntersectionObserver(Vt,{...Ct,root:i.ownerDocument})}catch{t=new IntersectionObserver(Vt,Ct)}t.observe(a)}return c(!0),l}function Ig(a,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:g=!1}=e,A=ep(a),F=i||l?[...A?Js(A):[],...Js(o)]:[];F.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),l&&ht.addEventListener("resize",t)});let H=A&&f?e0(A,t):null,Q=-1,X=null;c&&(X=new ResizeObserver(ht=>{let[yt]=ht;yt&&yt.target===A&&X&&(X.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=X)==null||Ct.observe(o)})),t()}),A&&!g&&X.observe(A),X.observe(o));let J,at=g?is(a):null;g&&nt();function nt(){let ht=is(a);at&&!Sg(at,ht)&&t(),at=ht,J=requestAnimationFrame(nt)}return t(),()=>{var ht;F.forEach(yt=>{i&&yt.removeEventListener("scroll",t),l&&yt.removeEventListener("resize",t)}),H==null||H(),(ht=X)==null||ht.disconnect(),X=null,g&&cancelAnimationFrame(J)}}var Cg=dg;var _g=cg,wg=ag,kg=hg;var Ng=sg,Lg=lg;var Mg=(a,o,t)=>{let e=new Map,i={platform:t0,...t},l={...i.platform,_c:e};return og(a,o,{...i,platform:l})};var Cd=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,e,...i){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let l=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,l),l}clearInterval(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,e,...i){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,l),l}clearTimeout(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var e;if(typeof t=="number"){let i=t;return[(e=[...o.entries()].find(([,c])=>c===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var Fi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var r0=B`
2627
+ <span part="radio-icon" class="radio-icon"></span>`}};Jo.styles=[...Z.styles,...Xv],h([u({type:Boolean,reflect:!0})],Jo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Jo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Jo.prototype,"softDisabled",2);var Qh=Jo;var Zv=z.constructTagName("staticradio");Qh.register(Zv);var TA=Qh;Zh.register(fd);var xA=Zh;var br=Math.min,we=Math.max,fn=Math.round,vn=Math.floor,Hr=a=>({x:a,y:a}),AA={left:"right",right:"left",bottom:"top",top:"bottom"},SA={start:"end",end:"start"};function gd(a,o,t){return we(a,br(o,t))}function fo(a,o){return typeof a=="function"?a(o):a}function Ur(a){return a.split("-")[0]}function ts(a){return a.split("-")[1]}function Jh(a){return a==="x"?"y":"x"}function bd(a){return a==="y"?"height":"width"}var IA=new Set(["top","bottom"]);function Gr(a){return IA.has(Ur(a))?"y":"x"}function yd(a){return Jh(Gr(a))}function tg(a,o,t){t===void 0&&(t=!1);let e=ts(a),i=yd(a),l=bd(i),c=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=un(c)),[c,un(c)]}function eg(a){let o=un(a);return[vd(a),o,vd(o)]}function vd(a){return a.replace(/start|end/g,o=>SA[o])}var Qv=["left","right"],Jv=["right","left"],CA=["top","bottom"],_A=["bottom","top"];function wA(a,o,t){switch(a){case"top":case"bottom":return t?o?Jv:Qv:o?Qv:Jv;case"left":case"right":return o?CA:_A;default:return[]}}function rg(a,o,t,e){let i=ts(a),l=wA(Ur(a),t==="start",e);return i&&(l=l.map(c=>c+"-"+i),o&&(l=l.concat(l.map(vd)))),l}function un(a){return a.replace(/left|right|bottom|top/g,o=>AA[o])}function kA(a){return{top:0,right:0,bottom:0,left:0,...a}}function Ed(a){return typeof a!="number"?kA(a):{top:a,right:a,bottom:a,left:a}}function Di(a){let{x:o,y:t,width:e,height:i}=a;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function ig(a,o,t){let{reference:e,floating:i}=a,l=Gr(o),c=yd(o),f=bd(c),g=Ur(o),A=l==="y",P=e.x+e.width/2-i.width/2,H=e.y+e.height/2-i.height/2,Q=e[f]/2-i[f]/2,X;switch(g){case"top":X={x:P,y:e.y-i.height};break;case"bottom":X={x:P,y:e.y+e.height};break;case"right":X={x:e.x+e.width,y:H};break;case"left":X={x:e.x-i.width,y:H};break;default:X={x:e.x,y:e.y}}switch(ts(o)){case"start":X[c]-=Q*(t&&A?-1:1);break;case"end":X[c]+=Q*(t&&A?-1:1);break}return X}var og=async(a,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),g=await(c.isRTL==null?void 0:c.isRTL(o)),A=await c.getElementRects({reference:a,floating:o,strategy:i}),{x:P,y:H}=ig(A,e,g),Q=e,X={},J=0;for(let at=0;at<f.length;at++){let{name:nt,fn:ht}=f[at],{x:yt,y:Ct,data:Ot,reset:Vt}=await ht({x:P,y:H,initialPlacement:e,placement:Q,strategy:i,middlewareData:X,rects:A,platform:c,elements:{reference:a,floating:o}});P=yt!=null?yt:P,H=Ct!=null?Ct:H,X={...X,[nt]:{...X[nt],...Ot}},Vt&&J<=50&&(J++,typeof Vt=="object"&&(Vt.placement&&(Q=Vt.placement),Vt.rects&&(A=Vt.rects===!0?await c.getElementRects({reference:a,floating:o,strategy:i}):Vt.rects),{x:P,y:H}=ig(A,Q,g)),at=-1)}return{x:P,y:H,placement:Q,strategy:i,middlewareData:X}};async function Td(a,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:l,rects:c,elements:f,strategy:g}=a,{boundary:A="clippingAncestors",rootBoundary:P="viewport",elementContext:H="floating",altBoundary:Q=!1,padding:X=0}=fo(o,a),J=Ed(X),nt=f[Q?H==="floating"?"reference":"floating":H],ht=Di(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(nt)))==null||t?nt:nt.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:P,strategy:g})),yt=H==="floating"?{x:e,y:i,width:c.floating.width,height:c.floating.height}:c.reference,Ct=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),Ot=await(l.isElement==null?void 0:l.isElement(Ct))?await(l.getScale==null?void 0:l.getScale(Ct))||{x:1,y:1}:{x:1,y:1},Vt=Di(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:yt,offsetParent:Ct,strategy:g}):yt);return{top:(ht.top-Vt.top+J.top)/Ot.y,bottom:(Vt.bottom-ht.bottom+J.bottom)/Ot.y,left:(ht.left-Vt.left+J.left)/Ot.x,right:(Vt.right-ht.right+J.right)/Ot.x}}var sg=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:e,placement:i,rects:l,platform:c,elements:f,middlewareData:g}=o,{element:A,padding:P=0}=fo(a,o)||{};if(A==null)return{};let H=Ed(P),Q={x:t,y:e},X=yd(i),J=bd(X),at=await c.getDimensions(A),nt=X==="y",ht=nt?"top":"left",yt=nt?"bottom":"right",Ct=nt?"clientHeight":"clientWidth",Ot=l.reference[J]+l.reference[X]-Q[X]-l.floating[J],Vt=Q[X]-l.reference[X],Gt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),Dt=Gt?Gt[Ct]:0;(!Dt||!await(c.isElement==null?void 0:c.isElement(Gt)))&&(Dt=f.floating[Ct]||l.floating[J]);let ae=Ot/2-Vt/2,Ge=Dt/2-at[J]/2-1,jt=br(H[ht],Ge),Ee=br(H[yt],Ge),Te=jt,xe=Dt-at[J]-Ee,wt=Dt/2-at[J]/2+ae,oe=gd(Te,wt,xe),Ke=!g.arrow&&ts(i)!=null&&wt!==oe&&l.reference[J]/2-(wt<Te?jt:Ee)-at[J]/2<0,Qe=Ke?wt<Te?wt-Te:wt-xe:0;return{[X]:Q[X]+Qe,data:{[X]:oe,centerOffset:wt-oe-Qe,...Ke&&{alignmentOffset:Qe}},reset:Ke}}});var ag=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,e;let{placement:i,middlewareData:l,rects:c,initialPlacement:f,platform:g,elements:A}=o,{mainAxis:P=!0,crossAxis:H=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:J="none",flipAlignment:at=!0,...nt}=fo(a,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let ht=Ur(i),yt=Gr(f),Ct=Ur(f)===f,Ot=await(g.isRTL==null?void 0:g.isRTL(A.floating)),Vt=Q||(Ct||!at?[un(f)]:eg(f)),Gt=J!=="none";!Q&&Gt&&Vt.push(...rg(f,at,J,Ot));let Dt=[f,...Vt],ae=await Td(o,nt),Ge=[],jt=((e=l.flip)==null?void 0:e.overflows)||[];if(P&&Ge.push(ae[ht]),H){let wt=tg(i,c,Ot);Ge.push(ae[wt[0]],ae[wt[1]])}if(jt=[...jt,{placement:i,overflows:Ge}],!Ge.every(wt=>wt<=0)){var Ee,Te;let wt=(((Ee=l.flip)==null?void 0:Ee.index)||0)+1,oe=Dt[wt];if(oe&&(!(H==="alignment"?yt!==Gr(oe):!1)||jt.every(Je=>Je.overflows[0]>0&&Gr(Je.placement)===yt)))return{data:{index:wt,overflows:jt},reset:{placement:oe}};let Ke=(Te=jt.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:Te.placement;if(!Ke)switch(X){case"bestFit":{var xe;let Qe=(xe=jt.filter(Je=>{if(Gt){let xr=Gr(Je.placement);return xr===yt||xr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(xr=>xr>0).reduce((xr,Zn)=>xr+Zn,0)]).sort((Je,xr)=>Je[1]-xr[1])[0])==null?void 0:xe[0];Qe&&(Ke=Qe);break}case"initialPlacement":Ke=f;break}if(i!==Ke)return{reset:{placement:Ke}}}return{}}}};function ng(a){let o=br(...a.map(l=>l.left)),t=br(...a.map(l=>l.top)),e=we(...a.map(l=>l.right)),i=we(...a.map(l=>l.bottom));return{x:o,y:t,width:e-o,height:i-t}}function NA(a){let o=a.slice().sort((i,l)=>i.y-l.y),t=[],e=null;for(let i=0;i<o.length;i++){let l=o[i];!e||l.y-e.y>e.height/2?t.push([l]):t[t.length-1].push(l),e=l}return t.map(i=>Di(ng(i)))}var lg=function(a){return a===void 0&&(a={}),{name:"inline",options:a,async fn(o){let{placement:t,elements:e,rects:i,platform:l,strategy:c}=o,{padding:f=2,x:g,y:A}=fo(a,o),P=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(e.reference))||[]),H=NA(P),Q=Di(ng(P)),X=Ed(f);function J(){if(H.length===2&&H[0].left>H[1].right&&g!=null&&A!=null)return H.find(nt=>g>nt.left-X.left&&g<nt.right+X.right&&A>nt.top-X.top&&A<nt.bottom+X.bottom)||Q;if(H.length>=2){if(Gr(t)==="y"){let jt=H[0],Ee=H[H.length-1],Te=Ur(t)==="top",xe=jt.top,wt=Ee.bottom,oe=Te?jt.left:Ee.left,Ke=Te?jt.right:Ee.right,Qe=Ke-oe,Je=wt-xe;return{top:xe,bottom:wt,left:oe,right:Ke,width:Qe,height:Je,x:oe,y:xe}}let nt=Ur(t)==="left",ht=we(...H.map(jt=>jt.right)),yt=br(...H.map(jt=>jt.left)),Ct=H.filter(jt=>nt?jt.left===yt:jt.right===ht),Ot=Ct[0].top,Vt=Ct[Ct.length-1].bottom,Gt=yt,Dt=ht,ae=Dt-Gt,Ge=Vt-Ot;return{top:Ot,bottom:Vt,left:Gt,right:Dt,width:ae,height:Ge,x:Gt,y:Ot}}return Q}let at=await l.getElementRects({reference:{getBoundingClientRect:J},floating:e.floating,strategy:c});return i.reference.x!==at.reference.x||i.reference.y!==at.reference.y||i.reference.width!==at.reference.width||i.reference.height!==at.reference.height?{reset:{rects:at}}:{}}}},LA=new Set(["left","top"]);async function MA(a,o){let{placement:t,platform:e,elements:i}=a,l=await(e.isRTL==null?void 0:e.isRTL(i.floating)),c=Ur(t),f=ts(t),g=Gr(t)==="y",A=LA.has(c)?-1:1,P=l&&g?-1:1,H=fo(o,a),{mainAxis:Q,crossAxis:X,alignmentAxis:J}=typeof H=="number"?{mainAxis:H,crossAxis:0,alignmentAxis:null}:{mainAxis:H.mainAxis||0,crossAxis:H.crossAxis||0,alignmentAxis:H.alignmentAxis};return f&&typeof J=="number"&&(X=f==="end"?J*-1:J),g?{x:X*P,y:Q*A}:{x:Q*A,y:X*P}}var dg=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,e;let{x:i,y:l,placement:c,middlewareData:f}=o,g=await MA(o,a);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+g.x,y:l+g.y,data:{...g,placement:c}}}}},cg=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:nt=>{let{x:ht,y:yt}=nt;return{x:ht,y:yt}}},...g}=fo(a,o),A={x:t,y:e},P=await Td(o,g),H=Gr(Ur(i)),Q=Jh(H),X=A[Q],J=A[H];if(l){let nt=Q==="y"?"top":"left",ht=Q==="y"?"bottom":"right",yt=X+P[nt],Ct=X-P[ht];X=gd(yt,X,Ct)}if(c){let nt=H==="y"?"top":"left",ht=H==="y"?"bottom":"right",yt=J+P[nt],Ct=J-P[ht];J=gd(yt,J,Ct)}let at=f.fn({...o,[Q]:X,[H]:J});return{...at,data:{x:at.x-t,y:at.y-e,enabled:{[Q]:l,[H]:c}}}}}};var hg=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,e;let{placement:i,rects:l,platform:c,elements:f}=o,{apply:g=()=>{},...A}=fo(a,o),P=await Td(o,A),H=Ur(i),Q=ts(i),X=Gr(i)==="y",{width:J,height:at}=l.floating,nt,ht;H==="top"||H==="bottom"?(nt=H,ht=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=H,nt=Q==="end"?"top":"bottom");let yt=at-P.top-P.bottom,Ct=J-P.left-P.right,Ot=br(at-P[nt],yt),Vt=br(J-P[ht],Ct),Gt=!o.middlewareData.shift,Dt=Ot,ae=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ae=Ct),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Dt=yt),Gt&&!Q){let jt=we(P.left,0),Ee=we(P.right,0),Te=we(P.top,0),xe=we(P.bottom,0);X?ae=J-2*(jt!==0||Ee!==0?jt+Ee:we(P.left,P.right)):Dt=at-2*(Te!==0||xe!==0?Te+xe:we(P.top,P.bottom))}await g({...o,availableWidth:ae,availableHeight:Dt});let Ge=await c.getDimensions(f.floating);return J!==Ge.width||at!==Ge.height?{reset:{rects:!0}}:{}}}};function xd(){return typeof window<"u"}function es(a){return mg(a)?(a.nodeName||"").toLowerCase():"#document"}function ar(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function Kr(a){var o;return(o=(mg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function mg(a){return xd()?a instanceof Node||a instanceof ar(a).Node:!1}function wr(a){return xd()?a instanceof Element||a instanceof ar(a).Element:!1}function Wr(a){return xd()?a instanceof HTMLElement||a instanceof ar(a).HTMLElement:!1}function pg(a){return!xd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ar(a).ShadowRoot}var OA=new Set(["inline","contents"]);function ta(a){let{overflow:o,overflowX:t,overflowY:e,display:i}=kr(a);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!OA.has(i)}var RA=new Set(["table","td","th"]);function ug(a){return RA.has(es(a))}var DA=[":popover-open",":modal"];function gn(a){return DA.some(o=>{try{return a.matches(o)}catch{return!1}})}var PA=["transform","translate","scale","rotate","perspective"],FA=["transform","translate","scale","rotate","perspective","filter"],$A=["paint","layout","strict","content"];function Ad(a){let o=Sd(),t=wr(a)?kr(a):a;return PA.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||FA.some(e=>(t.willChange||"").includes(e))||$A.some(e=>(t.contain||"").includes(e))}function fg(a){let o=Pi(a);for(;Wr(o)&&!rs(o);){if(Ad(o))return o;if(gn(o))return null;o=Pi(o)}return null}function Sd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var VA=new Set(["html","body","#document"]);function rs(a){return VA.has(es(a))}function kr(a){return ar(a).getComputedStyle(a)}function bn(a){return wr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Pi(a){if(es(a)==="html")return a;let o=a.assignedSlot||a.parentNode||pg(a)&&a.host||Kr(a);return pg(o)?o.host:o}function vg(a){let o=Pi(a);return rs(o)?a.ownerDocument?a.ownerDocument.body:a.body:Wr(o)&&ta(o)?o:vg(o)}function Js(a,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=vg(a),l=i===((e=a.ownerDocument)==null?void 0:e.body),c=ar(i);if(l){let f=Id(c);return o.concat(c,c.visualViewport||[],ta(i)?i:[],f&&t?Js(f):[])}return o.concat(i,Js(i,[],t))}function Id(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function yg(a){let o=kr(a),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Wr(a),l=i?a.offsetWidth:t,c=i?a.offsetHeight:e,f=fn(t)!==l||fn(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function ep(a){return wr(a)?a:a.contextElement}function ea(a){let o=ep(a);if(!Wr(o))return Hr(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:l}=yg(o),c=(l?fn(t.width):t.width)/e,f=(l?fn(t.height):t.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var zA=Hr(0);function Eg(a){let o=ar(a);return!Sd()||!o.visualViewport?zA:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function BA(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==ar(a)?!1:o}function is(a,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=a.getBoundingClientRect(),l=ep(a),c=Hr(1);o&&(e?wr(e)&&(c=ea(e)):c=ea(a));let f=BA(l,t,e)?Eg(l):Hr(0),g=(i.left+f.x)/c.x,A=(i.top+f.y)/c.y,P=i.width/c.x,H=i.height/c.y;if(l){let Q=ar(l),X=e&&wr(e)?ar(e):e,J=Q,at=Id(J);for(;at&&e&&X!==J;){let nt=ea(at),ht=at.getBoundingClientRect(),yt=kr(at),Ct=ht.left+(at.clientLeft+parseFloat(yt.paddingLeft))*nt.x,Ot=ht.top+(at.clientTop+parseFloat(yt.paddingTop))*nt.y;g*=nt.x,A*=nt.y,P*=nt.x,H*=nt.y,g+=Ct,A+=Ot,J=ar(at),at=Id(J)}}return Di({width:P,height:H,x:g,y:A})}function rp(a,o){let t=bn(a).scrollLeft;return o?o.left+t:is(Kr(a)).left+t}function Tg(a,o,t){t===void 0&&(t=!1);let e=a.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:rp(a,e)),l=e.top+o.scrollTop;return{x:i,y:l}}function HA(a){let{elements:o,rect:t,offsetParent:e,strategy:i}=a,l=i==="fixed",c=Kr(e),f=o?gn(o.floating):!1;if(e===c||f&&l)return t;let g={scrollLeft:0,scrollTop:0},A=Hr(1),P=Hr(0),H=Wr(e);if((H||!H&&!l)&&((es(e)!=="body"||ta(c))&&(g=bn(e)),Wr(e))){let X=is(e);A=ea(e),P.x=X.x+e.clientLeft,P.y=X.y+e.clientTop}let Q=c&&!H&&!l?Tg(c,g,!0):Hr(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-g.scrollLeft*A.x+P.x+Q.x,y:t.y*A.y-g.scrollTop*A.y+P.y+Q.y}}function UA(a){return Array.from(a.getClientRects())}function GA(a){let o=Kr(a),t=bn(a),e=a.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+rp(a),f=-t.scrollTop;return kr(e).direction==="rtl"&&(c+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:l,x:c,y:f}}function KA(a,o){let t=ar(a),e=Kr(a),i=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,g=0;if(i){l=i.width,c=i.height;let A=Sd();(!A||A&&o==="fixed")&&(f=i.offsetLeft,g=i.offsetTop)}return{width:l,height:c,x:f,y:g}}var WA=new Set(["absolute","fixed"]);function YA(a,o){let t=is(a,!0,o==="fixed"),e=t.top+a.clientTop,i=t.left+a.clientLeft,l=Wr(a)?ea(a):Hr(1),c=a.clientWidth*l.x,f=a.clientHeight*l.y,g=i*l.x,A=e*l.y;return{width:c,height:f,x:g,y:A}}function gg(a,o,t){let e;if(o==="viewport")e=KA(a,t);else if(o==="document")e=GA(Kr(a));else if(wr(o))e=YA(o,t);else{let i=Eg(a);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Di(e)}function xg(a,o){let t=Pi(a);return t===o||!wr(t)||rs(t)?!1:kr(t).position==="fixed"||xg(t,o)}function jA(a,o){let t=o.get(a);if(t)return t;let e=Js(a,[],!1).filter(f=>wr(f)&&es(f)!=="body"),i=null,l=kr(a).position==="fixed",c=l?Pi(a):a;for(;wr(c)&&!rs(c);){let f=kr(c),g=Ad(c);!g&&f.position==="fixed"&&(i=null),(l?!g&&!i:!g&&f.position==="static"&&!!i&&WA.has(i.position)||ta(c)&&!g&&xg(a,c))?e=e.filter(P=>P!==c):i=f,c=Pi(c)}return o.set(a,e),e}function qA(a){let{element:o,boundary:t,rootBoundary:e,strategy:i}=a,c=[...t==="clippingAncestors"?gn(o)?[]:jA(o,this._c):[].concat(t),e],f=c[0],g=c.reduce((A,P)=>{let H=gg(o,P,i);return A.top=we(H.top,A.top),A.right=br(H.right,A.right),A.bottom=br(H.bottom,A.bottom),A.left=we(H.left,A.left),A},gg(o,f,i));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function XA(a){let{width:o,height:t}=yg(a);return{width:o,height:t}}function ZA(a,o,t){let e=Wr(o),i=Kr(o),l=t==="fixed",c=is(a,!0,l,o),f={scrollLeft:0,scrollTop:0},g=Hr(0);function A(){g.x=rp(i)}if(e||!e&&!l)if((es(o)!=="body"||ta(i))&&(f=bn(o)),e){let X=is(o,!0,l,o);g.x=X.x+o.clientLeft,g.y=X.y+o.clientTop}else i&&A();l&&!e&&i&&A();let P=i&&!e&&!l?Tg(i,f):Hr(0),H=c.left+f.scrollLeft-g.x-P.x,Q=c.top+f.scrollTop-g.y-P.y;return{x:H,y:Q,width:c.width,height:c.height}}function tp(a){return kr(a).position==="static"}function bg(a,o){if(!Wr(a)||kr(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return Kr(a)===t&&(t=t.ownerDocument.body),t}function Ag(a,o){let t=ar(a);if(gn(a))return t;if(!Wr(a)){let i=Pi(a);for(;i&&!rs(i);){if(wr(i)&&!tp(i))return i;i=Pi(i)}return t}let e=bg(a,o);for(;e&&ug(e)&&tp(e);)e=bg(e,o);return e&&rs(e)&&tp(e)&&!Ad(e)?t:e||fg(a)||t}var QA=async function(a){let o=this.getOffsetParent||Ag,t=this.getDimensions,e=await t(a.floating);return{reference:ZA(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function JA(a){return kr(a).direction==="rtl"}var t0={convertOffsetParentRelativeRectToViewportRelativeRect:HA,getDocumentElement:Kr,getClippingRect:qA,getOffsetParent:Ag,getElementRects:QA,getClientRects:UA,getDimensions:XA,getScale:ea,isElement:wr,isRTL:JA};function Sg(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function e0(a,o){let t=null,e,i=Kr(a);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,g){f===void 0&&(f=!1),g===void 0&&(g=1),l();let A=a.getBoundingClientRect(),{left:P,top:H,width:Q,height:X}=A;if(f||o(),!Q||!X)return;let J=vn(H),at=vn(i.clientWidth-(P+Q)),nt=vn(i.clientHeight-(H+X)),ht=vn(P),Ct={rootMargin:-J+"px "+-at+"px "+-nt+"px "+-ht+"px",threshold:we(0,br(1,g))||1},Ot=!0;function Vt(Gt){let Dt=Gt[0].intersectionRatio;if(Dt!==g){if(!Ot)return c();Dt?c(!1,Dt):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Dt===1&&!Sg(A,a.getBoundingClientRect())&&c(),Ot=!1}try{t=new IntersectionObserver(Vt,{...Ct,root:i.ownerDocument})}catch{t=new IntersectionObserver(Vt,Ct)}t.observe(a)}return c(!0),l}function Ig(a,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:g=!1}=e,A=ep(a),P=i||l?[...A?Js(A):[],...Js(o)]:[];P.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),l&&ht.addEventListener("resize",t)});let H=A&&f?e0(A,t):null,Q=-1,X=null;c&&(X=new ResizeObserver(ht=>{let[yt]=ht;yt&&yt.target===A&&X&&(X.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=X)==null||Ct.observe(o)})),t()}),A&&!g&&X.observe(A),X.observe(o));let J,at=g?is(a):null;g&&nt();function nt(){let ht=is(a);at&&!Sg(at,ht)&&t(),at=ht,J=requestAnimationFrame(nt)}return t(),()=>{var ht;P.forEach(yt=>{i&&yt.removeEventListener("scroll",t),l&&yt.removeEventListener("resize",t)}),H==null||H(),(ht=X)==null||ht.disconnect(),X=null,g&&cancelAnimationFrame(J)}}var Cg=dg;var _g=cg,wg=ag,kg=hg;var Ng=sg,Lg=lg;var Mg=(a,o,t)=>{let e=new Map,i={platform:t0,...t},l={...i.platform,_c:e};return og(a,o,{...i,platform:l})};var Cd=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,e,...i){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let l=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,l),l}clearInterval(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,e,...i){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,l),l}clearTimeout(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var e;if(typeof t=="number"){let i=t;return[(e=[...o.entries()].find(([,c])=>c===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var Fi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var r0=B`
2628
2628
  :host {
2629
2629
  --mdc-popover-arrow-border-radius: 0.1875rem;
2630
2630
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2748,7 +2748,7 @@
2748
2748
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2749
2749
  border-bottom-left-radius: 100%;
2750
2750
  }
2751
- `,Og=[r0];var wd=z.constructTagName("popoverportal"),_d=class extends Z{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var kd=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(e=>{let i=parseInt(e,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${e}`);return i});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let i=this.popover.getBoundingClientRect(),l=e.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,g=this.popover.offsetWidth||0,A=o.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(i.top-l.bottom,l.top-i.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-i.right,i.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${g}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${g}px`;break}}}setupAppendTo(){var o,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(wd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var F;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:l,y:c}=o,f=this.popover.arrowElement.getBoundingClientRect(),g=(F=this.popover.arrowElement.offsetParent)==null?void 0:F.getBoundingClientRect();if(!this.arrowPixelChange){let H=g!=null&&g[i]?12-Math.abs(f[i]-g[i]):0;Math.round(H)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends Mt(Nt(Jl(ql(jl(Z))))){constructor(){super();this.depthManager=new ho(this);this.id="";this.triggerID="";this.trigger=bt.TRIGGER;this.placement=bt.PLACEMENT;this.color=bt.COLOR;this.visible=bt.VISIBLE;this.offset=bt.OFFSET;this.boundary=bt.BOUNDARY;this.boundaryRoot=bt.BOUNDARY_ROOT;this.focusTrap=bt.FOCUS_TRAP;this.preventScroll=bt.PREVENT_SCROLL;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.interactive=bt.INTERACTIVE;this.delay=bt.DELAY;this.hideOnEscape=bt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=bt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=bt.HIDE_ON_BLUR;this.hideOnOutsideClick=bt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=bt.FOCUS_BACK;this.backdrop=bt.BACKDROP;this.isBackdropInvisible=bt.IS_BACKDROP_INVISIBLE;this.disableFlip=bt.DISABLE_FLIP;this.size=bt.SIZE;this.closeButtonAriaLabel=null;this.strategy=bt.STRATEGY;this.role=bt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=bt.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=bt.ANIMATION_FRAME;this.inline=bt.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Cd(this);this.parseTrigger=()=>{var l;let i=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(_e).includes(c)).length>0?this.trigger:bt.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),document.addEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseout",this.handleMouseLeave,{capture:!0})}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseout",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!i||l)&&(this.hide(),Fi.onClickOutside(this),l&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Y.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Fi.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.isHoverWithinTrigger=t=>{let{triggerElement:e}=this,{relatedTarget:i}=t;return e&&i instanceof Element?Ml(i).includes(e):!1};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!0,this.show()))};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!1,this.startCloseDelay()))};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,i,l,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(l=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Ri.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Ri.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Ri.HOVER),this.timers.clearTimeout(Ri.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Ri.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Ri.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),i=this.boundaryRoot,l=[];if(this.inline&&l.push(Lg()),l.push(_g({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||l.push(wg({boundary:e,rootBoundary:i})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},g=this.renderRoot.querySelector('[part="popover-content"]');l.push(kg({boundary:e,rootBoundary:i,apply({availableHeight:A}){g&&(Object.assign(g.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(Ng({element:this.arrowElement,padding:12}))}l.push(Cg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=Ig(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let g=this.adjustPlacementForRtl(this.placement),{x:A,y:F,middlewareData:H,placement:Q}=await Mg(f,this,{placement:g,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,F),H.arrow&&this.arrowElement&&this.utils.updateArrowStyle(H.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new kd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),Fi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),Fi.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Lt).includes(this.placement)?this.placement:bt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Qo).includes(this.color)?this.color:bt.COLOR),t.has("appendTo")&&(this.appendTo&&this.isConnected?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var l,c;let{triggerElement:i}=this;t===e||!i||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(i)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,g,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(g=this.elementIndexToReceiveFocus)!=null?g:0))},0),Fi.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(i),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Fi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Ri.OPEN,t,this.openDelay):(this.timers.clearTimeout(Ri.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Lt.LEFT:return Lt.RIGHT;case Lt.LEFT_START:return Lt.RIGHT_START;case Lt.LEFT_END:return Lt.RIGHT_END;case Lt.RIGHT:return Lt.LEFT;case Lt.RIGHT_START:return Lt.LEFT_START;case Lt.RIGHT_END:return Lt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
2751
+ `,Og=[r0];var wd=z.constructTagName("popoverportal"),_d=class extends Z{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var kd=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(e=>{let i=parseInt(e,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${e}`);return i});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let i=this.popover.getBoundingClientRect(),l=e.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,g=this.popover.offsetWidth||0,A=o.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(i.top-l.bottom,l.top-i.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-i.right,i.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${g}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${g}px`;break}}}setupAppendTo(){var o,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(wd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var P;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:l,y:c}=o,f=this.popover.arrowElement.getBoundingClientRect(),g=(P=this.popover.arrowElement.offsetParent)==null?void 0:P.getBoundingClientRect();if(!this.arrowPixelChange){let H=g!=null&&g[i]?12-Math.abs(f[i]-g[i]):0;Math.round(H)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends Mt(Nt(Jl(ql(jl(Z))))){constructor(){super();this.depthManager=new ho(this);this.id="";this.triggerID="";this.trigger=bt.TRIGGER;this.placement=bt.PLACEMENT;this.color=bt.COLOR;this.visible=bt.VISIBLE;this.offset=bt.OFFSET;this.boundary=bt.BOUNDARY;this.boundaryRoot=bt.BOUNDARY_ROOT;this.focusTrap=bt.FOCUS_TRAP;this.preventScroll=bt.PREVENT_SCROLL;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.interactive=bt.INTERACTIVE;this.delay=bt.DELAY;this.hideOnEscape=bt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=bt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=bt.HIDE_ON_BLUR;this.hideOnOutsideClick=bt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=bt.FOCUS_BACK;this.backdrop=bt.BACKDROP;this.isBackdropInvisible=bt.IS_BACKDROP_INVISIBLE;this.disableFlip=bt.DISABLE_FLIP;this.size=bt.SIZE;this.closeButtonAriaLabel=null;this.strategy=bt.STRATEGY;this.role=bt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=bt.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=bt.ANIMATION_FRAME;this.inline=bt.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Cd(this);this.parseTrigger=()=>{var l;let i=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(_e).includes(c)).length>0?this.trigger:bt.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),document.addEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseout",this.handleMouseLeave,{capture:!0})}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseout",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!i||l)&&(this.hide(),Fi.onClickOutside(this),l&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Y.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Fi.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.isHoverWithinTrigger=t=>{let{triggerElement:e}=this,{relatedTarget:i}=t;return e&&i instanceof Element?Ml(i).includes(e):!1};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!0,this.show()))};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!1,this.startCloseDelay()))};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,i,l,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(l=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Ri.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Ri.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Ri.HOVER),this.timers.clearTimeout(Ri.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Ri.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Ri.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),i=this.boundaryRoot,l=[];if(this.inline&&l.push(Lg()),l.push(_g({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||l.push(wg({boundary:e,rootBoundary:i})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},g=this.renderRoot.querySelector('[part="popover-content"]');l.push(kg({boundary:e,rootBoundary:i,apply({availableHeight:A}){g&&(Object.assign(g.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(Ng({element:this.arrowElement,padding:12}))}l.push(Cg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=Ig(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let g=this.adjustPlacementForRtl(this.placement),{x:A,y:P,middlewareData:H,placement:Q}=await Mg(f,this,{placement:g,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,P),H.arrow&&this.arrowElement&&this.utils.updateArrowStyle(H.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new kd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),Fi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),Fi.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Lt).includes(this.placement)?this.placement:bt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Qo).includes(this.color)?this.color:bt.COLOR),t.has("appendTo")&&(this.appendTo&&this.isConnected?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var l,c;let{triggerElement:i}=this;t===e||!i||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(i)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,g,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(g=this.elementIndexToReceiveFocus)!=null?g:0))},0),Fi.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(i),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Fi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Ri.OPEN,t,this.openDelay):(this.timers.clearTimeout(Ri.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Lt.LEFT:return Lt.RIGHT;case Lt.LEFT_START:return Lt.RIGHT_START;case Lt.LEFT_END:return Lt.RIGHT_END;case Lt.RIGHT:return Lt.LEFT;case Lt.RIGHT_START:return Lt.LEFT_START;case Lt.RIGHT_END:return Lt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
2752
2752
  <div part="popover-hover-bridge"></div>
2753
2753
  ${this.closeButton?S` <mdc-button
2754
2754
  part="popover-close"
@@ -2805,7 +2805,7 @@
2805
2805
  display: none;
2806
2806
  visibility: hidden;
2807
2807
  }
2808
- `],Fg=s0;var yn=new Map,ci=class extends Z{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=ss.ARIA_LIVE;this.delay=ss.DELAY;this.timeout=ss.TIMEOUT;this.debounceTime=ss.DEBOUNCE;this.hasIdentityRef=!1;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:i,ariaLive:l}){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${ze()}`,g=document.createElement("div");g.setAttribute("id",f),g.setAttribute("aria-live",l!=null?l:this.dataAriaLive),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(g);let A=window.setTimeout(()=>{let F=document.createElement("p");F.textContent=t,g.appendChild(F),this.ariaLiveAnnouncementIds.push(f);let H=window.setTimeout(()=>{g.remove()},i!=null?i:this.timeout);this.timeOutIds.push(H)},e!=null?e:this.delay);this.timeOutIds.push(A)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var l;let e=document.getElementById(t);if(e)return e;let i=this.findModalAncestor();return((l=i==null?void 0:i.shadowRoot)==null?void 0:l.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let e=document.createElement("style");e.textContent=`
2808
+ `],Fg=s0;var yn=new Map,ci=class extends Z{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=ss.ARIA_LIVE;this.delay=ss.DELAY;this.timeout=ss.TIMEOUT;this.debounceTime=ss.DEBOUNCE;this.hasIdentityRef=!1;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:i,ariaLive:l}){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${ze()}`,g=document.createElement("div");g.setAttribute("id",f),g.setAttribute("aria-live",l!=null?l:this.dataAriaLive),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(g);let A=window.setTimeout(()=>{let P=document.createElement("p");P.textContent=t,g.appendChild(P),this.ariaLiveAnnouncementIds.push(f);let H=window.setTimeout(()=>{g.remove()},i!=null?i:this.timeout);this.timeOutIds.push(H)},e!=null?e:this.delay);this.timeOutIds.push(A)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var l;let e=document.getElementById(t);if(e)return e;let i=this.findModalAncestor();return((l=i==null?void 0:i.shadowRoot)==null?void 0:l.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let e=document.createElement("style");e.textContent=`
2809
2809
  .mdc-screenreaderannouncer__visually-hidden {
2810
2810
  clip: rect(0 0 0 0);
2811
2811
  clip-path: inset(50%);
@@ -3412,7 +3412,7 @@
3412
3412
  .calendar-today-button mdc-button {
3413
3413
  width: auto;
3414
3414
  }
3415
- `,Jg=[Fr,v0];function tb(a){let o=Yg(a,"narrow"),t=ds(a),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function eb(a,o,t,e,i,l,c,f){let g=hi(a,o,1),A=ls(),F=ds(t),H=Wg(g),Q;F===7?Q=H===7?0:H:(Q=H-F,Q<0&&(Q+=7));let X=Er(g,-Q),J=c?Ht(c):void 0,at=f?Ht(f):void 0,nt=i?Ht(i):void 0,ht=l?Ht(l):void 0,yt=new Set(e),Ct=[];for(let Ot=0;Ot<Qg;Ot+=1){let Vt=[];for(let Gt=0;Gt<up;Gt+=1){let Dt=Er(X,Ot*up+Gt),ae=yr(Dt),Ge=Dt.getMonth()+1===o&&Dt.getFullYear()===a,jt=Vd(Dt,A),Ee=yt.has(ae),Te=!1;J&&$i(Dt,J)&&(Te=!0),at&&bo(Dt,at)&&(Te=!0);let xe=!1,wt=!1,oe=!1;nt&&ht&&(wt=Vd(Dt,nt),oe=Vd(Dt,ht),xe=zd(nt,Dt)&&zd(Dt,ht)),Vt.push({date:ae,day:Dt.getDate(),isCurrentMonth:Ge,isToday:jt,isSelected:Ee,isInRange:xe,isRangeStart:wt,isRangeEnd:oe,isDisabled:Te})}Ct.push({days:Vt})}return Ct}function Ud(a,o){let t=Ht(a);if(!t)return{start:"",end:""};let e=Tn(t,ds(o)),i=Er(e,6);return{start:yr(e),end:yr(i)}}function vp(a,o,t){return jg(a,o,t)}function rb(a,o){let t=Ht(a),e=Ht(o);if(!t||!e)return[];let i=[],l=t;for(;zd(l,e);)i.push(yr(l)),l=Er(l,1);return i}function ib(a,o){return Fd(a,o)}function xn(a,o,t){return Xg(a,o,t)}var ve=class extends Mt(Nt(Z)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=fp.SELECTION_MODE;this.locale=fp.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start"}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start"),t.has("value")&&this.value){let e=Ht(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let c=Ht(this.value);if(c){this.displayMonth=c.getMonth()+1,this.displayYear=c.getFullYear(),this.focusedDate=this.value;return}}let t=ls(),e=this.min?Ht(this.min):void 0,i=this.max?Ht(this.max):void 0,l=t;e&&$i(t,e)?l=e:i&&bo(t,i)&&(l=i),this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear(),this.focusedDate=yr(l)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),i=this.getRangeEnd();return eb(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value&&this.endValue?rb(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=hi(this.displayYear,this.displayMonth,1),e=Ht(this.min);return e?bo(t,Kg(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=pp(hi(this.displayYear,this.displayMonth,1)),e=Ht(this.max);return e?$i(t,pp(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=$d(hi(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=yr(hi(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}selectDate(t){switch(this.selectionMode){case se.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case se.WEEK:{let{start:e,end:i}=Ud(t,this.locale);this.value=e,this.endValue=i,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:i},bubbles:!0,composed:!0}));break}case se.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=Ht(this.value),i=Ht(t);e&&i&&$i(i,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?Ht(this.focusedDate):ls();if(!e)return;let i=this.getActionForKeyEvent(t),l;switch(i){case Y.LEFT:t.preventDefault(),l=Er(e,-1);break;case Y.RIGHT:t.preventDefault(),l=Er(e,1);break;case Y.UP:t.preventDefault(),l=Er(e,-7);break;case Y.DOWN:t.preventDefault(),l=Er(e,7);break;case Y.HOME:{t.preventDefault();let c=ds(this.locale);l=Tn(e,c);break}case Y.END:{t.preventDefault();let c=ds(this.locale);l=Er(Tn(e,c),6);break}case Y.ENTER:case Y.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===kt.PAGE_UP){t.preventDefault(),l=t.shiftKey?hp(e,-1):$d(e,-1);break}if(t.key===kt.PAGE_DOWN){t.preventDefault(),l=t.shiftKey?hp(e,1):$d(e,1);break}return}if(this.keyDownEventHandled(),l){let c=yr(l);if(this.isDateDisabled(c))return;this.focusedDate=c,(l.getMonth()+1!==this.displayMonth||l.getFullYear()!==this.displayYear)&&(this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear()),this.updateComplete.then(()=>{var g;let f=(g=this.shadowRoot)==null?void 0:g.querySelector(`[data-date="${c}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===se.WEEK&&this.value&&this.endValue?`Calendar, ${xn(this.value,this.endValue,this.locale)}`:`Calendar, ${vp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=vp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return S`
3415
+ `,Jg=[Fr,v0];function tb(a){let o=Yg(a,"narrow"),t=ds(a),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function eb(a,o,t,e,i,l,c,f){let g=hi(a,o,1),A=ls(),P=ds(t),H=Wg(g),Q;P===7?Q=H===7?0:H:(Q=H-P,Q<0&&(Q+=7));let X=Er(g,-Q),J=c?Ht(c):void 0,at=f?Ht(f):void 0,nt=i?Ht(i):void 0,ht=l?Ht(l):void 0,yt=new Set(e),Ct=[];for(let Ot=0;Ot<Qg;Ot+=1){let Vt=[];for(let Gt=0;Gt<up;Gt+=1){let Dt=Er(X,Ot*up+Gt),ae=yr(Dt),Ge=Dt.getMonth()+1===o&&Dt.getFullYear()===a,jt=Vd(Dt,A),Ee=yt.has(ae),Te=!1;J&&$i(Dt,J)&&(Te=!0),at&&bo(Dt,at)&&(Te=!0);let xe=!1,wt=!1,oe=!1;nt&&ht&&(wt=Vd(Dt,nt),oe=Vd(Dt,ht),xe=zd(nt,Dt)&&zd(Dt,ht)),Vt.push({date:ae,day:Dt.getDate(),isCurrentMonth:Ge,isToday:jt,isSelected:Ee,isInRange:xe,isRangeStart:wt,isRangeEnd:oe,isDisabled:Te})}Ct.push({days:Vt})}return Ct}function Ud(a,o){let t=Ht(a);if(!t)return{start:"",end:""};let e=Tn(t,ds(o)),i=Er(e,6);return{start:yr(e),end:yr(i)}}function vp(a,o,t){return jg(a,o,t)}function rb(a,o){let t=Ht(a),e=Ht(o);if(!t||!e)return[];let i=[],l=t;for(;zd(l,e);)i.push(yr(l)),l=Er(l,1);return i}function ib(a,o){return Fd(a,o)}function xn(a,o,t){return Xg(a,o,t)}var ve=class extends Mt(Nt(Z)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=fp.SELECTION_MODE;this.locale=fp.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start"}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start"),t.has("value")&&this.value){let e=Ht(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let c=Ht(this.value);if(c){this.displayMonth=c.getMonth()+1,this.displayYear=c.getFullYear(),this.focusedDate=this.value;return}}let t=ls(),e=this.min?Ht(this.min):void 0,i=this.max?Ht(this.max):void 0,l=t;e&&$i(t,e)?l=e:i&&bo(t,i)&&(l=i),this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear(),this.focusedDate=yr(l)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),i=this.getRangeEnd();return eb(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value&&this.endValue?rb(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=hi(this.displayYear,this.displayMonth,1),e=Ht(this.min);return e?bo(t,Kg(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=pp(hi(this.displayYear,this.displayMonth,1)),e=Ht(this.max);return e?$i(t,pp(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=$d(hi(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=yr(hi(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}selectDate(t){switch(this.selectionMode){case se.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case se.WEEK:{let{start:e,end:i}=Ud(t,this.locale);this.value=e,this.endValue=i,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:i},bubbles:!0,composed:!0}));break}case se.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=Ht(this.value),i=Ht(t);e&&i&&$i(i,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?Ht(this.focusedDate):ls();if(!e)return;let i=this.getActionForKeyEvent(t),l;switch(i){case Y.LEFT:t.preventDefault(),l=Er(e,-1);break;case Y.RIGHT:t.preventDefault(),l=Er(e,1);break;case Y.UP:t.preventDefault(),l=Er(e,-7);break;case Y.DOWN:t.preventDefault(),l=Er(e,7);break;case Y.HOME:{t.preventDefault();let c=ds(this.locale);l=Tn(e,c);break}case Y.END:{t.preventDefault();let c=ds(this.locale);l=Er(Tn(e,c),6);break}case Y.ENTER:case Y.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===kt.PAGE_UP){t.preventDefault(),l=t.shiftKey?hp(e,-1):$d(e,-1);break}if(t.key===kt.PAGE_DOWN){t.preventDefault(),l=t.shiftKey?hp(e,1):$d(e,1);break}return}if(this.keyDownEventHandled(),l){let c=yr(l);if(this.isDateDisabled(c))return;this.focusedDate=c,(l.getMonth()+1!==this.displayMonth||l.getFullYear()!==this.displayYear)&&(this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear()),this.updateComplete.then(()=>{var g;let f=(g=this.shadowRoot)==null?void 0:g.querySelector(`[data-date="${c}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===se.WEEK&&this.value&&this.endValue?`Calendar, ${xn(this.value,this.endValue,this.locale)}`:`Calendar, ${vp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=vp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return S`
3416
3416
  <div class="calendar-header">
3417
3417
  <mdc-text type="body-midsize-bold" tagname="span">${t}</mdc-text>
3418
3418
  <div class="calendar-header-nav">
@@ -3663,7 +3663,7 @@
3663
3663
  ?disabled="${this.disabled}"
3664
3664
  ?readonly="${this.readonly}"
3665
3665
  tabindex="${this.disabled?"-1":"0"}"
3666
- @keydown="${F=>this.handleSpinbuttonKeydown(F,t)}"
3666
+ @keydown="${P=>this.handleSpinbuttonKeydown(P,t)}"
3667
3667
  @focus="${this.handleSpinbuttonFocus}"
3668
3668
  />
3669
3669
  `}renderInputVariant(){let t=In(this.locale),e=ab(this.locale);return S`
@@ -4445,7 +4445,7 @@
4445
4445
  `,xb=[D0,...Tt()];var us=class extends ce(fe){constructor(){super(...arguments);this.size=da.SIZE;this.inline=da.INLINE;this.inverted=da.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=da.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(la).includes(t)?`${t}`:da.SIZE.toString())}render(){return S`
4446
4446
  <slot></slot>
4447
4447
  ${this.iconName?S` <mdc-icon name=${this.iconName} size=${Tb(this.size)} length-unit="rem"></mdc-icon> `:W}
4448
- `}};us.styles=[...di.styles,...xb],h([u({type:Number,reflect:!0})],us.prototype,"size",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inverted",2);var wp=us;wp.register(Eb);var P0=wp;di.register(Rv);var F0=di;var Jt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var To=a=>{class o extends Mt(Nt(a)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:l}=i,c=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&l instanceof Z&&c&&l.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let l=i.target,c=this.getCurrentIndex(l);if(c!==-1){let f=document.activeElement===l,g=document.activeElement&&document.activeElement.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY,A=!(this.navItems.at(c)!==l&&(f||g));this.resetTabIndexAndSetFocus(c,void 0,A,!1)}};this.handleNavBeforeFocus=i=>{let l=lh(i.relatedTarget);if(this!==l&&!this.contains(document.activeElement)&&this.contains(l)){i.preventDefault();let c=this.navItems.find(g=>g.contains(l)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Jt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(i){super.firstUpdated(i),this.setInitialFocus()}setInitialFocus(){let i=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(i,void 0,!1)}handleNavigationKeyDown(i){let l=this.getActionForKeyEvent(i,!0),c=this.orientation==="vertical",f=new Set(c?[Y.DOWN,Y.UP,Y.HOME,Y.END]:[Y.LEFT,Y.RIGHT,Y.HOME,Y.END]);if(!l||!f.has(l))return;let g=i.target,A=this.getCurrentIndex(g);if(A===-1)return;this.resetTabIndexes(A);let F=!1;switch(l){case Y.HOME:{F=this.resetTabIndexAndSetFocus(0,A);break}case Y.END:{F=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case Y.DOWN:case Y.RIGHT:{let H=this.shouldLoop()?0:A,Q=A+1===this.navItems.length?H:A+1;F=this.resetTabIndexAndSetFocus(Q,A);break}case Y.UP:case Y.LEFT:{let H=this.shouldLoop()?this.navItems.length-1:A,Q=A-1===-1?H:A-1;F=this.resetTabIndexAndSetFocus(Q,A);break}default:break}F&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(l=>l===i||!!(l.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,l=!0){var c;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,g=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);g&&(g.setAttribute("tabindex","0"),l&&g.focus())}}resetTabIndexAndSetFocus(i,l,c=!0,f=!0){var F;let{navItems:g}=this;if(g.length===0)return!1;let A=(F=g.at(i))!=null?F:g.find(Boolean);return i===0&&l===0&&g.length===1||i===l&&A&&A.getAttribute("tabindex")==="0"?!1:(l===void 0?g.forEach(H=>H.setAttribute("tabindex","-1")):g.at(l)&&g.at(l).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),c&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===ee.SPATIAL?!1:this.loop!=="false"}}return o};var Xd=z.constructTagName("listitem"),Ln={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Ab={VARIANT:Ln.FULL_WIDTH};var $0=a=>!!a,Lr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{o.stopPropagation(),this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{o.stopPropagation(),this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||$0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Jt.CREATED,this.itemCreationHandler),this.host.addEventListener(Jt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Jt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Jt.DESTROYED,this.itemDestroyHandler),this.reset()}add(o){this.addItem(o,void 0)}addAt(o,t){this.addItem(o,t)}getIndexToInsertInCache(o){if(!this.cache.length||!gf(this.cache.at(-1),o))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let i=Math.floor((t+e)/2);bf(this.cache[i],o)?t=i+1:e=i-1}return t}addItem(o,t=void 0){var i;let e=o;if(this.isValidItem(e)&&!this.cache.includes(e)){let l=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",l===-1?this.cache.length:l,this.cache.slice())),l===-1?this.cache.push(e):l>=0&&this.cache.splice(l,0,e)}}delete(o){var e;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var pi=a=>{class o extends a{constructor(...i){super(...i);this.handleItemCreation=i=>{let l=i.target;l&&l.addEventListener(Jt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Jt.DESTROYED&&(i.target.removeEventListener(Jt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Jt.CREATED,this.handleItemCreation)}}return o};var V0=B`
4448
+ `}};us.styles=[...di.styles,...xb],h([u({type:Number,reflect:!0})],us.prototype,"size",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inverted",2);var wp=us;wp.register(Eb);var P0=wp;di.register(Rv);var F0=di;var Jt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var To=a=>{class o extends Mt(Nt(a)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:l}=i,c=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&l instanceof Z&&c&&l.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let l=i.target,c=this.getCurrentIndex(l);if(c!==-1){let f=document.activeElement===l,g=document.activeElement&&document.activeElement.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY,A=!(this.navItems.at(c)!==l&&(f||g));this.resetTabIndexAndSetFocus(c,void 0,A,!1)}};this.handleNavBeforeFocus=i=>{let l=lh(i.relatedTarget);if(this!==l&&!this.contains(document.activeElement)&&this.contains(l)){i.preventDefault();let c=this.navItems.find(g=>g.contains(l)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Jt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(i){super.firstUpdated(i),this.setInitialFocus()}setInitialFocus(){let i=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(i,void 0,!1)}handleNavigationKeyDown(i){let l=this.getActionForKeyEvent(i,!0),c=this.orientation==="vertical",f=new Set(c?[Y.DOWN,Y.UP,Y.HOME,Y.END]:[Y.LEFT,Y.RIGHT,Y.HOME,Y.END]);if(!l||!f.has(l))return;let g=i.target,A=this.getCurrentIndex(g);if(A===-1)return;this.resetTabIndexes(A);let P=!1;switch(l){case Y.HOME:{P=this.resetTabIndexAndSetFocus(0,A);break}case Y.END:{P=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case Y.DOWN:case Y.RIGHT:{let H=this.shouldLoop()?0:A,Q=A+1===this.navItems.length?H:A+1;P=this.resetTabIndexAndSetFocus(Q,A);break}case Y.UP:case Y.LEFT:{let H=this.shouldLoop()?this.navItems.length-1:A,Q=A-1===-1?H:A-1;P=this.resetTabIndexAndSetFocus(Q,A);break}default:break}P&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(l=>l===i||!!(l.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,l=!0){var c;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,g=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);g&&(g.setAttribute("tabindex","0"),l&&g.focus())}}resetTabIndexAndSetFocus(i,l,c=!0,f=!0){var P;let{navItems:g}=this;if(g.length===0)return!1;let A=(P=g.at(i))!=null?P:g.find(Boolean);return i===0&&l===0&&g.length===1||i===l&&A&&A.getAttribute("tabindex")==="0"?!1:(l===void 0?g.forEach(H=>H.setAttribute("tabindex","-1")):g.at(l)&&g.at(l).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),c&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===ee.SPATIAL?!1:this.loop!=="false"}}return o};var Xd=z.constructTagName("listitem"),Ln={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Ab={VARIANT:Ln.FULL_WIDTH};var $0=a=>!!a,Lr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{o.stopPropagation(),this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{o.stopPropagation(),this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||$0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Jt.CREATED,this.itemCreationHandler),this.host.addEventListener(Jt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Jt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Jt.DESTROYED,this.itemDestroyHandler),this.reset()}add(o){this.addItem(o,void 0)}addAt(o,t){this.addItem(o,t)}getIndexToInsertInCache(o){if(!this.cache.length||!gf(this.cache.at(-1),o))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let i=Math.floor((t+e)/2);bf(this.cache[i],o)?t=i+1:e=i-1}return t}addItem(o,t=void 0){var i;let e=o;if(this.isValidItem(e)&&!this.cache.includes(e)){let l=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",l===-1?this.cache.length:l,this.cache.slice())),l===-1?this.cache.push(e):l>=0&&this.cache.splice(l,0,e)}}delete(o){var e;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var pi=a=>{class o extends a{constructor(...i){super(...i);this.handleItemCreation=i=>{let l=i.target;l&&l.addEventListener(Jt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Jt.DESTROYED&&(i.target.removeEventListener(Jt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Jt.CREATED,this.handleItemCreation)}}return o};var V0=B`
4449
4449
  :host {
4450
4450
  display: flex;
4451
4451
  flex-direction: column;
@@ -6000,7 +6000,7 @@
6000
6000
  :host([soft-disabled])::part(base-text) {
6001
6001
  --mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
6002
6002
  }
6003
- `,Ey=[LS,...Tt(!0)];var hr=class extends To(Nt(pi(Ve(pe(ie(Qt)))))){constructor(){super();this.placement=Lt.BOTTOM_START;this.boundary=bt.BOUNDARY;this.strategy=bt.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=yy.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,l)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||l.length===0)return;let c=i+1;if(c>=l.length&&(c=i-1),c===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(c),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?l[c]:l[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Tr}:not([disabled])`);this.addEventListener(Jt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Lr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,e,i){var l;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((l=this.selectedOption)==null?void 0:l.value)&&this.navItems.length){let c=this.getFirstSelectedOption(),f=this.getFirstOption(),g=this.navItems.find(F=>F.value===i),A=null;if(g)A=g;else if(this.placeholder)A=null;else if(f)A=f;else if(c)A=c;else return;this.updateComplete.then(()=>{this.setSelectedOption(A)}).catch(F=>{this.onerror&&this.onerror(F)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,i=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{i&&i!==this.selectedOption?this.setSelectedOption(i):this.setSelectedOption(e);break}case"unselected":{i?this.setSelectedOption(i):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(e);break}case"disabled":{this.itemsStore.delete(e);break}default:break}}async firstUpdated(t){await this.updateComplete;let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let i=this.getFirstOption();this.setSelectedOption(i),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let e=t.target;e&&e.tagName===Tr.toUpperCase()&&!e.hasAttribute("disabled")&&!e.hasAttribute("soft-disabled")&&(this.setSelectedOption(e),e.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var e,i,l;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(i=(e=this.selectedOption)==null?void 0:e.value)!=null?i:"",this.internals.setFormValue(this.value),(l=this.inputElement)==null||l.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(e=>{e!==t&&e.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,e;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()}formResetCallback(){var e;let t=this.initialSelectedOption||null;((e=this.selectedOption)==null?void 0:e.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var i;let e=this.navItems.find(l=>l.value===t||l.label===t);((i=this.selectedOption)==null?void 0:i.value)!==(e==null?void 0:e.value)&&(this.setSelectedOption(e||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=Nd(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var e;return(e=this.debounceSearch)==null||e.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,e){return t.filter(i=>{var l;return(l=i.getAttribute("label"))==null?void 0:l.toLowerCase().startsWith(e.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let e=this.navItems.findIndex(f=>f.tabIndex===0)+1,i=[...this.navItems.slice(e),...this.navItems.slice(0,e)],l=this.filterOptionsBySearchKey(i,t),c=null;if(l.length)[c]=l;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],g=this.filterOptionsBySearchKey(i,t[0]),A=g.filter(F=>F===f);c=A.length?A[0]:g[0]}this.navItems.indexOf(c)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(c))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===ee.DEFAULT)switch(e){case Y.DOWN:case Y.UP:case Y.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case Y.SPACE:t.preventDefault(),t.stopPropagation();break;case Y.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case Y.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else e===Y.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}handleKeyupCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===ee.DEFAULT&&e===Y.SPACE&&(this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let e=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(e)}handleKeydownPopover(t){this.getKeyboardNavMode()===ee.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,l,c,f;return S`
6003
+ `,Ey=[LS,...Tt(!0)];var hr=class extends To(Nt(pi(Ve(pe(ie(Qt)))))){constructor(){super();this.placement=Lt.BOTTOM_START;this.boundary=bt.BOUNDARY;this.strategy=bt.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=yy.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,l)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||l.length===0)return;let c=i+1;if(c>=l.length&&(c=i-1),c===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(c),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?l[c]:l[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Tr}:not([disabled])`);this.addEventListener(Jt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Lr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,e,i){var l;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((l=this.selectedOption)==null?void 0:l.value)&&this.navItems.length){let c=this.getFirstSelectedOption(),f=this.getFirstOption(),g=this.navItems.find(P=>P.value===i),A=null;if(g)A=g;else if(this.placeholder)A=null;else if(f)A=f;else if(c)A=c;else return;this.updateComplete.then(()=>{this.setSelectedOption(A)}).catch(P=>{this.onerror&&this.onerror(P)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,i=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{i&&i!==this.selectedOption?this.setSelectedOption(i):this.setSelectedOption(e);break}case"unselected":{i?this.setSelectedOption(i):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(e);break}case"disabled":{this.itemsStore.delete(e);break}default:break}}async firstUpdated(t){await this.updateComplete;let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let i=this.getFirstOption();this.setSelectedOption(i),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let e=t.target;e&&e.tagName===Tr.toUpperCase()&&!e.hasAttribute("disabled")&&!e.hasAttribute("soft-disabled")&&(this.setSelectedOption(e),e.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var e,i,l;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(i=(e=this.selectedOption)==null?void 0:e.value)!=null?i:"",this.internals.setFormValue(this.value),(l=this.inputElement)==null||l.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(e=>{e!==t&&e.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,e;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()}formResetCallback(){var e;let t=this.initialSelectedOption||null;((e=this.selectedOption)==null?void 0:e.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var i;let e=this.navItems.find(l=>l.value===t||l.label===t);((i=this.selectedOption)==null?void 0:i.value)!==(e==null?void 0:e.value)&&(this.setSelectedOption(e||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=Nd(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var e;return(e=this.debounceSearch)==null||e.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,e){return t.filter(i=>{var l;return(l=i.getAttribute("label"))==null?void 0:l.toLowerCase().startsWith(e.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let e=this.navItems.findIndex(f=>f.tabIndex===0)+1,i=[...this.navItems.slice(e),...this.navItems.slice(0,e)],l=this.filterOptionsBySearchKey(i,t),c=null;if(l.length)[c]=l;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],g=this.filterOptionsBySearchKey(i,t[0]),A=g.filter(P=>P===f);c=A.length?A[0]:g[0]}this.navItems.indexOf(c)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(c))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===ee.DEFAULT)switch(e){case Y.DOWN:case Y.UP:case Y.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case Y.SPACE:t.preventDefault(),t.stopPropagation();break;case Y.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case Y.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else e===Y.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}handleKeyupCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===ee.DEFAULT&&e===Y.SPACE&&(this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let e=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(e)}handleKeydownPopover(t){this.getKeyboardNavMode()===ee.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,l,c,f;return S`
6004
6004
  ${this.renderLabel()}
6005
6005
  <div part="container">
6006
6006
  <div
@@ -6729,7 +6729,7 @@
6729
6729
  :host mdc-button[prefix-icon='arrow-right-regular'] {
6730
6730
  margin-left: var(--mdc-tablist-arrow-button-margin);
6731
6731
  }
6732
- `],Dy=[...XS];var Py=z.constructTagName("tablist"),ya={FORWARD:"forward",BACKWARD:"backward"};var fi=class extends To(pi(Mt(Nt(Tc(Z))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.itemsStore=new Lr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}get navItems(){return this.itemsStore.items}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}isValidItem(t){return t.matches(`${ga}:not([disabled])`)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let l=i+1;l>=this.navItems.length&&(l=i-1);let c=this.navItems.at(l);c instanceof Yi&&c.focus(),this.resetTabIndexes(l,!1)}}resetTabIndexAndSetFocus(t,e){var c;let i=super.resetTabIndexAndSetFocus(t,e,!1,!1),l=(c=this.navItems)==null?void 0:c.at(t);return l instanceof Yi&&l.focus(),this.handleArrowButtonVisibility(),i}async firstUpdated(){var i,l;if(!this.navItems)return;if(Array.isArray(this.navItems)&&this.navItems.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.navItems.map(c=>c.tabId);new Set(t).size!==this.navItems.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(i=Em(this.navItems))==null?void 0:i.tabId),(l=this.tabsContainer)==null||l.addEventListener("focusin",this.handleFocus.bind(this))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus)}focus(t){let e=Ec(this.navItems);e?e.focus(t):super.focus(t)}async handleFocus(t){if(t.relatedTarget instanceof Yi||!(t.target instanceof Yi))return;let e=Ec(this.navItems||[]);if(!(e instanceof Yi))return;let i=this.navItems.findIndex(l=>l===e);this.resetTabIndexAndSetFocus(i,void 0)}shouldShowArrowButton(t){return t===ya.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=Ec(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var H,Q,X;if(!this.navItems||!this.tabsContainer)return;let t=!1;((H=this.shadowRoot)==null?void 0:H.activeElement)instanceof Yo&&(t=!0);let e=Em(this.navItems),i=Oy(this.navItems);if(!e||!i)return;let l=e.getBoundingClientRect().left,c=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=i.getBoundingClientRect().right,g=(X=this.tabsContainer)==null?void 0:X.getBoundingClientRect().right,A=e.getBoundingClientRect().right,F=i.getBoundingClientRect().left;if(!this.isRtl()){l<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>g?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}A>g?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,F<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var l;let e=this.isRtl()?-1:1,i=this.isRtl()?1:-1;(l=this.tabsContainer)==null||l.scrollBy({left:this.tabsContainer.clientWidth*(t===ya.FORWARD?e:i),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",i=l=>S` ${this.shouldShowArrowButton(l)?S`<mdc-button
6732
+ `],Dy=[...XS];var Py=z.constructTagName("tablist"),ya={FORWARD:"forward",BACKWARD:"backward"};var fi=class extends To(pi(Mt(Nt(Tc(Z))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.itemsStore=new Lr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}get navItems(){return this.itemsStore.items}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}isValidItem(t){return t.matches(`${ga}:not([disabled])`)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let l=i+1;l>=this.navItems.length&&(l=i-1);let c=this.navItems.at(l);c instanceof Yi&&c.focus(),this.resetTabIndexes(l,!1)}}resetTabIndexAndSetFocus(t,e){var c;let i=super.resetTabIndexAndSetFocus(t,e,!1,!1),l=(c=this.navItems)==null?void 0:c.at(t);return l instanceof Yi&&l.focus(),this.handleArrowButtonVisibility(),i}async firstUpdated(){var i,l;if(!this.navItems)return;if(Array.isArray(this.navItems)&&this.navItems.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.navItems.map(c=>c.tabId);new Set(t).size!==this.navItems.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(i=Em(this.navItems))==null?void 0:i.tabId),(l=this.tabsContainer)==null||l.addEventListener("focusin",this.handleFocus.bind(this))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus)}focus(t){let e=Ec(this.navItems);e?e.focus(t):super.focus(t)}async handleFocus(t){if(t.relatedTarget instanceof Yi||!(t.target instanceof Yi))return;let e=Ec(this.navItems||[]);if(!(e instanceof Yi))return;let i=this.navItems.findIndex(l=>l===e);this.resetTabIndexAndSetFocus(i,void 0)}shouldShowArrowButton(t){return t===ya.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=Ec(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var H,Q,X;if(!this.navItems||!this.tabsContainer)return;let t=!1;((H=this.shadowRoot)==null?void 0:H.activeElement)instanceof Yo&&(t=!0);let e=Em(this.navItems),i=Oy(this.navItems);if(!e||!i)return;let l=e.getBoundingClientRect().left,c=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=i.getBoundingClientRect().right,g=(X=this.tabsContainer)==null?void 0:X.getBoundingClientRect().right,A=e.getBoundingClientRect().right,P=i.getBoundingClientRect().left;if(!this.isRtl()){l<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>g?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}A>g?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,P<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var l;let e=this.isRtl()?-1:1,i=this.isRtl()?1:-1;(l=this.tabsContainer)==null||l.scrollBy({left:this.tabsContainer.clientWidth*(t===ya.FORWARD?e:i),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",i=l=>S` ${this.shouldShowArrowButton(l)?S`<mdc-button
6733
6733
  variant="tertiary"
6734
6734
  prefix-icon="arrow-${l===ya.FORWARD?t:e}-regular"
6735
6735
  aria-label="Scroll tabs ${l===ya.FORWARD?t:e}"
@@ -7097,7 +7097,7 @@
7097
7097
  --mdc-timepicker-text-color: var(--mds-color-theme-text-primary-disabled);
7098
7098
  color: var(--mds-color-theme-text-primary-disabled);
7099
7099
  }
7100
- `,By=[tI,...Tt(!0)];var Rt=class extends pe(ie(Qt)){constructor(){super(...arguments);this.timeFormat=Ue.TIME_FORMAT;this.interval=Ue.INTERVAL;this.placement=Lt.BOTTOM_START;this.strategy=bt.STRATEGY;this.disableFlip=Ue.DISABLE_FLIP;this.localeHoursLabel="";this.localeMinutesLabel="";this.localePeriodLabel="";this.localeHoursPlaceholder="";this.localeMinutesPlaceholder="";this.localePeriodPlaceholder="";this.localeAmLabel="";this.localePmLabel="";this.localeShowTimePickerLabel="";this.localeTimeOptionsLabel="";this.localeSpinbuttonDescription="";this.displayPopover=!1;this.internalHours="";this.internalMinutes="";this.internalPeriod="AM";this.focusedOptionIndex=-1;this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover&&(this.parseValueToInternal(),this.syncFormValue()),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}updated(t){super.updated(t),t.has("displayPopover")&&this.displayPopover&&this.focusMenuItemOnOpen()}focusMenuItemOnOpen(){this.focusedOptionIndex=this.getMenuItemFocusIndex(),this.updateComplete.then(()=>{window.requestAnimationFrame(()=>{this.focusCurrentMenuItem()})}).catch(()=>{})}getMenuItemFocusIndex(){let t=this.getTimeOptions(),e=this.internalToValue(),i=t.findIndex(l=>l.value===e);return i>=0?i:0}focusCurrentMenuItem(){var l;let t=(l=this.shadowRoot)==null?void 0:l.querySelector(`#${Cm}`);if(!t)return;let i=t.querySelectorAll("mdc-option")[this.focusedOptionIndex];i&&(i.focus({preventScroll:!0}),i.scrollIntoView({block:"nearest"}))}formResetCallback(){this.value="",this.internalHours="",this.internalMinutes="",this.internalPeriod="AM",this.syncFormValue(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t,this.parseValueToInternal()}parseValueToInternal(){if(!this.value){this.internalHours="",this.internalMinutes="",this.internalPeriod="AM";return}let t=this.value.match(/^(\d{1,2}):(\d{2})$/);if(!t)return;let e=parseInt(t[1],10),i=parseInt(t[2],10);e<0||e>23||i<0||i>59||(this.internalMinutes=String(i).padStart(2,"0"),this.timeFormat===ko.TWELVE_HOUR?e===0?(this.internalPeriod="AM",this.internalHours="12"):e<12?(this.internalPeriod="AM",this.internalHours=String(e).padStart(2,"0")):e===12?(this.internalPeriod="PM",this.internalHours="12"):(this.internalPeriod="PM",this.internalHours=String(e-12).padStart(2,"0")):this.internalHours=String(e).padStart(2,"0"))}internalToValue(){if(!this.internalHours||!this.internalMinutes)return"";let t=parseInt(this.internalHours,10);return this.timeFormat===ko.TWELVE_HOUR&&(this.internalPeriod==="AM"?t=t===12?0:t:t=t===12?12:t+12),`${String(t).padStart(2,"0")}:${this.internalMinutes}`}syncFormValue(){let t=this.internalToValue();this.internals.setFormValue(t||this.value)}commitValue(){let t=this.internalToValue();t&&t!==this.value&&(this.value=t,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})))}getTimeOptions(){let t=[],e=Math.max(1,Math.min(this.interval,60));for(let i=0;i<24*60;i+=e){let l=Math.floor(i/60),c=i%60,f=`${String(l).padStart(2,"0")}:${String(c).padStart(2,"0")}`,g;if(this.timeFormat===ko.TWELVE_HOUR){let H=l<12?this.localeAmLabel:this.localePmLabel,Q=l%12;Q===0&&(Q=12);let X=String(c).padStart(2,"0");g=`${Q}:${X} ${H}`}else g=`${l}:${String(c).padStart(2,"0")}`;let A=!this.min||f>=this.min,F=!this.max||f<=this.max;A&&F&&t.push({label:g,value:f})}return t}handleOptionClick(t){var e;this.value=t,this.parseValueToInternal(),this.displayPopover=!1,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})),(e=this.dropdownButton)==null||e.focus()}handleDropdownClick(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleBaseContainerClick(t){var i,l,c;if(this.disabled||this.softDisabled||this.readonly)return;let e=t.target;if(e.getAttribute("role")!=="spinbutton"){if(e.getAttribute("part")==="base-container"||e.getAttribute("part")==="spinbutton-group"){this.displayPopover=!this.displayPopover,(i=this.dropdownButton)==null||i.focus(),t.stopPropagation();return}(l=this.hoursInput)==null||l.focus(),(c=this.hoursInput)==null||c.select()}}handleBaseKeydown(t){var e;this.disabled||this.softDisabled||this.readonly||t.key===kt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var l;let e=this.getTimeOptions(),i=e.length;if(i!==0)switch(t.key){case kt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%i,this.focusCurrentMenuItem();break}case kt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+i)%i,this.focusCurrentMenuItem();break}case kt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<i&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case kt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(l=this.dropdownButton)==null||l.focus();break}default:break}}handleHoursKeydown(t){this.handleSpinbuttonKeydown(t,"hours")}handleMinutesKeydown(t){this.handleSpinbuttonKeydown(t,"minutes")}handlePeriodKeydown(t){var e,i;switch(t.key){case kt.ARROW_UP:case kt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case kt.TAB:break;case kt.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select();break;default:{t.preventDefault();let l=this.localeAmLabel.charAt(0).toLowerCase(),c=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===l?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===c&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,e){var A,F,H,Q,X,J;let i=this.timeFormat===ko.TWELVE_HOUR,l,c;e==="hours"?(l=i?Ue.MIN_HOUR_12:Ue.MIN_HOUR_24,c=i?Ue.MAX_HOUR_12:Ue.MAX_HOUR_24):(l=Ue.MIN_MINUTE,c=Ue.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,g=f?parseInt(f,10):l;switch(t.key){case kt.ARROW_UP:{t.preventDefault(),g=g>=c?l:g+1,this.setSpinbuttonValue(e,g),this.commitValue();break}case kt.ARROW_DOWN:{t.preventDefault(),g=g<=l?c:g-1,this.setSpinbuttonValue(e,g),this.commitValue();break}case kt.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((A=this.minutesInput)==null||A.focus(),(F=this.minutesInput)==null||F.select()):i&&((H=this.periodInput)==null||H.focus(),(Q=this.periodInput)==null||Q.select());break}case kt.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((X=this.hoursInput)==null||X.focus(),(J=this.hoursInput)==null||J.select());break}case kt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,l,c)):t.preventDefault();break}}}handleDigitInput(t,e,i,l){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let c=parseInt(this.pendingDigits,10);c>l&&(c=l),c<i&&(c=i),this.setSpinbuttonValue(e,c),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else{let c=parseInt(this.pendingDigits,10),f=Math.floor(l/10);if(c>f){let g=c;g>l&&(g=l),g<i&&(g=i),this.setSpinbuttonValue(e,g),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,c),this.pendingDigitTimeout=setTimeout(()=>{let g=c;g<i&&(g=i),this.setSpinbuttonValue(e,g),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}}setSpinbuttonValue(t,e){let i=String(e).padStart(2,"0");t==="hours"?this.internalHours=i:this.internalMinutes=i,this.requestUpdate()}advanceToNextField(t){t==="hours"?this.updateComplete.then(()=>{var e,i;(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select()}).catch(()=>{}):this.timeFormat===ko.TWELVE_HOUR&&this.updateComplete.then(()=>{var e,i;(e=this.periodInput)==null||e.focus(),(i=this.periodInput)==null||i.select()}).catch(()=>{})}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}get displayPeriod(){return this.internalPeriod==="AM"?this.localeAmLabel:this.localePmLabel}get hoursPlaceholder(){return this.localeHoursPlaceholder}get minutesPlaceholder(){return this.localeMinutesPlaceholder}get periodPlaceholder(){return this.localePeriodPlaceholder}renderTimeOptions(){let t=this.getTimeOptions(),e=this.internalToValue();return t.map(i=>S`
7100
+ `,By=[tI,...Tt(!0)];var Rt=class extends pe(ie(Qt)){constructor(){super(...arguments);this.timeFormat=Ue.TIME_FORMAT;this.interval=Ue.INTERVAL;this.placement=Lt.BOTTOM_START;this.strategy=bt.STRATEGY;this.disableFlip=Ue.DISABLE_FLIP;this.localeHoursLabel="";this.localeMinutesLabel="";this.localePeriodLabel="";this.localeHoursPlaceholder="";this.localeMinutesPlaceholder="";this.localePeriodPlaceholder="";this.localeAmLabel="";this.localePmLabel="";this.localeShowTimePickerLabel="";this.localeTimeOptionsLabel="";this.localeSpinbuttonDescription="";this.displayPopover=!1;this.internalHours="";this.internalMinutes="";this.internalPeriod="AM";this.focusedOptionIndex=-1;this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover&&(this.parseValueToInternal(),this.syncFormValue()),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}updated(t){super.updated(t),t.has("displayPopover")&&this.displayPopover&&this.focusMenuItemOnOpen()}focusMenuItemOnOpen(){this.focusedOptionIndex=this.getMenuItemFocusIndex(),this.updateComplete.then(()=>{window.requestAnimationFrame(()=>{this.focusCurrentMenuItem()})}).catch(()=>{})}getMenuItemFocusIndex(){let t=this.getTimeOptions(),e=this.internalToValue(),i=t.findIndex(l=>l.value===e);return i>=0?i:0}focusCurrentMenuItem(){var l;let t=(l=this.shadowRoot)==null?void 0:l.querySelector(`#${Cm}`);if(!t)return;let i=t.querySelectorAll("mdc-option")[this.focusedOptionIndex];i&&(i.focus({preventScroll:!0}),i.scrollIntoView({block:"nearest"}))}formResetCallback(){this.value="",this.internalHours="",this.internalMinutes="",this.internalPeriod="AM",this.syncFormValue(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t,this.parseValueToInternal()}parseValueToInternal(){if(!this.value){this.internalHours="",this.internalMinutes="",this.internalPeriod="AM";return}let t=this.value.match(/^(\d{1,2}):(\d{2})$/);if(!t)return;let e=parseInt(t[1],10),i=parseInt(t[2],10);e<0||e>23||i<0||i>59||(this.internalMinutes=String(i).padStart(2,"0"),this.timeFormat===ko.TWELVE_HOUR?e===0?(this.internalPeriod="AM",this.internalHours="12"):e<12?(this.internalPeriod="AM",this.internalHours=String(e).padStart(2,"0")):e===12?(this.internalPeriod="PM",this.internalHours="12"):(this.internalPeriod="PM",this.internalHours=String(e-12).padStart(2,"0")):this.internalHours=String(e).padStart(2,"0"))}internalToValue(){if(!this.internalHours||!this.internalMinutes)return"";let t=parseInt(this.internalHours,10);return this.timeFormat===ko.TWELVE_HOUR&&(this.internalPeriod==="AM"?t=t===12?0:t:t=t===12?12:t+12),`${String(t).padStart(2,"0")}:${this.internalMinutes}`}syncFormValue(){let t=this.internalToValue();this.internals.setFormValue(t||this.value)}commitValue(){let t=this.internalToValue();t&&t!==this.value&&(this.value=t,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})))}getTimeOptions(){let t=[],e=Math.max(1,Math.min(this.interval,60));for(let i=0;i<24*60;i+=e){let l=Math.floor(i/60),c=i%60,f=`${String(l).padStart(2,"0")}:${String(c).padStart(2,"0")}`,g;if(this.timeFormat===ko.TWELVE_HOUR){let H=l<12?this.localeAmLabel:this.localePmLabel,Q=l%12;Q===0&&(Q=12);let X=String(c).padStart(2,"0");g=`${Q}:${X} ${H}`}else g=`${l}:${String(c).padStart(2,"0")}`;let A=!this.min||f>=this.min,P=!this.max||f<=this.max;A&&P&&t.push({label:g,value:f})}return t}handleOptionClick(t){var e;this.value=t,this.parseValueToInternal(),this.displayPopover=!1,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})),(e=this.dropdownButton)==null||e.focus()}handleDropdownClick(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleBaseContainerClick(t){var i,l,c;if(this.disabled||this.softDisabled||this.readonly)return;let e=t.target;if(e.getAttribute("role")!=="spinbutton"){if(e.getAttribute("part")==="base-container"||e.getAttribute("part")==="spinbutton-group"){this.displayPopover=!this.displayPopover,(i=this.dropdownButton)==null||i.focus(),t.stopPropagation();return}(l=this.hoursInput)==null||l.focus(),(c=this.hoursInput)==null||c.select()}}handleBaseKeydown(t){var e;this.disabled||this.softDisabled||this.readonly||t.key===kt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var l;let e=this.getTimeOptions(),i=e.length;if(i!==0)switch(t.key){case kt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%i,this.focusCurrentMenuItem();break}case kt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+i)%i,this.focusCurrentMenuItem();break}case kt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<i&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case kt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(l=this.dropdownButton)==null||l.focus();break}default:break}}handleHoursKeydown(t){this.handleSpinbuttonKeydown(t,"hours")}handleMinutesKeydown(t){this.handleSpinbuttonKeydown(t,"minutes")}handlePeriodKeydown(t){var e,i;switch(t.key){case kt.ARROW_UP:case kt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case kt.TAB:break;case kt.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select();break;default:{t.preventDefault();let l=this.localeAmLabel.charAt(0).toLowerCase(),c=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===l?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===c&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,e){var A,P,H,Q,X,J;let i=this.timeFormat===ko.TWELVE_HOUR,l,c;e==="hours"?(l=i?Ue.MIN_HOUR_12:Ue.MIN_HOUR_24,c=i?Ue.MAX_HOUR_12:Ue.MAX_HOUR_24):(l=Ue.MIN_MINUTE,c=Ue.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,g=f?parseInt(f,10):l;switch(t.key){case kt.ARROW_UP:{t.preventDefault(),g=g>=c?l:g+1,this.setSpinbuttonValue(e,g),this.commitValue();break}case kt.ARROW_DOWN:{t.preventDefault(),g=g<=l?c:g-1,this.setSpinbuttonValue(e,g),this.commitValue();break}case kt.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((A=this.minutesInput)==null||A.focus(),(P=this.minutesInput)==null||P.select()):i&&((H=this.periodInput)==null||H.focus(),(Q=this.periodInput)==null||Q.select());break}case kt.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((X=this.hoursInput)==null||X.focus(),(J=this.hoursInput)==null||J.select());break}case kt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,l,c)):t.preventDefault();break}}}handleDigitInput(t,e,i,l){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let c=parseInt(this.pendingDigits,10);c>l&&(c=l),c<i&&(c=i),this.setSpinbuttonValue(e,c),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else{let c=parseInt(this.pendingDigits,10),f=Math.floor(l/10);if(c>f){let g=c;g>l&&(g=l),g<i&&(g=i),this.setSpinbuttonValue(e,g),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,c),this.pendingDigitTimeout=setTimeout(()=>{let g=c;g<i&&(g=i),this.setSpinbuttonValue(e,g),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}}setSpinbuttonValue(t,e){let i=String(e).padStart(2,"0");t==="hours"?this.internalHours=i:this.internalMinutes=i,this.requestUpdate()}advanceToNextField(t){t==="hours"?this.updateComplete.then(()=>{var e,i;(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select()}).catch(()=>{}):this.timeFormat===ko.TWELVE_HOUR&&this.updateComplete.then(()=>{var e,i;(e=this.periodInput)==null||e.focus(),(i=this.periodInput)==null||i.select()}).catch(()=>{})}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}get displayPeriod(){return this.internalPeriod==="AM"?this.localeAmLabel:this.localePmLabel}get hoursPlaceholder(){return this.localeHoursPlaceholder}get minutesPlaceholder(){return this.localeMinutesPlaceholder}get periodPlaceholder(){return this.localePeriodPlaceholder}renderTimeOptions(){let t=this.getTimeOptions(),e=this.internalToValue();return t.map(i=>S`
7101
7101
  <mdc-option
7102
7102
  label="${this.optionLabelFormatter?this.optionLabelFormatter(i.label,i.value):i.label}"
7103
7103
  ?selected="${i.value===e}"
@@ -7523,10 +7523,10 @@
7523
7523
  />
7524
7524
  </mdc-statictoggle>
7525
7525
  ${this.renderLabelAndHelperText()}
7526
- `}};As.styles=[...dr.styles,...jy],As.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],As.prototype,"checked",2),h([u({type:String,reflect:!0})],As.prototype,"size",2);var Mm=As;Mm.register(Bb);var dI=Mm;function Ss(a,o,t){var c;let e=(c=t.initialDeps)!=null?c:[],i;function l(){var f,g,A,F;let H;t.key&&((f=t.debug)!=null&&f.call(t))&&(H=Date.now());let Q=a();if(!(Q.length!==e.length||Q.some((at,nt)=>e[nt]!==at)))return i;e=Q;let J;if(t.key&&((g=t.debug)!=null&&g.call(t))&&(J=Date.now()),i=o(...Q),t.key&&((A=t.debug)!=null&&A.call(t))){let at=Math.round((Date.now()-H)*100)/100,nt=Math.round((Date.now()-J)*100)/100,ht=nt/16,yt=(Ct,Ot)=>{for(Ct=String(Ct);Ct.length<Ot;)Ct=" "+Ct;return Ct};console.info(`%c\u23F1 ${yt(nt,5)} /${yt(at,5)} ms`,`
7526
+ `}};As.styles=[...dr.styles,...jy],As.shadowRootOptions={...dr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],As.prototype,"checked",2),h([u({type:String,reflect:!0})],As.prototype,"size",2);var Mm=As;Mm.register(Bb);var dI=Mm;function Ss(a,o,t){var c;let e=(c=t.initialDeps)!=null?c:[],i;function l(){var f,g,A,P;let H;t.key&&((f=t.debug)!=null&&f.call(t))&&(H=Date.now());let Q=a();if(!(Q.length!==e.length||Q.some((at,nt)=>e[nt]!==at)))return i;e=Q;let J;if(t.key&&((g=t.debug)!=null&&g.call(t))&&(J=Date.now()),i=o(...Q),t.key&&((A=t.debug)!=null&&A.call(t))){let at=Math.round((Date.now()-H)*100)/100,nt=Math.round((Date.now()-J)*100)/100,ht=nt/16,yt=(Ct,Ot)=>{for(Ct=String(Ct);Ct.length<Ot;)Ct=" "+Ct;return Ct};console.info(`%c\u23F1 ${yt(nt,5)} /${yt(at,5)} ms`,`
7527
7527
  font-size: .6rem;
7528
7528
  font-weight: bold;
7529
- color: hsl(${Math.max(0,Math.min(120-120*ht,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(F=t==null?void 0:t.onChange)==null||F.call(t,i),i}return l.updateDeps=f=>{e=f},l}function Om(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var qy=(a,o)=>Math.abs(a-o)<1.01,Xy=(a,o,t)=>{let e;return function(...i){a.clearTimeout(e),e=a.setTimeout(()=>o.apply(this,i),t)}};var Zy=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},cI=a=>a,Rm=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),e=[];for(let i=o;i<=t;i++)e.push(i);return e},tE=(a,o)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let i=c=>{let{width:f,height:g}=c;o({width:Math.round(f),height:Math.round(g)})};if(i(Zy(t)),!e.ResizeObserver)return()=>{};let l=new e.ResizeObserver(c=>{let f=()=>{let g=c[0];if(g!=null&&g.borderBoxSize){let A=g.borderBoxSize[0];if(A){i({width:A.inlineSize,height:A.blockSize});return}}i(Zy(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},Qy={passive:!0};var Jy=typeof window>"u"?!0:"onscrollend"in window,eE=(a,o)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let i=0,l=a.options.useScrollendEvent&&Jy?()=>{}:Xy(e,()=>{o(i,!1)},a.options.isScrollingResetDelay),c=F=>()=>{let{horizontal:H,isRtl:Q}=a.options;i=H?t.scrollLeft*(Q&&-1||1):t.scrollTop,l(),o(i,F)},f=c(!0),g=c(!1);g(),t.addEventListener("scroll",f,Qy);let A=a.options.useScrollendEvent&&Jy;return A&&t.addEventListener("scrollend",g,Qy),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",g)}};var hI=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let e=o.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var rE=(a,{adjustments:o=0,behavior:t},e)=>{var i,l;let c=a+o;(l=(i=e.scrollElement)==null?void 0:i.scrollTo)==null||l.call(i,{[e.options.horizontal?"left":"top"]:c,behavior:t})},_c=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,e=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(i=>{i.forEach(l=>{let c=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var i;(i=e())==null||i.disconnect(),t=null},observe:i=>{var l;return(l=e())==null?void 0:l.observe(i,{box:"border-box"})},unobserve:i=>{var l;return(l=e())==null?void 0:l.unobserve(i)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([e,i])=>{typeof i>"u"&&delete t[e]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:cI,rangeExtractor:Rm,onChange:()=>{},measureElement:hI,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var e,i;(i=(e=this.options).onChange)==null||i.call(e,this,t)},this.maybeNotify=Ss(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var t;let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(t=this.scrollElement)==null?void 0:t.window)!=null?i:null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,e)=>{let i=new Map,l=new Map;for(let c=e-1;c>=0;c--){let f=t[c];if(i.has(f.lane))continue;let g=l.get(f.lane);if(g==null||f.end>g.end?l.set(f.lane,f):f.end<g.end&&i.set(f.lane,!0),i.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=Ss(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,i,l,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:i,getItemKey:l,enabled:c}),{key:!1}),this.getMeasurements=Ss(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:i,getItemKey:l,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(F=>{this.itemSizeCache.set(F.key,F.size)}));let g=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,g);for(let F=g;F<t;F++){let H=l(F),Q=this.options.lanes===1?A[F-1]:this.getFurthestMeasurement(A,F),X=Q?Q.end+this.options.gap:e+i,J=f.get(H),at=typeof J=="number"?J:this.options.estimateSize(F),nt=X+at,ht=Q?Q.lane:F%this.options.lanes;A[F]={index:F,start:X,size:at,end:nt,key:H,lane:ht}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ss(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,i,l)=>this.range=t.length>0&&e>0?pI({measurements:t,outerSize:e,scrollOffset:i,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ss(()=>{let t=null,e=null,i=this.calculateRange();return i&&(t=i.startIndex,e=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,i,l,c)=>l===null||c===null?[]:t({startIndex:l,endIndex:c,overscan:e,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let e=this.options.indexAttribute,i=t.getAttribute(e);return i?parseInt(i,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{let i=this.indexFromElement(t),l=this.measurementsCache[i];if(!l)return;let c=l.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(i,this.options.measureElement(t,e,this))},this.resizeItem=(t,e)=>{var f;let i=this.measurementsCache[t];if(!i)return;let l=(f=this.itemSizeCache.get(i.key))!=null?f:i.size,c=e-l;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,c,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,e)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((e,i)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(i))});return}this._measureElement(t,void 0)},this.getVirtualItems=Ss(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let i=[];for(let l=0,c=t.length;l<c;l++){let f=t[l],g=e[f];i.push(g)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return Om(e[iE(0,e.length-1,i=>Om(e[i]).start,t)])},this.getOffsetForAlignment=(t,e,i=0)=>{let l=this.getSize(),c=this.getScrollOffset();e==="auto"&&(e=t>=c+l?"end":"start"),e==="center"?t+=(i-l)/2:e==="end"&&(t-=l);let f=this.getTotalSize()+this.options.scrollMargin-l;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let i=this.measurementsCache[t];if(!i)return;let l=this.getSize(),c=this.getScrollOffset();if(e==="auto")if(i.end>=c+l-this.options.scrollPaddingEnd)e="end";else if(i.start<=c+this.options.scrollPaddingStart)e="start";else return[c,e];let f=e==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,e,i.size),e]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:e="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,e),{adjustments:void 0,behavior:i})},this.scrollToIndex=(t,{align:e="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let l=0,c=10,f=A=>{if(!this.targetWindow)return;let F=this.getOffsetForIndex(t,A);if(!F){console.warn("Failed to get offset for index:",t);return}let[H,Q]=F;this._scrollToOffset(H,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{let X=this.getScrollOffset(),J=this.getOffsetForIndex(t,Q);if(!J){console.warn("Failed to get offset for index:",t);return}qy(J[0],X)||g(Q)})},g=A=>{this.targetWindow&&(l++,l<c?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${c} attempts.`))};f(e)},this.scrollBy=(t,{behavior:e}={})=>{e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:e})},this.getTotalSize=()=>{var l;var t;let e=this.getMeasurements(),i;if(e.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=(l=(t=e[e.length-1])==null?void 0:t.end)!=null?l:0;else{let c=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&c.some(g=>g===null);){let g=e[f];c[g.lane]===null&&(c[g.lane]=g.end),f--}i=Math.max(...c.filter(g=>g!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:e,behavior:i})=>{this.options.scrollToFn(t,{behavior:i,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},iE=(a,o,t,e)=>{for(;a<=o;){let i=(a+o)/2|0,l=t(i);if(l<e)a=i+1;else if(l>e)o=i-1;else return i}return a>0?a-1:0};function pI({measurements:a,outerSize:o,scrollOffset:t,lanes:e}){let i=a.length-1,l=g=>a[g].start;if(a.length<=e)return{startIndex:0,endIndex:i};let c=iE(0,i,l,t),f=c;if(e===1)for(;f<i&&a[f].end<t+o;)f++;else if(e>1){let g=Array(e).fill(0);for(;f<i&&g.some(F=>F<t+o);){let F=a[f];g[F.lane]=F.end,f++}let A=Array(e).fill(t+o);for(;c>=0&&A.some(F=>F>=t);){let F=a[c];A[F.lane]=F.start,c--}c=Math.max(0,c-c%e),f=Math.min(i,f+(e-1-f%e))}return{startIndex:c,endIndex:f}}var Dm=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let e={...t,onChange:(i,l)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,i,l)}};this.virtualizer=new _c(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},wc=class extends Dm{constructor(o,t){super(o,{observeElementRect:tE,observeElementOffset:eE,scrollToFn:rE,...t})}};var mI={includeEnd:!1},kc=class{constructor(o,t,e={}){let i={...mI,...e};this.start=o,this.end=t,this.includeEnd=i.includeEnd}includes(o){let{start:t,end:e,includeEnd:i}=this,l=Math.min(t,e),c=Math.max(t,e);return i?o>=l&&o<=c:o>=l&&o<c}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:e,end:i}=this,l=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=l;return l+=t,(e?f>i:f>=i)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Nc=class{constructor(o,t,e){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=e}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((e,i,l)=>o.call(t,e,this.getIndex(e),l))}forEach(o,t){this.items.forEach((e,i,l)=>{o.call(t,e,this.getIndex(e),l)})}findIndex(o,t){let e=this.items.find((i,l,c)=>o.call(t,i,this.getIndex(i),c));return e?this.getIndex(e):-1}find(o,t){return this.items.find((e,i,l)=>o.call(t,e,this.getIndex(e),l))}};var uI=[B`
7529
+ color: hsl(${Math.max(0,Math.min(120-120*ht,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(P=t==null?void 0:t.onChange)==null||P.call(t,i),i}return l.updateDeps=f=>{e=f},l}function Om(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var qy=(a,o)=>Math.abs(a-o)<1.01,Xy=(a,o,t)=>{let e;return function(...i){a.clearTimeout(e),e=a.setTimeout(()=>o.apply(this,i),t)}};var Zy=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},cI=a=>a,Rm=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),e=[];for(let i=o;i<=t;i++)e.push(i);return e},tE=(a,o)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let i=c=>{let{width:f,height:g}=c;o({width:Math.round(f),height:Math.round(g)})};if(i(Zy(t)),!e.ResizeObserver)return()=>{};let l=new e.ResizeObserver(c=>{let f=()=>{let g=c[0];if(g!=null&&g.borderBoxSize){let A=g.borderBoxSize[0];if(A){i({width:A.inlineSize,height:A.blockSize});return}}i(Zy(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},Qy={passive:!0};var Jy=typeof window>"u"?!0:"onscrollend"in window,eE=(a,o)=>{let t=a.scrollElement;if(!t)return;let e=a.targetWindow;if(!e)return;let i=0,l=a.options.useScrollendEvent&&Jy?()=>{}:Xy(e,()=>{o(i,!1)},a.options.isScrollingResetDelay),c=P=>()=>{let{horizontal:H,isRtl:Q}=a.options;i=H?t.scrollLeft*(Q&&-1||1):t.scrollTop,l(),o(i,P)},f=c(!0),g=c(!1);g(),t.addEventListener("scroll",f,Qy);let A=a.options.useScrollendEvent&&Jy;return A&&t.addEventListener("scrollend",g,Qy),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",g)}};var hI=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let e=o.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var rE=(a,{adjustments:o=0,behavior:t},e)=>{var i,l;let c=a+o;(l=(i=e.scrollElement)==null?void 0:i.scrollTo)==null||l.call(i,{[e.options.horizontal?"left":"top"]:c,behavior:t})},_c=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,e=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(i=>{i.forEach(l=>{let c=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var i;(i=e())==null||i.disconnect(),t=null},observe:i=>{var l;return(l=e())==null?void 0:l.observe(i,{box:"border-box"})},unobserve:i=>{var l;return(l=e())==null?void 0:l.unobserve(i)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([e,i])=>{typeof i>"u"&&delete t[e]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:cI,rangeExtractor:Rm,onChange:()=>{},measureElement:hI,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var e,i;(i=(e=this.options).onChange)==null||i.call(e,this,t)},this.maybeNotify=Ss(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var t;let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(t=this.scrollElement)==null?void 0:t.window)!=null?i:null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,e)=>{let i=new Map,l=new Map;for(let c=e-1;c>=0;c--){let f=t[c];if(i.has(f.lane))continue;let g=l.get(f.lane);if(g==null||f.end>g.end?l.set(f.lane,f):f.end<g.end&&i.set(f.lane,!0),i.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=Ss(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,i,l,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:i,getItemKey:l,enabled:c}),{key:!1}),this.getMeasurements=Ss(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:i,getItemKey:l,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(P=>{this.itemSizeCache.set(P.key,P.size)}));let g=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,g);for(let P=g;P<t;P++){let H=l(P),Q=this.options.lanes===1?A[P-1]:this.getFurthestMeasurement(A,P),X=Q?Q.end+this.options.gap:e+i,J=f.get(H),at=typeof J=="number"?J:this.options.estimateSize(P),nt=X+at,ht=Q?Q.lane:P%this.options.lanes;A[P]={index:P,start:X,size:at,end:nt,key:H,lane:ht}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ss(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,i,l)=>this.range=t.length>0&&e>0?pI({measurements:t,outerSize:e,scrollOffset:i,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ss(()=>{let t=null,e=null,i=this.calculateRange();return i&&(t=i.startIndex,e=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,i,l,c)=>l===null||c===null?[]:t({startIndex:l,endIndex:c,overscan:e,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let e=this.options.indexAttribute,i=t.getAttribute(e);return i?parseInt(i,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{let i=this.indexFromElement(t),l=this.measurementsCache[i];if(!l)return;let c=l.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(i,this.options.measureElement(t,e,this))},this.resizeItem=(t,e)=>{var f;let i=this.measurementsCache[t];if(!i)return;let l=(f=this.itemSizeCache.get(i.key))!=null?f:i.size,c=e-l;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,c,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,e)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((e,i)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(i))});return}this._measureElement(t,void 0)},this.getVirtualItems=Ss(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let i=[];for(let l=0,c=t.length;l<c;l++){let f=t[l],g=e[f];i.push(g)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return Om(e[iE(0,e.length-1,i=>Om(e[i]).start,t)])},this.getOffsetForAlignment=(t,e,i=0)=>{let l=this.getSize(),c=this.getScrollOffset();e==="auto"&&(e=t>=c+l?"end":"start"),e==="center"?t+=(i-l)/2:e==="end"&&(t-=l);let f=this.getTotalSize()+this.options.scrollMargin-l;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let i=this.measurementsCache[t];if(!i)return;let l=this.getSize(),c=this.getScrollOffset();if(e==="auto")if(i.end>=c+l-this.options.scrollPaddingEnd)e="end";else if(i.start<=c+this.options.scrollPaddingStart)e="start";else return[c,e];let f=e==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,e,i.size),e]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:e="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,e),{adjustments:void 0,behavior:i})},this.scrollToIndex=(t,{align:e="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let l=0,c=10,f=A=>{if(!this.targetWindow)return;let P=this.getOffsetForIndex(t,A);if(!P){console.warn("Failed to get offset for index:",t);return}let[H,Q]=P;this._scrollToOffset(H,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{let X=this.getScrollOffset(),J=this.getOffsetForIndex(t,Q);if(!J){console.warn("Failed to get offset for index:",t);return}qy(J[0],X)||g(Q)})},g=A=>{this.targetWindow&&(l++,l<c?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${c} attempts.`))};f(e)},this.scrollBy=(t,{behavior:e}={})=>{e==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:e})},this.getTotalSize=()=>{var l;var t;let e=this.getMeasurements(),i;if(e.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=(l=(t=e[e.length-1])==null?void 0:t.end)!=null?l:0;else{let c=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&c.some(g=>g===null);){let g=e[f];c[g.lane]===null&&(c[g.lane]=g.end),f--}i=Math.max(...c.filter(g=>g!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:e,behavior:i})=>{this.options.scrollToFn(t,{behavior:i,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},iE=(a,o,t,e)=>{for(;a<=o;){let i=(a+o)/2|0,l=t(i);if(l<e)a=i+1;else if(l>e)o=i-1;else return i}return a>0?a-1:0};function pI({measurements:a,outerSize:o,scrollOffset:t,lanes:e}){let i=a.length-1,l=g=>a[g].start;if(a.length<=e)return{startIndex:0,endIndex:i};let c=iE(0,i,l,t),f=c;if(e===1)for(;f<i&&a[f].end<t+o;)f++;else if(e>1){let g=Array(e).fill(0);for(;f<i&&g.some(P=>P<t+o);){let P=a[f];g[P.lane]=P.end,f++}let A=Array(e).fill(t+o);for(;c>=0&&A.some(P=>P>=t);){let P=a[c];A[P.lane]=P.start,c--}c=Math.max(0,c-c%e),f=Math.min(i,f+(e-1-f%e))}return{startIndex:c,endIndex:f}}var Dm=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let e={...t,onChange:(i,l)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,i,l)}};this.virtualizer=new _c(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},wc=class extends Dm{constructor(o,t){super(o,{observeElementRect:tE,observeElementOffset:eE,scrollToFn:rE,...t})}};var mI={includeEnd:!1},kc=class{constructor(o,t,e={}){let i={...mI,...e};this.start=o,this.end=t,this.includeEnd=i.includeEnd}includes(o){let{start:t,end:e,includeEnd:i}=this,l=Math.min(t,e),c=Math.max(t,e);return i?o>=l&&o<=c:o>=l&&o<c}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:e,end:i}=this,l=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=l;return l+=t,(e?f>i:f>=i)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Nc=class{constructor(o,t,e){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=e}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((e,i,l)=>o.call(t,e,this.getIndex(e),l))}forEach(o,t){this.items.forEach((e,i,l)=>{o.call(t,e,this.getIndex(e),l)})}findIndex(o,t){let e=this.items.find((i,l,c)=>o.call(t,i,this.getIndex(i),c));return e?this.getIndex(e):-1}find(o,t){return this.items.find((e,i,l)=>o.call(t,e,this.getIndex(e),l))}};var uI=[B`
7530
7530
  :host {
7531
7531
  height: 100%;
7532
7532
  }
@@ -7556,7 +7556,7 @@
7556
7556
  ::slotted(mdc-listitem) {
7557
7557
  position: relative;
7558
7558
  }
7559
- `],oE=uI;var sE=z.constructTagName("virtualizedlist"),qrt=z.constructTagName("virtualizedwrapper"),Ta={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var mr=class extends ie(zi){constructor(){super();this.virtualizerProps=Ta.VIRTUALIZER_PROPS;this.loop=Ta.LOOP;this.scrollAnchoring=Ta.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=Ta.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var e,i;this.observeSizeChanges&&this.navItems.find(l=>l===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Mn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Jt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:Ta.VIRTUALIZER_PROPS.isItemNavigable}get virtualItems(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?e:[]}get navItems(){var t,e,i,l;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let c=(l=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?l:"data-index";this.virtualizedNavItems=new Nc(super.navItems,f=>Number(f.getAttribute(c)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?e:0}connectedCallback(){this.virtualizerController=new wc(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no",this.resizeObserver=new ResizeObserver(this.handleResizeObserverCallback.bind(this)),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}async update(t){super.update(t),t.has("orientation")&&this.orientation!==Mn.VERTICAL&&(this.orientation=Mn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,l;this.observeSizeChanges&&((l=(i=this.virtualizer)==null?void 0:i.measureElement)==null||l.call(i,e))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var l,c;let{virtualizer:e}=this;if(!e)return;let i=e.measurementsCache.slice();if(e.setOptions({...e.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&i.length>0){let f=Math.abs(this.virtualizerProps.count-((l=t==null?void 0:t.count)!=null?l:0)),g=this.selectedIndex,A=this.firstKey,F=new kc(g-f,g+f,{includeEnd:!0}),H=(c=Array.from(F).find(X=>e.options.getItemKey(X)===this.selectedKey))!=null?c:this.selectedIndex;if(this.setSelectedIndex(H),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&g!==this.selectedIndex||!this.focusWithin&&this.firstKey!==A){let X=e.measurementsCache[this.selectedIndex].end-i[g].end;this.scrollRef.scrollTop+=X}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var e,i,l,c,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(c=(l=this.virtualizer)==null?void 0:l.getVirtualItems)==null?void 0:c.call(l))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var g,A,F,H;let{navItems:e,virtualizerProps:i,virtualizer:l}=this,c=(A=(g=i.rangeExtractor)==null?void 0:g.call(i,t))!=null?A:Rm(t);return this.hiddenIndexes.forEach(Q=>{let X=e.at(Q);X&&(X.removeAttribute("data-virtualized-hidden"),X.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(H=(F=this.virtualizer)==null?void 0:F.options.getItemKey(this.firstIndex))!=null?H:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var X;c.includes(Q)||(Q<t.startIndex&&Q>=0&&(c.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((X=l==null?void 0:l.options.count)!=null?X:0)&&(c.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),c.sort((Q,X)=>Q-X),c}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:l}=this;if(!l||i.count===0)return;let{measurementsCache:c}=l;this.hiddenIndexes.forEach(f=>{let g=e.at(f);if(g){let A=Math.max(t.startIndex-t.overscan,0),F=c[A],H=c[f];g.setAttribute("data-virtualized-hidden","true"),g.style.setProperty("--mdc-virtualizedlist-hidden-top",`${H.start-F.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){var i;if(e==="added"){let l=this.isElementSelected(t);if(t.tabIndex=l?0:-1,!l&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let c=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);c!==void 0&&this.setSelectedIndex(c)}this.setAriaSetSize(t)}else e==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,e){this.syncUI(),await this.updateComplete,this.requestUpdate(),!e&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(i=>i()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let e=t.target;this.atBottom==="re-evaluate"||e.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=e.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&e>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=e-i<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var i,l,c,f;switch(this.getActionForKeyEvent(t)){case Y.HOME:{(l=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||l.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case Y.END:{let g=this.virtualizerProps.count-1;(f=(c=this.virtualizer)==null?void 0:c.scrollToIndex)==null||f.call(c,g,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(g));break}case Y.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,e=!0){super.resetTabIndexes(t,e),this.setSelectedIndex(t)}findNextNavigableIndex(t,e){let{count:i}=this.virtualizerProps;for(let l=t;l>=0&&l<i;l+=e)if(this.isItemNavigable(l))return l;return null}resetTabIndexAndSetFocus(t,e,i=!0,l=i){if(this.navItems.find(g=>{var A;return((A=this.virtualizer)==null?void 0:A.indexFromElement(g))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let g=t>=e?1:-1,A=this.findNextNavigableIndex(t+g,g);return A!==null?this.resetTabIndexAndSetFocus(A,e,i,l):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,l),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,l);return this.setSelectedIndex(t),f}setAriaSetSize(t){var e,i;t.setAttribute("aria-setsize",`${(i=(e=this.virtualizer)==null?void 0:e.options.count)!=null?i:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=e-t-i),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,e){var i,l;(l=(i=this.virtualizer).scrollToIndex)==null||l.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var l;let t=this.virtualItems.find(({index:c})=>!this.hiddenIndexes.includes(c)),e=(l=t==null?void 0:t.start)!=null?l:0;window.getComputedStyle(this);let i=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(i=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${i+e}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return S`
7559
+ `],oE=uI;var sE=z.constructTagName("virtualizedlist"),qrt=z.constructTagName("virtualizedwrapper"),Ta={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var mr=class extends ie(zi){constructor(){super();this.virtualizerProps=Ta.VIRTUALIZER_PROPS;this.loop=Ta.LOOP;this.scrollAnchoring=Ta.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=Ta.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var e,i;this.observeSizeChanges&&this.navItems.find(l=>l===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Mn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Jt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:Ta.VIRTUALIZER_PROPS.isItemNavigable}get virtualItems(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?e:[]}get navItems(){var t,e,i,l;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let c=(l=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?l:"data-index";this.virtualizedNavItems=new Nc(super.navItems,f=>Number(f.getAttribute(c)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?e:0}connectedCallback(){this.virtualizerController=new wc(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no",this.resizeObserver=new ResizeObserver(this.handleResizeObserverCallback.bind(this)),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}async update(t){super.update(t),t.has("orientation")&&this.orientation!==Mn.VERTICAL&&(this.orientation=Mn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,l;this.observeSizeChanges&&((l=(i=this.virtualizer)==null?void 0:i.measureElement)==null||l.call(i,e))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var l,c;let{virtualizer:e}=this;if(!e)return;let i=e.measurementsCache.slice();if(e.setOptions({...e.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&i.length>0){let f=Math.abs(this.virtualizerProps.count-((l=t==null?void 0:t.count)!=null?l:0)),g=this.selectedIndex,A=this.firstKey,P=new kc(g-f,g+f,{includeEnd:!0}),H=(c=Array.from(P).find(X=>e.options.getItemKey(X)===this.selectedKey))!=null?c:this.selectedIndex;if(this.setSelectedIndex(H),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&g!==this.selectedIndex||!this.focusWithin&&this.firstKey!==A){let X=e.measurementsCache[this.selectedIndex].end-i[g].end;this.scrollRef.scrollTop+=X}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var e,i,l,c,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(c=(l=this.virtualizer)==null?void 0:l.getVirtualItems)==null?void 0:c.call(l))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var g,A,P,H;let{navItems:e,virtualizerProps:i,virtualizer:l}=this,c=(A=(g=i.rangeExtractor)==null?void 0:g.call(i,t))!=null?A:Rm(t);return this.hiddenIndexes.forEach(Q=>{let X=e.at(Q);X&&(X.removeAttribute("data-virtualized-hidden"),X.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(H=(P=this.virtualizer)==null?void 0:P.options.getItemKey(this.firstIndex))!=null?H:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var X;c.includes(Q)||(Q<t.startIndex&&Q>=0&&(c.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((X=l==null?void 0:l.options.count)!=null?X:0)&&(c.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),c.sort((Q,X)=>Q-X),c}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:l}=this;if(!l||i.count===0)return;let{measurementsCache:c}=l;this.hiddenIndexes.forEach(f=>{let g=e.at(f);if(g){let A=Math.max(t.startIndex-t.overscan,0),P=c[A],H=c[f];g.setAttribute("data-virtualized-hidden","true"),g.style.setProperty("--mdc-virtualizedlist-hidden-top",`${H.start-P.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){var i;if(e==="added"){let l=this.isElementSelected(t);if(t.tabIndex=l?0:-1,!l&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let c=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);c!==void 0&&this.setSelectedIndex(c)}this.setAriaSetSize(t)}else e==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,e){this.syncUI(),await this.updateComplete,this.requestUpdate(),!e&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(i=>i()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let e=t.target;this.atBottom==="re-evaluate"||e.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=e.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&e>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=e-i<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var i,l,c,f;switch(this.getActionForKeyEvent(t)){case Y.HOME:{(l=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||l.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case Y.END:{let g=this.virtualizerProps.count-1;(f=(c=this.virtualizer)==null?void 0:c.scrollToIndex)==null||f.call(c,g,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(g));break}case Y.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,e=!0){super.resetTabIndexes(t,e),this.setSelectedIndex(t)}findNextNavigableIndex(t,e){let{count:i}=this.virtualizerProps;for(let l=t;l>=0&&l<i;l+=e)if(this.isItemNavigable(l))return l;return null}resetTabIndexAndSetFocus(t,e,i=!0,l=i){if(this.navItems.find(g=>{var A;return((A=this.virtualizer)==null?void 0:A.indexFromElement(g))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let g=t>=e?1:-1,A=this.findNextNavigableIndex(t+g,g);return A!==null?this.resetTabIndexAndSetFocus(A,e,i,l):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,l),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,l);return this.setSelectedIndex(t),f}setAriaSetSize(t){var e,i;t.setAttribute("aria-setsize",`${(i=(e=this.virtualizer)==null?void 0:e.options.count)!=null?i:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=e-t-i),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,e){var i,l;(l=(i=this.virtualizer).scrollToIndex)==null||l.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var l;let t=this.virtualItems.find(({index:c})=>!this.hiddenIndexes.includes(c)),e=(l=t==null?void 0:t.start)!=null?l:0;window.getComputedStyle(this);let i=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(i=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${i+e}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return S`
7560
7560
  <slot name="list-header"></slot>
7561
7561
  <div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
7562
7562
  <div part="wrapper">
@@ -7770,7 +7770,7 @@
7770
7770
  </mdc-popover>
7771
7771
  </div>
7772
7772
  ${this.renderHelperText()}
7773
- `}};ke.styles=[...jr.styles,...Qt.styles,...lE],h([u({type:String})],ke.prototype,"placeholder",2),h([u({type:String,reflect:!0})],ke.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],ke.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],ke.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],ke.prototype,"boundary",2),h([u({type:String,reflect:!0})],ke.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ke.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,converter:{toAttribute(t){return typeof t=="string"?t:null}}})],ke.prototype,"filter",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],ke.prototype,"backdropAppendTo",2),h([zt(`[role="${et.COMBOBOX}"]`)],ke.prototype,"visualCombobox",2),h([zt('[part="combobox-button"]')],ke.prototype,"dropDownButton",2),h([qt({selector:mc})],ke.prototype,"slottedListboxes",2),h([dt()],ke.prototype,"isOpen",2),h([dt()],ke.prototype,"filteredValue",2);var zm=ke;zm.register(aE);var bI=zm;var dE=(a,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(a[i],i);return e},cE=Ni(class extends ai{constructor(a){if(super(a),a.type!==gr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let i=[],l=[],c=0;for(let f of a)i[c]=e?e(f,c):c,l[c]=t(f,c),c++;return{values:l,keys:i}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,e]){var at;let i=Hf(a),{values:l,keys:c}=this.dt(o,t,e);if(!Array.isArray(i))return this.ut=c,l;let f=(at=this.ut)!=null?at:this.ut=[],g=[],A,F,H=0,Q=i.length-1,X=0,J=l.length-1;for(;H<=Q&&X<=J;)if(i[H]===null)H++;else if(i[Q]===null)Q--;else if(f[H]===c[X])g[X]=co(i[H],l[X]),H++,X++;else if(f[Q]===c[J])g[J]=co(i[Q],l[J]),Q--,J--;else if(f[H]===c[J])g[J]=co(i[H],l[J]),Hs(a,g[J+1],i[H]),H++,J--;else if(f[Q]===c[X])g[X]=co(i[Q],l[X]),Hs(a,i[H],i[Q]),Q--,X++;else if(A===void 0&&(A=dE(c,X,J),F=dE(f,H,Q)),A.has(f[H]))if(A.has(f[Q])){let nt=F.get(c[X]),ht=nt!==void 0?i[nt]:null;if(ht===null){let yt=Hs(a,i[H]);co(yt,l[X]),g[X]=yt}else g[X]=co(ht,l[X]),Hs(a,i[H],ht),i[nt]=null;X++}else Gl(i[Q]),Q--;else Gl(i[H]),H++;for(;X<=J;){let nt=Hs(a,g[J+1]);co(nt,l[X]),g[X++]=nt}for(;H<=Q;){let nt=i[H++];nt!==null&&Gl(nt)}return this.ut=c,Ul(a,g),$e}});var hE=z.constructTagName("slider"),yI={START:"start",END:"end",UNDEFINED:void 0},Lo={MIN:0,MAX:100,STEP:1,STATE:yI.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var EI=B`
7773
+ `}};ke.styles=[...jr.styles,...Qt.styles,...lE],h([u({type:String})],ke.prototype,"placeholder",2),h([u({type:String,reflect:!0})],ke.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],ke.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],ke.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],ke.prototype,"boundary",2),h([u({type:String,reflect:!0})],ke.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ke.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,converter:{toAttribute(t){return typeof t=="string"?t:null}}})],ke.prototype,"filter",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],ke.prototype,"backdropAppendTo",2),h([zt(`[role="${et.COMBOBOX}"]`)],ke.prototype,"visualCombobox",2),h([zt('[part="combobox-button"]')],ke.prototype,"dropDownButton",2),h([qt({selector:mc})],ke.prototype,"slottedListboxes",2),h([dt()],ke.prototype,"isOpen",2),h([dt()],ke.prototype,"filteredValue",2);var zm=ke;zm.register(aE);var bI=zm;var dE=(a,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(a[i],i);return e},cE=Ni(class extends ai{constructor(a){if(super(a),a.type!==gr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let i=[],l=[],c=0;for(let f of a)i[c]=e?e(f,c):c,l[c]=t(f,c),c++;return{values:l,keys:i}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,e]){var at;let i=Hf(a),{values:l,keys:c}=this.dt(o,t,e);if(!Array.isArray(i))return this.ut=c,l;let f=(at=this.ut)!=null?at:this.ut=[],g=[],A,P,H=0,Q=i.length-1,X=0,J=l.length-1;for(;H<=Q&&X<=J;)if(i[H]===null)H++;else if(i[Q]===null)Q--;else if(f[H]===c[X])g[X]=co(i[H],l[X]),H++,X++;else if(f[Q]===c[J])g[J]=co(i[Q],l[J]),Q--,J--;else if(f[H]===c[J])g[J]=co(i[H],l[J]),Hs(a,g[J+1],i[H]),H++,J--;else if(f[Q]===c[X])g[X]=co(i[Q],l[X]),Hs(a,i[H],i[Q]),Q--,X++;else if(A===void 0&&(A=dE(c,X,J),P=dE(f,H,Q)),A.has(f[H]))if(A.has(f[Q])){let nt=P.get(c[X]),ht=nt!==void 0?i[nt]:null;if(ht===null){let yt=Hs(a,i[H]);co(yt,l[X]),g[X]=yt}else g[X]=co(ht,l[X]),Hs(a,i[H],ht),i[nt]=null;X++}else Gl(i[Q]),Q--;else Gl(i[H]),H++;for(;X<=J;){let nt=Hs(a,g[J+1]);co(nt,l[X]),g[X++]=nt}for(;H<=Q;){let nt=i[H++];nt!==null&&Gl(nt)}return this.ut=c,Ul(a,g),$e}});var hE=z.constructTagName("slider"),yI={START:"start",END:"end",UNDEFINED:void 0},Lo={MIN:0,MAX:100,STEP:1,STATE:yI.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var EI=B`
7774
7774
  :host {
7775
7775
  width: 100%;
7776
7776
  --mdc-slider-tooltip-left: 0;
@@ -8009,7 +8009,7 @@
8009
8009
  ${e} 100%
8010
8010
  )`}else{if(!this.inputElements[0])return;let i=Number(this.inputElements[0].value),l=Number(this.inputElements[0].max)||1,c=Math.max(0,Math.min(100,(i-this.min)/(l-this.min)*100));this.inputElements[0].style.background=`linear-gradient(to right, ${t} ${c}%, ${e} ${c}%)`}}onInput(t){let e=t.target;this.handleInput(e)}onChange(t){let e=t.target;this.value=Number(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value}}))}onChangeStart(t){let e=t.target;this.valueStart=Number(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueStart:this.valueStart,valueEnd:this.valueEnd}}))}onChangeEnd(t){let e=t.target;this.valueEnd=Number(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueEnd:this.valueEnd,valueStart:this.valueStart}}))}getTickStyles(t){if(this.max===this.min)return"";let e=(t-this.min)/(this.max-this.min),i=[];if(this.inputElements[0]){let c=(Number(this.inputElements[0].value)-this.min)/(this.max-this.min);i.push(c)}if(this.range&&this.inputElements[1]){let c=(Number(this.inputElements[1].value)-this.min)/(this.max-this.min);i.push(c)}return i.includes(e)?"display:none;":`--mdc-slider-tick-left:${e};`}renderTicks(){let t=[];if(this.step&&this.step>1)for(let e=this.min;e<=this.max;e+=this.step)t.push(e);return this.step>1?S` <div part="slider-ticks">
8011
8011
  ${cE(t,e=>e,e=>S`<span part="slider-tick" style=${this.getTickStyles(e)}></span>`)}
8012
- </div>`:W}render(){var t,e,i,l,c,f,g,A,F,H,Q,X,J,at,nt,ht,yt;return S`
8012
+ </div>`:W}render(){var t,e,i,l,c,f,g,A,P,H,Q,X,J,at,nt,ht,yt;return S`
8013
8013
  ${this.label?S`<label part="slider-label" for="single-slider">${this.label}</label>`:null}
8014
8014
  <div part="slider-track">
8015
8015
  ${this.iconTemplate(this.leadingIcon,"leading-icon")}
@@ -8073,7 +8073,7 @@
8073
8073
  type="range"
8074
8074
  min="${this.min}"
8075
8075
  max="${this.max}"
8076
- step="${(F=this.step)!=null?F:1}"
8076
+ step="${(P=this.step)!=null?P:1}"
8077
8077
  .value="${String((H=this.value)!=null?H:this.min)}"
8078
8078
  ?disabled="${this.disabled}"
8079
8079
  name="${(Q=this.name)!=null?Q:""}"