@momentum-design/components 0.139.5 → 0.139.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +179 -161
- package/dist/browser/index.js.map +3 -3
- package/dist/components/calendar/calendar.component.d.ts +15 -2
- package/dist/components/calendar/calendar.component.js +81 -14
- package/dist/components/calendar/calendar.styles.js +10 -0
- package/dist/components/calendar/index.d.ts +1 -0
- package/dist/components/calendar/index.js +1 -0
- package/dist/components/datepicker/datepicker.component.d.ts +7 -0
- package/dist/components/datepicker/datepicker.component.js +35 -10
- package/dist/custom-elements.json +122 -15
- package/dist/react/calendar/index.d.ts +3 -0
- package/dist/react/calendar/index.js +3 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var KT=Object.create;var sh=Object.defineProperty;var ef=Object.getOwnPropertyDescriptor;var WT=Object.getOwnPropertyNames;var YT=Object.getPrototypeOf,jT=Object.prototype.hasOwnProperty;var qT=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var XT=(n,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of WT(o))!jT.call(n,i)&&i!==t&&sh(n,i,{get:()=>o[i],enumerable:!(e=ef(o,i))||e.enumerable});return n};var ZT=(n,o,t)=>(t=n!=null?KT(YT(n)):{},XT(o||!n||!n.__esModule?sh(t,"default",{value:n,enumerable:!0}):t,n));var h=(n,o,t,e)=>{for(var i=e>1?void 0:e?ef(o,t):o,a=n.length-1,d;a>=0;a--)(d=n[a])&&(i=(e?d(o,t,i):d(i))||i);return e&&i&&sh(o,t,i),i};var pv=qT((gn,id)=>{typeof navigator<"u"&&function(n,o){typeof gn=="object"&&typeof id<"u"?id.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(gn,function(){"use strict";var n="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},a=function(){return t},d=function(s){o=s},f=function(){return o};function v(r){return document.createElement(r)}function x(r,s){var l,c=r.length,m;for(l=0;l<c;l+=1){m=r[l].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function R(r,s){return Object.getOwnPropertyDescriptor(r,s)}function H(r){function s(){}return s.prototype=r,s}var J=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(l){this.audios.push(l)},pause:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].pause()},resume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].resume()},setRate:function(l){var c,m=this.audios.length;for(c=0;c<m;c+=1)this.audios[c].setRate(l)},createAudio:function(l){return this.audioFactory?this.audioFactory(l):window.Howl?new window.Howl({src:[l]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(l){this.audioFactory=l},setVolume:function(l){this._volume=l,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),W=function(){function r(l,c){var m=0,p=[],b;switch(l){case"int16":case"uint8c":b=1;break;default:b=1.1;break}for(m=0;m<c;m+=1)p.push(b);return p}function s(l,c){return l==="float32"?new Float32Array(c):l==="int16"?new Int16Array(c):l==="uint8c"?new Uint8ClampedArray(c):r(l,c)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function Z(r){return Array.apply(null,{length:r})}function ot(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ot=function(l){return typeof l}:ot=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},ot(r)}var st=!0,ht=null,bt=null,yt="",It=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Gt=Math.pow,Pt=Math.sqrt,ne=Math.floor,Ge=Math.max,jt=Math.min,Ee={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,l=r.length;for(s=0;s<l;s+=1)Ee[r[s]]=Math[r[s]]})();function Te(){return{}}Ee.random=Math.random,Ee.abs=function(r){var s=ot(r);if(s==="object"&&r.length){var l=Z(r.length),c,m=r.length;for(c=0;c<m;c+=1)l[c]=Math.abs(r[c]);return l}return Math.abs(r)};var xe=150,kt=Math.PI/180,se=.5519;function Ke(r){Rt=!!r}function Je(r){return Rt?Math.round(r):r}function tr(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 Sr(r,s,l,c){this.type=r,this.currentTime=s,this.totalTime=l,this.direction=c<0?-1:1}function ll(r,s){this.type=r,this.direction=s<0?-1:1}function lu(r,s,l,c){this.type=r,this.currentLoop=l,this.totalLoops=s,this.direction=c<0?-1:1}function du(r,s,l){this.type=r,this.firstFrame=s,this.totalFrames=l}function cu(r,s){this.type=r,this.target=s}function KE(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function WE(r){this.type="configError",this.nativeError=r}function sC(r,s){this.type=r,this.nativeError=s}var er=function(){var r=0;return function(){return r+=1,yt+"__lottie_element_"+r}}();function Wc(r,s,l){var c,m,p,b,I,y,k,M;switch(b=Math.floor(r*6),I=r*6-b,y=l*(1-s),k=l*(1-I*s),M=l*(1-(1-I)*s),b%6){case 0:c=l,m=M,p=y;break;case 1:c=k,m=l,p=y;break;case 2:c=y,m=l,p=M;break;case 3:c=y,m=k,p=l;break;case 4:c=M,m=y,p=l;break;case 5:c=l,m=y,p=k;break;default:break}return[c,m,p]}function Yc(r,s,l){var c=Math.max(r,s,l),m=Math.min(r,s,l),p=c-m,b,I=c===0?0:p/c,y=c/255;switch(c){case m:b=0;break;case r:b=s-l+p*(s<l?6:0),b/=6*p;break;case s:b=l-r+p*2,b/=6*p;break;case l:b=r-s+p*4,b/=6*p;break;default:break}return[b,I,y]}function hu(r,s){var l=Yc(r[0]*255,r[1]*255,r[2]*255);return l[1]+=s,l[1]>1?l[1]=1:l[1]<=0&&(l[1]=0),Wc(l[0],l[1],l[2])}function pu(r,s){var l=Yc(r[0]*255,r[1]*255,r[2]*255);return l[2]+=s,l[2]>1?l[2]=1:l[2]<0&&(l[2]=0),Wc(l[0],l[1],l[2])}function mu(r,s){var l=Yc(r[0]*255,r[1]*255,r[2]*255);return l[0]+=s/360,l[0]>1?l[0]-=1:l[0]<0&&(l[0]+=1),Wc(l[0],l[1],l[2])}var aC=function(){var r=[],s,l;for(s=0;s<256;s+=1)l=s.toString(16),r[s]=l.length===1?"0"+l:l;return function(c,m,p){return c<0&&(c=0),m<0&&(m=0),p<0&&(p=0),"#"+r[c]+r[m]+r[p]}}(),YE=function(s){st=!!s},jE=function(){return st},qE=function(s){ht=s},dl=function(){return ht},nC=function(s){bt=s},uu=function(){return bt},cl=function(s){xe=s},Ra=function(){return xe},XE=function(s){yt=s},lC=function(){return yt};function Ct(r){return document.createElementNS(n,r)}function hl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hl=function(l){return typeof l}:hl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},hl(r)}var Da=function(){var r=1,s=[],l,c,m={onmessage:function(){},postMessage:function(O){l({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function b(A){if(window.Worker&&window.Blob&&a()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",A.toString()],{type:"text/javascript"}),F=URL.createObjectURL(O);return new Worker(F)}return l=A,m}function I(){c||(c=b(function(O){function F(){function G(rt,_){var P,g,E=rt.length,q,B,ct,gt;for(g=0;g<E;g+=1)if(P=rt[g],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var St=P.masksProperties;for(B=St.length,q=0;q<B;q+=1)if(St[q].pt.k.i)N(St[q].pt.k);else for(gt=St[q].pt.k.length,ct=0;ct<gt;ct+=1)St[q].pt.k[ct].s&&N(St[q].pt.k[ct].s[0]),St[q].pt.k[ct].e&&N(St[q].pt.k[ct].e[0])}P.ty===0?(P.layers=T(P.refId,_),G(P.layers,_)):P.ty===4?C(P.shapes):P.ty===5&&_t(P)}}function L(rt,_){if(rt){var P=0,g=rt.length;for(P=0;P<g;P+=1)rt[P].t===1&&(rt[P].data.layers=T(rt[P].data.refId,_),G(rt[P].data.layers,_))}}function w(rt,_){for(var P=0,g=_.length;P<g;){if(_[P].id===rt)return _[P];P+=1}return null}function T(rt,_){var P=w(rt,_);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function C(rt){var _,P=rt.length,g,E;for(_=P-1;_>=0;_-=1)if(rt[_].ty==="sh")if(rt[_].ks.k.i)N(rt[_].ks.k);else for(E=rt[_].ks.k.length,g=0;g<E;g+=1)rt[_].ks.k[g].s&&N(rt[_].ks.k[g].s[0]),rt[_].ks.k[g].e&&N(rt[_].ks.k[g].e[0]);else rt[_].ty==="gr"&&C(rt[_].it)}function N(rt){var _,P=rt.i.length;for(_=0;_<P;_+=1)rt.i[_][0]+=rt.v[_][0],rt.i[_][1]+=rt.v[_][1],rt.o[_][0]+=rt.v[_][0],rt.o[_][1]+=rt.v[_][1]}function $(rt,_){var P=_?_.split("."):[100,100,100];return rt[0]>P[0]?!0:P[0]>rt[0]?!1:rt[1]>P[1]?!0:P[1]>rt[1]?!1:rt[2]>P[2]?!0:P[2]>rt[2]?!1:null}var Y=function(){var rt=[4,4,14];function _(g){var E=g.t.d;g.t.d={k:[{s:E,t:0}]}}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===5&&_(g[E])}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),X=function(){var rt=[4,7,99];return function(_){if(_.chars&&!$(rt,_.v)){var P,g=_.chars.length;for(P=0;P<g;P+=1){var E=_.chars[P];E.data&&E.data.shapes&&(C(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[P].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function _(g){var E=g.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===5&&_(g[E])}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),At=function(){var rt=[4,1,9];function _(g){var E,q=g.length,B,ct;for(E=0;E<q;E+=1)if(g[E].ty==="gr")_(g[E].it);else if(g[E].ty==="fl"||g[E].ty==="st")if(g[E].c.k&&g[E].c.k[0].i)for(ct=g[E].c.k.length,B=0;B<ct;B+=1)g[E].c.k[B].s&&(g[E].c.k[B].s[0]/=255,g[E].c.k[B].s[1]/=255,g[E].c.k[B].s[2]/=255,g[E].c.k[B].s[3]/=255),g[E].c.k[B].e&&(g[E].c.k[B].e[0]/=255,g[E].c.k[B].e[1]/=255,g[E].c.k[B].e[2]/=255,g[E].c.k[B].e[3]/=255);else g[E].c.k[0]/=255,g[E].c.k[1]/=255,g[E].c.k[2]/=255,g[E].c.k[3]/=255}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===4&&_(g[E].shapes)}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),ft=function(){var rt=[4,4,18];function _(g){var E,q=g.length,B,ct;for(E=q-1;E>=0;E-=1)if(g[E].ty==="sh")if(g[E].ks.k.i)g[E].ks.k.c=g[E].closed;else for(ct=g[E].ks.k.length,B=0;B<ct;B+=1)g[E].ks.k[B].s&&(g[E].ks.k[B].s[0].c=g[E].closed),g[E].ks.k[B].e&&(g[E].ks.k[B].e[0].c=g[E].closed);else g[E].ty==="gr"&&_(g[E].it)}function P(g){var E,q,B=g.length,ct,gt,St,$t;for(q=0;q<B;q+=1){if(E=g[q],E.hasMask){var Vt=E.masksProperties;for(gt=Vt.length,ct=0;ct<gt;ct+=1)if(Vt[ct].pt.k.i)Vt[ct].pt.k.c=Vt[ct].cl;else for($t=Vt[ct].pt.k.length,St=0;St<$t;St+=1)Vt[ct].pt.k[St].s&&(Vt[ct].pt.k[St].s[0].c=Vt[ct].cl),Vt[ct].pt.k[St].e&&(Vt[ct].pt.k[St].e[0].c=Vt[ct].cl)}E.ty===4&&_(E.shapes)}}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}();function nt(rt){rt.__complete||(At(rt),Y(rt),X(rt),it(rt),ft(rt),G(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function _t(rt){rt.t.a.length===0&&"m"in rt.t.p}var mt={};return mt.completeData=nt,mt.checkColors=At,mt.checkChars=X,mt.checkPathProperties=it,mt.checkShapes=ft,mt.completeLayers=G,mt}if(p.dataManager||(p.dataManager=F()),p.assetLoader||(p.assetLoader=function(){function G(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&hl(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 $,Y=new XMLHttpRequest;try{Y.responseType="json"}catch{}Y.onreadystatechange=function(){if(Y.readyState===4)if(Y.status===200)$=G(Y),C($);else try{$=G(Y),C($)}catch(X){N&&N(X)}};try{Y.open(["G","E","T"].join(""),w,!0)}catch{Y.open(["G","E","T"].join(""),T+"/"+w,!0)}Y.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(G){p.dataManager.completeData(G),p.postMessage({id:O.data.id,payload:G,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var D=O.data.animation;p.dataManager.completeData(D),p.postMessage({id:O.data.id,payload:D,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(G){p.postMessage({id:O.data.id,payload:G,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),c.onmessage=function(A){var O=A.data,F=O.id,D=s[F];s[F]=null,O.status==="success"?D.onComplete(O.payload):D.onError&&D.onError()})}function y(A,O){r+=1;var F="processId_"+r;return s[F]={onComplete:A,onError:O},F}function k(A,O,F){I();var D=y(O,F);c.postMessage({type:"loadAnimation",path:A,fullPath:window.location.origin+window.location.pathname,id:D})}function M(A,O,F){I();var D=y(O,F);c.postMessage({type:"loadData",path:A,fullPath:window.location.origin+window.location.pathname,id:D})}function j(A,O,F){I();var D=y(O,F);c.postMessage({type:"complete",animation:A,id:D})}return{loadAnimation:k,loadData:M,completeAnimation:j}}(),ZE=function(){var r=function(){var L=v("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function c(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=c(L,this.assetsPath,this.path),T=Ct("image");It?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function b(L){var w=c(L,this.assetsPath,this.path),T=v("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=c(L,this.assetsPath,this.path);return Da.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 j(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 A(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function F(){return this.totalFootages===this.loadedFootagesCount}function D(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function G(){this._imageLoaded=s.bind(this),this._footageLoaded=l.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return G.prototype={loadAssets:y,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:F,destroy:A,getAsset:j,createImgData:b,createImageData:p,imageLoaded:s,footageLoaded:l,setCacheType:D},G}();function fu(){}fu.prototype={triggerEvent:function(s,l){if(this._cbs[s])for(var c=this._cbs[s],m=0;m<c.length;m+=1)c[m](l)},addEventListener:function(s,l){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(l),(function(){this.removeEventListener(s,l)}).bind(this)},removeEventListener:function(s,l){if(!l)this._cbs[s]=null;else if(this._cbs[s]){for(var c=0,m=this._cbs[s].length;c<m;)this._cbs[s][c]===l&&(this._cbs[s].splice(c,1),c-=1,m-=1),c+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var QE=function(){function r(s){for(var l=s.split(`\r
|
|
2
|
-
`),c={},m,p=0,b=0;b<l.length;b+=1)m=l[b].split(":"),m.length===2&&(c[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return c}return function(s){for(var l=[],c=0;c<s.length;c+=1){var m=s[c],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[c].cm)}catch{try{p.payload=r(s[c].cm)}catch{p.payload={name:s[c].cm}}}l.push(p)}return l}}(),JE=function(){function r(s){this.compositions.push(s)}return function(){function s(l){for(var c=0,m=this.compositions.length;c<m;){if(this.compositions[c].data&&this.compositions[c].data.nm===l)return this.compositions[c].prepareFrame&&this.compositions[c].data.xt&&this.compositions[c].prepareFrame(this.currentFrame),this.compositions[c].compInterface;c+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),Pa={},tT=function(s,l){Pa[s]=l};function eT(r){return Pa[r]}function rT(){if(Pa.canvas)return"canvas";for(var r in Pa)if(Pa[r])return r;return""}function Fa(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fa=function(l){return typeof l}:Fa=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Fa(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=er(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=jE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=JE(),this.imagePreloader=new ZE,this.audioController=J(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Sr("drawnFrame",0,0,0),this.expressionsPlugin=dl()};x([fu],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var l=eT(s);this.renderer=new l(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Da.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Da.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Fa(s)!=="object"&&(s=JSON.parse(s));var l={wrapper:r,animationData:s},c=r.attributes;l.path=c.getNamedItem("data-animation-path")?c.getNamedItem("data-animation-path").value:c.getNamedItem("data-bm-path")?c.getNamedItem("data-bm-path").value:c.getNamedItem("bm-path")?c.getNamedItem("bm-path").value:"",l.animType=c.getNamedItem("data-anim-type")?c.getNamedItem("data-anim-type").value:c.getNamedItem("data-bm-type")?c.getNamedItem("data-bm-type").value:c.getNamedItem("bm-type")?c.getNamedItem("bm-type").value:c.getNamedItem("data-bm-renderer")?c.getNamedItem("data-bm-renderer").value:c.getNamedItem("bm-renderer")?c.getNamedItem("bm-renderer").value:rT()||"canvas";var m=c.getNamedItem("data-anim-loop")?c.getNamedItem("data-anim-loop").value:c.getNamedItem("data-bm-loop")?c.getNamedItem("data-bm-loop").value:c.getNamedItem("bm-loop")?c.getNamedItem("bm-loop").value:"";m==="false"?l.loop=!1:m==="true"?l.loop=!0:m!==""&&(l.loop=parseInt(m,10));var p=c.getNamedItem("data-anim-autoplay")?c.getNamedItem("data-anim-autoplay").value:c.getNamedItem("data-bm-autoplay")?c.getNamedItem("data-bm-autoplay").value:c.getNamedItem("bm-autoplay")?c.getNamedItem("bm-autoplay").value:!0;l.autoplay=p!=="false",l.name=c.getNamedItem("data-name")?c.getNamedItem("data-name").value:c.getNamedItem("data-bm-name")?c.getNamedItem("data-bm-name").value:c.getNamedItem("bm-name")?c.getNamedItem("bm-name").value:"";var b=c.getNamedItem("data-anim-prerender")?c.getNamedItem("data-anim-prerender").value:c.getNamedItem("data-bm-prerender")?c.getNamedItem("data-bm-prerender").value:c.getNamedItem("bm-prerender")?c.getNamedItem("bm-prerender").value:"";b==="false"&&(l.prerender=!1),l.path?this.setParams(l):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,l,c=s.length,m=r.layers,p,b=m.length;for(p=0;p<b;p+=1)for(l=0;l<c;){if(s[l].id===m[p].id){s[l]=m[p];break}l+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(c=r.assets.length,l=0;l<c;l+=1)this.animationData.assets.push(r.assets[l]);this.animationData.__complete=!1,Da.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=dl();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var l=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Da.loadData(l,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=QE(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=dl();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var l=typeof r=="number"?r:void 0,c=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(l,c)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,l=0;l<this.markers.length;l+=1)if(s=this.markers[l],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){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(c,s,l);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,l=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(l=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(l=!0,s=0)):this.setCurrentRawFrameValue(s),l&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var l=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?l=r:this.currentRawFrame+this.firstFrame>s&&(l=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,l!==-1&&this.goToAndStop(l,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Fa(r[0])==="object"){var l,c=r.length;for(l=0;l<c;l+=1)this.segments.push(r[l])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var l=r.p;l.indexOf("images/")!==-1&&(l=l.split("/")[1]),s=this.assetsPath+l}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,l=this.assets.length;s<l;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,l){try{var c=this.renderer.getElementByPath(r);c.updateDocumentData(s,l)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new Sr(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 lu(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new ll(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new du(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new cu(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Sr(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new lu(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new ll(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new du(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new cu(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new KE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new WE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var ue=function(){var r={},s=[],l=0,c=0,m=0,p=!0,b=!1;function I(_){for(var P=0,g=_.target;P<c;)s[P].animation===g&&(s.splice(P,1),P-=1,c-=1,g.isPaused||j()),P+=1}function y(_,P){if(!_)return null;for(var g=0;g<c;){if(s[g].elem===_&&s[g].elem!==null)return s[g].animation;g+=1}var E=new vt;return A(E,_),E.setData(_,P),E}function k(){var _,P=s.length,g=[];for(_=0;_<P;_+=1)g.push(s[_].animation);return g}function M(){m+=1,At()}function j(){m-=1}function A(_,P){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",j),s.push({elem:P,animation:_}),c+=1}function O(_){var P=new vt;return A(P,null),P.setParams(_),P}function F(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setSpeed(_,P)}function D(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setDirection(_,P)}function G(_){var P;for(P=0;P<c;P+=1)s[P].animation.play(_)}function L(_){var P=_-l,g;for(g=0;g<c;g+=1)s[g].animation.advanceTime(P);l=_,m&&!b?window.requestAnimationFrame(L):p=!0}function w(_){l=_,window.requestAnimationFrame(L)}function T(_){var P;for(P=0;P<c;P+=1)s[P].animation.pause(_)}function C(_,P,g){var E;for(E=0;E<c;E+=1)s[E].animation.goToAndStop(_,P,g)}function N(_){var P;for(P=0;P<c;P+=1)s[P].animation.stop(_)}function $(_){var P;for(P=0;P<c;P+=1)s[P].animation.togglePause(_)}function Y(_){var P;for(P=c-1;P>=0;P-=1)s[P].animation.destroy(_)}function X(_,P,g){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),q,B=E.length;for(q=0;q<B;q+=1)g&&E[q].setAttribute("data-bm-type",g),y(E[q],_);if(P&&B===0){g||(g="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=v("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",g),ct.appendChild(gt),y(gt,_)}}function it(){var _;for(_=0;_<c;_+=1)s[_].animation.resize()}function At(){!b&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ft(){b=!0}function nt(){b=!1,At()}function _t(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setVolume(_,P)}function mt(_){var P;for(P=0;P<c;P+=1)s[P].animation.mute(_)}function rt(_){var P;for(P=0;P<c;P+=1)s[P].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=F,r.setDirection=D,r.play=G,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=X,r.resize=it,r.goToAndStop=C,r.destroy=Y,r.freeze=ft,r.unfreeze=nt,r.setVolume=_t,r.mute=mt,r.unmute=rt,r.getRegisteredAnimations=k,r}(),$a=function(){var r={};r.getBezierEasing=l;var s={};function l(w,T,C,N,$){var Y=$||("bez_"+w+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[Y])return s[Y];var X=new L([w,T,C,N]);return s[Y]=X,X}var c=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 j(w,T){return 3*T-6*w}function A(w){return 3*w}function O(w,T,C){return((M(T,C)*w+j(T,C))*w+A(T))*w}function F(w,T,C){return 3*M(T,C)*w*w+2*j(T,C)*w+A(T)}function D(w,T,C,N,$){var Y,X,it=0;do X=T+(C-T)/2,Y=O(X,N,$)-w,Y>0?C=X:T=X;while(Math.abs(Y)>p&&++it<b);return X}function G(w,T,C,N){for(var $=0;$<c;++$){var Y=F(T,C,N);if(Y===0)return T;var X=O(T,C,N)-w;T-=X/Y}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],Y=this._p[3];return this._precomputed||this._precompute(),C===N&&$===Y?T:T===0?0:T===1?1:O(this._getTForX(T),N,Y)},_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,Y=0,X=1,it=I-1;X!==it&&$[X]<=T;++X)Y+=y;--X;var At=(T-$[X])/($[X+1]-$[X]),ft=Y+At*y,nt=F(ft,C,N);return nt>=m?G(T,ft,C,N):nt===0?ft:D(T,Y,Y+y,C,N)}},r}(),vu=function(){function r(s){return s.concat(Z(s.length))}return{double:r}}(),pl=function(){return function(r,s,l){var c=0,m=r,p=Z(m),b={newElement:I,release:y};function I(){var k;return c?(c-=1,k=p[c]):k=s(),k}function y(k){c===m&&(p=vu.double(p),m*=2),l&&l(k),p[c]=k,c+=1}return b}}(),gu=function(){function r(){return{addedLength:0,percents:W("float32",Ra()),lengths:W("float32",Ra())}}return pl(8,r)}(),bu=function(){function r(){return{lengths:[],totalLength:0}}function s(l){var c,m=l.lengths.length;for(c=0;c<m;c+=1)gu.release(l.lengths[c]);l.lengths.length=0}return pl(8,r,s)}();function iT(){var r=Math;function s(A,O,F,D,G,L){var w=A*D+O*G+F*L-G*D-L*A-F*O;return w>-.001&&w<.001}function l(A,O,F,D,G,L,w,T,C){if(F===0&&L===0&&C===0)return s(A,O,D,G,w,T);var N=r.sqrt(r.pow(D-A,2)+r.pow(G-O,2)+r.pow(L-F,2)),$=r.sqrt(r.pow(w-A,2)+r.pow(T-O,2)+r.pow(C-F,2)),Y=r.sqrt(r.pow(w-D,2)+r.pow(T-G,2)+r.pow(C-L,2)),X;return N>$?N>Y?X=N-$-Y:X=Y-$-N:Y>$?X=Y-$-N:X=$-N-Y,X>-1e-4&&X<1e-4}var c=function(){return function(A,O,F,D){var G=Ra(),L,w,T,C,N,$=0,Y,X=[],it=[],At=gu.newElement();for(T=F.length,L=0;L<G;L+=1){for(N=L/(G-1),Y=0,w=0;w<T;w+=1)C=Gt(1-N,3)*A[w]+3*Gt(1-N,2)*N*F[w]+3*(1-N)*Gt(N,2)*D[w]+Gt(N,3)*O[w],X[w]=C,it[w]!==null&&(Y+=Gt(X[w]-it[w],2)),it[w]=X[w];Y&&(Y=Pt(Y),$+=Y),At.percents[L]=N,At.lengths[L]=$}return At.addedLength=$,At}}();function m(A){var O=bu.newElement(),F=A.c,D=A.v,G=A.o,L=A.i,w,T=A._length,C=O.lengths,N=0;for(w=0;w<T-1;w+=1)C[w]=c(D[w],D[w+1],G[w],L[w+1]),N+=C[w].addedLength;return F&&T&&(C[w]=c(D[w],D[0],G[w],L[0]),N+=C[w].addedLength),O.totalLength=N,O}function p(A){this.segmentLength=0,this.points=new Array(A)}function b(A,O){this.partialLength=A,this.point=O}var I=function(){var A={};return function(O,F,D,G){var L=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+D[0]+"_"+D[1]+"_"+G[0]+"_"+G[1]).replace(/\./g,"p");if(!A[L]){var w=Ra(),T,C,N,$,Y,X=0,it,At,ft=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&s(O[0],O[1],F[0],F[1],O[0]+D[0],O[1]+D[1])&&s(O[0],O[1],F[0],F[1],F[0]+G[0],F[1]+G[1])&&(w=2);var nt=new p(w);for(N=D.length,T=0;T<w;T+=1){for(At=Z(N),Y=T/(w-1),it=0,C=0;C<N;C+=1)$=Gt(1-Y,3)*O[C]+3*Gt(1-Y,2)*Y*(O[C]+D[C])+3*(1-Y)*Gt(Y,2)*(F[C]+G[C])+Gt(Y,3)*F[C],At[C]=$,ft!==null&&(it+=Gt(At[C]-ft[C],2));it=Pt(it),X+=it,nt.points[T]=new b(it,At),ft=At}nt.segmentLength=X,A[L]=nt}return A[L]}}();function y(A,O){var F=O.percents,D=O.lengths,G=F.length,L=ne((G-1)*A),w=A*O.addedLength,T=0;if(L===G-1||L===0||w===D[L])return F[L];for(var C=D[L]>w?-1:1,N=!0;N;)if(D[L]<=w&&D[L+1]>w?(T=(w-D[L])/(D[L+1]-D[L]),N=!1):L+=C,L<0||L>=G-1){if(L===G-1)return F[L];N=!1}return F[L]+(F[L+1]-F[L])*T}function k(A,O,F,D,G,L){var w=y(G,L),T=1-w,C=r.round((T*T*T*A[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*D[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*A[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*D[1]+w*w*w*O[1])*1e3)/1e3;return[C,N]}var M=W("float32",8);function j(A,O,F,D,G,L,w){G<0?G=0:G>1&&(G=1);var T=y(G,w);L=L>1?1:L;var C=y(L,w),N,$=A.length,Y=1-T,X=1-C,it=Y*Y*Y,At=T*Y*Y*3,ft=T*T*Y*3,nt=T*T*T,_t=Y*Y*X,mt=T*Y*X+Y*T*X+Y*Y*C,rt=T*T*X+Y*T*C+T*Y*C,_=T*T*C,P=Y*X*X,g=T*X*X+Y*C*X+Y*X*C,E=T*C*X+Y*C*C+T*X*C,q=T*C*C,B=X*X*X,ct=C*X*X+X*C*X+X*X*C,gt=C*C*X+X*C*C+C*X*C,St=C*C*C;for(N=0;N<$;N+=1)M[N*4]=r.round((it*A[N]+At*F[N]+ft*D[N]+nt*O[N])*1e3)/1e3,M[N*4+1]=r.round((_t*A[N]+mt*F[N]+rt*D[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((P*A[N]+g*F[N]+E*D[N]+q*O[N])*1e3)/1e3,M[N*4+3]=r.round((B*A[N]+ct*F[N]+gt*D[N]+St*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:j,getPointInSegment:k,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:l}}var Qr=iT(),Fo=e,yu=Math.abs;function Eu(r,s){var l=this.offsetTime,c;this.propType==="multidimensional"&&(c=W("float32",this.pv.length));for(var m=s.lastIndex,p=m,b=this.keyframes.length-1,I=!0,y,k,M;I;){if(y=this.keyframes[p],k=this.keyframes[p+1],p===b-1&&r>=k.t-l){y.h&&(y=k),m=0;break}if(k.t-l>r){m=p;break}p<b-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var j,A,O,F,D,G,L=k.t-l,w=y.t-l,T;if(y.to){M.bezierData||(M.bezierData=Qr.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(A=C.points[N].point.length,j=0;j<A;j+=1)c[j]=C.points[N].point[j]}else{M.__fnct?G=M.__fnct:(G=$a.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=G),O=G((r-w)/(L-w));var $=C.segmentLength*O,Y,X=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(D=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,F=C.points.length;I;){if(X+=C.points[D].partialLength,$===0||O===0||D===C.points.length-1){for(A=C.points[D].point.length,j=0;j<A;j+=1)c[j]=C.points[D].point[j];break}else if($>=X&&$<X+C.points[D+1].partialLength){for(Y=($-X)/C.points[D+1].partialLength,A=C.points[D].point.length,j=0;j<A;j+=1)c[j]=C.points[D].point[j]+(C.points[D+1].point[j]-C.points[D].point[j])*Y;break}D<F-1?D+=1:I=!1}s._lastPoint=D,s._lastAddedLength=X-C.points[D].partialLength,s._lastKeyframeIndex=p}}else{var it,At,ft,nt,_t;if(b=y.s.length,T=k.s||y.e,this.sh&&y.h!==1)if(r>=L)c[0]=T[0],c[1]=T[1],c[2]=T[2];else if(r<=w)c[0]=y.s[0],c[1]=y.s[1],c[2]=y.s[2];else{var mt=Tu(y.s),rt=Tu(T),_=(r-w)/(L-w);sT(c,oT(mt,rt,_))}else for(p=0;p<b;p+=1)y.h!==1&&(r>=L?O=1:r<w?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?G=M.__fnct[p]:(it=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],At=y.o.y[p]===void 0?y.o.y[0]:y.o.y[p],ft=y.i.x[p]===void 0?y.i.x[0]:y.i.x[p],nt=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],G=$a.getBezierEasing(it,At,ft,nt).get,M.__fnct[p]=G)):M.__fnct?G=M.__fnct:(it=y.o.x,At=y.o.y,ft=y.i.x,nt=y.i.y,G=$a.getBezierEasing(it,At,ft,nt).get,y.keyframeMetadata=G),O=G((r-w)/(L-w)))),T=k.s||y.e,_t=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?c[p]=_t:c=_t}return s.lastIndex=m,c}function oT(r,s,l){var c=[],m=r[0],p=r[1],b=r[2],I=r[3],y=s[0],k=s[1],M=s[2],j=s[3],A,O,F,D,G;return O=m*y+p*k+b*M+I*j,O<0&&(O=-O,y=-y,k=-k,M=-M,j=-j),1-O>1e-6?(A=Math.acos(O),F=Math.sin(A),D=Math.sin((1-l)*A)/F,G=Math.sin(l*A)/F):(D=1-l,G=l),c[0]=D*m+G*y,c[1]=D*p+G*k,c[2]=D*b+G*M,c[3]=D*I+G*j,c}function sT(r,s){var l=s[0],c=s[1],m=s[2],p=s[3],b=Math.atan2(2*c*p-2*l*m,1-2*c*c-2*m*m),I=Math.asin(2*l*c+2*m*p),y=Math.atan2(2*l*p-2*c*m,1-2*l*l-2*m*m);r[0]=b/kt,r[1]=I/kt,r[2]=y/kt}function Tu(r){var s=r[0]*kt,l=r[1]*kt,c=r[2]*kt,m=Math.cos(s/2),p=Math.cos(l/2),b=Math.cos(c/2),I=Math.sin(s/2),y=Math.sin(l/2),k=Math.sin(c/2),M=m*p*b-I*y*k,j=I*y*b+m*p*k,A=I*p*b+m*y*k,O=m*y*b-I*p*k;return[j,A,O,M]}function xu(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,l=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Fo&&(this._caching.lastFrame>=l&&r>=l||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var c=this.interpolateValue(r,this._caching);this.pv=c}return this._caching.lastFrame=r,this.pv}function ml(r){var s;if(this.propType==="unidimensional")s=r*this.mult,yu(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var l=0,c=this.v.length;l<c;)s=r[l]*this.mult,yu(this.v[l]-s)>1e-5&&(this.v[l]=s,this._mdf=!0),l+=1}function ul(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,l=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)l=this.effectsSequence[r](l);this.setVValue(l),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function fl(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function aT(r,s,l,c){this.propType="unidimensional",this.mult=l||1,this.data=s,this.v=l?s.k*l:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=ul,this.setVValue=ml,this.addEffect=fl}function nT(r,s,l,c){this.propType="multidimensional",this.mult=l||1,this.data=s,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=W("float32",p),this.pv=W("float32",p),this.vel=W("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=ul,this.setVValue=ml,this.addEffect=fl}function lT(r,s,l,c){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Fo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.v=Fo,this.pv=Fo,this._isFirstFrame=!0,this.getValue=ul,this.setVValue=ml,this.interpolateValue=Eu,this.effectsSequence=[xu.bind(this)],this.addEffect=fl}function dT(r,s,l,c){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])&&Qr.pointOnLine2D(b[0],b[1],I[0],I[1],b[0]+y[0],b[1]+y[1])&&Qr.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])&&Qr.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])&&Qr.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=[xu.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.getValue=ul,this.setVValue=ml,this.interpolateValue=Eu,this.frameId=-1;var M=s.k[0].s.length;for(this.v=W("float32",M),this.pv=W("float32",M),m=0;m<M;m+=1)this.v[m]=Fo,this.pv[m]=Fo;this._caching={lastFrame:Fo,lastIndex:0,value:W("float32",M)},this.addEffect=fl}var lt=function(){function r(l,c,m,p,b){c.sid&&(c=l.globalData.slotManager.getProp(c));var I;if(!c.k.length)I=new aT(l,c,p,b);else if(typeof c.k[0]=="number")I=new nT(l,c,p,b);else switch(m){case 0:I=new lT(l,c,p,b);break;case 1:I=new dT(l,c,p,b);break;default:break}return I.effectsSequence.length&&b.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ne(){}Ne.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,l=this.dynamicProperties.length;for(s=0;s<l;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var $o=function(){function r(){return W("float32",2)}return pl(8,r)}();function Ai(){this.c=!1,this._length=0,this._maxLength=8,this.v=Z(this._maxLength),this.o=Z(this._maxLength),this.i=Z(this._maxLength)}Ai.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var l=0;l<s;)this.v[l]=$o.newElement(),this.o[l]=$o.newElement(),this.i[l]=$o.newElement(),l+=1},Ai.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},Ai.prototype.doubleArrayLength=function(){this.v=this.v.concat(Z(this._maxLength)),this.i=this.i.concat(Z(this._maxLength)),this.o=this.o.concat(Z(this._maxLength)),this._maxLength*=2},Ai.prototype.setXYAt=function(r,s,l,c,m){var p;switch(this._length=Math.max(this._length,c+1),this._length>=this._maxLength&&this.doubleArrayLength(),l){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[c]||p[c]&&!m)&&(p[c]=$o.newElement()),p[c][0]=r,p[c][1]=s},Ai.prototype.setTripleAt=function(r,s,l,c,m,p,b,I){this.setXYAt(r,s,"v",b,I),this.setXYAt(l,c,"o",b,I),this.setXYAt(m,p,"i",b,I)},Ai.prototype.reverse=function(){var r=new Ai;r.setPathData(this.c,this._length);var s=this.v,l=this.o,c=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],c[0][0],c[0][1],l[0][0],l[0][1],0,!1),m=1);var p=this._length-1,b=this._length,I;for(I=m;I<b;I+=1)r.setTripleAt(s[p][0],s[p][1],c[p][0],c[p][1],l[p][0],l[p][1],I,!1),p-=1;return r},Ai.prototype.length=function(){return this._length};var De=function(){function r(){return new Ai}function s(m){var p=m._length,b;for(b=0;b<p;b+=1)$o.release(m.v[b]),$o.release(m.i[b]),$o.release(m.o[b]),m.v[b]=null,m.i[b]=null,m.o[b]=null;m._length=0,m.c=!1}function l(m){var p=c.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 c=pl(4,r,s);return c.clone=l,c}();function jc(){this._length=0,this._maxLength=4,this.shapes=Z(this._maxLength)}jc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Z(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},jc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Ms=function(){var r={newShapeCollection:m,release:p},s=0,l=4,c=Z(l);function m(){var b;return s?(s-=1,b=c[s]):b=new jc,b}function p(b){var I,y=b._length;for(I=0;I<y;I+=1)De.release(b.shapes[I]);b._length=0,s===l&&(c=vu.double(c),l*=2),c[s]=b,s+=1}return r}(),vl=function(){var r=-999999;function s(L,w,T){var C=T.lastIndex,N,$,Y,X,it,At,ft,nt,_t,mt=this.keyframes;if(L<mt[0].t-this.offsetTime)N=mt[0].s[0],Y=!0,C=0;else if(L>=mt[mt.length-1].t-this.offsetTime)N=mt[mt.length-1].s?mt[mt.length-1].s[0]:mt[mt.length-2].e[0],Y=!0;else{for(var rt=C,_=mt.length-1,P=!0,g,E,q;P&&(g=mt[rt],E=mt[rt+1],!(E.t-this.offsetTime>L));)rt<_-1?rt+=1:P=!1;if(q=this.keyframesMetadata[rt]||{},Y=g.h===1,C=rt,!Y){if(L>=E.t-this.offsetTime)nt=1;else if(L<g.t-this.offsetTime)nt=0;else{var B;q.__fnct?B=q.__fnct:(B=$a.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y).get,q.__fnct=B),nt=B((L-(g.t-this.offsetTime))/(E.t-this.offsetTime-(g.t-this.offsetTime)))}$=E.s?E.s[0]:g.e[0]}N=g.s[0]}for(At=w._length,ft=N.i[0].length,T.lastIndex=C,X=0;X<At;X+=1)for(it=0;it<ft;it+=1)_t=Y?N.i[X][it]:N.i[X][it]+($.i[X][it]-N.i[X][it])*nt,w.i[X][it]=_t,_t=Y?N.o[X][it]:N.o[X][it]+($.o[X][it]-N.o[X][it])*nt,w.o[X][it]=_t,_t=Y?N.v[X][it]:N.v[X][it]+($.v[X][it]-N.v[X][it])*nt,w.v[X][it]=_t}function l(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<w&&L<w||C>T&&L>T)||(this._caching.lastIndex=C<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function c(){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=Ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=c,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=Ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=c,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[l.bind(this)]}k.prototype.getValue=b,k.prototype.interpolateShape=s,k.prototype.setVValue=p,k.prototype.addEffect=y;var M=function(){var L=se;function w(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ms.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:c,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,Y=this.s.v[1]/2,X=this.d!==3,it=this.v;it.v[0][0]=C,it.v[0][1]=N-Y,it.v[1][0]=X?C+$:C-$,it.v[1][1]=N,it.v[2][0]=C,it.v[2][1]=N+Y,it.v[3][0]=X?C-$:C+$,it.v[3][1]=N,it.i[0][0]=X?C-$*L:C+$*L,it.i[0][1]=N-Y,it.i[1][0]=X?C+$:C-$,it.i[1][1]=N-Y*L,it.i[2][0]=X?C+$*L:C-$*L,it.i[2][1]=N+Y,it.i[3][0]=X?C-$:C+$,it.i[3][1]=N+Y*L,it.o[0][0]=X?C+$*L:C-$*L,it.o[0][1]=N-Y,it.o[1][0]=X?C+$:C-$,it.o[1][1]=N+Y*L,it.o[2][0]=X?C-$*L:C+$*L,it.o[2][1]=N+Y,it.o[3][0]=X?C-$:C+$,it.o[3][1]=N-Y*L}},x([Ne],w),w}(),j=function(){function L(w,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=lt.getProp(w,T.ir,0,0,this),this.is=lt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(w,T.pt,0,0,this),this.p=lt.getProp(w,T.p,1,0,this),this.r=lt.getProp(w,T.r,0,kt,this),this.or=lt.getProp(w,T.or,0,0,this),this.os=lt.getProp(w,T.os,0,.01,this),this.localShapeCollection=Ms.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:c,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,Y=this.ir.v,X=this.os.v,it=this.is.v,At=2*Math.PI*$/(T*2),ft=2*Math.PI*Y/(T*2),nt,_t,mt,rt,_=-Math.PI/2;_+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,nt=0;nt<T;nt+=1){_t=N?$:Y,mt=N?X:it,rt=N?At:ft;var g=_t*Math.cos(_),E=_t*Math.sin(_),q=g===0&&E===0?0:E/Math.sqrt(g*g+E*E),B=g===0&&E===0?0:-g/Math.sqrt(g*g+E*E);g+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(g,E,g-q*rt*mt*P,E-B*rt*mt*P,g+q*rt*mt*P,E+B*rt*mt*P,nt,!0),N=!N,_+=C*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,$=this.os.v,Y=2*Math.PI*N/(T*4),X,it=-Math.PI*.5,At=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,X=0;X<T;X+=1){var ft=N*Math.cos(it),nt=N*Math.sin(it),_t=ft===0&&nt===0?0:nt/Math.sqrt(ft*ft+nt*nt),mt=ft===0&&nt===0?0:-ft/Math.sqrt(ft*ft+nt*nt);ft+=+this.p.v[0],nt+=+this.p.v[1],this.v.setTripleAt(ft,nt,ft-_t*Y*$*At,nt-mt*Y*$*At,ft+_t*Y*$*At,nt+mt*Y*$*At,X,!0),it+=C*At}this.paths.length=0,this.paths[0]=this.v}},x([Ne],L),L}(),A=function(){function L(w,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=Ms.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,Y=jt(N,$,this.r.v),X=Y*(1-se);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-$+Y,T+N,C-$+Y,T+N,C-$+X,0,!0),this.v.setTripleAt(T+N,C+$-Y,T+N,C+$-X,T+N,C+$-Y,1,!0),Y!==0?(this.v.setTripleAt(T+N-Y,C+$,T+N-Y,C+$,T+N-X,C+$,2,!0),this.v.setTripleAt(T-N+Y,C+$,T-N+X,C+$,T-N+Y,C+$,3,!0),this.v.setTripleAt(T-N,C+$-Y,T-N,C+$-Y,T-N,C+$-X,4,!0),this.v.setTripleAt(T-N,C-$+Y,T-N,C-$+X,T-N,C-$+Y,5,!0),this.v.setTripleAt(T-N+Y,C-$,T-N+Y,C-$,T-N+X,C-$,6,!0),this.v.setTripleAt(T+N-Y,C-$,T+N-X,C-$,T+N-Y,C-$,7,!0)):(this.v.setTripleAt(T-N,C+$,T-N+X,C+$,T-N,C+$,2),this.v.setTripleAt(T-N,C-$,T-N,C-$+X,T-N,C-$,3))):(this.v.setTripleAt(T+N,C-$+Y,T+N,C-$+X,T+N,C-$+Y,0,!0),Y!==0?(this.v.setTripleAt(T+N-Y,C-$,T+N-Y,C-$,T+N-X,C-$,1,!0),this.v.setTripleAt(T-N+Y,C-$,T-N+X,C-$,T-N+Y,C-$,2,!0),this.v.setTripleAt(T-N,C-$+Y,T-N,C-$+Y,T-N,C-$+X,3,!0),this.v.setTripleAt(T-N,C+$-Y,T-N,C+$-X,T-N,C+$-Y,4,!0),this.v.setTripleAt(T-N+Y,C+$,T-N+Y,C+$,T-N+X,C+$,5,!0),this.v.setTripleAt(T+N-Y,C+$,T+N-X,C+$,T+N-Y,C+$,6,!0),this.v.setTripleAt(T+N,C+$-Y,T+N,C+$-Y,T+N,C+$-X,7,!0)):(this.v.setTripleAt(T-N,C-$,T-N+X,C-$,T-N,C-$,1,!0),this.v.setTripleAt(T-N,C+$,T-N,C+$-X,T-N,C+$,2,!0),this.v.setTripleAt(T+N,C+$,T+N-X,C+$,T+N,C+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:c},x([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 A(L,w):T===6?C=new M(L,w):T===7&&(C=new j(L,w));return C.k&&L.addDynamicProperty(C),C}function F(){return I}function D(){return k}var G={};return G.getShapeProp=O,G.getConstructorFunction=F,G.getKeyframedConstructorFunction=D,G}();var Pe=function(){var r=Math.cos,s=Math.sin,l=Math.tan,c=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(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,-q,0,0,q,E,0,0,0,0,1,0,0,0,0,1)}function b(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(1,0,0,0,0,E,-q,0,0,q,E,0,0,0,0,1)}function I(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,0,q,0,0,1,0,0,-q,0,E,0,0,0,0,1)}function y(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,-q,0,0,q,E,0,0,0,0,1,0,0,0,0,1)}function k(g,E){return this._t(1,E,g,1,0,0)}function M(g,E){return this.shear(l(g),l(E))}function j(g,E){var q=r(E),B=s(E);return this._t(q,B,0,0,-B,q,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,l(g),1,0,0,0,0,1,0,0,0,0,1)._t(q,-B,0,0,B,q,0,0,0,0,1,0,0,0,0,1)}function A(g,E,q){return!q&&q!==0&&(q=1),g===1&&E===1&&q===1?this:this._t(g,0,0,0,0,E,0,0,0,0,q,0,0,0,0,1)}function O(g,E,q,B,ct,gt,St,$t,Vt,fe,ir,ti,or,Le,vr,Yt){return this.props[0]=g,this.props[1]=E,this.props[2]=q,this.props[3]=B,this.props[4]=ct,this.props[5]=gt,this.props[6]=St,this.props[7]=$t,this.props[8]=Vt,this.props[9]=fe,this.props[10]=ir,this.props[11]=ti,this.props[12]=or,this.props[13]=Le,this.props[14]=vr,this.props[15]=Yt,this}function F(g,E,q){return q=q||0,g!==0||E!==0||q!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,g,E,q,1):this}function D(g,E,q,B,ct,gt,St,$t,Vt,fe,ir,ti,or,Le,vr,Yt){var ut=this.props;if(g===1&&E===0&&q===0&&B===0&&ct===0&>===1&&St===0&&$t===0&&Vt===0&&fe===0&&ir===1&&ti===0)return ut[12]=ut[12]*g+ut[15]*or,ut[13]=ut[13]*gt+ut[15]*Le,ut[14]=ut[14]*ir+ut[15]*vr,ut[15]*=Yt,this._identityCalculated=!1,this;var Ci=ut[0],oo=ut[1],_i=ut[2],ei=ut[3],wi=ut[4],ki=ut[5],sr=ut[6],so=ut[7],ao=ut[8],Fr=ut[9],no=ut[10],$r=ut[11],Ho=ut[12],Il=ut[13],Cl=ut[14],_l=ut[15];return ut[0]=Ci*g+oo*ct+_i*Vt+ei*or,ut[1]=Ci*E+oo*gt+_i*fe+ei*Le,ut[2]=Ci*q+oo*St+_i*ir+ei*vr,ut[3]=Ci*B+oo*$t+_i*ti+ei*Yt,ut[4]=wi*g+ki*ct+sr*Vt+so*or,ut[5]=wi*E+ki*gt+sr*fe+so*Le,ut[6]=wi*q+ki*St+sr*ir+so*vr,ut[7]=wi*B+ki*$t+sr*ti+so*Yt,ut[8]=ao*g+Fr*ct+no*Vt+$r*or,ut[9]=ao*E+Fr*gt+no*fe+$r*Le,ut[10]=ao*q+Fr*St+no*ir+$r*vr,ut[11]=ao*B+Fr*$t+no*ti+$r*Yt,ut[12]=Ho*g+Il*ct+Cl*Vt+_l*or,ut[13]=Ho*E+Il*gt+Cl*fe+_l*Le,ut[14]=Ho*q+Il*St+Cl*ir+_l*vr,ut[15]=Ho*B+Il*$t+Cl*ti+_l*Yt,this._identityCalculated=!1,this}function G(g){var E=g.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(g){for(var E=0;E<16;){if(g.props[E]!==this.props[E])return!1;E+=1}return!0}function T(g){var E;for(E=0;E<16;E+=1)g.props[E]=this.props[E];return g}function C(g){var E;for(E=0;E<16;E+=1)this.props[E]=g[E]}function N(g,E,q){return{x:g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12],y:g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13],z:g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]}}function $(g,E,q){return g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12]}function Y(g,E,q){return g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13]}function X(g,E,q){return g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]}function it(){var g=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/g,q=-this.props[1]/g,B=-this.props[4]/g,ct=this.props[0]/g,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/g,St=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/g,$t=new Pe;return $t.props[0]=E,$t.props[1]=q,$t.props[4]=B,$t.props[5]=ct,$t.props[12]=gt,$t.props[13]=St,$t}function At(g){var E=this.getInverseMatrix();return E.applyToPointArray(g[0],g[1],g[2]||0)}function ft(g){var E,q=g.length,B=[];for(E=0;E<q;E+=1)B[E]=At(g[E]);return B}function nt(g,E,q){var B=W("float32",6);if(this.isIdentity())B[0]=g[0],B[1]=g[1],B[2]=E[0],B[3]=E[1],B[4]=q[0],B[5]=q[1];else{var ct=this.props[0],gt=this.props[1],St=this.props[4],$t=this.props[5],Vt=this.props[12],fe=this.props[13];B[0]=g[0]*ct+g[1]*St+Vt,B[1]=g[0]*gt+g[1]*$t+fe,B[2]=E[0]*ct+E[1]*St+Vt,B[3]=E[0]*gt+E[1]*$t+fe,B[4]=q[0]*ct+q[1]*St+Vt,B[5]=q[0]*gt+q[1]*$t+fe}return B}function _t(g,E,q){var B;return this.isIdentity()?B=[g,E,q]:B=[g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12],g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13],g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]],B}function mt(g,E){if(this.isIdentity())return g+","+E;var q=this.props;return Math.round((g*q[0]+E*q[4]+q[12])*100)/100+","+Math.round((g*q[1]+E*q[5]+q[13])*100)/100}function rt(){for(var g=0,E=this.props,q="matrix3d(",B=1e4;g<16;)q+=c(E[g]*B)/B,q+=g===15?")":",",g+=1;return q}function _(g){var E=1e4;return g<1e-6&&g>0||g>-1e-6&&g<0?c(g*E)/E:g}function P(){var g=this.props,E=_(g[0]),q=_(g[1]),B=_(g[4]),ct=_(g[5]),gt=_(g[12]),St=_(g[13]);return"matrix("+E+","+q+","+B+","+ct+","+gt+","+St+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=b,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=j,this.shear=k,this.scale=A,this.setTransform=O,this.translate=F,this.transform=D,this.multiply=G,this.applyToPoint=N,this.applyToX=$,this.applyToY=Y,this.applyToZ=X,this.applyToPointArray=_t,this.applyToTriplePoints=nt,this.applyToPointStringified=mt,this.toCSS=rt,this.to2dCSS=P,this.clone=T,this.cloneFromProps=C,this.equals=w,this.inversePoints=ft,this.inversePoint=At,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=W("float32",16),this.reset()}}();function gl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gl=function(l){return typeof l}:gl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},gl(r)}var Wt={},bl="__[STANDALONE]__",Au="__[ANIMATIONDATA]__",Su="";function cT(r){d(r)}function Iu(){bl===!0?ue.searchAnimations(Au,bl,Su):ue.searchAnimations()}function hT(r){YE(r)}function pT(r){XE(r)}function mT(r){return bl===!0&&(r.animationData=JSON.parse(Au)),ue.loadAnimation(r)}function uT(r){if(typeof r=="string")switch(r){case"high":cl(200);break;default:case"medium":cl(50);break;case"low":cl(10);break}else!isNaN(r)&&r>1&&cl(r);Ra()>=50?Ke(!1):Ke(!0)}function fT(){return typeof navigator<"u"}function vT(r,s){r==="expressions"&&qE(s)}function gT(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return vl;case"matrix":return Pe;default:return null}}Wt.play=ue.play,Wt.pause=ue.pause,Wt.setLocationHref=cT,Wt.togglePause=ue.togglePause,Wt.setSpeed=ue.setSpeed,Wt.setDirection=ue.setDirection,Wt.stop=ue.stop,Wt.searchAnimations=Iu,Wt.registerAnimation=ue.registerAnimation,Wt.loadAnimation=mT,Wt.setSubframeRendering=hT,Wt.resize=ue.resize,Wt.goToAndStop=ue.goToAndStop,Wt.destroy=ue.destroy,Wt.setQuality=uT,Wt.inBrowser=fT,Wt.installPlugin=vT,Wt.freeze=ue.freeze,Wt.unfreeze=ue.unfreeze,Wt.setVolume=ue.setVolume,Wt.mute=ue.mute,Wt.unmute=ue.unmute,Wt.getRegisteredAnimations=ue.getRegisteredAnimations,Wt.useWebWorker=i,Wt.setIDPrefix=pT,Wt.__getFactory=gT,Wt.version="5.12.2";function bT(){document.readyState==="complete"&&(clearInterval(TT),Iu())}function yT(r){for(var s=Cu.split("&"),l=0;l<s.length;l+=1){var c=s[l].split("=");if(decodeURIComponent(c[0])==r)return decodeURIComponent(c[1])}return null}var Cu="";if(bl){var _u=document.getElementsByTagName("script"),ET=_u.length-1,wu=_u[ET]||{src:""};Cu=wu.src?wu.src.replace(/^[^\?]+\??/,""):"",Su=yT("renderer")}var TT=setInterval(bT,100);try{!((typeof gn>"u"?"undefined":gl(gn))==="object"&&typeof id<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Wt)}catch{}var Qi=function(){var r={},s={};r.registerModifier=l,r.getModifier=c;function l(m,p){s[m]||(s[m]=p)}function c(m,p,b){return new s[m](p,b)}return r}();function Ir(){}Ir.prototype.initModifierProperties=function(){},Ir.prototype.addShapeToModifier=function(){},Ir.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Ms.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Ir.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)},Ir.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},x([Ne],Ir);function Pr(){}x([Ir],Pr),Pr.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},Pr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Pr.prototype.calculateShapeEdges=function(r,s,l,c,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<c||k.s*m>c+l)){var M,j;k.s*m<=c?M=0:M=(k.s*m-c)/l,k.e*m>=c+l?j=1:j=(k.e*m-c)/l,b.push([M,j])}return b.length||b.push([0,0]),b},Pr.prototype.releasePathsData=function(r){var s,l=r.length;for(s=0;s<l;s+=1)bu.release(r[s]);return r.length=0,r},Pr.prototype.processShapes=function(r){var s,l;if(this._mdf||r){var c=this.o.v%360/360;if(c<0&&(c+=1),this.s.v>1?s=1+c:this.s.v<0?s=0+c:s=this.s.v+c,this.e.v>1?l=1+c:this.e.v<0?l=0+c:l=this.e.v+c,s>l){var m=s;s=l,l=m}s=Math.round(s*1e4)*1e-4,l=Math.round(l*1e4)*1e-4,this.sValue=s,this.eValue=l}else s=this.sValue,l=this.eValue;var p,b,I=this.shapes.length,y,k,M,j,A,O=0;if(l===s)for(b=0;b<I;b+=1)this.shapes[b].localShapeCollection.releaseShapes(),this.shapes[b].shape._mdf=!0,this.shapes[b].shape.paths=this.shapes[b].localShapeCollection,this._mdf&&(this.shapes[b].pathsData.length=0);else if(l===1&&s===0||l===0&&s===1){if(this._mdf)for(b=0;b<I;b+=1)this.shapes[b].pathsData.length=0,this.shapes[b].shape._mdf=!0}else{var F=[],D,G;for(b=0;b<I;b+=1)if(D=this.shapes[b],!D.shape._mdf&&!this._mdf&&!r&&this.m!==2)D.shape.paths=D.localShapeCollection;else{if(p=D.shape.paths,k=p._length,A=0,!D.shape._mdf&&D.pathsData.length)A=D.totalShapeLength;else{for(M=this.releasePathsData(D.pathsData),y=0;y<k;y+=1)j=Qr.getSegmentsLength(p.shapes[y]),M.push(j),A+=j.totalLength;D.totalShapeLength=A,D.pathsData=M}O+=A,D.shape._mdf=!0}var L=s,w=l,T=0,C;for(b=I-1;b>=0;b-=1)if(D=this.shapes[b],D.shape._mdf){for(G=D.localShapeCollection,G.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,l,D.totalShapeLength,T,O),T+=D.totalShapeLength):C=[[L,w]],k=C.length,y=0;y<k;y+=1){L=C[y][0],w=C[y][1],F.length=0,w<=1?F.push({s:D.totalShapeLength*L,e:D.totalShapeLength*w}):L>=1?F.push({s:D.totalShapeLength*(L-1),e:D.totalShapeLength*(w-1)}):(F.push({s:D.totalShapeLength*L,e:D.totalShapeLength}),F.push({s:0,e:D.totalShapeLength*(w-1)}));var N=this.addShapes(D,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var $=D.shape.paths.shapes[D.shape.paths._length-1];if($.c){var Y=N.pop();this.addPaths(N,G),N=this.addShapes(D,F[1],Y)}else this.addPaths(N,G),N=this.addShapes(D,F[1])}this.addPaths(N,G)}}D.shape.paths=G}}},Pr.prototype.addPaths=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)s.addShape(r[l])},Pr.prototype.addSegment=function(r,s,l,c,m,p,b){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(l[0],l[1],"i",p+1),b&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(c[0],c[1],"v",p+1)},Pr.prototype.addSegmentFromArray=function(r,s,l,c){s.setXYAt(r[1],r[5],"o",l),s.setXYAt(r[2],r[6],"i",l+1),c&&s.setXYAt(r[0],r[4],"v",l),s.setXYAt(r[3],r[7],"v",l+1)},Pr.prototype.addShapes=function(r,s,l){var c=r.pathsData,m=r.shape.paths.shapes,p,b=r.shape.paths._length,I,y,k=0,M,j,A,O,F=[],D,G=!0;for(l?(j=l._length,D=l._length):(l=De.newElement(),j=0,D=0),F.push(l),p=0;p<b;p+=1){for(A=c[p].lengths,l.c=m[p].c,y=m[p].c?A.length:A.length+1,I=1;I<y;I+=1)if(M=A[I-1],k+M.addedLength<s.s)k+=M.addedLength,l.c=!1;else if(k>s.e){l.c=!1;break}else s.s<=k&&s.e>=k+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],l,j,G),G=!1):(O=Qr.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,A[I-1]),this.addSegmentFromArray(O,l,j,G),G=!1,l.c=!1),k+=M.addedLength,j+=1;if(m[p].c&&A.length){if(M=A[I-1],k<=s.e){var L=A[I-1].addedLength;s.s<=k&&s.e>=k+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],l,j,G),G=!1):(O=Qr.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,A[I-1]),this.addSegmentFromArray(O,l,j,G),G=!1,l.c=!1)}else l.c=!1;k+=M.addedLength,j+=1}if(l._length&&(l.setXYAt(l.v[D][0],l.v[D][1],"i",D),l.setXYAt(l.v[l._length-1][0],l.v[l._length-1][1],"o",l._length-1)),k>s.e)break;p<b-1&&(l=De.newElement(),G=!0,F.push(l),j=0)}return F};function Va(){}x([Ir],Va),Va.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},Va.prototype.processPath=function(r,s){var l=s/100,c=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)c[0]+=r.v[p][0],c[1]+=r.v[p][1];c[0]/=m,c[1]/=m;var b=De.newElement();b.c=r.c;var I,y,k,M,j,A;for(p=0;p<m;p+=1)I=r.v[p][0]+(c[0]-r.v[p][0])*l,y=r.v[p][1]+(c[1]-r.v[p][1])*l,k=r.o[p][0]+(c[0]-r.o[p][0])*-l,M=r.o[p][1]+(c[1]-r.o[p][1])*-l,j=r.i[p][0]+(c[0]-r.i[p][0])*-l,A=r.i[p][1]+(c[1]-r.i[p][1])*-l,b.setTripleAt(I,y,k,M,j,A,p);return b},Va.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var qc=function(){var r=[0,0];function s(y){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&y.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&y.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&y.skewFromAxis(-this.sk.v,this.sa.v),this.r?y.rotate(-this.r.v):y.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?y.translate(this.px.v,this.py.v,-this.pz.v):y.translate(this.px.v,this.py.v,0):y.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function l(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,j;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),j=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),j=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,j=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=[],j=[];var A=this.px,O=this.py;A._caching.lastFrame+A.offsetTime<=A.keyframes[0].t?(M[0]=A.getValueAtTime((A.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),j[0]=A.getValueAtTime(A.keyframes[0].t/k,0),j[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):A._caching.lastFrame+A.offsetTime>=A.keyframes[A.keyframes.length-1].t?(M[0]=A.getValueAtTime(A.keyframes[A.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),j[0]=A.getValueAtTime((A.keyframes[A.keyframes.length-1].t-.01)/k,0),j[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[A.pv,O.pv],j[0]=A.getValueAtTime((A._caching.lastFrame+A.offsetTime-.01)/k,A.offsetTime),j[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else j=r,M=j;this.v.rotate(-Math.atan2(M[1]-j[1],M[0]-j[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 c(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(y){this._addDynamicProperty(y),this.elem.addDynamicProperty(y),this._isDirty=!0}function b(y,k,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),k.p&&k.p.s?(this.px=lt.getProp(y,k.p.x,0,0,this),this.py=lt.getProp(y,k.p.y,0,0,this),k.p.z&&(this.pz=lt.getProp(y,k.p.z,0,0,this))):this.p=lt.getProp(y,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=lt.getProp(y,k.rx,0,kt,this),this.ry=lt.getProp(y,k.ry,0,kt,this),this.rz=lt.getProp(y,k.rz,0,kt,this),k.or.k[0].ti){var j,A=k.or.k.length;for(j=0;j<A;j+=1)k.or.k[j].to=null,k.or.k[j].ti=null}this.or=lt.getProp(y,k.or,1,kt,this),this.or.sh=!0}else this.r=lt.getProp(y,k.r||{k:0},0,kt,this);k.sk&&(this.sk=lt.getProp(y,k.sk,0,kt,this),this.sa=lt.getProp(y,k.sa,0,kt,this)),this.a=lt.getProp(y,k.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(y,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=lt.getProp(y,k.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}b.prototype={applyToMatrix:s,getValue:l,precalculateMatrix:c,autoOrient:m},x([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 Jr(){}x([Ir],Jr),Jr.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=qc.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},Jr.prototype.applyTransforms=function(r,s,l,c,m,p){var b=p?-1:1,I=c.s.v[0]+(1-c.s.v[0])*(1-m),y=c.s.v[1]+(1-c.s.v[1])*(1-m);r.translate(c.p.v[0]*b*m,c.p.v[1]*b*m,c.p.v[2]),s.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),s.rotate(-c.r.v*b*m),s.translate(c.a.v[0],c.a.v[1],c.a.v[2]),l.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),l.scale(p?1/I:I,p?1/y:y),l.translate(c.a.v[0],c.a.v[1],c.a.v[2])},Jr.prototype.init=function(r,s,l,c){for(this.elem=r,this.arr=s,this.pos=l,this.elemsData=c,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[l]);l>0;)l-=1,this._elements.unshift(s[l]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Jr.prototype.resetElements=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Jr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Jr.prototype.changeGroupRender=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)r[l]._render=s,r[l].ty==="gr"&&this.changeGroupRender(r[l].it,s)},Jr.prototype.processShapes=function(r){var s,l,c,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(c=0;c<=this._groups.length-1;c+=1){if(k=p<I,this._groups[c]._render=k,this.changeGroupRender(this._groups[c].it,k),!k){var M=this.elemsData[c].it,j=M[M.length-1];j.transform.op.v!==0?(j.transform.op._mdf=!0,j.transform.op.v=0):j.transform.op._mdf=!1}p+=1}this._currentCopies=I;var A=this.o.v,O=A%1,F=A>0?Math.floor(A):Math.ceil(A),D=this.pMatrix.props,G=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(A>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(A<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)}c=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[c].it,l=s[s.length-1].transform.mProps.v.props,C=l.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(c/(this._currentCopies-1)),w!==0){for((c!==0&&m===1||c!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(G[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],G[9],G[10],G[11],G[12],G[13],G[14],G[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15]),T=0;T<C;T+=1)l[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)l[T]=this.matrix.props[T];w+=1,p-=1,c+=m}}else for(p=this._currentCopies,c=0,m=1;p;)s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,c+=m;return b},Jr.prototype.addShape=function(){};function za(){}x([Ir],za),za.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},za.prototype.processPath=function(r,s){var l=De.newElement();l.c=r.c;var c,m=r._length,p,b,I,y,k,M,j=0,A,O,F,D,G,L;for(c=0;c<m;c+=1)p=r.v[c],I=r.o[c],b=r.i[c],p[0]===I[0]&&p[1]===I[1]&&p[0]===b[0]&&p[1]===b[1]?(c===0||c===m-1)&&!r.c?(l.setTripleAt(p[0],p[1],I[0],I[1],b[0],b[1],j),j+=1):(c===0?y=r.v[m-1]:y=r.v[c-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,G=p[0]+(y[0]-p[0])*M,A=G,L=p[1]-(p[1]-y[1])*M,O=L,F=A-(A-p[0])*se,D=O-(O-p[1])*se,l.setTripleAt(A,O,F,D,G,L,j),j+=1,c===m-1?y=r.v[0]:y=r.v[c+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,A=F,D=p[1]+(y[1]-p[1])*M,O=D,G=A-(A-p[0])*se,L=O-(O-p[1])*se,l.setTripleAt(A,O,F,D,G,L,j),j+=1):(l.setTripleAt(r.v[c][0],r.v[c][1],r.o[c][0],r.o[c][1],r.i[c][0],r.i[c][1],j),j+=1);return l},za.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.rd.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function yl(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Xc(r){return Math.abs(r)<=1e-5}function ku(r,s,l){return r*(1-l)+s*l}function Ji(r,s,l){return[ku(r[0],s[0],l),ku(r[1],s[1],l)]}function xT(r,s,l){if(r===0)return[];var c=s*s-4*r*l;if(c<0)return[];var m=-s/(2*r);if(c===0)return[m];var p=Math.sqrt(c)/(2*r);return[m-p,m+p]}function Nu(r,s,l,c){return[-r+3*s-3*l+c,3*r-6*s+3*l,-3*r+3*s,r]}function Lu(r){return new de(r,r,r,r,!1)}function de(r,s,l,c,m){m&&Rs(r,s)&&(s=Ji(r,c,1/3)),m&&Rs(l,c)&&(l=Ji(r,c,2/3));var p=Nu(r[0],s[0],l[0],c[0]),b=Nu(r[1],s[1],l[1],c[1]);this.a=[p[0],b[0]],this.b=[p[1],b[1]],this.c=[p[2],b[2]],this.d=[p[3],b[3]],this.points=[r,s,l,c]}de.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},de.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},de.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},de.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},de.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Xc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,l=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(l<0)return[];var c=Math.sqrt(l);return Xc(c)?c>0&&c<1?[s]:[]:[s-c,s+c].filter(function(m){return m>0&&m<1})},de.prototype.split=function(r){if(r<=0)return[Lu(this.points[0]),this];if(r>=1)return[this,Lu(this.points[this.points.length-1])];var s=Ji(this.points[0],this.points[1],r),l=Ji(this.points[1],this.points[2],r),c=Ji(this.points[2],this.points[3],r),m=Ji(s,l,r),p=Ji(l,c,r),b=Ji(m,p,r);return[new de(this.points[0],s,m,b,!0),new de(b,p,c,this.points[3],!0)]};function Mu(r,s){var l=r.points[0][s],c=r.points[r.points.length-1][s];if(l>c){var m=c;c=l,l=m}for(var p=xT(3*r.a[s],2*r.b[s],r.c[s]),b=0;b<p.length;b+=1)if(p[b]>0&&p[b]<1){var I=r.point(p[b])[s];I<l?l=I:I>c&&(c=I)}return{min:l,max:c}}de.prototype.bounds=function(){return{x:Mu(this,0),y:Mu(this,1)}},de.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function El(r,s,l){var c=r.boundingBox();return{cx:c.cx,cy:c.cy,width:c.width,height:c.height,bez:r,t:(s+l)/2,t1:s,t2:l}}function Ou(r){var s=r.bez.split(.5);return[El(s[0],r.t1,r.t),El(s[1],r.t,r.t2)]}function AT(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 Ba(r,s,l,c,m,p){if(AT(r,s)){if(l>=p||r.width<=c&&r.height<=c&&s.width<=c&&s.height<=c){m.push([r.t,s.t]);return}var b=Ou(r),I=Ou(s);Ba(b[0],I[0],l+1,c,m,p),Ba(b[0],I[1],l+1,c,m,p),Ba(b[1],I[0],l+1,c,m,p),Ba(b[1],I[1],l+1,c,m,p)}}de.prototype.intersections=function(r,s,l){s===void 0&&(s=2),l===void 0&&(l=7);var c=[];return Ba(El(this,0,1),El(r,0,1),0,s,c,l),c},de.shapeSegment=function(r,s){var l=(s+1)%r.length();return new de(r.v[s],r.o[s],r.i[l],r.v[l],!0)},de.shapeSegmentInverted=function(r,s){var l=(s+1)%r.length();return new de(r.v[l],r.i[l],r.o[s],r.v[s],!0)};function Zc(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 Tl(r,s,l,c){var m=[r[0],r[1],1],p=[s[0],s[1],1],b=[l[0],l[1],1],I=[c[0],c[1],1],y=Zc(Zc(m,p),Zc(b,I));return Xc(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function Os(r,s,l){return[r[0]+Math.cos(s)*l,r[1]-Math.sin(s)*l]}function Qc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function Rs(r,s){return yl(r[0],s[0])&&yl(r[1],s[1])}function Ha(){}x([Ir],Ha),Ha.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 Ru(r,s,l,c,m,p,b){var I=l-Math.PI/2,y=l+Math.PI/2,k=s[0]+Math.cos(l)*c*m,M=s[1]-Math.sin(l)*c*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 ST(r,s){var l=[s[0]-r[0],s[1]-r[1]],c=-Math.PI*.5,m=[Math.cos(c)*l[0]-Math.sin(c)*l[1],Math.sin(c)*l[0]+Math.cos(c)*l[1]];return m}function IT(r,s){var l=s===0?r.length()-1:s-1,c=(s+1)%r.length(),m=r.v[l],p=r.v[c],b=ST(m,p);return Math.atan2(0,1)-Math.atan2(b[1],b[0])}function Du(r,s,l,c,m,p,b){var I=IT(s,l),y=s.v[l%s._length],k=s.v[l===0?s._length-1:l-1],M=s.v[(l+1)%s._length],j=p===2?Math.sqrt(Math.pow(y[0]-k[0],2)+Math.pow(y[1]-k[1],2)):0,A=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;Ru(r,s.v[l%s._length],I,b,c,A/((m+1)*2),j/((m+1)*2),p)}function CT(r,s,l,c,m,p){for(var b=0;b<c;b+=1){var I=(b+1)/(c+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);Ru(r,M,k,p,l,y/((c+1)*2),y/((c+1)*2),m),p=-p}return p}Ha.prototype.processPath=function(r,s,l,c){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var b=-1,I=de.shapeSegment(r,0);Du(p,r,0,s,l,c,b);for(var y=0;y<m;y+=1)b=CT(p,I,s,l,c,-b),y===m-1&&!r.c?I=null:I=de.shapeSegment(r,(y+1)%m),Du(p,r,y+1,s,l,c,b);return p},Ha.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,I,y));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Jc(r,s,l){var c=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Os(r,c,l),Os(s,c,l)]}function Ds(r,s){var l,c,m,p,b,I,y;y=Jc(r.points[0],r.points[1],s),l=y[0],c=y[1],y=Jc(r.points[1],r.points[2],s),m=y[0],p=y[1],y=Jc(r.points[2],r.points[3],s),b=y[0],I=y[1];var k=Tl(l,c,m,p);k===null&&(k=c);var M=Tl(b,I,m,p);return M===null&&(M=b),new de(l,k,M,I)}function Pu(r,s,l,c,m){var p=s.points[3],b=l.points[0];if(c===3||Rs(p,b))return p;if(c===2){var I=-s.tangentAngle(1),y=-l.tangentAngle(0)+Math.PI,k=Tl(p,Os(p,I+Math.PI/2,100),b,Os(b,I+Math.PI/2,100)),M=k?Qc(k,p):Qc(p,b)/2,j=Os(p,I,2*M*se);return r.setXYAt(j[0],j[1],"o",r.length()-1),j=Os(b,y,2*M*se),r.setTripleAt(b[0],b[1],b[0],b[1],j[0],j[1],r.length()),b}var A=Rs(p,s.points[2])?s.points[0]:s.points[2],O=Rs(b,l.points[1])?l.points[3]:l.points[1],F=Tl(A,p,b,O);return F&&Qc(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function Fu(r,s){var l=r.intersections(s);return l.length&&yl(l[0][0],1)&&l.shift(),l.length?l[0]:null}function $u(r,s){var l=r.slice(),c=s.slice(),m=Fu(r[r.length-1],s[0]);return m&&(l[r.length-1]=r[r.length-1].split(m[0])[0],c[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=Fu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[l,c]}function _T(r){for(var s,l=1;l<r.length;l+=1)s=$u(r[l-1],r[l]),r[l-1]=s[0],r[l]=s[1];return r.length>1&&(s=$u(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function Vu(r,s){var l=r.inflectionPoints(),c,m,p,b;if(l.length===0)return[Ds(r,s)];if(l.length===1||yl(l[1],1))return p=r.split(l[0]),c=p[0],m=p[1],[Ds(c,s),Ds(m,s)];p=r.split(l[0]),c=p[0];var I=(l[1]-l[0])/(1-l[0]);return p=p[1].split(I),b=p[0],m=p[1],[Ds(c,s),Ds(b,s),Ds(m,s)]}function Ua(){}x([Ir],Ua),Ua.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},Ua.prototype.processPath=function(r,s,l,c){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var b,I,y,k=[];for(b=0;b<p;b+=1)y=de.shapeSegment(r,b),k.push(Vu(y,s));if(!r.c)for(b=p-1;b>=0;b-=1)y=de.shapeSegmentInverted(r,b),k.push(Vu(y,s));k=_T(k);var M=null,j=null;for(b=0;b<k.length;b+=1){var A=k[b];for(j&&(M=Pu(m,j,A[0],l,c)),j=A[A.length-1],I=0;I<A.length;I+=1)y=A[I],M&&Rs(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&&Pu(m,j,k[0][0],l,c),m},Ua.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,y,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function zu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],l="normal",c="normal",m=s.length,p,b=0;b<m;b+=1)switch(p=s[b].toLowerCase(),p){case"italic":c="italic";break;case"bold":l="700";break;case"black":l="900";break;case"medium":l="500";break;case"regular":case"normal":l="400";break;case"light":case"thin":l="200";break;default:break}return{style:c,weight:r.fWeight||l}}var Vo=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},l=[];l=l.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var c=127988,m=917631,p=917601,b=917626,I=65039,y=8205,k=127462,M=127487,j=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function A(_){var P=_.split(","),g,E=P.length,q=[];for(g=0;g<E;g+=1)P[g]!=="sans-serif"&&P[g]!=="monospace"&&q.push(P[g]);return q.join(",")}function O(_,P){var g=v("span");g.setAttribute("aria-hidden",!0),g.style.fontFamily=P;var E=v("span");E.innerText="giItT1WQy@!-/#",g.style.position="absolute",g.style.left="-10000px",g.style.top="-10000px",g.style.fontSize="300px",g.style.fontVariant="normal",g.style.fontStyle="normal",g.style.fontWeight="normal",g.style.letterSpacing="0",g.appendChild(E),document.body.appendChild(g);var q=E.offsetWidth;return E.style.fontFamily=A(_)+", "+P,{node:E,w:q,parent:g}}function F(){var _,P=this.fonts.length,g,E,q=P;for(_=0;_<P;_+=1)this.fonts[_].loaded?q-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(g=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,g.offsetWidth!==E?(q-=1,this.fonts[_].loaded=!0):(g=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,g.offsetWidth!==E&&(q-=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)));q!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function D(_,P){var g=document.body&&P?"svg":"canvas",E,q=zu(_);if(g==="svg"){var B=Ct("text");B.style.fontSize="100px",B.setAttribute("font-family",_.fFamily),B.setAttribute("font-style",q.style),B.setAttribute("font-weight",q.weight),B.textContent="1",_.fClass?(B.style.fontFamily="inherit",B.setAttribute("class",_.fClass)):B.style.fontFamily=_.fFamily,P.appendChild(B),E=B}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=q.style+" "+q.weight+" 100px "+_.fFamily,E=ct}function gt(St){return g==="svg"?(E.textContent=St,E.getComputedTextLength()):E.measureText(St).width}return{measureText:gt}}function G(_,P){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(ir){ir.helper=D(ir),ir.cache={}}),this.fonts=_.list;return}var g=_.list,E,q=g.length,B=q;for(E=0;E<q;E+=1){var ct=!0,gt,St;if(g[E].loaded=!1,g[E].monoCase=O(g[E].fFamily,"monospace"),g[E].sansCase=O(g[E].fFamily,"sans-serif"),!g[E].fPath)g[E].loaded=!0,B-=1;else if(g[E].fOrigin==="p"||g[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+g[E].fFamily+'"], style[f-origin="3"][f-family="'+g[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var $t=v("style");$t.setAttribute("f-forigin",g[E].fOrigin),$t.setAttribute("f-origin",g[E].origin),$t.setAttribute("f-family",g[E].fFamily),$t.type="text/css",$t.innerText="@font-face {font-family: "+g[E].fFamily+"; font-style: normal; src: url('"+g[E].fPath+"');}",P.appendChild($t)}}else if(g[E].fOrigin==="g"||g[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),St=0;St<gt.length;St+=1)gt[St].href.indexOf(g[E].fPath)!==-1&&(ct=!1);if(ct){var Vt=v("link");Vt.setAttribute("f-forigin",g[E].fOrigin),Vt.setAttribute("f-origin",g[E].origin),Vt.type="text/css",Vt.rel="stylesheet",Vt.href=g[E].fPath,document.body.appendChild(Vt)}}else if(g[E].fOrigin==="t"||g[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),St=0;St<gt.length;St+=1)g[E].fPath===gt[St].src&&(ct=!1);if(ct){var fe=v("link");fe.setAttribute("f-forigin",g[E].fOrigin),fe.setAttribute("f-origin",g[E].origin),fe.setAttribute("rel","stylesheet"),fe.setAttribute("href",g[E].fPath),P.appendChild(fe)}}g[E].helper=D(g[E],P),g[E].cache={},this.fonts.push(g[E])}B===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var P,g=_.length,E,q=this.chars.length,B;for(P=0;P<g;P+=1){for(E=0,B=!1;E<q;)this.chars[E].style===_[P].style&&this.chars[E].fFamily===_[P].fFamily&&this.chars[E].ch===_[P].ch&&(B=!0),E+=1;B||(this.chars.push(_[P]),q+=1)}}}function w(_,P,g){for(var E=0,q=this.chars.length;E<q;){if(this.chars[E].ch===_&&this.chars[E].style===P&&this.chars[E].fFamily===g)return this.chars[E];E+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,P,g)),s}function T(_,P,g){var E=this.getFontByName(P),q=_;if(!E.cache[q]){var B=E.helper;if(_===" "){var ct=B.measureText("|"+_+"|"),gt=B.measureText("||");E.cache[q]=(ct-gt)/100}else E.cache[q]=B.measureText(_)/100}return E.cache[q]*g}function C(_){for(var P=0,g=this.fonts.length;P<g;){if(this.fonts[P].fName===_)return this.fonts[P];P+=1}return this.fonts[0]}function N(_){var P=0,g=_.charCodeAt(0);if(g>=55296&&g<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(P=(g-55296)*1024+E-56320+65536)}return P}function $(_,P){var g=_.toString(16)+P.toString(16);return j.indexOf(g)!==-1}function Y(_){return _===y}function X(_){return _===I}function it(_){var P=N(_);return P>=k&&P<=M}function At(_){return it(_.substr(0,2))&&it(_.substr(2,2))}function ft(_){return l.indexOf(_)!==-1}function nt(_,P){var g=N(_.substr(P,2));if(g!==c)return!1;var E=0;for(P+=2;E<5;){if(g=N(_.substr(P,2)),g<p||g>b)return!1;E+=1,P+=2}return N(_.substr(P,2))===m}function _t(){this.isLoaded=!0}var mt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};mt.isModifier=$,mt.isZeroWidthJoiner=Y,mt.isFlagEmoji=At,mt.isRegionalCode=it,mt.isCombinedCharacter=ft,mt.isRegionalFlag=nt,mt.isVariationSelector=X,mt.BLACK_FLAG_CODE_POINT=c;var rt={addChars:L,addFonts:G,getCharData:w,getFontByName:C,measureText:T,checkLoadedFonts:F,setIsLoaded:_t};return mt.prototype=rt,mt}();function Bu(r){this.animationData=r}Bu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function wT(r){return new Bu(r)}function xl(){}xl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,l=this.renderableComponents.length;for(s=0;s<l;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var th=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 kT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function NT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function LT(r,s,l){this.p=lt.getProp(s,r.v,1,0,l)}function MT(r,s,l){this.p=lt.getProp(s,r.v,1,0,l)}function OT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function RT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function DT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function PT(){this.p={}}function Hu(r,s){var l=r.ef||[];this.effectElements=[];var c,m=l.length,p;for(c=0;c<m;c+=1)p=new Ga(l[c],s),this.effectElements.push(p)}function Ga(r,s){this.init(r,s)}x([Ne],Ga),Ga.prototype.getValue=Ga.prototype.iterateDynamicProperties,Ga.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var l,c=this.data.ef.length,m,p=this.data.ef;for(l=0;l<c;l+=1){switch(m=null,p[l].ty){case 0:m=new kT(p[l],s,this);break;case 1:m=new NT(p[l],s,this);break;case 2:m=new LT(p[l],s,this);break;case 3:m=new MT(p[l],s,this);break;case 4:case 7:m=new DT(p[l],s,this);break;case 10:m=new OT(p[l],s,this);break;case 11:m=new RT(p[l],s,this);break;case 5:m=new Hu(p[l],s,this);break;default:m=new PT(p[l],s,this);break}m&&this.effectElements.push(m)}};function to(){}to.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,l=this.data.masksProperties.length;s<l;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=uu();if(s){var l=s("layer"),c=s("effects"),m=s("shape"),p=s("text"),b=s("comp");this.layerInterface=l(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=c.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=th(this.data.bm),l=this.baseElement||this.layerElement;l.style["mix-blend-mode"]=s},initBaseData:function(s,l,c){this.globalData=l,this.comp=c,this.data=s,this.layerId=er(),this.data.sr||(this.data.sr=1),this.effectsManager=new Hu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function eo(){}eo.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,l){var c,m=this.dynamicProperties.length;for(c=0;c<m;c+=1)(l||this._isParent&&this.dynamicProperties[c].propType==="transform")&&(this.dynamicProperties[c].getValue(),this.dynamicProperties[c]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function ro(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,l)}ro.prototype.prepareFrame=function(){},x([xl,to,eo],ro),ro.prototype.getBaseElement=function(){return null},ro.prototype.renderFrame=function(){},ro.prototype.destroy=function(){},ro.prototype.initExpressions=function(){var r=uu();if(r){var s=r("footage");this.layerInterface=s(this)}},ro.prototype.getFootageData=function(){return this.footageData};function rr(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,l),this._isPlaying=!1,this._canPlay=!1;var c=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(c),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)}rr.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var l=this._volume*this._volumeMultiplier;this._previousVolume!==l&&(this._previousVolume=l,this.audio.volume(l))},x([xl,to,eo],rr),rr.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))},rr.prototype.show=function(){},rr.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},rr.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},rr.prototype.resume=function(){this._canPlay=!0},rr.prototype.setRate=function(r){this.audio.rate(r)},rr.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},rr.prototype.getBaseElement=function(){return null},rr.prototype.destroy=function(){},rr.prototype.sourceRectAtTime=function(){},rr.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,l=this.layers.length,c;for(this.completeLayers=!0,s=l-1;s>=0;s-=1)this.elements[s]||(c=this.layers[s],c.ip-c.st<=r-this.layers[s].st&&c.op-c.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 rr(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new ro(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,l=r.length,c,m=this.layers.length;for(s=0;s<l;s+=1)for(c=0;c<m;){if(this.layers[c].id===r[s].id){this.layers[c]=r[s];break}c+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,l){for(var c=this.elements,m=this.layers,p=0,b=m.length;p<b;)m[p].ind==s&&(!c[p]||c[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(l.push(c[p]),c[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,l):r.setHierarchy(l))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,l=r.length;for(s=0;s<l;s+=1)if(r[s].xt){var c=this.createComp(r[s]);c.initExpressions(),this.globalData.projectInterface.registerComposition(c)}},Fe.prototype.getElementById=function(r){var s,l=this.elements.length;for(s=0;s<l;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),l;if(typeof s=="number")l=this.elements[s];else{var c,m=this.elements.length;for(c=0;c<m;c+=1)if(this.elements[c].data.nm===s){l=this.elements[c];break}}return r.length===0?l:l.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Vo,this.globalData.slotManager=wT(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 FT={TRANSFORM_EFFECT:"transformEFfect"};function Ps(){}Ps.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?qc.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,l=this.finalTransform.mat,c=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;c<m;){if(this.hierarchy[c].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}c+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,l.cloneFromProps(s),c=0;c<m;c+=1)l.multiply(this.hierarchy[c].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,l=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<l;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var c=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(c),s=1;s<l;s+=1){var m=this.localTransforms[s].matrix;c.multiply(m)}c.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<l;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(FT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var l=0,c=s.length;for(l=0;l<c;l+=1)this.localTransforms.push(s[l])}}},globalToLocal:function(s){var l=[];l.push(this.finalTransform);for(var c=!0,m=this.comp;c;)m.finalTransform?(m.data.hasMask&&l.splice(0,0,m.finalTransform),m=m.comp):c=!1;var p,b=l.length,I;for(p=0;p<b;p+=1)I=l[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function zo(r,s,l){this.data=r,this.element=s,this.globalData=l,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var c=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=Z(p),this.solidPath="";var b,I=this.masksProperties,y=0,k=[],M,j,A=er(),O,F,D,G,L="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(L="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=Ct("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,b=Ct("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:vl.getShapeProp(this.element,I[m],3),elem:b,lastPath:""},c.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",G=lt.getProp(this.element,I[m].x,0,null,this.element),T=er(),F=Ct("filter"),F.setAttribute("id",T),D=Ct("feMorphology"),D.setAttribute("operator","erode"),D.setAttribute("in","SourceGraphic"),D.setAttribute("radius","0"),F.appendChild(D),c.appendChild(F),b.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(D=null,G=null),this.storedData[m]={elem:b,x:G,expan:D,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){j=k.length;var C=Ct("g");for(M=0;M<j;M+=1)C.appendChild(k[M]);var N=Ct("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",A+"_"+y),N.appendChild(b),c.appendChild(N),C.setAttribute("mask","url("+f()+"#"+A+"_"+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:vl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=Ct(L),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);y>0&&(this.maskElement.setAttribute("id",A),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+A+")"),c.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}zo.prototype.getMaskProperty=function(r){return this.viewData[r].prop},zo.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,l,c=this.masksProperties.length;for(l=0;l<c;l+=1)if((this.viewData[l].prop._mdf||r)&&this.drawPath(this.masksProperties[l],this.viewData[l].prop.v,this.viewData[l]),(this.viewData[l].op._mdf||r)&&this.viewData[l].elem.setAttribute("fill-opacity",this.viewData[l].op.v),this.masksProperties[l].mode!=="n"&&(this.viewData[l].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[l].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[l].x&&(this.storedData[l].x._mdf||r))){var m=this.storedData[l].expan;this.storedData[l].x.v<0?(this.storedData[l].lastOperator!=="erode"&&(this.storedData[l].lastOperator="erode",this.storedData[l].elem.setAttribute("filter","url("+f()+"#"+this.storedData[l].filterId+")")),m.setAttribute("radius",-this.storedData[l].x.v)):(this.storedData[l].lastOperator!=="dilate"&&(this.storedData[l].lastOperator="dilate",this.storedData[l].elem.setAttribute("filter",null)),this.storedData[l].elem.setAttribute("stroke-width",this.storedData[l].x.v*2))}},zo.prototype.getMaskelement=function(){return this.maskElement},zo.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},zo.prototype.drawPath=function(r,s,l){var c=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)c+=" 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&&(c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),l.lastPath!==c){var b="";l.elem&&(s.c&&(b=r.inv?this.solidPath+c:c),l.elem.setAttribute("d",b)),l.lastPath=c}},zo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ka=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=l;function s(c,m){var p=Ct("filter");return p.setAttribute("id",c),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function l(){var c=Ct("feColorMatrix");return c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),c}return r}(),Uu=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}(),Al={},Gu="filter_result_";function eh(r){var s,l="SourceGraphic",c=r.data.ef?r.data.ef.length:0,m=er(),p=Ka.createFilter(m,!0),b=0;this.filters=[];var I;for(s=0;s<c;s+=1){I=null;var y=r.data.ef[s].ty;if(Al[y]){var k=Al[y].effect;I=new k(p,r.effectsManager.effectElements[s],r,Gu+b,l),l=Gu+b,Al[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)}eh.prototype.renderFrame=function(r){var s,l=this.filters.length;for(s=0;s<l;s+=1)this.filters[s].renderFrame(r)},eh.prototype.getEffects=function(r){var s,l=this.filters.length,c=[];for(s=0;s<l;s+=1)this.filters[s].type===r&&c.push(this.filters[s]);return c};function dC(r,s,l){Al[r]={effect:s,countsAsEffect:l}}function Wa(){}Wa.prototype={initRendererElement:function(){this.layerElement=Ct("g")},createContainerElements:function(){this.matteElement=Ct("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var l=Ct("g");l.setAttribute("id",this.layerId),l.appendChild(this.layerElement),s=l,this.globalData.defs.appendChild(l)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var c=Ct("clipPath"),m=Ct("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=er();if(c.setAttribute("id",p),c.appendChild(m),this.globalData.defs.appendChild(c),this.checkMasks()){var b=Ct("g");b.setAttribute("clip-path","url("+f()+"#"+p+")"),b.appendChild(this.layerElement),this.transformedElement=b,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new zo(this.data,this,this.globalData),this.renderableEffectsManager=new eh(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var l=this.layerId+"_"+s,c,m,p,b;if(s===1||s===3){var I=Ct("mask");I.setAttribute("id",l),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Uu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),c=er(),m=Ka.createFilter(c),this.globalData.defs.appendChild(m),m.appendChild(Ka.createAlphaToLuminanceFilter()),b=Ct("g"),b.appendChild(p),I.appendChild(b),b.setAttribute("filter","url("+f()+"#"+c+")"))}else if(s===2){var y=Ct("mask");y.setAttribute("id",l),y.setAttribute("mask-type","alpha");var k=Ct("g");y.appendChild(k),c=er(),m=Ka.createFilter(c);var M=Ct("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var j=Ct("feFuncA");j.setAttribute("type","table"),j.setAttribute("tableValues","1.0 0.0"),M.appendChild(j),this.globalData.defs.appendChild(m);var A=Ct("rect");A.setAttribute("width",this.comp.data.w),A.setAttribute("height",this.comp.data.h),A.setAttribute("x","0"),A.setAttribute("y","0"),A.setAttribute("fill","#ffffff"),A.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+c+")"),k.appendChild(A),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),Uu.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(Ka.createAlphaToLuminanceFilter()),b=Ct("g"),k.appendChild(A),b.appendChild(this.layerElement),k.appendChild(b)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=l}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Fs(){}Fs.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 Ya(){}(function(){var r={initElement:function(l,c,m){this.initFrame(),this.initBaseData(l,c,m),this.initTransform(l,c,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var l=this.baseElement||this.layerElement;l.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var l=this.baseElement||this.layerElement;l.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(l){this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};x([xl,H(r)],Ya)})();function ja(r,s,l){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,l),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}x([to,Ps,Wa,Fs,eo,Ya],ja),ja.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=Ct("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},ja.prototype.sourceRectAtTime=function(){return this.sourceRect};function $T(r,s){this.elem=r,this.pos=s}function Ku(){}Ku.prototype={addShapeToModifiers:function(s){var l,c=this.shapeModifiers.length;for(l=0;l<c;l+=1)this.shapeModifiers[l].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var l=0,c=this.shapeModifiers.length;l<c;)if(this.shapeModifiers[l].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,l=this.shapes.length;for(s=0;s<l;s+=1)this.shapes[s].sh.reset();l=this.shapeModifiers.length;var c;for(s=l-1;s>=0&&(c=this.shapeModifiers[s].processShapes(this._isFirstFrame),!c);s-=1);}},searchProcessedElement:function(s){for(var l=this.processedElements,c=0,m=l.length;c<m;){if(l[c].elem===s)return l[c].pos;c+=1}return 0},addProcessedElement:function(s,l){for(var c=this.processedElements,m=c.length;m;)if(m-=1,c[m].elem===s){c[m].pos=l;return}c.push(new $T(s,l))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var Wu={1:"butt",2:"round",3:"square"},Yu={1:"miter",2:"round",3:"bevel"};function ju(r,s,l){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=l,this.lvl=s,this._isAnimated=!!l.k;for(var c=0,m=r.length;c<m;){if(r[c].mProps.dynamicProperties.length){this._isAnimated=!0;break}c+=1}}ju.prototype.setAsAnimated=function(){this._isAnimated=!0};function qu(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=Ct("path"),this.msElem=null}qu.prototype.reset=function(){this.d="",this._mdf=!1};function Sl(r,s,l,c){this.elem=r,this.frameId=-1,this.dataProps=Z(s.length),this.renderer=l,this.k=!1,this.dashStr="",this.dashArray=W("float32",s.length?s.length-1:0),this.dashoffset=W("float32",1),this.initDynamicPropertyContainer(c);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}Sl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,l=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<l;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},x([Ne],Sl);function Xu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.w=lt.getProp(r,s.w,0,null,this),this.d=new Sl(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=l,this._isAnimated=!!this._isAnimated}x([Ne],Xu);function Zu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.c=lt.getProp(r,s.c,1,255,this),this.style=l}x([Ne],Zu);function Qu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=l}x([Ne],Qu);function qa(r,s,l){this.data=s,this.c=W("uint8c",s.p*4);var c=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=W("float32",c),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=c,this.initDynamicPropertyContainer(l),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}qa.prototype.comparePoints=function(r,s){for(var l=0,c=this.o.length/2,m;l<c;){if(m=Math.abs(r[l*4]-r[s*4+l*2]),m>.01)return!1;l+=1}return!0},qa.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},qa.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,l=this.data.p*4,c,m;for(s=0;s<l;s+=1)c=s%4===0?100:255,m=Math.round(this.prop.v[s]*c),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(l=this.prop.v.length,s=this.data.p*4;s<l;s+=1)c=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}},x([Ne],qa);function $s(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,l)}$s.prototype.initGradientData=function(r,s,l){this.o=lt.getProp(r,s.o,0,.01,this),this.s=lt.getProp(r,s.s,1,null,this),this.e=lt.getProp(r,s.e,1,null,this),this.h=lt.getProp(r,s.h||{k:0},0,.01,this),this.a=lt.getProp(r,s.a||{k:0},0,kt,this),this.g=new qa(r,s.g,this),this.style=l,this.stops=[],this.setGradientData(l.pElem,s),this.setGradientOpacity(s,l),this._isAnimated=!!this._isAnimated},$s.prototype.setGradientData=function(r,s){var l=er(),c=Ct(s.t===1?"linearGradient":"radialGradient");c.setAttribute("id",l),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,b,I;for(I=s.g.p*4,b=0;b<I;b+=4)p=Ct("stop"),c.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+l+")"),this.gf=c,this.cst=m},$s.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var l,c,m,p=Ct("mask"),b=Ct("path");p.appendChild(b);var I=er(),y=er();p.setAttribute("id",y);var k=Ct(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var M=this.stops;for(c=r.g.p*4;c<m;c+=2)l=Ct("stop"),l.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(l),M.push(l);b.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(b.setAttribute("stroke-linecap",Wu[r.lc||2]),b.setAttribute("stroke-linejoin",Yu[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}},x([Ne],$s);function Ju(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new Sl(r,s.d||{},"svg",this),this.initGradientData(r,s,l),this._isAnimated=!!this._isAnimated}x([$s,Ne],Ju);function VT(){this.it=[],this.prevViewData=[],this.gr=Ct("g")}function zT(r,s,l){this.transform={mProps:r,op:s,container:l},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var tf=function(s,l,c,m){if(l===0)return"";var p=s.o,b=s.i,I=s.v,y,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<l;y+=1)k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[y][0],b[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return c&&l&&(k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[0][0],b[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},BT=function(){var r=new Pe,s=new Pe,l={createRenderFunction:c};function c(j){switch(j.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(j,A,O){(O||A.transform.op._mdf)&&A.transform.container.setAttribute("opacity",A.transform.op.v),(O||A.transform.mProps._mdf)&&A.transform.container.setAttribute("transform",A.transform.mProps.v.to2dCSS())}function p(){}function b(j,A,O){var F,D,G,L,w,T,C=A.styles.length,N=A.lvl,$,Y,X,it;for(T=0;T<C;T+=1){if(L=A.sh._mdf||O,A.styles[T].lvl<N){for(Y=s.reset(),X=N-A.styles[T].lvl,it=A.transformers.length-1;!L&&X>0;)L=A.transformers[it].mProps._mdf||L,X-=1,it-=1;if(L)for(X=N-A.styles[T].lvl,it=A.transformers.length-1;X>0;)Y.multiply(A.transformers[it].mProps.v),X-=1,it-=1}else Y=r;if($=A.sh.paths,D=$._length,L){for(G="",F=0;F<D;F+=1)w=$.shapes[F],w&&w._length&&(G+=tf(w,w._length,w.c,Y));A.caches[T]=G}else G=A.caches[T];A.styles[T].d+=j.hd===!0?"":G,A.styles[T]._mdf=L||A.styles[T]._mdf}}function I(j,A,O){var F=A.style;(A.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ne(A.c.v[0])+","+ne(A.c.v[1])+","+ne(A.c.v[2])+")"),(A.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",A.o.v)}function y(j,A,O){k(j,A,O),M(j,A,O)}function k(j,A,O){var F=A.gf,D=A.g._hasOpacity,G=A.s.v,L=A.e.v;if(A.o._mdf||O){var w=j.ty==="gf"?"fill-opacity":"stroke-opacity";A.style.pElem.setAttribute(w,A.o.v)}if(A.s._mdf||O){var T=j.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";F.setAttribute(T,G[0]),F.setAttribute(C,G[1]),D&&!A.g._collapsable&&(A.of.setAttribute(T,G[0]),A.of.setAttribute(C,G[1]))}var N,$,Y,X;if(A.g._cmdf||O){N=A.cst;var it=A.g.c;for(Y=N.length,$=0;$<Y;$+=1)X=N[$],X.setAttribute("offset",it[$*4]+"%"),X.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(D&&(A.g._omdf||O)){var At=A.g.o;for(A.g._collapsable?N=A.cst:N=A.ost,Y=N.length,$=0;$<Y;$+=1)X=N[$],A.g._collapsable||X.setAttribute("offset",At[$*2]+"%"),X.setAttribute("stop-opacity",At[$*2+1])}if(j.t===1)(A.e._mdf||O)&&(F.setAttribute("x2",L[0]),F.setAttribute("y2",L[1]),D&&!A.g._collapsable&&(A.of.setAttribute("x2",L[0]),A.of.setAttribute("y2",L[1])));else{var ft;if((A.s._mdf||A.e._mdf||O)&&(ft=Math.sqrt(Math.pow(G[0]-L[0],2)+Math.pow(G[1]-L[1],2)),F.setAttribute("r",ft),D&&!A.g._collapsable&&A.of.setAttribute("r",ft)),A.e._mdf||A.h._mdf||A.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(G[0]-L[0],2)+Math.pow(G[1]-L[1],2)));var nt=Math.atan2(L[1]-G[1],L[0]-G[0]),_t=A.h.v;_t>=1?_t=.99:_t<=-1&&(_t=-.99);var mt=ft*_t,rt=Math.cos(nt+A.a.v)*mt+G[0],_=Math.sin(nt+A.a.v)*mt+G[1];F.setAttribute("fx",rt),F.setAttribute("fy",_),D&&!A.g._collapsable&&(A.of.setAttribute("fx",rt),A.of.setAttribute("fy",_))}}}function M(j,A,O){var F=A.style,D=A.d;D&&(D._mdf||O)&&D.dashStr&&(F.pElem.setAttribute("stroke-dasharray",D.dashStr),F.pElem.setAttribute("stroke-dashoffset",D.dashoffset[0])),A.c&&(A.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ne(A.c.v[0])+","+ne(A.c.v[1])+","+ne(A.c.v[2])+")"),(A.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",A.o.v),(A.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",A.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",A.w.v))}return l}();function ce(r,s,l){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,l),this.prevViewData=[]}x([to,Ps,Wa,Ku,Fs,eo,Ya],ce),ce.prototype.initSecondaryElement=function(){},ce.prototype.identityMatrix=new Pe,ce.prototype.buildExpressionInterface=function(){},ce.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ce.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,l,c,m=this.stylesList.length,p,b=[],I=!1;for(c=0;c<m;c+=1){for(p=this.stylesList[c],I=!1,b.length=0,r=0;r<s;r+=1)l=this.shapes[r],l.styles.indexOf(p)!==-1&&(b.push(l),I=l._isAnimated||I);b.length>1&&I&&this.setShapesAsAnimated(b)}},ce.prototype.setShapesAsAnimated=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s].setAsAnimated()},ce.prototype.createStyleElement=function(r,s){var l,c=new qu(r,s),m=c.pElem;if(r.ty==="st")l=new Xu(this,r,c);else if(r.ty==="fl")l=new Zu(this,r,c);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?$s:Ju;l=new p(this,r,c),this.globalData.defs.appendChild(l.gf),l.maskId&&(this.globalData.defs.appendChild(l.ms),this.globalData.defs.appendChild(l.of),m.setAttribute("mask","url("+f()+"#"+l.maskId+")"))}else r.ty==="no"&&(l=new Qu(this,r,c));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",Wu[r.lc||2]),m.setAttribute("stroke-linejoin",Yu[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"]=th(r.bm)),this.stylesList.push(c),this.addToAnimatedContents(r,l),l},ce.prototype.createGroupElement=function(r){var s=new VT;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"]=th(r.bm)),s},ce.prototype.createTransformElement=function(r,s){var l=qc.getTransformProperty(this,r,this),c=new zT(l,l.o,s);return this.addToAnimatedContents(r,c),c},ce.prototype.createShapeElement=function(r,s,l){var c=4;r.ty==="rc"?c=5:r.ty==="el"?c=6:r.ty==="sr"&&(c=7);var m=vl.getShapeProp(this,r,c,this),p=new ju(s,l,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},ce.prototype.addToAnimatedContents=function(r,s){for(var l=0,c=this.animatedContents.length;l<c;){if(this.animatedContents[l].element===s)return;l+=1}this.animatedContents.push({fn:BT.createRenderFunction(r),element:s,data:r})},ce.prototype.setElementStyles=function(r){var s=r.styles,l,c=this.stylesList.length;for(l=0;l<c;l+=1)this.stylesList[l].closed||s.push(this.stylesList[l])},ce.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},ce.prototype.searchShapes=function(r,s,l,c,m,p,b){var I=[].concat(p),y,k=r.length-1,M,j,A=[],O=[],F,D,G;for(y=k;y>=0;y-=1){if(G=this.searchProcessedElement(r[y]),G?s[y]=l[G-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")G?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==c&&c.appendChild(s[y].style.pElem),A.push(s[y].style);else if(r[y].ty==="gr"){if(!G)s[y]=this.createGroupElement(r[y]);else for(j=s[y].it.length,M=0;M<j;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!==c&&c.appendChild(s[y].gr)}else r[y].ty==="tr"?(G||(s[y]=this.createTransformElement(r[y],c)),F=s[y].transform,I.push(F)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(G||(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"?(G?(D=s[y],D.closed=!1):(D=Qi.getModifier(r[y].ty),D.init(this,r[y]),s[y]=D,this.shapeModifiers.push(D)),O.push(D)):r[y].ty==="rp"&&(G?(D=s[y],D.closed=!0):(D=Qi.getModifier(r[y].ty),s[y]=D,D.init(this,r,y,s),this.shapeModifiers.push(D),b=!1),O.push(D));this.addProcessedElement(r[y],y+1)}for(k=A.length,y=0;y<k;y+=1)A[y].closed=!0;for(k=O.length,y=0;y<k;y+=1)O[y].closed=!0},ce.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},ce.prototype.renderShape=function(){var r,s=this.animatedContents.length,l;for(r=0;r<s;r+=1)l=this.animatedContents[r],(this._isFirstFrame||l.element._isAnimated)&&l.data!==!0&&l.fn(l.data,l.element,this._isFirstFrame)},ce.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function rh(r,s,l,c,m,p){this.o=r,this.sw=s,this.sc=l,this.fc=c,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!l,fc:!!c,m:!0,p:!0}}rh.prototype.update=function(r,s,l,c,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var b=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,b=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,b=!0),this.sc!==l&&(this.sc=l,this._mdf.sc=!0,b=!0),this.fc!==c&&(this.fc=c,this._mdf.fc=!0,b=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,b=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,b=!0),b};function We(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}We.prototype.defaultBoxWidth=[0,0],We.prototype.copyData=function(r,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r[l]=s[l]);return r},We.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},We.prototype.searchProperty=function(){return this.searchKeyframes()},We.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},We.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},We.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,l=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var c,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(c=0;c<m;c+=1)l!==this.keysIndex?p=this.effectsSequence[c](p,p.t):p=this.effectsSequence[c](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},We.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,l=0,c=r.length;l<=c-1&&!(l===c-1||r[l+1].t>s);)l+=1;return this.keysIndex!==l&&(this.keysIndex=l),this.data.d.k[this.keysIndex].s},We.prototype.buildFinalText=function(r){for(var s=[],l=0,c=r.length,m,p,b=!1,I=!1,y="";l<c;)b=I,I=!1,m=r.charCodeAt(l),y=r.charAt(l),Vo.isCombinedCharacter(m)?b=!0:m>=55296&&m<=56319?Vo.isRegionalFlag(r,l)?y=r.substr(l,14):(p=r.charCodeAt(l+1),p>=56320&&p<=57343&&(Vo.isModifier(m,p)?(y=r.substr(l,2),b=!0):Vo.isFlagEmoji(r.substr(l,4))?y=r.substr(l,4):y=r.substr(l,2))):m>56319?(p=r.charCodeAt(l+1),Vo.isVariationSelector(m)&&(b=!0)):Vo.isZeroWidthJoiner(m)&&(b=!0,I=!0),b?(s[s.length-1]+=y,b=!1):s.push(y),l+=y.length;return s},We.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,l=this.data,c=[],m,p,b,I=0,y,k=l.m.g,M=0,j=0,A=0,O=[],F=0,D=0,G,L,w=s.getFontByName(r.f),T,C=0,N=zu(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,Y;if(r.sz)for(var X=!0,it=r.sz[0],At=r.sz[1],ft,nt;X;){nt=this.buildFinalText(r.t),ft=0,F=0,p=nt.length,$=r.tr/1e3*r.finalSize;var _t=-1;for(m=0;m<p;m+=1)Y=nt[m].charCodeAt(0),b=!1,nt[m]===" "?_t=m:(Y===13||Y===3)&&(F=0,b=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(nt[m],w.fStyle,w.fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(nt[m],r.f,r.finalSize),F+C>it&&nt[m]!==" "?(_t===-1?p+=1:m=_t,ft+=r.finalLineHeight||r.finalSize*1.2,nt.splice(m,_t===m?1:0,"\r"),_t=-1,F=0):(F+=C,F+=$);ft+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&At<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=nt,p=r.finalText.length,X=!1)}F=-$,C=0;var mt=0,rt;for(m=0;m<p;m+=1)if(b=!1,rt=r.finalText[m],Y=rt.charCodeAt(0),Y===13||Y===3?(mt=0,O.push(F),D=F>D?F:D,F=-2*$,y="",b=!0,A+=1):y=rt,s.chars?(T=s.getCharData(rt,w.fStyle,s.getFontByName(r.f).fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),rt===" "?mt+=C+$:(F+=C+$+mt,mt=0),c.push({l:C,an:C,add:M,n:b,anIndexes:[],val:y,line:A,animatorJustifyOffset:0}),k==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);j<=m;)c[j].an=M,c[j].ind=I,c[j].extra=C,j+=1;I+=1,M=0}}else if(k==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);j<=m;)c[j].an=M,c[j].ind=I,c[j].extra=C,j+=1;M=0,I+=1}}else c[I].ind=I,c[I].extra=0,I+=1;if(r.l=c,D=F>D?F:D,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=D,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=l.a,P,g;L=_.length;var E,q,B=[];for(G=0;G<L;G+=1){for(P=_[G],P.a.sc&&(r.strokeColorAnim=!0),P.a.sw&&(r.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(r.fillColorAnim=!0),q=0,E=P.s.b,m=0;m<p;m+=1)g=c[m],g.anIndexes[G]=q,(E==1&&g.val!==""||E==2&&g.val!==""&&g.val!==" "||E==3&&(g.n||g.val==" "||m==p-1)||E==4&&(g.n||m==p-1))&&(P.s.rn===1&&B.push(q),q+=1);l.a[G].s.totalChars=q;var ct=-1,gt;if(P.s.rn===1)for(m=0;m<p;m+=1)g=c[m],ct!=g.anIndexes[G]&&(ct=g.anIndexes[G],gt=B.splice(Math.floor(Math.random()*B.length),1)[0]),g.anIndexes[G]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},We.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var l=this.copyData({},this.data.d.k[s].s);l=this.copyData(l,r),this.data.d.k[s].s=l,this.recalculate(s),this.setCurrentData(l),this.elem.addDynamicProperty(this)},We.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},We.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},We.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var HT=function(){var r=Math.max,s=Math.min,l=Math.floor;function c(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()}c.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 j=$a.getBezierEasing(I,y,k,M).get,A=0,O=this.finalS,F=this.finalE,D=this.data.sh;if(D===2)F===O?A=b>=F?1:0:A=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),A=j(A);else if(D===3)F===O?A=b>=F?0:1:A=1-r(0,s(.5/(F-O)+(b-O)/(F-O),1)),A=j(A);else if(D===4)F===O?A=0:(A=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),A<.5?A*=2:A=1-2*(A-.5)),A=j(A);else if(D===5){if(F===O)A=0;else{var G=F-O;b=s(r(0,b+.5-O),F-O);var L=-G/2+b,w=G/2;A=Math.sqrt(1-L*L/(w*w))}A=j(A)}else D===6?(F===O?A=0:(b=s(r(0,b+.5-O),F-O),A=(1+Math.cos(Math.PI+Math.PI*2*b/(F-O)))/2),A=j(A)):(b>=l(O)&&(b-O<0?A=r(0,s(s(F,1)-(O-b),1)):A=r(0,s(F-b,1))),A=j(A));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;A<C?A=0:(A=(A-C)/T,A>1&&(A=1))}return A*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 j=k;k=M,M=j}this.finalS=k,this.finalE=M}},x([Ne],c);function m(p,b,I){return new c(p,b,I)}return{getTextSelectorProp:m}}();function UT(r,s,l){var c={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,kt,l):c,rx:p.rx?m(r,p.rx,0,kt,l):c,ry:p.ry?m(r,p.ry,0,kt,l):c,sk:p.sk?m(r,p.sk,0,kt,l):c,sa:p.sa?m(r,p.sa,0,kt,l):c,s:p.s?m(r,p.s,1,.01,l):c,a:p.a?m(r,p.a,1,0,l):c,o:p.o?m(r,p.o,0,.01,l):c,p:p.p?m(r,p.p,1,0,l):c,sw:p.sw?m(r,p.sw,0,0,l):c,sc:p.sc?m(r,p.sc,1,0,l):c,fc:p.fc?m(r,p.fc,1,0,l):c,fh:p.fh?m(r,p.fh,0,0,l):c,fs:p.fs?m(r,p.fs,0,.01,l):c,fb:p.fb?m(r,p.fb,0,.01,l):c,t:p.t?m(r,p.t,0,0,l):c},this.s=HT.getTextSelectorProp(r,s.s,l),this.s.t=s.s.t}function Bo(r,s,l){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=l,this._animatorsData=Z(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(l)}Bo.prototype.searchProperties=function(){var r,s=this._textData.a.length,l,c=lt.getProp;for(r=0;r<s;r+=1)l=this._textData.a[r],this._animatorsData[r]=new UT(this._elem,l,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:c(this._elem,this._textData.p.a,0,0,this),f:c(this._elem,this._textData.p.f,0,0,this),l:c(this._elem,this._textData.p.l,0,0,this),r:c(this._elem,this._textData.p.r,0,0,this),p:c(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=c(this._elem,this._textData.m.a,1,0,this)},Bo.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var l=this._moreOptions.alignment.v,c=this._animatorsData,m=this._textData,p=this.mHelper,b=this._renderType,I=this.renderedLetters.length,y,k,M,j,A=r.l,O,F,D,G,L,w,T,C,N,$,Y,X,it,At,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var nt=ft.v;this._pathData.r.v&&(nt=nt.reverse()),O={tLength:0,segments:[]},j=nt._length-1;var _t;for(X=0,M=0;M<j;M+=1)_t=Qr.buildBezierData(nt.v[M],nt.v[M+1],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[M+1][0]-nt.v[M+1][0],nt.i[M+1][1]-nt.v[M+1][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength;M=j,ft.v.c&&(_t=Qr.buildBezierData(nt.v[M],nt.v[0],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[0][0]-nt.v[0][0],nt.i[0][1]-nt.v[0][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,G=0,L=!0,$=O.segments,F<0&&ft.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,C=N[w-1],D=N[w],Y=D.partialLength}j=A.length,y=0,k=0;var mt=r.finalSize*1.2*.714,rt=!0,_,P,g,E,q;E=c.length;var B,ct=-1,gt,St,$t,Vt=F,fe=T,ir=w,ti=-1,or,Le,vr,Yt,ut,Ci,oo,_i,ei="",wi=this.defaultPropsArray,ki;if(r.j===2||r.j===1){var sr=0,so=0,ao=r.j===2?-.5:-1,Fr=0,no=!0;for(M=0;M<j;M+=1)if(A[M].n){for(sr&&(sr+=so);Fr<M;)A[Fr].animatorJustifyOffset=sr,Fr+=1;sr=0,no=!0}else{for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(no&&r.j===2&&(so+=_.t.v*ao),P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?sr+=_.t.v*B[0]*ao:sr+=_.t.v*B*ao);no=!1}for(sr&&(sr+=so);Fr<M;)A[Fr].animatorJustifyOffset=sr,Fr+=1}for(M=0;M<j;M+=1){if(p.reset(),or=1,A[M].n)y=0,k+=r.yOffset,k+=rt?1:0,F=Vt,rt=!1,this._hasMaskedPath&&(T=fe,w=ir,N=$[T].points,C=N[w-1],D=N[w],Y=D.partialLength,G=0),ei="",_i="",Ci="",ki="",wi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ti!==A[M].line){switch(r.j){case 1:F+=X-r.lineWidths[A[M].line];break;case 2:F+=(X-r.lineWidths[A[M].line])/2;break;default:break}ti=A[M].line}ct!==A[M].ind&&(A[ct]&&(F+=A[ct].extra),F+=A[M].an/2,ct=A[M].ind),F+=l[0]*A[M].an*.005;var $r=0;for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?$r+=_.p.v[0]*B[0]:$r+=_.p.v[0]*B),_.a.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?$r+=_.a.v[0]*B[0]:$r+=_.a.v[0]*B);for(L=!0,this._pathData.a.v&&(F=A[0].an*.5+(X-this._pathData.f.v-A[0].an*.5-A[A.length-1].an*.5)*ct/(j-1),F+=this._pathData.f.v);L;)G+Y>=F+$r||!N?(it=(F+$r-G)/D.partialLength,St=C.point[0]+(D.point[0]-C.point[0])*it,$t=C.point[1]+(D.point[1]-C.point[1])*it,p.translate(-l[0]*A[M].an*.005,-(l[1]*mt)*.01),L=!1):N&&(G+=D.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ft.v.c?(w=0,T=0,N=$[T].points):(G-=D.partialLength,N=null)),N&&(C=D,D=N[w],Y=D.partialLength));gt=A[M].an/2-A[M].add,p.translate(-gt,0,0)}else gt=A[M].an/2-A[M].add,p.translate(-gt,0,0),p.translate(-l[0]*A[M].an*.005,-l[1]*mt*.01,0);for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?B.length?F+=_.t.v*B[0]:F+=_.t.v*B:B.length?y+=_.t.v*B[0]:y+=_.t.v*B));for(r.strokeWidthAnim&&(vr=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]]),g=0;g<E;g+=1)_=c[g].a,_.a.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.translate(-_.a.v[0]*B[0],-_.a.v[1]*B[1],_.a.v[2]*B[2]):p.translate(-_.a.v[0]*B,-_.a.v[1]*B,_.a.v[2]*B));for(g=0;g<E;g+=1)_=c[g].a,_.s.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.scale(1+(_.s.v[0]-1)*B[0],1+(_.s.v[1]-1)*B[1],1):p.scale(1+(_.s.v[0]-1)*B,1+(_.s.v[1]-1)*B,1));for(g=0;g<E;g+=1){if(_=c[g].a,P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),_.sk.propType&&(B.length?p.skewFromAxis(-_.sk.v*B[0],_.sa.v*B[1]):p.skewFromAxis(-_.sk.v*B,_.sa.v*B)),_.r.propType&&(B.length?p.rotateZ(-_.r.v*B[2]):p.rotateZ(-_.r.v*B)),_.ry.propType&&(B.length?p.rotateY(_.ry.v*B[1]):p.rotateY(_.ry.v*B)),_.rx.propType&&(B.length?p.rotateX(_.rx.v*B[0]):p.rotateX(_.rx.v*B)),_.o.propType&&(B.length?or+=(_.o.v*B[0]-or)*B[0]:or+=(_.o.v*B-or)*B),r.strokeWidthAnim&&_.sw.propType&&(B.length?vr+=_.sw.v*B[0]:vr+=_.sw.v*B),r.strokeColorAnim&&_.sc.propType)for(ut=0;ut<3;ut+=1)B.length?Le[ut]+=(_.sc.v[ut]-Le[ut])*B[0]:Le[ut]+=(_.sc.v[ut]-Le[ut])*B;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(ut=0;ut<3;ut+=1)B.length?Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B[0]:Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B;_.fh.propType&&(B.length?Yt=mu(Yt,_.fh.v*B[0]):Yt=mu(Yt,_.fh.v*B)),_.fs.propType&&(B.length?Yt=hu(Yt,_.fs.v*B[0]):Yt=hu(Yt,_.fs.v*B)),_.fb.propType&&(B.length?Yt=pu(Yt,_.fb.v*B[0]):Yt=pu(Yt,_.fb.v*B))}}for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),this._hasMaskedPath?B.length?p.translate(0,_.p.v[1]*B[0],-_.p.v[2]*B[1]):p.translate(0,_.p.v[1]*B,-_.p.v[2]*B):B.length?p.translate(_.p.v[0]*B[0],_.p.v[1]*B[1],-_.p.v[2]*B[2]):p.translate(_.p.v[0]*B,_.p.v[1]*B,-_.p.v[2]*B));if(r.strokeWidthAnim&&(Ci=vr<0?0:vr),r.strokeColorAnim&&(oo="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(_i="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,l[1]*mt*.01+k,0),this._pathData.p.v){At=(D.point[1]-C.point[1])/(D.point[0]-C.point[0]);var Ho=Math.atan(At)*180/Math.PI;D.point[0]<C.point[0]&&(Ho+=180),p.rotate(-Ho*Math.PI/180)}p.translate(St,$t,0),F-=l[0]*A[M].an*.005,A[M+1]&&ct!==A[M+1].ind&&(F+=A[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(A[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[A[M].line]),0,0);break;case 2:p.translate(A[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[A[M].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(l[0]*A[M].an*.005,l[1]*mt*.01,0),y+=A[M].l+r.tr*.001*r.finalSize}b==="html"?ei=p.toCSS():b==="svg"?ei=p.to2dCSS():wi=[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]],ki=or}I<=M?(q=new rh(ki,Ci,oo,_i,ei,wi),this.renderedLetters.push(q),I+=1,this.lettersChangedFlag=!0):(q=this.renderedLetters[M],this.lettersChangedFlag=q.update(ki,Ci,oo,_i,ei,wi)||this.lettersChangedFlag)}}},Bo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Bo.prototype.mHelper=new Pe,Bo.prototype.defaultPropsArray=[],x([Ne],Bo);function Cr(){}Cr.prototype.initElement=function(r,s,l){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,l),this.textProperty=new We(this,r.t,this.dynamicProperties),this.textAnimator=new Bo(r.t,this.renderType,this),this.initTransform(r,s,l),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Cr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Cr.prototype.createPathShape=function(r,s){var l,c=s.length,m,p="";for(l=0;l<c;l+=1)s[l].ty==="sh"&&(m=s[l].ks.k,p+=tf(m,m.i.length,!0,r));return p},Cr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Cr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Cr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Cr.prototype.applyTextPropertiesToMatrix=function(r,s,l,c,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l])/2,0,0);break;default:break}s.translate(c,m,0)},Cr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Cr.prototype.emptyProp=new rh,Cr.prototype.destroy=function(){},Cr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var GT={shapes:[]};function Si(r,s,l){this.textSpans=[],this.renderType="svg",this.initElement(r,s,l)}x([to,Ps,Wa,Fs,eo,Ya,Cr],Si),Si.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Ct("text"))},Si.prototype.buildTextContents=function(r){for(var s=0,l=r.length,c=[],m="";s<l;)r[s]==="\r"||r[s]===""?(c.push(m),m=""):m+=r[s],s+=1;return c.push(m),c},Si.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var l=r.shapes[0];if(l.it){var c=l.it[l.it.length-1];c.s&&(c.s.k[0]=s,c.s.k[1]=s)}}return r},Si.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,l=this.textProperty.currentData;this.renderedLetters=Z(l?l.l.length:0),l.fc?this.layerElement.setAttribute("fill",this.buildColor(l.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),l.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(l.sc)),this.layerElement.setAttribute("stroke-width",l.sw)),this.layerElement.setAttribute("font-size",l.finalSize);var c=this.globalData.fontManager.getFontByName(l.f);if(c.fClass)this.layerElement.setAttribute("class",c.fClass);else{this.layerElement.setAttribute("font-family",c.fFamily);var m=l.fWeight,p=l.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",l.t);var b=l.l||[],I=!!this.globalData.fontManager.chars;s=b.length;var y,k=this.mHelper,M="",j=this.data.singleShape,A=0,O=0,F=!0,D=l.tr*.001*l.finalSize;if(j&&!I&&!l.sz){var G=this.textContainer,L="start";switch(l.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}G.setAttribute("text-anchor",L),G.setAttribute("letter-spacing",D);var w=this.buildTextContents(l.finalText);for(s=w.length,O=l.ps?l.ps[1]+l.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||Ct("tspan"),y.textContent=w[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",G.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=l.finalLineHeight;this.layerElement.appendChild(G)}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||!j||r===0){if(y=T>r?this.textSpans[r].span:Ct(I?"g":"text"),T<=r){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=y,I){var N=Ct("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(k.reset(),j&&(b[r].n&&(A=-D,O+=l.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(l,k,b[r].line,A,O),A+=b[r].l||0,A+=D),I){C=this.globalData.fontManager.getCharData(l.finalText[r],c.fStyle,this.globalData.fontManager.getFontByName(l.f).fFamily);var $;if(C.t===1)$=new Xa(C.data,this.globalData,this);else{var Y=GT;C.data&&C.data.shapes&&(Y=this.buildShapeData(C.data,l.finalSize)),$=new ce(Y,this.globalData,this)}if(this.textSpans[r].glyph){var X=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(X.layerElement),X.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+l.finalSize/100+","+l.finalSize/100+")")}else j&&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")}j&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},Si.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},Si.prototype.getValue=function(){var r,s=this.textSpans.length,l;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)l=this.textSpans[r].glyph,l&&(l.prepareFrame(this.comp.renderedFrame-this.data.st),l._mdf&&(this._mdf=!0))},Si.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;s=c.length;var m,p,b;for(r=0;r<s;r+=1)c[r].n||(m=l[r],p=this.textSpans[r].span,b=this.textSpans[r].glyph,b&&b.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function ih(r,s,l){this.initElement(r,s,l)}x([ja],ih),ih.prototype.createContent=function(){var r=Ct("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function io(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initFrame(),this.initTransform(r,s,l),this.initHierarchy()}io.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},io.prototype.renderFrame=function(){},io.prototype.getBaseElement=function(){return null},io.prototype.destroy=function(){},io.prototype.sourceRectAtTime=function(){},io.prototype.hide=function(){},x([to,Ps,Fs,eo],io);function Ae(){}x([Fe],Ae),Ae.prototype.createNull=function(r){return new io(r,this.globalData,this)},Ae.prototype.createShape=function(r){return new ce(r,this.globalData,this)},Ae.prototype.createText=function(r){return new Si(r,this.globalData,this)},Ae.prototype.createImage=function(r){return new ja(r,this.globalData,this)},Ae.prototype.createSolid=function(r){return new ih(r,this.globalData,this)},Ae.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var l=Ct("clipPath"),c=Ct("rect");c.setAttribute("width",r.w),c.setAttribute("height",r.h),c.setAttribute("x",0),c.setAttribute("y",0);var m=er();l.setAttribute("id",m),l.appendChild(c),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(l),this.layers=r.layers,this.elements=Z(r.layers.length)},Ae.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ae.prototype.updateContainerSize=function(){},Ae.prototype.findIndexByInd=function(r){var s=0,l=this.layers.length;for(s=0;s<l;s+=1)if(this.layers[s].ind===r)return s;return-1},Ae.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var l=this.createItem(this.layers[r]);if(s[r]=l,dl()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(l),l.initExpressions()),this.appendElementInPos(l,r),this.layers[r].tt){var c="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(c===-1)return;if(!this.elements[c]||this.elements[c]===!0)this.buildItem(c),this.addPendingElement(l);else{var m=s[c],p=m.getMatte(this.layers[r].tt);l.setMatte(p)}}}},Ae.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,l=this.elements.length;s<l;){if(this.elements[s]===r){var c="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[c],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ae.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,l=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=l-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<l;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ae.prototype.appendElementInPos=function(r,s){var l=r.getBaseElement();if(l){for(var c=0,m;c<s;)this.elements[c]&&this.elements[c]!==!0&&this.elements[c].getBaseElement()&&(m=this.elements[c].getBaseElement()),c+=1;m?this.layerElement.insertBefore(l,m):this.layerElement.appendChild(l)}},Ae.prototype.hide=function(){this.layerElement.style.display="none"},Ae.prototype.show=function(){this.layerElement.style.display="block"};function Ii(){}x([to,Ps,Fs,eo,Ya],Ii),Ii.prototype.initElement=function(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initTransform(r,s,l),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},Ii.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var l,c=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),l=c-1;l>=0;l-=1)(this.completeLayers||this.elements[l])&&(this.elements[l].prepareFrame(this.renderedFrame-this.layers[l].st),this.elements[l]._mdf&&(this._mdf=!0))}},Ii.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()},Ii.prototype.setElements=function(r){this.elements=r},Ii.prototype.getElements=function(){return this.elements},Ii.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},Ii.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Xa(r,s,l){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Z(this.layers.length):[],this.initElement(r,s,l),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}x([Ae,Ii,Wa],Xa),Xa.prototype.createComp=function(r){return new Xa(r,this.globalData,this)};function oh(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=Ct("svg");var l="";if(s&&s.title){var c=Ct("title"),m=er();c.setAttribute("id",m),c.textContent=s.title,this.svgElement.appendChild(c),l+=m}if(s&&s.description){var p=Ct("desc"),b=er();p.setAttribute("id",b),p.textContent=s.description,this.svgElement.appendChild(p),l+=" "+b}l&&this.svgElement.setAttribute("aria-labelledby",l);var I=Ct("defs");this.svgElement.appendChild(I);var y=Ct("g");this.svgElement.appendChild(y),this.layerElement=y,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return x([Ae],oh),oh.prototype.createComp=function(r){return new Xa(r,this.globalData,this)},tT("svg",oh),Qi.registerModifier("tm",Pr),Qi.registerModifier("pb",Va),Qi.registerModifier("rp",Jr),Qi.registerModifier("rd",za),Qi.registerModifier("zz",Ha),Qi.registerModifier("op",Ua),Wt})});var wl=globalThis,kl=wl.ShadowRoot&&(wl.ShadyCSS===void 0||wl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ah=Symbol(),rf=new WeakMap,Za=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==ah)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(kl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=rf.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&rf.set(t,o))}return o}toString(){return this.cssText}},of=n=>new Za(typeof n=="string"?n:n+"",void 0,ah),z=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((e,i,a)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+n[a+1],n[0]);return new Za(t,n,ah)},nh=(n,o)=>{if(kl)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=wl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,n.appendChild(e)}},Nl=kl?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return of(t)})(n):n;var{is:QT,defineProperty:JT,getOwnPropertyDescriptor:tx,getOwnPropertyNames:ex,getOwnPropertySymbols:rx,getPrototypeOf:ix}=Object,lo=globalThis,sf=lo.trustedTypes,ox=sf?sf.emptyScript:"",lh=lo.reactiveElementPolyfillSupport,Qa=(n,o)=>n,Ja={toAttribute(n,o){switch(o){case Boolean:n=n?ox:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Ll=(n,o)=>!QT(n,o),af={attribute:!0,type:String,converter:Ja,reflect:!1,hasChanged:Ll},nf,lf;(nf=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(lf=lo.litPropertyMetadata)!=null||(lo.litPropertyMetadata=new WeakMap);var Ni=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=af){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&&JT(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var d;let{get:i,set:a}=(d=tx(this.prototype,o))!=null?d:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let v=i==null?void 0:i.call(this);a.call(this,f),this.requestUpdate(o,v,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:af}static _$Ei(){if(this.hasOwnProperty(Qa("elementProperties")))return;let o=ix(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Qa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qa("properties"))){let t=this.properties,e=[...ex(t),...rx(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(Nl(i))}else o!==void 0&&t.push(Nl(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 nh(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 a;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let d=(((a=e.converter)==null?void 0:a.toAttribute)!==void 0?e.converter:Ja).toAttribute(t,e.type);this._$Em=o,d==null?this.removeAttribute(i):this.setAttribute(i,d),this._$Em=null}}_$AK(o,t){var a;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let d=e.getPropertyOptions(i),f=typeof d.converter=="function"?{fromAttribute:d.converter}:((a=d.converter)==null?void 0:a.fromAttribute)!==void 0?d.converter:Ja;this._$Em=i,this[i]=f.fromAttribute(t,d.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:Ll)(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[d,f]of this._$Ep)this[d]=f;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[d,f]of a)f.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(a=>{var d;return(d=a.hostUpdate)==null?void 0:d.call(a)}),this.update(t)):this._$EU()}catch(a){throw o=!1,this._$EU(),a}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){}},df;Ni.elementStyles=[],Ni.shadowRootOptions={mode:"open"},Ni[Qa("elementProperties")]=new Map,Ni[Qa("finalized")]=new Map,lh==null||lh({ReactiveElement:Ni}),((df=lo.reactiveElementVersions)!=null?df:lo.reactiveElementVersions=[]).push("2.0.4");var en=globalThis,Ml=en.trustedTypes,cf=Ml?Ml.createPolicy("lit-html",{createHTML:n=>n}):void 0,hh="$lit$",Li=`lit$${Math.random().toFixed(9).slice(2)}$`,ph="?"+Li,sx=`<${ph}>`,Ko=document,rn=()=>Ko.createComment(""),on=n=>n===null||typeof n!="object"&&typeof n!="function",mh=Array.isArray,gf=n=>mh(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",dh=`[
|
|
1
|
+
"use strict";(()=>{var KT=Object.create;var sh=Object.defineProperty;var ef=Object.getOwnPropertyDescriptor;var WT=Object.getOwnPropertyNames;var YT=Object.getPrototypeOf,jT=Object.prototype.hasOwnProperty;var qT=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var XT=(n,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of WT(o))!jT.call(n,i)&&i!==t&&sh(n,i,{get:()=>o[i],enumerable:!(e=ef(o,i))||e.enumerable});return n};var ZT=(n,o,t)=>(t=n!=null?KT(YT(n)):{},XT(o||!n||!n.__esModule?sh(t,"default",{value:n,enumerable:!0}):t,n));var h=(n,o,t,e)=>{for(var i=e>1?void 0:e?ef(o,t):o,a=n.length-1,d;a>=0;a--)(d=n[a])&&(i=(e?d(o,t,i):d(i))||i);return e&&i&&sh(o,t,i),i};var pv=qT((gn,id)=>{typeof navigator<"u"&&function(n,o){typeof gn=="object"&&typeof id<"u"?id.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(gn,function(){"use strict";var n="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},a=function(){return t},d=function(s){o=s},f=function(){return o};function v(r){return document.createElement(r)}function x(r,s){var l,c=r.length,m;for(l=0;l<c;l+=1){m=r[l].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function R(r,s){return Object.getOwnPropertyDescriptor(r,s)}function H(r){function s(){}return s.prototype=r,s}var J=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(l){this.audios.push(l)},pause:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].pause()},resume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].resume()},setRate:function(l){var c,m=this.audios.length;for(c=0;c<m;c+=1)this.audios[c].setRate(l)},createAudio:function(l){return this.audioFactory?this.audioFactory(l):window.Howl?new window.Howl({src:[l]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(l){this.audioFactory=l},setVolume:function(l){this._volume=l,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),W=function(){function r(l,c){var m=0,p=[],b;switch(l){case"int16":case"uint8c":b=1;break;default:b=1.1;break}for(m=0;m<c;m+=1)p.push(b);return p}function s(l,c){return l==="float32"?new Float32Array(c):l==="int16"?new Int16Array(c):l==="uint8c"?new Uint8ClampedArray(c):r(l,c)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function Z(r){return Array.apply(null,{length:r})}function ot(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ot=function(l){return typeof l}:ot=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},ot(r)}var st=!0,ht=null,bt=null,yt="",It=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Gt=Math.pow,Pt=Math.sqrt,ne=Math.floor,Ge=Math.max,qt=Math.min,Ee={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,l=r.length;for(s=0;s<l;s+=1)Ee[r[s]]=Math[r[s]]})();function Te(){return{}}Ee.random=Math.random,Ee.abs=function(r){var s=ot(r);if(s==="object"&&r.length){var l=Z(r.length),c,m=r.length;for(c=0;c<m;c+=1)l[c]=Math.abs(r[c]);return l}return Math.abs(r)};var xe=150,kt=Math.PI/180,se=.5519;function Ke(r){Rt=!!r}function Je(r){return Rt?Math.round(r):r}function tr(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 Sr(r,s,l,c){this.type=r,this.currentTime=s,this.totalTime=l,this.direction=c<0?-1:1}function ll(r,s){this.type=r,this.direction=s<0?-1:1}function lu(r,s,l,c){this.type=r,this.currentLoop=l,this.totalLoops=s,this.direction=c<0?-1:1}function du(r,s,l){this.type=r,this.firstFrame=s,this.totalFrames=l}function cu(r,s){this.type=r,this.target=s}function KE(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function WE(r){this.type="configError",this.nativeError=r}function sC(r,s){this.type=r,this.nativeError=s}var er=function(){var r=0;return function(){return r+=1,yt+"__lottie_element_"+r}}();function Wc(r,s,l){var c,m,p,b,I,y,k,M;switch(b=Math.floor(r*6),I=r*6-b,y=l*(1-s),k=l*(1-I*s),M=l*(1-(1-I)*s),b%6){case 0:c=l,m=M,p=y;break;case 1:c=k,m=l,p=y;break;case 2:c=y,m=l,p=M;break;case 3:c=y,m=k,p=l;break;case 4:c=M,m=y,p=l;break;case 5:c=l,m=y,p=k;break;default:break}return[c,m,p]}function Yc(r,s,l){var c=Math.max(r,s,l),m=Math.min(r,s,l),p=c-m,b,I=c===0?0:p/c,y=c/255;switch(c){case m:b=0;break;case r:b=s-l+p*(s<l?6:0),b/=6*p;break;case s:b=l-r+p*2,b/=6*p;break;case l:b=r-s+p*4,b/=6*p;break;default:break}return[b,I,y]}function hu(r,s){var l=Yc(r[0]*255,r[1]*255,r[2]*255);return l[1]+=s,l[1]>1?l[1]=1:l[1]<=0&&(l[1]=0),Wc(l[0],l[1],l[2])}function pu(r,s){var l=Yc(r[0]*255,r[1]*255,r[2]*255);return l[2]+=s,l[2]>1?l[2]=1:l[2]<0&&(l[2]=0),Wc(l[0],l[1],l[2])}function mu(r,s){var l=Yc(r[0]*255,r[1]*255,r[2]*255);return l[0]+=s/360,l[0]>1?l[0]-=1:l[0]<0&&(l[0]+=1),Wc(l[0],l[1],l[2])}var aC=function(){var r=[],s,l;for(s=0;s<256;s+=1)l=s.toString(16),r[s]=l.length===1?"0"+l:l;return function(c,m,p){return c<0&&(c=0),m<0&&(m=0),p<0&&(p=0),"#"+r[c]+r[m]+r[p]}}(),YE=function(s){st=!!s},jE=function(){return st},qE=function(s){ht=s},dl=function(){return ht},nC=function(s){bt=s},uu=function(){return bt},cl=function(s){xe=s},Ra=function(){return xe},XE=function(s){yt=s},lC=function(){return yt};function Ct(r){return document.createElementNS(n,r)}function hl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hl=function(l){return typeof l}:hl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},hl(r)}var Da=function(){var r=1,s=[],l,c,m={onmessage:function(){},postMessage:function(O){l({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function b(A){if(window.Worker&&window.Blob&&a()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",A.toString()],{type:"text/javascript"}),F=URL.createObjectURL(O);return new Worker(F)}return l=A,m}function I(){c||(c=b(function(O){function F(){function G(rt,_){var P,g,E=rt.length,q,B,ct,gt;for(g=0;g<E;g+=1)if(P=rt[g],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var St=P.masksProperties;for(B=St.length,q=0;q<B;q+=1)if(St[q].pt.k.i)N(St[q].pt.k);else for(gt=St[q].pt.k.length,ct=0;ct<gt;ct+=1)St[q].pt.k[ct].s&&N(St[q].pt.k[ct].s[0]),St[q].pt.k[ct].e&&N(St[q].pt.k[ct].e[0])}P.ty===0?(P.layers=T(P.refId,_),G(P.layers,_)):P.ty===4?C(P.shapes):P.ty===5&&_t(P)}}function L(rt,_){if(rt){var P=0,g=rt.length;for(P=0;P<g;P+=1)rt[P].t===1&&(rt[P].data.layers=T(rt[P].data.refId,_),G(rt[P].data.layers,_))}}function w(rt,_){for(var P=0,g=_.length;P<g;){if(_[P].id===rt)return _[P];P+=1}return null}function T(rt,_){var P=w(rt,_);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function C(rt){var _,P=rt.length,g,E;for(_=P-1;_>=0;_-=1)if(rt[_].ty==="sh")if(rt[_].ks.k.i)N(rt[_].ks.k);else for(E=rt[_].ks.k.length,g=0;g<E;g+=1)rt[_].ks.k[g].s&&N(rt[_].ks.k[g].s[0]),rt[_].ks.k[g].e&&N(rt[_].ks.k[g].e[0]);else rt[_].ty==="gr"&&C(rt[_].it)}function N(rt){var _,P=rt.i.length;for(_=0;_<P;_+=1)rt.i[_][0]+=rt.v[_][0],rt.i[_][1]+=rt.v[_][1],rt.o[_][0]+=rt.v[_][0],rt.o[_][1]+=rt.v[_][1]}function $(rt,_){var P=_?_.split("."):[100,100,100];return rt[0]>P[0]?!0:P[0]>rt[0]?!1:rt[1]>P[1]?!0:P[1]>rt[1]?!1:rt[2]>P[2]?!0:P[2]>rt[2]?!1:null}var Y=function(){var rt=[4,4,14];function _(g){var E=g.t.d;g.t.d={k:[{s:E,t:0}]}}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===5&&_(g[E])}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),X=function(){var rt=[4,7,99];return function(_){if(_.chars&&!$(rt,_.v)){var P,g=_.chars.length;for(P=0;P<g;P+=1){var E=_.chars[P];E.data&&E.data.shapes&&(C(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[P].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function _(g){var E=g.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===5&&_(g[E])}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),At=function(){var rt=[4,1,9];function _(g){var E,q=g.length,B,ct;for(E=0;E<q;E+=1)if(g[E].ty==="gr")_(g[E].it);else if(g[E].ty==="fl"||g[E].ty==="st")if(g[E].c.k&&g[E].c.k[0].i)for(ct=g[E].c.k.length,B=0;B<ct;B+=1)g[E].c.k[B].s&&(g[E].c.k[B].s[0]/=255,g[E].c.k[B].s[1]/=255,g[E].c.k[B].s[2]/=255,g[E].c.k[B].s[3]/=255),g[E].c.k[B].e&&(g[E].c.k[B].e[0]/=255,g[E].c.k[B].e[1]/=255,g[E].c.k[B].e[2]/=255,g[E].c.k[B].e[3]/=255);else g[E].c.k[0]/=255,g[E].c.k[1]/=255,g[E].c.k[2]/=255,g[E].c.k[3]/=255}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===4&&_(g[E].shapes)}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),ft=function(){var rt=[4,4,18];function _(g){var E,q=g.length,B,ct;for(E=q-1;E>=0;E-=1)if(g[E].ty==="sh")if(g[E].ks.k.i)g[E].ks.k.c=g[E].closed;else for(ct=g[E].ks.k.length,B=0;B<ct;B+=1)g[E].ks.k[B].s&&(g[E].ks.k[B].s[0].c=g[E].closed),g[E].ks.k[B].e&&(g[E].ks.k[B].e[0].c=g[E].closed);else g[E].ty==="gr"&&_(g[E].it)}function P(g){var E,q,B=g.length,ct,gt,St,zt;for(q=0;q<B;q+=1){if(E=g[q],E.hasMask){var Bt=E.masksProperties;for(gt=Bt.length,ct=0;ct<gt;ct+=1)if(Bt[ct].pt.k.i)Bt[ct].pt.k.c=Bt[ct].cl;else for(zt=Bt[ct].pt.k.length,St=0;St<zt;St+=1)Bt[ct].pt.k[St].s&&(Bt[ct].pt.k[St].s[0].c=Bt[ct].cl),Bt[ct].pt.k[St].e&&(Bt[ct].pt.k[St].e[0].c=Bt[ct].cl)}E.ty===4&&_(E.shapes)}}return function(g){if($(rt,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}();function nt(rt){rt.__complete||(At(rt),Y(rt),X(rt),it(rt),ft(rt),G(rt.layers,rt.assets),L(rt.chars,rt.assets),rt.__complete=!0)}function _t(rt){rt.t.a.length===0&&"m"in rt.t.p}var mt={};return mt.completeData=nt,mt.checkColors=At,mt.checkChars=X,mt.checkPathProperties=it,mt.checkShapes=ft,mt.completeLayers=G,mt}if(p.dataManager||(p.dataManager=F()),p.assetLoader||(p.assetLoader=function(){function G(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&hl(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 $,Y=new XMLHttpRequest;try{Y.responseType="json"}catch{}Y.onreadystatechange=function(){if(Y.readyState===4)if(Y.status===200)$=G(Y),C($);else try{$=G(Y),C($)}catch(X){N&&N(X)}};try{Y.open(["G","E","T"].join(""),w,!0)}catch{Y.open(["G","E","T"].join(""),T+"/"+w,!0)}Y.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(G){p.dataManager.completeData(G),p.postMessage({id:O.data.id,payload:G,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var D=O.data.animation;p.dataManager.completeData(D),p.postMessage({id:O.data.id,payload:D,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(G){p.postMessage({id:O.data.id,payload:G,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),c.onmessage=function(A){var O=A.data,F=O.id,D=s[F];s[F]=null,O.status==="success"?D.onComplete(O.payload):D.onError&&D.onError()})}function y(A,O){r+=1;var F="processId_"+r;return s[F]={onComplete:A,onError:O},F}function k(A,O,F){I();var D=y(O,F);c.postMessage({type:"loadAnimation",path:A,fullPath:window.location.origin+window.location.pathname,id:D})}function M(A,O,F){I();var D=y(O,F);c.postMessage({type:"loadData",path:A,fullPath:window.location.origin+window.location.pathname,id:D})}function j(A,O,F){I();var D=y(O,F);c.postMessage({type:"complete",animation:A,id:D})}return{loadAnimation:k,loadData:M,completeAnimation:j}}(),ZE=function(){var r=function(){var L=v("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function c(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=c(L,this.assetsPath,this.path),T=Ct("image");It?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function b(L){var w=c(L,this.assetsPath,this.path),T=v("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=c(L,this.assetsPath,this.path);return Da.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 j(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 A(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function F(){return this.totalFootages===this.loadedFootagesCount}function D(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function G(){this._imageLoaded=s.bind(this),this._footageLoaded=l.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return G.prototype={loadAssets:y,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:F,destroy:A,getAsset:j,createImgData:b,createImageData:p,imageLoaded:s,footageLoaded:l,setCacheType:D},G}();function fu(){}fu.prototype={triggerEvent:function(s,l){if(this._cbs[s])for(var c=this._cbs[s],m=0;m<c.length;m+=1)c[m](l)},addEventListener:function(s,l){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(l),(function(){this.removeEventListener(s,l)}).bind(this)},removeEventListener:function(s,l){if(!l)this._cbs[s]=null;else if(this._cbs[s]){for(var c=0,m=this._cbs[s].length;c<m;)this._cbs[s][c]===l&&(this._cbs[s].splice(c,1),c-=1,m-=1),c+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var QE=function(){function r(s){for(var l=s.split(`\r
|
|
2
|
+
`),c={},m,p=0,b=0;b<l.length;b+=1)m=l[b].split(":"),m.length===2&&(c[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return c}return function(s){for(var l=[],c=0;c<s.length;c+=1){var m=s[c],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[c].cm)}catch{try{p.payload=r(s[c].cm)}catch{p.payload={name:s[c].cm}}}l.push(p)}return l}}(),JE=function(){function r(s){this.compositions.push(s)}return function(){function s(l){for(var c=0,m=this.compositions.length;c<m;){if(this.compositions[c].data&&this.compositions[c].data.nm===l)return this.compositions[c].prepareFrame&&this.compositions[c].data.xt&&this.compositions[c].prepareFrame(this.currentFrame),this.compositions[c].compInterface;c+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),Pa={},tT=function(s,l){Pa[s]=l};function eT(r){return Pa[r]}function rT(){if(Pa.canvas)return"canvas";for(var r in Pa)if(Pa[r])return r;return""}function Fa(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fa=function(l){return typeof l}:Fa=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Fa(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=er(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=jE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=JE(),this.imagePreloader=new ZE,this.audioController=J(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Sr("drawnFrame",0,0,0),this.expressionsPlugin=dl()};x([fu],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var l=eT(s);this.renderer=new l(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Da.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Da.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Fa(s)!=="object"&&(s=JSON.parse(s));var l={wrapper:r,animationData:s},c=r.attributes;l.path=c.getNamedItem("data-animation-path")?c.getNamedItem("data-animation-path").value:c.getNamedItem("data-bm-path")?c.getNamedItem("data-bm-path").value:c.getNamedItem("bm-path")?c.getNamedItem("bm-path").value:"",l.animType=c.getNamedItem("data-anim-type")?c.getNamedItem("data-anim-type").value:c.getNamedItem("data-bm-type")?c.getNamedItem("data-bm-type").value:c.getNamedItem("bm-type")?c.getNamedItem("bm-type").value:c.getNamedItem("data-bm-renderer")?c.getNamedItem("data-bm-renderer").value:c.getNamedItem("bm-renderer")?c.getNamedItem("bm-renderer").value:rT()||"canvas";var m=c.getNamedItem("data-anim-loop")?c.getNamedItem("data-anim-loop").value:c.getNamedItem("data-bm-loop")?c.getNamedItem("data-bm-loop").value:c.getNamedItem("bm-loop")?c.getNamedItem("bm-loop").value:"";m==="false"?l.loop=!1:m==="true"?l.loop=!0:m!==""&&(l.loop=parseInt(m,10));var p=c.getNamedItem("data-anim-autoplay")?c.getNamedItem("data-anim-autoplay").value:c.getNamedItem("data-bm-autoplay")?c.getNamedItem("data-bm-autoplay").value:c.getNamedItem("bm-autoplay")?c.getNamedItem("bm-autoplay").value:!0;l.autoplay=p!=="false",l.name=c.getNamedItem("data-name")?c.getNamedItem("data-name").value:c.getNamedItem("data-bm-name")?c.getNamedItem("data-bm-name").value:c.getNamedItem("bm-name")?c.getNamedItem("bm-name").value:"";var b=c.getNamedItem("data-anim-prerender")?c.getNamedItem("data-anim-prerender").value:c.getNamedItem("data-bm-prerender")?c.getNamedItem("data-bm-prerender").value:c.getNamedItem("bm-prerender")?c.getNamedItem("bm-prerender").value:"";b==="false"&&(l.prerender=!1),l.path?this.setParams(l):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,l,c=s.length,m=r.layers,p,b=m.length;for(p=0;p<b;p+=1)for(l=0;l<c;){if(s[l].id===m[p].id){s[l]=m[p];break}l+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(c=r.assets.length,l=0;l<c;l+=1)this.animationData.assets.push(r.assets[l]);this.animationData.__complete=!1,Da.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=dl();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var l=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Da.loadData(l,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=QE(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=dl();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var l=typeof r=="number"?r:void 0,c=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(l,c)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,l=0;l<this.markers.length;l+=1)if(s=this.markers[l],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){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(c,s,l);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,l=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(l=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(l=!0,s=0)):this.setCurrentRawFrameValue(s),l&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var l=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?l=r:this.currentRawFrame+this.firstFrame>s&&(l=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,l!==-1&&this.goToAndStop(l,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Fa(r[0])==="object"){var l,c=r.length;for(l=0;l<c;l+=1)this.segments.push(r[l])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var l=r.p;l.indexOf("images/")!==-1&&(l=l.split("/")[1]),s=this.assetsPath+l}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,l=this.assets.length;s<l;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,l){try{var c=this.renderer.getElementByPath(r);c.updateDocumentData(s,l)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new Sr(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 lu(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new ll(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new du(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new cu(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Sr(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new lu(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new ll(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new du(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new cu(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new KE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new WE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var fe=function(){var r={},s=[],l=0,c=0,m=0,p=!0,b=!1;function I(_){for(var P=0,g=_.target;P<c;)s[P].animation===g&&(s.splice(P,1),P-=1,c-=1,g.isPaused||j()),P+=1}function y(_,P){if(!_)return null;for(var g=0;g<c;){if(s[g].elem===_&&s[g].elem!==null)return s[g].animation;g+=1}var E=new vt;return A(E,_),E.setData(_,P),E}function k(){var _,P=s.length,g=[];for(_=0;_<P;_+=1)g.push(s[_].animation);return g}function M(){m+=1,At()}function j(){m-=1}function A(_,P){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",j),s.push({elem:P,animation:_}),c+=1}function O(_){var P=new vt;return A(P,null),P.setParams(_),P}function F(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setSpeed(_,P)}function D(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setDirection(_,P)}function G(_){var P;for(P=0;P<c;P+=1)s[P].animation.play(_)}function L(_){var P=_-l,g;for(g=0;g<c;g+=1)s[g].animation.advanceTime(P);l=_,m&&!b?window.requestAnimationFrame(L):p=!0}function w(_){l=_,window.requestAnimationFrame(L)}function T(_){var P;for(P=0;P<c;P+=1)s[P].animation.pause(_)}function C(_,P,g){var E;for(E=0;E<c;E+=1)s[E].animation.goToAndStop(_,P,g)}function N(_){var P;for(P=0;P<c;P+=1)s[P].animation.stop(_)}function $(_){var P;for(P=0;P<c;P+=1)s[P].animation.togglePause(_)}function Y(_){var P;for(P=c-1;P>=0;P-=1)s[P].animation.destroy(_)}function X(_,P,g){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),q,B=E.length;for(q=0;q<B;q+=1)g&&E[q].setAttribute("data-bm-type",g),y(E[q],_);if(P&&B===0){g||(g="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=v("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",g),ct.appendChild(gt),y(gt,_)}}function it(){var _;for(_=0;_<c;_+=1)s[_].animation.resize()}function At(){!b&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ft(){b=!0}function nt(){b=!1,At()}function _t(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setVolume(_,P)}function mt(_){var P;for(P=0;P<c;P+=1)s[P].animation.mute(_)}function rt(_){var P;for(P=0;P<c;P+=1)s[P].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=F,r.setDirection=D,r.play=G,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=X,r.resize=it,r.goToAndStop=C,r.destroy=Y,r.freeze=ft,r.unfreeze=nt,r.setVolume=_t,r.mute=mt,r.unmute=rt,r.getRegisteredAnimations=k,r}(),$a=function(){var r={};r.getBezierEasing=l;var s={};function l(w,T,C,N,$){var Y=$||("bez_"+w+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[Y])return s[Y];var X=new L([w,T,C,N]);return s[Y]=X,X}var c=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 j(w,T){return 3*T-6*w}function A(w){return 3*w}function O(w,T,C){return((M(T,C)*w+j(T,C))*w+A(T))*w}function F(w,T,C){return 3*M(T,C)*w*w+2*j(T,C)*w+A(T)}function D(w,T,C,N,$){var Y,X,it=0;do X=T+(C-T)/2,Y=O(X,N,$)-w,Y>0?C=X:T=X;while(Math.abs(Y)>p&&++it<b);return X}function G(w,T,C,N){for(var $=0;$<c;++$){var Y=F(T,C,N);if(Y===0)return T;var X=O(T,C,N)-w;T-=X/Y}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],Y=this._p[3];return this._precomputed||this._precompute(),C===N&&$===Y?T:T===0?0:T===1?1:O(this._getTForX(T),N,Y)},_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,Y=0,X=1,it=I-1;X!==it&&$[X]<=T;++X)Y+=y;--X;var At=(T-$[X])/($[X+1]-$[X]),ft=Y+At*y,nt=F(ft,C,N);return nt>=m?G(T,ft,C,N):nt===0?ft:D(T,Y,Y+y,C,N)}},r}(),vu=function(){function r(s){return s.concat(Z(s.length))}return{double:r}}(),pl=function(){return function(r,s,l){var c=0,m=r,p=Z(m),b={newElement:I,release:y};function I(){var k;return c?(c-=1,k=p[c]):k=s(),k}function y(k){c===m&&(p=vu.double(p),m*=2),l&&l(k),p[c]=k,c+=1}return b}}(),gu=function(){function r(){return{addedLength:0,percents:W("float32",Ra()),lengths:W("float32",Ra())}}return pl(8,r)}(),bu=function(){function r(){return{lengths:[],totalLength:0}}function s(l){var c,m=l.lengths.length;for(c=0;c<m;c+=1)gu.release(l.lengths[c]);l.lengths.length=0}return pl(8,r,s)}();function iT(){var r=Math;function s(A,O,F,D,G,L){var w=A*D+O*G+F*L-G*D-L*A-F*O;return w>-.001&&w<.001}function l(A,O,F,D,G,L,w,T,C){if(F===0&&L===0&&C===0)return s(A,O,D,G,w,T);var N=r.sqrt(r.pow(D-A,2)+r.pow(G-O,2)+r.pow(L-F,2)),$=r.sqrt(r.pow(w-A,2)+r.pow(T-O,2)+r.pow(C-F,2)),Y=r.sqrt(r.pow(w-D,2)+r.pow(T-G,2)+r.pow(C-L,2)),X;return N>$?N>Y?X=N-$-Y:X=Y-$-N:Y>$?X=Y-$-N:X=$-N-Y,X>-1e-4&&X<1e-4}var c=function(){return function(A,O,F,D){var G=Ra(),L,w,T,C,N,$=0,Y,X=[],it=[],At=gu.newElement();for(T=F.length,L=0;L<G;L+=1){for(N=L/(G-1),Y=0,w=0;w<T;w+=1)C=Gt(1-N,3)*A[w]+3*Gt(1-N,2)*N*F[w]+3*(1-N)*Gt(N,2)*D[w]+Gt(N,3)*O[w],X[w]=C,it[w]!==null&&(Y+=Gt(X[w]-it[w],2)),it[w]=X[w];Y&&(Y=Pt(Y),$+=Y),At.percents[L]=N,At.lengths[L]=$}return At.addedLength=$,At}}();function m(A){var O=bu.newElement(),F=A.c,D=A.v,G=A.o,L=A.i,w,T=A._length,C=O.lengths,N=0;for(w=0;w<T-1;w+=1)C[w]=c(D[w],D[w+1],G[w],L[w+1]),N+=C[w].addedLength;return F&&T&&(C[w]=c(D[w],D[0],G[w],L[0]),N+=C[w].addedLength),O.totalLength=N,O}function p(A){this.segmentLength=0,this.points=new Array(A)}function b(A,O){this.partialLength=A,this.point=O}var I=function(){var A={};return function(O,F,D,G){var L=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+D[0]+"_"+D[1]+"_"+G[0]+"_"+G[1]).replace(/\./g,"p");if(!A[L]){var w=Ra(),T,C,N,$,Y,X=0,it,At,ft=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&s(O[0],O[1],F[0],F[1],O[0]+D[0],O[1]+D[1])&&s(O[0],O[1],F[0],F[1],F[0]+G[0],F[1]+G[1])&&(w=2);var nt=new p(w);for(N=D.length,T=0;T<w;T+=1){for(At=Z(N),Y=T/(w-1),it=0,C=0;C<N;C+=1)$=Gt(1-Y,3)*O[C]+3*Gt(1-Y,2)*Y*(O[C]+D[C])+3*(1-Y)*Gt(Y,2)*(F[C]+G[C])+Gt(Y,3)*F[C],At[C]=$,ft!==null&&(it+=Gt(At[C]-ft[C],2));it=Pt(it),X+=it,nt.points[T]=new b(it,At),ft=At}nt.segmentLength=X,A[L]=nt}return A[L]}}();function y(A,O){var F=O.percents,D=O.lengths,G=F.length,L=ne((G-1)*A),w=A*O.addedLength,T=0;if(L===G-1||L===0||w===D[L])return F[L];for(var C=D[L]>w?-1:1,N=!0;N;)if(D[L]<=w&&D[L+1]>w?(T=(w-D[L])/(D[L+1]-D[L]),N=!1):L+=C,L<0||L>=G-1){if(L===G-1)return F[L];N=!1}return F[L]+(F[L+1]-F[L])*T}function k(A,O,F,D,G,L){var w=y(G,L),T=1-w,C=r.round((T*T*T*A[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*D[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*A[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*D[1]+w*w*w*O[1])*1e3)/1e3;return[C,N]}var M=W("float32",8);function j(A,O,F,D,G,L,w){G<0?G=0:G>1&&(G=1);var T=y(G,w);L=L>1?1:L;var C=y(L,w),N,$=A.length,Y=1-T,X=1-C,it=Y*Y*Y,At=T*Y*Y*3,ft=T*T*Y*3,nt=T*T*T,_t=Y*Y*X,mt=T*Y*X+Y*T*X+Y*Y*C,rt=T*T*X+Y*T*C+T*Y*C,_=T*T*C,P=Y*X*X,g=T*X*X+Y*C*X+Y*X*C,E=T*C*X+Y*C*C+T*X*C,q=T*C*C,B=X*X*X,ct=C*X*X+X*C*X+X*X*C,gt=C*C*X+X*C*C+C*X*C,St=C*C*C;for(N=0;N<$;N+=1)M[N*4]=r.round((it*A[N]+At*F[N]+ft*D[N]+nt*O[N])*1e3)/1e3,M[N*4+1]=r.round((_t*A[N]+mt*F[N]+rt*D[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((P*A[N]+g*F[N]+E*D[N]+q*O[N])*1e3)/1e3,M[N*4+3]=r.round((B*A[N]+ct*F[N]+gt*D[N]+St*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:j,getPointInSegment:k,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:l}}var Qr=iT(),Fo=e,yu=Math.abs;function Eu(r,s){var l=this.offsetTime,c;this.propType==="multidimensional"&&(c=W("float32",this.pv.length));for(var m=s.lastIndex,p=m,b=this.keyframes.length-1,I=!0,y,k,M;I;){if(y=this.keyframes[p],k=this.keyframes[p+1],p===b-1&&r>=k.t-l){y.h&&(y=k),m=0;break}if(k.t-l>r){m=p;break}p<b-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var j,A,O,F,D,G,L=k.t-l,w=y.t-l,T;if(y.to){M.bezierData||(M.bezierData=Qr.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(A=C.points[N].point.length,j=0;j<A;j+=1)c[j]=C.points[N].point[j]}else{M.__fnct?G=M.__fnct:(G=$a.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=G),O=G((r-w)/(L-w));var $=C.segmentLength*O,Y,X=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(D=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,F=C.points.length;I;){if(X+=C.points[D].partialLength,$===0||O===0||D===C.points.length-1){for(A=C.points[D].point.length,j=0;j<A;j+=1)c[j]=C.points[D].point[j];break}else if($>=X&&$<X+C.points[D+1].partialLength){for(Y=($-X)/C.points[D+1].partialLength,A=C.points[D].point.length,j=0;j<A;j+=1)c[j]=C.points[D].point[j]+(C.points[D+1].point[j]-C.points[D].point[j])*Y;break}D<F-1?D+=1:I=!1}s._lastPoint=D,s._lastAddedLength=X-C.points[D].partialLength,s._lastKeyframeIndex=p}}else{var it,At,ft,nt,_t;if(b=y.s.length,T=k.s||y.e,this.sh&&y.h!==1)if(r>=L)c[0]=T[0],c[1]=T[1],c[2]=T[2];else if(r<=w)c[0]=y.s[0],c[1]=y.s[1],c[2]=y.s[2];else{var mt=Tu(y.s),rt=Tu(T),_=(r-w)/(L-w);sT(c,oT(mt,rt,_))}else for(p=0;p<b;p+=1)y.h!==1&&(r>=L?O=1:r<w?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?G=M.__fnct[p]:(it=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],At=y.o.y[p]===void 0?y.o.y[0]:y.o.y[p],ft=y.i.x[p]===void 0?y.i.x[0]:y.i.x[p],nt=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],G=$a.getBezierEasing(it,At,ft,nt).get,M.__fnct[p]=G)):M.__fnct?G=M.__fnct:(it=y.o.x,At=y.o.y,ft=y.i.x,nt=y.i.y,G=$a.getBezierEasing(it,At,ft,nt).get,y.keyframeMetadata=G),O=G((r-w)/(L-w)))),T=k.s||y.e,_t=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?c[p]=_t:c=_t}return s.lastIndex=m,c}function oT(r,s,l){var c=[],m=r[0],p=r[1],b=r[2],I=r[3],y=s[0],k=s[1],M=s[2],j=s[3],A,O,F,D,G;return O=m*y+p*k+b*M+I*j,O<0&&(O=-O,y=-y,k=-k,M=-M,j=-j),1-O>1e-6?(A=Math.acos(O),F=Math.sin(A),D=Math.sin((1-l)*A)/F,G=Math.sin(l*A)/F):(D=1-l,G=l),c[0]=D*m+G*y,c[1]=D*p+G*k,c[2]=D*b+G*M,c[3]=D*I+G*j,c}function sT(r,s){var l=s[0],c=s[1],m=s[2],p=s[3],b=Math.atan2(2*c*p-2*l*m,1-2*c*c-2*m*m),I=Math.asin(2*l*c+2*m*p),y=Math.atan2(2*l*p-2*c*m,1-2*l*l-2*m*m);r[0]=b/kt,r[1]=I/kt,r[2]=y/kt}function Tu(r){var s=r[0]*kt,l=r[1]*kt,c=r[2]*kt,m=Math.cos(s/2),p=Math.cos(l/2),b=Math.cos(c/2),I=Math.sin(s/2),y=Math.sin(l/2),k=Math.sin(c/2),M=m*p*b-I*y*k,j=I*y*b+m*p*k,A=I*p*b+m*y*k,O=m*y*b-I*p*k;return[j,A,O,M]}function xu(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,l=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Fo&&(this._caching.lastFrame>=l&&r>=l||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var c=this.interpolateValue(r,this._caching);this.pv=c}return this._caching.lastFrame=r,this.pv}function ml(r){var s;if(this.propType==="unidimensional")s=r*this.mult,yu(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var l=0,c=this.v.length;l<c;)s=r[l]*this.mult,yu(this.v[l]-s)>1e-5&&(this.v[l]=s,this._mdf=!0),l+=1}function ul(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,l=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)l=this.effectsSequence[r](l);this.setVValue(l),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function fl(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function aT(r,s,l,c){this.propType="unidimensional",this.mult=l||1,this.data=s,this.v=l?s.k*l:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=ul,this.setVValue=ml,this.addEffect=fl}function nT(r,s,l,c){this.propType="multidimensional",this.mult=l||1,this.data=s,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=W("float32",p),this.pv=W("float32",p),this.vel=W("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=ul,this.setVValue=ml,this.addEffect=fl}function lT(r,s,l,c){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Fo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.v=Fo,this.pv=Fo,this._isFirstFrame=!0,this.getValue=ul,this.setVValue=ml,this.interpolateValue=Eu,this.effectsSequence=[xu.bind(this)],this.addEffect=fl}function dT(r,s,l,c){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])&&Qr.pointOnLine2D(b[0],b[1],I[0],I[1],b[0]+y[0],b[1]+y[1])&&Qr.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])&&Qr.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])&&Qr.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=[xu.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.getValue=ul,this.setVValue=ml,this.interpolateValue=Eu,this.frameId=-1;var M=s.k[0].s.length;for(this.v=W("float32",M),this.pv=W("float32",M),m=0;m<M;m+=1)this.v[m]=Fo,this.pv[m]=Fo;this._caching={lastFrame:Fo,lastIndex:0,value:W("float32",M)},this.addEffect=fl}var lt=function(){function r(l,c,m,p,b){c.sid&&(c=l.globalData.slotManager.getProp(c));var I;if(!c.k.length)I=new aT(l,c,p,b);else if(typeof c.k[0]=="number")I=new nT(l,c,p,b);else switch(m){case 0:I=new lT(l,c,p,b);break;case 1:I=new dT(l,c,p,b);break;default:break}return I.effectsSequence.length&&b.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ne(){}Ne.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,l=this.dynamicProperties.length;for(s=0;s<l;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var $o=function(){function r(){return W("float32",2)}return pl(8,r)}();function Si(){this.c=!1,this._length=0,this._maxLength=8,this.v=Z(this._maxLength),this.o=Z(this._maxLength),this.i=Z(this._maxLength)}Si.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var l=0;l<s;)this.v[l]=$o.newElement(),this.o[l]=$o.newElement(),this.i[l]=$o.newElement(),l+=1},Si.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},Si.prototype.doubleArrayLength=function(){this.v=this.v.concat(Z(this._maxLength)),this.i=this.i.concat(Z(this._maxLength)),this.o=this.o.concat(Z(this._maxLength)),this._maxLength*=2},Si.prototype.setXYAt=function(r,s,l,c,m){var p;switch(this._length=Math.max(this._length,c+1),this._length>=this._maxLength&&this.doubleArrayLength(),l){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[c]||p[c]&&!m)&&(p[c]=$o.newElement()),p[c][0]=r,p[c][1]=s},Si.prototype.setTripleAt=function(r,s,l,c,m,p,b,I){this.setXYAt(r,s,"v",b,I),this.setXYAt(l,c,"o",b,I),this.setXYAt(m,p,"i",b,I)},Si.prototype.reverse=function(){var r=new Si;r.setPathData(this.c,this._length);var s=this.v,l=this.o,c=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],c[0][0],c[0][1],l[0][0],l[0][1],0,!1),m=1);var p=this._length-1,b=this._length,I;for(I=m;I<b;I+=1)r.setTripleAt(s[p][0],s[p][1],c[p][0],c[p][1],l[p][0],l[p][1],I,!1),p-=1;return r},Si.prototype.length=function(){return this._length};var De=function(){function r(){return new Si}function s(m){var p=m._length,b;for(b=0;b<p;b+=1)$o.release(m.v[b]),$o.release(m.i[b]),$o.release(m.o[b]),m.v[b]=null,m.i[b]=null,m.o[b]=null;m._length=0,m.c=!1}function l(m){var p=c.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 c=pl(4,r,s);return c.clone=l,c}();function jc(){this._length=0,this._maxLength=4,this.shapes=Z(this._maxLength)}jc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Z(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},jc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Ms=function(){var r={newShapeCollection:m,release:p},s=0,l=4,c=Z(l);function m(){var b;return s?(s-=1,b=c[s]):b=new jc,b}function p(b){var I,y=b._length;for(I=0;I<y;I+=1)De.release(b.shapes[I]);b._length=0,s===l&&(c=vu.double(c),l*=2),c[s]=b,s+=1}return r}(),vl=function(){var r=-999999;function s(L,w,T){var C=T.lastIndex,N,$,Y,X,it,At,ft,nt,_t,mt=this.keyframes;if(L<mt[0].t-this.offsetTime)N=mt[0].s[0],Y=!0,C=0;else if(L>=mt[mt.length-1].t-this.offsetTime)N=mt[mt.length-1].s?mt[mt.length-1].s[0]:mt[mt.length-2].e[0],Y=!0;else{for(var rt=C,_=mt.length-1,P=!0,g,E,q;P&&(g=mt[rt],E=mt[rt+1],!(E.t-this.offsetTime>L));)rt<_-1?rt+=1:P=!1;if(q=this.keyframesMetadata[rt]||{},Y=g.h===1,C=rt,!Y){if(L>=E.t-this.offsetTime)nt=1;else if(L<g.t-this.offsetTime)nt=0;else{var B;q.__fnct?B=q.__fnct:(B=$a.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y).get,q.__fnct=B),nt=B((L-(g.t-this.offsetTime))/(E.t-this.offsetTime-(g.t-this.offsetTime)))}$=E.s?E.s[0]:g.e[0]}N=g.s[0]}for(At=w._length,ft=N.i[0].length,T.lastIndex=C,X=0;X<At;X+=1)for(it=0;it<ft;it+=1)_t=Y?N.i[X][it]:N.i[X][it]+($.i[X][it]-N.i[X][it])*nt,w.i[X][it]=_t,_t=Y?N.o[X][it]:N.o[X][it]+($.o[X][it]-N.o[X][it])*nt,w.o[X][it]=_t,_t=Y?N.v[X][it]:N.v[X][it]+($.v[X][it]-N.v[X][it])*nt,w.v[X][it]=_t}function l(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<w&&L<w||C>T&&L>T)||(this._caching.lastIndex=C<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function c(){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=Ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=c,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=Ms.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=c,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[l.bind(this)]}k.prototype.getValue=b,k.prototype.interpolateShape=s,k.prototype.setVValue=p,k.prototype.addEffect=y;var M=function(){var L=se;function w(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ms.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:c,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,Y=this.s.v[1]/2,X=this.d!==3,it=this.v;it.v[0][0]=C,it.v[0][1]=N-Y,it.v[1][0]=X?C+$:C-$,it.v[1][1]=N,it.v[2][0]=C,it.v[2][1]=N+Y,it.v[3][0]=X?C-$:C+$,it.v[3][1]=N,it.i[0][0]=X?C-$*L:C+$*L,it.i[0][1]=N-Y,it.i[1][0]=X?C+$:C-$,it.i[1][1]=N-Y*L,it.i[2][0]=X?C+$*L:C-$*L,it.i[2][1]=N+Y,it.i[3][0]=X?C-$:C+$,it.i[3][1]=N+Y*L,it.o[0][0]=X?C+$*L:C-$*L,it.o[0][1]=N-Y,it.o[1][0]=X?C+$:C-$,it.o[1][1]=N+Y*L,it.o[2][0]=X?C-$*L:C+$*L,it.o[2][1]=N+Y,it.o[3][0]=X?C-$:C+$,it.o[3][1]=N-Y*L}},x([Ne],w),w}(),j=function(){function L(w,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=lt.getProp(w,T.ir,0,0,this),this.is=lt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(w,T.pt,0,0,this),this.p=lt.getProp(w,T.p,1,0,this),this.r=lt.getProp(w,T.r,0,kt,this),this.or=lt.getProp(w,T.or,0,0,this),this.os=lt.getProp(w,T.os,0,.01,this),this.localShapeCollection=Ms.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:c,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,Y=this.ir.v,X=this.os.v,it=this.is.v,At=2*Math.PI*$/(T*2),ft=2*Math.PI*Y/(T*2),nt,_t,mt,rt,_=-Math.PI/2;_+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,nt=0;nt<T;nt+=1){_t=N?$:Y,mt=N?X:it,rt=N?At:ft;var g=_t*Math.cos(_),E=_t*Math.sin(_),q=g===0&&E===0?0:E/Math.sqrt(g*g+E*E),B=g===0&&E===0?0:-g/Math.sqrt(g*g+E*E);g+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(g,E,g-q*rt*mt*P,E-B*rt*mt*P,g+q*rt*mt*P,E+B*rt*mt*P,nt,!0),N=!N,_+=C*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,$=this.os.v,Y=2*Math.PI*N/(T*4),X,it=-Math.PI*.5,At=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,X=0;X<T;X+=1){var ft=N*Math.cos(it),nt=N*Math.sin(it),_t=ft===0&&nt===0?0:nt/Math.sqrt(ft*ft+nt*nt),mt=ft===0&&nt===0?0:-ft/Math.sqrt(ft*ft+nt*nt);ft+=+this.p.v[0],nt+=+this.p.v[1],this.v.setTripleAt(ft,nt,ft-_t*Y*$*At,nt-mt*Y*$*At,ft+_t*Y*$*At,nt+mt*Y*$*At,X,!0),it+=C*At}this.paths.length=0,this.paths[0]=this.v}},x([Ne],L),L}(),A=function(){function L(w,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=Ms.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,Y=qt(N,$,this.r.v),X=Y*(1-se);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-$+Y,T+N,C-$+Y,T+N,C-$+X,0,!0),this.v.setTripleAt(T+N,C+$-Y,T+N,C+$-X,T+N,C+$-Y,1,!0),Y!==0?(this.v.setTripleAt(T+N-Y,C+$,T+N-Y,C+$,T+N-X,C+$,2,!0),this.v.setTripleAt(T-N+Y,C+$,T-N+X,C+$,T-N+Y,C+$,3,!0),this.v.setTripleAt(T-N,C+$-Y,T-N,C+$-Y,T-N,C+$-X,4,!0),this.v.setTripleAt(T-N,C-$+Y,T-N,C-$+X,T-N,C-$+Y,5,!0),this.v.setTripleAt(T-N+Y,C-$,T-N+Y,C-$,T-N+X,C-$,6,!0),this.v.setTripleAt(T+N-Y,C-$,T+N-X,C-$,T+N-Y,C-$,7,!0)):(this.v.setTripleAt(T-N,C+$,T-N+X,C+$,T-N,C+$,2),this.v.setTripleAt(T-N,C-$,T-N,C-$+X,T-N,C-$,3))):(this.v.setTripleAt(T+N,C-$+Y,T+N,C-$+X,T+N,C-$+Y,0,!0),Y!==0?(this.v.setTripleAt(T+N-Y,C-$,T+N-Y,C-$,T+N-X,C-$,1,!0),this.v.setTripleAt(T-N+Y,C-$,T-N+X,C-$,T-N+Y,C-$,2,!0),this.v.setTripleAt(T-N,C-$+Y,T-N,C-$+Y,T-N,C-$+X,3,!0),this.v.setTripleAt(T-N,C+$-Y,T-N,C+$-X,T-N,C+$-Y,4,!0),this.v.setTripleAt(T-N+Y,C+$,T-N+Y,C+$,T-N+X,C+$,5,!0),this.v.setTripleAt(T+N-Y,C+$,T+N-X,C+$,T+N-Y,C+$,6,!0),this.v.setTripleAt(T+N,C+$-Y,T+N,C+$-Y,T+N,C+$-X,7,!0)):(this.v.setTripleAt(T-N,C-$,T-N+X,C-$,T-N,C-$,1,!0),this.v.setTripleAt(T-N,C+$,T-N,C+$-X,T-N,C+$,2,!0),this.v.setTripleAt(T+N,C+$,T+N-X,C+$,T+N,C+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:c},x([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 A(L,w):T===6?C=new M(L,w):T===7&&(C=new j(L,w));return C.k&&L.addDynamicProperty(C),C}function F(){return I}function D(){return k}var G={};return G.getShapeProp=O,G.getConstructorFunction=F,G.getKeyframedConstructorFunction=D,G}();var Pe=function(){var r=Math.cos,s=Math.sin,l=Math.tan,c=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(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,-q,0,0,q,E,0,0,0,0,1,0,0,0,0,1)}function b(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(1,0,0,0,0,E,-q,0,0,q,E,0,0,0,0,1)}function I(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,0,q,0,0,1,0,0,-q,0,E,0,0,0,0,1)}function y(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,-q,0,0,q,E,0,0,0,0,1,0,0,0,0,1)}function k(g,E){return this._t(1,E,g,1,0,0)}function M(g,E){return this.shear(l(g),l(E))}function j(g,E){var q=r(E),B=s(E);return this._t(q,B,0,0,-B,q,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,l(g),1,0,0,0,0,1,0,0,0,0,1)._t(q,-B,0,0,B,q,0,0,0,0,1,0,0,0,0,1)}function A(g,E,q){return!q&&q!==0&&(q=1),g===1&&E===1&&q===1?this:this._t(g,0,0,0,0,E,0,0,0,0,q,0,0,0,0,1)}function O(g,E,q,B,ct,gt,St,zt,Bt,ve,ir,ti,or,Le,vr,Yt){return this.props[0]=g,this.props[1]=E,this.props[2]=q,this.props[3]=B,this.props[4]=ct,this.props[5]=gt,this.props[6]=St,this.props[7]=zt,this.props[8]=Bt,this.props[9]=ve,this.props[10]=ir,this.props[11]=ti,this.props[12]=or,this.props[13]=Le,this.props[14]=vr,this.props[15]=Yt,this}function F(g,E,q){return q=q||0,g!==0||E!==0||q!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,g,E,q,1):this}function D(g,E,q,B,ct,gt,St,zt,Bt,ve,ir,ti,or,Le,vr,Yt){var ut=this.props;if(g===1&&E===0&&q===0&&B===0&&ct===0&>===1&&St===0&&zt===0&&Bt===0&&ve===0&&ir===1&&ti===0)return ut[12]=ut[12]*g+ut[15]*or,ut[13]=ut[13]*gt+ut[15]*Le,ut[14]=ut[14]*ir+ut[15]*vr,ut[15]*=Yt,this._identityCalculated=!1,this;var _i=ut[0],oo=ut[1],wi=ut[2],ei=ut[3],ki=ut[4],Ni=ut[5],sr=ut[6],so=ut[7],ao=ut[8],Fr=ut[9],no=ut[10],$r=ut[11],Ho=ut[12],Il=ut[13],Cl=ut[14],_l=ut[15];return ut[0]=_i*g+oo*ct+wi*Bt+ei*or,ut[1]=_i*E+oo*gt+wi*ve+ei*Le,ut[2]=_i*q+oo*St+wi*ir+ei*vr,ut[3]=_i*B+oo*zt+wi*ti+ei*Yt,ut[4]=ki*g+Ni*ct+sr*Bt+so*or,ut[5]=ki*E+Ni*gt+sr*ve+so*Le,ut[6]=ki*q+Ni*St+sr*ir+so*vr,ut[7]=ki*B+Ni*zt+sr*ti+so*Yt,ut[8]=ao*g+Fr*ct+no*Bt+$r*or,ut[9]=ao*E+Fr*gt+no*ve+$r*Le,ut[10]=ao*q+Fr*St+no*ir+$r*vr,ut[11]=ao*B+Fr*zt+no*ti+$r*Yt,ut[12]=Ho*g+Il*ct+Cl*Bt+_l*or,ut[13]=Ho*E+Il*gt+Cl*ve+_l*Le,ut[14]=Ho*q+Il*St+Cl*ir+_l*vr,ut[15]=Ho*B+Il*zt+Cl*ti+_l*Yt,this._identityCalculated=!1,this}function G(g){var E=g.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(g){for(var E=0;E<16;){if(g.props[E]!==this.props[E])return!1;E+=1}return!0}function T(g){var E;for(E=0;E<16;E+=1)g.props[E]=this.props[E];return g}function C(g){var E;for(E=0;E<16;E+=1)this.props[E]=g[E]}function N(g,E,q){return{x:g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12],y:g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13],z:g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]}}function $(g,E,q){return g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12]}function Y(g,E,q){return g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13]}function X(g,E,q){return g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]}function it(){var g=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/g,q=-this.props[1]/g,B=-this.props[4]/g,ct=this.props[0]/g,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/g,St=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/g,zt=new Pe;return zt.props[0]=E,zt.props[1]=q,zt.props[4]=B,zt.props[5]=ct,zt.props[12]=gt,zt.props[13]=St,zt}function At(g){var E=this.getInverseMatrix();return E.applyToPointArray(g[0],g[1],g[2]||0)}function ft(g){var E,q=g.length,B=[];for(E=0;E<q;E+=1)B[E]=At(g[E]);return B}function nt(g,E,q){var B=W("float32",6);if(this.isIdentity())B[0]=g[0],B[1]=g[1],B[2]=E[0],B[3]=E[1],B[4]=q[0],B[5]=q[1];else{var ct=this.props[0],gt=this.props[1],St=this.props[4],zt=this.props[5],Bt=this.props[12],ve=this.props[13];B[0]=g[0]*ct+g[1]*St+Bt,B[1]=g[0]*gt+g[1]*zt+ve,B[2]=E[0]*ct+E[1]*St+Bt,B[3]=E[0]*gt+E[1]*zt+ve,B[4]=q[0]*ct+q[1]*St+Bt,B[5]=q[0]*gt+q[1]*zt+ve}return B}function _t(g,E,q){var B;return this.isIdentity()?B=[g,E,q]:B=[g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12],g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13],g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]],B}function mt(g,E){if(this.isIdentity())return g+","+E;var q=this.props;return Math.round((g*q[0]+E*q[4]+q[12])*100)/100+","+Math.round((g*q[1]+E*q[5]+q[13])*100)/100}function rt(){for(var g=0,E=this.props,q="matrix3d(",B=1e4;g<16;)q+=c(E[g]*B)/B,q+=g===15?")":",",g+=1;return q}function _(g){var E=1e4;return g<1e-6&&g>0||g>-1e-6&&g<0?c(g*E)/E:g}function P(){var g=this.props,E=_(g[0]),q=_(g[1]),B=_(g[4]),ct=_(g[5]),gt=_(g[12]),St=_(g[13]);return"matrix("+E+","+q+","+B+","+ct+","+gt+","+St+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=b,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=j,this.shear=k,this.scale=A,this.setTransform=O,this.translate=F,this.transform=D,this.multiply=G,this.applyToPoint=N,this.applyToX=$,this.applyToY=Y,this.applyToZ=X,this.applyToPointArray=_t,this.applyToTriplePoints=nt,this.applyToPointStringified=mt,this.toCSS=rt,this.to2dCSS=P,this.clone=T,this.cloneFromProps=C,this.equals=w,this.inversePoints=ft,this.inversePoint=At,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=W("float32",16),this.reset()}}();function gl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gl=function(l){return typeof l}:gl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},gl(r)}var Wt={},bl="__[STANDALONE]__",Au="__[ANIMATIONDATA]__",Su="";function cT(r){d(r)}function Iu(){bl===!0?fe.searchAnimations(Au,bl,Su):fe.searchAnimations()}function hT(r){YE(r)}function pT(r){XE(r)}function mT(r){return bl===!0&&(r.animationData=JSON.parse(Au)),fe.loadAnimation(r)}function uT(r){if(typeof r=="string")switch(r){case"high":cl(200);break;default:case"medium":cl(50);break;case"low":cl(10);break}else!isNaN(r)&&r>1&&cl(r);Ra()>=50?Ke(!1):Ke(!0)}function fT(){return typeof navigator<"u"}function vT(r,s){r==="expressions"&&qE(s)}function gT(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return vl;case"matrix":return Pe;default:return null}}Wt.play=fe.play,Wt.pause=fe.pause,Wt.setLocationHref=cT,Wt.togglePause=fe.togglePause,Wt.setSpeed=fe.setSpeed,Wt.setDirection=fe.setDirection,Wt.stop=fe.stop,Wt.searchAnimations=Iu,Wt.registerAnimation=fe.registerAnimation,Wt.loadAnimation=mT,Wt.setSubframeRendering=hT,Wt.resize=fe.resize,Wt.goToAndStop=fe.goToAndStop,Wt.destroy=fe.destroy,Wt.setQuality=uT,Wt.inBrowser=fT,Wt.installPlugin=vT,Wt.freeze=fe.freeze,Wt.unfreeze=fe.unfreeze,Wt.setVolume=fe.setVolume,Wt.mute=fe.mute,Wt.unmute=fe.unmute,Wt.getRegisteredAnimations=fe.getRegisteredAnimations,Wt.useWebWorker=i,Wt.setIDPrefix=pT,Wt.__getFactory=gT,Wt.version="5.12.2";function bT(){document.readyState==="complete"&&(clearInterval(TT),Iu())}function yT(r){for(var s=Cu.split("&"),l=0;l<s.length;l+=1){var c=s[l].split("=");if(decodeURIComponent(c[0])==r)return decodeURIComponent(c[1])}return null}var Cu="";if(bl){var _u=document.getElementsByTagName("script"),ET=_u.length-1,wu=_u[ET]||{src:""};Cu=wu.src?wu.src.replace(/^[^\?]+\??/,""):"",Su=yT("renderer")}var TT=setInterval(bT,100);try{!((typeof gn>"u"?"undefined":gl(gn))==="object"&&typeof id<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Wt)}catch{}var Qi=function(){var r={},s={};r.registerModifier=l,r.getModifier=c;function l(m,p){s[m]||(s[m]=p)}function c(m,p,b){return new s[m](p,b)}return r}();function Ir(){}Ir.prototype.initModifierProperties=function(){},Ir.prototype.addShapeToModifier=function(){},Ir.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Ms.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Ir.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)},Ir.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},x([Ne],Ir);function Pr(){}x([Ir],Pr),Pr.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},Pr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Pr.prototype.calculateShapeEdges=function(r,s,l,c,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<c||k.s*m>c+l)){var M,j;k.s*m<=c?M=0:M=(k.s*m-c)/l,k.e*m>=c+l?j=1:j=(k.e*m-c)/l,b.push([M,j])}return b.length||b.push([0,0]),b},Pr.prototype.releasePathsData=function(r){var s,l=r.length;for(s=0;s<l;s+=1)bu.release(r[s]);return r.length=0,r},Pr.prototype.processShapes=function(r){var s,l;if(this._mdf||r){var c=this.o.v%360/360;if(c<0&&(c+=1),this.s.v>1?s=1+c:this.s.v<0?s=0+c:s=this.s.v+c,this.e.v>1?l=1+c:this.e.v<0?l=0+c:l=this.e.v+c,s>l){var m=s;s=l,l=m}s=Math.round(s*1e4)*1e-4,l=Math.round(l*1e4)*1e-4,this.sValue=s,this.eValue=l}else s=this.sValue,l=this.eValue;var p,b,I=this.shapes.length,y,k,M,j,A,O=0;if(l===s)for(b=0;b<I;b+=1)this.shapes[b].localShapeCollection.releaseShapes(),this.shapes[b].shape._mdf=!0,this.shapes[b].shape.paths=this.shapes[b].localShapeCollection,this._mdf&&(this.shapes[b].pathsData.length=0);else if(l===1&&s===0||l===0&&s===1){if(this._mdf)for(b=0;b<I;b+=1)this.shapes[b].pathsData.length=0,this.shapes[b].shape._mdf=!0}else{var F=[],D,G;for(b=0;b<I;b+=1)if(D=this.shapes[b],!D.shape._mdf&&!this._mdf&&!r&&this.m!==2)D.shape.paths=D.localShapeCollection;else{if(p=D.shape.paths,k=p._length,A=0,!D.shape._mdf&&D.pathsData.length)A=D.totalShapeLength;else{for(M=this.releasePathsData(D.pathsData),y=0;y<k;y+=1)j=Qr.getSegmentsLength(p.shapes[y]),M.push(j),A+=j.totalLength;D.totalShapeLength=A,D.pathsData=M}O+=A,D.shape._mdf=!0}var L=s,w=l,T=0,C;for(b=I-1;b>=0;b-=1)if(D=this.shapes[b],D.shape._mdf){for(G=D.localShapeCollection,G.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,l,D.totalShapeLength,T,O),T+=D.totalShapeLength):C=[[L,w]],k=C.length,y=0;y<k;y+=1){L=C[y][0],w=C[y][1],F.length=0,w<=1?F.push({s:D.totalShapeLength*L,e:D.totalShapeLength*w}):L>=1?F.push({s:D.totalShapeLength*(L-1),e:D.totalShapeLength*(w-1)}):(F.push({s:D.totalShapeLength*L,e:D.totalShapeLength}),F.push({s:0,e:D.totalShapeLength*(w-1)}));var N=this.addShapes(D,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var $=D.shape.paths.shapes[D.shape.paths._length-1];if($.c){var Y=N.pop();this.addPaths(N,G),N=this.addShapes(D,F[1],Y)}else this.addPaths(N,G),N=this.addShapes(D,F[1])}this.addPaths(N,G)}}D.shape.paths=G}}},Pr.prototype.addPaths=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)s.addShape(r[l])},Pr.prototype.addSegment=function(r,s,l,c,m,p,b){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(l[0],l[1],"i",p+1),b&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(c[0],c[1],"v",p+1)},Pr.prototype.addSegmentFromArray=function(r,s,l,c){s.setXYAt(r[1],r[5],"o",l),s.setXYAt(r[2],r[6],"i",l+1),c&&s.setXYAt(r[0],r[4],"v",l),s.setXYAt(r[3],r[7],"v",l+1)},Pr.prototype.addShapes=function(r,s,l){var c=r.pathsData,m=r.shape.paths.shapes,p,b=r.shape.paths._length,I,y,k=0,M,j,A,O,F=[],D,G=!0;for(l?(j=l._length,D=l._length):(l=De.newElement(),j=0,D=0),F.push(l),p=0;p<b;p+=1){for(A=c[p].lengths,l.c=m[p].c,y=m[p].c?A.length:A.length+1,I=1;I<y;I+=1)if(M=A[I-1],k+M.addedLength<s.s)k+=M.addedLength,l.c=!1;else if(k>s.e){l.c=!1;break}else s.s<=k&&s.e>=k+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],l,j,G),G=!1):(O=Qr.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,A[I-1]),this.addSegmentFromArray(O,l,j,G),G=!1,l.c=!1),k+=M.addedLength,j+=1;if(m[p].c&&A.length){if(M=A[I-1],k<=s.e){var L=A[I-1].addedLength;s.s<=k&&s.e>=k+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],l,j,G),G=!1):(O=Qr.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,A[I-1]),this.addSegmentFromArray(O,l,j,G),G=!1,l.c=!1)}else l.c=!1;k+=M.addedLength,j+=1}if(l._length&&(l.setXYAt(l.v[D][0],l.v[D][1],"i",D),l.setXYAt(l.v[l._length-1][0],l.v[l._length-1][1],"o",l._length-1)),k>s.e)break;p<b-1&&(l=De.newElement(),G=!0,F.push(l),j=0)}return F};function Va(){}x([Ir],Va),Va.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},Va.prototype.processPath=function(r,s){var l=s/100,c=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)c[0]+=r.v[p][0],c[1]+=r.v[p][1];c[0]/=m,c[1]/=m;var b=De.newElement();b.c=r.c;var I,y,k,M,j,A;for(p=0;p<m;p+=1)I=r.v[p][0]+(c[0]-r.v[p][0])*l,y=r.v[p][1]+(c[1]-r.v[p][1])*l,k=r.o[p][0]+(c[0]-r.o[p][0])*-l,M=r.o[p][1]+(c[1]-r.o[p][1])*-l,j=r.i[p][0]+(c[0]-r.i[p][0])*-l,A=r.i[p][1]+(c[1]-r.i[p][1])*-l,b.setTripleAt(I,y,k,M,j,A,p);return b},Va.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var qc=function(){var r=[0,0];function s(y){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&y.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&y.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&y.skewFromAxis(-this.sk.v,this.sa.v),this.r?y.rotate(-this.r.v):y.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?y.translate(this.px.v,this.py.v,-this.pz.v):y.translate(this.px.v,this.py.v,0):y.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function l(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var M,j;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),j=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),j=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,j=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=[],j=[];var A=this.px,O=this.py;A._caching.lastFrame+A.offsetTime<=A.keyframes[0].t?(M[0]=A.getValueAtTime((A.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),j[0]=A.getValueAtTime(A.keyframes[0].t/k,0),j[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):A._caching.lastFrame+A.offsetTime>=A.keyframes[A.keyframes.length-1].t?(M[0]=A.getValueAtTime(A.keyframes[A.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),j[0]=A.getValueAtTime((A.keyframes[A.keyframes.length-1].t-.01)/k,0),j[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[A.pv,O.pv],j[0]=A.getValueAtTime((A._caching.lastFrame+A.offsetTime-.01)/k,A.offsetTime),j[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else j=r,M=j;this.v.rotate(-Math.atan2(M[1]-j[1],M[0]-j[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 c(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(y){this._addDynamicProperty(y),this.elem.addDynamicProperty(y),this._isDirty=!0}function b(y,k,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),k.p&&k.p.s?(this.px=lt.getProp(y,k.p.x,0,0,this),this.py=lt.getProp(y,k.p.y,0,0,this),k.p.z&&(this.pz=lt.getProp(y,k.p.z,0,0,this))):this.p=lt.getProp(y,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=lt.getProp(y,k.rx,0,kt,this),this.ry=lt.getProp(y,k.ry,0,kt,this),this.rz=lt.getProp(y,k.rz,0,kt,this),k.or.k[0].ti){var j,A=k.or.k.length;for(j=0;j<A;j+=1)k.or.k[j].to=null,k.or.k[j].ti=null}this.or=lt.getProp(y,k.or,1,kt,this),this.or.sh=!0}else this.r=lt.getProp(y,k.r||{k:0},0,kt,this);k.sk&&(this.sk=lt.getProp(y,k.sk,0,kt,this),this.sa=lt.getProp(y,k.sa,0,kt,this)),this.a=lt.getProp(y,k.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(y,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=lt.getProp(y,k.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}b.prototype={applyToMatrix:s,getValue:l,precalculateMatrix:c,autoOrient:m},x([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 Jr(){}x([Ir],Jr),Jr.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=qc.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},Jr.prototype.applyTransforms=function(r,s,l,c,m,p){var b=p?-1:1,I=c.s.v[0]+(1-c.s.v[0])*(1-m),y=c.s.v[1]+(1-c.s.v[1])*(1-m);r.translate(c.p.v[0]*b*m,c.p.v[1]*b*m,c.p.v[2]),s.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),s.rotate(-c.r.v*b*m),s.translate(c.a.v[0],c.a.v[1],c.a.v[2]),l.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),l.scale(p?1/I:I,p?1/y:y),l.translate(c.a.v[0],c.a.v[1],c.a.v[2])},Jr.prototype.init=function(r,s,l,c){for(this.elem=r,this.arr=s,this.pos=l,this.elemsData=c,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[l]);l>0;)l-=1,this._elements.unshift(s[l]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Jr.prototype.resetElements=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Jr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Jr.prototype.changeGroupRender=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)r[l]._render=s,r[l].ty==="gr"&&this.changeGroupRender(r[l].it,s)},Jr.prototype.processShapes=function(r){var s,l,c,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(c=0;c<=this._groups.length-1;c+=1){if(k=p<I,this._groups[c]._render=k,this.changeGroupRender(this._groups[c].it,k),!k){var M=this.elemsData[c].it,j=M[M.length-1];j.transform.op.v!==0?(j.transform.op._mdf=!0,j.transform.op.v=0):j.transform.op._mdf=!1}p+=1}this._currentCopies=I;var A=this.o.v,O=A%1,F=A>0?Math.floor(A):Math.ceil(A),D=this.pMatrix.props,G=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(A>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(A<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)}c=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[c].it,l=s[s.length-1].transform.mProps.v.props,C=l.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(c/(this._currentCopies-1)),w!==0){for((c!==0&&m===1||c!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(G[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],G[9],G[10],G[11],G[12],G[13],G[14],G[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15]),T=0;T<C;T+=1)l[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)l[T]=this.matrix.props[T];w+=1,p-=1,c+=m}}else for(p=this._currentCopies,c=0,m=1;p;)s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,c+=m;return b},Jr.prototype.addShape=function(){};function za(){}x([Ir],za),za.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},za.prototype.processPath=function(r,s){var l=De.newElement();l.c=r.c;var c,m=r._length,p,b,I,y,k,M,j=0,A,O,F,D,G,L;for(c=0;c<m;c+=1)p=r.v[c],I=r.o[c],b=r.i[c],p[0]===I[0]&&p[1]===I[1]&&p[0]===b[0]&&p[1]===b[1]?(c===0||c===m-1)&&!r.c?(l.setTripleAt(p[0],p[1],I[0],I[1],b[0],b[1],j),j+=1):(c===0?y=r.v[m-1]:y=r.v[c-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,G=p[0]+(y[0]-p[0])*M,A=G,L=p[1]-(p[1]-y[1])*M,O=L,F=A-(A-p[0])*se,D=O-(O-p[1])*se,l.setTripleAt(A,O,F,D,G,L,j),j+=1,c===m-1?y=r.v[0]:y=r.v[c+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,A=F,D=p[1]+(y[1]-p[1])*M,O=D,G=A-(A-p[0])*se,L=O-(O-p[1])*se,l.setTripleAt(A,O,F,D,G,L,j),j+=1):(l.setTripleAt(r.v[c][0],r.v[c][1],r.o[c][0],r.o[c][1],r.i[c][0],r.i[c][1],j),j+=1);return l},za.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.rd.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function yl(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Xc(r){return Math.abs(r)<=1e-5}function ku(r,s,l){return r*(1-l)+s*l}function Ji(r,s,l){return[ku(r[0],s[0],l),ku(r[1],s[1],l)]}function xT(r,s,l){if(r===0)return[];var c=s*s-4*r*l;if(c<0)return[];var m=-s/(2*r);if(c===0)return[m];var p=Math.sqrt(c)/(2*r);return[m-p,m+p]}function Nu(r,s,l,c){return[-r+3*s-3*l+c,3*r-6*s+3*l,-3*r+3*s,r]}function Lu(r){return new de(r,r,r,r,!1)}function de(r,s,l,c,m){m&&Rs(r,s)&&(s=Ji(r,c,1/3)),m&&Rs(l,c)&&(l=Ji(r,c,2/3));var p=Nu(r[0],s[0],l[0],c[0]),b=Nu(r[1],s[1],l[1],c[1]);this.a=[p[0],b[0]],this.b=[p[1],b[1]],this.c=[p[2],b[2]],this.d=[p[3],b[3]],this.points=[r,s,l,c]}de.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},de.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},de.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},de.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},de.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Xc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,l=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(l<0)return[];var c=Math.sqrt(l);return Xc(c)?c>0&&c<1?[s]:[]:[s-c,s+c].filter(function(m){return m>0&&m<1})},de.prototype.split=function(r){if(r<=0)return[Lu(this.points[0]),this];if(r>=1)return[this,Lu(this.points[this.points.length-1])];var s=Ji(this.points[0],this.points[1],r),l=Ji(this.points[1],this.points[2],r),c=Ji(this.points[2],this.points[3],r),m=Ji(s,l,r),p=Ji(l,c,r),b=Ji(m,p,r);return[new de(this.points[0],s,m,b,!0),new de(b,p,c,this.points[3],!0)]};function Mu(r,s){var l=r.points[0][s],c=r.points[r.points.length-1][s];if(l>c){var m=c;c=l,l=m}for(var p=xT(3*r.a[s],2*r.b[s],r.c[s]),b=0;b<p.length;b+=1)if(p[b]>0&&p[b]<1){var I=r.point(p[b])[s];I<l?l=I:I>c&&(c=I)}return{min:l,max:c}}de.prototype.bounds=function(){return{x:Mu(this,0),y:Mu(this,1)}},de.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function El(r,s,l){var c=r.boundingBox();return{cx:c.cx,cy:c.cy,width:c.width,height:c.height,bez:r,t:(s+l)/2,t1:s,t2:l}}function Ou(r){var s=r.bez.split(.5);return[El(s[0],r.t1,r.t),El(s[1],r.t,r.t2)]}function AT(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 Ba(r,s,l,c,m,p){if(AT(r,s)){if(l>=p||r.width<=c&&r.height<=c&&s.width<=c&&s.height<=c){m.push([r.t,s.t]);return}var b=Ou(r),I=Ou(s);Ba(b[0],I[0],l+1,c,m,p),Ba(b[0],I[1],l+1,c,m,p),Ba(b[1],I[0],l+1,c,m,p),Ba(b[1],I[1],l+1,c,m,p)}}de.prototype.intersections=function(r,s,l){s===void 0&&(s=2),l===void 0&&(l=7);var c=[];return Ba(El(this,0,1),El(r,0,1),0,s,c,l),c},de.shapeSegment=function(r,s){var l=(s+1)%r.length();return new de(r.v[s],r.o[s],r.i[l],r.v[l],!0)},de.shapeSegmentInverted=function(r,s){var l=(s+1)%r.length();return new de(r.v[l],r.i[l],r.o[s],r.v[s],!0)};function Zc(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 Tl(r,s,l,c){var m=[r[0],r[1],1],p=[s[0],s[1],1],b=[l[0],l[1],1],I=[c[0],c[1],1],y=Zc(Zc(m,p),Zc(b,I));return Xc(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function Os(r,s,l){return[r[0]+Math.cos(s)*l,r[1]-Math.sin(s)*l]}function Qc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function Rs(r,s){return yl(r[0],s[0])&&yl(r[1],s[1])}function Ha(){}x([Ir],Ha),Ha.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 Ru(r,s,l,c,m,p,b){var I=l-Math.PI/2,y=l+Math.PI/2,k=s[0]+Math.cos(l)*c*m,M=s[1]-Math.sin(l)*c*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 ST(r,s){var l=[s[0]-r[0],s[1]-r[1]],c=-Math.PI*.5,m=[Math.cos(c)*l[0]-Math.sin(c)*l[1],Math.sin(c)*l[0]+Math.cos(c)*l[1]];return m}function IT(r,s){var l=s===0?r.length()-1:s-1,c=(s+1)%r.length(),m=r.v[l],p=r.v[c],b=ST(m,p);return Math.atan2(0,1)-Math.atan2(b[1],b[0])}function Du(r,s,l,c,m,p,b){var I=IT(s,l),y=s.v[l%s._length],k=s.v[l===0?s._length-1:l-1],M=s.v[(l+1)%s._length],j=p===2?Math.sqrt(Math.pow(y[0]-k[0],2)+Math.pow(y[1]-k[1],2)):0,A=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;Ru(r,s.v[l%s._length],I,b,c,A/((m+1)*2),j/((m+1)*2),p)}function CT(r,s,l,c,m,p){for(var b=0;b<c;b+=1){var I=(b+1)/(c+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);Ru(r,M,k,p,l,y/((c+1)*2),y/((c+1)*2),m),p=-p}return p}Ha.prototype.processPath=function(r,s,l,c){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var b=-1,I=de.shapeSegment(r,0);Du(p,r,0,s,l,c,b);for(var y=0;y<m;y+=1)b=CT(p,I,s,l,c,-b),y===m-1&&!r.c?I=null:I=de.shapeSegment(r,(y+1)%m),Du(p,r,y+1,s,l,c,b);return p},Ha.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,I,y));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Jc(r,s,l){var c=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Os(r,c,l),Os(s,c,l)]}function Ds(r,s){var l,c,m,p,b,I,y;y=Jc(r.points[0],r.points[1],s),l=y[0],c=y[1],y=Jc(r.points[1],r.points[2],s),m=y[0],p=y[1],y=Jc(r.points[2],r.points[3],s),b=y[0],I=y[1];var k=Tl(l,c,m,p);k===null&&(k=c);var M=Tl(b,I,m,p);return M===null&&(M=b),new de(l,k,M,I)}function Pu(r,s,l,c,m){var p=s.points[3],b=l.points[0];if(c===3||Rs(p,b))return p;if(c===2){var I=-s.tangentAngle(1),y=-l.tangentAngle(0)+Math.PI,k=Tl(p,Os(p,I+Math.PI/2,100),b,Os(b,I+Math.PI/2,100)),M=k?Qc(k,p):Qc(p,b)/2,j=Os(p,I,2*M*se);return r.setXYAt(j[0],j[1],"o",r.length()-1),j=Os(b,y,2*M*se),r.setTripleAt(b[0],b[1],b[0],b[1],j[0],j[1],r.length()),b}var A=Rs(p,s.points[2])?s.points[0]:s.points[2],O=Rs(b,l.points[1])?l.points[3]:l.points[1],F=Tl(A,p,b,O);return F&&Qc(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function Fu(r,s){var l=r.intersections(s);return l.length&&yl(l[0][0],1)&&l.shift(),l.length?l[0]:null}function $u(r,s){var l=r.slice(),c=s.slice(),m=Fu(r[r.length-1],s[0]);return m&&(l[r.length-1]=r[r.length-1].split(m[0])[0],c[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=Fu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[l,c]}function _T(r){for(var s,l=1;l<r.length;l+=1)s=$u(r[l-1],r[l]),r[l-1]=s[0],r[l]=s[1];return r.length>1&&(s=$u(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function Vu(r,s){var l=r.inflectionPoints(),c,m,p,b;if(l.length===0)return[Ds(r,s)];if(l.length===1||yl(l[1],1))return p=r.split(l[0]),c=p[0],m=p[1],[Ds(c,s),Ds(m,s)];p=r.split(l[0]),c=p[0];var I=(l[1]-l[0])/(1-l[0]);return p=p[1].split(I),b=p[0],m=p[1],[Ds(c,s),Ds(b,s),Ds(m,s)]}function Ua(){}x([Ir],Ua),Ua.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},Ua.prototype.processPath=function(r,s,l,c){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var b,I,y,k=[];for(b=0;b<p;b+=1)y=de.shapeSegment(r,b),k.push(Vu(y,s));if(!r.c)for(b=p-1;b>=0;b-=1)y=de.shapeSegmentInverted(r,b),k.push(Vu(y,s));k=_T(k);var M=null,j=null;for(b=0;b<k.length;b+=1){var A=k[b];for(j&&(M=Pu(m,j,A[0],l,c)),j=A[A.length-1],I=0;I<A.length;I+=1)y=A[I],M&&Rs(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&&Pu(m,j,k[0][0],l,c),m},Ua.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,y,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function zu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],l="normal",c="normal",m=s.length,p,b=0;b<m;b+=1)switch(p=s[b].toLowerCase(),p){case"italic":c="italic";break;case"bold":l="700";break;case"black":l="900";break;case"medium":l="500";break;case"regular":case"normal":l="400";break;case"light":case"thin":l="200";break;default:break}return{style:c,weight:r.fWeight||l}}var Vo=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},l=[];l=l.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var c=127988,m=917631,p=917601,b=917626,I=65039,y=8205,k=127462,M=127487,j=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function A(_){var P=_.split(","),g,E=P.length,q=[];for(g=0;g<E;g+=1)P[g]!=="sans-serif"&&P[g]!=="monospace"&&q.push(P[g]);return q.join(",")}function O(_,P){var g=v("span");g.setAttribute("aria-hidden",!0),g.style.fontFamily=P;var E=v("span");E.innerText="giItT1WQy@!-/#",g.style.position="absolute",g.style.left="-10000px",g.style.top="-10000px",g.style.fontSize="300px",g.style.fontVariant="normal",g.style.fontStyle="normal",g.style.fontWeight="normal",g.style.letterSpacing="0",g.appendChild(E),document.body.appendChild(g);var q=E.offsetWidth;return E.style.fontFamily=A(_)+", "+P,{node:E,w:q,parent:g}}function F(){var _,P=this.fonts.length,g,E,q=P;for(_=0;_<P;_+=1)this.fonts[_].loaded?q-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(g=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,g.offsetWidth!==E?(q-=1,this.fonts[_].loaded=!0):(g=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,g.offsetWidth!==E&&(q-=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)));q!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function D(_,P){var g=document.body&&P?"svg":"canvas",E,q=zu(_);if(g==="svg"){var B=Ct("text");B.style.fontSize="100px",B.setAttribute("font-family",_.fFamily),B.setAttribute("font-style",q.style),B.setAttribute("font-weight",q.weight),B.textContent="1",_.fClass?(B.style.fontFamily="inherit",B.setAttribute("class",_.fClass)):B.style.fontFamily=_.fFamily,P.appendChild(B),E=B}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=q.style+" "+q.weight+" 100px "+_.fFamily,E=ct}function gt(St){return g==="svg"?(E.textContent=St,E.getComputedTextLength()):E.measureText(St).width}return{measureText:gt}}function G(_,P){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(ir){ir.helper=D(ir),ir.cache={}}),this.fonts=_.list;return}var g=_.list,E,q=g.length,B=q;for(E=0;E<q;E+=1){var ct=!0,gt,St;if(g[E].loaded=!1,g[E].monoCase=O(g[E].fFamily,"monospace"),g[E].sansCase=O(g[E].fFamily,"sans-serif"),!g[E].fPath)g[E].loaded=!0,B-=1;else if(g[E].fOrigin==="p"||g[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+g[E].fFamily+'"], style[f-origin="3"][f-family="'+g[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var zt=v("style");zt.setAttribute("f-forigin",g[E].fOrigin),zt.setAttribute("f-origin",g[E].origin),zt.setAttribute("f-family",g[E].fFamily),zt.type="text/css",zt.innerText="@font-face {font-family: "+g[E].fFamily+"; font-style: normal; src: url('"+g[E].fPath+"');}",P.appendChild(zt)}}else if(g[E].fOrigin==="g"||g[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),St=0;St<gt.length;St+=1)gt[St].href.indexOf(g[E].fPath)!==-1&&(ct=!1);if(ct){var Bt=v("link");Bt.setAttribute("f-forigin",g[E].fOrigin),Bt.setAttribute("f-origin",g[E].origin),Bt.type="text/css",Bt.rel="stylesheet",Bt.href=g[E].fPath,document.body.appendChild(Bt)}}else if(g[E].fOrigin==="t"||g[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),St=0;St<gt.length;St+=1)g[E].fPath===gt[St].src&&(ct=!1);if(ct){var ve=v("link");ve.setAttribute("f-forigin",g[E].fOrigin),ve.setAttribute("f-origin",g[E].origin),ve.setAttribute("rel","stylesheet"),ve.setAttribute("href",g[E].fPath),P.appendChild(ve)}}g[E].helper=D(g[E],P),g[E].cache={},this.fonts.push(g[E])}B===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var P,g=_.length,E,q=this.chars.length,B;for(P=0;P<g;P+=1){for(E=0,B=!1;E<q;)this.chars[E].style===_[P].style&&this.chars[E].fFamily===_[P].fFamily&&this.chars[E].ch===_[P].ch&&(B=!0),E+=1;B||(this.chars.push(_[P]),q+=1)}}}function w(_,P,g){for(var E=0,q=this.chars.length;E<q;){if(this.chars[E].ch===_&&this.chars[E].style===P&&this.chars[E].fFamily===g)return this.chars[E];E+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,P,g)),s}function T(_,P,g){var E=this.getFontByName(P),q=_;if(!E.cache[q]){var B=E.helper;if(_===" "){var ct=B.measureText("|"+_+"|"),gt=B.measureText("||");E.cache[q]=(ct-gt)/100}else E.cache[q]=B.measureText(_)/100}return E.cache[q]*g}function C(_){for(var P=0,g=this.fonts.length;P<g;){if(this.fonts[P].fName===_)return this.fonts[P];P+=1}return this.fonts[0]}function N(_){var P=0,g=_.charCodeAt(0);if(g>=55296&&g<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(P=(g-55296)*1024+E-56320+65536)}return P}function $(_,P){var g=_.toString(16)+P.toString(16);return j.indexOf(g)!==-1}function Y(_){return _===y}function X(_){return _===I}function it(_){var P=N(_);return P>=k&&P<=M}function At(_){return it(_.substr(0,2))&&it(_.substr(2,2))}function ft(_){return l.indexOf(_)!==-1}function nt(_,P){var g=N(_.substr(P,2));if(g!==c)return!1;var E=0;for(P+=2;E<5;){if(g=N(_.substr(P,2)),g<p||g>b)return!1;E+=1,P+=2}return N(_.substr(P,2))===m}function _t(){this.isLoaded=!0}var mt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};mt.isModifier=$,mt.isZeroWidthJoiner=Y,mt.isFlagEmoji=At,mt.isRegionalCode=it,mt.isCombinedCharacter=ft,mt.isRegionalFlag=nt,mt.isVariationSelector=X,mt.BLACK_FLAG_CODE_POINT=c;var rt={addChars:L,addFonts:G,getCharData:w,getFontByName:C,measureText:T,checkLoadedFonts:F,setIsLoaded:_t};return mt.prototype=rt,mt}();function Bu(r){this.animationData=r}Bu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function wT(r){return new Bu(r)}function xl(){}xl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,l=this.renderableComponents.length;for(s=0;s<l;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var th=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 kT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function NT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function LT(r,s,l){this.p=lt.getProp(s,r.v,1,0,l)}function MT(r,s,l){this.p=lt.getProp(s,r.v,1,0,l)}function OT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function RT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function DT(r,s,l){this.p=lt.getProp(s,r.v,0,0,l)}function PT(){this.p={}}function Hu(r,s){var l=r.ef||[];this.effectElements=[];var c,m=l.length,p;for(c=0;c<m;c+=1)p=new Ga(l[c],s),this.effectElements.push(p)}function Ga(r,s){this.init(r,s)}x([Ne],Ga),Ga.prototype.getValue=Ga.prototype.iterateDynamicProperties,Ga.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var l,c=this.data.ef.length,m,p=this.data.ef;for(l=0;l<c;l+=1){switch(m=null,p[l].ty){case 0:m=new kT(p[l],s,this);break;case 1:m=new NT(p[l],s,this);break;case 2:m=new LT(p[l],s,this);break;case 3:m=new MT(p[l],s,this);break;case 4:case 7:m=new DT(p[l],s,this);break;case 10:m=new OT(p[l],s,this);break;case 11:m=new RT(p[l],s,this);break;case 5:m=new Hu(p[l],s,this);break;default:m=new PT(p[l],s,this);break}m&&this.effectElements.push(m)}};function to(){}to.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,l=this.data.masksProperties.length;s<l;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=uu();if(s){var l=s("layer"),c=s("effects"),m=s("shape"),p=s("text"),b=s("comp");this.layerInterface=l(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=c.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=th(this.data.bm),l=this.baseElement||this.layerElement;l.style["mix-blend-mode"]=s},initBaseData:function(s,l,c){this.globalData=l,this.comp=c,this.data=s,this.layerId=er(),this.data.sr||(this.data.sr=1),this.effectsManager=new Hu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function eo(){}eo.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,l){var c,m=this.dynamicProperties.length;for(c=0;c<m;c+=1)(l||this._isParent&&this.dynamicProperties[c].propType==="transform")&&(this.dynamicProperties[c].getValue(),this.dynamicProperties[c]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function ro(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,l)}ro.prototype.prepareFrame=function(){},x([xl,to,eo],ro),ro.prototype.getBaseElement=function(){return null},ro.prototype.renderFrame=function(){},ro.prototype.destroy=function(){},ro.prototype.initExpressions=function(){var r=uu();if(r){var s=r("footage");this.layerInterface=s(this)}},ro.prototype.getFootageData=function(){return this.footageData};function rr(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,l),this._isPlaying=!1,this._canPlay=!1;var c=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(c),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)}rr.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var l=this._volume*this._volumeMultiplier;this._previousVolume!==l&&(this._previousVolume=l,this.audio.volume(l))},x([xl,to,eo],rr),rr.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))},rr.prototype.show=function(){},rr.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},rr.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},rr.prototype.resume=function(){this._canPlay=!0},rr.prototype.setRate=function(r){this.audio.rate(r)},rr.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},rr.prototype.getBaseElement=function(){return null},rr.prototype.destroy=function(){},rr.prototype.sourceRectAtTime=function(){},rr.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,l=this.layers.length,c;for(this.completeLayers=!0,s=l-1;s>=0;s-=1)this.elements[s]||(c=this.layers[s],c.ip-c.st<=r-this.layers[s].st&&c.op-c.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 rr(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new ro(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,l=r.length,c,m=this.layers.length;for(s=0;s<l;s+=1)for(c=0;c<m;){if(this.layers[c].id===r[s].id){this.layers[c]=r[s];break}c+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,l){for(var c=this.elements,m=this.layers,p=0,b=m.length;p<b;)m[p].ind==s&&(!c[p]||c[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(l.push(c[p]),c[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,l):r.setHierarchy(l))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,l=r.length;for(s=0;s<l;s+=1)if(r[s].xt){var c=this.createComp(r[s]);c.initExpressions(),this.globalData.projectInterface.registerComposition(c)}},Fe.prototype.getElementById=function(r){var s,l=this.elements.length;for(s=0;s<l;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),l;if(typeof s=="number")l=this.elements[s];else{var c,m=this.elements.length;for(c=0;c<m;c+=1)if(this.elements[c].data.nm===s){l=this.elements[c];break}}return r.length===0?l:l.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Vo,this.globalData.slotManager=wT(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 FT={TRANSFORM_EFFECT:"transformEFfect"};function Ps(){}Ps.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?qc.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,l=this.finalTransform.mat,c=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;c<m;){if(this.hierarchy[c].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}c+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,l.cloneFromProps(s),c=0;c<m;c+=1)l.multiply(this.hierarchy[c].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,l=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<l;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var c=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(c),s=1;s<l;s+=1){var m=this.localTransforms[s].matrix;c.multiply(m)}c.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<l;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(FT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var l=0,c=s.length;for(l=0;l<c;l+=1)this.localTransforms.push(s[l])}}},globalToLocal:function(s){var l=[];l.push(this.finalTransform);for(var c=!0,m=this.comp;c;)m.finalTransform?(m.data.hasMask&&l.splice(0,0,m.finalTransform),m=m.comp):c=!1;var p,b=l.length,I;for(p=0;p<b;p+=1)I=l[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function zo(r,s,l){this.data=r,this.element=s,this.globalData=l,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var c=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=Z(p),this.solidPath="";var b,I=this.masksProperties,y=0,k=[],M,j,A=er(),O,F,D,G,L="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(L="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=Ct("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,b=Ct("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:vl.getShapeProp(this.element,I[m],3),elem:b,lastPath:""},c.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",G=lt.getProp(this.element,I[m].x,0,null,this.element),T=er(),F=Ct("filter"),F.setAttribute("id",T),D=Ct("feMorphology"),D.setAttribute("operator","erode"),D.setAttribute("in","SourceGraphic"),D.setAttribute("radius","0"),F.appendChild(D),c.appendChild(F),b.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(D=null,G=null),this.storedData[m]={elem:b,x:G,expan:D,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){j=k.length;var C=Ct("g");for(M=0;M<j;M+=1)C.appendChild(k[M]);var N=Ct("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",A+"_"+y),N.appendChild(b),c.appendChild(N),C.setAttribute("mask","url("+f()+"#"+A+"_"+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:vl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=Ct(L),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);y>0&&(this.maskElement.setAttribute("id",A),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+A+")"),c.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}zo.prototype.getMaskProperty=function(r){return this.viewData[r].prop},zo.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,l,c=this.masksProperties.length;for(l=0;l<c;l+=1)if((this.viewData[l].prop._mdf||r)&&this.drawPath(this.masksProperties[l],this.viewData[l].prop.v,this.viewData[l]),(this.viewData[l].op._mdf||r)&&this.viewData[l].elem.setAttribute("fill-opacity",this.viewData[l].op.v),this.masksProperties[l].mode!=="n"&&(this.viewData[l].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[l].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[l].x&&(this.storedData[l].x._mdf||r))){var m=this.storedData[l].expan;this.storedData[l].x.v<0?(this.storedData[l].lastOperator!=="erode"&&(this.storedData[l].lastOperator="erode",this.storedData[l].elem.setAttribute("filter","url("+f()+"#"+this.storedData[l].filterId+")")),m.setAttribute("radius",-this.storedData[l].x.v)):(this.storedData[l].lastOperator!=="dilate"&&(this.storedData[l].lastOperator="dilate",this.storedData[l].elem.setAttribute("filter",null)),this.storedData[l].elem.setAttribute("stroke-width",this.storedData[l].x.v*2))}},zo.prototype.getMaskelement=function(){return this.maskElement},zo.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},zo.prototype.drawPath=function(r,s,l){var c=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)c+=" 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&&(c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),l.lastPath!==c){var b="";l.elem&&(s.c&&(b=r.inv?this.solidPath+c:c),l.elem.setAttribute("d",b)),l.lastPath=c}},zo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ka=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=l;function s(c,m){var p=Ct("filter");return p.setAttribute("id",c),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function l(){var c=Ct("feColorMatrix");return c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),c}return r}(),Uu=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}(),Al={},Gu="filter_result_";function eh(r){var s,l="SourceGraphic",c=r.data.ef?r.data.ef.length:0,m=er(),p=Ka.createFilter(m,!0),b=0;this.filters=[];var I;for(s=0;s<c;s+=1){I=null;var y=r.data.ef[s].ty;if(Al[y]){var k=Al[y].effect;I=new k(p,r.effectsManager.effectElements[s],r,Gu+b,l),l=Gu+b,Al[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)}eh.prototype.renderFrame=function(r){var s,l=this.filters.length;for(s=0;s<l;s+=1)this.filters[s].renderFrame(r)},eh.prototype.getEffects=function(r){var s,l=this.filters.length,c=[];for(s=0;s<l;s+=1)this.filters[s].type===r&&c.push(this.filters[s]);return c};function dC(r,s,l){Al[r]={effect:s,countsAsEffect:l}}function Wa(){}Wa.prototype={initRendererElement:function(){this.layerElement=Ct("g")},createContainerElements:function(){this.matteElement=Ct("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var l=Ct("g");l.setAttribute("id",this.layerId),l.appendChild(this.layerElement),s=l,this.globalData.defs.appendChild(l)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var c=Ct("clipPath"),m=Ct("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=er();if(c.setAttribute("id",p),c.appendChild(m),this.globalData.defs.appendChild(c),this.checkMasks()){var b=Ct("g");b.setAttribute("clip-path","url("+f()+"#"+p+")"),b.appendChild(this.layerElement),this.transformedElement=b,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new zo(this.data,this,this.globalData),this.renderableEffectsManager=new eh(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var l=this.layerId+"_"+s,c,m,p,b;if(s===1||s===3){var I=Ct("mask");I.setAttribute("id",l),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Uu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),c=er(),m=Ka.createFilter(c),this.globalData.defs.appendChild(m),m.appendChild(Ka.createAlphaToLuminanceFilter()),b=Ct("g"),b.appendChild(p),I.appendChild(b),b.setAttribute("filter","url("+f()+"#"+c+")"))}else if(s===2){var y=Ct("mask");y.setAttribute("id",l),y.setAttribute("mask-type","alpha");var k=Ct("g");y.appendChild(k),c=er(),m=Ka.createFilter(c);var M=Ct("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var j=Ct("feFuncA");j.setAttribute("type","table"),j.setAttribute("tableValues","1.0 0.0"),M.appendChild(j),this.globalData.defs.appendChild(m);var A=Ct("rect");A.setAttribute("width",this.comp.data.w),A.setAttribute("height",this.comp.data.h),A.setAttribute("x","0"),A.setAttribute("y","0"),A.setAttribute("fill","#ffffff"),A.setAttribute("opacity","0"),k.setAttribute("filter","url("+f()+"#"+c+")"),k.appendChild(A),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),Uu.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(Ka.createAlphaToLuminanceFilter()),b=Ct("g"),k.appendChild(A),b.appendChild(this.layerElement),k.appendChild(b)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=l}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Fs(){}Fs.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 Ya(){}(function(){var r={initElement:function(l,c,m){this.initFrame(),this.initBaseData(l,c,m),this.initTransform(l,c,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var l=this.baseElement||this.layerElement;l.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var l=this.baseElement||this.layerElement;l.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(l){this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};x([xl,H(r)],Ya)})();function ja(r,s,l){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,l),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}x([to,Ps,Wa,Fs,eo,Ya],ja),ja.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=Ct("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},ja.prototype.sourceRectAtTime=function(){return this.sourceRect};function $T(r,s){this.elem=r,this.pos=s}function Ku(){}Ku.prototype={addShapeToModifiers:function(s){var l,c=this.shapeModifiers.length;for(l=0;l<c;l+=1)this.shapeModifiers[l].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var l=0,c=this.shapeModifiers.length;l<c;)if(this.shapeModifiers[l].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,l=this.shapes.length;for(s=0;s<l;s+=1)this.shapes[s].sh.reset();l=this.shapeModifiers.length;var c;for(s=l-1;s>=0&&(c=this.shapeModifiers[s].processShapes(this._isFirstFrame),!c);s-=1);}},searchProcessedElement:function(s){for(var l=this.processedElements,c=0,m=l.length;c<m;){if(l[c].elem===s)return l[c].pos;c+=1}return 0},addProcessedElement:function(s,l){for(var c=this.processedElements,m=c.length;m;)if(m-=1,c[m].elem===s){c[m].pos=l;return}c.push(new $T(s,l))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var Wu={1:"butt",2:"round",3:"square"},Yu={1:"miter",2:"round",3:"bevel"};function ju(r,s,l){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=l,this.lvl=s,this._isAnimated=!!l.k;for(var c=0,m=r.length;c<m;){if(r[c].mProps.dynamicProperties.length){this._isAnimated=!0;break}c+=1}}ju.prototype.setAsAnimated=function(){this._isAnimated=!0};function qu(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=Ct("path"),this.msElem=null}qu.prototype.reset=function(){this.d="",this._mdf=!1};function Sl(r,s,l,c){this.elem=r,this.frameId=-1,this.dataProps=Z(s.length),this.renderer=l,this.k=!1,this.dashStr="",this.dashArray=W("float32",s.length?s.length-1:0),this.dashoffset=W("float32",1),this.initDynamicPropertyContainer(c);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}Sl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,l=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<l;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},x([Ne],Sl);function Xu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.w=lt.getProp(r,s.w,0,null,this),this.d=new Sl(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=l,this._isAnimated=!!this._isAnimated}x([Ne],Xu);function Zu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.c=lt.getProp(r,s.c,1,255,this),this.style=l}x([Ne],Zu);function Qu(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=l}x([Ne],Qu);function qa(r,s,l){this.data=s,this.c=W("uint8c",s.p*4);var c=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=W("float32",c),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=c,this.initDynamicPropertyContainer(l),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}qa.prototype.comparePoints=function(r,s){for(var l=0,c=this.o.length/2,m;l<c;){if(m=Math.abs(r[l*4]-r[s*4+l*2]),m>.01)return!1;l+=1}return!0},qa.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},qa.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,l=this.data.p*4,c,m;for(s=0;s<l;s+=1)c=s%4===0?100:255,m=Math.round(this.prop.v[s]*c),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(l=this.prop.v.length,s=this.data.p*4;s<l;s+=1)c=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}},x([Ne],qa);function $s(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,l)}$s.prototype.initGradientData=function(r,s,l){this.o=lt.getProp(r,s.o,0,.01,this),this.s=lt.getProp(r,s.s,1,null,this),this.e=lt.getProp(r,s.e,1,null,this),this.h=lt.getProp(r,s.h||{k:0},0,.01,this),this.a=lt.getProp(r,s.a||{k:0},0,kt,this),this.g=new qa(r,s.g,this),this.style=l,this.stops=[],this.setGradientData(l.pElem,s),this.setGradientOpacity(s,l),this._isAnimated=!!this._isAnimated},$s.prototype.setGradientData=function(r,s){var l=er(),c=Ct(s.t===1?"linearGradient":"radialGradient");c.setAttribute("id",l),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,b,I;for(I=s.g.p*4,b=0;b<I;b+=4)p=Ct("stop"),c.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+l+")"),this.gf=c,this.cst=m},$s.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var l,c,m,p=Ct("mask"),b=Ct("path");p.appendChild(b);var I=er(),y=er();p.setAttribute("id",y);var k=Ct(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var M=this.stops;for(c=r.g.p*4;c<m;c+=2)l=Ct("stop"),l.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(l),M.push(l);b.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(b.setAttribute("stroke-linecap",Wu[r.lc||2]),b.setAttribute("stroke-linejoin",Yu[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}},x([Ne],$s);function Ju(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new Sl(r,s.d||{},"svg",this),this.initGradientData(r,s,l),this._isAnimated=!!this._isAnimated}x([$s,Ne],Ju);function VT(){this.it=[],this.prevViewData=[],this.gr=Ct("g")}function zT(r,s,l){this.transform={mProps:r,op:s,container:l},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var tf=function(s,l,c,m){if(l===0)return"";var p=s.o,b=s.i,I=s.v,y,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<l;y+=1)k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[y][0],b[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return c&&l&&(k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[0][0],b[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},BT=function(){var r=new Pe,s=new Pe,l={createRenderFunction:c};function c(j){switch(j.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(j,A,O){(O||A.transform.op._mdf)&&A.transform.container.setAttribute("opacity",A.transform.op.v),(O||A.transform.mProps._mdf)&&A.transform.container.setAttribute("transform",A.transform.mProps.v.to2dCSS())}function p(){}function b(j,A,O){var F,D,G,L,w,T,C=A.styles.length,N=A.lvl,$,Y,X,it;for(T=0;T<C;T+=1){if(L=A.sh._mdf||O,A.styles[T].lvl<N){for(Y=s.reset(),X=N-A.styles[T].lvl,it=A.transformers.length-1;!L&&X>0;)L=A.transformers[it].mProps._mdf||L,X-=1,it-=1;if(L)for(X=N-A.styles[T].lvl,it=A.transformers.length-1;X>0;)Y.multiply(A.transformers[it].mProps.v),X-=1,it-=1}else Y=r;if($=A.sh.paths,D=$._length,L){for(G="",F=0;F<D;F+=1)w=$.shapes[F],w&&w._length&&(G+=tf(w,w._length,w.c,Y));A.caches[T]=G}else G=A.caches[T];A.styles[T].d+=j.hd===!0?"":G,A.styles[T]._mdf=L||A.styles[T]._mdf}}function I(j,A,O){var F=A.style;(A.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ne(A.c.v[0])+","+ne(A.c.v[1])+","+ne(A.c.v[2])+")"),(A.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",A.o.v)}function y(j,A,O){k(j,A,O),M(j,A,O)}function k(j,A,O){var F=A.gf,D=A.g._hasOpacity,G=A.s.v,L=A.e.v;if(A.o._mdf||O){var w=j.ty==="gf"?"fill-opacity":"stroke-opacity";A.style.pElem.setAttribute(w,A.o.v)}if(A.s._mdf||O){var T=j.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";F.setAttribute(T,G[0]),F.setAttribute(C,G[1]),D&&!A.g._collapsable&&(A.of.setAttribute(T,G[0]),A.of.setAttribute(C,G[1]))}var N,$,Y,X;if(A.g._cmdf||O){N=A.cst;var it=A.g.c;for(Y=N.length,$=0;$<Y;$+=1)X=N[$],X.setAttribute("offset",it[$*4]+"%"),X.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(D&&(A.g._omdf||O)){var At=A.g.o;for(A.g._collapsable?N=A.cst:N=A.ost,Y=N.length,$=0;$<Y;$+=1)X=N[$],A.g._collapsable||X.setAttribute("offset",At[$*2]+"%"),X.setAttribute("stop-opacity",At[$*2+1])}if(j.t===1)(A.e._mdf||O)&&(F.setAttribute("x2",L[0]),F.setAttribute("y2",L[1]),D&&!A.g._collapsable&&(A.of.setAttribute("x2",L[0]),A.of.setAttribute("y2",L[1])));else{var ft;if((A.s._mdf||A.e._mdf||O)&&(ft=Math.sqrt(Math.pow(G[0]-L[0],2)+Math.pow(G[1]-L[1],2)),F.setAttribute("r",ft),D&&!A.g._collapsable&&A.of.setAttribute("r",ft)),A.e._mdf||A.h._mdf||A.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(G[0]-L[0],2)+Math.pow(G[1]-L[1],2)));var nt=Math.atan2(L[1]-G[1],L[0]-G[0]),_t=A.h.v;_t>=1?_t=.99:_t<=-1&&(_t=-.99);var mt=ft*_t,rt=Math.cos(nt+A.a.v)*mt+G[0],_=Math.sin(nt+A.a.v)*mt+G[1];F.setAttribute("fx",rt),F.setAttribute("fy",_),D&&!A.g._collapsable&&(A.of.setAttribute("fx",rt),A.of.setAttribute("fy",_))}}}function M(j,A,O){var F=A.style,D=A.d;D&&(D._mdf||O)&&D.dashStr&&(F.pElem.setAttribute("stroke-dasharray",D.dashStr),F.pElem.setAttribute("stroke-dashoffset",D.dashoffset[0])),A.c&&(A.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ne(A.c.v[0])+","+ne(A.c.v[1])+","+ne(A.c.v[2])+")"),(A.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",A.o.v),(A.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",A.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",A.w.v))}return l}();function he(r,s,l){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,l),this.prevViewData=[]}x([to,Ps,Wa,Ku,Fs,eo,Ya],he),he.prototype.initSecondaryElement=function(){},he.prototype.identityMatrix=new Pe,he.prototype.buildExpressionInterface=function(){},he.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},he.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,l,c,m=this.stylesList.length,p,b=[],I=!1;for(c=0;c<m;c+=1){for(p=this.stylesList[c],I=!1,b.length=0,r=0;r<s;r+=1)l=this.shapes[r],l.styles.indexOf(p)!==-1&&(b.push(l),I=l._isAnimated||I);b.length>1&&I&&this.setShapesAsAnimated(b)}},he.prototype.setShapesAsAnimated=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s].setAsAnimated()},he.prototype.createStyleElement=function(r,s){var l,c=new qu(r,s),m=c.pElem;if(r.ty==="st")l=new Xu(this,r,c);else if(r.ty==="fl")l=new Zu(this,r,c);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?$s:Ju;l=new p(this,r,c),this.globalData.defs.appendChild(l.gf),l.maskId&&(this.globalData.defs.appendChild(l.ms),this.globalData.defs.appendChild(l.of),m.setAttribute("mask","url("+f()+"#"+l.maskId+")"))}else r.ty==="no"&&(l=new Qu(this,r,c));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",Wu[r.lc||2]),m.setAttribute("stroke-linejoin",Yu[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"]=th(r.bm)),this.stylesList.push(c),this.addToAnimatedContents(r,l),l},he.prototype.createGroupElement=function(r){var s=new VT;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"]=th(r.bm)),s},he.prototype.createTransformElement=function(r,s){var l=qc.getTransformProperty(this,r,this),c=new zT(l,l.o,s);return this.addToAnimatedContents(r,c),c},he.prototype.createShapeElement=function(r,s,l){var c=4;r.ty==="rc"?c=5:r.ty==="el"?c=6:r.ty==="sr"&&(c=7);var m=vl.getShapeProp(this,r,c,this),p=new ju(s,l,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},he.prototype.addToAnimatedContents=function(r,s){for(var l=0,c=this.animatedContents.length;l<c;){if(this.animatedContents[l].element===s)return;l+=1}this.animatedContents.push({fn:BT.createRenderFunction(r),element:s,data:r})},he.prototype.setElementStyles=function(r){var s=r.styles,l,c=this.stylesList.length;for(l=0;l<c;l+=1)this.stylesList[l].closed||s.push(this.stylesList[l])},he.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()},he.prototype.searchShapes=function(r,s,l,c,m,p,b){var I=[].concat(p),y,k=r.length-1,M,j,A=[],O=[],F,D,G;for(y=k;y>=0;y-=1){if(G=this.searchProcessedElement(r[y]),G?s[y]=l[G-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")G?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==c&&c.appendChild(s[y].style.pElem),A.push(s[y].style);else if(r[y].ty==="gr"){if(!G)s[y]=this.createGroupElement(r[y]);else for(j=s[y].it.length,M=0;M<j;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!==c&&c.appendChild(s[y].gr)}else r[y].ty==="tr"?(G||(s[y]=this.createTransformElement(r[y],c)),F=s[y].transform,I.push(F)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(G||(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"?(G?(D=s[y],D.closed=!1):(D=Qi.getModifier(r[y].ty),D.init(this,r[y]),s[y]=D,this.shapeModifiers.push(D)),O.push(D)):r[y].ty==="rp"&&(G?(D=s[y],D.closed=!0):(D=Qi.getModifier(r[y].ty),s[y]=D,D.init(this,r,y,s),this.shapeModifiers.push(D),b=!1),O.push(D));this.addProcessedElement(r[y],y+1)}for(k=A.length,y=0;y<k;y+=1)A[y].closed=!0;for(k=O.length,y=0;y<k;y+=1)O[y].closed=!0},he.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"))},he.prototype.renderShape=function(){var r,s=this.animatedContents.length,l;for(r=0;r<s;r+=1)l=this.animatedContents[r],(this._isFirstFrame||l.element._isAnimated)&&l.data!==!0&&l.fn(l.data,l.element,this._isFirstFrame)},he.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function rh(r,s,l,c,m,p){this.o=r,this.sw=s,this.sc=l,this.fc=c,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!l,fc:!!c,m:!0,p:!0}}rh.prototype.update=function(r,s,l,c,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var b=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,b=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,b=!0),this.sc!==l&&(this.sc=l,this._mdf.sc=!0,b=!0),this.fc!==c&&(this.fc=c,this._mdf.fc=!0,b=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,b=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,b=!0),b};function We(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}We.prototype.defaultBoxWidth=[0,0],We.prototype.copyData=function(r,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r[l]=s[l]);return r},We.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},We.prototype.searchProperty=function(){return this.searchKeyframes()},We.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},We.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},We.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,l=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var c,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(c=0;c<m;c+=1)l!==this.keysIndex?p=this.effectsSequence[c](p,p.t):p=this.effectsSequence[c](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},We.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,l=0,c=r.length;l<=c-1&&!(l===c-1||r[l+1].t>s);)l+=1;return this.keysIndex!==l&&(this.keysIndex=l),this.data.d.k[this.keysIndex].s},We.prototype.buildFinalText=function(r){for(var s=[],l=0,c=r.length,m,p,b=!1,I=!1,y="";l<c;)b=I,I=!1,m=r.charCodeAt(l),y=r.charAt(l),Vo.isCombinedCharacter(m)?b=!0:m>=55296&&m<=56319?Vo.isRegionalFlag(r,l)?y=r.substr(l,14):(p=r.charCodeAt(l+1),p>=56320&&p<=57343&&(Vo.isModifier(m,p)?(y=r.substr(l,2),b=!0):Vo.isFlagEmoji(r.substr(l,4))?y=r.substr(l,4):y=r.substr(l,2))):m>56319?(p=r.charCodeAt(l+1),Vo.isVariationSelector(m)&&(b=!0)):Vo.isZeroWidthJoiner(m)&&(b=!0,I=!0),b?(s[s.length-1]+=y,b=!1):s.push(y),l+=y.length;return s},We.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,l=this.data,c=[],m,p,b,I=0,y,k=l.m.g,M=0,j=0,A=0,O=[],F=0,D=0,G,L,w=s.getFontByName(r.f),T,C=0,N=zu(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,Y;if(r.sz)for(var X=!0,it=r.sz[0],At=r.sz[1],ft,nt;X;){nt=this.buildFinalText(r.t),ft=0,F=0,p=nt.length,$=r.tr/1e3*r.finalSize;var _t=-1;for(m=0;m<p;m+=1)Y=nt[m].charCodeAt(0),b=!1,nt[m]===" "?_t=m:(Y===13||Y===3)&&(F=0,b=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(nt[m],w.fStyle,w.fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(nt[m],r.f,r.finalSize),F+C>it&&nt[m]!==" "?(_t===-1?p+=1:m=_t,ft+=r.finalLineHeight||r.finalSize*1.2,nt.splice(m,_t===m?1:0,"\r"),_t=-1,F=0):(F+=C,F+=$);ft+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&At<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=nt,p=r.finalText.length,X=!1)}F=-$,C=0;var mt=0,rt;for(m=0;m<p;m+=1)if(b=!1,rt=r.finalText[m],Y=rt.charCodeAt(0),Y===13||Y===3?(mt=0,O.push(F),D=F>D?F:D,F=-2*$,y="",b=!0,A+=1):y=rt,s.chars?(T=s.getCharData(rt,w.fStyle,s.getFontByName(r.f).fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),rt===" "?mt+=C+$:(F+=C+$+mt,mt=0),c.push({l:C,an:C,add:M,n:b,anIndexes:[],val:y,line:A,animatorJustifyOffset:0}),k==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);j<=m;)c[j].an=M,c[j].ind=I,c[j].extra=C,j+=1;I+=1,M=0}}else if(k==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);j<=m;)c[j].an=M,c[j].ind=I,c[j].extra=C,j+=1;M=0,I+=1}}else c[I].ind=I,c[I].extra=0,I+=1;if(r.l=c,D=F>D?F:D,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=D,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=l.a,P,g;L=_.length;var E,q,B=[];for(G=0;G<L;G+=1){for(P=_[G],P.a.sc&&(r.strokeColorAnim=!0),P.a.sw&&(r.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(r.fillColorAnim=!0),q=0,E=P.s.b,m=0;m<p;m+=1)g=c[m],g.anIndexes[G]=q,(E==1&&g.val!==""||E==2&&g.val!==""&&g.val!==" "||E==3&&(g.n||g.val==" "||m==p-1)||E==4&&(g.n||m==p-1))&&(P.s.rn===1&&B.push(q),q+=1);l.a[G].s.totalChars=q;var ct=-1,gt;if(P.s.rn===1)for(m=0;m<p;m+=1)g=c[m],ct!=g.anIndexes[G]&&(ct=g.anIndexes[G],gt=B.splice(Math.floor(Math.random()*B.length),1)[0]),g.anIndexes[G]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},We.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var l=this.copyData({},this.data.d.k[s].s);l=this.copyData(l,r),this.data.d.k[s].s=l,this.recalculate(s),this.setCurrentData(l),this.elem.addDynamicProperty(this)},We.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},We.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},We.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var HT=function(){var r=Math.max,s=Math.min,l=Math.floor;function c(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()}c.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 j=$a.getBezierEasing(I,y,k,M).get,A=0,O=this.finalS,F=this.finalE,D=this.data.sh;if(D===2)F===O?A=b>=F?1:0:A=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),A=j(A);else if(D===3)F===O?A=b>=F?0:1:A=1-r(0,s(.5/(F-O)+(b-O)/(F-O),1)),A=j(A);else if(D===4)F===O?A=0:(A=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),A<.5?A*=2:A=1-2*(A-.5)),A=j(A);else if(D===5){if(F===O)A=0;else{var G=F-O;b=s(r(0,b+.5-O),F-O);var L=-G/2+b,w=G/2;A=Math.sqrt(1-L*L/(w*w))}A=j(A)}else D===6?(F===O?A=0:(b=s(r(0,b+.5-O),F-O),A=(1+Math.cos(Math.PI+Math.PI*2*b/(F-O)))/2),A=j(A)):(b>=l(O)&&(b-O<0?A=r(0,s(s(F,1)-(O-b),1)):A=r(0,s(F-b,1))),A=j(A));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;A<C?A=0:(A=(A-C)/T,A>1&&(A=1))}return A*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 j=k;k=M,M=j}this.finalS=k,this.finalE=M}},x([Ne],c);function m(p,b,I){return new c(p,b,I)}return{getTextSelectorProp:m}}();function UT(r,s,l){var c={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,kt,l):c,rx:p.rx?m(r,p.rx,0,kt,l):c,ry:p.ry?m(r,p.ry,0,kt,l):c,sk:p.sk?m(r,p.sk,0,kt,l):c,sa:p.sa?m(r,p.sa,0,kt,l):c,s:p.s?m(r,p.s,1,.01,l):c,a:p.a?m(r,p.a,1,0,l):c,o:p.o?m(r,p.o,0,.01,l):c,p:p.p?m(r,p.p,1,0,l):c,sw:p.sw?m(r,p.sw,0,0,l):c,sc:p.sc?m(r,p.sc,1,0,l):c,fc:p.fc?m(r,p.fc,1,0,l):c,fh:p.fh?m(r,p.fh,0,0,l):c,fs:p.fs?m(r,p.fs,0,.01,l):c,fb:p.fb?m(r,p.fb,0,.01,l):c,t:p.t?m(r,p.t,0,0,l):c},this.s=HT.getTextSelectorProp(r,s.s,l),this.s.t=s.s.t}function Bo(r,s,l){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=l,this._animatorsData=Z(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(l)}Bo.prototype.searchProperties=function(){var r,s=this._textData.a.length,l,c=lt.getProp;for(r=0;r<s;r+=1)l=this._textData.a[r],this._animatorsData[r]=new UT(this._elem,l,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:c(this._elem,this._textData.p.a,0,0,this),f:c(this._elem,this._textData.p.f,0,0,this),l:c(this._elem,this._textData.p.l,0,0,this),r:c(this._elem,this._textData.p.r,0,0,this),p:c(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=c(this._elem,this._textData.m.a,1,0,this)},Bo.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var l=this._moreOptions.alignment.v,c=this._animatorsData,m=this._textData,p=this.mHelper,b=this._renderType,I=this.renderedLetters.length,y,k,M,j,A=r.l,O,F,D,G,L,w,T,C,N,$,Y,X,it,At,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var nt=ft.v;this._pathData.r.v&&(nt=nt.reverse()),O={tLength:0,segments:[]},j=nt._length-1;var _t;for(X=0,M=0;M<j;M+=1)_t=Qr.buildBezierData(nt.v[M],nt.v[M+1],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[M+1][0]-nt.v[M+1][0],nt.i[M+1][1]-nt.v[M+1][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength;M=j,ft.v.c&&(_t=Qr.buildBezierData(nt.v[M],nt.v[0],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[0][0]-nt.v[0][0],nt.i[0][1]-nt.v[0][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,G=0,L=!0,$=O.segments,F<0&&ft.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=$.length-1,N=$[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=$[T].points,w=N.length-1);N=$[T].points,C=N[w-1],D=N[w],Y=D.partialLength}j=A.length,y=0,k=0;var mt=r.finalSize*1.2*.714,rt=!0,_,P,g,E,q;E=c.length;var B,ct=-1,gt,St,zt,Bt=F,ve=T,ir=w,ti=-1,or,Le,vr,Yt,ut,_i,oo,wi,ei="",ki=this.defaultPropsArray,Ni;if(r.j===2||r.j===1){var sr=0,so=0,ao=r.j===2?-.5:-1,Fr=0,no=!0;for(M=0;M<j;M+=1)if(A[M].n){for(sr&&(sr+=so);Fr<M;)A[Fr].animatorJustifyOffset=sr,Fr+=1;sr=0,no=!0}else{for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(no&&r.j===2&&(so+=_.t.v*ao),P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?sr+=_.t.v*B[0]*ao:sr+=_.t.v*B*ao);no=!1}for(sr&&(sr+=so);Fr<M;)A[Fr].animatorJustifyOffset=sr,Fr+=1}for(M=0;M<j;M+=1){if(p.reset(),or=1,A[M].n)y=0,k+=r.yOffset,k+=rt?1:0,F=Bt,rt=!1,this._hasMaskedPath&&(T=ve,w=ir,N=$[T].points,C=N[w-1],D=N[w],Y=D.partialLength,G=0),ei="",wi="",_i="",Ni="",ki=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ti!==A[M].line){switch(r.j){case 1:F+=X-r.lineWidths[A[M].line];break;case 2:F+=(X-r.lineWidths[A[M].line])/2;break;default:break}ti=A[M].line}ct!==A[M].ind&&(A[ct]&&(F+=A[ct].extra),F+=A[M].an/2,ct=A[M].ind),F+=l[0]*A[M].an*.005;var $r=0;for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?$r+=_.p.v[0]*B[0]:$r+=_.p.v[0]*B),_.a.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?$r+=_.a.v[0]*B[0]:$r+=_.a.v[0]*B);for(L=!0,this._pathData.a.v&&(F=A[0].an*.5+(X-this._pathData.f.v-A[0].an*.5-A[A.length-1].an*.5)*ct/(j-1),F+=this._pathData.f.v);L;)G+Y>=F+$r||!N?(it=(F+$r-G)/D.partialLength,St=C.point[0]+(D.point[0]-C.point[0])*it,zt=C.point[1]+(D.point[1]-C.point[1])*it,p.translate(-l[0]*A[M].an*.005,-(l[1]*mt)*.01),L=!1):N&&(G+=D.partialLength,w+=1,w>=N.length&&(w=0,T+=1,$[T]?N=$[T].points:ft.v.c?(w=0,T=0,N=$[T].points):(G-=D.partialLength,N=null)),N&&(C=D,D=N[w],Y=D.partialLength));gt=A[M].an/2-A[M].add,p.translate(-gt,0,0)}else gt=A[M].an/2-A[M].add,p.translate(-gt,0,0),p.translate(-l[0]*A[M].an*.005,-l[1]*mt*.01,0);for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?B.length?F+=_.t.v*B[0]:F+=_.t.v*B:B.length?y+=_.t.v*B[0]:y+=_.t.v*B));for(r.strokeWidthAnim&&(vr=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]]),g=0;g<E;g+=1)_=c[g].a,_.a.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.translate(-_.a.v[0]*B[0],-_.a.v[1]*B[1],_.a.v[2]*B[2]):p.translate(-_.a.v[0]*B,-_.a.v[1]*B,_.a.v[2]*B));for(g=0;g<E;g+=1)_=c[g].a,_.s.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.scale(1+(_.s.v[0]-1)*B[0],1+(_.s.v[1]-1)*B[1],1):p.scale(1+(_.s.v[0]-1)*B,1+(_.s.v[1]-1)*B,1));for(g=0;g<E;g+=1){if(_=c[g].a,P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),_.sk.propType&&(B.length?p.skewFromAxis(-_.sk.v*B[0],_.sa.v*B[1]):p.skewFromAxis(-_.sk.v*B,_.sa.v*B)),_.r.propType&&(B.length?p.rotateZ(-_.r.v*B[2]):p.rotateZ(-_.r.v*B)),_.ry.propType&&(B.length?p.rotateY(_.ry.v*B[1]):p.rotateY(_.ry.v*B)),_.rx.propType&&(B.length?p.rotateX(_.rx.v*B[0]):p.rotateX(_.rx.v*B)),_.o.propType&&(B.length?or+=(_.o.v*B[0]-or)*B[0]:or+=(_.o.v*B-or)*B),r.strokeWidthAnim&&_.sw.propType&&(B.length?vr+=_.sw.v*B[0]:vr+=_.sw.v*B),r.strokeColorAnim&&_.sc.propType)for(ut=0;ut<3;ut+=1)B.length?Le[ut]+=(_.sc.v[ut]-Le[ut])*B[0]:Le[ut]+=(_.sc.v[ut]-Le[ut])*B;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(ut=0;ut<3;ut+=1)B.length?Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B[0]:Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B;_.fh.propType&&(B.length?Yt=mu(Yt,_.fh.v*B[0]):Yt=mu(Yt,_.fh.v*B)),_.fs.propType&&(B.length?Yt=hu(Yt,_.fs.v*B[0]):Yt=hu(Yt,_.fs.v*B)),_.fb.propType&&(B.length?Yt=pu(Yt,_.fb.v*B[0]):Yt=pu(Yt,_.fb.v*B))}}for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(A[M].anIndexes[g],m.a[g].s.totalChars),this._hasMaskedPath?B.length?p.translate(0,_.p.v[1]*B[0],-_.p.v[2]*B[1]):p.translate(0,_.p.v[1]*B,-_.p.v[2]*B):B.length?p.translate(_.p.v[0]*B[0],_.p.v[1]*B[1],-_.p.v[2]*B[2]):p.translate(_.p.v[0]*B,_.p.v[1]*B,-_.p.v[2]*B));if(r.strokeWidthAnim&&(_i=vr<0?0:vr),r.strokeColorAnim&&(oo="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(wi="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,l[1]*mt*.01+k,0),this._pathData.p.v){At=(D.point[1]-C.point[1])/(D.point[0]-C.point[0]);var Ho=Math.atan(At)*180/Math.PI;D.point[0]<C.point[0]&&(Ho+=180),p.rotate(-Ho*Math.PI/180)}p.translate(St,zt,0),F-=l[0]*A[M].an*.005,A[M+1]&&ct!==A[M+1].ind&&(F+=A[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(A[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[A[M].line]),0,0);break;case 2:p.translate(A[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[A[M].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(l[0]*A[M].an*.005,l[1]*mt*.01,0),y+=A[M].l+r.tr*.001*r.finalSize}b==="html"?ei=p.toCSS():b==="svg"?ei=p.to2dCSS():ki=[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]],Ni=or}I<=M?(q=new rh(Ni,_i,oo,wi,ei,ki),this.renderedLetters.push(q),I+=1,this.lettersChangedFlag=!0):(q=this.renderedLetters[M],this.lettersChangedFlag=q.update(Ni,_i,oo,wi,ei,ki)||this.lettersChangedFlag)}}},Bo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Bo.prototype.mHelper=new Pe,Bo.prototype.defaultPropsArray=[],x([Ne],Bo);function Cr(){}Cr.prototype.initElement=function(r,s,l){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,l),this.textProperty=new We(this,r.t,this.dynamicProperties),this.textAnimator=new Bo(r.t,this.renderType,this),this.initTransform(r,s,l),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Cr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Cr.prototype.createPathShape=function(r,s){var l,c=s.length,m,p="";for(l=0;l<c;l+=1)s[l].ty==="sh"&&(m=s[l].ks.k,p+=tf(m,m.i.length,!0,r));return p},Cr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Cr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Cr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Cr.prototype.applyTextPropertiesToMatrix=function(r,s,l,c,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l])/2,0,0);break;default:break}s.translate(c,m,0)},Cr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Cr.prototype.emptyProp=new rh,Cr.prototype.destroy=function(){},Cr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var GT={shapes:[]};function Ii(r,s,l){this.textSpans=[],this.renderType="svg",this.initElement(r,s,l)}x([to,Ps,Wa,Fs,eo,Ya,Cr],Ii),Ii.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Ct("text"))},Ii.prototype.buildTextContents=function(r){for(var s=0,l=r.length,c=[],m="";s<l;)r[s]==="\r"||r[s]===""?(c.push(m),m=""):m+=r[s],s+=1;return c.push(m),c},Ii.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var l=r.shapes[0];if(l.it){var c=l.it[l.it.length-1];c.s&&(c.s.k[0]=s,c.s.k[1]=s)}}return r},Ii.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,l=this.textProperty.currentData;this.renderedLetters=Z(l?l.l.length:0),l.fc?this.layerElement.setAttribute("fill",this.buildColor(l.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),l.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(l.sc)),this.layerElement.setAttribute("stroke-width",l.sw)),this.layerElement.setAttribute("font-size",l.finalSize);var c=this.globalData.fontManager.getFontByName(l.f);if(c.fClass)this.layerElement.setAttribute("class",c.fClass);else{this.layerElement.setAttribute("font-family",c.fFamily);var m=l.fWeight,p=l.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",l.t);var b=l.l||[],I=!!this.globalData.fontManager.chars;s=b.length;var y,k=this.mHelper,M="",j=this.data.singleShape,A=0,O=0,F=!0,D=l.tr*.001*l.finalSize;if(j&&!I&&!l.sz){var G=this.textContainer,L="start";switch(l.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}G.setAttribute("text-anchor",L),G.setAttribute("letter-spacing",D);var w=this.buildTextContents(l.finalText);for(s=w.length,O=l.ps?l.ps[1]+l.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||Ct("tspan"),y.textContent=w[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",G.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=l.finalLineHeight;this.layerElement.appendChild(G)}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||!j||r===0){if(y=T>r?this.textSpans[r].span:Ct(I?"g":"text"),T<=r){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=y,I){var N=Ct("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(k.reset(),j&&(b[r].n&&(A=-D,O+=l.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(l,k,b[r].line,A,O),A+=b[r].l||0,A+=D),I){C=this.globalData.fontManager.getCharData(l.finalText[r],c.fStyle,this.globalData.fontManager.getFontByName(l.f).fFamily);var $;if(C.t===1)$=new Xa(C.data,this.globalData,this);else{var Y=GT;C.data&&C.data.shapes&&(Y=this.buildShapeData(C.data,l.finalSize)),$=new he(Y,this.globalData,this)}if(this.textSpans[r].glyph){var X=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(X.layerElement),X.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+l.finalSize/100+","+l.finalSize/100+")")}else j&&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")}j&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},Ii.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},Ii.prototype.getValue=function(){var r,s=this.textSpans.length,l;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)l=this.textSpans[r].glyph,l&&(l.prepareFrame(this.comp.renderedFrame-this.data.st),l._mdf&&(this._mdf=!0))},Ii.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;s=c.length;var m,p,b;for(r=0;r<s;r+=1)c[r].n||(m=l[r],p=this.textSpans[r].span,b=this.textSpans[r].glyph,b&&b.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function ih(r,s,l){this.initElement(r,s,l)}x([ja],ih),ih.prototype.createContent=function(){var r=Ct("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function io(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initFrame(),this.initTransform(r,s,l),this.initHierarchy()}io.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},io.prototype.renderFrame=function(){},io.prototype.getBaseElement=function(){return null},io.prototype.destroy=function(){},io.prototype.sourceRectAtTime=function(){},io.prototype.hide=function(){},x([to,Ps,Fs,eo],io);function Ae(){}x([Fe],Ae),Ae.prototype.createNull=function(r){return new io(r,this.globalData,this)},Ae.prototype.createShape=function(r){return new he(r,this.globalData,this)},Ae.prototype.createText=function(r){return new Ii(r,this.globalData,this)},Ae.prototype.createImage=function(r){return new ja(r,this.globalData,this)},Ae.prototype.createSolid=function(r){return new ih(r,this.globalData,this)},Ae.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var l=Ct("clipPath"),c=Ct("rect");c.setAttribute("width",r.w),c.setAttribute("height",r.h),c.setAttribute("x",0),c.setAttribute("y",0);var m=er();l.setAttribute("id",m),l.appendChild(c),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(l),this.layers=r.layers,this.elements=Z(r.layers.length)},Ae.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ae.prototype.updateContainerSize=function(){},Ae.prototype.findIndexByInd=function(r){var s=0,l=this.layers.length;for(s=0;s<l;s+=1)if(this.layers[s].ind===r)return s;return-1},Ae.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var l=this.createItem(this.layers[r]);if(s[r]=l,dl()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(l),l.initExpressions()),this.appendElementInPos(l,r),this.layers[r].tt){var c="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(c===-1)return;if(!this.elements[c]||this.elements[c]===!0)this.buildItem(c),this.addPendingElement(l);else{var m=s[c],p=m.getMatte(this.layers[r].tt);l.setMatte(p)}}}},Ae.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,l=this.elements.length;s<l;){if(this.elements[s]===r){var c="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[c],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ae.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,l=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=l-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<l;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ae.prototype.appendElementInPos=function(r,s){var l=r.getBaseElement();if(l){for(var c=0,m;c<s;)this.elements[c]&&this.elements[c]!==!0&&this.elements[c].getBaseElement()&&(m=this.elements[c].getBaseElement()),c+=1;m?this.layerElement.insertBefore(l,m):this.layerElement.appendChild(l)}},Ae.prototype.hide=function(){this.layerElement.style.display="none"},Ae.prototype.show=function(){this.layerElement.style.display="block"};function Ci(){}x([to,Ps,Fs,eo,Ya],Ci),Ci.prototype.initElement=function(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initTransform(r,s,l),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},Ci.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var l,c=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),l=c-1;l>=0;l-=1)(this.completeLayers||this.elements[l])&&(this.elements[l].prepareFrame(this.renderedFrame-this.layers[l].st),this.elements[l]._mdf&&(this._mdf=!0))}},Ci.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()},Ci.prototype.setElements=function(r){this.elements=r},Ci.prototype.getElements=function(){return this.elements},Ci.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},Ci.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Xa(r,s,l){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Z(this.layers.length):[],this.initElement(r,s,l),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}x([Ae,Ci,Wa],Xa),Xa.prototype.createComp=function(r){return new Xa(r,this.globalData,this)};function oh(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=Ct("svg");var l="";if(s&&s.title){var c=Ct("title"),m=er();c.setAttribute("id",m),c.textContent=s.title,this.svgElement.appendChild(c),l+=m}if(s&&s.description){var p=Ct("desc"),b=er();p.setAttribute("id",b),p.textContent=s.description,this.svgElement.appendChild(p),l+=" "+b}l&&this.svgElement.setAttribute("aria-labelledby",l);var I=Ct("defs");this.svgElement.appendChild(I);var y=Ct("g");this.svgElement.appendChild(y),this.layerElement=y,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return x([Ae],oh),oh.prototype.createComp=function(r){return new Xa(r,this.globalData,this)},tT("svg",oh),Qi.registerModifier("tm",Pr),Qi.registerModifier("pb",Va),Qi.registerModifier("rp",Jr),Qi.registerModifier("rd",za),Qi.registerModifier("zz",Ha),Qi.registerModifier("op",Ua),Wt})});var wl=globalThis,kl=wl.ShadowRoot&&(wl.ShadyCSS===void 0||wl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ah=Symbol(),rf=new WeakMap,Za=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==ah)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(kl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=rf.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&rf.set(t,o))}return o}toString(){return this.cssText}},of=n=>new Za(typeof n=="string"?n:n+"",void 0,ah),z=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((e,i,a)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+n[a+1],n[0]);return new Za(t,n,ah)},nh=(n,o)=>{if(kl)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=wl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,n.appendChild(e)}},Nl=kl?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return of(t)})(n):n;var{is:QT,defineProperty:JT,getOwnPropertyDescriptor:tx,getOwnPropertyNames:ex,getOwnPropertySymbols:rx,getPrototypeOf:ix}=Object,lo=globalThis,sf=lo.trustedTypes,ox=sf?sf.emptyScript:"",lh=lo.reactiveElementPolyfillSupport,Qa=(n,o)=>n,Ja={toAttribute(n,o){switch(o){case Boolean:n=n?ox:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Ll=(n,o)=>!QT(n,o),af={attribute:!0,type:String,converter:Ja,reflect:!1,hasChanged:Ll},nf,lf;(nf=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(lf=lo.litPropertyMetadata)!=null||(lo.litPropertyMetadata=new WeakMap);var Li=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=af){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&&JT(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var d;let{get:i,set:a}=(d=tx(this.prototype,o))!=null?d:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let v=i==null?void 0:i.call(this);a.call(this,f),this.requestUpdate(o,v,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:af}static _$Ei(){if(this.hasOwnProperty(Qa("elementProperties")))return;let o=ix(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Qa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qa("properties"))){let t=this.properties,e=[...ex(t),...rx(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(Nl(i))}else o!==void 0&&t.push(Nl(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 nh(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 a;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let d=(((a=e.converter)==null?void 0:a.toAttribute)!==void 0?e.converter:Ja).toAttribute(t,e.type);this._$Em=o,d==null?this.removeAttribute(i):this.setAttribute(i,d),this._$Em=null}}_$AK(o,t){var a;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let d=e.getPropertyOptions(i),f=typeof d.converter=="function"?{fromAttribute:d.converter}:((a=d.converter)==null?void 0:a.fromAttribute)!==void 0?d.converter:Ja;this._$Em=i,this[i]=f.fromAttribute(t,d.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:Ll)(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[d,f]of this._$Ep)this[d]=f;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[d,f]of a)f.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(a=>{var d;return(d=a.hostUpdate)==null?void 0:d.call(a)}),this.update(t)):this._$EU()}catch(a){throw o=!1,this._$EU(),a}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){}},df;Li.elementStyles=[],Li.shadowRootOptions={mode:"open"},Li[Qa("elementProperties")]=new Map,Li[Qa("finalized")]=new Map,lh==null||lh({ReactiveElement:Li}),((df=lo.reactiveElementVersions)!=null?df:lo.reactiveElementVersions=[]).push("2.0.4");var en=globalThis,Ml=en.trustedTypes,cf=Ml?Ml.createPolicy("lit-html",{createHTML:n=>n}):void 0,hh="$lit$",Mi=`lit$${Math.random().toFixed(9).slice(2)}$`,ph="?"+Mi,sx=`<${ph}>`,Ko=document,rn=()=>Ko.createComment(""),on=n=>n===null||typeof n!="object"&&typeof n!="function",mh=Array.isArray,gf=n=>mh(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",dh=`[
|
|
3
3
|
\f\r]`,tn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hf=/-->/g,pf=/>/g,Uo=RegExp(`>|${dh}(?:([^\\s"'>=/]+)(${dh}*=${dh}*(?:[^
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),mf=/'/g,uf=/"/g,bf=/^(?:script|style|textarea|title)$/i,uh=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),S=uh(1),fC=uh(2),vC=uh(3),$e=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),ff=new WeakMap,Go=Ko.createTreeWalker(Ko,129);function yf(n,o){if(!mh(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return cf!==void 0?cf.createHTML(o):o}var Ef=(n,o)=>{let t=n.length-1,e=[],i,a=o===2?"<svg>":o===3?"<math>":"",d=tn;for(let f=0;f<t;f++){let v=n[f],x,R,H=-1,J=0;for(;J<v.length&&(d.lastIndex=J,R=d.exec(v),R!==null);)J=d.lastIndex,d===tn?R[1]==="!--"?d=hf:R[1]!==void 0?d=pf:R[2]!==void 0?(bf.test(R[2])&&(i=RegExp("</"+R[2],"g")),d=Uo):R[3]!==void 0&&(d=Uo):d===Uo?R[0]===">"?(d=i!=null?i:tn,H=-1):R[1]===void 0?H=-2:(H=d.lastIndex-R[2].length,x=R[1],d=R[3]===void 0?Uo:R[3]==='"'?uf:mf):d===uf||d===mf?d=Uo:d===hf||d===pf?d=tn:(d=Uo,i=void 0);let W=d===Uo&&n[f+1].startsWith("/>")?" ":"";a+=d===tn?v+sx:H>=0?(e.push(x),v.slice(0,H)+hh+v.slice(H)+Li+W):v+Li+(H===-2?f:W)}return[yf(n,a+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},sn=class n{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let a=0,d=0,f=o.length-1,v=this.parts,[x,R]=Ef(o,t);if(this.el=n.createElement(x,e),Go.currentNode=this.el.content,t===2||t===3){let H=this.el.content.firstChild;H.replaceWith(...H.childNodes)}for(;(i=Go.nextNode())!==null&&v.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let H of i.getAttributeNames())if(H.endsWith(hh)){let J=R[d++],W=i.getAttribute(H).split(Li),Z=/([.?@])?(.*)/.exec(J);v.push({type:1,index:a,name:Z[2],strings:W,ctor:Z[1]==="."?Rl:Z[1]==="?"?Dl:Z[1]==="@"?Pl:Yo}),i.removeAttribute(H)}else H.startsWith(Li)&&(v.push({type:6,index:a}),i.removeAttribute(H));if(bf.test(i.tagName)){let H=i.textContent.split(Li),J=H.length-1;if(J>0){i.textContent=Ml?Ml.emptyScript:"";for(let W=0;W<J;W++)i.append(H[W],rn()),Go.nextNode(),v.push({type:2,index:++a});i.append(H[J],rn())}}}else if(i.nodeType===8)if(i.data===ph)v.push({type:2,index:a});else{let H=-1;for(;(H=i.data.indexOf(Li,H+1))!==-1;)v.push({type:7,index:a}),H+=Li.length-1}a++}}static createElement(o,t){let e=Ko.createElement("template");return e.innerHTML=o,e}};function Wo(n,o,t=n,e){var d,f,v;if(o===$e)return o;let i=e!==void 0?(d=t.o)==null?void 0:d[e]:t.l,a=on(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==a&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),a===void 0?i=void 0:(i=new a(n),i._$AT(n,t,e)),e!==void 0?((v=t.o)!=null?v:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Wo(n,i._$AS(n,o.values),i,e)),o}var Ol=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 x;let{el:{content:t},parts:e}=this._$AD,i=((x=o==null?void 0:o.creationScope)!=null?x:Ko).importNode(t,!0);Go.currentNode=i;let a=Go.nextNode(),d=0,f=0,v=e[0];for(;v!==void 0;){if(d===v.index){let R;v.type===2?R=new Vs(a,a.nextSibling,this,o):v.type===1?R=new v.ctor(a,v.name,v.strings,this,o):v.type===6&&(R=new Fl(a,this,o)),this._$AV.push(R),v=e[++f]}d!==(v==null?void 0:v.index)&&(a=Go.nextNode(),d++)}return Go.currentNode=Ko,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++}},Vs=class n{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 a;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(a=i==null?void 0:i.isConnected)!=null?a:!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=Wo(this,o,t),on(o)?o===U||o==null||o===""?(this._$AH!==U&&this._$AR(),this._$AH=U):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):gf(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!==U&&on(this._$AH)?this._$AA.nextSibling.data=o:this.T(Ko.createTextNode(o)),this._$AH=o}$(o){var a;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=sn.createElement(yf(e.h,e.h[0]),this.options)),e);if(((a=this._$AH)==null?void 0:a._$AD)===i)this._$AH.p(t);else{let d=new Ol(i,this),f=d.u(this.options);d.p(t),this.T(f),this._$AH=d}}_$AC(o){let t=ff.get(o.strings);return t===void 0&&ff.set(o.strings,t=new sn(o)),t}k(o){mh(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let a of o)i===t.length?t.push(e=new n(this.O(rn()),this.O(rn()),this,this.options)):e=t[i],e._$AI(a),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))}},Yo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,a){this.type=1,this._$AH=U,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=U}_$AI(o,t=this,e,i){let a=this.strings,d=!1;if(a===void 0)o=Wo(this,o,t,0),d=!on(o)||o!==this._$AH&&o!==$e,d&&(this._$AH=o);else{let f=o,v,x;for(o=a[0],v=0;v<a.length-1;v++)x=Wo(this,f[e+v],t,v),x===$e&&(x=this._$AH[v]),d||(d=!on(x)||x!==this._$AH[v]),x===U?o=U:o!==U&&(o+=(x!=null?x:"")+a[v+1]),this._$AH[v]=x}d&&!i&&this.j(o)}j(o){o===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Rl=class extends Yo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===U?void 0:o}},Dl=class extends Yo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==U)}},Pl=class extends Yo{constructor(o,t,e,i,a){super(o,t,e,i,a),this.type=5}_$AI(o,t=this){var d;if((o=(d=Wo(this,o,t,0))!=null?d:U)===$e)return;let e=this._$AH,i=o===U&&e!==U||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,a=o!==U&&(e===U||i);i&&this.element.removeEventListener(this.name,this,e),a&&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)}},Fl=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){Wo(this,o)}},Tf={M:hh,P:Li,A:ph,C:1,L:Ef,R:Ol,D:gf,V:Wo,I:Vs,H:Yo,N:Dl,U:Pl,B:Rl,F:Fl},ch=en.litHtmlPolyfillSupport,vf;ch==null||ch(sn,Vs),((vf=en.litHtmlVersions)!=null?vf:en.litHtmlVersions=[]).push("3.2.0");var xf=(n,o,t)=>{var a,d;let e=(a=t==null?void 0:t.renderBefore)!=null?a:o,i=e._$litPart$;if(i===void 0){let f=(d=t==null?void 0:t.renderBefore)!=null?d:null;e._$litPart$=i=new Vs(o.insertBefore(rn(),f),f,void 0,t!=null?t:{})}return i._$AI(n),i};var co=class extends Ni{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=xf(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;co._$litElement$=!0,co.finalized=!0,(Af=globalThis.litElementHydrateSupport)==null||Af.call(globalThis,{LitElement:co});var fh=globalThis.litElementPolyfillSupport;fh==null||fh({LitElement:co});var Sf;((Sf=globalThis.litElementVersions)!=null?Sf:globalThis.litElementVersions=[]).push("4.1.0");var ax={attribute:!0,type:String,converter:Ja,reflect:!1,hasChanged:Ll},nx=(n=ax,o,t)=>{let{kind:e,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,n),e==="accessor"){let{name:d}=t;return{set(f){let v=o.get.call(this);o.set.call(this,f),this.requestUpdate(d,v,n)},init(f){return f!==void 0&&this.P(d,void 0,n),f}}}if(e==="setter"){let{name:d}=t;return function(f){let v=this[d];o.call(this,f),this.requestUpdate(d,v,n)}}throw Error("Unsupported decorator location: "+e)};function u(n){return(o,t)=>typeof t=="object"?nx(n,o,t):((e,i,a)=>{let d=i.hasOwnProperty(a);return i.constructor.createProperty(a,d?{...e,wrapped:!0}:e),d?Object.getOwnPropertyDescriptor(i,a):void 0})(n,o,t)}function dt(n){return u({...n,state:!0,attribute:!1})}function If(n){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,n)}}var ri=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function Bt(n,o){return(t,e,i)=>{let a=d=>{var f,v;return(v=(f=d.renderRoot)==null?void 0:f.querySelector(n))!=null?v:null};if(o){let{get:d,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let v=Symbol();return{get(){return this[v]},set(x){this[v]=x}}})();return ri(t,e,{get(){let v=d.call(this);return v===void 0&&(v=a(this),(v!==null||this.hasUpdated)&&f.call(this,v)),v}})}return ri(t,e,{get(){return a(this)}})}}var vh;function Cf(n){return(o,t)=>ri(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:vh!=null?vh:vh=document.createDocumentFragment()).querySelectorAll(n)}})}function qt(n){return(o,t)=>{let{slot:e,selector:i}=n!=null?n:{},a="slot"+(e?`[name=${e}]`:":not([name])");return ri(o,t,{get(){var v,x;let d=(v=this.renderRoot)==null?void 0:v.querySelector(a),f=(x=d==null?void 0:d.assignedElements(n))!=null?x:[];return i===void 0?f:f.filter(R=>R.matches(i))}})}}function _f(n){return(o,t)=>{let{slot:e}=n!=null?n:{},i="slot"+(e?`[name=${e}]`:":not([name])");return ri(o,t,{get(){var d,f;let a=(d=this.renderRoot)==null?void 0:d.querySelector(i);return(f=a==null?void 0:a.assignedNodes(n))!=null?f:[]}})}}var lx={PREFIX:"mdc",SEPARATOR:"-"},dx={NAMESPACE:lx},gh=dx;var cx=n=>[gh.NAMESPACE.PREFIX,n].join(gh.NAMESPACE.SEPARATOR),V={constructTagName:cx};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 wf=V.constructTagName("buttonsimple"),jo={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},zs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},an={SIZE:jo[32],TYPE:zs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Mi=V.constructTagName("button"),zt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},nn={40:40,32:32,28:28,24:24},_r={64:64,52:52,20:20,...nn},Ye={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",OVERLAY:"overlay",DEFAULT:"default"},Bs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},kf={POSITIVE:Ye.POSITIVE,NEGATIVE:Ye.NEGATIVE,ACCENT:Ye.ACCENT,PROMOTIONAL:Ye.PROMOTIONAL,DEFAULT:Ye.DEFAULT},Nf={DEFAULT:Ye.DEFAULT,ACCENT:Ye.ACCENT,NEGATIVE:Ye.NEGATIVE};var ar={VARIANT:zt.PRIMARY,SIZE:nn[32],COLOR:Ye.DEFAULT,TYPE_INTERNAL:Bs.ICON,TYPE:zs.BUTTON,INVERTED:!1};var $l=n=>{class o extends n{constructor(){super(...arguments);this.variant=ar.VARIANT;this.color=ar.COLOR;this.typeInternal=ar.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(zt).includes(i)?i:ar.VARIANT)}setColor(i){let a=Object.values(Ye).includes(i),d=this.variant===zt.PRIMARY&&!Object.values(kf).includes(i),f=this.variant===zt.TERTIARY&&!Object.values(Nf).includes(i);!a||d||f?this.setAttribute("color",`${ar.COLOR}`):this.setAttribute("color",i)}setSize(i){let d=this.typeInternal===Bs.ICON?Object.values(_r).includes(i)&&!(i===_r[20]&&this.variant!==zt.TERTIARY):Object.values(nn).includes(i);this.setAttribute("size",d?`${i}`:`${ar.SIZE}`)}inferButtonType(){var x,R,H,J,W,Z;let i=(R=(x=this.shadowRoot)==null?void 0:x.querySelector("slot:not([name])"))==null?void 0:R.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,a=(J=(H=this.shadowRoot)==null?void 0:H.querySelector('slot[name="prefix"]'))==null?void 0:J.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,d=this.prefixIcon||a&&a>0,f=(Z=(W=this.shadowRoot)==null?void 0:W.querySelector('slot[name="postfix"]'))==null?void 0:Z.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,v=this.postfixIcon||f&&f>0;i&&(d||v)?(this.typeInternal=Bs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(d||v)?(this.typeInternal=Bs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Bs.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 Lf=z`
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),mf=/'/g,uf=/"/g,bf=/^(?:script|style|textarea|title)$/i,uh=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),S=uh(1),fC=uh(2),vC=uh(3),$e=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),ff=new WeakMap,Go=Ko.createTreeWalker(Ko,129);function yf(n,o){if(!mh(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return cf!==void 0?cf.createHTML(o):o}var Ef=(n,o)=>{let t=n.length-1,e=[],i,a=o===2?"<svg>":o===3?"<math>":"",d=tn;for(let f=0;f<t;f++){let v=n[f],x,R,H=-1,J=0;for(;J<v.length&&(d.lastIndex=J,R=d.exec(v),R!==null);)J=d.lastIndex,d===tn?R[1]==="!--"?d=hf:R[1]!==void 0?d=pf:R[2]!==void 0?(bf.test(R[2])&&(i=RegExp("</"+R[2],"g")),d=Uo):R[3]!==void 0&&(d=Uo):d===Uo?R[0]===">"?(d=i!=null?i:tn,H=-1):R[1]===void 0?H=-2:(H=d.lastIndex-R[2].length,x=R[1],d=R[3]===void 0?Uo:R[3]==='"'?uf:mf):d===uf||d===mf?d=Uo:d===hf||d===pf?d=tn:(d=Uo,i=void 0);let W=d===Uo&&n[f+1].startsWith("/>")?" ":"";a+=d===tn?v+sx:H>=0?(e.push(x),v.slice(0,H)+hh+v.slice(H)+Mi+W):v+Mi+(H===-2?f:W)}return[yf(n,a+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},sn=class n{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let a=0,d=0,f=o.length-1,v=this.parts,[x,R]=Ef(o,t);if(this.el=n.createElement(x,e),Go.currentNode=this.el.content,t===2||t===3){let H=this.el.content.firstChild;H.replaceWith(...H.childNodes)}for(;(i=Go.nextNode())!==null&&v.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let H of i.getAttributeNames())if(H.endsWith(hh)){let J=R[d++],W=i.getAttribute(H).split(Mi),Z=/([.?@])?(.*)/.exec(J);v.push({type:1,index:a,name:Z[2],strings:W,ctor:Z[1]==="."?Rl:Z[1]==="?"?Dl:Z[1]==="@"?Pl:Yo}),i.removeAttribute(H)}else H.startsWith(Mi)&&(v.push({type:6,index:a}),i.removeAttribute(H));if(bf.test(i.tagName)){let H=i.textContent.split(Mi),J=H.length-1;if(J>0){i.textContent=Ml?Ml.emptyScript:"";for(let W=0;W<J;W++)i.append(H[W],rn()),Go.nextNode(),v.push({type:2,index:++a});i.append(H[J],rn())}}}else if(i.nodeType===8)if(i.data===ph)v.push({type:2,index:a});else{let H=-1;for(;(H=i.data.indexOf(Mi,H+1))!==-1;)v.push({type:7,index:a}),H+=Mi.length-1}a++}}static createElement(o,t){let e=Ko.createElement("template");return e.innerHTML=o,e}};function Wo(n,o,t=n,e){var d,f,v;if(o===$e)return o;let i=e!==void 0?(d=t.o)==null?void 0:d[e]:t.l,a=on(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==a&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),a===void 0?i=void 0:(i=new a(n),i._$AT(n,t,e)),e!==void 0?((v=t.o)!=null?v:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Wo(n,i._$AS(n,o.values),i,e)),o}var Ol=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 x;let{el:{content:t},parts:e}=this._$AD,i=((x=o==null?void 0:o.creationScope)!=null?x:Ko).importNode(t,!0);Go.currentNode=i;let a=Go.nextNode(),d=0,f=0,v=e[0];for(;v!==void 0;){if(d===v.index){let R;v.type===2?R=new Vs(a,a.nextSibling,this,o):v.type===1?R=new v.ctor(a,v.name,v.strings,this,o):v.type===6&&(R=new Fl(a,this,o)),this._$AV.push(R),v=e[++f]}d!==(v==null?void 0:v.index)&&(a=Go.nextNode(),d++)}return Go.currentNode=Ko,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++}},Vs=class n{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 a;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(a=i==null?void 0:i.isConnected)!=null?a:!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=Wo(this,o,t),on(o)?o===U||o==null||o===""?(this._$AH!==U&&this._$AR(),this._$AH=U):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):gf(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!==U&&on(this._$AH)?this._$AA.nextSibling.data=o:this.T(Ko.createTextNode(o)),this._$AH=o}$(o){var a;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=sn.createElement(yf(e.h,e.h[0]),this.options)),e);if(((a=this._$AH)==null?void 0:a._$AD)===i)this._$AH.p(t);else{let d=new Ol(i,this),f=d.u(this.options);d.p(t),this.T(f),this._$AH=d}}_$AC(o){let t=ff.get(o.strings);return t===void 0&&ff.set(o.strings,t=new sn(o)),t}k(o){mh(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let a of o)i===t.length?t.push(e=new n(this.O(rn()),this.O(rn()),this,this.options)):e=t[i],e._$AI(a),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))}},Yo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,a){this.type=1,this._$AH=U,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=U}_$AI(o,t=this,e,i){let a=this.strings,d=!1;if(a===void 0)o=Wo(this,o,t,0),d=!on(o)||o!==this._$AH&&o!==$e,d&&(this._$AH=o);else{let f=o,v,x;for(o=a[0],v=0;v<a.length-1;v++)x=Wo(this,f[e+v],t,v),x===$e&&(x=this._$AH[v]),d||(d=!on(x)||x!==this._$AH[v]),x===U?o=U:o!==U&&(o+=(x!=null?x:"")+a[v+1]),this._$AH[v]=x}d&&!i&&this.j(o)}j(o){o===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Rl=class extends Yo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===U?void 0:o}},Dl=class extends Yo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==U)}},Pl=class extends Yo{constructor(o,t,e,i,a){super(o,t,e,i,a),this.type=5}_$AI(o,t=this){var d;if((o=(d=Wo(this,o,t,0))!=null?d:U)===$e)return;let e=this._$AH,i=o===U&&e!==U||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,a=o!==U&&(e===U||i);i&&this.element.removeEventListener(this.name,this,e),a&&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)}},Fl=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){Wo(this,o)}},Tf={M:hh,P:Mi,A:ph,C:1,L:Ef,R:Ol,D:gf,V:Wo,I:Vs,H:Yo,N:Dl,U:Pl,B:Rl,F:Fl},ch=en.litHtmlPolyfillSupport,vf;ch==null||ch(sn,Vs),((vf=en.litHtmlVersions)!=null?vf:en.litHtmlVersions=[]).push("3.2.0");var xf=(n,o,t)=>{var a,d;let e=(a=t==null?void 0:t.renderBefore)!=null?a:o,i=e._$litPart$;if(i===void 0){let f=(d=t==null?void 0:t.renderBefore)!=null?d:null;e._$litPart$=i=new Vs(o.insertBefore(rn(),f),f,void 0,t!=null?t:{})}return i._$AI(n),i};var co=class extends Li{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=xf(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;co._$litElement$=!0,co.finalized=!0,(Af=globalThis.litElementHydrateSupport)==null||Af.call(globalThis,{LitElement:co});var fh=globalThis.litElementPolyfillSupport;fh==null||fh({LitElement:co});var Sf;((Sf=globalThis.litElementVersions)!=null?Sf:globalThis.litElementVersions=[]).push("4.1.0");var ax={attribute:!0,type:String,converter:Ja,reflect:!1,hasChanged:Ll},nx=(n=ax,o,t)=>{let{kind:e,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,n),e==="accessor"){let{name:d}=t;return{set(f){let v=o.get.call(this);o.set.call(this,f),this.requestUpdate(d,v,n)},init(f){return f!==void 0&&this.P(d,void 0,n),f}}}if(e==="setter"){let{name:d}=t;return function(f){let v=this[d];o.call(this,f),this.requestUpdate(d,v,n)}}throw Error("Unsupported decorator location: "+e)};function u(n){return(o,t)=>typeof t=="object"?nx(n,o,t):((e,i,a)=>{let d=i.hasOwnProperty(a);return i.constructor.createProperty(a,d?{...e,wrapped:!0}:e),d?Object.getOwnPropertyDescriptor(i,a):void 0})(n,o,t)}function dt(n){return u({...n,state:!0,attribute:!1})}function If(n){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,n)}}var ri=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function Ht(n,o){return(t,e,i)=>{let a=d=>{var f,v;return(v=(f=d.renderRoot)==null?void 0:f.querySelector(n))!=null?v:null};if(o){let{get:d,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let v=Symbol();return{get(){return this[v]},set(x){this[v]=x}}})();return ri(t,e,{get(){let v=d.call(this);return v===void 0&&(v=a(this),(v!==null||this.hasUpdated)&&f.call(this,v)),v}})}return ri(t,e,{get(){return a(this)}})}}var vh;function Cf(n){return(o,t)=>ri(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:vh!=null?vh:vh=document.createDocumentFragment()).querySelectorAll(n)}})}function Xt(n){return(o,t)=>{let{slot:e,selector:i}=n!=null?n:{},a="slot"+(e?`[name=${e}]`:":not([name])");return ri(o,t,{get(){var v,x;let d=(v=this.renderRoot)==null?void 0:v.querySelector(a),f=(x=d==null?void 0:d.assignedElements(n))!=null?x:[];return i===void 0?f:f.filter(R=>R.matches(i))}})}}function _f(n){return(o,t)=>{let{slot:e}=n!=null?n:{},i="slot"+(e?`[name=${e}]`:":not([name])");return ri(o,t,{get(){var d,f;let a=(d=this.renderRoot)==null?void 0:d.querySelector(i);return(f=a==null?void 0:a.assignedNodes(n))!=null?f:[]}})}}var lx={PREFIX:"mdc",SEPARATOR:"-"},dx={NAMESPACE:lx},gh=dx;var cx=n=>[gh.NAMESPACE.PREFIX,n].join(gh.NAMESPACE.SEPARATOR),V={constructTagName:cx};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 wf=V.constructTagName("buttonsimple"),jo={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},zs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},an={SIZE:jo[32],TYPE:zs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Oi=V.constructTagName("button"),Ut={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},nn={40:40,32:32,28:28,24:24},_r={64:64,52:52,20:20,...nn},Ye={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",OVERLAY:"overlay",DEFAULT:"default"},Bs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},kf={POSITIVE:Ye.POSITIVE,NEGATIVE:Ye.NEGATIVE,ACCENT:Ye.ACCENT,PROMOTIONAL:Ye.PROMOTIONAL,DEFAULT:Ye.DEFAULT},Nf={DEFAULT:Ye.DEFAULT,ACCENT:Ye.ACCENT,NEGATIVE:Ye.NEGATIVE};var ar={VARIANT:Ut.PRIMARY,SIZE:nn[32],COLOR:Ye.DEFAULT,TYPE_INTERNAL:Bs.ICON,TYPE:zs.BUTTON,INVERTED:!1};var $l=n=>{class o extends n{constructor(){super(...arguments);this.variant=ar.VARIANT;this.color=ar.COLOR;this.typeInternal=ar.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Ut).includes(i)?i:ar.VARIANT)}setColor(i){let a=Object.values(Ye).includes(i),d=this.variant===Ut.PRIMARY&&!Object.values(kf).includes(i),f=this.variant===Ut.TERTIARY&&!Object.values(Nf).includes(i);!a||d||f?this.setAttribute("color",`${ar.COLOR}`):this.setAttribute("color",i)}setSize(i){let d=this.typeInternal===Bs.ICON?Object.values(_r).includes(i)&&!(i===_r[20]&&this.variant!==Ut.TERTIARY):Object.values(nn).includes(i);this.setAttribute("size",d?`${i}`:`${ar.SIZE}`)}inferButtonType(){var x,R,H,J,W,Z;let i=(R=(x=this.shadowRoot)==null?void 0:x.querySelector("slot:not([name])"))==null?void 0:R.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,a=(J=(H=this.shadowRoot)==null?void 0:H.querySelector('slot[name="prefix"]'))==null?void 0:J.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,d=this.prefixIcon||a&&a>0,f=(Z=(W=this.shadowRoot)==null?void 0:W.querySelector('slot[name="postfix"]'))==null?void 0:Z.assignedNodes().filter(ot=>{var st;return ot.nodeType!==Node.TEXT_NODE||((st=ot.textContent)==null?void 0:st.trim())}).length,v=this.postfixIcon||f&&f>0;i&&(d||v)?(this.typeInternal=Bs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(d||v)?(this.typeInternal=Bs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Bs.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 Lf=z`
|
|
5
5
|
:host {
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:host {
|
|
16
16
|
display: contents;
|
|
17
17
|
}
|
|
18
|
-
`,Of=hx;var Bl=class extends Q{constructor({context:o,initialValue:t}){super(),this.context=new Us(this,{context:o,initialValue:t})}updateContext(){throw new Error("Not implemented")}render(){return this.updateContext(),S`<slot></slot>`}};Bl.styles=[...Q.styles,Of];var Rf=Bl;var Se=Rf;var Ve=n=>{class o extends n{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 Xt=n=>{class o extends n{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ii=n=>{class o extends n{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Lt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var px=n=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:a}=n,d=(i||a)&&(f=>{a&&a.forEach(v=>{o.requestUpdate(v)}),i==null||i(f)});return new Hs(o,{context:t,callback:d,subscribe:e!=null?e:!0})},mx={consume:px},Ie=mx;var Pf=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Ff=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),ux=n=>n.getClientRects().length===0,fx=n=>{let{width:o,height:t}=n.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=n;return e+i+t+o===0},yh=n=>{if(!(n instanceof Element))return null;let o=getComputedStyle(n),{overflowX:t,overflowY:e}=o,i=t==="auto"||t==="scroll",a=e==="auto"||e==="scroll";return i&&a?"both":i?"horizontal":a?"vertical":null},vx=n=>fx(n)||ux(n),gx=n=>{let{display:o,opacity:t,visibility:e}=n.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},bx=n=>{let o=getComputedStyle(n);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},yx=n=>getComputedStyle(n).display==="contents",Ex=n=>n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||gx(n)||!yx(n)&&(bx(n)||vx(n)),Tx=n=>n.disabled,xx=n=>n.getAttribute("tabindex")!=="-1",Ax=n=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(n.tagName)||n instanceof HTMLAnchorElement&&n.hasAttribute("href")||n instanceof HTMLInputElement&&n.type!=="hidden"||(n instanceof HTMLAudioElement||n instanceof HTMLVideoElement)&&n.hasAttribute("controls")||(n instanceof HTMLImageElement||n instanceof HTMLObjectElement)&&n.hasAttribute("usemap")||n.hasAttribute("tabindex")&&n.tabIndex>-1),Df=(n,o)=>o.some(t=>n.matches(t));var qo=(n,o={})=>{var R,H,J,W;if(!n)return[];let t=new Set((R=o==null?void 0:o.excludedElements)!=null?R:[]),e=(H=o==null?void 0:o.includeSelectors)!=null?H:[],i=(J=o==null?void 0:o.excludeSelectors)!=null?J:[],a=(W=o==null?void 0:o.stopAtNonTabbable)!=null?W:!1,d=new Set([]),f=Z=>{if(t.has(n)||Df(Z,i)||Ex(Z)||Tx(Z))return"stop";if(a&&!(Z instanceof HTMLSlotElement)&&Z.getAttribute("tabindex")==="-1"){let ot=Z.getRootNode();if(!(ot instanceof ShadowRoot&&ot.delegatesFocus))return"stop"}return Df(Z,e)||xx(Z)&&Ax(Z)?"focusable":"continue"},v=o.customFocusableCheck?Z=>o.customFocusableCheck(Z,f(Z)):f,x=Z=>{if(Z instanceof HTMLElement){let st=v(Z);if(st==="focusable"&&d.add(Z),st==="stop")return}let ot=[];Z instanceof HTMLSlotElement?ot=Z.assignedElements({flatten:!0}):Z instanceof HTMLElement&&Z.shadowRoot?ot=Array.from(Z.shadowRoot.children):Z.children.length&&(ot=Array.from(Z.children)),ot.forEach(x)};return x(n),[...d]},ln=(n=document)=>{var t;let o=n instanceof Document?n.activeElement:n;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},Hl=n=>n&&"isWidthOverflowing"in n&&typeof n.isWidthOverflowing=="function",Eh=n=>{let o=n.getRootNode();return o!==document&&o instanceof ShadowRoot?Eh(o.host):n},$f=n=>{let o=[n],t=n;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var Oi=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),this.currentKeydownListener=null)}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)))}}};Oi.stack=new Set,Oi.currentKeydownListener=null;var Ul=V.constructTagName("spatialnavigationprovider");var oi={DIRECTION_LEFT:"data-spatial-left",DIRECTION_RIGHT:"data-spatial-right",DIRECTION_UP:"data-spatial-up",DIRECTION_DOWN:"data-spatial-down",GO_BACK:"data-spatial-go-back",FOCUSABLE:"data-spatial-focusable",EXCLUDE:"data-spatial-exclude",NO_SCROLL:"data-spatial-noscroll",SCROLL_PARENT:"data-spatial-scroll-parent"},Th={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 Sx=Ul,xh=Sx;var Vf=n=>{let{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v}=n.getBoundingClientRect(),x=o+e/2,R=t+i/2;return{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v,xMid:x,yMid:R}},Ix=(n,o,t)=>Math.abs(t==="horizontal"?o.yMid-n.yMid:o.xMid-n.xMid),Cx=(n,o)=>o==="horizontal"?n.height/2:n.width/2,_x=(n,o,t)=>t==="horizontal"?Math.max(0,Math.min(n.bottom,o.bottom)-Math.max(n.top,o.top)):Math.max(0,Math.min(n.right,o.right)-Math.max(n.left,o.left)),wx=(n,o,t)=>o==="horizontal"?t/n.height:t/n.width,kx=(n,o,t,e)=>{let i=o.xMid-n.xMid,a=o.yMid-n.yMid,d=Math.sqrt(i*i+a*a),f=Ix(n,o,t)+Cx(n,t)*e.orthogonalWeight[t],v=_x(n,o,t),x=wx(n,t,v)*e.alignWeight;return d+f-x-Math.sqrt(v)},zf=(n,o,t,e)=>{if(!n||o.length===0)return[];if(o.length===1)return o[0]===n?[]:[{candidate:o[0],distance:0}];let i=Vf(n),a=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((d,f)=>{if(f===n)return d;let v=f.closest(`[${oi.SCROLL_PARENT}]`),x=v&&!v.contains(n)?v:f,R=Vf(x);if(t==="left"&&R.right>i.xMid||t==="right"&&R.left<i.xMid||t==="up"&&R.bottom>i.yMid||t==="down"&&R.top<i.yMid)return d;let H=kx(i,R,a,e);return d.push({candidate:f,distance:H}),d},[]).sort((d,f)=>d.distance-f.distance)};var Xo=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var dn=class extends Se{constructor(){super({context:xh});this.navigationKeyMapping=Th.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=Th.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDownCapture=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=!1,i=t.target,a=this.context.value.keyToActionMap[t.key];if(this.isDirectionKey(t.key)&&this.getElementSelectorForDirectionAttr(i,a)!==void 0&&(e=!0,this.focusNext(t,a)),i.parentElement&&!i.hasAttribute(oi.NO_SCROLL)){let f=(d=i.closest(`[${oi.SCROLL_PARENT}]`))!=null?d:i.parentElement,v=yh(f);if(v){let x=i.getBoundingClientRect(),R=f.getBoundingClientRect();(v==="vertical"||v==="both")&&(a==="up"&&x.top<R.top&&f.scrollTop>0&&(f.scrollTo({top:f.scrollTop-R.height/2,behavior:"auto"}),e=!0),a==="down"&&x.bottom>R.bottom&&f.scrollTop+R.height<f.scrollHeight&&(f.scrollTo({top:f.scrollTop+R.height/2,behavior:"auto"}),e=!0)),(v==="horizontal"||v==="both")&&(a==="right"&&x.left<R.left&&f.scrollLeft>0&&(f.scrollTo({left:f.scrollLeft-R.width/2,behavior:"auto"}),e=!0),a==="left"&&x.right>R.right&&f.scrollLeft+R.width<f.scrollWidth&&(f.scrollTo({left:f.scrollLeft+R.width/2,behavior:"auto"}),e=!0))}}e&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleKeyDown=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new Xo("navbeforeprocess",this,e);if(t.target&&((d=t.composedPath()[0]||t.target)==null||d.dispatchEvent(i)),i.defaultPrevented)return;let a=!1;switch(e){case"up":a=this.focusNext(t,"up");break;case"down":a=this.focusNext(t,"down");break;case"left":a=this.focusNext(t,"left");break;case"right":a=this.focusNext(t,"right");break;case"enter":a=this.pressEnter();break;case"escape":a=this.goBack();break;default:}a?t.preventDefault():this.dispatchEvent(new Xo("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=ln();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}isNavigationKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape].includes(t)}isDirectionKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right].includes(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return xh}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=qo(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=Oi.getActiveTrap(),a=null,d=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let v of f)if(v===i||v===this.root||yh(v)){d.push(...qo(v,{excludedElements:a?[a]:void 0,includeSelectors:[`[${oi.FOCUSABLE}]`],excludeSelectors:[`[${oi.EXCLUDE}]`]}));let x=this.focusNextInFocusableAria(d,e);if(x||v===i||v===this.root)return x&&this.emitNavBeforeFocusEvent(x,e),!!x;a=v}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let a=new Xo("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(a),!a.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}getElementSelectorForDirectionAttr(t,e){var a;let i=`data-spatial-${e}`;return(a=t==null?void 0:t.getAttribute(i))!=null?a:void 0}focusNextInFocusableAria(t,e){var v,x;let i=this.getActiveElement(),a=ln(),d=t;if((!i||!d.includes(i)||i!==a)&&(a&&d.includes(a)?i=a:[i]=d,this.setActiveElement(i)),a){let R=`data-spatial-${e}`,H=$f(a).find(W=>W.hasAttribute(R)),J=H==null?void 0:H.getAttribute(R);if(H&&J){let W=H.getRootNode(),Z=(v=W==null?void 0:W.getElementById(J))!=null?v:W==null?void 0:W.querySelector(J);if(Z){let ot=qo(Z,{includeSelectors:[`[${oi.FOCUSABLE}]`],excludeSelectors:[`[${oi.EXCLUDE}]`]});if(ot.includes(Z))return Z;if(ot.length>0)d=ot;else return Z}}}return i!==ln()?i:t.length===0||(x=zf(i,d,e,this.distanceCalculationWeights)[0])==null?void 0:x.candidate}emitGoBackEvent(t){let e=new Xo("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=ln();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=qo(this.root).find(i=>i.hasAttribute(oi.GO_BACK));if(!this.emitGoBackEvent(t)){if(t)return t.click(),!0;if(window.history.length>this.initialHistoryLength)return window.history.back(),!0}return!1}};h([u({attribute:!1})],dn.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],dn.prototype,"distanceCalculationWeights",2);var Ah=dn;Ah.register(Ul);var Bf=Ah;var K={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},Nx={[Lt.ARROW_UP]:K.UP,[Lt.ARROW_DOWN]:K.DOWN,[Lt.ARROW_LEFT]:K.LEFT,[Lt.ARROW_RIGHT]:K.RIGHT,[Lt.ENTER]:K.ENTER,[Lt.SPACE]:K.SPACE,[Lt.ESCAPE]:K.ESCAPE,[Lt.TAB]:K.TAB,[Lt.HOME]:K.HOME,[Lt.END]:K.END,[Lt.BACKSPACE]:K.BACKSPACE},re={DEFAULT:"default",SPATIAL:"spatial"},Nt=n=>{class o extends n{constructor(){super(...arguments);this.spatialNavigationContext=Ie.consume({host:this,context:Bf.Context})}getKeyboardNavMode(){var a;return((a=this.spatialNavigationContext)==null?void 0:a.value)?re.SPATIAL:re.DEFAULT}getActionForKeyEvent(i,a=!1){var v,x,R;let f=((R=(x=(v=this.spatialNavigationContext)==null?void 0:v.value)==null?void 0:x.keyToActionMap)!=null?R:Nx)[i.key];if(a){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===K.LEFT)return K.RIGHT;if(f===K.RIGHT)return K.LEFT}return f}isDirectionAction(i){return i===K.UP||i===K.DOWN||i===K.LEFT||i===K.RIGHT}}return o};var Ot=n=>{class o extends n{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var Tt=z`
|
|
18
|
+
`,Of=hx;var Bl=class extends Q{constructor({context:o,initialValue:t}){super(),this.context=new Us(this,{context:o,initialValue:t})}updateContext(){throw new Error("Not implemented")}render(){return this.updateContext(),S`<slot></slot>`}};Bl.styles=[...Q.styles,Of];var Rf=Bl;var Se=Rf;var Ve=n=>{class o extends n{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 Zt=n=>{class o extends n{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ii=n=>{class o extends n{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Lt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var px=n=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:a}=n,d=(i||a)&&(f=>{a&&a.forEach(v=>{o.requestUpdate(v)}),i==null||i(f)});return new Hs(o,{context:t,callback:d,subscribe:e!=null?e:!0})},mx={consume:px},Ie=mx;var Pf=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Ff=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),ux=n=>n.getClientRects().length===0,fx=n=>{let{width:o,height:t}=n.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=n;return e+i+t+o===0},yh=n=>{if(!(n instanceof Element))return null;let o=getComputedStyle(n),{overflowX:t,overflowY:e}=o,i=t==="auto"||t==="scroll",a=e==="auto"||e==="scroll";return i&&a?"both":i?"horizontal":a?"vertical":null},vx=n=>fx(n)||ux(n),gx=n=>{let{display:o,opacity:t,visibility:e}=n.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},bx=n=>{let o=getComputedStyle(n);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},yx=n=>getComputedStyle(n).display==="contents",Ex=n=>n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||gx(n)||!yx(n)&&(bx(n)||vx(n)),Tx=n=>n.disabled,xx=n=>n.getAttribute("tabindex")!=="-1",Ax=n=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(n.tagName)||n instanceof HTMLAnchorElement&&n.hasAttribute("href")||n instanceof HTMLInputElement&&n.type!=="hidden"||(n instanceof HTMLAudioElement||n instanceof HTMLVideoElement)&&n.hasAttribute("controls")||(n instanceof HTMLImageElement||n instanceof HTMLObjectElement)&&n.hasAttribute("usemap")||n.hasAttribute("tabindex")&&n.tabIndex>-1),Df=(n,o)=>o.some(t=>n.matches(t));var qo=(n,o={})=>{var R,H,J,W;if(!n)return[];let t=new Set((R=o==null?void 0:o.excludedElements)!=null?R:[]),e=(H=o==null?void 0:o.includeSelectors)!=null?H:[],i=(J=o==null?void 0:o.excludeSelectors)!=null?J:[],a=(W=o==null?void 0:o.stopAtNonTabbable)!=null?W:!1,d=new Set([]),f=Z=>{if(t.has(n)||Df(Z,i)||Ex(Z)||Tx(Z))return"stop";if(a&&!(Z instanceof HTMLSlotElement)&&Z.getAttribute("tabindex")==="-1"){let ot=Z.getRootNode();if(!(ot instanceof ShadowRoot&&ot.delegatesFocus))return"stop"}return Df(Z,e)||xx(Z)&&Ax(Z)?"focusable":"continue"},v=o.customFocusableCheck?Z=>o.customFocusableCheck(Z,f(Z)):f,x=Z=>{if(Z instanceof HTMLElement){let st=v(Z);if(st==="focusable"&&d.add(Z),st==="stop")return}let ot=[];Z instanceof HTMLSlotElement?ot=Z.assignedElements({flatten:!0}):Z instanceof HTMLElement&&Z.shadowRoot?ot=Array.from(Z.shadowRoot.children):Z.children.length&&(ot=Array.from(Z.children)),ot.forEach(x)};return x(n),[...d]},ln=(n=document)=>{var t;let o=n instanceof Document?n.activeElement:n;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},Hl=n=>n&&"isWidthOverflowing"in n&&typeof n.isWidthOverflowing=="function",Eh=n=>{let o=n.getRootNode();return o!==document&&o instanceof ShadowRoot?Eh(o.host):n},$f=n=>{let o=[n],t=n;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var Ri=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),this.currentKeydownListener=null)}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)))}}};Ri.stack=new Set,Ri.currentKeydownListener=null;var Ul=V.constructTagName("spatialnavigationprovider");var oi={DIRECTION_LEFT:"data-spatial-left",DIRECTION_RIGHT:"data-spatial-right",DIRECTION_UP:"data-spatial-up",DIRECTION_DOWN:"data-spatial-down",GO_BACK:"data-spatial-go-back",FOCUSABLE:"data-spatial-focusable",EXCLUDE:"data-spatial-exclude",NO_SCROLL:"data-spatial-noscroll",SCROLL_PARENT:"data-spatial-scroll-parent"},Th={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 Sx=Ul,xh=Sx;var Vf=n=>{let{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v}=n.getBoundingClientRect(),x=o+e/2,R=t+i/2;return{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v,xMid:x,yMid:R}},Ix=(n,o,t)=>Math.abs(t==="horizontal"?o.yMid-n.yMid:o.xMid-n.xMid),Cx=(n,o)=>o==="horizontal"?n.height/2:n.width/2,_x=(n,o,t)=>t==="horizontal"?Math.max(0,Math.min(n.bottom,o.bottom)-Math.max(n.top,o.top)):Math.max(0,Math.min(n.right,o.right)-Math.max(n.left,o.left)),wx=(n,o,t)=>o==="horizontal"?t/n.height:t/n.width,kx=(n,o,t,e)=>{let i=o.xMid-n.xMid,a=o.yMid-n.yMid,d=Math.sqrt(i*i+a*a),f=Ix(n,o,t)+Cx(n,t)*e.orthogonalWeight[t],v=_x(n,o,t),x=wx(n,t,v)*e.alignWeight;return d+f-x-Math.sqrt(v)},zf=(n,o,t,e)=>{if(!n||o.length===0)return[];if(o.length===1)return o[0]===n?[]:[{candidate:o[0],distance:0}];let i=Vf(n),a=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((d,f)=>{if(f===n)return d;let v=f.closest(`[${oi.SCROLL_PARENT}]`),x=v&&!v.contains(n)?v:f,R=Vf(x);if(t==="left"&&R.right>i.xMid||t==="right"&&R.left<i.xMid||t==="up"&&R.bottom>i.yMid||t==="down"&&R.top<i.yMid)return d;let H=kx(i,R,a,e);return d.push({candidate:f,distance:H}),d},[]).sort((d,f)=>d.distance-f.distance)};var Xo=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var dn=class extends Se{constructor(){super({context:xh});this.navigationKeyMapping=Th.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=Th.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDownCapture=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=!1,i=t.target,a=this.context.value.keyToActionMap[t.key];if(this.isDirectionKey(t.key)&&this.getElementSelectorForDirectionAttr(i,a)!==void 0&&(e=!0,this.focusNext(t,a)),i.parentElement&&!i.hasAttribute(oi.NO_SCROLL)){let f=(d=i.closest(`[${oi.SCROLL_PARENT}]`))!=null?d:i.parentElement,v=yh(f);if(v){let x=i.getBoundingClientRect(),R=f.getBoundingClientRect();(v==="vertical"||v==="both")&&(a==="up"&&x.top<R.top&&f.scrollTop>0&&(f.scrollTo({top:f.scrollTop-R.height/2,behavior:"auto"}),e=!0),a==="down"&&x.bottom>R.bottom&&f.scrollTop+R.height<f.scrollHeight&&(f.scrollTo({top:f.scrollTop+R.height/2,behavior:"auto"}),e=!0)),(v==="horizontal"||v==="both")&&(a==="right"&&x.left<R.left&&f.scrollLeft>0&&(f.scrollTo({left:f.scrollLeft-R.width/2,behavior:"auto"}),e=!0),a==="left"&&x.right>R.right&&f.scrollLeft+R.width<f.scrollWidth&&(f.scrollTo({left:f.scrollLeft+R.width/2,behavior:"auto"}),e=!0))}}e&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleKeyDown=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new Xo("navbeforeprocess",this,e);if(t.target&&((d=t.composedPath()[0]||t.target)==null||d.dispatchEvent(i)),i.defaultPrevented)return;let a=!1;switch(e){case"up":a=this.focusNext(t,"up");break;case"down":a=this.focusNext(t,"down");break;case"left":a=this.focusNext(t,"left");break;case"right":a=this.focusNext(t,"right");break;case"enter":a=this.pressEnter();break;case"escape":a=this.goBack();break;default:}a?t.preventDefault():this.dispatchEvent(new Xo("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=ln();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}isNavigationKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape].includes(t)}isDirectionKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right].includes(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return xh}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=qo(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=Ri.getActiveTrap(),a=null,d=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let v of f)if(v===i||v===this.root||yh(v)){d.push(...qo(v,{excludedElements:a?[a]:void 0,includeSelectors:[`[${oi.FOCUSABLE}]`],excludeSelectors:[`[${oi.EXCLUDE}]`]}));let x=this.focusNextInFocusableAria(d,e);if(x||v===i||v===this.root)return x&&this.emitNavBeforeFocusEvent(x,e),!!x;a=v}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let a=new Xo("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(a),!a.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}getElementSelectorForDirectionAttr(t,e){var a;let i=`data-spatial-${e}`;return(a=t==null?void 0:t.getAttribute(i))!=null?a:void 0}focusNextInFocusableAria(t,e){var v,x;let i=this.getActiveElement(),a=ln(),d=t;if((!i||!d.includes(i)||i!==a)&&(a&&d.includes(a)?i=a:[i]=d,this.setActiveElement(i)),a){let R=`data-spatial-${e}`,H=$f(a).find(W=>W.hasAttribute(R)),J=H==null?void 0:H.getAttribute(R);if(H&&J){let W=H.getRootNode(),Z=(v=W==null?void 0:W.getElementById(J))!=null?v:W==null?void 0:W.querySelector(J);if(Z){let ot=qo(Z,{includeSelectors:[`[${oi.FOCUSABLE}]`],excludeSelectors:[`[${oi.EXCLUDE}]`]});if(ot.includes(Z))return Z;if(ot.length>0)d=ot;else return Z}}}return i!==ln()?i:t.length===0||(x=zf(i,d,e,this.distanceCalculationWeights)[0])==null?void 0:x.candidate}emitGoBackEvent(t){let e=new Xo("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=ln();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=qo(this.root).find(i=>i.hasAttribute(oi.GO_BACK));if(!this.emitGoBackEvent(t)){if(t)return t.click(),!0;if(window.history.length>this.initialHistoryLength)return window.history.back(),!0}return!1}};h([u({attribute:!1})],dn.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],dn.prototype,"distanceCalculationWeights",2);var Ah=dn;Ah.register(Ul);var Bf=Ah;var K={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},Nx={[Lt.ARROW_UP]:K.UP,[Lt.ARROW_DOWN]:K.DOWN,[Lt.ARROW_LEFT]:K.LEFT,[Lt.ARROW_RIGHT]:K.RIGHT,[Lt.ENTER]:K.ENTER,[Lt.SPACE]:K.SPACE,[Lt.ESCAPE]:K.ESCAPE,[Lt.TAB]:K.TAB,[Lt.HOME]:K.HOME,[Lt.END]:K.END,[Lt.BACKSPACE]:K.BACKSPACE},re={DEFAULT:"default",SPATIAL:"spatial"},Nt=n=>{class o extends n{constructor(){super(...arguments);this.spatialNavigationContext=Ie.consume({host:this,context:Bf.Context})}getKeyboardNavMode(){var a;return((a=this.spatialNavigationContext)==null?void 0:a.value)?re.SPATIAL:re.DEFAULT}getActionForKeyEvent(i,a=!1){var v,x,R;let f=((R=(x=(v=this.spatialNavigationContext)==null?void 0:v.value)==null?void 0:x.keyToActionMap)!=null?R:Nx)[i.key];if(a){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===K.LEFT)return K.RIGHT;if(f===K.RIGHT)return K.LEFT}return f}isDirectionAction(i){return i===K.UP||i===K.DOWN||i===K.LEFT||i===K.RIGHT}}return o};var Ot=n=>{class o extends n{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var Tt=z`
|
|
19
19
|
:host {
|
|
20
20
|
align-items: center;
|
|
21
21
|
display: flex;
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
:host([size='20']) {
|
|
150
150
|
--mdc-button-height: 1.25rem;
|
|
151
151
|
}
|
|
152
|
-
`,...xt()],Hf=Lx;var gr=class extends Ot(Nt(Ve(ii(
|
|
152
|
+
`,...xt()],Hf=Lx;var gr=class extends Ot(Nt(Ve(ii(Zt(Q))))){constructor(){super();this.size=an.SIZE;this.role=an.ROLE;this.type=an.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||an.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===zs.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===zs.RESET&&this.form&&this.form.reset()}setActive(t,e){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{e===!0?t.setAttribute(a.trim(),"true"):e===!1?t.setAttribute(a.trim(),"false"):t.removeAttribute(a.trim())})}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,e){e?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){this.click()}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.classList.add("pressed"),e===K.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let e=this.getActionForKeyEvent(t);if(e===K.ENTER||e===K.SPACE){let i=this.classList.contains("pressed");this.classList.remove("pressed"),e===K.SPACE&&i&&this.triggerClickEvent()}}render(){return S` <slot></slot> `}};gr.formAssociated=!0,gr.styles=[...Q.styles,...Hf],h([u({type:Boolean,reflect:!0})],gr.prototype,"active",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],gr.prototype,"softDisabled",2),h([u({type:Number,reflect:!0})],gr.prototype,"size",2),h([u({type:String,reflect:!0})],gr.prototype,"role",2),h([u({type:String,reflect:!0})],gr.prototype,"ariaStateKey",2),h([u({reflect:!0})],gr.prototype,"type",2),h([u({type:String,reflect:!0})],gr.prototype,"name",2),h([u({type:String,reflect:!0})],gr.prototype,"value",2);var ge=gr;var Gl=n=>{class o extends n{get overflowElement(){return this}isWidthOverflowing(){let e=this.overflowElement;return e.scrollWidth>e.clientWidth}isHeightOverflowing(){return this.scrollHeight>this.clientHeight}}return o};var Mx=z`
|
|
153
153
|
:host {
|
|
154
154
|
--mdc-button-prefix-icon-size: 1rem;
|
|
155
155
|
--mdc-button-postfix-icon-size: 1rem;
|
|
@@ -476,7 +476,7 @@
|
|
|
476
476
|
:host::part(postfix-icon) {
|
|
477
477
|
flex-shrink: 0;
|
|
478
478
|
}
|
|
479
|
-
`,Uf=[Mx];var Zo=n=>{let o=n.split("-"),t=["bold","filled","regular","light"];return o.filter(e=>!t.includes(e)).join("-")};var si=class extends Gl($l(
|
|
479
|
+
`,Uf=[Mx];var Zo=n=>{let o=n.split("-"),t=["bold","filled","regular","light"];return o.filter(e=>!t.includes(e)).join("-")};var si=class extends Gl($l(ge)){constructor(){super(...arguments);this.size=ar.SIZE;this.inverted=ar.INVERTED;this.role=et.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setColor(this.color),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Zo(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Zo(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return S`
|
|
480
480
|
<slot name="prefix" part="prefix">
|
|
481
481
|
${this.prefixFilledIconName?S` <mdc-icon
|
|
482
482
|
name="${this.prefixFilledIconName}"
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
length-unit="rem"
|
|
493
493
|
></mdc-icon>`:""}
|
|
494
494
|
</slot>
|
|
495
|
-
`}};si.styles=[...
|
|
495
|
+
`}};si.styles=[...ge.styles,...Uf],h([Ht('slot[part="button-text"]')],si.prototype,"buttonTextPart",2),h([u({type:Number})],si.prototype,"size",2),h([u({type:Boolean,reflect:!0})],si.prototype,"inverted",2),h([u({type:String,reflect:!0})],si.prototype,"role",2),h([dt()],si.prototype,"prefixFilledIconName",2),h([dt()],si.prototype,"postfixFilledIconName",2);var mo=si;var Kl=V.constructTagName("iconprovider"),Gf=["svg"],Kf=["em","rem","px","%"],Ox={px:16,em:1,rem:1,"%":100},Di={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Ox.em,ICON_SET:"momentum-icons"};var Wl=class{};Wl.context=Kl;var Yl=Wl;var ai=class extends Se{constructor(){super({context:Yl.context,initialValue:new Yl});this.iconSet=Di.ICON_SET;this.fileExtension=Di.FILE_EXTENSION;this.lengthUnit=Di.LENGTH_UNIT;this.size=Di.SIZE}static get Context(){return Yl.context}updateValuesInContext(){this.fileExtension&&Gf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Di.FILE_EXTENSION,this.context.value.fileExtension=Di.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Kf.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Di.LENGTH_UNIT,this.context.value.lengthUnit=Di.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"icon-set",reflect:!0})],ai.prototype,"iconSet",2),h([u({type:String})],ai.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],ai.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],ai.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],ai.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],ai.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],ai.prototype,"cacheName",2);var cn=ai;var Rx=[Tt,z`
|
|
496
496
|
:host {
|
|
497
497
|
--mdc-icon-fill-color: currentColor;
|
|
498
498
|
--mdc-icon-size: var(--computed-icon-size);
|
|
@@ -507,7 +507,7 @@
|
|
|
507
507
|
width: 100%;
|
|
508
508
|
fill: var(--mdc-icon-fill-color);
|
|
509
509
|
}
|
|
510
|
-
`,...xt()],Wf=Rx;var hn={},Yf=async n=>(hn[n]===void 0&&(hn[n]=new Map),{async set(o,t){hn[n].set(o.url,await t.text())},async get(o){return hn[n].get(o.url)},async delete(o){hn[n].delete(o.url)}}),jf=async n=>{let o=await caches.open(n);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)}}},jl=async(n,o)=>o==="in-memory-cache"?Yf(n):jf(n);var qf=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Sh=new Map,Xf=async({url:n,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:a})=>{let d=a(),f=`${n}/${o}.${t}`,v=new Request(f,{signal:d});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?qf(v).then(x=>x.text()):jl(i,e).then(x=>x.get(v).then(R=>{if(R)return R;let H=Sh.get(f);if(H)return H;let J=qf(new Request(f)).then(W=>{var Z;return W.status<400&&W.headers.has("content-type")?(Z=x.set)==null?void 0:Z.call(x,v,W.clone()).then(()=>W.text()):W.text()}).finally(()=>{Sh.delete(f)});return Sh.set(f,J),J}).catch(R=>{throw new Error(`Error in caching the Icon ${o}, ${R}`)}))};var Zf=V.constructTagName("icon"),Ih={NAME:void 0,SIZE:1};var br=class extends Q{constructor(){super();this.name=Ih.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ie.consume({host:this,context:cn.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:a,iconSet:d,cacheStrategy:f}=this.iconProviderContext.value;if(d==="custom-icons"&&i&&e&&this.name){let v=()=>{var x;return(x=this.abortController)==null||x.abort(),this.abortController=new AbortController,this.abortController.signal};return Xf({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v}).then(x=>{let R=this.prepareIconElement(x);this.handleIconLoadedSuccess(R)}).catch(x=>{this.handleIconLoadedFailure(x)})}if(d==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(v=>{this.handleIconLoadedSuccess(v.default())}).catch(v=>{this.handleIconLoadedFailure(v)})}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:Ih.SIZE}updated(t){var e,i,a,d;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!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(d=this.iconProviderContext.value)==null?void 0:d.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};br.styles=[...Q.styles,...Wf],h([dt()],br.prototype,"iconData",2),h([dt()],br.prototype,"lengthUnitFromContext",2),h([dt()],br.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],br.prototype,"name",2),h([u({type:Number})],br.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],br.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],br.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],br.prototype,"ariaLabelledby",2),h([dt()],br.prototype,"abortController",2);var Ch=br;Ch.register(Zf);var Dx=Ch;mo.register(
|
|
510
|
+
`,...xt()],Wf=Rx;var hn={},Yf=async n=>(hn[n]===void 0&&(hn[n]=new Map),{async set(o,t){hn[n].set(o.url,await t.text())},async get(o){return hn[n].get(o.url)},async delete(o){hn[n].delete(o.url)}}),jf=async n=>{let o=await caches.open(n);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)}}},jl=async(n,o)=>o==="in-memory-cache"?Yf(n):jf(n);var qf=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Sh=new Map,Xf=async({url:n,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:a})=>{let d=a(),f=`${n}/${o}.${t}`,v=new Request(f,{signal:d});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?qf(v).then(x=>x.text()):jl(i,e).then(x=>x.get(v).then(R=>{if(R)return R;let H=Sh.get(f);if(H)return H;let J=qf(new Request(f)).then(W=>{var Z;return W.status<400&&W.headers.has("content-type")?(Z=x.set)==null?void 0:Z.call(x,v,W.clone()).then(()=>W.text()):W.text()}).finally(()=>{Sh.delete(f)});return Sh.set(f,J),J}).catch(R=>{throw new Error(`Error in caching the Icon ${o}, ${R}`)}))};var Zf=V.constructTagName("icon"),Ih={NAME:void 0,SIZE:1};var br=class extends Q{constructor(){super();this.name=Ih.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ie.consume({host:this,context:cn.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:a,iconSet:d,cacheStrategy:f}=this.iconProviderContext.value;if(d==="custom-icons"&&i&&e&&this.name){let v=()=>{var x;return(x=this.abortController)==null||x.abort(),this.abortController=new AbortController,this.abortController.signal};return Xf({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v}).then(x=>{let R=this.prepareIconElement(x);this.handleIconLoadedSuccess(R)}).catch(x=>{this.handleIconLoadedFailure(x)})}if(d==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(v=>{this.handleIconLoadedSuccess(v.default())}).catch(v=>{this.handleIconLoadedFailure(v)})}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:Ih.SIZE}updated(t){var e,i,a,d;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!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(d=this.iconProviderContext.value)==null?void 0:d.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};br.styles=[...Q.styles,...Wf],h([dt()],br.prototype,"iconData",2),h([dt()],br.prototype,"lengthUnitFromContext",2),h([dt()],br.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],br.prototype,"name",2),h([u({type:Number})],br.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],br.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],br.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],br.prototype,"ariaLabelledby",2),h([dt()],br.prototype,"abortController",2);var Ch=br;Ch.register(Zf);var Dx=Ch;mo.register(Oi);var Px=mo;var Qf=z`
|
|
511
511
|
:host::part(text) {
|
|
512
512
|
font-size: unset;
|
|
513
513
|
font-weight: unset;
|
|
@@ -757,7 +757,7 @@
|
|
|
757
757
|
display: block;
|
|
758
758
|
font-family: var(--mdc-text-font-family);
|
|
759
759
|
}
|
|
760
|
-
`,Qf],Jf=Fx;var pn=V.constructTagName("text"),at={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Me={TYPE:at.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Qo=class extends Gl(Q){constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return S`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return S`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return S`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return S`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return S`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return S`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return S`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return S`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return S`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return S`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};Qo.styles=[...Q.styles,...Jf],h([
|
|
760
|
+
`,Qf],Jf=Fx;var pn=V.constructTagName("text"),at={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Me={TYPE:at.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Qo=class extends Gl(Q){constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return S`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return S`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return S`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return S`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return S`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return S`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return S`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return S`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return S`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return S`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};Qo.styles=[...Q.styles,...Jf],h([Ht(`[part='${Me.CSS_PART_TEXT}']`)],Qo.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],Qo.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Qo.prototype,"tagname",2);var _h=Qo;_h.register(pn);var $x=_h;var tt=n=>n!=null?n:U;var Oe=[];for(let n=0;n<256;++n)Oe.push((n+256).toString(16).slice(1));function tv(n,o=0){return(Oe[n[o+0]]+Oe[n[o+1]]+Oe[n[o+2]]+Oe[n[o+3]]+"-"+Oe[n[o+4]]+Oe[n[o+5]]+"-"+Oe[n[o+6]]+Oe[n[o+7]]+"-"+Oe[n[o+8]]+Oe[n[o+9]]+"-"+Oe[n[o+10]]+Oe[n[o+11]]+Oe[n[o+12]]+Oe[n[o+13]]+Oe[n[o+14]]+Oe[n[o+15]]).toLowerCase()}var wh,Vx=new Uint8Array(16);function kh(){if(!wh){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");wh=crypto.getRandomValues.bind(crypto)}return wh(Vx)}var zx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Nh={randomUUID:zx};function Bx(n,o,t){var i,a,d;if(Nh.randomUUID&&!o&&!n)return Nh.randomUUID();n=n||{};let e=(d=(a=n.random)!=null?a:(i=n.rng)==null?void 0:i.call(n))!=null?d:kh();if(e.length<16)throw new Error("Random bytes length must be >= 16");if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)o[t+f]=e[f];return o}return tv(e)}var ze=Bx;var ev=V.constructTagName("accordiongroup"),Lh={SMALL:"small",LARGE:"large"},Hx={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},mn={SIZE:Lh.SMALL,VARIANT:Hx.STACKED};var ql=V.constructTagName("accordionbutton"),un={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Ux={DEFAULT:"default",BORDERLESS:"borderless"},fn={LEADING:"leading",TRAILING:"trailing"},ni={EXPANDED:!1,SIZE:Lh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:Ux.DEFAULT,ICON_NAME:un.ARROW_UP,TOGGLE_POSITION:fn.TRAILING};var Gx=z`
|
|
761
761
|
:host {
|
|
762
762
|
--mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
763
763
|
--mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
|
|
@@ -874,7 +874,7 @@
|
|
|
874
874
|
:host([variant='default']:not([expanded]))::part(header-section) {
|
|
875
875
|
border-bottom: none;
|
|
876
876
|
}
|
|
877
|
-
`,rv=[Gx,...xt(!0)];var Br=class extends Ot(Nt(
|
|
877
|
+
`,rv=[Gx,...xt(!0)];var Br=class extends Ot(Nt(Zt(Q))){constructor(){super(...arguments);this.size=ni.SIZE;this.variant=ni.VARIANT;this.dataAriaLevel=ni.DATA_ARIA_LEVEL;this.expanded=ni.EXPANDED;this.togglePosition=ni.TOGGLE_POSITION;this.headSectionId=`head-section-${ze()}`;this.bodySectionId=`body-section-${ze()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}click(){this.disabled||(super.click(),this.handleHeaderClick())}dispatchHeaderClickEvent(){let t=new CustomEvent("shown",{bubbles:!0,cancelable:!0,detail:{expanded:this.expanded}});this.dispatchEvent(t)}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?S`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:U}renderHeadingText(){return this.headerText?S`<mdc-text
|
|
878
878
|
id="${this.headSectionId}"
|
|
879
879
|
type="${at.BODY_LARGE_REGULAR}"
|
|
880
880
|
tagname=${pt.SPAN}
|
|
@@ -933,7 +933,7 @@
|
|
|
933
933
|
aria-expanded="${this.expanded}"
|
|
934
934
|
aria-label="${tt(this.expanded?this.closeButtonAriaLabel:this.openButtonAriaLabel)}"
|
|
935
935
|
prefix-icon="${this.getArrowIconName()}"
|
|
936
|
-
variant="${
|
|
936
|
+
variant="${Ut.TERTIARY}"
|
|
937
937
|
size="${_r[20]}"
|
|
938
938
|
></mdc-button>
|
|
939
939
|
`}renderHeader(){let o=this.togglePosition===fn.LEADING;return S`
|
|
@@ -950,7 +950,7 @@
|
|
|
950
950
|
${o?U:this.renderToggleButton()}
|
|
951
951
|
</div>
|
|
952
952
|
</div>
|
|
953
|
-
`}};uo.styles=[...Gs.styles,...iv],h([
|
|
953
|
+
`}};uo.styles=[...Gs.styles,...iv],h([Xt({slot:"leading-controls"})],uo.prototype,"leadingControlsSlot",2),h([Xt({slot:"trailing-controls"})],uo.prototype,"trailingControlsSlot",2),h([u({type:String,attribute:"open-button-aria-label",reflect:!0})],uo.prototype,"openButtonAriaLabel",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],uo.prototype,"closeButtonAriaLabel",2);var Mh=uo;var Xl=V.constructTagName("accordion");Mh.register(Xl);var Wx=Mh;var Yx=z`
|
|
954
954
|
:host {
|
|
955
955
|
--mdc-accordiongroup-items-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
956
956
|
|
|
@@ -994,7 +994,7 @@
|
|
|
994
994
|
:host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
|
|
995
995
|
border-bottom: 1px solid var(--mdc-accordiongroup-items-border-color);
|
|
996
996
|
}
|
|
997
|
-
`,ov=[Yx,...xt()];var
|
|
997
|
+
`,ov=[Yx,...xt()];var Pi=class extends Q{constructor(){super();this.size=mn.SIZE;this.variant=mn.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(e=>{e!==t.target&&e.hasAttribute("expanded")&&e.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,e){[...this.accordionItems].forEach(i=>{i.setAttribute(t,e)}),[...this.accordionButtonItems].forEach(i=>{i.setAttribute(t,e)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=mn.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=mn.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return S` <slot></slot> `}};Pi.styles=[...Q.styles,...ov],h([u({type:String,reflect:!0})],Pi.prototype,"size",2),h([u({type:String,reflect:!0})],Pi.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],Pi.prototype,"allowMultiple",2),h([Xt({selector:Xl})],Pi.prototype,"accordionItems",2),h([Xt({selector:ql})],Pi.prototype,"accordionButtonItems",2);var Oh=Pi;Oh.register(ev);var jx=Oh;Gs.register(ql);var qx=Gs;var pe=n=>{class o extends n{}return h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var Xx=z`
|
|
998
998
|
:host {
|
|
999
999
|
height: 1.5rem;
|
|
1000
1000
|
gap: 0.25rem;
|
|
@@ -1107,28 +1107,28 @@
|
|
|
1107
1107
|
--mdc-chip-icon-color: ButtonText;
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
|
-
`,sv=[Tt,Xx,...xt()];var Zl=V.constructTagName("alertchip"),Jo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Ks={VARIANT:Jo.NEUTRAL,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:jo[24],ROLE:et.BUTTON};var av=n=>({[Jo.ERROR]:"error-legacy-badge-filled",[Jo.INFORMATIONAL]:"info-badge-filled",[Jo.NEUTRAL]:"dnd-presence-badge-filled",[Jo.SUCCESS]:"check-circle-badge-filled",[Jo.WARNING]:"warning-badge-filled"})[n];var Ws=class extends
|
|
1110
|
+
`,sv=[Tt,Xx,...xt()];var Zl=V.constructTagName("alertchip"),Jo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Ks={VARIANT:Jo.NEUTRAL,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:jo[24],ROLE:et.BUTTON};var av=n=>({[Jo.ERROR]:"error-legacy-badge-filled",[Jo.INFORMATIONAL]:"info-badge-filled",[Jo.NEUTRAL]:"dnd-presence-badge-filled",[Jo.SUCCESS]:"check-circle-badge-filled",[Jo.WARNING]:"warning-badge-filled"})[n];var Ws=class extends pe(ge){constructor(){super(...arguments);this.variant=Ks.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Ks.SIZE,this.role=Ks.ROLE}render(){return S`
|
|
1111
1111
|
<mdc-icon part="icon" name="${this.iconName||av(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
|
1112
1112
|
${this.label?S`<mdc-text part="label" type="${Ks.TEXT_TYPE}" tagname="${Ks.TAG_NAME}"
|
|
1113
1113
|
>${this.label}</mdc-text
|
|
1114
1114
|
>`:U}
|
|
1115
|
-
`}};Ws.styles=[...Q.styles,...sv],h([u({type:String,reflect:!0})],Ws.prototype,"variant",2),h([u({type:String})],Ws.prototype,"label",2);var Rh=Ws;Rh.register(Zl);var Zx=Rh;var{I:Qx}=Tf;var Ql=n=>n.strings===void 0,nv=()=>document.createComment(""),Ys=(n,o,t)=>{var a;let e=n._$AA.parentNode,i=o===void 0?n._$AB:o._$AA;if(t===void 0){let d=e.insertBefore(nv(),i),f=e.insertBefore(nv(),i);t=new Qx(d,f,n,n.options)}else{let d=t._$AB.nextSibling,f=t._$AM,v=f!==n;if(v){let x;(a=t._$AQ)==null||a.call(t,n),t._$AM=n,t._$AP!==void 0&&(x=n._$AU)!==f._$AU&&t._$AP(x)}if(d!==i||v){let x=t._$AA;for(;x!==d;){let R=x.nextSibling;e.insertBefore(x,i),x=R}}}return t},fo=(n,o,t=n)=>(n._$AI(o,t),n),Jx={},Jl=(n,o=Jx)=>n._$AH=o,lv=n=>n._$AH,td=n=>{var e;(e=n._$AP)==null||e.call(n,!1,!0);let o=n._$AA,t=n._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var yr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},
|
|
1115
|
+
`}};Ws.styles=[...Q.styles,...sv],h([u({type:String,reflect:!0})],Ws.prototype,"variant",2),h([u({type:String})],Ws.prototype,"label",2);var Rh=Ws;Rh.register(Zl);var Zx=Rh;var{I:Qx}=Tf;var Ql=n=>n.strings===void 0,nv=()=>document.createComment(""),Ys=(n,o,t)=>{var a;let e=n._$AA.parentNode,i=o===void 0?n._$AB:o._$AA;if(t===void 0){let d=e.insertBefore(nv(),i),f=e.insertBefore(nv(),i);t=new Qx(d,f,n,n.options)}else{let d=t._$AB.nextSibling,f=t._$AM,v=f!==n;if(v){let x;(a=t._$AQ)==null||a.call(t,n),t._$AM=n,t._$AP!==void 0&&(x=n._$AU)!==f._$AU&&t._$AP(x)}if(d!==i||v){let x=t._$AA;for(;x!==d;){let R=x.nextSibling;e.insertBefore(x,i),x=R}}}return t},fo=(n,o,t=n)=>(n._$AI(o,t),n),Jx={},Jl=(n,o=Jx)=>n._$AH=o,lv=n=>n._$AH,td=n=>{var e;(e=n._$AP)==null||e.call(n,!1,!0);let o=n._$AA,t=n._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var yr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Fi=n=>(...o)=>({_$litDirective$:n,values:o}),li=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this.t=o,this._$AM=t,this.i=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var vn=(n,o)=>{var e;let t=n._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),vn(i,o);return!0},ed=n=>{let o,t;do{if((o=n._$AM)===void 0)break;t=o._$AN,t.delete(n),n=o}while((t==null?void 0:t.size)===0)},dv=n=>{for(let o;o=n._$AM;n=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(n))break;t.add(n),rA(o)}};function tA(n){this._$AN!==void 0?(ed(this),this._$AM=n,dv(this)):this._$AM=n}function eA(n,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 a=t;a<e.length;a++)vn(e[a],!1),ed(e[a]);else e!=null&&(vn(e,!1),ed(e));else vn(this,n)}var rA=n=>{var o,t;n.type==yr.CHILD&&((o=n._$AP)!=null||(n._$AP=eA),(t=n._$AQ)!=null||(n._$AQ=tA))},rd=class extends li{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),dv(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&&(vn(this,o),ed(this))}setValue(o){if(Ql(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 cv=()=>new Ph,Ph=class{},Dh=new WeakMap,hv=Fi(class extends rd{render(n){return U}update(n,[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=n.options)==null?void 0:e.host,this.rt(this.ct=n.element)),U}rt(n){var o;if(this.isConnected||(n=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=Dh.get(t);e===void 0&&(e=new WeakMap,Dh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,o,t;return typeof this.Y=="function"?(o=Dh.get((n=this.ht)!=null?n: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 fv=ZT(pv());var Fh={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 iA=[Tt,z`
|
|
1116
1116
|
:host svg {
|
|
1117
1117
|
display: block;
|
|
1118
1118
|
}
|
|
1119
|
-
`],mv=iA;var uv=V.constructTagName("animation"),$h={AUTO_PLAY:!0,LOOP:"true"};var di=class extends Q{constructor(){super(...arguments);this.loop=$h.LOOP;this.autoplay=$h.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=cv();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.cachedAnimationData=t,this.createLottieInstance(t),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}createLottieInstance(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=fv.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.src?this.fetchAnimationFromUrl(this.src):this.name&&Fh[this.name]?import(`@momentum-design/animations/dist/lottie${Fh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}fetchAnimationFromUrl(t){fetch(t).then(e=>{if(!e.ok)throw new Error(`Failed to fetch animation from URL: ${t} (${e.status})`);return e.json()}).then(e=>this.onLoadSuccessHandler(e)).catch(e=>this.onLoadFailHandler(e))}updated(t){super.updated(t),t.has("name")||t.has("src")?(this.cachedAnimationData=void 0,this.getAnimationData()):(t.has("loop")||t.has("autoplay"))&&this.cachedAnimationData&&this.createLottieInstance(this.cachedAnimationData),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return S`<div aria-hidden="true" ${hv(this.containerRef)}></div>`}};di.styles=[...Q.styles,...mv],h([u({type:String,reflect:!0})],di.prototype,"name",2),h([u({type:String,reflect:!0})],di.prototype,"src",2),h([u({type:String,reflect:!0})],di.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],di.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],di.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],di.prototype,"ariaLabelledby",2);var Vh=di;Vh.register(uv);var oA=Vh;var js=n=>{class o extends n{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(i){this.isFocusTrapActivated=i}activateFocusTrap(){this.setIsFocusTrapActivated(!0),
|
|
1119
|
+
`],mv=iA;var uv=V.constructTagName("animation"),$h={AUTO_PLAY:!0,LOOP:"true"};var di=class extends Q{constructor(){super(...arguments);this.loop=$h.LOOP;this.autoplay=$h.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=cv();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.cachedAnimationData=t,this.createLottieInstance(t),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}createLottieInstance(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=fv.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.src?this.fetchAnimationFromUrl(this.src):this.name&&Fh[this.name]?import(`@momentum-design/animations/dist/lottie${Fh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}fetchAnimationFromUrl(t){fetch(t).then(e=>{if(!e.ok)throw new Error(`Failed to fetch animation from URL: ${t} (${e.status})`);return e.json()}).then(e=>this.onLoadSuccessHandler(e)).catch(e=>this.onLoadFailHandler(e))}updated(t){super.updated(t),t.has("name")||t.has("src")?(this.cachedAnimationData=void 0,this.getAnimationData()):(t.has("loop")||t.has("autoplay"))&&this.cachedAnimationData&&this.createLottieInstance(this.cachedAnimationData),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return S`<div aria-hidden="true" ${hv(this.containerRef)}></div>`}};di.styles=[...Q.styles,...mv],h([u({type:String,reflect:!0})],di.prototype,"name",2),h([u({type:String,reflect:!0})],di.prototype,"src",2),h([u({type:String,reflect:!0})],di.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],di.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],di.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],di.prototype,"ariaLabelledby",2);var Vh=di;Vh.register(uv);var oA=Vh;var js=n=>{class o extends n{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(i){this.isFocusTrapActivated=i}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Ri.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Ri.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=qo(this.shadowRoot,{stopAtNonTabbable:!0}))}setInitialFocus(i=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus({preventScroll:!0}))}calculateNextIndex(i,a){let{length:d}=this.focusableElements;if(i===-1)return a>0?0:d-1;let f=i+a;return this.shouldFocusTrapWrap?(f<0&&(f=d-1),f>=d&&(f=0)):(f<0&&(f=0),f>=d&&(f=d-1)),f}getDeepActiveElement(){var a;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((a=i.shadowRoot)!=null&&a.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(i,a))}isEqualFocusNode(i,a){return i.nodeType>=0?a.isEqualNode(i)&&a===i:!1}trapFocus(i){if(this.setFocusableElements(),this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),d=this.findElement(a);if(d===-1)return;i.shiftKey?this.focusTrapIndex=this.calculateNextIndex(d,-1):this.focusTrapIndex=this.calculateNextIndex(d,1);let v=this.focusableElements[this.focusTrapIndex];v.tagName!=="IFRAME"&&v&&(i.preventDefault(),v.focus())}handleTabKeydown(i){this.isFocusTrapActivated&&i.key==="Tab"&&this.trapFocus(i)}}return h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var od=n=>{class o extends n{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var sd=V.constructTagName("link"),ad={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},nd={LARGE:1,MIDSIZE:.875,SMALL:.75},vv={LINK_SIZE:ad.LARGE};var gv=V.constructTagName("card"),zh={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},sA={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ce={VARIANT:zh.BORDER,ORIENTATION:sA.VERTICAL,TITLE_TYPE:at.HEADING_SMALL_BOLD,SUBTITLE_TYPE:at.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:sd,BUTTON:Oi};var qs=n=>{class o extends n{updateFooterButtonColors(e){let i=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];i==null||i.forEach(a=>{e===zh.PROMOTIONAL?a.setAttribute("color",Ye.PROMOTIONAL):a.setAttribute("color",Ye.DEFAULT)})}handleFooterSlot(e,i){var d,f,v;let a=[];e===Ce.LINK&&((d=this.footerLink)!=null&&d.length)?a=this.footerLink:e===Ce.BUTTON&&i===Ut.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?a=this.footerButtonPrimary:e===Ce.BUTTON&&i===Ut.SECONDARY&&((v=this.footerButtonSecondary)!=null&&v.length)&&(a=this.footerButtonSecondary);for(let x=1;x<a.length;x+=1)a[x].remove();a.forEach(x=>{x.matches(e)||x.remove(),i&&x.setAttribute("variant",i)})}renderFooter(){return S` <slot name="footer">
|
|
1120
1120
|
<div part="footer">
|
|
1121
1121
|
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(Ce.LINK)}></slot>
|
|
1122
1122
|
<slot
|
|
1123
1123
|
name="footer-button-secondary"
|
|
1124
|
-
@slotchange=${()=>this.handleFooterSlot(Ce.BUTTON,
|
|
1124
|
+
@slotchange=${()=>this.handleFooterSlot(Ce.BUTTON,Ut.SECONDARY)}
|
|
1125
1125
|
></slot>
|
|
1126
1126
|
<slot
|
|
1127
1127
|
name="footer-button-primary"
|
|
1128
|
-
@slotchange=${()=>this.handleFooterSlot(Ce.BUTTON,
|
|
1128
|
+
@slotchange=${()=>this.handleFooterSlot(Ce.BUTTON,Ut.PRIMARY)}
|
|
1129
1129
|
></slot>
|
|
1130
1130
|
</div>
|
|
1131
|
-
</slot>`}}return h([
|
|
1131
|
+
</slot>`}}return h([Xt({slot:"footer-link"})],o.prototype,"footerLink",2),h([Xt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),h([Xt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var je=[],bv=1e3,aA=3,Bh=-2,Hh=-1,vo=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return je.length}pushHost(){var o,t;return this.has(this.host)?!1:(je.push(this.host),(t=(o=this.host).onComponentStackChanged)==null||t.call(o,"added"),!0)}popHost(){return this.popItem(this.host)}popItem(o){if(!this.has(o))return;let t=je.filter(a=>a.stackGroupName===o.stackGroupName),e=t.indexOf(o),i=[];for(let a=t.length-1;a>=e;a-=1){let d=t[a];(d===o||d.triggerID!==o.triggerID)&&i.push(d)}return this.remove(i),o}pop(){var t;let o=je.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let e=je.length-1;e>=0;e-=1){let i=je[e],a=o(i,e);if(a===!1)break;a!=="skip"&&t.push(i)}return this.remove(t)}peek(){return je.at(-1)}remove(o){var i,a;let t=o.filter(d=>je.includes(d)),e=t.reduce((d,f)=>Math.min(d,je.indexOf(f)),1/0);t.forEach(d=>{je.splice(je.indexOf(d),1)}),t.forEach(d=>{var f;(f=d==null?void 0:d.onComponentStackChanged)==null||f.call(d,"removed")});for(let d=e;d<je.length;d+=1)(a=(i=je[d]).onComponentStackChanged)==null||a.call(i,"moved");return t}has(o){return je.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return je.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?bv+t*aA:bv}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var ld=n=>{class o extends n{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(i){var a;if(super.update(i),i.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+Bh}`;let d=(a=this.triggerElementCache)==null?void 0:a.deref();d&&(d.style.zIndex=`${this.zIndex+Hh}`)}}createBackdrop(i){let a=document.createElement("div");a.classList.add(`${i}-backdrop`);let d=document.createElement("style"),f=this.isBackdropInvisible?"transparent":getComputedStyle(this).getPropertyValue("--mdc-backdrop-mixin-background-color")||"var(--mds-color-theme-common-overlays-secondary-normal)";d.textContent=`
|
|
1132
1132
|
.${i}-backdrop {
|
|
1133
1133
|
position: fixed;
|
|
1134
1134
|
top: 0;
|
|
@@ -1316,7 +1316,7 @@
|
|
|
1316
1316
|
<mdc-button
|
|
1317
1317
|
part="dialog-close-btn"
|
|
1318
1318
|
prefix-icon="${wr.CANCEL_ICON}"
|
|
1319
|
-
variant="${
|
|
1319
|
+
variant="${Ut.TERTIARY}"
|
|
1320
1320
|
size="${_r[20]}"
|
|
1321
1321
|
aria-label="${tt(this.closeButtonAriaLabel)||""}"
|
|
1322
1322
|
@click="${this.closeDialog}"
|
|
@@ -1399,7 +1399,7 @@
|
|
|
1399
1399
|
height: var(--mdc-illustration-size);
|
|
1400
1400
|
width: var(--mdc-illustration-size);
|
|
1401
1401
|
}
|
|
1402
|
-
`],_v=dA;var wv=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),Yh=new Map,kv=async({url:n,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:a})=>{let d=a(),f=`${n}/${o}.${t}`,v=new Request(f,{signal:d});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?wv(v).then(x=>x.text()):jl(i,e).then(x=>x.get(v).then(R=>{if(R)return R;let H=Yh.get(f);if(H)return H;let J=wv(new Request(f)).then(W=>{var Z;return W.status<400&&W.headers.has("content-type")?(Z=x.set)==null?void 0:Z.call(x,v,W.clone()).then(()=>W.text()):W.text()}).finally(()=>{Yh.delete(f)});return Yh.set(f,J),J}).catch(R=>{throw new Error(`Error in caching the Illustration ${o}, ${R}`)}))};var Nv=V.constructTagName("illustration"),Lv={NAME:void 0};var
|
|
1402
|
+
`],_v=dA;var wv=async n=>fetch(n).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),Yh=new Map,kv=async({url:n,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:a})=>{let d=a(),f=`${n}/${o}.${t}`,v=new Request(f,{signal:d});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?wv(v).then(x=>x.text()):jl(i,e).then(x=>x.get(v).then(R=>{if(R)return R;let H=Yh.get(f);if(H)return H;let J=wv(new Request(f)).then(W=>{var Z;return W.status<400&&W.headers.has("content-type")?(Z=x.set)==null?void 0:Z.call(x,v,W.clone()).then(()=>W.text()):W.text()}).finally(()=>{Yh.delete(f)});return Yh.set(f,J),J}).catch(R=>{throw new Error(`Error in caching the Illustration ${o}, ${R}`)}))};var Nv=V.constructTagName("illustration"),Lv={NAME:void 0};var $i=class extends Q{constructor(){super();this.name=Lv.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Ie.consume({host:this,context:yn.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:a,illustrationSet:d,cacheStrategy:f}=this.illustrationProviderContext.value;if(d==="custom-illustrations"&&i&&e&&this.name){let v=()=>{var x;return(x=this.abortController)==null||x.abort(),this.abortController=new AbortController,this.abortController.signal};return kv({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v}).then(x=>{let R=this.prepareIllustrationElement(x);this.handleIllustrationLoadedSuccess(R)}).catch(x=>{this.handleIllustrationLoadedFailure(x)})}if(d==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(v=>{this.handleIllustrationLoadedSuccess(v.default())}).catch(v=>{this.handleIllustrationLoadedFailure(v)})}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} `}};$i.styles=[...Q.styles,..._v],h([dt()],$i.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],$i.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],$i.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],$i.prototype,"ariaLabelledby",2),h([dt()],$i.prototype,"abortController",2);var jh=$i;jh.register(Nv);var cA=jh;Wh.register(Sv);var hA=Wh;var pA=z`
|
|
1403
1403
|
:host {
|
|
1404
1404
|
--mdc-appheader-height: 4rem;
|
|
1405
1405
|
}
|
|
@@ -1443,7 +1443,7 @@
|
|
|
1443
1443
|
<slot name="trailing"></slot>
|
|
1444
1444
|
</div>
|
|
1445
1445
|
</header>
|
|
1446
|
-
`}};fd.styles=[...Q.styles,...Mv];var qh=fd;var Ov=V.constructTagName("appheader");qh.register(Ov);var mA=qh;var Rv=V.constructTagName("avatar"),qe={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Xh=99,uA="user-regular",
|
|
1446
|
+
`}};fd.styles=[...Q.styles,...Mv];var qh=fd;var Ov=V.constructTagName("appheader");qh.register(Ov);var mA=qh;var Rv=V.constructTagName("avatar"),qe={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Xh=99,uA="user-regular",Jt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Js={TYPE:qe.PHOTO,SIZE:Jt[32],ICON_NAME:uA};var vd=n=>{class o extends n{constructor(){super(...arguments);this.size=Js.SIZE;this.isTyping=!1}}return h([u({type:String})],o.prototype,"src",2),h([u({type:String})],o.prototype,"initials",2),h([u({type:String})],o.prototype,"presence",2),h([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),h([u({type:Number})],o.prototype,"counter",2),h([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var fA=[Tt,z`
|
|
1447
1447
|
:host {
|
|
1448
1448
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
|
1449
1449
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
|
@@ -1600,7 +1600,7 @@
|
|
|
1600
1600
|
outline: 0.125rem solid;
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
|
-
`],Dv=fA;var Pv=V.constructTagName("presence"),Be={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},
|
|
1603
|
+
`],Dv=fA;var Pv=V.constructTagName("presence"),Be={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},me={24:24,32:32,48:48,64:64,72:72,88:88,124:124},ta={TYPE:Be.ACTIVE,SIZE:me[32]};var Fv=n=>({[Jt[124]]:me[124],[Jt[88]]:me[88],[Jt[72]]:me[72],[Jt[64]]:me[64],[Jt[48]]:me[48],[Jt[32]]:me[32],[Jt[24]]:me[24]})[n]||me[32],$v=n=>({[Jt[124]]:4.75,[Jt[88]]:3,[Jt[72]]:2.5,[Jt[64]]:2.25,[Jt[48]]:1.75,[Jt[32]]:1.25,[Jt[24]]:1})[n]||1.25,Vv=n=>({[Jt[124]]:at.HEADING_XLARGE_MEDIUM,[Jt[88]]:at.HEADING_LARGE_MEDIUM,[Jt[72]]:at.HEADING_MIDSIZE_MEDIUM,[Jt[64]]:at.HEADING_SMALL_MEDIUM,[Jt[48]]:at.HEADING_SMALL_MEDIUM,[Jt[32]]:at.BODY_MIDSIZE_MEDIUM,[Jt[24]]:at.BODY_SMALL_MEDIUM})[n]||at.BODY_MIDSIZE_MEDIUM;var En=class extends vd(pe(Q)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===qe.COUNTER&&(this.counter||this.counter===0)||this.isTyping?U:this.presence?S`
|
|
1604
1604
|
<mdc-presence part="presence" type="${this.presence}" size="${Fv(this.size)}"></mdc-presence>
|
|
1605
1605
|
`:U}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return S`
|
|
1606
1606
|
<img
|
|
@@ -1710,7 +1710,7 @@
|
|
|
1710
1710
|
:host::part(mdc-presence-icon__scheduled) {
|
|
1711
1711
|
color: var(--mdc-presence-scheduled-background-color);
|
|
1712
1712
|
}
|
|
1713
|
-
`],zv=vA;var Bv=n=>{switch(n){case Be.AWAY:return"recents-presence-badge-filled";case Be.AWAY_CALLING:return"away-calling-presence-filled";case Be.BUSY:return"busy-presence-bold";case Be.DND:return"dnd-presence-badge-filled";case Be.MEETING:return"camera-filled";case Be.ON_CALL:return"handset-filled";case Be.ON_DEVICE:return"generic-device-video-badge-filled";case Be.ON_MOBILE:return"phone-badge-filled";case Be.PAUSE:return"pause-badge-filled";case Be.PTO:return"pto-presence-filled";case Be.PRESENTING:return"share-screen-badge-filled";case Be.QUIET:return"quiet-hours-presence-filled";case Be.SCHEDULED:return"meetings-presence-badge-filled";case Be.ACTIVE:default:return"active-presence-small-filled"}},Hv=n=>({[
|
|
1713
|
+
`],zv=vA;var Bv=n=>{switch(n){case Be.AWAY:return"recents-presence-badge-filled";case Be.AWAY_CALLING:return"away-calling-presence-filled";case Be.BUSY:return"busy-presence-bold";case Be.DND:return"dnd-presence-badge-filled";case Be.MEETING:return"camera-filled";case Be.ON_CALL:return"handset-filled";case Be.ON_DEVICE:return"generic-device-video-badge-filled";case Be.ON_MOBILE:return"phone-badge-filled";case Be.PAUSE:return"pause-badge-filled";case Be.PTO:return"pto-presence-filled";case Be.PRESENTING:return"share-screen-badge-filled";case Be.QUIET:return"quiet-hours-presence-filled";case Be.SCHEDULED:return"meetings-presence-badge-filled";case Be.ACTIVE:default:return"active-presence-small-filled"}},Hv=n=>({[me[124]]:2.25,[me[88]]:1.625,[me[72]]:1.3125,[me[64]]:1.1875,[me[48]]:.875,[me[32]]:.875,[me[24]]:.875})[n]||.875;var ts=class extends Q{constructor(){super(...arguments);this.type=ta.TYPE;this.size=ta.SIZE;this.currentIconType=ta.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(me).includes(t)?`${t}`:ta.SIZE.toString())}get icon(){let t=Bv(this.type);return t==="active-presence-small-filled"&&(this.type=ta.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return S`
|
|
1714
1714
|
<div part="presence-content">
|
|
1715
1715
|
<mdc-icon
|
|
1716
1716
|
part="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
|
@@ -1759,7 +1759,7 @@
|
|
|
1759
1759
|
--mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatarbutton-loading-indicator-foreground-color);
|
|
1760
1760
|
--mdc-avatar-loading-overlay-background-color: var(--mdc-avatarbutton-loading-overlay-background-color);
|
|
1761
1761
|
}
|
|
1762
|
-
`,...xt()],Uv=yA;var Tn=class extends vd(
|
|
1762
|
+
`,...xt()],Uv=yA;var Tn=class extends vd(pe(ge)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=et.BUTTON,this.type=ar.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Jt).includes(t)?`${t}`:Js.SIZE.toString())}render(){return S`
|
|
1763
1763
|
<div part="overlay" aria-hidden="true"></div>
|
|
1764
1764
|
<mdc-avatar
|
|
1765
1765
|
exportparts="content, photo, presence, loading-wrapper, loader"
|
|
@@ -1771,7 +1771,7 @@
|
|
|
1771
1771
|
size="${tt(this.size)}"
|
|
1772
1772
|
src="${tt(this.src)}"
|
|
1773
1773
|
></mdc-avatar>
|
|
1774
|
-
`}};Tn.styles=[...Uv],h([u({type:String,attribute:"aria-label"})],Tn.prototype,"ariaLabel",2);var Jh=Tn;var Gv=V.constructTagName("avatarbutton");Jh.register(Gv);var EA=Jh;var Kv=V.constructTagName("badge"),kr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},gd={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},tp={PRIMARY:"primary",SECONDARY:"secondary"}
|
|
1774
|
+
`}};Tn.styles=[...Uv],h([u({type:String,attribute:"aria-label"})],Tn.prototype,"ariaLabel",2);var Jh=Tn;var Gv=V.constructTagName("avatarbutton");Jh.register(Gv);var EA=Jh;var Kv=V.constructTagName("badge"),kr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},gd={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},tp={PRIMARY:"primary",SECONDARY:"secondary"},Vi={TYPE:kr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:tp.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var TA=[Tt,z`
|
|
1775
1775
|
:host {
|
|
1776
1776
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
|
1777
1777
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
|
@@ -1850,11 +1850,11 @@
|
|
|
1850
1850
|
outline: none;
|
|
1851
1851
|
}
|
|
1852
1852
|
}
|
|
1853
|
-
`],Wv=TA;var ci=class extends
|
|
1853
|
+
`],Wv=TA;var ci=class extends pe(Q){constructor(){super(...arguments);this.variant=Vi.VARIANT;this.maxCounter=Vi.MAX_COUNTER;this.overlay=Vi.OVERLAY;this.ariaLabel=null}getCounterText(t,e){return e===void 0||typeof e!="number"||t===0?"":e>t?`${t}+`:t>Vi.MAX_COUNTER_LIMIT||e>Vi.MAX_COUNTER_LIMIT?`${Vi.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t){return S`
|
|
1854
1854
|
<mdc-icon
|
|
1855
1855
|
part="badge-icon ${this.overlay?"badge-overlay":""}"
|
|
1856
1856
|
name="${tt(t)}"
|
|
1857
|
-
size="${
|
|
1857
|
+
size="${Vi.ICON_SIZE}"
|
|
1858
1858
|
></mdc-icon>
|
|
1859
1859
|
`}getBadgeDot(){return S`<div part="badge-dot ${this.overlay?"badge-overlay":""}"></div>`}getBadgeCounterText(){return S`
|
|
1860
1860
|
<mdc-text
|
|
@@ -1864,7 +1864,7 @@
|
|
|
1864
1864
|
>
|
|
1865
1865
|
${this.getCounterText(this.maxCounter,this.counter)}
|
|
1866
1866
|
</mdc-text>
|
|
1867
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role=et.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(tp).includes(this.variant)&&(this.variant
|
|
1867
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role=et.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(tp).includes(this.variant)&&(this.variant=Vi.VARIANT);let{iconName:t,type:e}=this;switch(e){case kr.ICON:return this.getBadgeIcon(t||"");case kr.COUNTER:return this.getBadgeCounterText();case kr.SUCCESS:return this.getBadgeIcon(gd.SUCCESS_ICON_NAME);case kr.WARNING:return this.getBadgeIcon(gd.WARNING_ICON_NAME);case kr.ERROR:return this.getBadgeIcon(gd.ERROR_ICON_NAME);case kr.DOT:default:return this.type=kr.DOT,this.getBadgeDot()}}};ci.styles=[...Q.styles,...Wv],h([u({type:String,reflect:!0})],ci.prototype,"type",2),h([u({type:String,reflect:!0})],ci.prototype,"variant",2),h([u({type:Number})],ci.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],ci.prototype,"maxCounter",2),h([u({type:Boolean})],ci.prototype,"overlay",2),h([u({type:String,attribute:"aria-label"})],ci.prototype,"ariaLabel",2);var ep=ci;ep.register(Kv);var xA=ep;var AA=z`
|
|
1868
1868
|
:host {
|
|
1869
1869
|
display: block;
|
|
1870
1870
|
height: 100%;
|
|
@@ -1998,7 +1998,7 @@
|
|
|
1998
1998
|
:host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
|
|
1999
1999
|
width: 2.5rem;
|
|
2000
2000
|
}
|
|
2001
|
-
`,Jv=[Tt,NA];var
|
|
2001
|
+
`,Jv=[Tt,NA];var zi=class extends Q{constructor(){super(...arguments);this.orientation=bd.ORIENTATION;this.variant=bd.VARIANT;this.size=bd.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(t=>{t.setAttribute("size",this.size.toString()),t.setAttribute("variant",this.variant)})}updated(t){super.updated(t),(t.has("size")||t.has("variant"))&&this.handleSlotChange()}render(){return S`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};zi.styles=[...Q.styles,...Jv],h([u({type:String,reflect:!0})],zi.prototype,"orientation",2),h([u({type:String,reflect:!0})],zi.prototype,"variant",2),h([u({type:Number,reflect:!0})],zi.prototype,"size",2),h([u({type:Boolean,reflect:!0})],zi.prototype,"compact",2),h([Xt({selector:"mdc-button"})],zi.prototype,"buttons",2);var op=zi;op.register(Qv);var LA=op;var oe=n=>{class o extends n{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var tg=V.constructTagName("linksimple"),ea={INLINE:!1,INVERTED:!1};var MA=[Tt,z`
|
|
2002
2002
|
:host {
|
|
2003
2003
|
--mdc-link-border-radius: 0.25rem;
|
|
2004
2004
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
|
@@ -2077,7 +2077,7 @@
|
|
|
2077
2077
|
:host([inline])::part(anchor) {
|
|
2078
2078
|
text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
|
|
2079
2079
|
}
|
|
2080
|
-
`,...xt(!0)],eg=MA;var Xe=class extends oe(
|
|
2080
|
+
`,...xt(!0)],eg=MA;var Xe=class extends oe(Zt(Q)){constructor(){super(...arguments);this.inline=ea.INLINE;this.inverted=ea.INVERTED;this.target="_self"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleNavigation.bind(this)),this.addEventListener("keydown",this.handleNavigation.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation.bind(this)),this.removeEventListener("keydown",this.handleNavigation.bind(this))}click(){var t,e,i,a;this.disabled||(a=(i=(e=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:e.call(t,"a"))==null?void 0:i.click)==null||a.call(i)}handleNavigation(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}setDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this.disabled)}renderAnchorContent(){return S`<slot></slot>`}render(){var t;return S`
|
|
2081
2081
|
<a
|
|
2082
2082
|
class="mdc-focus-ring"
|
|
2083
2083
|
part="anchor"
|
|
@@ -2278,7 +2278,7 @@
|
|
|
2278
2278
|
mdc-text::part(text) {
|
|
2279
2279
|
margin: 0;
|
|
2280
2280
|
}
|
|
2281
|
-
`,og=[Tt,DA];var An=class extends yd(qs(Q)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(e=>{e.matches(Ce.BUTTON)&&(e.setAttribute("variant",
|
|
2281
|
+
`,og=[Tt,DA];var An=class extends yd(qs(Q)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(e=>{e.matches(Ce.BUTTON)&&(e.setAttribute("variant",Ut.TERTIARY),e.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return S`<div part="header">
|
|
2282
2282
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2283
2283
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
|
2284
2284
|
</div>`}render(){return S`
|
|
@@ -2292,7 +2292,7 @@
|
|
|
2292
2292
|
</div>
|
|
2293
2293
|
${this.renderFooter()}
|
|
2294
2294
|
</div>
|
|
2295
|
-
`}};An.styles=[...Q.styles,...og],h([
|
|
2295
|
+
`}};An.styles=[...Q.styles,...og],h([Xt({slot:"icon-button"})],An.prototype,"iconButtons",2);var Ur=An;Ur.register(gv);var PA=Ur;var FA=z`
|
|
2296
2296
|
:host {
|
|
2297
2297
|
cursor: pointer;
|
|
2298
2298
|
user-select: none;
|
|
@@ -2314,7 +2314,7 @@
|
|
|
2314
2314
|
:host([disabled])::part(image) {
|
|
2315
2315
|
opacity: 0.5;
|
|
2316
2316
|
}
|
|
2317
|
-
`,sg=[FA,...xt()];var Ed=class extends yd(
|
|
2317
|
+
`,sg=[FA,...xt()];var Ed=class extends yd(ge){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return S`
|
|
2318
2318
|
<slot name="image"> ${this.renderImage()} </slot>
|
|
2319
2319
|
<div part="body">
|
|
2320
2320
|
<div part="header">${this.renderIcon()} ${this.renderTitle()}</div>
|
|
@@ -2379,7 +2379,7 @@
|
|
|
2379
2379
|
:host([disabled])::part(check-icon) {
|
|
2380
2380
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
2381
2381
|
}
|
|
2382
|
-
`,lg=[VA,...xt()];var ia=class extends Ot(Nt(
|
|
2382
|
+
`,lg=[VA,...xt()];var ia=class extends Ot(Nt(Zt(ii(Ur)))){constructor(){super();this.checked=!1;this.selectionType=xd.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){let e=this.getActionForKeyEvent(t);e===K.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),e===K.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===K.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?np.CHECKED:np.DEFAULT;switch(this.selectionType){case Td.CHECK:return S`<mdc-icon
|
|
2383
2383
|
part="check check-icon"
|
|
2384
2384
|
size="${xd.ICON_SIZE}"
|
|
2385
2385
|
length-unit="${xd.ICON_LENGTH_UNIT}"
|
|
@@ -2474,7 +2474,7 @@
|
|
|
2474
2474
|
--mdc-staticcheckbox-icon-color: GrayText;
|
|
2475
2475
|
}
|
|
2476
2476
|
}
|
|
2477
|
-
`],dg=zA;var cg=V.constructTagName("popover"),Mt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},_e={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},rs={TONAL:"tonal",CONTRAST:"contrast"},dp={ABSOLUTE:"absolute",FIXED:"fixed"},BA={VIEWPORT:"viewport",DOCUMENT:"document"},Et={PLACEMENT:Mt.BOTTOM,TRIGGER:_e.CLICK,COLOR:rs.TONAL,STRATEGY:dp.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:BA.VIEWPORT,BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1,INLINE:!1},
|
|
2477
|
+
`],dg=zA;var cg=V.constructTagName("popover"),Mt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},_e={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},rs={TONAL:"tonal",CONTRAST:"contrast"},dp={ABSOLUTE:"absolute",FIXED:"fixed"},BA={VIEWPORT:"viewport",DOCUMENT:"document"},Et={PLACEMENT:Mt.BOTTOM,TRIGGER:_e.CLICK,COLOR:rs.TONAL,STRATEGY:dp.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:BA.VIEWPORT,BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1,INLINE:!1},Bi={OPEN:"open",HOVER:"hover",CLOSE:"close"};var hg=V.constructTagName("statusmessage"),yo={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ad={ERROR:"error-legacy-badge-filled",WARNING:"warning-badge-filled",SUCCESS:"check-circle-badge-filled",PRIORITY:"priority-badge-filled"},Sd={[yo.DEFAULT]:"",[yo.ERROR]:Ad.ERROR,[yo.WARNING]:Ad.WARNING,[yo.SUCCESS]:Ad.SUCCESS,[yo.PRIORITY]:Ad.PRIORITY},Sn={SEVERITY:yo.DEFAULT,TEXT_TAGNAME:pt.SPAN,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR};var pg=V.constructTagName("formfieldwrapper"),te=yo,Kt={VALIDATION:te.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Mt.TOP,TOGGLETIP_STRATEGY:dp.ABSOLUTE},In={TAGNAME:pt.SPAN,TYPE:at.BODY_MIDSIZE_REGULAR,HEADER_TYPE:at.BODY_MIDSIZE_BOLD};var is=V.constructTagName("checkbox"),Id={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},mg={ERROR:te.ERROR,DEFAULT:te.DEFAULT};var ug=V.constructTagName("staticcheckbox");var Eo=class extends Zt(Q){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?S`
|
|
2478
2478
|
<mdc-icon
|
|
2479
2479
|
part="checkbox-icon"
|
|
2480
2480
|
name="${this.indeterminate?Id.INDETERMINATE:Id.CHECKED}"
|
|
@@ -2535,7 +2535,7 @@
|
|
|
2535
2535
|
:host([disabled])::part(image) {
|
|
2536
2536
|
opacity: 0.5;
|
|
2537
2537
|
}
|
|
2538
|
-
`,fg=[GA,...xt()];var oa=class extends Ot(Nt(
|
|
2538
|
+
`,fg=[GA,...xt()];var oa=class extends Ot(Nt(Zt(ii(Ur)))){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(e=>{e.checked=!1}),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){this.disabled||(super.click(),this.toggleChecked())}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,e){t[e].focus(),t[e].toggleChecked()}handleKeyDown(t){let e=this.getActionForKeyEvent(t);if(e===K.SPACE){t.preventDefault();return}if(this.disabled)return;let a=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),d=a.indexOf(this);if(e===K.DOWN||K.RIGHT===e){let f=(d+1)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}else if(e===K.UP||K.LEFT===e){let f=(d-1+a.length)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}e===K.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===K.SPACE&&this.toggleChecked()}renderHeader(){return S`<div part="header">
|
|
2539
2539
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2540
2540
|
<mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
|
|
2541
2541
|
</div>`}render(){return S`
|
|
@@ -2643,8 +2643,8 @@
|
|
|
2643
2643
|
--mdc-staticradio-outer-circle-background-color: GrayText;
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
|
-
`],vg=KA;var os=class extends
|
|
2647
|
-
<span part="radio-icon" class="radio-icon"></span>`}};os.styles=[...Q.styles,...vg],h([u({type:Boolean,reflect:!0})],os.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],os.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],os.prototype,"softDisabled",2);var pp=os;var gg=V.constructTagName("staticradio");pp.register(gg);var WA=pp;hp.register(Cd);var YA=hp;var Er=Math.min,we=Math.max,_n=Math.round,wn=Math.floor,Gr=n=>({x:n,y:n}),jA={left:"right",right:"left",bottom:"top",top:"bottom"},qA={start:"end",end:"start"};function wd(n,o,t){return we(n,Er(o,t))}function To(n,o){return typeof n=="function"?n(o):n}function Kr(n){return n.split("-")[0]}function ss(n){return n.split("-")[1]}function mp(n){return n==="x"?"y":"x"}function kd(n){return n==="y"?"height":"width"}var XA=new Set(["top","bottom"]);function Wr(n){return XA.has(Kr(n))?"y":"x"}function Nd(n){return mp(Wr(n))}function Eg(n,o,t){t===void 0&&(t=!1);let e=ss(n),i=Nd(n),a=kd(i),d=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[a]>o.floating[a]&&(d=Cn(d)),[d,Cn(d)]}function Tg(n){let o=Cn(n);return[_d(n),o,_d(o)]}function _d(n){return n.replace(/start|end/g,o=>qA[o])}var bg=["left","right"],yg=["right","left"],ZA=["top","bottom"],QA=["bottom","top"];function JA(n,o,t){switch(n){case"top":case"bottom":return t?o?yg:bg:o?bg:yg;case"left":case"right":return o?ZA:QA;default:return[]}}function xg(n,o,t,e){let i=ss(n),a=JA(Kr(n),t==="start",e);return i&&(a=a.map(d=>d+"-"+i),o&&(a=a.concat(a.map(_d)))),a}function Cn(n){return n.replace(/left|right|bottom|top/g,o=>jA[o])}function t0(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ld(n){return typeof n!="number"?t0(n):{top:n,right:n,bottom:n,left:n}}function Bi(n){let{x:o,y:t,width:e,height:i}=n;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function Ag(n,o,t){let{reference:e,floating:i}=n,a=Wr(o),d=Nd(o),f=kd(d),v=Kr(o),x=a==="y",R=e.x+e.width/2-i.width/2,H=e.y+e.height/2-i.height/2,J=e[f]/2-i[f]/2,W;switch(v){case"top":W={x:R,y:e.y-i.height};break;case"bottom":W={x:R,y:e.y+e.height};break;case"right":W={x:e.x+e.width,y:H};break;case"left":W={x:e.x-i.width,y:H};break;default:W={x:e.x,y:e.y}}switch(ss(o)){case"start":W[d]-=J*(t&&x?-1:1);break;case"end":W[d]+=J*(t&&x?-1:1);break}return W}var Sg=async(n,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:a=[],platform:d}=t,f=a.filter(Boolean),v=await(d.isRTL==null?void 0:d.isRTL(o)),x=await d.getElementRects({reference:n,floating:o,strategy:i}),{x:R,y:H}=Ag(x,e,v),J=e,W={},Z=0;for(let ot=0;ot<f.length;ot++){let{name:st,fn:ht}=f[ot],{x:bt,y:yt,data:It,reset:Rt}=await ht({x:R,y:H,initialPlacement:e,placement:J,strategy:i,middlewareData:W,rects:x,platform:d,elements:{reference:n,floating:o}});R=bt!=null?bt:R,H=yt!=null?yt:H,W={...W,[st]:{...W[st],...It}},Rt&&Z<=50&&(Z++,typeof Rt=="object"&&(Rt.placement&&(J=Rt.placement),Rt.rects&&(x=Rt.rects===!0?await d.getElementRects({reference:n,floating:o,strategy:i}):Rt.rects),{x:R,y:H}=Ag(x,J,v)),ot=-1)}return{x:R,y:H,placement:J,strategy:i,middlewareData:W}};async function Md(n,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:a,rects:d,elements:f,strategy:v}=n,{boundary:x="clippingAncestors",rootBoundary:R="viewport",elementContext:H="floating",altBoundary:J=!1,padding:W=0}=To(o,n),Z=Ld(W),st=f[J?H==="floating"?"reference":"floating":H],ht=Bi(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(st)))==null||t?st:st.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(f.floating)),boundary:x,rootBoundary:R,strategy:v})),bt=H==="floating"?{x:e,y:i,width:d.floating.width,height:d.floating.height}:d.reference,yt=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f.floating)),It=await(a.isElement==null?void 0:a.isElement(yt))?await(a.getScale==null?void 0:a.getScale(yt))||{x:1,y:1}:{x:1,y:1},Rt=Bi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:bt,offsetParent:yt,strategy:v}):bt);return{top:(ht.top-Rt.top+Z.top)/It.y,bottom:(Rt.bottom-ht.bottom+Z.bottom)/It.y,left:(ht.left-Rt.left+Z.left)/It.x,right:(Rt.right-ht.right+Z.right)/It.x}}var Ig=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:e,placement:i,rects:a,platform:d,elements:f,middlewareData:v}=o,{element:x,padding:R=0}=To(n,o)||{};if(x==null)return{};let H=Ld(R),J={x:t,y:e},W=Nd(i),Z=kd(W),ot=await d.getDimensions(x),st=W==="y",ht=st?"top":"left",bt=st?"bottom":"right",yt=st?"clientHeight":"clientWidth",It=a.reference[Z]+a.reference[W]-J[W]-a.floating[Z],Rt=J[W]-a.reference[W],Gt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(x)),Pt=Gt?Gt[yt]:0;(!Pt||!await(d.isElement==null?void 0:d.isElement(Gt)))&&(Pt=f.floating[yt]||a.floating[Z]);let ne=It/2-Rt/2,Ge=Pt/2-ot[Z]/2-1,jt=Er(H[ht],Ge),Ee=Er(H[bt],Ge),Te=jt,xe=Pt-ot[Z]-Ee,kt=Pt/2-ot[Z]/2+ne,se=wd(Te,kt,xe),Ke=!v.arrow&&ss(i)!=null&&kt!==se&&a.reference[Z]/2-(kt<Te?jt:Ee)-ot[Z]/2<0,Je=Ke?kt<Te?kt-Te:kt-xe:0;return{[W]:J[W]+Je,data:{[W]:se,centerOffset:kt-se-Je,...Ke&&{alignmentOffset:Je}},reset:Ke}}});var Cg=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,e;let{placement:i,middlewareData:a,rects:d,initialPlacement:f,platform:v,elements:x}=o,{mainAxis:R=!0,crossAxis:H=!0,fallbackPlacements:J,fallbackStrategy:W="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:ot=!0,...st}=To(n,o);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let ht=Kr(i),bt=Wr(f),yt=Kr(f)===f,It=await(v.isRTL==null?void 0:v.isRTL(x.floating)),Rt=J||(yt||!ot?[Cn(f)]:Tg(f)),Gt=Z!=="none";!J&&Gt&&Rt.push(...xg(f,ot,Z,It));let Pt=[f,...Rt],ne=await Md(o,st),Ge=[],jt=((e=a.flip)==null?void 0:e.overflows)||[];if(R&&Ge.push(ne[ht]),H){let kt=Eg(i,d,It);Ge.push(ne[kt[0]],ne[kt[1]])}if(jt=[...jt,{placement:i,overflows:Ge}],!Ge.every(kt=>kt<=0)){var Ee,Te;let kt=(((Ee=a.flip)==null?void 0:Ee.index)||0)+1,se=Pt[kt];if(se&&(!(H==="alignment"?bt!==Wr(se):!1)||jt.every(tr=>tr.overflows[0]>0&&Wr(tr.placement)===bt)))return{data:{index:kt,overflows:jt},reset:{placement:se}};let Ke=(Te=jt.filter(Je=>Je.overflows[0]<=0).sort((Je,tr)=>Je.overflows[1]-tr.overflows[1])[0])==null?void 0:Te.placement;if(!Ke)switch(W){case"bestFit":{var xe;let Je=(xe=jt.filter(tr=>{if(Gt){let Sr=Wr(tr.placement);return Sr===bt||Sr==="y"}return!0}).map(tr=>[tr.placement,tr.overflows.filter(Sr=>Sr>0).reduce((Sr,ll)=>Sr+ll,0)]).sort((tr,Sr)=>tr[1]-Sr[1])[0])==null?void 0:xe[0];Je&&(Ke=Je);break}case"initialPlacement":Ke=f;break}if(i!==Ke)return{reset:{placement:Ke}}}return{}}}};function _g(n){let o=Er(...n.map(a=>a.left)),t=Er(...n.map(a=>a.top)),e=we(...n.map(a=>a.right)),i=we(...n.map(a=>a.bottom));return{x:o,y:t,width:e-o,height:i-t}}function e0(n){let o=n.slice().sort((i,a)=>i.y-a.y),t=[],e=null;for(let i=0;i<o.length;i++){let a=o[i];!e||a.y-e.y>e.height/2?t.push([a]):t[t.length-1].push(a),e=a}return t.map(i=>Bi(_g(i)))}var wg=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(o){let{placement:t,elements:e,rects:i,platform:a,strategy:d}=o,{padding:f=2,x:v,y:x}=To(n,o),R=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(e.reference))||[]),H=e0(R),J=Bi(_g(R)),W=Ld(f);function Z(){if(H.length===2&&H[0].left>H[1].right&&v!=null&&x!=null)return H.find(st=>v>st.left-W.left&&v<st.right+W.right&&x>st.top-W.top&&x<st.bottom+W.bottom)||J;if(H.length>=2){if(Wr(t)==="y"){let jt=H[0],Ee=H[H.length-1],Te=Kr(t)==="top",xe=jt.top,kt=Ee.bottom,se=Te?jt.left:Ee.left,Ke=Te?jt.right:Ee.right,Je=Ke-se,tr=kt-xe;return{top:xe,bottom:kt,left:se,right:Ke,width:Je,height:tr,x:se,y:xe}}let st=Kr(t)==="left",ht=we(...H.map(jt=>jt.right)),bt=Er(...H.map(jt=>jt.left)),yt=H.filter(jt=>st?jt.left===bt:jt.right===ht),It=yt[0].top,Rt=yt[yt.length-1].bottom,Gt=bt,Pt=ht,ne=Pt-Gt,Ge=Rt-It;return{top:It,bottom:Rt,left:Gt,right:Pt,width:ne,height:Ge,x:Gt,y:It}}return J}let ot=await a.getElementRects({reference:{getBoundingClientRect:Z},floating:e.floating,strategy:d});return i.reference.x!==ot.reference.x||i.reference.y!==ot.reference.y||i.reference.width!==ot.reference.width||i.reference.height!==ot.reference.height?{reset:{rects:ot}}:{}}}},r0=new Set(["left","top"]);async function i0(n,o){let{placement:t,platform:e,elements:i}=n,a=await(e.isRTL==null?void 0:e.isRTL(i.floating)),d=Kr(t),f=ss(t),v=Wr(t)==="y",x=r0.has(d)?-1:1,R=a&&v?-1:1,H=To(o,n),{mainAxis:J,crossAxis:W,alignmentAxis:Z}=typeof H=="number"?{mainAxis:H,crossAxis:0,alignmentAxis:null}:{mainAxis:H.mainAxis||0,crossAxis:H.crossAxis||0,alignmentAxis:H.alignmentAxis};return f&&typeof Z=="number"&&(W=f==="end"?Z*-1:Z),v?{x:W*R,y:J*x}:{x:J*x,y:W*R}}var kg=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,e;let{x:i,y:a,placement:d,middlewareData:f}=o,v=await i0(o,n);return d===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+v.x,y:a+v.y,data:{...v,placement:d}}}}},Ng=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:a=!0,crossAxis:d=!1,limiter:f={fn:st=>{let{x:ht,y:bt}=st;return{x:ht,y:bt}}},...v}=To(n,o),x={x:t,y:e},R=await Md(o,v),H=Wr(Kr(i)),J=mp(H),W=x[J],Z=x[H];if(a){let st=J==="y"?"top":"left",ht=J==="y"?"bottom":"right",bt=W+R[st],yt=W-R[ht];W=wd(bt,W,yt)}if(d){let st=H==="y"?"top":"left",ht=H==="y"?"bottom":"right",bt=Z+R[st],yt=Z-R[ht];Z=wd(bt,Z,yt)}let ot=f.fn({...o,[J]:W,[H]:Z});return{...ot,data:{x:ot.x-t,y:ot.y-e,enabled:{[J]:a,[H]:d}}}}}};var Lg=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,e;let{placement:i,rects:a,platform:d,elements:f}=o,{apply:v=()=>{},...x}=To(n,o),R=await Md(o,x),H=Kr(i),J=ss(i),W=Wr(i)==="y",{width:Z,height:ot}=a.floating,st,ht;H==="top"||H==="bottom"?(st=H,ht=J===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=H,st=J==="end"?"top":"bottom");let bt=ot-R.top-R.bottom,yt=Z-R.left-R.right,It=Er(ot-R[st],bt),Rt=Er(Z-R[ht],yt),Gt=!o.middlewareData.shift,Pt=It,ne=Rt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=yt),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Pt=bt),Gt&&!J){let jt=we(R.left,0),Ee=we(R.right,0),Te=we(R.top,0),xe=we(R.bottom,0);W?ne=Z-2*(jt!==0||Ee!==0?jt+Ee:we(R.left,R.right)):Pt=ot-2*(Te!==0||xe!==0?Te+xe:we(R.top,R.bottom))}await v({...o,availableWidth:ne,availableHeight:Pt});let Ge=await d.getDimensions(f.floating);return Z!==Ge.width||ot!==Ge.height?{reset:{rects:!0}}:{}}}};function Od(){return typeof window<"u"}function as(n){return Og(n)?(n.nodeName||"").toLowerCase():"#document"}function nr(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Yr(n){var o;return(o=(Og(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Og(n){return Od()?n instanceof Node||n instanceof nr(n).Node:!1}function Nr(n){return Od()?n instanceof Element||n instanceof nr(n).Element:!1}function jr(n){return Od()?n instanceof HTMLElement||n instanceof nr(n).HTMLElement:!1}function Mg(n){return!Od()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof nr(n).ShadowRoot}var o0=new Set(["inline","contents"]);function aa(n){let{overflow:o,overflowX:t,overflowY:e,display:i}=Lr(n);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!o0.has(i)}var s0=new Set(["table","td","th"]);function Rg(n){return s0.has(as(n))}var a0=[":popover-open",":modal"];function kn(n){return a0.some(o=>{try{return n.matches(o)}catch{return!1}})}var n0=["transform","translate","scale","rotate","perspective"],l0=["transform","translate","scale","rotate","perspective","filter"],d0=["paint","layout","strict","content"];function Rd(n){let o=Dd(),t=Nr(n)?Lr(n):n;return n0.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)||l0.some(e=>(t.willChange||"").includes(e))||d0.some(e=>(t.contain||"").includes(e))}function Dg(n){let o=Hi(n);for(;jr(o)&&!ns(o);){if(Rd(o))return o;if(kn(o))return null;o=Hi(o)}return null}function Dd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var c0=new Set(["html","body","#document"]);function ns(n){return c0.has(as(n))}function Lr(n){return nr(n).getComputedStyle(n)}function Nn(n){return Nr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Hi(n){if(as(n)==="html")return n;let o=n.assignedSlot||n.parentNode||Mg(n)&&n.host||Yr(n);return Mg(o)?o.host:o}function Pg(n){let o=Hi(n);return ns(o)?n.ownerDocument?n.ownerDocument.body:n.body:jr(o)&&aa(o)?o:Pg(o)}function sa(n,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=Pg(n),a=i===((e=n.ownerDocument)==null?void 0:e.body),d=nr(i);if(a){let f=Pd(d);return o.concat(d,d.visualViewport||[],aa(i)?i:[],f&&t?sa(f):[])}return o.concat(i,sa(i,[],t))}function Pd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Vg(n){let o=Lr(n),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=jr(n),a=i?n.offsetWidth:t,d=i?n.offsetHeight:e,f=_n(t)!==a||_n(e)!==d;return f&&(t=a,e=d),{width:t,height:e,$:f}}function fp(n){return Nr(n)?n:n.contextElement}function na(n){let o=fp(n);if(!jr(o))return Gr(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:a}=Vg(o),d=(a?_n(t.width):t.width)/e,f=(a?_n(t.height):t.height)/i;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}var h0=Gr(0);function zg(n){let o=nr(n);return!Dd()||!o.visualViewport?h0:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function p0(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==nr(n)?!1:o}function ls(n,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=fp(n),d=Gr(1);o&&(e?Nr(e)&&(d=na(e)):d=na(n));let f=p0(a,t,e)?zg(a):Gr(0),v=(i.left+f.x)/d.x,x=(i.top+f.y)/d.y,R=i.width/d.x,H=i.height/d.y;if(a){let J=nr(a),W=e&&Nr(e)?nr(e):e,Z=J,ot=Pd(Z);for(;ot&&e&&W!==Z;){let st=na(ot),ht=ot.getBoundingClientRect(),bt=Lr(ot),yt=ht.left+(ot.clientLeft+parseFloat(bt.paddingLeft))*st.x,It=ht.top+(ot.clientTop+parseFloat(bt.paddingTop))*st.y;v*=st.x,x*=st.y,R*=st.x,H*=st.y,v+=yt,x+=It,Z=nr(ot),ot=Pd(Z)}}return Bi({width:R,height:H,x:v,y:x})}function vp(n,o){let t=Nn(n).scrollLeft;return o?o.left+t:ls(Yr(n)).left+t}function Bg(n,o,t){t===void 0&&(t=!1);let e=n.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:vp(n,e)),a=e.top+o.scrollTop;return{x:i,y:a}}function m0(n){let{elements:o,rect:t,offsetParent:e,strategy:i}=n,a=i==="fixed",d=Yr(e),f=o?kn(o.floating):!1;if(e===d||f&&a)return t;let v={scrollLeft:0,scrollTop:0},x=Gr(1),R=Gr(0),H=jr(e);if((H||!H&&!a)&&((as(e)!=="body"||aa(d))&&(v=Nn(e)),jr(e))){let W=ls(e);x=na(e),R.x=W.x+e.clientLeft,R.y=W.y+e.clientTop}let J=d&&!H&&!a?Bg(d,v,!0):Gr(0);return{width:t.width*x.x,height:t.height*x.y,x:t.x*x.x-v.scrollLeft*x.x+R.x+J.x,y:t.y*x.y-v.scrollTop*x.y+R.y+J.y}}function u0(n){return Array.from(n.getClientRects())}function f0(n){let o=Yr(n),t=Nn(n),e=n.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),a=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+vp(n),f=-t.scrollTop;return Lr(e).direction==="rtl"&&(d+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:a,x:d,y:f}}function v0(n,o){let t=nr(n),e=Yr(n),i=t.visualViewport,a=e.clientWidth,d=e.clientHeight,f=0,v=0;if(i){a=i.width,d=i.height;let x=Dd();(!x||x&&o==="fixed")&&(f=i.offsetLeft,v=i.offsetTop)}return{width:a,height:d,x:f,y:v}}var g0=new Set(["absolute","fixed"]);function b0(n,o){let t=ls(n,!0,o==="fixed"),e=t.top+n.clientTop,i=t.left+n.clientLeft,a=jr(n)?na(n):Gr(1),d=n.clientWidth*a.x,f=n.clientHeight*a.y,v=i*a.x,x=e*a.y;return{width:d,height:f,x:v,y:x}}function Fg(n,o,t){let e;if(o==="viewport")e=v0(n,t);else if(o==="document")e=f0(Yr(n));else if(Nr(o))e=b0(o,t);else{let i=zg(n);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Bi(e)}function Hg(n,o){let t=Hi(n);return t===o||!Nr(t)||ns(t)?!1:Lr(t).position==="fixed"||Hg(t,o)}function y0(n,o){let t=o.get(n);if(t)return t;let e=sa(n,[],!1).filter(f=>Nr(f)&&as(f)!=="body"),i=null,a=Lr(n).position==="fixed",d=a?Hi(n):n;for(;Nr(d)&&!ns(d);){let f=Lr(d),v=Rd(d);!v&&f.position==="fixed"&&(i=null),(a?!v&&!i:!v&&f.position==="static"&&!!i&&g0.has(i.position)||aa(d)&&!v&&Hg(n,d))?e=e.filter(R=>R!==d):i=f,d=Hi(d)}return o.set(n,e),e}function E0(n){let{element:o,boundary:t,rootBoundary:e,strategy:i}=n,d=[...t==="clippingAncestors"?kn(o)?[]:y0(o,this._c):[].concat(t),e],f=d[0],v=d.reduce((x,R)=>{let H=Fg(o,R,i);return x.top=we(H.top,x.top),x.right=Er(H.right,x.right),x.bottom=Er(H.bottom,x.bottom),x.left=we(H.left,x.left),x},Fg(o,f,i));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function T0(n){let{width:o,height:t}=Vg(n);return{width:o,height:t}}function x0(n,o,t){let e=jr(o),i=Yr(o),a=t==="fixed",d=ls(n,!0,a,o),f={scrollLeft:0,scrollTop:0},v=Gr(0);function x(){v.x=vp(i)}if(e||!e&&!a)if((as(o)!=="body"||aa(i))&&(f=Nn(o)),e){let W=ls(o,!0,a,o);v.x=W.x+o.clientLeft,v.y=W.y+o.clientTop}else i&&x();a&&!e&&i&&x();let R=i&&!e&&!a?Bg(i,f):Gr(0),H=d.left+f.scrollLeft-v.x-R.x,J=d.top+f.scrollTop-v.y-R.y;return{x:H,y:J,width:d.width,height:d.height}}function up(n){return Lr(n).position==="static"}function $g(n,o){if(!jr(n)||Lr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return Yr(n)===t&&(t=t.ownerDocument.body),t}function Ug(n,o){let t=nr(n);if(kn(n))return t;if(!jr(n)){let i=Hi(n);for(;i&&!ns(i);){if(Nr(i)&&!up(i))return i;i=Hi(i)}return t}let e=$g(n,o);for(;e&&Rg(e)&&up(e);)e=$g(e,o);return e&&ns(e)&&up(e)&&!Rd(e)?t:e||Dg(n)||t}var A0=async function(n){let o=this.getOffsetParent||Ug,t=this.getDimensions,e=await t(n.floating);return{reference:x0(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function S0(n){return Lr(n).direction==="rtl"}var I0={convertOffsetParentRelativeRectToViewportRelativeRect:m0,getDocumentElement:Yr,getClippingRect:E0,getOffsetParent:Ug,getElementRects:A0,getClientRects:u0,getDimensions:T0,getScale:na,isElement:Nr,isRTL:S0};function Gg(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function C0(n,o){let t=null,e,i=Yr(n);function a(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function d(f,v){f===void 0&&(f=!1),v===void 0&&(v=1),a();let x=n.getBoundingClientRect(),{left:R,top:H,width:J,height:W}=x;if(f||o(),!J||!W)return;let Z=wn(H),ot=wn(i.clientWidth-(R+J)),st=wn(i.clientHeight-(H+W)),ht=wn(R),yt={rootMargin:-Z+"px "+-ot+"px "+-st+"px "+-ht+"px",threshold:we(0,Er(1,v))||1},It=!0;function Rt(Gt){let Pt=Gt[0].intersectionRatio;if(Pt!==v){if(!It)return d();Pt?d(!1,Pt):e=setTimeout(()=>{d(!1,1e-7)},1e3)}Pt===1&&!Gg(x,n.getBoundingClientRect())&&d(),It=!1}try{t=new IntersectionObserver(Rt,{...yt,root:i.ownerDocument})}catch{t=new IntersectionObserver(Rt,yt)}t.observe(n)}return d(!0),a}function Kg(n,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:v=!1}=e,x=fp(n),R=i||a?[...x?sa(x):[],...sa(o)]:[];R.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),a&&ht.addEventListener("resize",t)});let H=x&&f?C0(x,t):null,J=-1,W=null;d&&(W=new ResizeObserver(ht=>{let[bt]=ht;bt&&bt.target===x&&W&&(W.unobserve(o),cancelAnimationFrame(J),J=requestAnimationFrame(()=>{var yt;(yt=W)==null||yt.observe(o)})),t()}),x&&!v&&W.observe(x),W.observe(o));let Z,ot=v?ls(n):null;v&&st();function st(){let ht=ls(n);ot&&!Gg(ot,ht)&&t(),ot=ht,Z=requestAnimationFrame(st)}return t(),()=>{var ht;R.forEach(bt=>{i&&bt.removeEventListener("scroll",t),a&&bt.removeEventListener("resize",t)}),H==null||H(),(ht=W)==null||ht.disconnect(),W=null,v&&cancelAnimationFrame(Z)}}var Wg=kg;var Yg=Ng,jg=Cg,qg=Lg;var Xg=Ig,Zg=wg;var Qg=(n,o,t)=>{let e=new Map,i={platform:I0,...t},a={...i.platform,_c:e};return Sg(n,o,{...i,platform:a})};var Fd=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 a=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,a),a}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 a=window.setTimeout((...d)=>{t(...d),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,a),a}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(([,d])=>d===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var Ui=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 _0=z`
|
|
2646
|
+
`],vg=KA;var os=class extends Zt(Q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return S` <slot></slot>
|
|
2647
|
+
<span part="radio-icon" class="radio-icon"></span>`}};os.styles=[...Q.styles,...vg],h([u({type:Boolean,reflect:!0})],os.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],os.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],os.prototype,"softDisabled",2);var pp=os;var gg=V.constructTagName("staticradio");pp.register(gg);var WA=pp;hp.register(Cd);var YA=hp;var Er=Math.min,we=Math.max,_n=Math.round,wn=Math.floor,Gr=n=>({x:n,y:n}),jA={left:"right",right:"left",bottom:"top",top:"bottom"},qA={start:"end",end:"start"};function wd(n,o,t){return we(n,Er(o,t))}function To(n,o){return typeof n=="function"?n(o):n}function Kr(n){return n.split("-")[0]}function ss(n){return n.split("-")[1]}function mp(n){return n==="x"?"y":"x"}function kd(n){return n==="y"?"height":"width"}var XA=new Set(["top","bottom"]);function Wr(n){return XA.has(Kr(n))?"y":"x"}function Nd(n){return mp(Wr(n))}function Eg(n,o,t){t===void 0&&(t=!1);let e=ss(n),i=Nd(n),a=kd(i),d=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[a]>o.floating[a]&&(d=Cn(d)),[d,Cn(d)]}function Tg(n){let o=Cn(n);return[_d(n),o,_d(o)]}function _d(n){return n.replace(/start|end/g,o=>qA[o])}var bg=["left","right"],yg=["right","left"],ZA=["top","bottom"],QA=["bottom","top"];function JA(n,o,t){switch(n){case"top":case"bottom":return t?o?yg:bg:o?bg:yg;case"left":case"right":return o?ZA:QA;default:return[]}}function xg(n,o,t,e){let i=ss(n),a=JA(Kr(n),t==="start",e);return i&&(a=a.map(d=>d+"-"+i),o&&(a=a.concat(a.map(_d)))),a}function Cn(n){return n.replace(/left|right|bottom|top/g,o=>jA[o])}function tS(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ld(n){return typeof n!="number"?tS(n):{top:n,right:n,bottom:n,left:n}}function Hi(n){let{x:o,y:t,width:e,height:i}=n;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function Ag(n,o,t){let{reference:e,floating:i}=n,a=Wr(o),d=Nd(o),f=kd(d),v=Kr(o),x=a==="y",R=e.x+e.width/2-i.width/2,H=e.y+e.height/2-i.height/2,J=e[f]/2-i[f]/2,W;switch(v){case"top":W={x:R,y:e.y-i.height};break;case"bottom":W={x:R,y:e.y+e.height};break;case"right":W={x:e.x+e.width,y:H};break;case"left":W={x:e.x-i.width,y:H};break;default:W={x:e.x,y:e.y}}switch(ss(o)){case"start":W[d]-=J*(t&&x?-1:1);break;case"end":W[d]+=J*(t&&x?-1:1);break}return W}var Sg=async(n,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:a=[],platform:d}=t,f=a.filter(Boolean),v=await(d.isRTL==null?void 0:d.isRTL(o)),x=await d.getElementRects({reference:n,floating:o,strategy:i}),{x:R,y:H}=Ag(x,e,v),J=e,W={},Z=0;for(let ot=0;ot<f.length;ot++){let{name:st,fn:ht}=f[ot],{x:bt,y:yt,data:It,reset:Rt}=await ht({x:R,y:H,initialPlacement:e,placement:J,strategy:i,middlewareData:W,rects:x,platform:d,elements:{reference:n,floating:o}});R=bt!=null?bt:R,H=yt!=null?yt:H,W={...W,[st]:{...W[st],...It}},Rt&&Z<=50&&(Z++,typeof Rt=="object"&&(Rt.placement&&(J=Rt.placement),Rt.rects&&(x=Rt.rects===!0?await d.getElementRects({reference:n,floating:o,strategy:i}):Rt.rects),{x:R,y:H}=Ag(x,J,v)),ot=-1)}return{x:R,y:H,placement:J,strategy:i,middlewareData:W}};async function Md(n,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:a,rects:d,elements:f,strategy:v}=n,{boundary:x="clippingAncestors",rootBoundary:R="viewport",elementContext:H="floating",altBoundary:J=!1,padding:W=0}=To(o,n),Z=Ld(W),st=f[J?H==="floating"?"reference":"floating":H],ht=Hi(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(st)))==null||t?st:st.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(f.floating)),boundary:x,rootBoundary:R,strategy:v})),bt=H==="floating"?{x:e,y:i,width:d.floating.width,height:d.floating.height}:d.reference,yt=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f.floating)),It=await(a.isElement==null?void 0:a.isElement(yt))?await(a.getScale==null?void 0:a.getScale(yt))||{x:1,y:1}:{x:1,y:1},Rt=Hi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:bt,offsetParent:yt,strategy:v}):bt);return{top:(ht.top-Rt.top+Z.top)/It.y,bottom:(Rt.bottom-ht.bottom+Z.bottom)/It.y,left:(ht.left-Rt.left+Z.left)/It.x,right:(Rt.right-ht.right+Z.right)/It.x}}var Ig=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:e,placement:i,rects:a,platform:d,elements:f,middlewareData:v}=o,{element:x,padding:R=0}=To(n,o)||{};if(x==null)return{};let H=Ld(R),J={x:t,y:e},W=Nd(i),Z=kd(W),ot=await d.getDimensions(x),st=W==="y",ht=st?"top":"left",bt=st?"bottom":"right",yt=st?"clientHeight":"clientWidth",It=a.reference[Z]+a.reference[W]-J[W]-a.floating[Z],Rt=J[W]-a.reference[W],Gt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(x)),Pt=Gt?Gt[yt]:0;(!Pt||!await(d.isElement==null?void 0:d.isElement(Gt)))&&(Pt=f.floating[yt]||a.floating[Z]);let ne=It/2-Rt/2,Ge=Pt/2-ot[Z]/2-1,qt=Er(H[ht],Ge),Ee=Er(H[bt],Ge),Te=qt,xe=Pt-ot[Z]-Ee,kt=Pt/2-ot[Z]/2+ne,se=wd(Te,kt,xe),Ke=!v.arrow&&ss(i)!=null&&kt!==se&&a.reference[Z]/2-(kt<Te?qt:Ee)-ot[Z]/2<0,Je=Ke?kt<Te?kt-Te:kt-xe:0;return{[W]:J[W]+Je,data:{[W]:se,centerOffset:kt-se-Je,...Ke&&{alignmentOffset:Je}},reset:Ke}}});var Cg=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,e;let{placement:i,middlewareData:a,rects:d,initialPlacement:f,platform:v,elements:x}=o,{mainAxis:R=!0,crossAxis:H=!0,fallbackPlacements:J,fallbackStrategy:W="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:ot=!0,...st}=To(n,o);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let ht=Kr(i),bt=Wr(f),yt=Kr(f)===f,It=await(v.isRTL==null?void 0:v.isRTL(x.floating)),Rt=J||(yt||!ot?[Cn(f)]:Tg(f)),Gt=Z!=="none";!J&&Gt&&Rt.push(...xg(f,ot,Z,It));let Pt=[f,...Rt],ne=await Md(o,st),Ge=[],qt=((e=a.flip)==null?void 0:e.overflows)||[];if(R&&Ge.push(ne[ht]),H){let kt=Eg(i,d,It);Ge.push(ne[kt[0]],ne[kt[1]])}if(qt=[...qt,{placement:i,overflows:Ge}],!Ge.every(kt=>kt<=0)){var Ee,Te;let kt=(((Ee=a.flip)==null?void 0:Ee.index)||0)+1,se=Pt[kt];if(se&&(!(H==="alignment"?bt!==Wr(se):!1)||qt.every(tr=>tr.overflows[0]>0&&Wr(tr.placement)===bt)))return{data:{index:kt,overflows:qt},reset:{placement:se}};let Ke=(Te=qt.filter(Je=>Je.overflows[0]<=0).sort((Je,tr)=>Je.overflows[1]-tr.overflows[1])[0])==null?void 0:Te.placement;if(!Ke)switch(W){case"bestFit":{var xe;let Je=(xe=qt.filter(tr=>{if(Gt){let Sr=Wr(tr.placement);return Sr===bt||Sr==="y"}return!0}).map(tr=>[tr.placement,tr.overflows.filter(Sr=>Sr>0).reduce((Sr,ll)=>Sr+ll,0)]).sort((tr,Sr)=>tr[1]-Sr[1])[0])==null?void 0:xe[0];Je&&(Ke=Je);break}case"initialPlacement":Ke=f;break}if(i!==Ke)return{reset:{placement:Ke}}}return{}}}};function _g(n){let o=Er(...n.map(a=>a.left)),t=Er(...n.map(a=>a.top)),e=we(...n.map(a=>a.right)),i=we(...n.map(a=>a.bottom));return{x:o,y:t,width:e-o,height:i-t}}function eS(n){let o=n.slice().sort((i,a)=>i.y-a.y),t=[],e=null;for(let i=0;i<o.length;i++){let a=o[i];!e||a.y-e.y>e.height/2?t.push([a]):t[t.length-1].push(a),e=a}return t.map(i=>Hi(_g(i)))}var wg=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(o){let{placement:t,elements:e,rects:i,platform:a,strategy:d}=o,{padding:f=2,x:v,y:x}=To(n,o),R=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(e.reference))||[]),H=eS(R),J=Hi(_g(R)),W=Ld(f);function Z(){if(H.length===2&&H[0].left>H[1].right&&v!=null&&x!=null)return H.find(st=>v>st.left-W.left&&v<st.right+W.right&&x>st.top-W.top&&x<st.bottom+W.bottom)||J;if(H.length>=2){if(Wr(t)==="y"){let qt=H[0],Ee=H[H.length-1],Te=Kr(t)==="top",xe=qt.top,kt=Ee.bottom,se=Te?qt.left:Ee.left,Ke=Te?qt.right:Ee.right,Je=Ke-se,tr=kt-xe;return{top:xe,bottom:kt,left:se,right:Ke,width:Je,height:tr,x:se,y:xe}}let st=Kr(t)==="left",ht=we(...H.map(qt=>qt.right)),bt=Er(...H.map(qt=>qt.left)),yt=H.filter(qt=>st?qt.left===bt:qt.right===ht),It=yt[0].top,Rt=yt[yt.length-1].bottom,Gt=bt,Pt=ht,ne=Pt-Gt,Ge=Rt-It;return{top:It,bottom:Rt,left:Gt,right:Pt,width:ne,height:Ge,x:Gt,y:It}}return J}let ot=await a.getElementRects({reference:{getBoundingClientRect:Z},floating:e.floating,strategy:d});return i.reference.x!==ot.reference.x||i.reference.y!==ot.reference.y||i.reference.width!==ot.reference.width||i.reference.height!==ot.reference.height?{reset:{rects:ot}}:{}}}},rS=new Set(["left","top"]);async function iS(n,o){let{placement:t,platform:e,elements:i}=n,a=await(e.isRTL==null?void 0:e.isRTL(i.floating)),d=Kr(t),f=ss(t),v=Wr(t)==="y",x=rS.has(d)?-1:1,R=a&&v?-1:1,H=To(o,n),{mainAxis:J,crossAxis:W,alignmentAxis:Z}=typeof H=="number"?{mainAxis:H,crossAxis:0,alignmentAxis:null}:{mainAxis:H.mainAxis||0,crossAxis:H.crossAxis||0,alignmentAxis:H.alignmentAxis};return f&&typeof Z=="number"&&(W=f==="end"?Z*-1:Z),v?{x:W*R,y:J*x}:{x:J*x,y:W*R}}var kg=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,e;let{x:i,y:a,placement:d,middlewareData:f}=o,v=await iS(o,n);return d===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+v.x,y:a+v.y,data:{...v,placement:d}}}}},Ng=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:a=!0,crossAxis:d=!1,limiter:f={fn:st=>{let{x:ht,y:bt}=st;return{x:ht,y:bt}}},...v}=To(n,o),x={x:t,y:e},R=await Md(o,v),H=Wr(Kr(i)),J=mp(H),W=x[J],Z=x[H];if(a){let st=J==="y"?"top":"left",ht=J==="y"?"bottom":"right",bt=W+R[st],yt=W-R[ht];W=wd(bt,W,yt)}if(d){let st=H==="y"?"top":"left",ht=H==="y"?"bottom":"right",bt=Z+R[st],yt=Z-R[ht];Z=wd(bt,Z,yt)}let ot=f.fn({...o,[J]:W,[H]:Z});return{...ot,data:{x:ot.x-t,y:ot.y-e,enabled:{[J]:a,[H]:d}}}}}};var Lg=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,e;let{placement:i,rects:a,platform:d,elements:f}=o,{apply:v=()=>{},...x}=To(n,o),R=await Md(o,x),H=Kr(i),J=ss(i),W=Wr(i)==="y",{width:Z,height:ot}=a.floating,st,ht;H==="top"||H==="bottom"?(st=H,ht=J===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=H,st=J==="end"?"top":"bottom");let bt=ot-R.top-R.bottom,yt=Z-R.left-R.right,It=Er(ot-R[st],bt),Rt=Er(Z-R[ht],yt),Gt=!o.middlewareData.shift,Pt=It,ne=Rt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=yt),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Pt=bt),Gt&&!J){let qt=we(R.left,0),Ee=we(R.right,0),Te=we(R.top,0),xe=we(R.bottom,0);W?ne=Z-2*(qt!==0||Ee!==0?qt+Ee:we(R.left,R.right)):Pt=ot-2*(Te!==0||xe!==0?Te+xe:we(R.top,R.bottom))}await v({...o,availableWidth:ne,availableHeight:Pt});let Ge=await d.getDimensions(f.floating);return Z!==Ge.width||ot!==Ge.height?{reset:{rects:!0}}:{}}}};function Od(){return typeof window<"u"}function as(n){return Og(n)?(n.nodeName||"").toLowerCase():"#document"}function nr(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Yr(n){var o;return(o=(Og(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Og(n){return Od()?n instanceof Node||n instanceof nr(n).Node:!1}function Nr(n){return Od()?n instanceof Element||n instanceof nr(n).Element:!1}function jr(n){return Od()?n instanceof HTMLElement||n instanceof nr(n).HTMLElement:!1}function Mg(n){return!Od()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof nr(n).ShadowRoot}var oS=new Set(["inline","contents"]);function aa(n){let{overflow:o,overflowX:t,overflowY:e,display:i}=Lr(n);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!oS.has(i)}var sS=new Set(["table","td","th"]);function Rg(n){return sS.has(as(n))}var aS=[":popover-open",":modal"];function kn(n){return aS.some(o=>{try{return n.matches(o)}catch{return!1}})}var nS=["transform","translate","scale","rotate","perspective"],lS=["transform","translate","scale","rotate","perspective","filter"],dS=["paint","layout","strict","content"];function Rd(n){let o=Dd(),t=Nr(n)?Lr(n):n;return nS.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)||lS.some(e=>(t.willChange||"").includes(e))||dS.some(e=>(t.contain||"").includes(e))}function Dg(n){let o=Ui(n);for(;jr(o)&&!ns(o);){if(Rd(o))return o;if(kn(o))return null;o=Ui(o)}return null}function Dd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var cS=new Set(["html","body","#document"]);function ns(n){return cS.has(as(n))}function Lr(n){return nr(n).getComputedStyle(n)}function Nn(n){return Nr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ui(n){if(as(n)==="html")return n;let o=n.assignedSlot||n.parentNode||Mg(n)&&n.host||Yr(n);return Mg(o)?o.host:o}function Pg(n){let o=Ui(n);return ns(o)?n.ownerDocument?n.ownerDocument.body:n.body:jr(o)&&aa(o)?o:Pg(o)}function sa(n,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=Pg(n),a=i===((e=n.ownerDocument)==null?void 0:e.body),d=nr(i);if(a){let f=Pd(d);return o.concat(d,d.visualViewport||[],aa(i)?i:[],f&&t?sa(f):[])}return o.concat(i,sa(i,[],t))}function Pd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Vg(n){let o=Lr(n),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=jr(n),a=i?n.offsetWidth:t,d=i?n.offsetHeight:e,f=_n(t)!==a||_n(e)!==d;return f&&(t=a,e=d),{width:t,height:e,$:f}}function fp(n){return Nr(n)?n:n.contextElement}function na(n){let o=fp(n);if(!jr(o))return Gr(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:a}=Vg(o),d=(a?_n(t.width):t.width)/e,f=(a?_n(t.height):t.height)/i;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}var hS=Gr(0);function zg(n){let o=nr(n);return!Dd()||!o.visualViewport?hS:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function pS(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==nr(n)?!1:o}function ls(n,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=fp(n),d=Gr(1);o&&(e?Nr(e)&&(d=na(e)):d=na(n));let f=pS(a,t,e)?zg(a):Gr(0),v=(i.left+f.x)/d.x,x=(i.top+f.y)/d.y,R=i.width/d.x,H=i.height/d.y;if(a){let J=nr(a),W=e&&Nr(e)?nr(e):e,Z=J,ot=Pd(Z);for(;ot&&e&&W!==Z;){let st=na(ot),ht=ot.getBoundingClientRect(),bt=Lr(ot),yt=ht.left+(ot.clientLeft+parseFloat(bt.paddingLeft))*st.x,It=ht.top+(ot.clientTop+parseFloat(bt.paddingTop))*st.y;v*=st.x,x*=st.y,R*=st.x,H*=st.y,v+=yt,x+=It,Z=nr(ot),ot=Pd(Z)}}return Hi({width:R,height:H,x:v,y:x})}function vp(n,o){let t=Nn(n).scrollLeft;return o?o.left+t:ls(Yr(n)).left+t}function Bg(n,o,t){t===void 0&&(t=!1);let e=n.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:vp(n,e)),a=e.top+o.scrollTop;return{x:i,y:a}}function mS(n){let{elements:o,rect:t,offsetParent:e,strategy:i}=n,a=i==="fixed",d=Yr(e),f=o?kn(o.floating):!1;if(e===d||f&&a)return t;let v={scrollLeft:0,scrollTop:0},x=Gr(1),R=Gr(0),H=jr(e);if((H||!H&&!a)&&((as(e)!=="body"||aa(d))&&(v=Nn(e)),jr(e))){let W=ls(e);x=na(e),R.x=W.x+e.clientLeft,R.y=W.y+e.clientTop}let J=d&&!H&&!a?Bg(d,v,!0):Gr(0);return{width:t.width*x.x,height:t.height*x.y,x:t.x*x.x-v.scrollLeft*x.x+R.x+J.x,y:t.y*x.y-v.scrollTop*x.y+R.y+J.y}}function uS(n){return Array.from(n.getClientRects())}function fS(n){let o=Yr(n),t=Nn(n),e=n.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),a=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+vp(n),f=-t.scrollTop;return Lr(e).direction==="rtl"&&(d+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:a,x:d,y:f}}function vS(n,o){let t=nr(n),e=Yr(n),i=t.visualViewport,a=e.clientWidth,d=e.clientHeight,f=0,v=0;if(i){a=i.width,d=i.height;let x=Dd();(!x||x&&o==="fixed")&&(f=i.offsetLeft,v=i.offsetTop)}return{width:a,height:d,x:f,y:v}}var gS=new Set(["absolute","fixed"]);function bS(n,o){let t=ls(n,!0,o==="fixed"),e=t.top+n.clientTop,i=t.left+n.clientLeft,a=jr(n)?na(n):Gr(1),d=n.clientWidth*a.x,f=n.clientHeight*a.y,v=i*a.x,x=e*a.y;return{width:d,height:f,x:v,y:x}}function Fg(n,o,t){let e;if(o==="viewport")e=vS(n,t);else if(o==="document")e=fS(Yr(n));else if(Nr(o))e=bS(o,t);else{let i=zg(n);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Hi(e)}function Hg(n,o){let t=Ui(n);return t===o||!Nr(t)||ns(t)?!1:Lr(t).position==="fixed"||Hg(t,o)}function yS(n,o){let t=o.get(n);if(t)return t;let e=sa(n,[],!1).filter(f=>Nr(f)&&as(f)!=="body"),i=null,a=Lr(n).position==="fixed",d=a?Ui(n):n;for(;Nr(d)&&!ns(d);){let f=Lr(d),v=Rd(d);!v&&f.position==="fixed"&&(i=null),(a?!v&&!i:!v&&f.position==="static"&&!!i&&gS.has(i.position)||aa(d)&&!v&&Hg(n,d))?e=e.filter(R=>R!==d):i=f,d=Ui(d)}return o.set(n,e),e}function ES(n){let{element:o,boundary:t,rootBoundary:e,strategy:i}=n,d=[...t==="clippingAncestors"?kn(o)?[]:yS(o,this._c):[].concat(t),e],f=d[0],v=d.reduce((x,R)=>{let H=Fg(o,R,i);return x.top=we(H.top,x.top),x.right=Er(H.right,x.right),x.bottom=Er(H.bottom,x.bottom),x.left=we(H.left,x.left),x},Fg(o,f,i));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function TS(n){let{width:o,height:t}=Vg(n);return{width:o,height:t}}function xS(n,o,t){let e=jr(o),i=Yr(o),a=t==="fixed",d=ls(n,!0,a,o),f={scrollLeft:0,scrollTop:0},v=Gr(0);function x(){v.x=vp(i)}if(e||!e&&!a)if((as(o)!=="body"||aa(i))&&(f=Nn(o)),e){let W=ls(o,!0,a,o);v.x=W.x+o.clientLeft,v.y=W.y+o.clientTop}else i&&x();a&&!e&&i&&x();let R=i&&!e&&!a?Bg(i,f):Gr(0),H=d.left+f.scrollLeft-v.x-R.x,J=d.top+f.scrollTop-v.y-R.y;return{x:H,y:J,width:d.width,height:d.height}}function up(n){return Lr(n).position==="static"}function $g(n,o){if(!jr(n)||Lr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return Yr(n)===t&&(t=t.ownerDocument.body),t}function Ug(n,o){let t=nr(n);if(kn(n))return t;if(!jr(n)){let i=Ui(n);for(;i&&!ns(i);){if(Nr(i)&&!up(i))return i;i=Ui(i)}return t}let e=$g(n,o);for(;e&&Rg(e)&&up(e);)e=$g(e,o);return e&&ns(e)&&up(e)&&!Rd(e)?t:e||Dg(n)||t}var AS=async function(n){let o=this.getOffsetParent||Ug,t=this.getDimensions,e=await t(n.floating);return{reference:xS(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function SS(n){return Lr(n).direction==="rtl"}var IS={convertOffsetParentRelativeRectToViewportRelativeRect:mS,getDocumentElement:Yr,getClippingRect:ES,getOffsetParent:Ug,getElementRects:AS,getClientRects:uS,getDimensions:TS,getScale:na,isElement:Nr,isRTL:SS};function Gg(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function CS(n,o){let t=null,e,i=Yr(n);function a(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function d(f,v){f===void 0&&(f=!1),v===void 0&&(v=1),a();let x=n.getBoundingClientRect(),{left:R,top:H,width:J,height:W}=x;if(f||o(),!J||!W)return;let Z=wn(H),ot=wn(i.clientWidth-(R+J)),st=wn(i.clientHeight-(H+W)),ht=wn(R),yt={rootMargin:-Z+"px "+-ot+"px "+-st+"px "+-ht+"px",threshold:we(0,Er(1,v))||1},It=!0;function Rt(Gt){let Pt=Gt[0].intersectionRatio;if(Pt!==v){if(!It)return d();Pt?d(!1,Pt):e=setTimeout(()=>{d(!1,1e-7)},1e3)}Pt===1&&!Gg(x,n.getBoundingClientRect())&&d(),It=!1}try{t=new IntersectionObserver(Rt,{...yt,root:i.ownerDocument})}catch{t=new IntersectionObserver(Rt,yt)}t.observe(n)}return d(!0),a}function Kg(n,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:v=!1}=e,x=fp(n),R=i||a?[...x?sa(x):[],...sa(o)]:[];R.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),a&&ht.addEventListener("resize",t)});let H=x&&f?CS(x,t):null,J=-1,W=null;d&&(W=new ResizeObserver(ht=>{let[bt]=ht;bt&&bt.target===x&&W&&(W.unobserve(o),cancelAnimationFrame(J),J=requestAnimationFrame(()=>{var yt;(yt=W)==null||yt.observe(o)})),t()}),x&&!v&&W.observe(x),W.observe(o));let Z,ot=v?ls(n):null;v&&st();function st(){let ht=ls(n);ot&&!Gg(ot,ht)&&t(),ot=ht,Z=requestAnimationFrame(st)}return t(),()=>{var ht;R.forEach(bt=>{i&&bt.removeEventListener("scroll",t),a&&bt.removeEventListener("resize",t)}),H==null||H(),(ht=W)==null||ht.disconnect(),W=null,v&&cancelAnimationFrame(Z)}}var Wg=kg;var Yg=Ng,jg=Cg,qg=Lg;var Xg=Ig,Zg=wg;var Qg=(n,o,t)=>{let e=new Map,i={platform:IS,...t},a={...i.platform,_c:e};return Sg(n,o,{...i,platform:a})};var Fd=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 a=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,a),a}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 a=window.setTimeout((...d)=>{t(...d),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,a),a}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(([,d])=>d===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var Gi=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 _S=z`
|
|
2648
2648
|
:host {
|
|
2649
2649
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
|
2650
2650
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -2768,7 +2768,7 @@
|
|
|
2768
2768
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
|
2769
2769
|
border-bottom-left-radius: 100%;
|
|
2770
2770
|
}
|
|
2771
|
-
`,Jg=[_0];var Vd=V.constructTagName("popoverportal"),$d=class extends Q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var zd=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(),a=e.getBoundingClientRect(),d=0;if(!a)return;let f=this.popover.offsetHeight||0,v=this.popover.offsetWidth||0,x=o.split("-")[0];switch(x==="top"||x==="bottom"?d=Math.max(0,Math.max(i.top-a.bottom,a.top-i.bottom)):(x==="left"||x==="right")&&(d=Math.max(0,Math.max(a.left-i.right,i.left-a.right))),d+=1,x){case"top":t.style.height=`${d}px`,t.style.bottom=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.right=`calc(-1.5 * (${d}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.left=`calc(-0.5 * (${d}px))`;break;case"bottom":default:t.style.height=`${d}px`,t.style.top=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}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(Vd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var R;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:a,y:d}=o,f=this.popover.arrowElement.getBoundingClientRect(),v=(R=this.popover.arrowElement.offsetParent)==null?void 0:R.getBoundingClientRect();if(!this.arrowPixelChange){let H=v!=null&&v[i]?12-Math.abs(f[i]-v[i]):0;Math.round(H)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let x=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:d!=null?`${d}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-x}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var wt=class extends Ot(Nt(ld(od(js(Q))))){constructor(){super();this.depthManager=new vo(this);this.id="";this.triggerID="";this.trigger=Et.TRIGGER;this.placement=Et.PLACEMENT;this.color=Et.COLOR;this.visible=Et.VISIBLE;this.offset=Et.OFFSET;this.boundary=Et.BOUNDARY;this.boundaryRoot=Et.BOUNDARY_ROOT;this.focusTrap=Et.FOCUS_TRAP;this.preventScroll=Et.PREVENT_SCROLL;this.showArrow=Et.ARROW;this.closeButton=Et.CLOSE_BUTTON;this.interactive=Et.INTERACTIVE;this.delay=Et.DELAY;this.hideOnEscape=Et.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Et.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Et.HIDE_ON_BLUR;this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Et.FOCUS_BACK;this.backdrop=Et.BACKDROP;this.isBackdropInvisible=Et.IS_BACKDROP_INVISIBLE;this.disableFlip=Et.DISABLE_FLIP;this.size=Et.SIZE;this.closeButtonAriaLabel=null;this.strategy=Et.STRATEGY;this.role=Et.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Et.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=Et.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=Et.ANIMATION_FRAME;this.inline=Et.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Fd(this);this.parseTrigger=()=>{var a;let i=(((a=this.trigger)==null?void 0:a.split(" "))||[]).filter(d=>Object.values(_e).includes(d)).length>0?this.trigger:Et.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),document.addEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseout",this.handleMouseLeave,{capture:!0})}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseout",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.hide(),Ui.onClickOutside(this),a&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==K.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Ui.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?e===i||!!(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY):!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,a,d;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(d=(a=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:a.querySelector(".mdc-focus-ring"))!=null&&d.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(zi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(zi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(zi.HOVER),this.timers.clearTimeout(zi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(zi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(zi.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,a=[];if(this.inline&&a.push(Zg()),a.push(Yg({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||a.push(jg({boundary:e,rootBoundary:i})),this.size){let f=x=>{this.style.setProperty("--mdc-popover-internal-available-height",`${x}px`)},v=this.renderRoot.querySelector('[part="popover-content"]');a.push(qg({boundary:e,rootBoundary:i,apply({availableHeight:x}){v&&(Object.assign(v.style,{maxHeight:`${x}px`,overflowY:"auto"}),f(x))},padding:50}))}let d=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;d=Math.sqrt(2*f**2)/2,a.push(Xg({element:this.arrowElement,padding:12}))}a.push(Wg(typeof this.offset=="number"?this.offset+d:this.offset)),this.floatingUICleanupFunction=Kg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let v=this.adjustPlacementForRtl(this.placement),{x,y:R,middlewareData:H,placement:J}=await Qg(f,this,{placement:v,middleware:a,strategy:this.strategy});this.utils.updatePopoverStyle(x,R),H.arrow&&this.arrowElement&&this.utils.updateArrowStyle(H.arrow,J),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(J)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new zd(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),Ui.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(),Ui.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:Et.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(rs).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo&&this.isConnected?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var a,d;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,v,x;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(x=this.setInitialFocus)==null||x.call(this,(v=this.elementIndexToReceiveFocus)!=null?v:0))},0),Ui.onShowPopover(this)):(this.depthManager.popHost(),(a=this.floatingUICleanupFunction)==null||a.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(),(d=this.deactivateFocusTrap)==null||d.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Ui.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(zi.OPEN,t,this.openDelay):(this.timers.clearTimeout(zi.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
|
|
2771
|
+
`,Jg=[_S];var Vd=V.constructTagName("popoverportal"),$d=class extends Q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var zd=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(),a=e.getBoundingClientRect(),d=0;if(!a)return;let f=this.popover.offsetHeight||0,v=this.popover.offsetWidth||0,x=o.split("-")[0];switch(x==="top"||x==="bottom"?d=Math.max(0,Math.max(i.top-a.bottom,a.top-i.bottom)):(x==="left"||x==="right")&&(d=Math.max(0,Math.max(a.left-i.right,i.left-a.right))),d+=1,x){case"top":t.style.height=`${d}px`,t.style.bottom=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.right=`calc(-1.5 * (${d}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.left=`calc(-0.5 * (${d}px))`;break;case"bottom":default:t.style.height=`${d}px`,t.style.top=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}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(Vd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var R;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:a,y:d}=o,f=this.popover.arrowElement.getBoundingClientRect(),v=(R=this.popover.arrowElement.offsetParent)==null?void 0:R.getBoundingClientRect();if(!this.arrowPixelChange){let H=v!=null&&v[i]?12-Math.abs(f[i]-v[i]):0;Math.round(H)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let x=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:d!=null?`${d}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-x}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var wt=class extends Ot(Nt(ld(od(js(Q))))){constructor(){super();this.depthManager=new vo(this);this.id="";this.triggerID="";this.trigger=Et.TRIGGER;this.placement=Et.PLACEMENT;this.color=Et.COLOR;this.visible=Et.VISIBLE;this.offset=Et.OFFSET;this.boundary=Et.BOUNDARY;this.boundaryRoot=Et.BOUNDARY_ROOT;this.focusTrap=Et.FOCUS_TRAP;this.preventScroll=Et.PREVENT_SCROLL;this.showArrow=Et.ARROW;this.closeButton=Et.CLOSE_BUTTON;this.interactive=Et.INTERACTIVE;this.delay=Et.DELAY;this.hideOnEscape=Et.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Et.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Et.HIDE_ON_BLUR;this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Et.FOCUS_BACK;this.backdrop=Et.BACKDROP;this.isBackdropInvisible=Et.IS_BACKDROP_INVISIBLE;this.disableFlip=Et.DISABLE_FLIP;this.size=Et.SIZE;this.closeButtonAriaLabel=null;this.strategy=Et.STRATEGY;this.role=Et.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Et.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=Et.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=Et.ANIMATION_FRAME;this.inline=Et.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Fd(this);this.parseTrigger=()=>{var a;let i=(((a=this.trigger)==null?void 0:a.split(" "))||[]).filter(d=>Object.values(_e).includes(d)).length>0?this.trigger:Et.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),document.addEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseout",this.handleMouseLeave,{capture:!0})}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseout",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.hide(),Gi.onClickOutside(this),a&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==K.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Gi.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?e===i||!!(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY):!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,a,d;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(d=(a=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:a.querySelector(".mdc-focus-ring"))!=null&&d.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Bi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Bi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Bi.HOVER),this.timers.clearTimeout(Bi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Bi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Bi.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,a=[];if(this.inline&&a.push(Zg()),a.push(Yg({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||a.push(jg({boundary:e,rootBoundary:i})),this.size){let f=x=>{this.style.setProperty("--mdc-popover-internal-available-height",`${x}px`)},v=this.renderRoot.querySelector('[part="popover-content"]');a.push(qg({boundary:e,rootBoundary:i,apply({availableHeight:x}){v&&(Object.assign(v.style,{maxHeight:`${x}px`,overflowY:"auto"}),f(x))},padding:50}))}let d=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;d=Math.sqrt(2*f**2)/2,a.push(Xg({element:this.arrowElement,padding:12}))}a.push(Wg(typeof this.offset=="number"?this.offset+d:this.offset)),this.floatingUICleanupFunction=Kg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let v=this.adjustPlacementForRtl(this.placement),{x,y:R,middlewareData:H,placement:J}=await Qg(f,this,{placement:v,middleware:a,strategy:this.strategy});this.utils.updatePopoverStyle(x,R),H.arrow&&this.arrowElement&&this.utils.updateArrowStyle(H.arrow,J),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(J)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new zd(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),Gi.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(),Gi.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:Et.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(rs).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo&&this.isConnected?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var a,d;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,v,x;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(x=this.setInitialFocus)==null||x.call(this,(v=this.elementIndexToReceiveFocus)!=null?v:0))},0),Gi.onShowPopover(this)):(this.depthManager.popHost(),(a=this.floatingUICleanupFunction)==null||a.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(),(d=this.deactivateFocusTrap)==null||d.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Gi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Bi.OPEN,t,this.openDelay):(this.timers.clearTimeout(Bi.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
|
|
2772
2772
|
<div part="popover-hover-bridge"></div>
|
|
2773
2773
|
${this.closeButton?S` <mdc-button
|
|
2774
2774
|
part="popover-close"
|
|
@@ -2782,7 +2782,7 @@
|
|
|
2782
2782
|
<div part="popover-content">
|
|
2783
2783
|
<slot></slot>
|
|
2784
2784
|
</div>
|
|
2785
|
-
`}};wt.styles=[...Q.styles,...Jg],h([u({type:String,reflect:!0})],wt.prototype,"id",2),h([u({type:String,reflect:!0})],wt.prototype,"triggerID",2),h([u({type:String,reflect:!0})],wt.prototype,"trigger",2),h([u({type:String,reflect:!0})],wt.prototype,"placement",2),h([u({type:String,reflect:!0})],wt.prototype,"color",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],wt.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],wt.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],wt.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],wt.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],wt.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],wt.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],wt.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],wt.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"interactive",2),h([u({type:String,reflect:!0})],wt.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],wt.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],wt.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],wt.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],wt.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],wt.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],wt.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],wt.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],wt.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],wt.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],wt.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],wt.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],wt.prototype,"strategy",2),h([u({type:String,reflect:!0})],wt.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],wt.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],wt.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],wt.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],wt.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],wt.prototype,"animationFrame",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"inline",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],wt.prototype,"elementIndexToReceiveFocus",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],wt.prototype,"stackGroupName",2);var lr=wt;var tb=V.constructTagName("toggletip"),ds={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Mt.TOP,CLICK:_e.CLICK,SHOW_ARROW:!0};var
|
|
2785
|
+
`}};wt.styles=[...Q.styles,...Jg],h([u({type:String,reflect:!0})],wt.prototype,"id",2),h([u({type:String,reflect:!0})],wt.prototype,"triggerID",2),h([u({type:String,reflect:!0})],wt.prototype,"trigger",2),h([u({type:String,reflect:!0})],wt.prototype,"placement",2),h([u({type:String,reflect:!0})],wt.prototype,"color",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],wt.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],wt.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],wt.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],wt.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],wt.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],wt.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],wt.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],wt.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"interactive",2),h([u({type:String,reflect:!0})],wt.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],wt.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],wt.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],wt.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],wt.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],wt.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],wt.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],wt.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],wt.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],wt.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],wt.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],wt.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],wt.prototype,"strategy",2),h([u({type:String,reflect:!0})],wt.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],wt.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],wt.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],wt.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],wt.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],wt.prototype,"animationFrame",2),h([u({type:Boolean,reflect:!0})],wt.prototype,"inline",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],wt.prototype,"elementIndexToReceiveFocus",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],wt.prototype,"stackGroupName",2);var lr=wt;var tb=V.constructTagName("toggletip"),ds={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Mt.TOP,CLICK:_e.CLICK,SHOW_ARROW:!0};var wS=z`
|
|
2786
2786
|
:host {
|
|
2787
2787
|
--mdc-toggletip-max-width: 400px;
|
|
2788
2788
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -2812,7 +2812,7 @@
|
|
|
2812
2812
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
|
2813
2813
|
margin-left: 2rem;
|
|
2814
2814
|
}
|
|
2815
|
-
`,eb=[
|
|
2815
|
+
`,eb=[wS];var xo=class extends lr{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=ds.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:ds.CLOSE_BUTTON,this.closeButtonAriaLabel=ds.CLOSE_BUTTON_ARIA_LABEL,this.trigger=ds.CLICK,this.showArrow=ds.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0}getToggleTipText(){var t,e;return((e=(t=this.defaultSlotNodes)==null?void 0:t.map(i=>i.textContent).join(" "))==null?void 0:e.trim())||""}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=ds.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return S`
|
|
2816
2816
|
${super.render()}
|
|
2817
2817
|
<mdc-screenreaderannouncer
|
|
2818
2818
|
identity="${tt(this.screenreaderAnnouncerIdentity)}"
|
|
@@ -2820,12 +2820,12 @@
|
|
|
2820
2820
|
delay="300"
|
|
2821
2821
|
>
|
|
2822
2822
|
</mdc-screenreaderannouncer>
|
|
2823
|
-
`}};xo.styles=[...lr.styles,...eb],h([_f()],xo.prototype,"defaultSlotNodes",2),h([dt()],xo.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],xo.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],xo.prototype,"placement",2);var gp=xo;function Bd(n,o=500){let t,e=(...i)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,n(...i)},o)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var rb=V.constructTagName("screenreaderannouncer"),
|
|
2823
|
+
`}};xo.styles=[...lr.styles,...eb],h([_f()],xo.prototype,"defaultSlotNodes",2),h([dt()],xo.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],xo.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],xo.prototype,"placement",2);var gp=xo;function Bd(n,o=500){let t,e=(...i)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,n(...i)},o)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var rb=V.constructTagName("screenreaderannouncer"),kS={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},cs={ARIA_LIVE:kS.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var NS=[z`
|
|
2824
2824
|
:host {
|
|
2825
2825
|
display: none;
|
|
2826
2826
|
visibility: hidden;
|
|
2827
2827
|
}
|
|
2828
|
-
`],ib=
|
|
2828
|
+
`],ib=NS;var Ln=new Map,pi=class extends Q{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=cs.ARIA_LIVE;this.delay=cs.DELAY;this.timeout=cs.TIMEOUT;this.debounceTime=cs.DEBOUNCE;this.hasIdentityRef=!1;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:i,ariaLive:a}){var d;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${ze()}`,v=document.createElement("div");v.setAttribute("id",f),v.setAttribute("aria-live",a!=null?a:this.dataAriaLive),(d=this.getElementByIdAcrossShadowRoot(this.identity))==null||d.appendChild(v);let x=window.setTimeout(()=>{let R=document.createElement("p");R.textContent=t,v.appendChild(R),this.ariaLiveAnnouncementIds.push(f);let H=window.setTimeout(()=>{v.remove()},i!=null?i:this.timeout);this.timeOutIds.push(H)},e!=null?e:this.delay);this.timeOutIds.push(x)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var a;let e=document.getElementById(t);if(e)return e;let i=this.findModalAncestor();return((a=i==null?void 0:i.shadowRoot)==null?void 0:a.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=`
|
|
2829
2829
|
.mdc-screenreaderannouncer__visually-hidden {
|
|
2830
2830
|
clip: rect(0 0 0 0);
|
|
2831
2831
|
clip-path: inset(50%);
|
|
@@ -2835,7 +2835,7 @@
|
|
|
2835
2835
|
white-space: nowrap;
|
|
2836
2836
|
width: 1px;
|
|
2837
2837
|
}
|
|
2838
|
-
`,t.appendChild(e),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let i=this.findModalAncestor();i!=null&&i.shadowRoot?i.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let e=t.closest('[aria-modal="true"]');if(e)return e;let i=t.getRootNode();if(i instanceof ShadowRoot&&i.host)t=i.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=Bd(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}acquireIdentityRef(){var t;this.hasIdentityRef||(Ln.set(this.identity,((t=Ln.get(this.identity))!=null?t:0)+1),this.hasIdentityRef=!0)}releaseIdentityRef(){var e;if(!this.hasIdentityRef)return;let t=((e=Ln.get(this.identity))!=null?e:1)-1;if(t<=0){Ln.delete(this.identity);let i=this.getElementByIdAcrossShadowRoot(this.identity);i!=null&&i.classList.contains("mdc-screenreaderannouncer__visually-hidden")&&i.remove()}else Ln.set(this.identity,t);this.hasIdentityRef=!1}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=cs.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.acquireIdentityRef(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel(),this.releaseIdentityRef()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=cs.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};pi.styles=[...Q.styles,...ib],h([u({type:String,reflect:!0})],pi.prototype,"announcement",2),h([u({type:String,reflect:!0})],pi.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],pi.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],pi.prototype,"delay",2),h([u({type:Number,reflect:!0})],pi.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],pi.prototype,"debounceTime",2);var bp=pi;bp.register(rb);var
|
|
2838
|
+
`,t.appendChild(e),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let i=this.findModalAncestor();i!=null&&i.shadowRoot?i.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let e=t.closest('[aria-modal="true"]');if(e)return e;let i=t.getRootNode();if(i instanceof ShadowRoot&&i.host)t=i.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=Bd(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}acquireIdentityRef(){var t;this.hasIdentityRef||(Ln.set(this.identity,((t=Ln.get(this.identity))!=null?t:0)+1),this.hasIdentityRef=!0)}releaseIdentityRef(){var e;if(!this.hasIdentityRef)return;let t=((e=Ln.get(this.identity))!=null?e:1)-1;if(t<=0){Ln.delete(this.identity);let i=this.getElementByIdAcrossShadowRoot(this.identity);i!=null&&i.classList.contains("mdc-screenreaderannouncer__visually-hidden")&&i.remove()}else Ln.set(this.identity,t);this.hasIdentityRef=!1}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=cs.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.acquireIdentityRef(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel(),this.releaseIdentityRef()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=cs.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};pi.styles=[...Q.styles,...ib],h([u({type:String,reflect:!0})],pi.prototype,"announcement",2),h([u({type:String,reflect:!0})],pi.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],pi.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],pi.prototype,"delay",2),h([u({type:Number,reflect:!0})],pi.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],pi.prototype,"debounceTime",2);var bp=pi;bp.register(rb);var LS=bp;gp.register(tb);var MS=gp;var ue=n=>{class o extends n{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,h([u({reflect:!0,type:String})],o.prototype,"name",2),h([u({reflect:!0,type:String})],o.prototype,"value",2),h([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),h([Ht("input")],o.prototype,"inputElement",2),o};var OS=z`
|
|
2839
2839
|
:host {
|
|
2840
2840
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
|
|
2841
2841
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
|
|
@@ -2929,7 +2929,7 @@
|
|
|
2929
2929
|
pointer-events: none;
|
|
2930
2930
|
cursor: default;
|
|
2931
2931
|
}
|
|
2932
|
-
`,ob=[Tt,
|
|
2932
|
+
`,ob=[Tt,OS];var sb=n=>Sd[n]||"";var dr=class extends Zt(Q){constructor(){super(...arguments);this.inputId=`mdc-el-${ze()}`;this.required=!1;this.helpTextType=Kt.VALIDATION;this.toggletipPlacement=Kt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Kt.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?S`<label for="${this.inputId}" id="${Kt.HEADING_ID}" part="label">${this.label}</label>`:S` <mdc-text
|
|
2933
2933
|
id="${Kt.HEADING_ID}"
|
|
2934
2934
|
tagname="${In.TAGNAME}"
|
|
2935
2935
|
type="${In.HEADER_TYPE}"
|
|
@@ -2952,7 +2952,7 @@
|
|
|
2952
2952
|
part="info-icon-btn"
|
|
2953
2953
|
prefix-icon="${Kt.INFO_ICON}"
|
|
2954
2954
|
size="${Kt.ICON_SIZE}"
|
|
2955
|
-
variant="${
|
|
2955
|
+
variant="${Ut.TERTIARY}"
|
|
2956
2956
|
aria-label="${tt(this.infoIconAriaLabel)}"
|
|
2957
2957
|
?disabled="${e}"
|
|
2958
2958
|
?soft-disabled="${this.softDisabled}"
|
|
@@ -2975,7 +2975,7 @@
|
|
|
2975
2975
|
>
|
|
2976
2976
|
<slot name="help-icon" slot="icon">${this.renderHelpTextIcon()}</slot>
|
|
2977
2977
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
|
2978
|
-
</mdc-statusmessage>`:U}};dr.styles=[...Q.styles,...ob],h([u({reflect:!0,type:String})],dr.prototype,"label",2),h([u({type:Boolean,reflect:!0,attribute:"required"})],dr.prototype,"required",2),h([u({reflect:!0,attribute:"help-text-type"})],dr.prototype,"helpTextType",2),h([u({type:String,reflect:!0,attribute:"help-text"})],dr.prototype,"helpText",2),h([u({type:String,reflect:!0,attribute:"toggletip-text"})],dr.prototype,"toggletipText",2),h([u({type:String,reflect:!0,attribute:"toggletip-placement"})],dr.prototype,"toggletipPlacement",2),h([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],dr.prototype,"toggletipStrategy",2),h([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],dr.prototype,"infoIconAriaLabel",2),h([u({type:Boolean,reflect:!0})],dr.prototype,"readonly",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],dr.prototype,"softDisabled",2);var
|
|
2978
|
+
</mdc-statusmessage>`:U}};dr.styles=[...Q.styles,...ob],h([u({reflect:!0,type:String})],dr.prototype,"label",2),h([u({type:Boolean,reflect:!0,attribute:"required"})],dr.prototype,"required",2),h([u({reflect:!0,attribute:"help-text-type"})],dr.prototype,"helpTextType",2),h([u({type:String,reflect:!0,attribute:"help-text"})],dr.prototype,"helpText",2),h([u({type:String,reflect:!0,attribute:"toggletip-text"})],dr.prototype,"toggletipText",2),h([u({type:String,reflect:!0,attribute:"toggletip-placement"})],dr.prototype,"toggletipPlacement",2),h([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],dr.prototype,"toggletipStrategy",2),h([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],dr.prototype,"infoIconAriaLabel",2),h([u({type:Boolean,reflect:!0})],dr.prototype,"readonly",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],dr.prototype,"softDisabled",2);var ee=dr;var Qt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Hd=n=>{class o extends n{dispatchModifiedEvent(e){this.dispatchEvent(new CustomEvent(Qt.MODIFIED,{detail:{change:e,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var RS=[z`
|
|
2979
2979
|
:host {
|
|
2980
2980
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
2981
2981
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -3061,7 +3061,7 @@
|
|
|
3061
3061
|
:host([soft-disabled]) {
|
|
3062
3062
|
pointer-events: none;
|
|
3063
3063
|
}
|
|
3064
|
-
`,...xt(!0)],ab=
|
|
3064
|
+
`,...xt(!0)],ab=RS;var mi=class extends Ot(Nt(Ve(ue(oe(Hd(ee)))))){constructor(){super(...arguments);this.tabIndex=0;this.checked=!1;this.indeterminate=!1;this.hasLeadingVisual=!1;this.helpTextType=mg.DEFAULT;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:U}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){return!this.disabled&&!this.softDisabled&&!this.readonly?(this.checked=!this.checked,this.indeterminate=!1,!0):!1}click(){super.click(),this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===re.DEFAULT&&((this.readonly||this.softDisabled)&&e===K.SPACE&&t.preventDefault(),e===K.ENTER&&((i=this.form)==null||i.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===re.SPATIAL&&!(this.readonly||this.softDisabled)&&e===K.ENTER&&(this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleLeadingVisualClick(){this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleLeadingVisualSlotChange(t){let e=t.currentTarget;this.hasLeadingVisual=e.assignedElements({flatten:!0}).length>0}update(t){super.update(t),t.has("checked")&&(this.setFormValue(),this.checked?this.internals.states.add("checked"):this.internals.states.delete("checked")),(t.has("checked")||t.has("disabled")||t.has("indeterminate")||t.has("readonly")||t.has("softDisabled"))&&this.dispatchModifiedEvent("state")}render(){var t;return S`
|
|
3065
3065
|
<mdc-staticcheckbox
|
|
3066
3066
|
part="static-checkbox"
|
|
3067
3067
|
class="mdc-focus-ring"
|
|
@@ -3098,7 +3098,7 @@
|
|
|
3098
3098
|
@slotchange=${this.handleLeadingVisualSlotChange}
|
|
3099
3099
|
></slot>
|
|
3100
3100
|
${this.renderLabelAndHelperText()}
|
|
3101
|
-
`}};mi.styles=[...
|
|
3101
|
+
`}};mi.styles=[...ee.styles,...ab],mi.shadowRootOptions={...ee.shadowRootOptions,delegatesFocus:!0},h([u({converter:{fromAttribute:t=>t===null?0:Number(t)}})],mi.prototype,"tabIndex",2),h([u({type:Boolean,reflect:!0})],mi.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],mi.prototype,"indeterminate",2),h([dt()],mi.prototype,"hasLeadingVisual",2),h([u({type:String,reflect:!0,attribute:"help-text-type"})],mi.prototype,"helpTextType",2);var yp=mi;yp.register(is);var DS=yp;var nb=V.constructTagName("staticchip"),Ep={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Ud={COLOR:Ep.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN};var PS=z`
|
|
3102
3102
|
:host {
|
|
3103
3103
|
height: 1.5rem;
|
|
3104
3104
|
gap: 0.25rem;
|
|
@@ -3180,7 +3180,7 @@
|
|
|
3180
3180
|
--mdc-chip-border-color: var(--mds-color-theme-outline-label-violet);
|
|
3181
3181
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-violet-normal);
|
|
3182
3182
|
}
|
|
3183
|
-
`,lb=[Tt,
|
|
3183
|
+
`,lb=[Tt,PS];var la=class extends pe(Q){constructor(){super(...arguments);this.color=Ud.COLOR}renderPrefix(){return S`
|
|
3184
3184
|
<slot name="prefix">
|
|
3185
3185
|
${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:U}
|
|
3186
3186
|
</slot>
|
|
@@ -3189,7 +3189,7 @@
|
|
|
3189
3189
|
${this.label?S`<mdc-text part="label" type="${Ud.TEXT_TYPE}" tagname="${Ud.TAG_NAME}"
|
|
3190
3190
|
>${this.label}</mdc-text
|
|
3191
3191
|
>`:U}
|
|
3192
|
-
`}};la.styles=[...Q.styles,...lb],h([u({type:String,reflect:!0})],la.prototype,"color",2),h([u({type:String})],la.prototype,"label",2);var Mn=la;var Gd=V.constructTagName("chip"),da={COLOR:Ep.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:jo[24],ROLE:et.BUTTON};var
|
|
3192
|
+
`}};la.styles=[...Q.styles,...lb],h([u({type:String,reflect:!0})],la.prototype,"color",2),h([u({type:String})],la.prototype,"label",2);var Mn=la;var Gd=V.constructTagName("chip"),da={COLOR:Ep.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:jo[24],ROLE:et.BUTTON};var FS=z`
|
|
3193
3193
|
:host {
|
|
3194
3194
|
cursor: pointer;
|
|
3195
3195
|
height: 1.5rem;
|
|
@@ -3283,12 +3283,12 @@
|
|
|
3283
3283
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
|
3284
3284
|
cursor: auto;
|
|
3285
3285
|
}
|
|
3286
|
-
`,db=[Tt,
|
|
3286
|
+
`,db=[Tt,FS,...xt()];var ca=class extends pe(ge){constructor(){super(...arguments);this.color=da.COLOR}connectedCallback(){super.connectedCallback(),this.role=da.ROLE,this.size=da.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?S` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:U}render(){return S`
|
|
3287
3287
|
${this.renderIcon()}
|
|
3288
3288
|
${this.label?S`<mdc-text part="label" type="${da.TEXT_TYPE}" tagname="${da.TAG_NAME}"
|
|
3289
3289
|
>${this.label}</mdc-text
|
|
3290
3290
|
>`:U}
|
|
3291
|
-
`}};ca.styles=[...Mn.styles,...db],h([u({type:String,reflect:!0})],ca.prototype,"color",2),h([u({type:String})],ca.prototype,"label",2);var ha=ca;ha.register(Gd);var $
|
|
3291
|
+
`}};ca.styles=[...Mn.styles,...db],h([u({type:String,reflect:!0})],ca.prototype,"color",2),h([u({type:String})],ca.prototype,"label",2);var ha=ca;ha.register(Gd);var $S=ha;var cb=V.constructTagName("coachmark"),hs={COLOR:rs.CONTRAST,TRIGGER:_e.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var ps=class extends lr{constructor(){super(...arguments);this.trigger=hs.TRIGGER;this.showArrow=hs.ARROW;this.closeButton=hs.CLOSE_BUTTON;this.disableAriaExpanded=hs.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=hs.COLOR,this.showArrow=hs.ARROW}};h([u({type:String,reflect:!0})],ps.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],ps.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],ps.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],ps.prototype,"disableAriaExpanded",2);var Tp=ps;Tp.register(cb);var VS=Tp;var Kd=V.constructTagName("controltypeprovider"),Wd={CONTROL_TYPE:"uncontrolled"},Yd=["controlled","uncontrolled"];var zS=Kd,xp=zS;var jd=class extends Se{constructor(){super({context:xp});this.innerControlType=Wd.CONTROL_TYPE}static get Context(){return xp}set controlType(t){Yd.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};h([u({type:String,attribute:"control-type",reflect:!0})],jd.prototype,"controlType",1);var Ap=jd;Ap.register(Kd);var Sp=Ap;var qr=Fi(class extends li{constructor(n){var o;if(super(n),n.type!==yr.ATTRIBUTE||n.name!=="class"||((o=n.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(o=>n[o]).join(" ")+" "}update(n,[o]){var e,i;if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in o)o[a]&&!((e=this.nt)!=null&&e.has(a))&&this.st.add(a);return this.render(o)}let t=n.element.classList;for(let a of this.st)a in o||(t.remove(a),this.st.delete(a));for(let a in o){let d=!!o[a];d===this.st.has(a)||(i=this.nt)!=null&&i.has(a)||(d?(t.add(a),this.st.add(a)):(t.remove(a),this.st.delete(a)))}return $e}});function Tr(n){let o=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),e=String(n.getDate()).padStart(2,"0");return`${o}-${t}-${e}`}function $t(n){if(!n||!/^\d{4}-\d{2}-\d{2}$/.test(n))return null;let o=n.split("-"),t=parseInt(o[0],10),e=parseInt(o[1],10),i=parseInt(o[2],10),a=new Date(t,e-1,i);return a.getFullYear()!==t||a.getMonth()!==e-1||a.getDate()!==i?null:a}function ui(n,o,t=1){return new Date(n,o-1,t)}function ms(){let n=new Date;return new Date(n.getFullYear(),n.getMonth(),n.getDate())}function xr(n,o){let t=new Date(n);return t.setDate(t.getDate()+o),t}function Xd(n,o){let t=n.getMonth()+o,e=new Date(n.getFullYear(),t,1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),i)),e}function Ip(n,o){let t=n.getFullYear()+o,e=new Date(t,n.getMonth(),1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),i)),e}function Zd(n,o){return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()&&n.getDate()===o.getDate()}function fi(n,o){return n.getTime()<o.getTime()}function Ao(n,o){return n.getTime()>o.getTime()}function Qd(n,o){return n.getTime()<=o.getTime()}function hb(n){return new Date(n.getFullYear(),n.getMonth(),1)}function Cp(n){return new Date(n.getFullYear(),n.getMonth()+1,0)}function Jd(n,o){return new Date(n,o,0).getDate()}function pb(n){let o=n.getDay();return o===0?7:o}function On(n,o=1){let t=n.getDay(),a=((t===0?7:t)-(o===7?7:o)+7)%7;return xr(n,-a)}function mb(n,o="narrow"){let t=new Intl.DateTimeFormat(n,{weekday:o}),e=new Date(2026,0,5),i=[];for(let a=0;a<7;a+=1)i.push(t.format(xr(e,a)));return i}function us(n){var i,a;try{let d=new Intl.Locale(n),f=(a=d.weekInfo)!=null?a:(i=d.getWeekInfo)==null?void 0:i.call(d);if(f!=null&&f.firstDay)return f.firstDay}catch{}let o=["en","ja","ko","zh","pt-BR"],t=n.split("-")[0].toLowerCase(),e=n.toLowerCase();return o.includes(t)||o.includes(e)?7:1}function ub(n,o,t){let e=ui(n,o,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function fb(n,o){let t=$t(n);return t?new Intl.DateTimeFormat(o,{dateStyle:"full"}).format(t):""}function qd(n,o){let t=$t(n);return t?new Intl.DateTimeFormat(o,{dateStyle:"medium"}).format(t):""}function vb(n,o,t){let e=$t(n),i=$t(o);if(!e||!i)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,i)}catch{return`${qd(n,t)} \u2013 ${qd(o,t)}`}}function tc(n){let t=new Intl.DateTimeFormat(n,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],i="/";for(let a of t)a.type==="month"&&!e.includes("month")&&e.push("month"),a.type==="day"&&!e.includes("day")&&e.push("day"),a.type==="year"&&!e.includes("year")&&e.push("year"),a.type==="literal"&&a.value.trim()&&(i=a.value.trim());return e.length!==3?{order:["month","day","year"],separator:i}:{order:e,separator:i}}var gb=V.constructTagName("calendar"),jt={SINGLE:"single",WEEK:"week",RANGE:"range"},_p={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},bb=6,wp=7,kp={SELECTION_MODE:jt.SINGLE,LOCALE:"en-US"};var BS=z`
|
|
3292
3292
|
:host {
|
|
3293
3293
|
--mdc-calendar-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
3294
3294
|
--mdc-calendar-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -3301,6 +3301,8 @@
|
|
|
3301
3301
|
--mdc-calendar-day-outside-month-text-color: var(--mds-color-theme-text-secondary-normal);
|
|
3302
3302
|
--mdc-calendar-day-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
3303
3303
|
--mdc-calendar-range-bg: var(--mds-color-theme-background-accent-active);
|
|
3304
|
+
--mdc-calendar-range-preview-bg: var(--mds-color-theme-background-accent-normal);
|
|
3305
|
+
--mdc-calendar-range-preview-text-color: var(--mds-color-theme-common-text-primary-normal);
|
|
3304
3306
|
|
|
3305
3307
|
display: flex;
|
|
3306
3308
|
flex-direction: column;
|
|
@@ -3386,6 +3388,10 @@
|
|
|
3386
3388
|
z-index: 1;
|
|
3387
3389
|
}
|
|
3388
3390
|
|
|
3391
|
+
.calendar-day-wrapper.range-preview::before {
|
|
3392
|
+
background: var(--mdc-calendar-range-preview-bg);
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3389
3395
|
.calendar-day-wrapper.range-start::before,
|
|
3390
3396
|
.calendar-day-wrapper.in-range:first-child::before {
|
|
3391
3397
|
inset-inline-start: calc(50% - 0.875rem);
|
|
@@ -3467,6 +3473,10 @@
|
|
|
3467
3473
|
font-weight: var(--mds-font-apps-body-small-bold-font-weight);
|
|
3468
3474
|
}
|
|
3469
3475
|
|
|
3476
|
+
.calendar-day-wrapper.range-preview .calendar-day {
|
|
3477
|
+
color: var(--mdc-calendar-range-preview-text-color);
|
|
3478
|
+
}
|
|
3479
|
+
|
|
3470
3480
|
.calendar-day.disabled {
|
|
3471
3481
|
color: var(--mdc-calendar-day-disabled-text-color);
|
|
3472
3482
|
cursor: not-allowed;
|
|
@@ -3482,12 +3492,12 @@
|
|
|
3482
3492
|
.calendar-today-button mdc-button {
|
|
3483
3493
|
width: auto;
|
|
3484
3494
|
}
|
|
3485
|
-
`,yb=[Vr,
|
|
3495
|
+
`,yb=[Vr,BS];function Eb(n){let o=mb(n,"narrow"),t=us(n),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function Tb(n,o,t,e,i,a,d,f){let v=ui(n,o,1),x=ms(),R=us(t),H=pb(v),J;R===7?J=H===7?0:H:(J=H-R,J<0&&(J+=7));let W=xr(v,-J),Z=d?$t(d):void 0,ot=f?$t(f):void 0,st=i?$t(i):void 0,ht=a?$t(a):void 0,bt=new Set(e),yt=[];for(let It=0;It<bb;It+=1){let Rt=[];for(let Gt=0;Gt<wp;Gt+=1){let Pt=xr(W,It*wp+Gt),ne=Tr(Pt),Ge=Pt.getMonth()+1===o&&Pt.getFullYear()===n,qt=Zd(Pt,x),Ee=bt.has(ne),Te=!1;Z&&fi(Pt,Z)&&(Te=!0),ot&&Ao(Pt,ot)&&(Te=!0);let xe=!1,kt=!1,se=!1;st&&ht&&(kt=Zd(Pt,st),se=Zd(Pt,ht),xe=Qd(st,Pt)&&Qd(Pt,ht)),Rt.push({date:ne,day:Pt.getDate(),isCurrentMonth:Ge,isToday:qt,isSelected:Ee,isInRange:xe,isRangeStart:kt,isRangeEnd:se,isDisabled:Te})}yt.push({days:Rt})}return yt}function ec(n,o){let t=$t(n);if(!t)return{start:"",end:""};let e=On(t,us(o)),i=xr(e,6);return{start:Tr(e),end:Tr(i)}}function Np(n,o,t){return ub(n,o,t)}function xb(n,o){let t=$t(n),e=$t(o);if(!t||!e)return[];let i=[],a=t;for(;Qd(a,e);)i.push(Tr(a)),a=xr(a,1);return i}function Ab(n,o){return qd(n,o)}function Rn(n,o,t){return vb(n,o,t)}var ce=class extends Ot(Nt(Q)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=kp.SELECTION_MODE;this.locale=kp.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.localeRangeStartSelectedLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start";this.hoveredDate=""}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start",this.hoveredDate=""),t.has("value")&&this.value){let e=$t(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let d=$t(this.value);if(d){this.displayMonth=d.getMonth()+1,this.displayYear=d.getFullYear(),this.focusedDate=this.value;return}}let t=ms(),e=this.min?$t(this.min):void 0,i=this.max?$t(this.max):void 0,a=t;e&&fi(t,e)?a=e:i&&Ao(t,i)&&(a=i),this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear(),this.focusedDate=Tr(a)}cancelRangeSelection(t,e){this.selectionMode!==jt.RANGE||this.rangeSelectionPhase!=="end"||(this.value=t,this.endValue=e,this.rangeSelectionPhase="start",this.hoveredDate="",this.gridHasFocus=!1,this.initializeDisplay())}get calendarGrid(){let t=this.getSelectedDates(),{start:e,end:i}=this.getDisplayedRange();return Tb(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===jt.WEEK||this.selectionMode===jt.RANGE)&&this.value&&this.endValue?xb(this.value,this.endValue):[this.value]:[]}get previewEndDate(){return this.selectionMode!==jt.RANGE||this.rangeSelectionPhase!=="end"||!this.value?"":this.hoveredDate&&!this.isDateDisabled(this.hoveredDate)?this.hoveredDate:this.gridHasFocus&&this.focusedDate&&!this.isDateDisabled(this.focusedDate)?this.focusedDate:""}get isPreviewingRange(){return!!this.previewEndDate}getDisplayedRange(){if(this.selectionMode!==jt.WEEK&&this.selectionMode!==jt.RANGE)return{};let t=this.previewEndDate;if(this.selectionMode===jt.RANGE&&this.value&&t){let e=$t(this.value),i=$t(t);return e&&i&&fi(i,e)?{start:t,end:this.value}:{start:this.value,end:t}}return{start:this.value||void 0,end:this.endValue||void 0}}canNavigatePrev(){if(!this.min)return!0;let t=ui(this.displayYear,this.displayMonth,1),e=$t(this.min);return e?Ao(t,hb(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=Cp(ui(this.displayYear,this.displayMonth,1)),e=$t(this.max);return e?fi(t,Cp(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=Xd(ui(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=Tr(ui(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)}handleDayPointerEnter(t){if(this.rangeSelectionPhase!=="end"||this.selectionMode!==jt.RANGE||t.isDisabled){this.hoveredDate="";return}this.hoveredDate=t.date}selectDate(t){switch(this.selectionMode){case jt.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case jt.WEEK:{let{start:e,end:i}=ec(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 jt.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t,this.hoveredDate="";else{let e=$t(this.value),i=$t(t);e&&i&&fi(i,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.hoveredDate="",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?$t(this.focusedDate):ms();if(!e)return;let i=this.getActionForKeyEvent(t),a;switch(i){case K.LEFT:t.preventDefault(),a=xr(e,-1);break;case K.RIGHT:t.preventDefault(),a=xr(e,1);break;case K.UP:t.preventDefault(),a=xr(e,-7);break;case K.DOWN:t.preventDefault(),a=xr(e,7);break;case K.HOME:{t.preventDefault();let d=us(this.locale);a=On(e,d);break}case K.END:{t.preventDefault();let d=us(this.locale);a=xr(On(e,d),6);break}case K.ENTER:case K.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===Lt.PAGE_UP){t.preventDefault(),a=t.shiftKey?Ip(e,-1):Xd(e,-1);break}if(t.key===Lt.PAGE_DOWN){t.preventDefault(),a=t.shiftKey?Ip(e,1):Xd(e,1);break}return}if(this.keyDownEventHandled(),a){let d=Tr(a);if(this.isDateDisabled(d))return;this.hoveredDate="",this.focusedDate=d,(a.getMonth()+1!==this.displayMonth||a.getFullYear()!==this.displayYear)&&(this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear()),this.updateComplete.then(()=>{var v;let f=(v=this.shadowRoot)==null?void 0:v.querySelector(`[data-date="${d}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===jt.WEEK&&this.value&&this.endValue?`Calendar, ${Rn(this.value,this.endValue,this.locale)}`:`Calendar, ${Np(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=Np(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return S`
|
|
3486
3496
|
<div class="calendar-header">
|
|
3487
3497
|
<mdc-text type="body-midsize-bold" tagname="span">${t}</mdc-text>
|
|
3488
3498
|
<div class="calendar-header-nav">
|
|
3489
3499
|
<mdc-button
|
|
3490
|
-
variant="${
|
|
3500
|
+
variant="${Ut.TERTIARY}"
|
|
3491
3501
|
prefix-icon="${_p.CHEVRON_LEFT}"
|
|
3492
3502
|
aria-label="${this.localePrevMonthLabel}"
|
|
3493
3503
|
size="24"
|
|
@@ -3495,7 +3505,7 @@
|
|
|
3495
3505
|
@click="${()=>this.navigateMonth(-1)}"
|
|
3496
3506
|
></mdc-button>
|
|
3497
3507
|
<mdc-button
|
|
3498
|
-
variant="${
|
|
3508
|
+
variant="${Ut.TERTIARY}"
|
|
3499
3509
|
prefix-icon="${_p.CHEVRON_RIGHT}"
|
|
3500
3510
|
aria-label="${this.localeNextMonthLabel}"
|
|
3501
3511
|
size="24"
|
|
@@ -3504,14 +3514,14 @@
|
|
|
3504
3514
|
></mdc-button>
|
|
3505
3515
|
</div>
|
|
3506
3516
|
</div>
|
|
3507
|
-
`}renderDay(t){let e=t.date===this.focusedDate,i={"calendar-day":!0,"outside-month":!t.isCurrentMonth,today:t.isToday,selected:t.isSelected&&!t.isInRange,disabled:t.isDisabled,focused:e&&this.gridHasFocus},
|
|
3508
|
-
<div class="${qr(
|
|
3517
|
+
`}renderDay(t){let e=t.date===this.focusedDate,i=this.isPreviewingRange,a={"calendar-day":!0,"outside-month":!t.isCurrentMonth,today:t.isToday,selected:t.isSelected&&!t.isInRange,disabled:t.isDisabled,focused:e&&this.gridHasFocus},d={"calendar-day-wrapper":!0,"in-range":t.isInRange,"range-start":t.isRangeStart,"range-end":t.isRangeEnd,"range-preview":i&&t.isInRange},f=e?0:-1,v=t.isSelected||t.isInRange&&!i;return S`
|
|
3518
|
+
<div class="${qr(d)}" @pointerenter="${()=>this.handleDayPointerEnter(t)}">
|
|
3509
3519
|
<button
|
|
3510
|
-
class="${qr(
|
|
3520
|
+
class="${qr(a)}"
|
|
3511
3521
|
role="gridcell"
|
|
3512
|
-
tabindex="${
|
|
3522
|
+
tabindex="${f}"
|
|
3513
3523
|
data-date="${t.date}"
|
|
3514
|
-
aria-selected="${
|
|
3524
|
+
aria-selected="${v?"true":"false"}"
|
|
3515
3525
|
aria-disabled="${t.isDisabled?"true":U}"
|
|
3516
3526
|
aria-current="${t.isToday?"date":U}"
|
|
3517
3527
|
aria-label="${fb(t.date,this.locale)}"
|
|
@@ -3520,7 +3530,7 @@
|
|
|
3520
3530
|
${t.day}
|
|
3521
3531
|
</button>
|
|
3522
3532
|
</div>
|
|
3523
|
-
`}handleGridFocusIn(){this.gridHasFocus=!0}handleGridFocusOut(){this.gridHasFocus=!1}renderGrid(){let t=this.calendarGrid,e=Eb(this.locale);return S`
|
|
3533
|
+
`}handleGridFocusIn(){this.gridHasFocus=!0}handleGridFocusOut(){this.gridHasFocus=!1}handleGridPointerLeave(){this.hoveredDate=""}renderGrid(){let t=this.calendarGrid,e=Eb(this.locale);return S`
|
|
3524
3534
|
<div
|
|
3525
3535
|
class="calendar-grid"
|
|
3526
3536
|
role="grid"
|
|
@@ -3528,16 +3538,17 @@
|
|
|
3528
3538
|
@keydown="${this.handleGridKeydown}"
|
|
3529
3539
|
@focusin="${this.handleGridFocusIn}"
|
|
3530
3540
|
@focusout="${this.handleGridFocusOut}"
|
|
3541
|
+
@pointerleave="${this.handleGridPointerLeave}"
|
|
3531
3542
|
>
|
|
3532
3543
|
<div class="calendar-row calendar-weekdays" role="row">
|
|
3533
3544
|
${e.map(i=>S`<span class="calendar-weekday" role="columnheader">${i}</span>`)}
|
|
3534
3545
|
</div>
|
|
3535
3546
|
${t.map(i=>S` <div class="calendar-row" role="row">${i.days.map(a=>this.renderDay(a))}</div> `)}
|
|
3536
3547
|
</div>
|
|
3537
|
-
`}isDateDisabled(t){let e
|
|
3548
|
+
`}isDateDisabled(t){let e=$t(t);if(!e)return!0;let i=this.min?$t(this.min):void 0,a=this.max?$t(this.max):void 0;return!!(i&&fi(e,i)||a&&Ao(e,a))}isTodayDisabled(){return this.isDateDisabled(Tr(ms()))}handleTodayClick(){let t=ms(),e=Tr(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return U;let t=this.isTodayDisabled();return S`
|
|
3538
3549
|
<div class="calendar-today-button">
|
|
3539
3550
|
<mdc-button
|
|
3540
|
-
variant="${
|
|
3551
|
+
variant="${Ut.TERTIARY}"
|
|
3541
3552
|
aria-label="${this.localeTodayLabel}"
|
|
3542
3553
|
size="24"
|
|
3543
3554
|
?disabled="${t}"
|
|
@@ -3545,7 +3556,13 @@
|
|
|
3545
3556
|
>${this.localeTodayLabel}</mdc-button
|
|
3546
3557
|
>
|
|
3547
3558
|
</div>
|
|
3548
|
-
`}render(){
|
|
3559
|
+
`}render(){let t=this.rangeSelectionPhase==="end"?this.localeRangeStartSelectedLabel:"";return S`
|
|
3560
|
+
${this.renderHeader()} ${this.renderGrid()} ${this.renderTodayButton()}
|
|
3561
|
+
<mdc-screenreaderannouncer
|
|
3562
|
+
announcement="${t}"
|
|
3563
|
+
data-aria-live="polite"
|
|
3564
|
+
></mdc-screenreaderannouncer>
|
|
3565
|
+
`}};ce.styles=[...Q.styles,...yb],h([u({type:String,reflect:!0})],ce.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"end-value"})],ce.prototype,"endValue",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],ce.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],ce.prototype,"locale",2),h([u({type:String,reflect:!0})],ce.prototype,"min",2),h([u({type:String,reflect:!0})],ce.prototype,"max",2),h([u({type:Boolean,reflect:!0,attribute:"show-today-button"})],ce.prototype,"showTodayButton",2),h([u({type:String,attribute:"locale-today-label"})],ce.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],ce.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],ce.prototype,"localeNextMonthLabel",2),h([u({type:String,attribute:"locale-range-start-selected-label"})],ce.prototype,"localeRangeStartSelectedLabel",2),h([dt()],ce.prototype,"displayMonth",2),h([dt()],ce.prototype,"displayYear",2),h([dt()],ce.prototype,"focusedDate",2),h([dt()],ce.prototype,"gridHasFocus",2),h([dt()],ce.prototype,"rangeSelectionPhase",2),h([dt()],ce.prototype,"hoveredDate",2);var Lp=ce;Lp.register(gb);var HS=Lp;lr.register(cg);$d.register(Vd);var US=lr;var Sb=V.constructTagName("datepicker"),Dn={DEFAULT:"default",INPUT:"input"},Mp="calendar-empty-bold",Pn="datepicker-triggerid",rc={VARIANT:Dn.INPUT,LOCALE:"en-US",DISABLE_FLIP:!1};var GS=z`
|
|
3549
3566
|
:host {
|
|
3550
3567
|
--mdc-datepicker-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
3551
3568
|
--mdc-datepicker-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -3717,7 +3734,7 @@
|
|
|
3717
3734
|
--mdc-datepicker-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
3718
3735
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
3719
3736
|
}
|
|
3720
|
-
`,Ib=[
|
|
3737
|
+
`,Ib=[GS,...xt(!0)];function Fn(n){return tc(n).order}function Cb(n){return tc(n).separator}function _b(n){if(!n)return null;let o=$t(n);return o?{month:String(o.getMonth()+1).padStart(2,"0"),day:String(o.getDate()).padStart(2,"0"),year:String(o.getFullYear()).padStart(4,"0")}:null}function wb(n,o,t){let e=parseInt(n,10),i=parseInt(o,10),a=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(a)||e<1||e>12||i<1||i>31||a<1)return"";let d=Jd(a,e);if(i>d)return"";let f=ui(a,e,i);return Tr(f)}function kb(n,o=!1){let{order:t,separator:e}=tc(n),i={month:"mm",day:"dd",year:"yyyy"},a=t.map(d=>i[d]).join(` ${e} `);return o?`${a} - ${a}`:a}function Nb(n,o,t){switch(n){case"month":return 12;case"day":return o&&t?Jd(t,o):o?Jd(2e3,o):31;case"year":return 9999;default:return 0}}function Lb(n){switch(n){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var Vt=class extends ue(oe(ee)){constructor(){super(...arguments);this.variant=rc.VARIANT;this.value="";this.selectionMode=jt.SINGLE;this.locale=rc.LOCALE;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=rc.DISABLE_FLIP;this.localeMonthLabel="";this.localeDayLabel="";this.localeYearLabel="";this.localeCalendarLabel="";this.localeSpinbuttonDescription="";this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.localeRangeStartSelectedLabel="";this.displayPopover=!1;this.internalMonth="";this.internalDay="";this.internalYear="";this.endValue="";this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover?(this.parseValueToInternal(),this.syncFormValue()):t.has("endValue")&&!this.displayPopover&&this.syncFormValue()}parseValueToInternal(t=this.value){let e=_b(t);e?(this.internalMonth=e.month,this.internalDay=e.day,this.internalYear=e.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return wb(this.internalMonth,this.internalDay,this.internalYear)}getParsedMin(){var t;return this.min&&(t=$t(this.min))!=null?t:void 0}getParsedMax(){var t;return this.max&&(t=$t(this.max))!=null?t:void 0}clampValueToRange(t){var d,f;let e=$t(t);if(!e)return t;let i=this.getParsedMin(),a=this.getParsedMax();return i&&fi(e,i)?(d=this.min)!=null?d:t:a&&Ao(e,a)&&(f=this.max)!=null?f:t}getFieldRange(t){let e=parseInt(this.internalMonth,10)||void 0,i=parseInt(this.internalYear,10)||void 0,a=Lb(t),d=Nb(t,e,i),f=a,v=d,x=this.getParsedMin(),R=this.getParsedMax();return t==="year"?(x&&(f=Math.max(f,x.getFullYear())),R&&(v=Math.min(v,R.getFullYear()))):t==="month"&&i?(x&&i===x.getFullYear()&&(f=Math.max(f,x.getMonth()+1)),R&&i===R.getFullYear()&&(v=Math.min(v,R.getMonth()+1))):t==="day"&&e&&i&&(x&&i===x.getFullYear()&&e===x.getMonth()+1&&(f=Math.max(f,x.getDate())),R&&i===R.getFullYear()&&e===R.getMonth()+1&&(v=Math.min(v,R.getDate()))),f>v?{min:a,max:d,isMinConstrained:!1,isMaxConstrained:!1}:{min:f,max:v,isMinConstrained:f!==a,isMaxConstrained:v!==d}}getNextSpinbuttonValue(t,e,i){return i?t<e.min?e.min:t>=e.max?e.isMaxConstrained?e.max:e.min:t+1:t>e.max?e.max:t<=e.min?e.isMinConstrained?e.min:e.max:t-1}syncFormValue(){let t=this.value||this.internalToValue();if(this.internals)if(this.name&&this.endValue){let e=new FormData;e.append(this.name,t||""),e.append(`${this.name}-end`,this.endValue),this.internals.setFormValue(e)}else this.internals.setFormValue(t||null)}commitValue(){let t=this.internalToValue();if(t){let e=this.clampValueToRange(t);if(e!==t&&this.parseValueToInternal(e),e===this.value)return;this.value=e,this.syncFormValue(),this.notifyValueChange()}}notifyValueChange(){let t={value:this.value,endValue:this.endValue};this.dispatchEvent(new CustomEvent("input",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}flushPendingInput(){this.pendingDigitTimeout&&(clearTimeout(this.pendingDigitTimeout),this.pendingDigitTimeout=void 0),this.pendingDigits="",this.commitValue()}formResetCallback(){this.value="",this.endValue="",this.parseValueToInternal(),this.syncFormValue()}formStateRestoreCallback(t){if(t instanceof FormData){let e=this.name||"";this.value=t.get(e)||"",this.endValue=t.get(`${e}-end`)||""}else typeof t=="string"&&(this.value=t,this.endValue="");this.parseValueToInternal(),this.syncFormValue()}handleCalendarButtonClick(){if(!(this.disabled||this.readonly)){if(this.displayPopover){this.closePopover();return}this.flushPendingInput(),this.displayPopover=!0}}handleSelectTriggerClick(){if(!(this.disabled||this.readonly)){if(this.displayPopover){this.closePopover();return}this.displayPopover=!0}}handleSelectKeydown(t){this.disabled||this.readonly||(t.key===Lt.ENTER||t.key===Lt.SPACE||t.key===Lt.ARROW_DOWN)&&(t.preventDefault(),this.displayPopover=!0)}focusCalendarGrid(){setTimeout(()=>{var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("mdc-calendar");if(t!=null&&t.shadowRoot){let i=t.shadowRoot.querySelector('.calendar-day[tabindex="0"]');i==null||i.focus()}},0)}closePopover(t=!1){var e;this.effectiveSelectionMode===jt.RANGE&&((e=this.calendar)==null||e.cancelRangeSelection(this.value,this.endValue)),this.displayPopover=!1,t&&this.focusBackToTrigger()}handleDateSelected(t){let{detail:e}=t,i=this.effectiveSelectionMode;i===jt.WEEK||i===jt.RANGE?e.startDate&&e.endDate?(this.value=e.startDate,this.endValue=e.endDate):(this.value=e.date,this.endValue=""):(this.value=e.date,this.endValue=""),this.parseValueToInternal(),this.syncFormValue(),this.notifyValueChange();let a=i===jt.RANGE&&this.value&&this.endValue;(i!==jt.RANGE||a)&&this.closePopover(!0)}getSpinbuttonInput(t){switch(t){case"month":return this.monthInput;case"day":return this.dayInput;case"year":return this.yearInput;default:return null}}getFieldValue(t){switch(t){case"month":return this.internalMonth;case"day":return this.internalDay;case"year":return this.internalYear;default:return""}}setFieldValue(t,e){let i=t==="year"?4:2,a=String(e).padStart(i,"0");switch(t){case"month":this.internalMonth=a;break;case"day":this.internalDay=a;break;case"year":this.internalYear=a;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.readonly)return;let i=this.getFieldRange(e),a=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case Lt.ARROW_UP:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!0);this.setFieldValue(e,d),this.commitValue();break}case Lt.ARROW_DOWN:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!1);this.setFieldValue(e,d),this.commitValue();break}case Lt.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case Lt.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case Lt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,i.min,i.max)):t.preventDefault();break}}}handleDigitInput(t,e,i,a){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let d=e==="year"?4:2;if(this.pendingDigits.length>=d){let f=parseInt(this.pendingDigits,10);f>a&&(f=a),f<i&&(f=i),this.setFieldValue(e,f),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else if(e!=="year"){let f=parseInt(this.pendingDigits,10),v=Math.floor(a/10);if(f>v){let x=f;x>a&&(x=a),x<i&&(x=i),this.setFieldValue(e,x),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{let x=f;x<i&&(x=i),this.setFieldValue(e,x),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}else{let f=parseInt(this.pendingDigits,10);this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{this.pendingDigits="",this.commitValue()},1e3)}}advanceToNextField(t){let e=Fn(this.locale),i=e.indexOf(t);if(i<e.length-1){let a=e[i+1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}advanceToPrevField(t){let e=Fn(this.locale),i=e.indexOf(t);if(i>0){let a=e[i-1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let i=Fn(this.locale),a=this.getSpinbuttonInput(i[0]);a==null||a.focus(),a==null||a.select()}}handleBaseKeydown(t){t.key===Lt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===Dn.INPUT){let i=(t=this.shadowRoot)==null?void 0:t.querySelector('[part~="icon-container"]');i==null||i.focus()}else{let i=(e=this.shadowRoot)==null?void 0:e.getElementById(Pn);i==null||i.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===jt.WEEK?jt.WEEK:this.variant===Dn.DEFAULT?jt.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===jt.WEEK){let{start:t,end:e}=ec(this.value,this.locale);return Rn(t,e,this.locale)}return this.effectiveSelectionMode===jt.RANGE&&this.endValue?Rn(this.value,this.endValue,this.locale):Ab(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),i=this.getFieldRange(t),a={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},d={month:"mm",day:"dd",year:"yyyy"};return S`
|
|
3721
3738
|
<input
|
|
3722
3739
|
id="${t}-spinbutton"
|
|
3723
3740
|
part="spinbutton spinbutton-${t}"
|
|
@@ -3763,7 +3780,7 @@
|
|
|
3763
3780
|
@click="${this.handleCalendarButtonClick}"
|
|
3764
3781
|
></mdc-button>
|
|
3765
3782
|
</div>
|
|
3766
|
-
`}renderDefaultVariant(){let t=this.getDisplayText(),e=this.effectiveSelectionMode,i=kb(this.locale,e===
|
|
3783
|
+
`}renderDefaultVariant(){let t=this.getDisplayText(),e=this.effectiveSelectionMode,i=kb(this.locale,e===jt.RANGE||e===jt.WEEK);return S`
|
|
3767
3784
|
<div
|
|
3768
3785
|
id="${Pn}"
|
|
3769
3786
|
part="base-container"
|
|
@@ -3796,8 +3813,8 @@
|
|
|
3796
3813
|
placement="${this.placement}"
|
|
3797
3814
|
strategy="${tt(this.strategy)}"
|
|
3798
3815
|
@shown="${()=>this.focusCalendarGrid()}"
|
|
3799
|
-
@closebyescape="${e=>{e.target===e.currentTarget&&
|
|
3800
|
-
@closebyoutsideclick="${()=>{this.
|
|
3816
|
+
@closebyescape="${e=>{e.target===e.currentTarget&&this.closePopover(!0)}}"
|
|
3817
|
+
@closebyoutsideclick="${()=>{this.closePopover(!0)}}"
|
|
3801
3818
|
exportparts="popover-content"
|
|
3802
3819
|
>
|
|
3803
3820
|
<mdc-calendar
|
|
@@ -3810,6 +3827,7 @@
|
|
|
3810
3827
|
locale-today-label="${this.localeTodayLabel}"
|
|
3811
3828
|
locale-prev-month-label="${this.localePrevMonthLabel}"
|
|
3812
3829
|
locale-next-month-label="${this.localeNextMonthLabel}"
|
|
3830
|
+
locale-range-start-selected-label="${this.localeRangeStartSelectedLabel}"
|
|
3813
3831
|
@date-selected="${this.handleDateSelected}"
|
|
3814
3832
|
></mdc-calendar>
|
|
3815
3833
|
</mdc-popover>
|
|
@@ -3832,7 +3850,7 @@
|
|
|
3832
3850
|
${this.renderPopover()}
|
|
3833
3851
|
</div>
|
|
3834
3852
|
${this.helpText?this.renderHelperText():U}
|
|
3835
|
-
`}};
|
|
3853
|
+
`}};Vt.styles=[...ee.styles,...Ib],h([u({type:String,reflect:!0})],Vt.prototype,"variant",2),h([u({type:String,reflect:!0})],Vt.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],Vt.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],Vt.prototype,"locale",2),h([u({type:String,reflect:!0})],Vt.prototype,"min",2),h([u({type:String,reflect:!0})],Vt.prototype,"max",2),h([u({type:String,reflect:!0})],Vt.prototype,"placement",2),h([u({type:String,reflect:!0})],Vt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Vt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Vt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Vt.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],Vt.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],Vt.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],Vt.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],Vt.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Vt.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],Vt.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],Vt.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],Vt.prototype,"localeNextMonthLabel",2),h([u({type:String,attribute:"locale-range-start-selected-label"})],Vt.prototype,"localeRangeStartSelectedLabel",2),h([Ht("#month-spinbutton")],Vt.prototype,"monthInput",2),h([Ht("#day-spinbutton")],Vt.prototype,"dayInput",2),h([Ht("#year-spinbutton")],Vt.prototype,"yearInput",2),h([Ht("mdc-calendar")],Vt.prototype,"calendar",2),h([dt()],Vt.prototype,"displayPopover",2),h([dt()],Vt.prototype,"internalMonth",2),h([dt()],Vt.prototype,"internalDay",2),h([dt()],Vt.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],Vt.prototype,"endValue",2);var Op=Vt;Op.register(Sb);var KS=Op;Zs.register(Tv);var WS=Zs;var $n=V.constructTagName("divider"),fs={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Vn={SOLID:"solid",GRADIENT:"gradient"},Mr={POSITIVE:"positive",NEGATIVE:"negative"},zn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},vs={ORIENTATION:fs.HORIZONTAL,VARIANT:Vn.SOLID,ARROW_DIRECTION:Mr.NEGATIVE,BUTTON_DIRECTION:Mr.NEGATIVE};var YS=[Tt,z`
|
|
3836
3854
|
:host {
|
|
3837
3855
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
3838
3856
|
--mdc-divider-width: 0.0625rem;
|
|
@@ -4033,11 +4051,11 @@
|
|
|
4033
4051
|
:host([data-hidden]) {
|
|
4034
4052
|
display: none;
|
|
4035
4053
|
}
|
|
4036
|
-
`],Mb=
|
|
4054
|
+
`],Mb=YS;var So=class extends Q{constructor(){super(...arguments);this.orientation=vs.ORIENTATION;this.variant=vs.VARIANT;this.arrowDirection=vs.ARROW_DIRECTION;this.buttonPosition=vs.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Vn).includes(t)?t:vs.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(fs).includes(t)?t:vs.ORIENTATION)}ensureValidDirections(){let t=this.orientation===fs.HORIZONTAL?Mr.NEGATIVE:Mr.POSITIVE;Object.values(Mr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Mr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let e=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",e)}}getArrowIcon(){let t=this.orientation===fs.HORIZONTAL,e=this.arrowDirection===Mr.POSITIVE;return t?e?zn.UP:zn.DOWN:e?zn.RIGHT:zn.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var d;let t=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let i=e.some(f=>f.tagName===pn.toUpperCase()),a=e.some(f=>f.tagName===Oi.toUpperCase());i&&!a?this.setAttribute("data-type","mdc-text-divider"):!i&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return S`
|
|
4037
4055
|
<div></div>
|
|
4038
4056
|
<slot @slotchange=${this.inferDividerType}></slot>
|
|
4039
4057
|
<div></div>
|
|
4040
|
-
`}};So.styles=[...Q.styles,...Mb],h([u({type:String,reflect:!0})],So.prototype,"orientation",2),h([u({type:String,reflect:!0})],So.prototype,"variant",2),h([u({type:String,attribute:"arrow-direction",reflect:!0})],So.prototype,"arrowDirection",2),h([u({type:String,attribute:"button-position",reflect:!0})],So.prototype,"buttonPosition",2);var Rp=So;Rp.register($n);var
|
|
4058
|
+
`}};So.styles=[...Q.styles,...Mb],h([u({type:String,reflect:!0})],So.prototype,"orientation",2),h([u({type:String,reflect:!0})],So.prototype,"variant",2),h([u({type:String,attribute:"arrow-direction",reflect:!0})],So.prototype,"arrowDirection",2),h([u({type:String,attribute:"button-position",reflect:!0})],So.prototype,"buttonPosition",2);var Rp=So;Rp.register($n);var jS=Rp;var qS=z`
|
|
4041
4059
|
:host([selected]) {
|
|
4042
4060
|
border: 2px solid;
|
|
4043
4061
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
|
@@ -4059,7 +4077,7 @@
|
|
|
4059
4077
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
|
4060
4078
|
cursor: auto;
|
|
4061
4079
|
}
|
|
4062
|
-
`,Ob=[
|
|
4080
|
+
`,Ob=[qS];var Rb=V.constructTagName("filterchip"),Dp={ICON_NAME:"check-bold",COLOR:"default"};var Bn=class extends ha{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Dp.COLOR}setSelected(t){t?(this.iconName=Dp.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(t){super.update(t),t.has("selected")&&this.setSelected(this.selected)}};Bn.styles=[...ha.styles,...Ob],h([u({type:Boolean,reflect:!0})],Bn.prototype,"selected",2);var Pp=Bn;Pp.register(Rb);var XS=Pp;var ZS=z`
|
|
4063
4081
|
:host {
|
|
4064
4082
|
display: flex;
|
|
4065
4083
|
flex-direction: column;
|
|
@@ -4071,10 +4089,10 @@
|
|
|
4071
4089
|
flex-direction: column;
|
|
4072
4090
|
gap: 0.25rem;
|
|
4073
4091
|
}
|
|
4074
|
-
`,Db=[
|
|
4092
|
+
`,Db=[ZS];var ic=class extends ee{constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){var t;super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0,this.role=this.isRadio?et.RADIOGROUP:et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.hasAttribute("aria-label")||this.setAttribute("aria-label",this.label||"")}update(t){super.update(t),t.has("label")&&!this.ariaLabel&&(this.ariaLabel=this.label||""),t.has("helpText")&&!this.ariaDescription&&(this.ariaDescription=this.helpText||"")}render(){return S`
|
|
4075
4093
|
${this.label||this.helpText?S`<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>`:U}
|
|
4076
4094
|
<slot></slot>
|
|
4077
|
-
`}};ic.styles=[...
|
|
4095
|
+
`}};ic.styles=[...ee.styles,...Db];var pa=ic;var Pb=V.constructTagName("formfieldgroup");pa.register(Pb);var oc=pa;cn.register(Kl);var QS=cn;yn.register(pd);var JS=yn;var gs=Fi(class extends li{constructor(n){if(super(n),n.type!==yr.PROPERTY&&n.type!==yr.ATTRIBUTE&&n.type!==yr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ql(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===$e||o===U)return o;let t=n.element,e=n.name;if(n.type===yr.PROPERTY){if(o===t[e])return $e}else if(n.type===yr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return $e}else if(n.type===yr.ATTRIBUTE&&t.getAttribute(e)===o+"")return $e;return Jl(n),o}});var t0=z`
|
|
4078
4096
|
:host {
|
|
4079
4097
|
--mdc-statusmessage-color: var(--mds-color-theme-text-secondary-normal);
|
|
4080
4098
|
--mdc-statusmessage-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
@@ -4135,18 +4153,18 @@
|
|
|
4135
4153
|
font-weight: inherit;
|
|
4136
4154
|
line-height: inherit;
|
|
4137
4155
|
}
|
|
4138
|
-
`,Fb=[
|
|
4156
|
+
`,Fb=[t0];var ma=class extends Q{constructor(){super(...arguments);this.severity=Sn.SEVERITY}renderIcon(){let t=Sd[this.severity||Sn.SEVERITY];return t?S`<mdc-icon part="icon" name="${t}"></mdc-icon>`:U}renderMessage(){return this.message?S`
|
|
4139
4157
|
<mdc-text part="text" tagname="${Sn.TEXT_TAGNAME}" type="${Sn.TEXT_TYPE}">${this.message}</mdc-text>
|
|
4140
4158
|
`:U}render(){return S`
|
|
4141
4159
|
<div part="container">
|
|
4142
4160
|
<slot name="icon" part="icon">${this.renderIcon()}</slot>
|
|
4143
4161
|
<slot part="text">${this.renderMessage()}</slot>
|
|
4144
4162
|
</div>
|
|
4145
|
-
`}};ma.styles=[...Q.styles,...Fb],h([u({type:String,reflect:!0})],ma.prototype,"severity",2),h([u({type:String,reflect:!0})],ma.prototype,"message",2);var Fp=ma;Fp.register(hg);var
|
|
4163
|
+
`}};ma.styles=[...Q.styles,...Fb],h([u({type:String,reflect:!0})],ma.prototype,"severity",2),h([u({type:String,reflect:!0})],ma.prototype,"message",2);var Fp=ma;Fp.register(hg);var e0=Fp;ee.register(pg);var cr=ee;var sc=n=>{class o extends n{constructor(){super(...arguments);this.characterLimitExceedingFired=!1}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}announceCharacterLimitWarning(){this.characterLimitAriaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.characterLimitAriaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.characterLimitAriaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}renderCharacterCounter(){return this.maxCharacterLimit?S`
|
|
4146
4164
|
<mdc-text part="character-counter" tagname="span" type="body-midsize-regular">
|
|
4147
4165
|
${this.value.length}/${this.maxCharacterLimit}
|
|
4148
4166
|
</mdc-text>
|
|
4149
|
-
`:U}}return h([u({type:Number,attribute:"max-character-limit"})],o.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],o.prototype,"characterLimitAnnouncement",2),h([dt()],o.prototype,"characterLimitAriaLiveAnnouncer",2),o};var $b=V.constructTagName("input"),ac={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ua={OFF:"off",ON:"on"},Io={PASSWORD:"password",TEXT:"text",SEARCH:"search"},Vb={MAX_LENGTH:10,VALIDATION:
|
|
4167
|
+
`:U}}return h([u({type:Number,attribute:"max-character-limit"})],o.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],o.prototype,"characterLimitAnnouncement",2),h([dt()],o.prototype,"characterLimitAriaLiveAnnouncer",2),o};var $b=V.constructTagName("input"),ac={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ua={OFF:"off",ON:"on"},Io={PASSWORD:"password",TEXT:"text",SEARCH:"search"},Vb={MAX_LENGTH:10,VALIDATION:te.ERROR},vi={HEADING_ID:Kt.HEADING_ID,VALIDATION:te.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ut.TERTIARY,CLEAR_BUTTON_SIZE:_r[20],PREFIX_TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:ua.OFF,INPUT_TYPE:Io.TEXT};var r0=[z`
|
|
4150
4168
|
:host {
|
|
4151
4169
|
--mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
|
|
4152
4170
|
--mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -4287,19 +4305,19 @@
|
|
|
4287
4305
|
:host([disabled])::part(character-counter) {
|
|
4288
4306
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
4289
4307
|
}
|
|
4290
|
-
`,...xt(!0)],zb=
|
|
4308
|
+
`,...xt(!0)],zb=r0;var be=class extends sc(Nt(Ve(ue(oe(cr))))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=ac.OFF;this.autocomplete=ua.OFF;this.clearAriaLabel="";this.dataAriaDescribedby=null}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===te.ERROR&&this.helpText&&this.inputElement.setCustomValidity(this.helpText),this.setValidity()}updated(t){super.updated(t),t.has("value")&&this.handleCharacterOverflowStateChange(),t.has("helpText")&&this.announceCharacterLimitWarning()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value),this.announceCharacterLimitWarning()}onInput(t){if(this.updateValue(),this.setInputValidity(),this.checkValidity(),!t.composed){let e=t.constructor;this.dispatchEvent(new e(t.type,t))}}onChange(t){this.updateValue(),this.setInputValidity();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleKeyDown(t){var e;this.getActionForKeyEvent(t)===K.ENTER&&this.getKeyboardNavMode()===re.DEFAULT&&((e=this.form)==null||e.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?S`
|
|
4291
4309
|
<mdc-icon
|
|
4292
4310
|
part="leading-icon"
|
|
4293
4311
|
name=${this.leadingIcon}
|
|
4294
|
-
size="${
|
|
4295
|
-
length-unit="${
|
|
4312
|
+
size="${vi.ICON_SIZE_VALUE}"
|
|
4313
|
+
length-unit="${vi.ICON_SIZE_UNIT}"
|
|
4296
4314
|
>
|
|
4297
4315
|
</mdc-icon>
|
|
4298
4316
|
`:U}renderPrefixText(){return this.prefixText?S`
|
|
4299
4317
|
<mdc-text
|
|
4300
4318
|
part="prefix-text"
|
|
4301
|
-
tagname="${
|
|
4302
|
-
type="${
|
|
4319
|
+
tagname="${vi.PREFIX_TEXT_TAG}"
|
|
4320
|
+
type="${vi.PREFIX_TEXT_TYPE}"
|
|
4303
4321
|
aria-hidden="true"
|
|
4304
4322
|
>
|
|
4305
4323
|
${this.prefixText.slice(0,Vb.MAX_LENGTH)}
|
|
@@ -4308,9 +4326,9 @@
|
|
|
4308
4326
|
<mdc-button
|
|
4309
4327
|
part="trailing-button"
|
|
4310
4328
|
class="own-focus-ring ${e?"":"hidden"}"
|
|
4311
|
-
prefix-icon="${
|
|
4312
|
-
variant="${
|
|
4313
|
-
size="${
|
|
4329
|
+
prefix-icon="${vi.CLEAR_BUTTON_ICON}"
|
|
4330
|
+
variant="${vi.CLEAR_BUTTON_VARIANT}"
|
|
4331
|
+
size="${vi.CLEAR_BUTTON_SIZE}"
|
|
4314
4332
|
aria-label="${this.clearAriaLabel}"
|
|
4315
4333
|
@click=${this.clearInputText}
|
|
4316
4334
|
?disabled=${this.disabled||this.readonly||!e}
|
|
@@ -4325,7 +4343,7 @@
|
|
|
4325
4343
|
?readonly="${this.readonly}"
|
|
4326
4344
|
?required="${this.required}"
|
|
4327
4345
|
type="${t}"
|
|
4328
|
-
aria-labelledby="${tt(this.label?
|
|
4346
|
+
aria-labelledby="${tt(this.label?vi.HEADING_ID:void 0)}"
|
|
4329
4347
|
aria-describedby="${tt(this.helpText?Kt.HELPER_TEXT_ID:(d=this.dataAriaDescribedby)!=null?d:"")}"
|
|
4330
4348
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
|
4331
4349
|
placeholder=${tt(i)}
|
|
@@ -4346,7 +4364,7 @@
|
|
|
4346
4364
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
|
4347
4365
|
<div part="input-section">
|
|
4348
4366
|
<slot name="input-prefix-text">${this.renderPrefixText()}</slot>
|
|
4349
|
-
<slot name="input">${this.renderInputElement(
|
|
4367
|
+
<slot name="input">${this.renderInputElement(vi.INPUT_TYPE)}</slot>
|
|
4350
4368
|
</div>
|
|
4351
4369
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
|
4352
4370
|
</div>
|
|
@@ -4357,7 +4375,7 @@
|
|
|
4357
4375
|
delay="500"
|
|
4358
4376
|
></mdc-screenreaderannouncer>
|
|
4359
4377
|
${this.renderInputFooter()}
|
|
4360
|
-
`}};be.styles=[...cr.styles,...zb],be.shadowRootOptions={...cr.shadowRootOptions,delegatesFocus:!0},h([u({type:String})],be.prototype,"placeholder",2),h([u({type:String,attribute:"prefix-text"})],be.prototype,"prefixText",2),h([u({type:String,attribute:"leading-icon"})],be.prototype,"leadingIcon",2),h([u({type:Boolean,attribute:"trailing-button"})],be.prototype,"trailingButton",2),h([u({type:Number})],be.prototype,"maxlength",2),h([u({type:Number})],be.prototype,"minlength",2),h([u({type:String})],be.prototype,"autocapitalize",2),h([u({type:String})],be.prototype,"autocomplete",2),h([u({type:String})],be.prototype,"dirname",2),h([u({type:String})],be.prototype,"pattern",2),h([u({type:String})],be.prototype,"list",2),h([u({type:Number})],be.prototype,"size",2),h([u({type:String,attribute:"clear-aria-label"})],be.prototype,"clearAriaLabel",2),h([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],be.prototype,"dataAriaDescribedby",2);var Xr=be;Xr.register($b);var
|
|
4378
|
+
`}};be.styles=[...cr.styles,...zb],be.shadowRootOptions={...cr.shadowRootOptions,delegatesFocus:!0},h([u({type:String})],be.prototype,"placeholder",2),h([u({type:String,attribute:"prefix-text"})],be.prototype,"prefixText",2),h([u({type:String,attribute:"leading-icon"})],be.prototype,"leadingIcon",2),h([u({type:Boolean,attribute:"trailing-button"})],be.prototype,"trailingButton",2),h([u({type:Number})],be.prototype,"maxlength",2),h([u({type:Number})],be.prototype,"minlength",2),h([u({type:String})],be.prototype,"autocapitalize",2),h([u({type:String})],be.prototype,"autocomplete",2),h([u({type:String})],be.prototype,"dirname",2),h([u({type:String})],be.prototype,"pattern",2),h([u({type:String})],be.prototype,"list",2),h([u({type:Number})],be.prototype,"size",2),h([u({type:String,attribute:"clear-aria-label"})],be.prototype,"clearAriaLabel",2),h([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],be.prototype,"dataAriaDescribedby",2);var Xr=be;Xr.register($b);var i0=Xr;var o0=z`
|
|
4361
4379
|
:host {
|
|
4362
4380
|
height: 1.5rem;
|
|
4363
4381
|
gap: 0.25rem;
|
|
@@ -4393,7 +4411,7 @@
|
|
|
4393
4411
|
width: 1.25rem;
|
|
4394
4412
|
height: 1.25rem;
|
|
4395
4413
|
}
|
|
4396
|
-
`,Bb=[Tt,
|
|
4414
|
+
`,Bb=[Tt,o0];var fa=V.constructTagName("inputchip"),nc={TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var bs=class extends pe(Zt(Q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return S`
|
|
4397
4415
|
<slot name="prefix">
|
|
4398
4416
|
${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:U}
|
|
4399
4417
|
</slot>
|
|
@@ -4411,7 +4429,7 @@
|
|
|
4411
4429
|
size="20"
|
|
4412
4430
|
@click="${this.handleClose}"
|
|
4413
4431
|
></mdc-button>
|
|
4414
|
-
`}};bs.styles=[...Q.styles,...Bb],h([u({type:String})],bs.prototype,"label",2),h([u({type:Boolean})],bs.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],bs.prototype,"clearAriaLabel",2);var $p=bs;$p.register(fa);var
|
|
4432
|
+
`}};bs.styles=[...Q.styles,...Bb],h([u({type:String})],bs.prototype,"label",2),h([u({type:Boolean})],bs.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],bs.prototype,"clearAriaLabel",2);var $p=bs;$p.register(fa);var s0=$p;var a0=z`
|
|
4415
4433
|
:host([icon-name])::part(text) {
|
|
4416
4434
|
margin-inline-end: 0.25rem;
|
|
4417
4435
|
}
|
|
@@ -4482,7 +4500,7 @@
|
|
|
4482
4500
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
|
4483
4501
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
|
4484
4502
|
}
|
|
4485
|
-
`,Hb=[
|
|
4503
|
+
`,Hb=[a0];var Hn=class extends pe(hi){constructor(){super(...arguments);this.size=vv.LINK_SIZE}getIconSize(){switch(this.size){case ad.SMALL:return nd.SMALL;case ad.MIDSIZE:return nd.MIDSIZE;default:return nd.LARGE}}renderAnchorContent(){return S`<span part="text"><slot></slot></span>${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:U}`}};Hn.styles=[...hi.styles,...Hb],h([u({type:String,reflect:!0})],Hn.prototype,"size",2);var Vp=Hn;Vp.register(sd);var n0=Vp;var Ub=V.constructTagName("linkbutton"),va={12:12,14:14,16:16},ga={SIZE:va[16],ROLE:et.BUTTON,INLINE:ea.INLINE,INVERTED:ea.INVERTED};var Gb=n=>{switch(n){case va[12]:return .75;case va[14]:return .875;default:return 1}};var l0=z`
|
|
4486
4504
|
:host {
|
|
4487
4505
|
gap: 0.25rem;
|
|
4488
4506
|
cursor: pointer;
|
|
@@ -4581,10 +4599,10 @@
|
|
|
4581
4599
|
color: var(--mdc-link-color-disabled);
|
|
4582
4600
|
pointer-events: none;
|
|
4583
4601
|
}
|
|
4584
|
-
`,Kb=[
|
|
4602
|
+
`,Kb=[l0,...xt()];var ys=class extends pe(ge){constructor(){super(...arguments);this.size=ga.SIZE;this.inline=ga.INLINE;this.inverted=ga.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=ga.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(va).includes(t)?`${t}`:ga.SIZE.toString())}render(){return S`
|
|
4585
4603
|
<slot></slot>
|
|
4586
4604
|
${this.iconName?S` <mdc-icon name=${this.iconName} size=${Gb(this.size)} length-unit="rem"></mdc-icon> `:U}
|
|
4587
|
-
`}};ys.styles=[...hi.styles,...Kb],h([u({type:Number,reflect:!0})],ys.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ys.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],ys.prototype,"inverted",2);var zp=ys;zp.register(Ub);var
|
|
4605
|
+
`}};ys.styles=[...hi.styles,...Kb],h([u({type:Number,reflect:!0})],ys.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ys.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],ys.prototype,"inverted",2);var zp=ys;zp.register(Ub);var d0=zp;hi.register(tg);var c0=hi;var gi=n=>{class o extends Ot(Nt(n)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:a}=i,d=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&a instanceof Q&&d&&a.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let a=i.target,d=this.getCurrentIndex(a);if(d!==-1){let f=document.activeElement===a,v=document.activeElement&&document.activeElement.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY,x=!(this.navItems.at(d)!==a&&(f||v));this.resetTabIndexAndSetFocus(d,void 0,x,!1)}};this.handleNavBeforeFocus=i=>{let a=Eh(i.relatedTarget);if(this!==a&&!this.contains(document.activeElement)&&this.contains(a)){i.preventDefault();let d=this.navItems.find(v=>v.contains(a)),f=this.getCurrentIndex(d);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Qt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(i){super.firstUpdated(i),this.setInitialFocus()}setInitialFocus(){let i=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(i,void 0,!1)}handleNavigationKeyDown(i){let a=this.getActionForKeyEvent(i,!0),d=this.orientation==="vertical",f=new Set(d?[K.DOWN,K.UP,K.HOME,K.END]:[K.LEFT,K.RIGHT,K.HOME,K.END]);if(!a||!f.has(a))return;let v=i.target,x=this.getCurrentIndex(v);if(x===-1)return;this.resetTabIndexes(x);let R=!1;switch(a){case K.HOME:{R=this.resetTabIndexAndSetFocus(0,x);break}case K.END:{R=this.resetTabIndexAndSetFocus(this.navItems.length-1,x);break}case K.DOWN:case K.RIGHT:{let H=this.shouldLoop()?0:x,J=x+1===this.navItems.length?H:x+1;R=this.resetTabIndexAndSetFocus(J,x);break}case K.UP:case K.LEFT:{let H=this.shouldLoop()?this.navItems.length-1:x,J=x-1===-1?H:x-1;R=this.resetTabIndexAndSetFocus(J,x);break}default:break}R&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(a=>a===i||!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,a=!0){var d;if(this.navItems.length>0){this.navItems.forEach(x=>x.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,v=(d=this.navItems.at(f))!=null?d:this.navItems.find(Boolean);v&&(v.setAttribute("tabindex","0"),a&&v.focus())}}resetTabIndexAndSetFocus(i,a,d=!0,f=!0){var R;let{navItems:v}=this;if(v.length===0)return!1;let x=(R=v.at(i))!=null?R:v.find(Boolean);return i===0&&a===0&&v.length===1||i===a&&x&&x.getAttribute("tabindex")==="0"?!1:(a===void 0?v.forEach(H=>H.setAttribute("tabindex","-1")):v.at(a)&&v.at(a).setAttribute("tabindex","-1"),x.setAttribute("tabindex","0"),d&&(x.focus({preventScroll:!0}),f&&x.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===re.SPATIAL?!1:this.loop!=="false"}}return o};var lc=V.constructTagName("listitem"),Un={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Wb={VARIANT:Un.FULL_WIDTH};var h0=n=>!!n,Or=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)||h0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Qt.CREATED,this.itemCreationHandler),this.host.addEventListener(Qt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Qt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Qt.DESTROYED,this.itemDestroyHandler),this.reset()}add(o){this.addItem(o,void 0)}addAt(o,t){this.addItem(o,t)}getIndexToInsertInCache(o){if(!this.cache.length||!Pf(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);Ff(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 a=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",a===-1?this.cache.length:a,this.cache.slice())),a===-1?this.cache.push(e):a>=0&&this.cache.splice(a,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 bi=n=>{class o extends n{constructor(...i){super(...i);this.handleItemCreation=i=>{let a=i.target;a&&a.addEventListener(Qt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Qt.DESTROYED&&(i.target.removeEventListener(Qt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Qt.CREATED,this.handleItemCreation)}}return o};var p0=z`
|
|
4588
4606
|
:host {
|
|
4589
4607
|
display: flex;
|
|
4590
4608
|
flex-direction: column;
|
|
@@ -4610,11 +4628,11 @@
|
|
|
4610
4628
|
scroll-padding-left: 0.25rem;
|
|
4611
4629
|
scroll-padding-right: 0.25rem;
|
|
4612
4630
|
}
|
|
4613
|
-
`,Yb=[
|
|
4631
|
+
`,Yb=[p0];var jb=V.constructTagName("list");var Gn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},dc={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:Gn.VERTICAL};var Es=class extends gi(bi(Q)){constructor(){super();this.loop=dc.LOOP;this.initialFocus=dc.INITIAL_FOCUS;this.orientation=dc.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Or(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1),this.resetTabIndexes(a,this.focusWithin)}}handleKeyDown(t){this.getActionForKeyEvent(t)===K.SPACE&&this.navItems.find(i=>i===t.target)&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${lc}:not([disabled])`)}render(){return S`
|
|
4614
4632
|
<slot name="list-header"></slot>
|
|
4615
4633
|
<!-- make the container slot role presentation to keep it ignored in a11y tree -->
|
|
4616
4634
|
<slot part="container" role="presentation"></slot>
|
|
4617
|
-
`}};Es.styles=[...Q.styles,...Yb],h([u({type:String,reflect:!0})],Es.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],Es.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],Es.prototype,"orientation",2);var Ki=Es;Ki.register(jb);var Bp=Ki;var
|
|
4635
|
+
`}};Es.styles=[...Q.styles,...Yb],h([u({type:String,reflect:!0})],Es.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],Es.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],Es.prototype,"orientation",2);var Ki=Es;Ki.register(jb);var Bp=Ki;var m0=z`
|
|
4618
4636
|
:host {
|
|
4619
4637
|
--mdc-listheader-padding: 0.5rem 0.75rem;
|
|
4620
4638
|
--mdc-listheader-gap: 0.5rem;
|
|
@@ -4641,7 +4659,7 @@
|
|
|
4641
4659
|
:host::part(postfix-icon) {
|
|
4642
4660
|
flex-shrink: 0;
|
|
4643
4661
|
}
|
|
4644
|
-
`,qb=[
|
|
4662
|
+
`,qb=[m0];var Co=class extends Q{constructor(){super(...arguments);this.disabled=!1}render(){return S`
|
|
4645
4663
|
${this.prefixIcon?S`<mdc-icon
|
|
4646
4664
|
part="prefix-icon"
|
|
4647
4665
|
name="${this.prefixIcon}"
|
|
@@ -4660,7 +4678,7 @@
|
|
|
4660
4678
|
size="1"
|
|
4661
4679
|
length-unit="rem"
|
|
4662
4680
|
></mdc-icon>`:U}
|
|
4663
|
-
`}};Co.styles=[...Q.styles,...qb],h([u({type:String,attribute:"prefix-icon"})],Co.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon"})],Co.prototype,"postfixIcon",2),h([u({type:String,attribute:"header-text"})],Co.prototype,"headerText",2),h([u({type:Boolean,reflect:!0})],Co.prototype,"disabled",2);var Hp=Co;var Xb=V.constructTagName("listheader");Hp.register(Xb);var
|
|
4681
|
+
`}};Co.styles=[...Q.styles,...qb],h([u({type:String,attribute:"prefix-icon"})],Co.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon"})],Co.prototype,"postfixIcon",2),h([u({type:String,attribute:"header-text"})],Co.prototype,"headerText",2),h([u({type:Boolean,reflect:!0})],Co.prototype,"disabled",2);var Hp=Co;var Xb=V.constructTagName("listheader");Hp.register(Xb);var u0=Hp;var cc=n=>{class o extends Hd(n){connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent(Qt.CREATED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}})),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Qt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new CustomEvent(Qt.DESTROYED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))}}return o};var Kn=class{static dispatchListItemEvent(o,t){t.dispatchEvent(new Event(o,{composed:!0,bubbles:!0}))}static onDisableListItem(o){this.dispatchListItemEvent("disabled",o)}static onEnableListItem(o){this.dispatchListItemEvent("enabled",o)}static onCreatedListItem(o){setTimeout(()=>{this.dispatchListItemEvent("created",o)},0)}static onDestroyedListItem(o){this.dispatchListItemEvent("destroyed",o)}};var f0=z`
|
|
4664
4682
|
:host {
|
|
4665
4683
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
4666
4684
|
--mdc-listitem-default-active-background-color: var(--mds-color-theme-background-primary-active);
|
|
@@ -4773,7 +4791,7 @@
|
|
|
4773
4791
|
flex-direction: row;
|
|
4774
4792
|
flex-shrink: 0;
|
|
4775
4793
|
}
|
|
4776
|
-
`,Zb=[
|
|
4794
|
+
`,Zb=[f0,...xt()];var Ze=class extends Ot(Nt(Zt(ii(cc(Q))))){constructor(){super();this.variant=Wb.VARIANT;this.wasSpacePressed=!1;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||et.LISTITEM}handleBlur(){this.wasSpacePressed=!1}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let e=this.getActionForKeyEvent(t);this.isEventFromInsideListItem(t)||(!t.defaultPrevented&&e===K.ENTER?(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)):e===K.SPACE&&(this.wasSpacePressed=!0))}handleKeyUp(t){this.getActionForKeyEvent(t)===K.SPACE&&(!this.isEventFromInsideListItem(t)&&!t.defaultPrevented&&this.wasSpacePressed&&(t.preventDefault(),this.triggerClickEvent(t)),this.wasSpacePressed=!1)}isEventFromInsideListItem(t){let e=t.target;return e!==this&&document.activeElement===e&&this.contains(e)}triggerClickEvent(t){if(this.isEventFromInsideListItem(t))return;let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}getText(t,e,i){return S`
|
|
4777
4795
|
<slot name="${t}">
|
|
4778
4796
|
${i?S`<mdc-text part="${t}" type="${e}" tagname="${pt.SPAN}">${i}</mdc-text>`:U}
|
|
4779
4797
|
</slot>
|
|
@@ -4805,7 +4823,7 @@
|
|
|
4805
4823
|
${this.renderTrailingControls()}
|
|
4806
4824
|
</div>
|
|
4807
4825
|
</slot>
|
|
4808
|
-
`}};Ze.styles=[...Q.styles,...Zb],h([
|
|
4826
|
+
`}};Ze.styles=[...Q.styles,...Zb],h([Xt({slot:"leading-controls"})],Ze.prototype,"leadingControlsSlot",2),h([Xt({slot:"trailing-controls"})],Ze.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],Ze.prototype,"variant",2),h([u({type:String,reflect:!0})],Ze.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Ze.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],Ze.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],Ze.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],Ze.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Ze.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],Ze.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],Ze.prototype,"active",2);var Wi=Ze;Wi.register(lc);var v0=Wi;var g0=z`
|
|
4809
4827
|
:host {
|
|
4810
4828
|
--mdc-marker-width: 0.25rem;
|
|
4811
4829
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -4830,7 +4848,7 @@
|
|
|
4830
4848
|
var(--mdc-marker-striped-background-color) 0.375rem
|
|
4831
4849
|
);
|
|
4832
4850
|
}
|
|
4833
|
-
`,Qb=[
|
|
4851
|
+
`,Qb=[g0];var Jb=V.constructTagName("marker"),ty={SOLID:"solid",STRIPED:"striped"};var Wn=class extends Q{constructor(){super(...arguments);this.variant=ty.SOLID}};Wn.styles=[...Q.styles,...Qb],h([u({type:String,reflect:!0})],Wn.prototype,"variant",2);var Up=Wn;Up.register(Jb);var b0=Up;var ae=V.constructTagName("menupopover"),Gp={PLACEMENT:Mt.BOTTOM_START,ORIENTATION:"vertical"};var Yi=V.constructTagName("menusection"),ey={DIVIDER_VARIANT:"solid"};var _o=V.constructTagName("sidenavigation"),hr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},wo={FLYOUT:"flyout",DROPDOWN:"dropdown"},ba={VARIANT:hr.FLEXIBLE,SUBMENU_TYPE:wo.FLYOUT};var Yn=V.constructTagName("menubar"),ry={ORIENTATION:"vertical"};var y0=z`
|
|
4834
4852
|
:host {
|
|
4835
4853
|
display: flex;
|
|
4836
4854
|
}
|
|
@@ -4842,7 +4860,7 @@
|
|
|
4842
4860
|
:host([aria-orientation='vertical']) {
|
|
4843
4861
|
flex-direction: column;
|
|
4844
4862
|
}
|
|
4845
|
-
`,iy=[
|
|
4863
|
+
`,iy=[y0];var jn=class extends Ot(Nt(Q)){constructor(){super();this.depthManager=new vo(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(e=>e===this)){let e=t.target;if(!e||!this.isTopLevelMenuItem(e))return;let i=this.menuItems.filter(d=>d!==e);this.getVisibleSubMenusOfItems(i).forEach(d=>{d.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=ry.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(e=>{e.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var d,f;let t=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],i=[],a=v=>{v.role===et.MENUITEM&&!v.hasAttribute("disabled")?i.push(v):v.tagName.toLowerCase()===Yi&&Array.from(v.children).forEach(a)};return e.forEach(a),i}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{var f;let a=i.getAttribute("id");if(!a)return;let d=(f=document.querySelector)==null?void 0:f.call(document,`${ae}[triggerid="${a}"]`);d&&d.visible&&e.push(d)}),e}getAllPopovers(){var a,d;if(!this.menuItems.length)return[];let t=(d=(a=this.menuItems[0])==null?void 0:a.closest(_o))!=null?d:this;if(!t)return[];let e=[],i=f=>{f.querySelectorAll(`${ae}`).forEach(v=>{e.push(v)}),f.querySelectorAll("slot").forEach(v=>{v.assignedElements({flatten:!0}).forEach(i)})};return i(t),e}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((e,i)=>{let a=i===0?"0":"-1";e==null||e.setAttribute("tabindex",a)})}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t||e===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(e=>e.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(a=>a.getAttribute("id")===t))return;let i=this.getSubmenu(t);i&&i.show()}updatePopoverPlacement(){let t=Mt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,i){var a,d;i<0||e<0||(e!==i&&((a=t[e])==null||a.setAttribute("tabindex","-1"),(d=t[i])==null||d.setAttribute("tabindex","0")),t[i]&&(t[i].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,i=!1){var v;let{length:a}=this.menuItems;if(a===0)return;let d=t;if(this.getKeyboardNavMode()===re.DEFAULT?d=e==="prev"?(t-1+a)%a:(t+1)%a:d=e==="prev"?Math.max(0,t-1):Math.min(t+1,a-1),d!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,d),i)){let x=(v=this.menuItems[d])==null?void 0:v.getAttribute("id");this.getSubmenu(x)&&!this.menuItems[d].hasAttribute("soft-disabled")&&(this.showSubmenu(x),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var d;let e=t.parentElement;if(!e||t.role!==et.MENUITEM)return!1;let i=e.tagName.toLowerCase(),a=(d=e.parentElement)==null?void 0:d.tagName.toLowerCase();return i===Yn||i===_o||i===Yi&&(a===Yn||a===_o)}isNestedMenuItem(t){return!!t.closest(ae)&&t.role===et.MENUITEM}async closeAllMenuPopovers(){let t=this.getAllPopovers(),e=this.depthManager.popUntil(i=>t.includes(i));await Promise.all(e.map(i=>i.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===et.MENUITEM){let i=t.closest(ae),a=i==null?void 0:i.getAttribute("triggerid"),d=this.menuItems.find(f=>f.getAttribute("id")===a);if(d){this.isTopLevelMenuItem(d)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let f=this.getCurrentIndex(d);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),e>=0&&this.navigateToMenuItem(e,"next",!0)}}getParentMenuItemIndex(t){let e=t.parentElement;for(;e;){if(e.tagName.toLowerCase()===ae){let i=e.getAttribute("triggerid"),a=this.menuItems.find(d=>d.getAttribute("id")===i);if(a)return this.isTopLevelMenuItem(a)?this.menuItems.findIndex(d=>d===a):this.getParentMenuItemIndex(a)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case K.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case K.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case K.LEFT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(a);break}case K.RIGHT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(a);break}case K.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case K.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return S`<slot></slot>`}};jn.styles=[...Q.styles,...iy],h([Xt({selector:"mdc-menusection",flatten:!0})],jn.prototype,"menusections",2);var Kp=jn;Kp.register(Yn);var E0=Kp;var qn=V.constructTagName("menuitem"),Xn={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Wp={POSITIVE:"positive",NEGATIVE:"negative"},Yp={LEADING:"leading",TRAILING:"trailing"};var T0=z`
|
|
4846
4864
|
:host(:dir(rtl))::part(trailing-arrow),
|
|
4847
4865
|
:host(:dir(rtl))::part(leading-arrow) {
|
|
4848
4866
|
transform: rotate(180deg);
|
|
@@ -4851,7 +4869,7 @@
|
|
|
4851
4869
|
:host::part(leading-arrow) {
|
|
4852
4870
|
--mdc-icon-size: 1rem;
|
|
4853
4871
|
}
|
|
4854
|
-
`,oy=[
|
|
4872
|
+
`,oy=[T0];var ko=class extends Wi{handleKeyDown(o){this.getActionForKeyEvent(o)===K.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===K.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=Un.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Wp.NEGATIVE?Xn.LEFT:Xn.RIGHT;return S`
|
|
4855
4873
|
<slot
|
|
4856
4874
|
name="trailing-controls"
|
|
4857
4875
|
@click=${this.stopEventPropagation}
|
|
@@ -4867,7 +4885,7 @@
|
|
|
4867
4885
|
@keydown=${this.stopEventPropagation}
|
|
4868
4886
|
></slot>
|
|
4869
4887
|
${this.arrowPosition===Yp.LEADING?S`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:U}
|
|
4870
|
-
`}};ko.styles=[...Wi.styles,...oy],h([u({type:String,reflect:!0,attribute:"arrow-position"})],ko.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],ko.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],ko.prototype,"name",2),h([u({type:String,reflect:!0})],ko.prototype,"value",2);var Rr=ko;Rr.register(qn);var
|
|
4888
|
+
`}};ko.styles=[...Wi.styles,...oy],h([u({type:String,reflect:!0,attribute:"arrow-position"})],ko.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],ko.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],ko.prototype,"name",2),h([u({type:String,reflect:!0})],ko.prototype,"value",2);var Rr=ko;Rr.register(qn);var x0=Rr;var sy=V.constructTagName("statictoggle"),A0={DEFAULT:"default",COMPACT:"compact"},jp={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},ay={compact:.75,default:1.25},ny={SIZE:A0.DEFAULT};var S0=[z`
|
|
4871
4889
|
:host {
|
|
4872
4890
|
--mdc-statictoggle-width: 3rem;
|
|
4873
4891
|
--mdc-statictoggle-height: 1.5rem;
|
|
@@ -4962,7 +4980,7 @@
|
|
|
4962
4980
|
border: 1px solid GrayText;
|
|
4963
4981
|
}
|
|
4964
4982
|
}
|
|
4965
|
-
`],ly=
|
|
4983
|
+
`],ly=S0;var No=class extends Zt(Q){constructor(){super(...arguments);this.checked=!1;this.size=ny.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return S`
|
|
4966
4984
|
<slot></slot>
|
|
4967
4985
|
<div part="slider">
|
|
4968
4986
|
<mdc-icon
|
|
@@ -4972,7 +4990,7 @@
|
|
|
4972
4990
|
size="${ay[this.size]}"
|
|
4973
4991
|
></mdc-icon>
|
|
4974
4992
|
</div>
|
|
4975
|
-
`}};No.styles=[...Q.styles,...ly],h([u({type:Boolean,reflect:!0})],No.prototype,"checked",2),h([u({type:String,reflect:!0})],No.prototype,"size",2),h([u({type:Boolean,reflect:!0})],No.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],No.prototype,"softDisabled",2);var qp=No;qp.register(sy);var
|
|
4993
|
+
`}};No.styles=[...Q.styles,...ly],h([u({type:Boolean,reflect:!0})],No.prototype,"checked",2),h([u({type:String,reflect:!0})],No.prototype,"size",2),h([u({type:Boolean,reflect:!0})],No.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],No.prototype,"softDisabled",2);var qp=No;qp.register(sy);var I0=qp;var Zn=V.constructTagName("tooltip"),Dr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Qe={ARIA_HIDDEN:"true",BACKDROP:!1,DELAY:"0,0",DISABLE_ARIA_EXPANDED:!0,HIDE_ON_BLUR:!0,HIDE_ON_ESCAPE:!0,TRIGGER:`${_e.MOUSEENTER} ${_e.FOCUSIN}`,OFFSET:4,PLACEMENT:Mt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Dr.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var C0=z`
|
|
4976
4994
|
:host {
|
|
4977
4995
|
--mdc-tooltip-max-width: 400px;
|
|
4978
4996
|
--mdc-tooltip-padding: 0.75rem;
|
|
@@ -4996,14 +5014,14 @@
|
|
|
4996
5014
|
:host([color='contrast'])::part(popover-content) {
|
|
4997
5015
|
color: var(--mdc-tooltip-text-color-contrast);
|
|
4998
5016
|
}
|
|
4999
|
-
`,dy=[
|
|
5017
|
+
`,dy=[C0];var ya=class extends lr{constructor(){super(...arguments);this.tooltipType=Qe.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Qe.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS;this.autoGeneratedId=null}connectedCallback(){super.connectedCallback(),this.role=et.TOOLTIP,this.ariaHidden=Qe.ARIA_HIDDEN,this.backdrop=Qe.BACKDROP,this.delay=this.delay||Qe.DELAY,this.disableAriaExpanded=Qe.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Qe.HIDE_ON_BLUR,this.hideOnEscape=Qe.HIDE_ON_ESCAPE,this.offset=this.offset||Qe.OFFSET,this.placement=this.placement||Qe.PLACEMENT,this.trigger=Qe.TRIGGER,this.closeButton=Et.CLOSE_BUTTON,this.disableFlip=Et.DISABLE_FLIP,this.focusBackToTrigger=Et.FOCUS_BACK,this.focusTrap=Et.FOCUS_TRAP,this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE,this.interactive=Et.INTERACTIVE,this.preventScroll=Et.PREVENT_SCROLL,this.size=Et.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Dr).includes(t)?t:Qe.TOOLTIP_TYPE)}ensureId(){if(this.id.length>0){this.autoGeneratedId&&this.id!==this.autoGeneratedId&&(this.autoGeneratedId=null);return}this.autoGeneratedId||(this.autoGeneratedId=`mdc-tooltip-${ze()}`),this.id=this.autoGeneratedId}syncTriggerAriaForId(){if(this.triggerElement)switch(this.tooltipType){case Dr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Dr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=Qe.PLACEMENT)}onTooltipTypeUpdated(t){let e=t.get("tooltipType");if(Object.values(Dr).includes(this.tooltipType)||this.setTooltipType(Qe.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Dr.DESCRIPTION:e===Dr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Dr.LABEL:e===Dr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:e===Dr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):e===Dr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,e){let{triggerElement:i}=this;t===e||!i||(e||this.depthManager.remove([this]),await super.isOpenUpdated(t,e))}willUpdate(t){super.willUpdate(t);let e=t.has("id");e&&this.ensureId(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")?this.onTooltipTypeUpdated(t):e&&this.syncTriggerAriaForId()}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&Hl(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};ya.styles=[...lr.styles,...dy],h([u({type:String,attribute:"tooltip-type",reflect:!0})],ya.prototype,"tooltipType",2),h([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],ya.prototype,"onlyShowWhenTriggerOverflows",2);var Xp=ya;Xp.register(Zn);var _0=Xp;var cy=V.constructTagName("toggle"),Qn={DEFAULT:"default",COMPACT:"compact"};var Zp={SIZE:Qn.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var yi=n=>{class o extends n{constructor(){super(...arguments);this.controlTypeProviderContext=Ie.consume({host:this,context:Sp.Context})}willUpdate(){this.controlType&&Yd.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=Wd.CONTROL_TYPE)}}return h([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var hc=V.constructTagName("menuitemcheckbox"),Jn={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},hy={INDICATOR:Jn.CHECKBOX};var w0=z`
|
|
5000
5018
|
:host::part(checkmark-icon) {
|
|
5001
5019
|
--mdc-icon-fill-color: currentColor;
|
|
5002
5020
|
}
|
|
5003
5021
|
:host .hidden-checkmark {
|
|
5004
5022
|
visibility: hidden;
|
|
5005
5023
|
}
|
|
5006
|
-
`,py=[
|
|
5024
|
+
`,py=[w0];var Ea=class extends yi(Rr){constructor(){super();this.checked=!1;this.indicator=hy.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||this.softDisabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===Jn.CHECKBOX?S`
|
|
5007
5025
|
<mdc-staticcheckbox
|
|
5008
5026
|
slot="leading-controls"
|
|
5009
5027
|
?checked="${this.checked}"
|
|
@@ -5045,14 +5063,14 @@
|
|
|
5045
5063
|
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
|
5046
5064
|
</div>
|
|
5047
5065
|
</slot>
|
|
5048
|
-
`}};Ea.styles=[...Rr.styles,...py],h([u({type:Boolean,reflect:!0})],Ea.prototype,"checked",2),h([u({type:String,reflect:!0})],Ea.prototype,"indicator",2);var Qp=Ea;Qp.register(hc);var
|
|
5066
|
+
`}};Ea.styles=[...Rr.styles,...py],h([u({type:Boolean,reflect:!0})],Ea.prototype,"checked",2),h([u({type:String,reflect:!0})],Ea.prototype,"indicator",2);var Qp=Ea;Qp.register(hc);var k0=Qp;var pc=V.constructTagName("menuitemradio"),mc={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},my={INDICATOR:mc.RADIO};var N0=z`
|
|
5049
5067
|
:host::part(checkmark-icon) {
|
|
5050
5068
|
--mdc-icon-fill-color: currentColor;
|
|
5051
5069
|
}
|
|
5052
5070
|
:host .hidden-checkmark {
|
|
5053
5071
|
visibility: hidden;
|
|
5054
5072
|
}
|
|
5055
|
-
`,uy=[
|
|
5073
|
+
`,uy=[N0];var Ta=class extends yi(Rr){constructor(){super();this.checked=!1;this.indicator=my.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Yi}, ${ae}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(e=>{e!==this&&e.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===mc.RADIO?S`
|
|
5056
5074
|
<mdc-staticradio
|
|
5057
5075
|
slot="leading-controls"
|
|
5058
5076
|
?checked="${this.checked}"
|
|
@@ -5086,7 +5104,7 @@
|
|
|
5086
5104
|
${this.renderCheckmarkIcon()}
|
|
5087
5105
|
</div>
|
|
5088
5106
|
</slot>
|
|
5089
|
-
`}};Ta.styles=[...Rr.styles,...uy],h([u({type:Boolean,reflect:!0})],Ta.prototype,"checked",2),h([u({type:String,reflect:!0})],Ta.prototype,"indicator",2);var Jp=Ta;Jp.register(pc);var
|
|
5107
|
+
`}};Ta.styles=[...Rr.styles,...uy],h([u({type:Boolean,reflect:!0})],Ta.prototype,"checked",2),h([u({type:String,reflect:!0})],Ta.prototype,"indicator",2);var Jp=Ta;Jp.register(pc);var L0=Jp;var pr=V.constructTagName("navmenuitem"),fy={DOT:kr.DOT,COUNTER:kr.COUNTER},tm={RIGHT_ARROW:"arrow-right-bold",DOWN_ARROW:"arrow-down-bold"},em={MAX_COUNTER:99,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:jo[24],VARIANT:hr.FLEXIBLE,CANNOT_ACTIVATE:!1};var M0=z`
|
|
5090
5108
|
:host::part(popover-content) {
|
|
5091
5109
|
padding: 0.75rem 0.5rem;
|
|
5092
5110
|
scroll-padding-block: 0.25rem;
|
|
@@ -5095,7 +5113,7 @@
|
|
|
5095
5113
|
::slotted(mdc-divider) {
|
|
5096
5114
|
margin-block: 0.25rem;
|
|
5097
5115
|
}
|
|
5098
|
-
`,vy=[
|
|
5116
|
+
`,vy=[M0];var tl=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},rm=n=>{var o;return((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())===ae};var el=class extends lr{constructor(){super();this.placement=Gp.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.closeAllMenuPopovers(),a&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e,i;(e=this.triggerElement)!=null&&e.hasAttribute("disabled")||(i=this.triggerElement)!=null&&i.hasAttribute("soft-disabled")||(t.composedPath().find(a=>a.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;tl(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let i=t.target,a=this.getCurrentIndex(i);if(a===-1)return;switch(this.resetTabIndexes(a),this.getActionForKeyEvent(t,!0)){case K.HOME:{this.resetTabIndexAndSetFocus(0,a),e=!0;break}case K.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,a),e=!0;break}case K.DOWN:{let f=a+1===this.menuItems.length?0:a+1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case K.UP:{let f=a-1===-1?this.menuItems.length-1:a-1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case K.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&!i.hasAttribute("soft-disabled")&&(f.show(),e=!0);break}case K.LEFT:{rm(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,a),e=!0);break}case K.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,a),e=!0);break}case K.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case K.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,i=t.target;switch(this.getActionForKeyEvent(t)){case K.SPACE:{!i.matches(`${pc}, ${hc}`)&&!i.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(i)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var i,a;let e=t.getAttribute("id");return e?(a=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:a.call(i,`${ae}[triggerid="${e}"]`):null}collectMenuItems(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(a=>a.tagName.toLowerCase()===Yi?Array.from(a.children).filter(d=>tl(d)):tl(a)?a:[]).flat().filter(a=>!!a&&!a.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(a=>this.getSubMenuPopoverOfTarget(a))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.visible&&e.push(a)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=Gp.ORIENTATION,this.backdrop=!1,this.color=rs.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![qn,pr].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t)}resetTabIndexAndSetFocus(t,e){t!==e&&(this.menuItems[e].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&rm(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(a=>a!==t);this.getOpenSubMenusOfItems(e).forEach(a=>{a.hide()})}fireMenuItemAction(t){t.matches(qn)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!tl(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};el.styles=[...lr.styles,...vy],h([u({type:String,reflect:!0})],el.prototype,"placement",2);var im=el;im.register(ae);var O0=im;var uc=class{constructor(o,t,e){this.variant=o,this.expanded=t,this.submenuType=e}get isDropdownSubmenuType(){return this.submenuType===wo.DROPDOWN}hasSiblingWithTriggerId(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.tagName.toLowerCase()===ae&&d.getAttribute("triggerid")===t):!1}isDropDownParent(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.matches(`div[data-trigger="${t}"]`)):!1}getParentNavMenuItems(o){var i;if(!o)return[];let t=[],e=o;for(;e;){let a=null,d=e==null?void 0:e.closest(ae);if(d)a=this.getTriggerElement(d,"triggerid");else{let f=(i=e==null?void 0:e.parentElement)==null?void 0:i.closest("div[data-trigger]");f&&(a=this.getTriggerElement(f,"data-trigger"))}if(a&&a.tagName.toLowerCase()===pr)t.push(a),e=a;else break}return t}getTriggerElement(o,t){let e=o.getAttribute(t);return e?document.getElementById(e):null}setCurrentActiveNavMenuItem(o){var a;let t=((a=this.currentActiveNavMenuItem)==null?void 0:a.navId)===(o==null?void 0:o.navId),e=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||this.isDropdownSubmenuType&&this.expanded&&this.isDropDownParent(o)||(o==null?void 0:o.softDisabled);if(t||e||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(d=>{d.hasActiveChild=!0,d.setAttribute("active","")})}};uc.context=_o;var fc=uc;var R0=z`
|
|
5099
5117
|
:host {
|
|
5100
5118
|
--mdc-sidenavigation-expanded-width: 14.5rem;
|
|
5101
5119
|
--mdc-sidenavigation-expanded-left-padding: 1rem;
|
|
@@ -5233,7 +5251,7 @@
|
|
|
5233
5251
|
:host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
|
|
5234
5252
|
opacity: 1;
|
|
5235
5253
|
}
|
|
5236
|
-
`,gy=[
|
|
5254
|
+
`,gy=[R0];var om=class extends Se{},by=om;var Ei=class extends Nt(by){constructor(){super({context:fc.context,initialValue:new fc(ba.VARIANT,!0,ba.SUBMENU_TYPE)});this.variant=ba.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.submenuType=ba.SUBMENU_TYPE;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(e=>e===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===hr.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var e;if((e=this.context)!=null&&e.value){let i=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(i)}};this.findNav=(t,e)=>t.find(i=>i.navId===e);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this)),this.addEventListener("keydown",this.handleDropdownKeyDown.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return fc.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case hr.FIXED_EXPANDED:this.expanded=!0;break;case hr.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded")||t.has("submenuType"))&&this.updateContext(),(t.has("expanded")||t.has("submenuType"))&&((!this.expanded||this.submenuType!==wo.DROPDOWN)&&this.closeAllDropdowns(),this.submenuType===wo.DROPDOWN?this.expanded?this.convertFlyoutsToDropdowns():this.convertDropdownsToFlyouts():this.convertFlyoutsToDropdowns())}firstUpdated(t){super.firstUpdated(t),(this.variant===hr.FLEXIBLE||this.variant===hr.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext()),this.hideAllDropdownContainers(),this.submenuType===wo.DROPDOWN&&!this.expanded&&this.convertDropdownsToFlyouts()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.submenuType!==this.submenuType)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.submenuType=this.submenuType,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${pr}:not([disabled])`))}closeAllDropdowns(){this.navMenuItems.filter(t=>this.context.value.isDropDownParent(t)).forEach(t=>t.closeDropdown()),this.hideAllDropdownContainers()}hideAllDropdownContainers(){this.querySelectorAll("div[data-trigger]").forEach(e=>{Object.assign(e.style,{display:"none",flexDirection:"column",gap:"0.25rem"})})}convertDropdownsToFlyouts(){this.querySelectorAll("div[data-trigger]").forEach(e=>{var f;let i=e.getAttribute("data-trigger");if(!i||((f=e.parentElement)==null?void 0:f.querySelector(`${ae}[triggerid="${CSS.escape(i)}"][data-dynamic-popover]`)))return;let d=document.createElement(ae);for(d.setAttribute("triggerid",i),d.setAttribute("data-dynamic-popover",""),d.setAttribute("placement","right-start");e.firstChild;)d.appendChild(e.firstChild);e.after(d),Object.assign(e.style,{display:"none"})})}convertFlyoutsToDropdowns(){this.querySelectorAll(`${ae}[data-dynamic-popover]`).forEach(e=>{let i=e.getAttribute("triggerid");if(!i)return;let a=this.querySelector(`div[data-trigger="${CSS.escape(i)}"]`);if(a){for(;e.firstChild;)a.appendChild(e.firstChild);e.remove()}})}handleDropdownKeyDown(t){var J,W;if(this.submenuType!==wo.DROPDOWN||!this.expanded)return;let e=t.target;if(!(e.tagName.toLowerCase()===pr))return;let a=e,d=this.getActionForKeyEvent(t);if(d===K.ESCAPE){let Z=e.closest("div[data-trigger]");if(!Z)return;let ot=Z.getAttribute("data-trigger");if(!ot)return;let st=this.querySelector(`${pr}#${CSS.escape(ot)}`);st&&(st.closeDropdown(),st.focus(),t.stopPropagation());return}let f=this.context.value,v=a.hasAttribute("in-dropdown-container"),x=a.getAttribute("aria-expanded")==="true",R=Z=>{var ot,st;return(st=(ot=Z.parentElement)==null?void 0:ot.querySelector(`div[data-trigger="${Z.id}"]`))!=null?st:null},H=Z=>Z==null?void 0:Z.querySelector(`${pr}:not([disabled])`);if(v){let Z=e.closest("div[data-trigger]");if(!Z)return;let ot=Array.from(Z.querySelectorAll(`${pr}:not([disabled])`)),st=ot.indexOf(a);if(st===-1)return;switch(d){case K.DOWN:{let ht=st+1<ot.length?st+1:0;ot[ht].focus(),t.preventDefault();break}case K.UP:{let ht=st>0?st-1:ot.length-1;ot[ht].focus(),t.preventDefault();break}case K.RIGHT:{let ht=this.navMenuItems.filter(It=>!It.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(It=>It.id===bt);if(yt!==-1&&yt+1<ht.length){let It=ht[yt+1];if(It.focus(),f.isDropDownParent(It)){It.openDropdown();let Rt=R(It);(J=H(Rt))==null||J.focus()}}break}case K.LEFT:{let ht=this.navMenuItems.filter(It=>!It.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(It=>It.id===bt);if(yt>0){let It=ht[yt-1];if(It.focus(),f.isDropDownParent(It)){It.openDropdown();let Rt=R(It);(W=H(Rt))==null||W.focus()}}break}default:t.preventDefault()}}if(d===K.RIGHT){let Z=R(a);if(Z){x||a.openDropdown();let ot=H(Z);ot&&(ot.focus(),t.preventDefault())}}}setVariant(t){this.setAttribute("variant",Object.values(hr).includes(t)?t:ba.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===hr.FLEXIBLE_ON_HOVER&&t.pointerType==="mouse"&&(this.isHovered=!1,this.isFocused=!1,this.hideGrabberButton()),this.dispatchEvent(new CustomEvent("toggle",{detail:{expanded:this.expanded}}))}preventScrollOnSpace(t){this.getActionForKeyEvent(t)===K.SPACE&&t.preventDefault()}render(){var t;return this.variant===hr.HIDDEN?S``:S`
|
|
5237
5255
|
<div part="side-navigation-container" id="side-nav-container">
|
|
5238
5256
|
<div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
|
|
5239
5257
|
<slot name="scrollable-section">
|
|
@@ -5277,7 +5295,7 @@
|
|
|
5277
5295
|
aria-controls="side-nav-container"
|
|
5278
5296
|
></mdc-button>
|
|
5279
5297
|
</mdc-divider>`:U}
|
|
5280
|
-
`}};
|
|
5298
|
+
`}};Ei.styles=[...Q.styles,...gy],h([u({type:String,reflect:!0})],Ei.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],Ei.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],Ei.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],Ei.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],Ei.prototype,"hideFixedSectionDivider",2),h([u({type:String,reflect:!0,attribute:"submenu-type"})],Ei.prototype,"submenuType",2);var Ts=Ei;var D0=z`
|
|
5281
5299
|
:host {
|
|
5282
5300
|
--mdc-menusection-divider-margin-block: 0.25rem;
|
|
5283
5301
|
--mdc-menusection-gap: 0rem;
|
|
@@ -5298,7 +5316,7 @@
|
|
|
5298
5316
|
:host::part(align-header) {
|
|
5299
5317
|
--mdc-listheader-padding: var(--mdc-menusection-header-padding);
|
|
5300
5318
|
}
|
|
5301
|
-
`,yy=[
|
|
5319
|
+
`,yy=[D0];var Ti=class extends Q{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=ey.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Ie.consume({host:this,context:Ts.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var a;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(a=this.sideNavigationContext)==null?void 0:a.value;if(!e)return;let{expanded:i}=e;this.hideHeaderText=!i}renderHeader(){var t,e;return this.headerText?S` <mdc-listheader
|
|
5302
5320
|
part="header ${(e=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&e.expanded?"align-header":""}"
|
|
5303
5321
|
header-text="${this.headerText}"
|
|
5304
5322
|
prefix-icon="${tt(this.prefixIcon)}"
|
|
@@ -5307,7 +5325,7 @@
|
|
|
5307
5325
|
${this.hideHeaderText?null:this.renderHeader()}
|
|
5308
5326
|
<slot part="container"></slot>
|
|
5309
5327
|
${this.showDivider?S`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
|
|
5310
|
-
`}};
|
|
5328
|
+
`}};Ti.styles=[...Q.styles,...yy],h([u({type:String,reflect:!0,attribute:"aria-label"})],Ti.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Ti.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Ti.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],Ti.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],Ti.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Ti.prototype,"hideHeaderText",2);var sm=Ti;sm.register(Yi);var P0=sm;var F0=[Tt,z`
|
|
5311
5329
|
:host {
|
|
5312
5330
|
--mdc-navmenuitem-in-sidenav-expanded-width: var(--mdc-sidenavigation-expanded-width, 100%);
|
|
5313
5331
|
--mdc-navmenuitem-in-sidenav-expanded-margin-left: var(--mdc-sidenavigation-expanded-left-padding, 1rem);
|
|
@@ -5509,7 +5527,7 @@
|
|
|
5509
5527
|
background-color: ButtonText;
|
|
5510
5528
|
}
|
|
5511
5529
|
}
|
|
5512
|
-
`,...xt()],Ey=
|
|
5530
|
+
`,...xt()],Ey=F0;var le=class extends Rr{constructor(){super();this.cannotActivate=em.CANNOT_ACTIVATE;this.maxCounter=em.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.dropdownOpen=!1;this.sideNavigationContext=Ie.consume({host:this,context:Ts.Context});this.emitNavMenuItemActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(e)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested()),this.toggleAttribute("in-dropdown-container",this.isInsideDropdownContainer())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var i;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild")||t.has("dropdownOpen"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let e=(i=this.sideNavigationContext)==null?void 0:i.value;e&&(this.showLabel=this.isNested()||this.isInsideDropdownContainer()?!0:e.expanded,!e.expanded&&this.dropdownOpen&&this.closeDropdown(),!e.isDropdownSubmenuType&&this.dropdownOpen&&this.closeDropdown(),e.isDropdownSubmenuType&&this.hasActiveChild&&e.isDropDownParent(this)&&(e.expanded&&this.dropdownOpen?(this.removeAttribute("active"),this.active=!1):(this.setAttribute("active",""),this.active=!0)))}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.disabled||this.dropdownOpen||this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${ze()}`);let t=document.createElement(Zn);t.id=`mdc-navmenuitem-tooltip-${ze()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((e=this.tooltipBoundaryPadding)==null?void 0:e.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${Zn}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ae)return!0;t=t.parentElement}return!1}isInsideDropdownContainer(){let t=this.parentElement;for(;t;){if(t.matches("div[data-trigger]"))return!0;t=t.parentElement}return!1}handleClickEvent(){var e;if(this.disabled||this.cannotActivate||this.softDisabled)return;let t=(e=this.sideNavigationContext)==null?void 0:e.value;if(t!=null&&t.isDropdownSubmenuType&&(t!=null&&t.expanded)&&(t!=null&&t.isDropDownParent(this))){if(this.toggleDropdown(),this.dropdownOpen){let i=this.getDropdownContainer(),a=i==null?void 0:i.querySelector(pr);a==null||a.focus()}return}this.emitNavMenuItemActiveChange(this.active)}toggleDropdown(){let t=this.getDropdownContainer();t&&(this.dropdownOpen=!this.dropdownOpen,t.style.display=this.dropdownOpen?"flex":"none",this.dropdownOpen?this.setAttribute("aria-expanded","true"):this.removeAttribute("aria-expanded"))}openDropdown(){if(this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="flex"),this.dropdownOpen=!0,this.setAttribute("aria-expanded","true")}closeDropdown(){if(!this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="none"),this.dropdownOpen=!1,this.removeAttribute("aria-expanded")}getDropdownContainer(){var t;return this.id?(t=this.parentElement)==null?void 0:t.querySelector(`div[data-trigger="${this.id}"]`):null}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Zo(this.iconName)}-filled`}renderBadge(t){return Object.values(fy).includes(this.badgeType)?S`
|
|
5513
5531
|
<mdc-badge
|
|
5514
5532
|
part="${t?"":"badge"}"
|
|
5515
5533
|
type="${tt(this.badgeType)}"
|
|
@@ -5552,7 +5570,7 @@
|
|
|
5552
5570
|
>
|
|
5553
5571
|
</mdc-icon>`:U}
|
|
5554
5572
|
${a?S` <mdc-icon name=${tm.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:U}
|
|
5555
|
-
`}};le.styles=[...Rr.styles,...Ey],h([u({type:Boolean,reflect:!0})],le.prototype,"active",2),h([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],le.prototype,"cannotActivate",2),h([u({type:String,attribute:"icon-name",reflect:!0})],le.prototype,"iconName",2),h([u({type:String,reflect:!0,attribute:"badge-type"})],le.prototype,"badgeType",2),h([u({type:Number,reflect:!0})],le.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],le.prototype,"maxCounter",2),h([u({type:String,reflect:!0,attribute:"nav-id"})],le.prototype,"navId",2),h([u({type:Boolean,reflect:!0,attribute:"show-label"})],le.prototype,"showLabel",2),h([u({type:String,attribute:"aria-label"})],le.prototype,"ariaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],le.prototype,"disableAriaCurrent",2),h([u({type:String,reflect:!0,attribute:"tooltip-text"})],le.prototype,"tooltipText",2),h([u({type:String,reflect:!0,attribute:"tooltip-placement"})],le.prototype,"tooltipPlacement",2),h([u({type:String,reflect:!0,attribute:"tooltip-type"})],le.prototype,"tooltipType",2),h([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],le.prototype,"tooltipAppearance",2),h([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],le.prototype,"tooltipBoundaryPadding",2),h([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],le.prototype,"isActiveParentTooltipText",2),h([dt()],le.prototype,"hasActiveChild",2),h([dt()],le.prototype,"dropdownOpen",2);var am=le;am.register(pr);var $
|
|
5573
|
+
`}};le.styles=[...Rr.styles,...Ey],h([u({type:Boolean,reflect:!0})],le.prototype,"active",2),h([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],le.prototype,"cannotActivate",2),h([u({type:String,attribute:"icon-name",reflect:!0})],le.prototype,"iconName",2),h([u({type:String,reflect:!0,attribute:"badge-type"})],le.prototype,"badgeType",2),h([u({type:Number,reflect:!0})],le.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],le.prototype,"maxCounter",2),h([u({type:String,reflect:!0,attribute:"nav-id"})],le.prototype,"navId",2),h([u({type:Boolean,reflect:!0,attribute:"show-label"})],le.prototype,"showLabel",2),h([u({type:String,attribute:"aria-label"})],le.prototype,"ariaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],le.prototype,"disableAriaCurrent",2),h([u({type:String,reflect:!0,attribute:"tooltip-text"})],le.prototype,"tooltipText",2),h([u({type:String,reflect:!0,attribute:"tooltip-placement"})],le.prototype,"tooltipPlacement",2),h([u({type:String,reflect:!0,attribute:"tooltip-type"})],le.prototype,"tooltipType",2),h([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],le.prototype,"tooltipAppearance",2),h([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],le.prototype,"tooltipBoundaryPadding",2),h([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],le.prototype,"isActiveParentTooltipText",2),h([dt()],le.prototype,"hasActiveChild",2),h([dt()],le.prototype,"dropdownOpen",2);var am=le;am.register(pr);var $0=am;var Ty="check-bold",Ar=V.constructTagName("option");var vc=V.constructTagName("optgroup"),nm="header-id";var V0=z`
|
|
5556
5574
|
:host {
|
|
5557
5575
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
|
5558
5576
|
}
|
|
@@ -5568,7 +5586,7 @@
|
|
|
5568
5586
|
:host([data-hidden]) {
|
|
5569
5587
|
display: none;
|
|
5570
5588
|
}
|
|
5571
|
-
`,xy=[
|
|
5589
|
+
`,xy=[V0];var xa=class extends oe(Zt(Q)){setDisabledForAllOptions(){this.options.forEach(o=>{this.disabled?o.setAttribute("disabled",""):o.removeAttribute("disabled")})}updated(o){super.updated(o),o.has("disabled")&&this.setDisabledForAllOptions()}render(){var t;let o=this.label?S`
|
|
5572
5590
|
<mdc-text
|
|
5573
5591
|
id="${nm}"
|
|
5574
5592
|
part="header-text"
|
|
@@ -5585,7 +5603,7 @@
|
|
|
5585
5603
|
${o}
|
|
5586
5604
|
<slot role="${et.PRESENTATION}"></slot>
|
|
5587
5605
|
</div>
|
|
5588
|
-
`}};xa.styles=[...Q.styles,...xy],h([u({type:String,reflect:!0})],xa.prototype,"label",2),h([
|
|
5606
|
+
`}};xa.styles=[...Q.styles,...xy],h([u({type:String,reflect:!0})],xa.prototype,"label",2),h([Xt({selector:Ar})],xa.prototype,"options",2);var lm=xa;lm.register(vc);var z0=lm;var B0=[Vr,z`
|
|
5589
5607
|
:host {
|
|
5590
5608
|
--mdc-listitem-column-gap: 0.75rem;
|
|
5591
5609
|
--mdc-option-icon-width: 1rem;
|
|
@@ -5614,7 +5632,7 @@
|
|
|
5614
5632
|
:host([data-hidden]) {
|
|
5615
5633
|
display: none;
|
|
5616
5634
|
}
|
|
5617
|
-
`],Ay=
|
|
5635
|
+
`],Ay=B0;var xs=class extends ue(Wi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=Un.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return S` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",Ty):U;return S`
|
|
5618
5636
|
<div part="leading">
|
|
5619
5637
|
<slot name="leading-controls">
|
|
5620
5638
|
${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):U}
|
|
@@ -5625,22 +5643,22 @@
|
|
|
5625
5643
|
</div>
|
|
5626
5644
|
</div>
|
|
5627
5645
|
<div part="trailing">${t}</div>
|
|
5628
|
-
`}};xs.styles=[...Wi.styles,...Ay],h([u({type:Boolean,reflect:!0})],xs.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],xs.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],xs.prototype,"ariaLabel",2);var dm=xs;dm.register(Ar);var
|
|
5646
|
+
`}};xs.styles=[...Wi.styles,...Ay],h([u({type:Boolean,reflect:!0})],xs.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],xs.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],xs.prototype,"ariaLabel",2);var dm=xs;dm.register(Ar);var H0=dm;var cm={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Sy=V.constructTagName("password");var U0=[z`
|
|
5629
5647
|
input::-ms-reveal {
|
|
5630
5648
|
display: none;
|
|
5631
5649
|
}
|
|
5632
|
-
`],Iy=
|
|
5650
|
+
`],Iy=U0;var As=class extends Xr{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let e=t||this.value;return e?S`
|
|
5633
5651
|
<mdc-button
|
|
5634
5652
|
part="trailing-button"
|
|
5635
5653
|
class="own-focus-ring ${e?"":"hidden"}"
|
|
5636
|
-
variant=${
|
|
5654
|
+
variant=${Ut.TERTIARY}
|
|
5637
5655
|
?disabled=${this.disabled||this.readonly||!e}
|
|
5638
5656
|
size="${Kt.ICON_SIZE}"
|
|
5639
5657
|
@click=${this.toggleShowPassword}
|
|
5640
5658
|
aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
|
|
5641
5659
|
prefix-icon=${this.showPassword?cm.HIDE_BOLD:cm.SHOW_BOLD}
|
|
5642
5660
|
></mdc-button>
|
|
5643
|
-
`:U}renderInputElement(t,e){let i=this.showPassword?Io.TEXT:Io.PASSWORD;return super.renderInputElement(i,e)}};As.styles=[...Xr.styles,...Iy],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],As.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],As.prototype,"hideButtonAriaLabel",2),h([dt()],As.prototype,"showPassword",2);var hm=As;hm.register(Sy);var
|
|
5661
|
+
`:U}renderInputElement(t,e){let i=this.showPassword?Io.TEXT:Io.PASSWORD;return super.renderInputElement(i,e)}};As.styles=[...Xr.styles,...Iy],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],As.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],As.prototype,"hideButtonAriaLabel",2),h([dt()],As.prototype,"showPassword",2);var hm=As;hm.register(Sy);var G0=hm;var gc=V.constructTagName("progressbar"),bc={DEFAULT:"default",INLINE:"inline"},Cy={VARIANT:bc.DEFAULT,VALIDATION:te.DEFAULT};var K0=[Tt,z`
|
|
5644
5662
|
:host {
|
|
5645
5663
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
5646
5664
|
--mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
|
|
@@ -5713,7 +5731,7 @@
|
|
|
5713
5731
|
border: var(--mdc-progressbar-border);
|
|
5714
5732
|
}
|
|
5715
5733
|
}
|
|
5716
|
-
`],_y=
|
|
5734
|
+
`],_y=K0;var Ss=class extends oe(cr){constructor(){super(...arguments);this.variant=Cy.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let t=this.getValidationVariant(),e=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return S`
|
|
5717
5735
|
<div
|
|
5718
5736
|
part="progress-container ${e?"gap":""}"
|
|
5719
5737
|
role="${et.PROGRESSBAR}"
|
|
@@ -5725,7 +5743,7 @@
|
|
|
5725
5743
|
<div part="progress-bar ${t}" style="width: ${i}%"></div>
|
|
5726
5744
|
<div part="remaining"></div>
|
|
5727
5745
|
</div>
|
|
5728
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`${gc}-${ze()}`,this.disabled=void 0,this.toggletipText=void 0,this.toggletipPlacement=void 0}get clampedValue(){let t=Number(this.value);return Number.isNaN(t)?0:Math.max(0,Math.min(100,t))}getValidationVariant(){return this.error?this.helpTextType=
|
|
5746
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`${gc}-${ze()}`,this.disabled=void 0,this.toggletipText=void 0,this.toggletipPlacement=void 0}get clampedValue(){let t=Number(this.value);return Number.isNaN(t)?0:Math.max(0,Math.min(100,t))}getValidationVariant(){return this.error?this.helpTextType=te.ERROR:this.clampedValue===100?this.helpTextType=te.SUCCESS:this.helpTextType=te.DEFAULT,this.helpTextType}render(){let t=this.variant===bc.INLINE;return S`
|
|
5729
5747
|
${t?S`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:S`
|
|
5730
5748
|
<div part="label-container">
|
|
5731
5749
|
${this.renderLabelElement()}
|
|
@@ -5733,7 +5751,7 @@
|
|
|
5733
5751
|
</div>
|
|
5734
5752
|
${this.renderProgressbar()} ${this.renderHelperText()}
|
|
5735
5753
|
`}
|
|
5736
|
-
`}};Ss.styles=[...cr.styles,..._y],h([u({type:String,reflect:!0})],Ss.prototype,"variant",2),h([u({type:String,reflect:!0})],Ss.prototype,"value",2),h([u({type:Boolean,attribute:"error"})],Ss.prototype,"error",2);var rl=Ss;rl.register(gc);var
|
|
5754
|
+
`}};Ss.styles=[...cr.styles,..._y],h([u({type:String,reflect:!0})],Ss.prototype,"variant",2),h([u({type:String,reflect:!0})],Ss.prototype,"value",2),h([u({type:Boolean,attribute:"error"})],Ss.prototype,"error",2);var rl=Ss;rl.register(gc);var W0=rl;var wy=V.constructTagName("progressspinner"),ye={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},pm={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var mm=n=>{if(n===0)return 0;let o=n/100*ye.CIRCUMFERENCE-ye.GAP_SIZE;return Math.max(o,.1*n)},ky=n=>{let o=ye.CIRCUMFERENCE-mm(n)-2*ye.GAP_SIZE;return n===0?ye.CIRCUMFERENCE:o<0?0:o},Ny=n=>n===0?0:ye.GAP_SIZE*.5,Ly=(n,o)=>{let t=o+ye.GAP_SIZE*1.5;return n===0?0:t};var Y0=z`
|
|
5737
5755
|
:host {
|
|
5738
5756
|
--mdc-spinner-size: 3rem;
|
|
5739
5757
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
@@ -5780,7 +5798,7 @@
|
|
|
5780
5798
|
color: var(--mdc-progress-error-color);
|
|
5781
5799
|
margin: calc(1 / 6 * var(--mdc-spinner-size));
|
|
5782
5800
|
}
|
|
5783
|
-
`,My=[
|
|
5801
|
+
`,My=[Y0];var yc=class extends rl{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var a;let o=mm(this.clampedValue),t=ky(this.clampedValue),e=Ny(this.clampedValue),i=Ly(this.clampedValue,o);return S`
|
|
5784
5802
|
<div
|
|
5785
5803
|
part="spinner-container ${this.variant}"
|
|
5786
5804
|
role="${et.PROGRESSBAR}"
|
|
@@ -5826,7 +5844,7 @@
|
|
|
5826
5844
|
size="${ye.SUCCESS_ICON_SIZE}"
|
|
5827
5845
|
length-unit="${ye.ICON_LENGTH_UNIT}"
|
|
5828
5846
|
></mdc-icon>
|
|
5829
|
-
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():S` ${this.renderProgressSpinner()}`}};yc.styles=[...Q.styles,...My];var um=yc;um.register(wy);var
|
|
5847
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():S` ${this.renderProgressSpinner()}`}};yc.styles=[...Q.styles,...My];var um=yc;um.register(wy);var j0=um;var q0=[Tt,z`
|
|
5830
5848
|
:host {
|
|
5831
5849
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
5832
5850
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -5886,7 +5904,7 @@
|
|
|
5886
5904
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
|
5887
5905
|
}
|
|
5888
5906
|
}
|
|
5889
|
-
`,...xt(!0,"parent-to-child")],Oy=
|
|
5907
|
+
`,...xt(!0,"parent-to-child")],Oy=q0;var il=class extends Ot(Nt(Ve(ue(ee)))){constructor(){super();this.checked=!1;this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.role=et.RADIO,this.shouldRenderLabel=!1,this.helpTextType=void 0,this.toggletipPlacement=void 0,this.toggletipStrategy=void 0,this.updateAriaLabel()}firstUpdated(t){this.updateTabIndex(),this.autoFocusOnMount&&(this.elementToAutoFocus=this),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){let t=this.getRootNode();return Array.from(t.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(e=>{e.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(e=>{this.onerror&&this.onerror(e)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&this.setValidity(),this.updateTabIndex()}setGroupValidity(t,e){this.updateComplete.then(()=>{t.forEach(i=>i.setComponentValidity(e))}).catch(i=>{var a;return(a=this.onerror)==null?void 0:a.call(this,i)})}setActualFormValue(){let t=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(t,!0),this.internals.setFormValue(this.value||"on");else{let e=t.some(d=>d.required),i=t.some(d=>d.checked),a=e&&!i;this.setGroupValidity(t,!a),this.internals.setFormValue(null)}}handleChange(t=!1){if(this.checked||this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(i=>{i.checked=!1}),this.checked=!0,t&&super.click(),this.emitCheckedChangeEvent()}click(){this.handleChange(!0)}updateRadio(t,e){let i=t[e];i.focus(),i.handleChange()}handleClick(){this.handleChange()}emitCheckedChangeEvent(){this.checked&&(this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){var f;if(this.disabled)return;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===K.SPACE&&t.preventDefault();let a=this.getAllRadiosWithinSameGroup().filter(v=>!v.disabled),d=a.indexOf(this);if(this.getKeyboardNavMode()===re.SPATIAL){e===K.ENTER&&(this.updateRadio(a,d),this.keyDownEventHandled()),this.updateTabIndex();return}if(e===K.DOWN||e===K.RIGHT){let v=(d+1)%a.length;this.updateRadio(a,v)}else if(e===K.UP||e===K.LEFT){let v=(d-1+a.length)%a.length;this.updateRadio(a,v)}else e===K.SPACE&&this.updateRadio(a,d);this.updateTabIndex(),e===K.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getKeyboardNavMode()===re.SPATIAL,e=this.getAllRadiosWithinSameGroup(),i=e.find(d=>d.checked),a=e.find(d=>!d.disabled);e.forEach(d=>{d.tabIndex=-1,(t||d===i||!i&&d===a)&&(d.tabIndex=0)})}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=this.checked.toString(),this.setActualFormValue()),t.has("label")&&this.updateAriaLabel()}updateAriaLabel(){!this.ariaLabel&&this.ariaLabel!==this.label&&(this.ariaLabel=this.label||"")}setValidity(){this.required&&!this.checked&&this.validationMessage&&this.internals.setValidity({valueMissing:!0,customError:!0},this.validationMessage,this),this.internals.setValidity({})}handleIndicatorSlotChange(t){let i=t.target.assignedNodes({flatten:!0}).filter(a=>a.nodeType===Node.ELEMENT_NODE);this.classList.toggle("mdc-focus-ring",i.length>0)}render(){return S`
|
|
5890
5908
|
<slot name="indicator" @slotchange=${this.handleIndicatorSlotChange}>
|
|
5891
5909
|
<mdc-staticradio
|
|
5892
5910
|
part="radio-indicator"
|
|
@@ -5902,7 +5920,7 @@
|
|
|
5902
5920
|
<div part="label-text">
|
|
5903
5921
|
<slot name="label">${this.renderLabelElement()}</slot>
|
|
5904
5922
|
</div>
|
|
5905
|
-
`}};il.styles=[...
|
|
5923
|
+
`}};il.styles=[...ee.styles,...Oy],h([u({type:Boolean,reflect:!0})],il.prototype,"checked",2);var fm=il;var Ec=V.constructTagName("radio");fm.register(Ec);var X0=fm;var Z0=new RegExp(`^(${Ec}|${Cd})$`,"i"),ol=class extends oc{constructor(){super();this.name="";this.isRadio=!0}connectedCallback(){super.connectedCallback(),this.toggletipPlacement=void 0,this.toggletipStrategy=void 0}firstUpdated(){var t;Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]).flatMap(e=>e.assignedElements({flatten:!0})).filter(e=>Z0.test(e.tagName)).forEach(e=>{e.hasAttribute("name")||e.setAttribute("name",this.name),e.toggleAttribute("required",this.required)})}};ol.styles=[...oc.styles],h([u({type:String,reflect:!0})],ol.prototype,"name",2);var vm=ol;var Ry=V.constructTagName("radiogroup");vm.register(Ry);var Q0=vm;var J0=z`
|
|
5906
5924
|
:host::part(input-text) {
|
|
5907
5925
|
white-space: nowrap;
|
|
5908
5926
|
flex: 0 0 auto;
|
|
@@ -5942,7 +5960,7 @@
|
|
|
5942
5960
|
slot[name='filters']::slotted(:first-child) {
|
|
5943
5961
|
margin-left: 0.25rem;
|
|
5944
5962
|
}
|
|
5945
|
-
`,Dy=[
|
|
5963
|
+
`,Dy=[J0];var Py=V.constructTagName("searchfield"),Tc={TYPE:Io.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var tI=[Gd,fa,Zl],Fy=tI.join(", ");var Is=class extends yi(Ot(Xr)){constructor(){super(...arguments);this.isInputFocused=!1;this.hasChips=!1;this.focusedChipIndex=-1;this.navigatingToInput=!1;this.chipsWithListeners=new WeakMap;this.handleChipKeyDown=t=>{let e=this.getActionForKeyEvent(t);if(t.key==="Backspace"||t.key==="Delete"){t.preventDefault(),this.removeChipAtIndex(this.focusedChipIndex);return}if(e===K.LEFT){t.preventDefault(),this.focusedChipIndex>0&&this.focusChipAtIndex(this.focusedChipIndex-1);return}if(e===K.RIGHT){t.preventDefault(),this.chips&&this.focusedChipIndex<this.chips.length-1?this.focusChipAtIndex(this.focusedChipIndex+1):this.focusInputField();return}if(e===K.ESCAPE){t.preventDefault(),this.clearInputText(),this.keyDownEventHandled();return}if(e===K.HOME){t.preventDefault(),this.focusChipAtIndex(0);return}if(e===K.END){t.preventDefault(),this.focusInputField();let i=this.inputElement,a=i.value.length;i.setSelectionRange(a,a),this.scrollContainerToEnd();return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.focusInputField()};this.handleChipFocus=t=>{var d,f;let e=t.currentTarget,i=this.getChipForFocusTarget(e),a=i&&(f=(d=this.chips)==null?void 0:d.indexOf(i))!=null?f:-1;a>=0&&(this.focusedChipIndex=a,this.isInputFocused=!0)};this.handleFilterContainerClick=()=>{this.inputElement.focus()}}handleKeyDown(t){var d;super.handleKeyDown(t);let e=this.getActionForKeyEvent(t);if(e===K.ESCAPE){this.clearInputText(),this.keyDownEventHandled();return}if(!this.hasChips||!((d=this.chips)!=null&&d.length))return;let i=this.inputElement,a=i.selectionStart===0&&i.selectionEnd===0;if(e===K.BACKSPACE&&a){t.preventDefault(),this.removeChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}if(e===K.LEFT&&a){t.preventDefault(),this.focusChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}e===K.HOME&&(t.preventDefault(),this.focusChipAtIndex(0),this.keyDownEventHandled())}focus(t){var e;(e=this.inputElement)==null||e.focus(t)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.chips)==null||t.forEach(e=>this.removeChipListeners(e))}connectedCallback(){super.connectedCallback(),this.leadingIcon=Tc.ICON,this.trailingButton=Tc.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderChips(){var t;this.hasChips=!!((t=this.chips)!=null&&t.length),this.chips&&this.chips.forEach(e=>{if(!e.matches(Fy)){this.removeChip(e);return}if(e.setAttribute("tabindex","-1"),!this.chipsWithListeners.has(e)){let i=this.getFocusTargetForChip(e);i.addEventListener("keydown",this.handleChipKeyDown),i.addEventListener("focus",this.handleChipFocus),this.chipsWithListeners.set(e,i)}}),this.focusedChipIndex=-1}firstUpdated(t){this.inputElement.onfocus=()=>{if(this.isInputFocused=!0,this.focusedChipIndex=-1,this.resetChipTabIndices(),!this.navigatingToInput&&this.hasChips){let e=this.scrollContainer;e&&(e.scrollLeft=0)}this.navigatingToInput=!1},this.inputElement.onblur=()=>{requestAnimationFrame(()=>{this.focusedChipIndex<0&&(this.isInputFocused=!1)})},super.firstUpdated(t)}removeChip(t){this.dispatchEvent(new CustomEvent("chipRemove",{detail:{chip:t},bubbles:!0,composed:!0})),this.controlType!=="controlled"&&t.remove()}clearInputText(){var e;super.clearInputText(),[...(e=this.chips)!=null?e:[]].forEach(i=>{this.removeChip(i)})}removeChipListeners(t){let e=this.chipsWithListeners.get(t);e&&(e.removeEventListener("keydown",this.handleChipKeyDown),e.removeEventListener("focus",this.handleChipFocus),this.chipsWithListeners.delete(t))}focusChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;this.focusedChipIndex=t,this.resetChipTabIndices();let e=this.chips[t],i=this.getFocusTargetForChip(e);i.setAttribute("tabindex","0"),i.focus({preventScroll:!0}),this.scrollChipIntoView(e),this.isInputFocused=!1}focusInputField(){this.focusedChipIndex=-1,this.resetChipTabIndices(),this.navigatingToInput=!0,this.inputElement.focus({preventScroll:!0})}removeChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;let e=this.chips[t];this.removeChipListeners(e),this.removeChip(e),requestAnimationFrame(()=>{if(this.chips&&this.chips.length>0){let i=Math.min(t,this.chips.length-1);this.focusChipAtIndex(i)}else this.focusInputField()})}resetChipTabIndices(){var t;(t=this.chips)==null||t.forEach(e=>{this.getFocusTargetForChip(e).setAttribute("tabindex","-1")})}getFocusTargetForChip(t){var e;if(t.matches(fa)){let i=(e=t.shadowRoot)==null?void 0:e.querySelector('[part="close-icon"]');if(i)return i}return t}getChipForFocusTarget(t){var i,a,d;if((i=this.chips)!=null&&i.includes(t))return t;let e=(a=t.getRootNode())==null?void 0:a.host;return e&&((d=this.chips)!=null&&d.includes(e))?e:null}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="searchfield-container"]'))!=null?e:null}scrollChipIntoView(t){let e=this.scrollContainer;if(!e)return;if(this.chips&&this.chips.indexOf(t)===0){e.scrollLeft=0;return}let i=e.getBoundingClientRect(),a=t.getBoundingClientRect();a.left<i.left?e.scrollLeft-=i.left-a.left:a.right>i.right&&(e.scrollLeft+=a.right-i.right)}scrollContainerToEnd(){let t=this.scrollContainer,e=this.inputElement;if(!t||!e)return;let a=e.offsetLeft+e.offsetWidth-t.clientWidth;t.scrollLeft=Math.max(0,a)}render(){return S`
|
|
5946
5964
|
${this.renderLabelElement()}
|
|
5947
5965
|
<div
|
|
5948
5966
|
class="${qr({"mdc-focus-ring":this.isInputFocused})}"
|
|
@@ -5955,7 +5973,7 @@
|
|
|
5955
5973
|
</div>
|
|
5956
5974
|
${this.renderTrailingButton(this.hasChips)}
|
|
5957
5975
|
</div>
|
|
5958
|
-
`}};Is.styles=[...Xr.styles,...Dy],h([
|
|
5976
|
+
`}};Is.styles=[...Xr.styles,...Dy],h([Xt({slot:"filters"})],Is.prototype,"chips",2),h([dt()],Is.prototype,"isInputFocused",2),h([dt()],Is.prototype,"hasChips",2);var Aa=Is;Aa.register(Py);var eI=Aa;var rI=z`
|
|
5959
5977
|
:host::part(filters-container) {
|
|
5960
5978
|
display: flex;
|
|
5961
5979
|
flex-wrap: nowrap;
|
|
@@ -6162,7 +6180,7 @@
|
|
|
6162
6180
|
:host([soft-disabled])::part(base-text) {
|
|
6163
6181
|
--mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
6164
6182
|
}
|
|
6165
|
-
`,Uy=[oI,...xt(!0)];var mr=class extends
|
|
6183
|
+
`,Uy=[oI,...xt(!0)];var mr=class extends gi(Nt(bi(Ve(ue(oe(ee)))))){constructor(){super();this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=Hy.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||a.length===0)return;let d=i+1;if(d>=a.length&&(d=i-1),d===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(d),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?a[d]:a[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Ar}:not([disabled])`);this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Or(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 a;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((a=this.selectedOption)==null?void 0:a.value)&&this.navItems.length){let d=this.getFirstSelectedOption(),f=this.getFirstOption(),v=this.navItems.find(R=>R.value===i),x=null;if(v)x=v;else if(this.placeholder)x=null;else if(f)x=f;else if(d)x=d;else return;this.updateComplete.then(()=>{this.setSelectedOption(x)}).catch(R=>{this.onerror&&this.onerror(R)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,i=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{i&&i!==this.selectedOption?this.setSelectedOption(i):this.setSelectedOption(e);break}case"unselected":{i?this.setSelectedOption(i):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(e);break}case"disabled":{this.itemsStore.delete(e);break}default:break}}async firstUpdated(t){await this.updateComplete;let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let i=this.getFirstOption();this.setSelectedOption(i),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let e=t.target;e&&e.tagName===Ar.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,a;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),(a=this.inputElement)==null||a.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(a=>a.value===t||a.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=Bd(()=>{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 a;return(a=i.getAttribute("label"))==null?void 0:a.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)],a=this.filterOptionsBySearchKey(i,t),d=null;if(a.length)[d]=a;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],v=this.filterOptionsBySearchKey(i,t[0]),x=v.filter(R=>R===f);d=x.length?x[0]:v[0]}this.navItems.indexOf(d)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(d))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===re.DEFAULT)switch(e){case K.DOWN:case K.UP:case K.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case K.SPACE:t.preventDefault(),t.stopPropagation();break;case K.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case K.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===K.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()===re.DEFAULT&&e===K.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()===re.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,a,d,f;return S`
|
|
6166
6184
|
${this.renderLabel()}
|
|
6167
6185
|
<div part="container">
|
|
6168
6186
|
<div
|
|
@@ -6180,7 +6198,7 @@
|
|
|
6180
6198
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
|
6181
6199
|
aria-haspopup="${et.LISTBOX}"
|
|
6182
6200
|
aria-required="${this.required?"true":"false"}"
|
|
6183
|
-
aria-invalid="${this.helpTextType===
|
|
6201
|
+
aria-invalid="${this.helpTextType===te.ERROR?"true":"false"}"
|
|
6184
6202
|
aria-disabled="${tt(this.disabled||this.softDisabled)}"
|
|
6185
6203
|
aria-readonly="${tt(this.readonly)}"
|
|
6186
6204
|
>
|
|
@@ -6246,7 +6264,7 @@
|
|
|
6246
6264
|
</mdc-popover>
|
|
6247
6265
|
</div>
|
|
6248
6266
|
${this.renderHelperText()}
|
|
6249
|
-
`}};mr.styles=[...
|
|
6267
|
+
`}};mr.styles=[...ee.styles,...Uy],h([u({type:String})],mr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],mr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],mr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],mr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],mr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],mr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],mr.prototype,"backdropAppendTo",2),h([Ht(`[id="${Ac}"]`)],mr.prototype,"visualCombobox",2),h([dt()],mr.prototype,"selectedOption",2),h([dt()],mr.prototype,"displayPopover",2);var Tm=mr;Tm.register(zy);var sI=Tm;var xm=class extends Q{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},Am=xm;var Sc=V.constructTagName("selectlistbox");Am.register(Sc);var aI=Am;Ts.register(_o);var nI=Ts;var Gy=V.constructTagName("skeleton"),Ky={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},Sm={MOTION:!1,VARIANT:Ky.RECTANGULAR};var lI=z`
|
|
6250
6268
|
:host {
|
|
6251
6269
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
|
6252
6270
|
--mdc-skeleton-height: 100%;
|
|
@@ -6666,7 +6684,7 @@
|
|
|
6666
6684
|
:host([disabled][status='completed'])::part(status-icon) {
|
|
6667
6685
|
--mdc-icon-fill-color: var(--mds-color-theme-inverted-text-primary-disabled);
|
|
6668
6686
|
}
|
|
6669
|
-
`,Jy=[Tt,EI,...xt()];var qi=class extends Ot(Nt(ii(
|
|
6687
|
+
`,Jy=[Tt,EI,...xt()];var qi=class extends Ot(Nt(ii(Zt(Q)))){constructor(){super();this.variant=Nm.VARIANT;this.status=Nm.STATUS;this.label="";this.stepperContext=Ie.consume({host:this,context:Cs.Context});this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}willUpdate(t){var i;super.willUpdate(t);let e=(i=this.stepperContext)==null?void 0:i.value;e!=null&&e.variant&&this.variant!==e.variant&&(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}handleKeyDown(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.classList.add("pressed"),e===K.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.classList.remove("pressed"),e===K.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===ji.COMPLETED?S`<mdc-icon part="status-icon" name=${Cc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===ji.ERROR_CURRENT||this.status===ji.CURRENT?S`<mdc-icon part="status-icon" name=${Cc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===ji.NOT_STARTED||this.status===ji.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
|
|
6670
6688
|
>${this.stepNumber}</mdc-text
|
|
6671
6689
|
>`:U}renderHelpText(){if(!this.helpText)return U;let t=S`<mdc-text
|
|
6672
6690
|
part="help-text"
|
|
@@ -6916,7 +6934,7 @@
|
|
|
6916
6934
|
--mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
|
|
6917
6935
|
--mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
|
|
6918
6936
|
}
|
|
6919
|
-
`,...xt()],tE=xI;var Xi=class extends
|
|
6937
|
+
`,...xt()],tE=xI;var Xi=class extends pe(cc(ge)){constructor(){super(...arguments);this.active=wa.ACTIVE;this.variant=wa.VARIANT;this.size=wa.SIZE;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=et.TAB,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}setVariant(t){this.setAttribute("variant",Object.values(Om).includes(t)?t:wa.VARIANT)}setSize(t){this.setAttribute("size",Object.values(Rm).includes(t)?`${t}`:wa.SIZE.toString())}getFilledIconName(){return this.iconName?this.iconName.endsWith("-filled")?this.iconName:`${Zo(this.iconName)}-filled`:void 0}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("size")&&this.setSize(this.size),t.has("variant")&&this.setVariant(this.variant)}render(){return S`
|
|
6920
6938
|
<div part="container">
|
|
6921
6939
|
<div part="leading">
|
|
6922
6940
|
<slot name="prefix">
|
|
@@ -6948,7 +6966,7 @@
|
|
|
6948
6966
|
<slot name="postfix"></slot>
|
|
6949
6967
|
</div>
|
|
6950
6968
|
<div part="indicator"></div>
|
|
6951
|
-
`}};Xi.styles=[...
|
|
6969
|
+
`}};Xi.styles=[...ge.styles,...tE],h([u({type:Boolean,reflect:!0})],Xi.prototype,"active",2),h([u({type:String,reflect:!0})],Xi.prototype,"text",2),h([u({type:String,reflect:!0})],Xi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Xi.prototype,"size",2),h([u({type:String,reflect:!0,attribute:"tab-id"})],Xi.prototype,"tabId",2);var Zi=Xi;Zi.register(_a);var Nc=Zi;var Dm=n=>n.at(0),eE=n=>n.at(n.length-1),rE=(n,o)=>n.find(t=>t.tabId===o),Lc=n=>n.find(o=>o.active);var Mc=n=>{class o extends n{constructor(...e){super(...e),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.navItems||!this.activeTabId)return;let i=rE(this.navItems,this.activeTabId);if(!(i instanceof Nc))return;this.setActiveTab(i),e.get("activeTabId")&&this.fireTabChangeEvent(i)}}setActiveTab(e){var i;(i=this.navItems)==null||i.forEach(a=>{a===e?a.setAttribute("active",""):a.removeAttribute("active")})}fireTabChangeEvent(e){let i=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(i)}async handleNestedTabActiveChange(e){e.stopPropagation();let i=e.target;i instanceof Nc&&(this.activeTabId=i.tabId)}}return h([u({type:String,attribute:"active-tab-id",reflect:!0})],o.prototype,"activeTabId",2),o};var AI=[Vr,z`
|
|
6952
6970
|
:host {
|
|
6953
6971
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
|
6954
6972
|
--mdc-tablist-gap: 0.5rem;
|
|
@@ -6978,7 +6996,7 @@
|
|
|
6978
6996
|
:host mdc-button[prefix-icon='arrow-right-regular'] {
|
|
6979
6997
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
|
6980
6998
|
}
|
|
6981
|
-
`],iE=[...AI];var oE=V.constructTagName("tablist"),ka={FORWARD:"forward",BACKWARD:"backward"};var
|
|
6999
|
+
`],iE=[...AI];var oE=V.constructTagName("tablist"),ka={FORWARD:"forward",BACKWARD:"backward"};var xi=class extends gi(bi(Ot(Nt(Mc(Q))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.boundHandleFocus=t=>{this.handleFocus(t)};this.itemsStore=new Or(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(`${_a}: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 a=i+1;a>=this.navItems.length&&(a=i-1);let d=this.navItems.at(a);d instanceof Zi&&d.focus(),this.resetTabIndexes(a,!1)}}resetTabIndexAndSetFocus(t,e){var d;let i=super.resetTabIndexAndSetFocus(t,e,!1,!1),a=(d=this.navItems)==null?void 0:d.at(t);return a instanceof Zi&&a.focus(),this.handleArrowButtonVisibility(),i}async firstUpdated(){var i,a;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(d=>d.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=Dm(this.navItems))==null?void 0:i.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.boundHandleFocus)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.boundHandleFocus)}focus(t){let e=Lc(this.navItems);e?e.focus(t):super.focus(t)}async handleFocus(t){if(t.relatedTarget instanceof Zi||!(t.target instanceof Zi)||t.relatedTarget instanceof mo)return;let e=Lc(this.navItems||[]);if(!(e instanceof Zi))return;let i=this.navItems.findIndex(a=>a===e);this.resetTabIndexAndSetFocus(i,void 0)}shouldShowArrowButton(t){return t===ka.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=Lc(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var H,J,W;if(!this.navItems||!this.tabsContainer)return;let t=!1;((H=this.shadowRoot)==null?void 0:H.activeElement)instanceof mo&&(t=!0);let e=Dm(this.navItems),i=eE(this.navItems);if(!e||!i)return;let a=e.getBoundingClientRect().left,d=(J=this.tabsContainer)==null?void 0:J.getBoundingClientRect().left,f=i.getBoundingClientRect().right,v=(W=this.tabsContainer)==null?void 0:W.getBoundingClientRect().right,x=e.getBoundingClientRect().right,R=i.getBoundingClientRect().left;if(!this.isRtl()){a<=d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>v?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}x>v?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,R<d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var a;let e=this.isRtl()?-1:1,i=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(t===ka.FORWARD?e:i),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",i=a=>S` ${this.shouldShowArrowButton(a)?S`<mdc-button
|
|
6982
7000
|
variant="tertiary"
|
|
6983
7001
|
prefix-icon="arrow-${a===ka.FORWARD?t:e}-regular"
|
|
6984
7002
|
aria-label="Scroll tabs ${a===ka.FORWARD?t:e}"
|
|
@@ -6987,7 +7005,7 @@
|
|
|
6987
7005
|
<div part="container" role="${et.TABLIST}" tabindex="-1" aria-label="${tt(this.dataAriaLabel)}">
|
|
6988
7006
|
<slot></slot>
|
|
6989
7007
|
</div>
|
|
6990
|
-
${i(ka.FORWARD)}`}};
|
|
7008
|
+
${i(ka.FORWARD)}`}};xi.styles=[...Q.styles,...iE],xi.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},h([u({type:String,attribute:"data-aria-label"})],xi.prototype,"dataAriaLabel",2),h([Ht('[part="container"]')],xi.prototype,"tabsContainer",2),h([Ht("mdc-button:not(:focus-visible)")],xi.prototype,"notFocusedArrowButton",2),h([dt()],xi.prototype,"showForwardArrowButton",2),h([dt()],xi.prototype,"showBackwardArrowButton",2);var Pm=xi;Pm.register(oE);var SI=Pm;var sE=V.constructTagName("textarea"),Fm={HARD:"hard",SOFT:"soft"},aE={OFF:"off",ON:"on"},Oc={ROWS:5,COLS:40,WRAP:Fm.SOFT};var II=[z`
|
|
6991
7009
|
:host {
|
|
6992
7010
|
--mdc-textarea-text-color: var(--mds-color-theme-text-primary-normal);
|
|
6993
7011
|
--mdc-textarea-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -7112,7 +7130,7 @@
|
|
|
7112
7130
|
:host([disabled])::part(resize-button) {
|
|
7113
7131
|
cursor: default;
|
|
7114
7132
|
}
|
|
7115
|
-
`,...xt(!0)],nE=II;var He=class extends sc(Ot(Nt(Ve(
|
|
7133
|
+
`,...xt(!0)],nE=II;var He=class extends sc(Ot(Nt(Ve(ue(oe(cr)))))){constructor(){super(...arguments);this.rows=Oc.ROWS;this.wrap=Fm.SOFT;this.autocapitalize=ac.OFF;this.autocomplete=aE.OFF;this.resizable=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let e=t.currentTarget;e&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||Oc.ROWS,e.setPointerCapture(t.pointerId),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let e=t.clientY-this.resizeStartY,i=parseFloat(window.getComputedStyle(this.textarea).lineHeight),a=Math.round(e/i);this.rows=Math.max(1,this.resizeStartRows+a)};this.handlePointerUp=t=>{let e=t.currentTarget;e&&(t.type==="pointerup"&&e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),e.removeEventListener("pointermove",this.handlePointerMove),e.removeEventListener("pointerup",this.handlePointerUp),e.removeEventListener("lostpointercapture",this.handlePointerUp))}}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(e=>{this.onerror&&this.onerror(e)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===te.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange()),t.has("helpText")&&this.announceCharacterLimitWarning()}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceCharacterLimitWarning()}onChange(t){this.updateValue();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?U:S` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let e=this.rows||Oc.ROWS,i,a=this.getActionForKeyEvent(t);a===K.UP?(i=Math.max(1,e-1),i!==e&&this.keyDownEventHandled()):a===K.DOWN&&(i=e+1,this.keyDownEventHandled()),i!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=i)}render(){var t,e;return S`
|
|
7116
7134
|
${this.renderLabel()}
|
|
7117
7135
|
<div class="mdc-focus-ring" part="textarea-container">
|
|
7118
7136
|
<textarea
|
|
@@ -7159,7 +7177,7 @@
|
|
|
7159
7177
|
`:U}
|
|
7160
7178
|
</div>
|
|
7161
7179
|
${this.renderTextareaFooter()}
|
|
7162
|
-
`}};He.styles=[...cr.styles,...nE],h([u({type:String})],He.prototype,"placeholder",2),h([u({type:Number,reflect:!0})],He.prototype,"rows",2),h([u({type:Number})],He.prototype,"cols",2),h([u({type:String})],He.prototype,"wrap",2),h([u({type:String})],He.prototype,"autocapitalize",2),h([u({type:String})],He.prototype,"autocomplete",2),h([u({type:String})],He.prototype,"dirname",2),h([u({type:Number})],He.prototype,"maxlength",2),h([u({type:Number})],He.prototype,"minlength",2),h([u({type:Boolean,reflect:!0})],He.prototype,"resizable",2),h([u({type:String,attribute:"resize-button-aria-label"})],He.prototype,"resizeButtonAriaLabel",2),h([
|
|
7180
|
+
`}};He.styles=[...cr.styles,...nE],h([u({type:String})],He.prototype,"placeholder",2),h([u({type:Number,reflect:!0})],He.prototype,"rows",2),h([u({type:Number})],He.prototype,"cols",2),h([u({type:String})],He.prototype,"wrap",2),h([u({type:String})],He.prototype,"autocapitalize",2),h([u({type:String})],He.prototype,"autocomplete",2),h([u({type:String})],He.prototype,"dirname",2),h([u({type:Number})],He.prototype,"maxlength",2),h([u({type:Number})],He.prototype,"minlength",2),h([u({type:Boolean,reflect:!0})],He.prototype,"resizable",2),h([u({type:String,attribute:"resize-button-aria-label"})],He.prototype,"resizeButtonAriaLabel",2),h([Ht("textarea")],He.prototype,"inputElement",2);var $m=He;$m.register(sE);var CI=$m;var lE=V.constructTagName("timepicker"),Vm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Oo={TWELVE_HOUR:"12h",TWENTY_FOUR_HOUR:"24h"},zm="timepicker-triggerid",Bm="timepicker-listbox",Ue={TIME_FORMAT:Oo.TWELVE_HOUR,INTERVAL:30,MIN_HOUR_12:1,MAX_HOUR_12:12,MIN_HOUR_24:0,MAX_HOUR_24:23,MIN_MINUTE:0,MAX_MINUTE:59,DISABLE_FLIP:!1};var _I=z`
|
|
7163
7181
|
:host {
|
|
7164
7182
|
--mdc-timepicker-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
7165
7183
|
--mdc-timepicker-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -7346,7 +7364,7 @@
|
|
|
7346
7364
|
--mdc-timepicker-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
7347
7365
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
7348
7366
|
}
|
|
7349
|
-
`,dE=[_I,...xt(!0)];var Dt=class extends
|
|
7367
|
+
`,dE=[_I,...xt(!0)];var Dt=class extends ue(oe(ee)){constructor(){super(...arguments);this.timeFormat=Ue.TIME_FORMAT;this.interval=Ue.INTERVAL;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=Ue.DISABLE_FLIP;this.localeHoursLabel="";this.localeMinutesLabel="";this.localePeriodLabel="";this.localeHoursPlaceholder="";this.localeMinutesPlaceholder="";this.localePeriodPlaceholder="";this.localeAmLabel="";this.localePmLabel="";this.localeShowTimePickerLabel="";this.localeTimeOptionsLabel="";this.localeSpinbuttonDescription="";this.displayPopover=!1;this.internalHours="";this.internalMinutes="";this.internalPeriod="AM";this.focusedOptionIndex=-1;this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover&&(this.parseValueToInternal(),this.syncFormValue()),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}updated(t){super.updated(t),t.has("displayPopover")&&this.displayPopover&&this.focusMenuItemOnOpen()}focusMenuItemOnOpen(){this.focusedOptionIndex=this.getMenuItemFocusIndex(),this.updateComplete.then(()=>{window.requestAnimationFrame(()=>{this.focusCurrentMenuItem()})}).catch(()=>{})}getMenuItemFocusIndex(){let t=this.getTimeOptions(),e=this.internalToValue(),i=t.findIndex(a=>a.value===e);return i>=0?i:0}focusCurrentMenuItem(){var a;let t=(a=this.shadowRoot)==null?void 0:a.querySelector(`#${Bm}`);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===Oo.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===Oo.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 a=Math.floor(i/60),d=i%60,f=`${String(a).padStart(2,"0")}:${String(d).padStart(2,"0")}`,v;if(this.timeFormat===Oo.TWELVE_HOUR){let H=a<12?this.localeAmLabel:this.localePmLabel,J=a%12;J===0&&(J=12);let W=String(d).padStart(2,"0");v=`${J}:${W} ${H}`}else v=`${a}:${String(d).padStart(2,"0")}`;let x=!this.min||f>=this.min,R=!this.max||f<=this.max;x&&R&&t.push({label:v,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,a,d;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}(a=this.hoursInput)==null||a.focus(),(d=this.hoursInput)==null||d.select()}}handleBaseKeydown(t){var e;this.disabled||this.softDisabled||this.readonly||t.key===Lt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var a;let e=this.getTimeOptions(),i=e.length;if(i!==0)switch(t.key){case Lt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%i,this.focusCurrentMenuItem();break}case Lt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+i)%i,this.focusCurrentMenuItem();break}case Lt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<i&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case Lt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(a=this.dropdownButton)==null||a.focus();break}default:break}}handleHoursKeydown(t){this.handleSpinbuttonKeydown(t,"hours")}handleMinutesKeydown(t){this.handleSpinbuttonKeydown(t,"minutes")}handlePeriodKeydown(t){var e,i;switch(t.key){case Lt.ARROW_UP:case Lt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case Lt.TAB:break;case Lt.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select();break;default:{t.preventDefault();let a=this.localeAmLabel.charAt(0).toLowerCase(),d=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===a?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===d&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,e){var x,R,H,J,W,Z;let i=this.timeFormat===Oo.TWELVE_HOUR,a,d;e==="hours"?(a=i?Ue.MIN_HOUR_12:Ue.MIN_HOUR_24,d=i?Ue.MAX_HOUR_12:Ue.MAX_HOUR_24):(a=Ue.MIN_MINUTE,d=Ue.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,v=f?parseInt(f,10):a;switch(t.key){case Lt.ARROW_UP:{t.preventDefault(),v=v>=d?a:v+1,this.setSpinbuttonValue(e,v),this.commitValue();break}case Lt.ARROW_DOWN:{t.preventDefault(),v=v<=a?d:v-1,this.setSpinbuttonValue(e,v),this.commitValue();break}case Lt.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((x=this.minutesInput)==null||x.focus(),(R=this.minutesInput)==null||R.select()):i&&((H=this.periodInput)==null||H.focus(),(J=this.periodInput)==null||J.select());break}case Lt.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((W=this.hoursInput)==null||W.focus(),(Z=this.hoursInput)==null||Z.select());break}case Lt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,a,d)):t.preventDefault();break}}}handleDigitInput(t,e,i,a){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let d=parseInt(this.pendingDigits,10);d>a&&(d=a),d<i&&(d=i),this.setSpinbuttonValue(e,d),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else{let d=parseInt(this.pendingDigits,10),f=Math.floor(a/10);if(d>f){let v=d;v>a&&(v=a),v<i&&(v=i),this.setSpinbuttonValue(e,v),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,d),this.pendingDigitTimeout=setTimeout(()=>{let v=d;v<i&&(v=i),this.setSpinbuttonValue(e,v),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===Oo.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`
|
|
7350
7368
|
<mdc-option
|
|
7351
7369
|
label="${this.optionLabelFormatter?this.optionLabelFormatter(i.label,i.value):i.label}"
|
|
7352
7370
|
?selected="${i.value===e}"
|
|
@@ -7477,7 +7495,7 @@
|
|
|
7477
7495
|
</mdc-popover>
|
|
7478
7496
|
</div>
|
|
7479
7497
|
${this.helpText?this.renderHelperText():U}
|
|
7480
|
-
`}};Dt.styles=[...
|
|
7498
|
+
`}};Dt.styles=[...ee.styles,...dE],h([u({type:String,reflect:!0,attribute:"time-format"})],Dt.prototype,"timeFormat",2),h([u({type:Number,reflect:!0})],Dt.prototype,"interval",2),h([u({type:String,reflect:!0})],Dt.prototype,"placement",2),h([u({type:String,reflect:!0})],Dt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Dt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Dt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Dt.prototype,"backdropAppendTo",2),h([u({type:String,reflect:!0})],Dt.prototype,"min",2),h([u({type:String,reflect:!0})],Dt.prototype,"max",2),h([u({type:String,attribute:"locale-hours-label"})],Dt.prototype,"localeHoursLabel",2),h([u({type:String,attribute:"locale-minutes-label"})],Dt.prototype,"localeMinutesLabel",2),h([u({type:String,attribute:"locale-period-label"})],Dt.prototype,"localePeriodLabel",2),h([u({type:String,attribute:"locale-hours-placeholder"})],Dt.prototype,"localeHoursPlaceholder",2),h([u({type:String,attribute:"locale-minutes-placeholder"})],Dt.prototype,"localeMinutesPlaceholder",2),h([u({type:String,attribute:"locale-period-placeholder"})],Dt.prototype,"localePeriodPlaceholder",2),h([u({type:String,attribute:"locale-am-label"})],Dt.prototype,"localeAmLabel",2),h([u({type:String,attribute:"locale-pm-label"})],Dt.prototype,"localePmLabel",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],Dt.prototype,"prefixIcon",2),h([u({attribute:!1})],Dt.prototype,"optionLabelFormatter",2),h([u({type:String,attribute:"locale-show-time-picker-label"})],Dt.prototype,"localeShowTimePickerLabel",2),h([u({type:String,attribute:"locale-time-options-label"})],Dt.prototype,"localeTimeOptionsLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Dt.prototype,"localeSpinbuttonDescription",2),h([Ht('mdc-button[part="icon-container"]')],Dt.prototype,"dropdownButton",2),h([Ht("#hours-spinbutton")],Dt.prototype,"hoursInput",2),h([Ht("#minutes-spinbutton")],Dt.prototype,"minutesInput",2),h([Ht("#period-spinbutton")],Dt.prototype,"periodInput",2),h([dt()],Dt.prototype,"displayPopover",2),h([dt()],Dt.prototype,"internalHours",2),h([dt()],Dt.prototype,"internalMinutes",2),h([dt()],Dt.prototype,"internalPeriod",2),h([dt()],Dt.prototype,"focusedOptionIndex",2);var Hm=Dt;Hm.register(lE);var wI=Hm;var kI=[z`
|
|
7481
7499
|
:host {
|
|
7482
7500
|
display: block;
|
|
7483
7501
|
position: relative;
|
|
@@ -7491,16 +7509,16 @@
|
|
|
7491
7509
|
:host::part(typewriter-hidden) {
|
|
7492
7510
|
display: none;
|
|
7493
7511
|
}
|
|
7494
|
-
`],cE=kI;var hE=V.constructTagName("typewriter"),_s={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},
|
|
7495
|
-
<div part="${
|
|
7512
|
+
`],cE=kI;var hE=V.constructTagName("typewriter"),_s={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},Ai={TYPE:Me.TYPE,TEXT_ELEMENT_TAGNAME:Me.TEXT_ELEMENT_TAGNAME,CSS_PART_TEXT:"text",CSS_PART_CONTAINER:"container",CSS_PART_HIDDEN:"typewriter-hidden",CHILDREN:"",SPEED:"normal",CUSTOM_EVENT:{TYPING_COMPLETE:"typing-complete"}};var Zr=class extends Q{constructor(){super(...arguments);this.type=Ai.TYPE;this.tagname=Ai.TEXT_ELEMENT_TAGNAME;this.speed=Ai.SPEED;this.maxQueueSize=Number.MAX_SAFE_INTEGER;this.displayedText="";this.originalText="";this.currentIndex=0;this.typingTimeout=null;this.pendingTimeouts=new Set;this.textChunkQueue=[];this.previousTextContent="";this.typingComplete=!0}connectedCallback(){super.connectedCallback(),this.createTimeout(()=>{this.captureAndProcessContent()},0)}disconnectedCallback(){this.clearTypingAnimation(),this.clearAllTimeouts(),super.disconnectedCallback()}createTimeout(t,e){let i=window.setTimeout(()=>{this.pendingTimeouts.delete(i),t()},e);return this.pendingTimeouts.add(i),i}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,e,i){t&&(this.maxQueueSize<Number.MAX_SAFE_INTEGER&&this.textChunkQueue.length>=this.maxQueueSize&&this.textChunkQueue.splice(0,this.textChunkQueue.length-this.maxQueueSize+1),this.textChunkQueue.push({text:t,speed:e,instant:i}),this.processChunkQueue())}addInstantTextChunk(t){this.addTextChunk(t,void 0,!0)}processChunkQueue(){this.textChunkQueue.length>0&&this.processNextChunk()}processNextChunk(){if(this.textChunkQueue.length===0)return;let t=this.textChunkQueue.shift(),e=this.speed;t.speed!==void 0&&(this.speed=t.speed),this.originalText+=t.text,this.typingComplete=!1,t.instant?(this.displayedText=this.originalText,this.currentIndex=this.originalText.length,this.typingComplete=!0,this.requestUpdate(),t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(Ai.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))):this.startTypingAnimation(()=>{t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(Ai.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return _s.SLOW;case"fast":return _s.FAST;case"very-slow":return _s.VERY_SLOW;case"very-fast":return _s.VERY_FAST;case"normal":return _s.NORMAL;default:{let e=parseInt(t,10);return Number.isNaN(e)?_s.NORMAL:Math.max(10,e)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!t)return;let e=t.assignedNodes().filter(a=>a.nodeType===Node.TEXT_NODE||a.nodeType===Node.ELEMENT_NODE).map(a=>a.textContent||"").join("");e!==this.previousTextContent&&(this.displayedText===""||!e.includes(this.displayedText)?(this.originalText=e,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=e,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=e,this.startTypingAnimation())}startTypingAnimation(t){if(this.clearTypingAnimation(),this.displayedText===this.originalText){this.typingComplete=!0,t&&this.createTimeout(()=>{t()},0);return}this.currentIndex=this.displayedText.length,this.typingComplete=!1;let e=()=>{if(this.currentIndex<this.originalText.length){let i=this.originalText[this.currentIndex],a=this.displayedText+i;a!==this.displayedText&&(this.displayedText=a,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(Ai.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return S`
|
|
7513
|
+
<div part="${Ai.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
|
|
7496
7514
|
<mdc-text
|
|
7497
|
-
part="${
|
|
7515
|
+
part="${Ai.CSS_PART_TEXT}"
|
|
7498
7516
|
type="${this.type}"
|
|
7499
7517
|
tagname="${tt(this.tagname)}"
|
|
7500
7518
|
aria-label="${this.originalText}"
|
|
7501
7519
|
>${this.displayedText}</mdc-text
|
|
7502
7520
|
>
|
|
7503
|
-
<slot @slotchange=${this.handleSlotChange} part="${
|
|
7521
|
+
<slot @slotchange=${this.handleSlotChange} part="${Ai.CSS_PART_HIDDEN}"></slot>
|
|
7504
7522
|
</div>
|
|
7505
7523
|
`}};Zr.styles=[...Q.styles,...cE],h([u({attribute:"type",reflect:!0,type:String})],Zr.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Zr.prototype,"tagname",2),h([u({attribute:"speed",reflect:!0})],Zr.prototype,"speed",2),h([u({attribute:"max-queue-size",type:Number,reflect:!0})],Zr.prototype,"maxQueueSize",2),h([dt()],Zr.prototype,"displayedText",2),h([dt()],Zr.prototype,"originalText",2),h([dt()],Zr.prototype,"typingComplete",2);var Um=Zr;Um.register(hE);var NI=Um;var Rc=V.constructTagName("themeprovider"),Gm={THEMECLASS:"mds-theme-stable-darkWebex"};var Dc=class{constructor(o){this.themeclass=o}};Dc.context=Rc;var Pc=Dc;var LI=z`
|
|
7506
7524
|
:host {
|
|
@@ -7522,7 +7540,7 @@
|
|
|
7522
7540
|
* {
|
|
7523
7541
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
|
7524
7542
|
}
|
|
7525
|
-
`,pE=[LI];var Na=class extends Se{constructor(){super({context:Pc.context,initialValue:new Pc(Gm.THEMECLASS)});this.themeclass=Gm.THEMECLASS}static get Context(){return Pc.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Na.styles=[...Se.styles,...pE],h([dt()],Na.prototype,"currentThemeClass",2),h([u({type:String})],Na.prototype,"themeclass",2);var Km=Na;Km.register(Rc);var MI=Km;var mE=V.constructTagName("toast"),al={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Fc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},ur={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:_r[20],BUTTON:
|
|
7543
|
+
`,pE=[LI];var Na=class extends Se{constructor(){super({context:Pc.context,initialValue:new Pc(Gm.THEMECLASS)});this.themeclass=Gm.THEMECLASS}static get Context(){return Pc.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Na.styles=[...Se.styles,...pE],h([dt()],Na.prototype,"currentThemeClass",2),h([u({type:String})],Na.prototype,"themeclass",2);var Km=Na;Km.register(Rc);var MI=Km;var mE=V.constructTagName("toast"),al={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Fc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},ur={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:_r[20],BUTTON:Oi,PRIMARY_BUTTON:Ut.PRIMARY,SECONDARY_BUTTON:Ut.SECONDARY,TERTIARY_BUTTON:Ut.TERTIARY,VARIANT:al.CUSTOM};var uE=n=>{switch(n){case al.SUCCESS:return Fc.SUCCESS_ICON_NAME;case al.WARNING:return Fc.WARNING_ICON_NAME;case al.ERROR:return Fc.ERROR_ICON_NAME;default:return null}};var OI=z`
|
|
7526
7544
|
:host {
|
|
7527
7545
|
--mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
7528
7546
|
--mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -7664,7 +7682,7 @@
|
|
|
7664
7682
|
></mdc-button>
|
|
7665
7683
|
</div>
|
|
7666
7684
|
${this.renderFooter()}
|
|
7667
|
-
`}};Re.styles=[...Q.styles,...fE],h([
|
|
7685
|
+
`}};Re.styles=[...Q.styles,...fE],h([Ht("[part='toast-header']")],Re.prototype,"headerTextElement",2),h([u({type:String,reflect:!0})],Re.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],Re.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Re.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],Re.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Re.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"show-more-text"})],Re.prototype,"showMoreText",2),h([u({type:String,reflect:!0,attribute:"show-less-text"})],Re.prototype,"showLessText",2),h([dt()],Re.prototype,"isDetailVisible",2),h([dt()],Re.prototype,"hasDetailedSlot",2),h([dt()],Re.prototype,"hasOverflowingHeaderText",2),h([Xt({slot:"toast-body-detailed",flatten:!0})],Re.prototype,"detailedElements",2),h([dt()],Re.prototype,"hasFooterButtons",2);var Wm=Re;Wm.register(mE);var RI=Wm;var DI=[Tt,z`
|
|
7668
7686
|
:host {
|
|
7669
7687
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
7670
7688
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -7742,7 +7760,7 @@
|
|
|
7742
7760
|
:host([soft-disabled]) {
|
|
7743
7761
|
pointer-events: none;
|
|
7744
7762
|
}
|
|
7745
|
-
`,...xt(!0)],vE=DI;var ws=class extends Nt(
|
|
7763
|
+
`,...xt(!0)],vE=DI;var ws=class extends Nt(yi(Ve(ue(oe(cr))))){constructor(){super(...arguments);this.checked=!1;this.size=Zp.SIZE;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:U}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===K.SPACE&&t.preventDefault(),e===K.ENTER&&this.getKeyboardNavMode()===re.DEFAULT&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(Qn).includes(t)?t:Zp.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return S`
|
|
7746
7764
|
<mdc-statictoggle
|
|
7747
7765
|
?checked="${this.checked}"
|
|
7748
7766
|
?disabled="${this.disabled}"
|
|
@@ -7805,7 +7823,7 @@
|
|
|
7805
7823
|
::slotted(mdc-listitem) {
|
|
7806
7824
|
position: relative;
|
|
7807
7825
|
}
|
|
7808
|
-
`],CE=BI;var _E=V.constructTagName("virtualizedlist"),rot=V.constructTagName("virtualizedwrapper"),La={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var fr=class extends oe(Ki){constructor(){super();this.virtualizerProps=La.VIRTUALIZER_PROPS;this.loop=La.LOOP;this.scrollAnchoring=La.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=La.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(a=>a===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Gn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Zt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:La.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,a;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let d=(a=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?a:"data-index";this.virtualizedNavItems=new Bc(super.navItems,f=>Number(f.getAttribute(d)),()=>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 Vc(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!==Gn.VERTICAL&&(this.orientation=Gn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,a;this.observeSizeChanges&&((a=(i=this.virtualizer)==null?void 0:i.measureElement)==null||a.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 a,d;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-((a=t==null?void 0:t.count)!=null?a:0)),v=this.selectedIndex,x=this.firstKey,R=new zc(v-f,v+f,{includeEnd:!0}),H=(d=Array.from(R).find(W=>e.options.getItemKey(W)===this.selectedKey))!=null?d:this.selectedIndex;if(this.setSelectedIndex(H),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&v!==this.selectedIndex||!this.focusWithin&&this.firstKey!==x){let W=e.measurementsCache[this.selectedIndex].end-i[v].end;this.scrollRef.scrollTop+=W}}}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,a,d,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(d=(a=this.virtualizer)==null?void 0:a.getVirtualItems)==null?void 0:d.call(a))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var v,x,R,H;let{navItems:e,virtualizerProps:i,virtualizer:a}=this,d=(x=(v=i.rangeExtractor)==null?void 0:v.call(i,t))!=null?x:qm(t);return this.hiddenIndexes.forEach(J=>{let W=e.at(J);W&&(W.removeAttribute("data-virtualized-hidden"),W.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(H=(R=this.virtualizer)==null?void 0:R.options.getItemKey(this.firstIndex))!=null?H:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(J=>{var W;d.includes(J)||(J<t.startIndex&&J>=0&&(d.unshift(J),this.hiddenIndexes.push(J)),J>t.endIndex&&J<((W=a==null?void 0:a.options.count)!=null?W:0)&&(d.push(J),this.hiddenIndexes.push(J)))}),this.updateHiddenItemsPosition(t),d.sort((J,W)=>J-W),d}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:a}=this;if(!a||i.count===0)return;let{measurementsCache:d}=a;this.hiddenIndexes.forEach(f=>{let v=e.at(f);if(v){let x=Math.max(t.startIndex-t.overscan,0),R=d[x],H=d[f];v.setAttribute("data-virtualized-hidden","true"),v.style.setProperty("--mdc-virtualizedlist-hidden-top",`${H.start-R.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){var i;if(e==="added"){let a=this.isElementSelected(t);if(t.tabIndex=a?0:-1,!a&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let d=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);d!==void 0&&this.setSelectedIndex(d)}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,a,d,f;switch(this.getActionForKeyEvent(t)){case K.HOME:{(a=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||a.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case K.END:{let v=this.virtualizerProps.count-1;(f=(d=this.virtualizer)==null?void 0:d.scrollToIndex)==null||f.call(d,v,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(v));break}case K.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 a=t;a>=0&&a<i;a+=e)if(this.isItemNavigable(a))return a;return null}resetTabIndexAndSetFocus(t,e,i=!0,a=i){if(this.navItems.find(v=>{var x;return((x=this.virtualizer)==null?void 0:x.indexFromElement(v))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let v=t>=e?1:-1,x=this.findNextNavigableIndex(t+v,v);return x!==null?this.resetTabIndexAndSetFocus(x,e,i,a):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,a),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,a);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,a;(a=(i=this.virtualizer).scrollToIndex)==null||a.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var a;let t=this.virtualItems.find(({index:d})=>!this.hiddenIndexes.includes(d)),e=(a=t==null?void 0:t.start)!=null?a: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`
|
|
7826
|
+
`],CE=BI;var _E=V.constructTagName("virtualizedlist"),iot=V.constructTagName("virtualizedwrapper"),La={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var fr=class extends oe(Ki){constructor(){super();this.virtualizerProps=La.VIRTUALIZER_PROPS;this.loop=La.LOOP;this.scrollAnchoring=La.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=La.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(a=>a===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Gn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Qt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:La.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,a;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let d=(a=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?a:"data-index";this.virtualizedNavItems=new Bc(super.navItems,f=>Number(f.getAttribute(d)),()=>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 Vc(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!==Gn.VERTICAL&&(this.orientation=Gn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,a;this.observeSizeChanges&&((a=(i=this.virtualizer)==null?void 0:i.measureElement)==null||a.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 a,d;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-((a=t==null?void 0:t.count)!=null?a:0)),v=this.selectedIndex,x=this.firstKey,R=new zc(v-f,v+f,{includeEnd:!0}),H=(d=Array.from(R).find(W=>e.options.getItemKey(W)===this.selectedKey))!=null?d:this.selectedIndex;if(this.setSelectedIndex(H),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&v!==this.selectedIndex||!this.focusWithin&&this.firstKey!==x){let W=e.measurementsCache[this.selectedIndex].end-i[v].end;this.scrollRef.scrollTop+=W}}}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,a,d,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(d=(a=this.virtualizer)==null?void 0:a.getVirtualItems)==null?void 0:d.call(a))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var v,x,R,H;let{navItems:e,virtualizerProps:i,virtualizer:a}=this,d=(x=(v=i.rangeExtractor)==null?void 0:v.call(i,t))!=null?x:qm(t);return this.hiddenIndexes.forEach(J=>{let W=e.at(J);W&&(W.removeAttribute("data-virtualized-hidden"),W.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(H=(R=this.virtualizer)==null?void 0:R.options.getItemKey(this.firstIndex))!=null?H:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(J=>{var W;d.includes(J)||(J<t.startIndex&&J>=0&&(d.unshift(J),this.hiddenIndexes.push(J)),J>t.endIndex&&J<((W=a==null?void 0:a.options.count)!=null?W:0)&&(d.push(J),this.hiddenIndexes.push(J)))}),this.updateHiddenItemsPosition(t),d.sort((J,W)=>J-W),d}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:a}=this;if(!a||i.count===0)return;let{measurementsCache:d}=a;this.hiddenIndexes.forEach(f=>{let v=e.at(f);if(v){let x=Math.max(t.startIndex-t.overscan,0),R=d[x],H=d[f];v.setAttribute("data-virtualized-hidden","true"),v.style.setProperty("--mdc-virtualizedlist-hidden-top",`${H.start-R.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){var i;if(e==="added"){let a=this.isElementSelected(t);if(t.tabIndex=a?0:-1,!a&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let d=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);d!==void 0&&this.setSelectedIndex(d)}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,a,d,f;switch(this.getActionForKeyEvent(t)){case K.HOME:{(a=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||a.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case K.END:{let v=this.virtualizerProps.count-1;(f=(d=this.virtualizer)==null?void 0:d.scrollToIndex)==null||f.call(d,v,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(v));break}case K.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 a=t;a>=0&&a<i;a+=e)if(this.isItemNavigable(a))return a;return null}resetTabIndexAndSetFocus(t,e,i=!0,a=i){if(this.navItems.find(v=>{var x;return((x=this.virtualizer)==null?void 0:x.indexFromElement(v))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let v=t>=e?1:-1,x=this.findNextNavigableIndex(t+v,v);return x!==null?this.resetTabIndexAndSetFocus(x,e,i,a):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,a),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,a);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,a;(a=(i=this.virtualizer).scrollToIndex)==null||a.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var a;let t=this.virtualItems.find(({index:d})=>!this.hiddenIndexes.includes(d)),e=(a=t==null?void 0:t.start)!=null?a: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`
|
|
7809
7827
|
<slot name="list-header"></slot>
|
|
7810
7828
|
<div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
|
|
7811
7829
|
<div part="wrapper">
|
|
@@ -7814,7 +7832,7 @@
|
|
|
7814
7832
|
</div>
|
|
7815
7833
|
</div>
|
|
7816
7834
|
</div>
|
|
7817
|
-
`}};fr.styles=[...Ki.styles,...CE],h([u({type:Object})],fr.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],fr.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],fr.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],fr.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],fr.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],fr.prototype,"atBottomThreshold",2),h([
|
|
7835
|
+
`}};fr.styles=[...Ki.styles,...CE],h([u({type:Object})],fr.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],fr.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],fr.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],fr.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],fr.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],fr.prototype,"atBottomThreshold",2),h([Ht('[part="scroll"]',!0)],fr.prototype,"scrollRef",2),h([Ht('[part="wrapper"]',!0)],fr.prototype,"wrapperRef",2),h([Ht('[part="container"]',!0)],fr.prototype,"containerRef",2),h([If({passive:!0})],fr.prototype,"onScrollHandler",1);var Zm=fr;Zm.register(_E);var HI=Zm;ge.register(wf);var UI=ge;var wE=V.constructTagName("combobox"),Qm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Jm={MATCH_STARTS_WITH:"match-starts-with",NONE:"none"},kE="list";var tu="combobox-trigger-id";var Ro=class{static dispatchComboboxEvent(o,t,e,i=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:e==null?void 0:e.value,label:e==null?void 0:e.label},composed:!0,bubbles:i}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var GI=z`
|
|
7818
7836
|
:host {
|
|
7819
7837
|
--mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
7820
7838
|
--mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -7923,7 +7941,7 @@
|
|
|
7923
7941
|
--mdc-icon-fill-color: ButtonText;
|
|
7924
7942
|
}
|
|
7925
7943
|
}
|
|
7926
|
-
`,NE=[GI];var ke=class extends Ot(Nt(
|
|
7944
|
+
`,NE=[GI];var ke=class extends Ot(Nt(bi(Ve(ue(oe(yi(ee))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.filter=Jm.MATCH_STARTS_WITH;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(d=>d.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let d=t;if(d&&(!this.isValidItem(d)||d.tabIndex!==0))return;let f=this.navItems.findIndex(x=>x===d);if(f===-1)return;let v=f+1;v>=this.navItems.length&&(v=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled"){this.updateHiddenOptions();return}let e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Or(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}get listboxId(){return`${this.inputId}-listbox`}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(Ar)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}matchesFilter(t,e){return typeof this.filter=="function"?this.filter(t,e):this.filter===Jm.NONE?!0:this.compareOptionWithValue(t,e)}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.matchesFilter(e,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,e=!0,i=!1){let a=(t==null?void 0:t.getAttribute("label"))||"",d=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===d&&this.filteredValue===a)){if(this.controlType==="controlled"&&!i){e&&(Ro.onInputCombobox(this,t),Ro.onChangeCombobox(this,t));return}this.filteredValue=a,this.value=d,this.lastCommittedValue=d,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!i&&t&&(Ro.onInputCombobox(this,t),Ro.onChangeCombobox(this,t))}}resetSelectedValue(){this.controlType!=="controlled"&&(this.value=""),this.internals.setFormValue(this.value),this.resetHelpText()}resetHelpText(){this.invalidCustomValueText&&this.helpText===this.invalidCustomValueText&&(this.helpText="",this.helpTextType=te.DEFAULT)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t==="value"&&this.navItems.length&&!(e===null&&i==="")){let a=null;if(i!==""){let d=this.getFirstSelectedOption(),f=this.navItems.find(v=>v.value===i);if(f)a=f;else if(d)a=d;else if(this.placeholder)a=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(a,!1,!0)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let e=this.getFirstSelectedOption();e&&this.controlType!=="controlled"?(this.initialSelectedOption=e,this.setSelectedValue(e)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(i=>{i.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(e=>e.value===this.value);t&&this.setSelectedValue(t,!1,!0)}updated(t){var i,a;super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes));let e=(i=this.slottedListboxes)==null?void 0:i[0];e&&(e.id=this.listboxId,e.setAttribute("aria-label",this.label||this.dataAriaLabel||""),(a=this.visualCombobox)==null||a.setAttribute("aria-controls",this.listboxId)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,e;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var e;let t=this.initialSelectedOption||null;this.setSelectedValue(t,!1,!0),this.controlType!=="controlled"&&(this.filteredValue=(e=t==null?void 0:t.label)!=null?e:""),this.setInputValidity()}formStateRestoreCallback(t){let e=this.navItems.find(i=>i.value===t||i.label===t);this.setSelectedValue(e||null,!1,!0)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(e=>{e.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,e){t!==void 0&&(e?(t.setAttribute("data-focused",""),this.openTooltipIfExists(t)):(t.removeAttribute("data-focused"),this.closeTooltipIfExists(t)),t.setAttribute("aria-selected",e.toString()))}openTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"]`);i==null||i.setAttribute("visible","")}closeTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"][visible]`);i&&i.removeAttribute("visible")}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),e=t.findIndex(a=>a.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let i=this.navItems.find(a=>(a.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(i){this.setSelectedValue(i),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let a=this.navItems.find(d=>d.value===this.lastCommittedValue);this.setSelectedValue(a)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=te.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,i){var a;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[i],!0),(a=t[i])==null||a.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let e=this.getVisibleOptions(this.filteredValue).filter(d=>!d.hasAttribute("disabled")),i=e.findIndex(d=>d.hasAttribute("data-focused")),a=this.getKeyboardNavMode()===re.SPATIAL;switch(this.getActionForKeyEvent(t)){case K.DOWN:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=e.length-1===i?0:i+1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case K.UP:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=i===-1||i===0?e.length-1:i-1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case K.ENTER:{if(a&&!this.isOpen)this.openPopover();else{if(i===-1)return;this.setSelectedValue(e[i]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case K.ESCAPE:{i!==-1&&this.updateOptionAttributes(e[i],!1),e.length&&this.shouldDisplayPopover(e.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case K.TAB:{this.closePopover(),this.keyDownEventHandled();break}case K.HOME:case K.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(i=>{var f;let a=this.matchesFilter(i,this.filteredValue);a?i.removeAttribute("data-hidden"):i.setAttribute("data-hidden","");let d=i.parentElement;if(d&&d.matches(vc)){let v=d;e.add(v),a&&t.set(v,((f=t.get(v))!=null?f:0)+1)}}),e.forEach(i=>{var f;let a=((f=t.get(i))!=null?f:0)>0,d=i.nextElementSibling;a?(i.removeAttribute("data-hidden"),d&&d.matches($n)&&d.removeAttribute("data-hidden")):(i.setAttribute("data-hidden",""),d&&d.matches($n)&&d.setAttribute("data-hidden",""))})}handleInputChange(t){var e;t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(e=this.getFirstSelectedOption())==null||e.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),Ro.onInputCombobox(this,{value:this.filteredValue})}handleOptionsClick(t){var i;t.preventDefault(),t.stopPropagation();let e=(i=t.target.closest(Ar))!=null?i:null;e&&!e.hasAttribute("disabled")&&(this.setSelectedValue(e),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t||this.noResultText?this.isOpen:!1}renderNativeInput(){return S`
|
|
7927
7945
|
<input
|
|
7928
7946
|
id="${this.inputId}"
|
|
7929
7947
|
name="${this.name}"
|
|
@@ -7961,7 +7979,7 @@
|
|
|
7961
7979
|
aria-disabled="${this.disabled?"true":"false"}"
|
|
7962
7980
|
aria-expanded="${this.isOpen?"true":"false"}"
|
|
7963
7981
|
aria-haspopup="${et.LISTBOX}"
|
|
7964
|
-
aria-invalid="${this.helpTextType===
|
|
7982
|
+
aria-invalid="${this.helpTextType===te.ERROR?"true":"false"}"
|
|
7965
7983
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
7966
7984
|
aria-labelledby="${this.label?Kt.HEADING_ID:""}"
|
|
7967
7985
|
aria-readonly="${this.readonly?"true":"false"}"
|
|
@@ -8019,7 +8037,7 @@
|
|
|
8019
8037
|
</mdc-popover>
|
|
8020
8038
|
</div>
|
|
8021
8039
|
${this.renderHelperText()}
|
|
8022
|
-
`}};ke.styles=[...Xr.styles,...
|
|
8040
|
+
`}};ke.styles=[...Xr.styles,...ee.styles,...NE],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([Ht(`[role="${et.COMBOBOX}"]`)],ke.prototype,"visualCombobox",2),h([Ht('[part="combobox-button"]')],ke.prototype,"dropDownButton",2),h([Xt({selector:Sc})],ke.prototype,"slottedListboxes",2),h([dt()],ke.prototype,"isOpen",2),h([dt()],ke.prototype,"filteredValue",2);var eu=ke;eu.register(wE);var KI=eu;var LE=(n,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(n[i],i);return e},ME=Fi(class extends li{constructor(n){if(super(n),n.type!==yr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let i=[],a=[],d=0;for(let f of n)i[d]=e?e(f,d):d,a[d]=t(f,d),d++;return{values:a,keys:i}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,e]){var ot;let i=lv(n),{values:a,keys:d}=this.dt(o,t,e);if(!Array.isArray(i))return this.ut=d,a;let f=(ot=this.ut)!=null?ot:this.ut=[],v=[],x,R,H=0,J=i.length-1,W=0,Z=a.length-1;for(;H<=J&&W<=Z;)if(i[H]===null)H++;else if(i[J]===null)J--;else if(f[H]===d[W])v[W]=fo(i[H],a[W]),H++,W++;else if(f[J]===d[Z])v[Z]=fo(i[J],a[Z]),J--,Z--;else if(f[H]===d[Z])v[Z]=fo(i[H],a[Z]),Ys(n,v[Z+1],i[H]),H++,Z--;else if(f[J]===d[W])v[W]=fo(i[J],a[W]),Ys(n,i[H],i[J]),J--,W++;else if(x===void 0&&(x=LE(d,W,Z),R=LE(f,H,J)),x.has(f[H]))if(x.has(f[J])){let st=R.get(d[W]),ht=st!==void 0?i[st]:null;if(ht===null){let bt=Ys(n,i[H]);fo(bt,a[W]),v[W]=bt}else v[W]=fo(ht,a[W]),Ys(n,i[H],ht),i[st]=null;W++}else td(i[J]),J--;else td(i[H]),H++;for(;W<=Z;){let st=Ys(n,v[Z+1]);fo(st,a[W]),v[W++]=st}for(;H<=J;){let st=i[H++];st!==null&&td(st)}return this.ut=d,Jl(n,v),$e}});var OE=V.constructTagName("slider"),WI={START:"start",END:"end",UNDEFINED:void 0},Do={MIN:0,MAX:100,STEP:1,STATE:WI.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var YI=z`
|
|
8023
8041
|
:host {
|
|
8024
8042
|
width: 100%;
|
|
8025
8043
|
--mdc-slider-tooltip-left: 0;
|
|
@@ -8365,7 +8383,7 @@
|
|
|
8365
8383
|
::slotted(mdc-option) {
|
|
8366
8384
|
width: 100%;
|
|
8367
8385
|
}
|
|
8368
|
-
`,DE=[qI];var Po=class extends
|
|
8386
|
+
`,DE=[qI];var Po=class extends gi(bi(Q)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.multiple=!1;this.itemsStore=new Or(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}handleModifiedEvent(t){let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;case"selected":this.multiple?this.syncValueToFirstSelected():this.setSelectedOption(e,!1,!1);break;case"unselected":this.multiple?this.syncValueToFirstSelected():this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}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 a=i+1;a>=this.navItems.length&&(a=i-1),this.resetTabIndexes(a,!1)}}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${Ar}:not([disabled])`)}handleClick(t){let i=t.target.closest(Ar);!i||!this.isValidItem(i)||(this.multiple?this.toggleOptionSelection(i):this.setSelectedOption(i))}toggleOptionSelection(t){if(t.disabled||t.softDisabled)return;let e=t.hasAttribute("selected");t.toggleAttribute("selected",!e),this.syncValueToFirstSelected(),this.fireEvents()}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}syncValueToFirstSelected(){let t=this.getFirstSelectedOption();this.value=t==null?void 0:t.value,this.selectedOption=t!=null?t:null}getSelectedValues(){return this.itemsStore.items.reduce((t,e)=>{let{value:i}=e;return e.hasAttribute("selected")&&i!==void 0&&t.push(i),t},[])}setInitialFocus(){let t=this.getFirstSelectedOption();if(t){let e=this.itemsStore.items.indexOf(t);if(e!==-1){this.resetTabIndexAndSetFocus(e,void 0,!1);return}}super.setInitialFocus()}updated(t){if(t.has("multiple")&&(this.multiple?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")),t.has("value")&&!this.multiple){let e=this.itemsStore.items.find(i=>i.value===this.value);e?this.setSelectedOption(e,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,e=!0,i=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(i&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,e&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(e=>e.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selectedValues:this.getSelectedValues()},composed:!0,bubbles:!0}))}render(){return S`<slot part="container"></slot>`}};Po.styles=[...Bp.styles,...DE],h([u({type:String,reflect:!0})],Po.prototype,"name",2),h([u({type:String,reflect:!0})],Po.prototype,"value",2),h([u({type:Boolean,reflect:!0})],Po.prototype,"multiple",2),h([dt()],Po.prototype,"selectedOption",2);var iu=Po;var PE=V.constructTagName("listbox");iu.register(PE);var XI=iu;var FE=V.constructTagName("banner"),Ma={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},nl={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Hc={VARIANT:Ma.CUSTOM,PREFIX_ICON_SIZE:1.25};var ZI=z`
|
|
8369
8387
|
:host {
|
|
8370
8388
|
--mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
8371
8389
|
--mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -8527,7 +8545,7 @@
|
|
|
8527
8545
|
/* Keep the fallback here so consumer overrides inherit through nested trees. */
|
|
8528
8546
|
padding-inline-start: var(--mdc-checkboxtree-indent, 1.5rem);
|
|
8529
8547
|
}
|
|
8530
|
-
`,GE=[iC];var Kc=class extends
|
|
8548
|
+
`,GE=[iC];var Kc=class extends gi(pa){constructor(){super();this.loop="false";this.pendingSynchronization=!1;this.handleSlotChange=()=>{this.rootTree.synchronizeTree()};this.handleCheckboxModified=t=>{this.isNested||!(t.target instanceof HTMLElement)||!t.target.matches(is)||this.scheduleSynchronizeTree()};this.handleCheckboxChange=t=>{if(this.isNested||!(t.target instanceof HTMLElement)||!t.target.matches(is))return;let e=t.target,i=this.getChildTree(e);i&&this.setDescendantState(i,e.checked),this.synchronizeParentStates()};this.addEventListener("change",this.handleCheckboxChange),this.addEventListener("modified",this.handleCheckboxModified)}connectedCallback(){var e;let t=this.getAttribute("aria-label");super.connectedCallback(),this.generatedAriaLabel===void 0&&t===null&&(this.generatedAriaLabel=(e=this.label)!=null?e:""),this.synchronizeContext(),this.isNested||this.synchronizeTree()}get parentTree(){var t,e;return(e=(t=this.parentElement)==null?void 0:t.closest(Oa))!=null?e:null}get rootTree(){var t,e;return(e=(t=this.parentTree)==null?void 0:t.rootTree)!=null?e:this}get isNested(){return this.parentTree!==null}get navItems(){return this.isNested?[]:this.getCheckboxes().filter(t=>!t.disabled)}setInitialFocus(){this.isNested||this.synchronizeTabIndexes()}getCheckboxes(){return Array.from(this.querySelectorAll(is))}scheduleSynchronizeTree(){this.pendingSynchronization||(this.pendingSynchronization=!0,queueMicrotask(()=>{this.pendingSynchronization=!1,this.synchronizeTree()}))}getChildTree(t){let e=t.nextElementSibling;return e!=null&&e.matches(Oa)?e:null}getParentCheckbox(t){let e=t.previousElementSibling;return e!=null&&e.matches(is)?e:null}setDescendantState(t,e){t.getCheckboxes().forEach(i=>{if(i.disabled||i.readonly||i.softDisabled)return;let a=i;a.checked=e,a.indeterminate=!1})}synchronizeTree(){this.isNested||!this.isConnected||(this.synchronizeParentStates(),this.synchronizeTabIndexes())}synchronizeParentStates(){Array.from(this.querySelectorAll(Oa)).reverse().forEach(e=>{let i=this.getParentCheckbox(e),a=e.getCheckboxes();if(!i||a.length===0)return;let d=a.every(v=>v.checked&&!v.indeterminate),f=a.some(v=>v.checked||v.indeterminate);i.checked=d,i.indeterminate=!d&&f})}synchronizeTabIndexes(){var f;let t=this.getCheckboxes(),e=t.filter(v=>!v.disabled),i=e.find(v=>v.matches(":focus-within")),a=e.find(v=>v.getAttribute("tabindex")==="0"),d=(f=i!=null?i:a)!=null?f:e[0];t.forEach(v=>{v.setAttribute("tabindex",v===d?"0":"-1")})}synchronizeContext(){var t;if(this.isNested){this.removeAttribute("aria-description"),this.removeAttribute("aria-invalid"),this.removeAttribute("aria-label"),this.removeAttribute("role");return}this.role=et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.helpTextType===te.ERROR?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")}update(t){var i;let e=this.getAttribute("aria-label");super.update(t),!this.isNested&&(e===null||e===this.generatedAriaLabel)&&(this.generatedAriaLabel=(i=this.label)!=null?i:"",this.setAttribute("aria-label",this.generatedAriaLabel))}updated(t){super.updated(t),this.synchronizeContext()}render(){return S`
|
|
8531
8549
|
${this.isNested?U:S`<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>`}
|
|
8532
8550
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
8533
8551
|
`}};Kc.styles=[...pa.styles,...GE];var nu=Kc;nu.register(Oa);var oC=nu;})();
|