PageSourceSearch

https://app.sitediary.com/main-5PIOIIPI.js

js sitediary.com collected 2026-10-02 15:33:56 UTC 988,278 bytes, 67 lines download raw bytes

vendor: 9,772 bytes, line 1
1import{ab as Yp}from"./chunk-QAFJMYGY.js";import{M as wf,c as df}from"./chunk-DVDCCX7H.js";import{a as Mi,b as kc,c as _f}from"./chunk-2NAXMS6N.js";import"./chunk-AX5HDN22.js";import"./chunk-7VHMVKDE.js";import{a as kf}from"./chunk-R3W2URQB.js";import"./chunk-RR55QQGJ.js";import"./chunk-XTWCCMUC.js";import"./chunk-5UDIPTWH.js";import{a as gf}from"./chunk-CVT2DLQM.js";import{a as ff,b as mf}from"./chunk-JFNDPJ7S.js";import{$b as xo,A as _c,Ad as Nt,B as Pp,C as Ip,Cj as Di,E as Mp,Ed as sf,F as mo,Fd as af,Fh as Ef,Gb as Ii,Hb as Gp,Hh as Co,Ib as yo,J as Dp,Jb as So,Kb as Eo,L as Lp,Lb as qp,Nb as jp,Ob as Wp,Pb as Up,Pg as vf,Qb as Xp,Qh as xf,Sb as Zp,Sg as yf,Tb as mr,Ub as vn,Vb as Qp,Yb as gr,Zd as of,ac as Jp,bc as Kp,bf as lf,cc as lt,cf,cj as Cf,dc as ef,ec as vr,fc as yn,g as Cp,gc as tf,gj as Tf,j as Tp,jc as Lr,ji as bf,kc as rf,na as Np,o as dn,oa as Fp,og as Ft,p as ho,pj as Af,qh as Sf,rd as bo,s as po,sd as wo,t as Ap,ta as Vp,u as fo,ua as zp,ug as uf,v as _p,va as gn,vg as hf,wg as pf,x as kp,y as Is,ya as Ds,z as mn,za as Hp,zd as nf}from"./chunk-UBAXH6V4.js";import"./chunk-DZZ33C2C.js";import"./chunk-UHL5EGP4.js";import"./chunk-AE6OCAGT.js";import"./chunk-WNQ4N7RJ.js";import{d as Dr}from"./chunk-MDR7ZNAB.js";import"./chunk-M6VDPHYR.js";import"./chunk-QUJFQN2Y.js";import"./chunk-77UDRQFI.js";import"./chunk-YOCUDWD2.js";import"./chunk-S6W3HMN7.js";import"./chunk-65B75U4V.js";import{k as Bp,l as Ms,m as go,o as Rp,q as vo,s as Op,x as $p}from"./chunk-6RAPJHCY.js";import{$a as ks,Aa as As,Ab as so,Ad as wp,Ba as _s,Ea as mp,Ec as Ac,Fa as io,Fb as ao,Ha as gp,Hb as $e,Hc as ki,Ib as Sp,La as vp,M as _i,Nb as oo,Ob as wt,Tc as Ep,Wc as Pi,Xc as Ps,Yc as xp,_a as yp,c as bc,f as ro,fa as pp,hc as lo,ia as fn,jc as co,ma as fp,oc as uo,pc as dr,q as up,qa as Ae,qc as Jr,r as wc,ra as bt,rc as Mr,ta as no,td as Qt,ua as fe,ub as Qr,ud as Jt,va as jn,wa as dp,x as hp,yb as Cc,yc as Tc,zd as bp}from"./chunk-HF3GNTXE.js";import"./chunk-WVHTM5RI.js";import"./chunk-IN6HLDFE.js";import"./chunk-GIMG75PD.js";import"./chunk-O6S6PS7O.js";import"./chunk-W44OG23N.js";import"./chunk-XO4KXB5K.js";import"./chunk-Y5G7D4LO.js";import"./chunk-RBO7JAO4.js";import"./chunk-JTJHXIQP.js";import"./chunk-MTHZ7MWU.js";import"./chunk-WI5MSH4N.js";import"./chunk-726VUWOS.js";import"./chunk-CKP3SGE2.js";import"./chunk-MHZCDII3.js";import{a as G,b as Pe,f as ky,h as Py,k as Ir}from"./chunk-D7HCMPM6.js";var rv=ky((exports,module)=>{"use strict";typeof document<"u"&&typeof navigator<"u"&&(function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.lottie=e())})(exports,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,n=t.length,i;for(r=0;r<n;r+=1){i=t[r].prototype;for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e.prototype[s]=i[s])}}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=(function(){function t(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,n=this.audios.length;for(r=0;r<n;r+=1)this.audios[r].pause()},resume:function(){var r,n=this.audios.length;for(r=0;r<n;r+=1)this.audios[r].resume()},setRate:function(r){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,n=this.audios.length;for(r=0;r<n;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}})(),createTypedArray=(function(){function t(r,n){var i=0,s=[],a;switch(r){case"int16":case"uint8c":a=1;break;default:a=1.1;break}for(i=0;i<n;i+=1)s.push(a);return s}function e(r,n){return r==="float32"?new Float32Array(n):r==="int16"?new Int16Array(n):r==="uint8c"?new Uint8ClampedArray(n):t(r,n)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?e:t})();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],e,r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]})();function ProjectInterface$1(){return{}}BMMath.random=Math.random,BMMath.abs=function(t){var e=_typeof$6(t);if(e==="object"&&t.length){var r=createSizedArray(t.length),n,i=t.length;for(n=0;n<i;n+=1)r[n]=Math.abs(t[n]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,n){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,n){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=n<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(function(){var t=0;return function(){return t+=1,idPrefix$1+"__lottie_element_"+t}})();function HSVtoRGB(t,e,r){var n,i,s,a,o,l,c,u;switch(a=Math.floor(t*6),o=t*6-a,l=r*(1-e),c=r*(1-o*e),u=r*(1-(1-o)*e),a%6){case 0:n=r,i=u,s=l;break;case 1:n=c,i=r,s=l;break;case 2:n=l,i=r,s=u;break;case 3:n=l,i=c,s=r;break;case 4:n=u,i=l,s=r;break;case 5:n=r,i=l,s=c;break;default:break}return[n,i,s]}function RGBtoHSV(t,e,r){var n=Math.max(t,e,r),i=Math.min(t,e,r),s=n-i,a,o=n===0?0:s/n,l=n/255;switch(n){case i:a=0;break;case t:a=e-r+s*(e<r?6:0),a/=6*s;break;case e:a=r-t+s*2,a/=6*s;break;case r:a=t-e+s*4,a/=6*s;break;default:break}return[a,o,l]}function addSaturationToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=(function(){var t=[],e,r;for(e=0;e<256;e+=1)r=e.toString(16),t[e]=r.length===1?"0"+r:r;return function(n,i,s){return n<0&&(n=0),i<0&&(i=0),s<0&&(s=0),"#"+t[n]+t[i]+t[s]}})(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(t)}var dataManager=(function(){var t=1,e=[],r,n,i={onmessage:function(){},postMessage:function(h){r({data:h})}},s={postMessage:function(h){i.onmessage({data:h})}};function a(f){if(window.Worker&&window.Blob&&getWebWorker()){var h=new Blob(["var _workerSelf = self;
1 self.onmessage = ",f.toString()],{type:"text/javascript"}),p=URL.createObjectURL(h);return new Worker(p)}return r=f,i}function o(){n||(n=a(function(h){function p(){function E(V,T){var k,x,C=V.length,B,N,Y,ee;for(x=0;x<C;x+=1)if(k=V[x],"ks"in k&&!k.completed){if(k.completed=!0,k.hasMask){var H=k.masksProperties;for(N=H.length,B=0;B<N;B+=1)if(H[B].pt.k.i)w(H[B].pt.k);else for(ee=H[B].pt.k.length,Y=0;Y<ee;Y+=1)H[B].pt.k[Y].s&&w(H[B].pt.k[Y].s[0]),H[B].pt.k[Y].e&&w(H[B].pt.k[Y].e[0])}k.ty===0?(k.layers=y(k.refId,T),E(k.layers,T)):k.ty===4?S(k.shapes):k.ty===5&&O(k)}}function m(V,T){if(V){var k=0,x=V.length;for(k=0;k<x;k+=1)V[k].t===1&&(V[k].data.layers=y(V[k].data.refId,T),E(V[k].data.layers,T))}}function v(V,T){for(var k=0,x=T.length;k<x;){if(T[k].id===V)return T[k];k+=1}return null}function y(V,T){var k=v(V,T);return k?k.layers.__used?JSON.parse(JSON.stringify(k.layers)):(k.layers.__used=!0,k.layers):null}function S(V){var T,k=V.length,x,C;for(T=k-1;T>=0;T-=1)if(V[T].ty==="sh")if(V[T].ks.k.i)w(V[T].ks.k);else for(C=V[T].ks.k.length,x=0;x<C;x+=1)V[T].ks.k[x].s&&w(V[T].ks.k[x].s[0]),V[T].ks.k[x].e&&w(V[T].ks.k[x].e[0]);else V[T].ty==="gr"&&S(V[T].it)}function w(V){var T,k=V.i.length;for(T=0;T<k;T+=1)V.i[T][0]+=V.v[T][0],V.i[T][1]+=V.v[T][1],V.o[T][0]+=V.v[T][0],V.o[T][1]+=V.v[T][1]}function A(V,T){var k=T?T.split("."):[100,100,100];return V[0]>k[0]?!0:k[0]>V[0]?!1:V[1]>k[1]?!0:k[1]>V[1]?!1:V[2]>k[2]?!0:k[2]>V[2]?!1:null}var P=(function(){var V=[4,4,14];function T(x){var C=x.t.d;x.t.d={k:[{s:C,t:0}]}}function k(x){var C,B=x.length;for(C=0;C<B;C+=1)x[C].ty===5&&T(x[C])}return function(x){if(A(V,x.v)&&(k(x.layers),x.assets)){var C,B=x.assets.length;for(C=0;C<B;C+=1)x.assets[C].layers&&k(x.assets[C].layers)}}})(),_=(function(){var V=[4,7,99];return function(T){if(T.chars&&!A(V,T.v)){var k,x=T.chars.length;for(k=0;k<x;k+=1){var C=T.chars[k];C.data&&C.data.shapes&&(S(C.data.shapes),C.data.ip=0,C.data.op=99999,C.data.st=0,C.data.sr=1,C.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},T.chars[k].t||(C.data.shapes.push({ty:"no"}),C.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"})))}}}})(),L=(function(){var V=[5,7,15];function T(x){var C=x.t.p;typeof C.a=="number"&&(C.a={a:0,k:C.a}),typeof C.p=="number"&&(C.p={a:0,k:C.p}),typeof C.r=="number"&&(C.r={a:0,k:C.r})}function k(x){var C,B=x.length;for(C=0;C<B;C+=1)x[C].ty===5&&T(x[C])}return function(x){if(A(V,x.v)&&(k(x.layers),x.assets)){var C,B=x.assets.length;for(C=0;C<B;C+=1)x.assets[C].layers&&k(x.assets[C].layers)}}})(),R=(function(){var V=[4,1,9];function T(x){var C,B=x.length,N,Y;for(C=0;C<B;C+=1)if(x[C].ty==="gr")T(x[C].it);else if(x[C].ty==="fl"||x[C].ty==="st")if(x[C].c.k&&x[C].c.k[0].i)for(Y=x[C].c.k.length,N=0;N<Y;N+=1)x[C].c.k[N].s&&(x[C].c.k[N].s[0]/=255,x[C].c.k[N].s[1]/=255,x[C].c.k[N].s[2]/=255,x[C].c.k[N].s[3]/=255),x[C].c.k[N].e&&(x[C].c.k[N].e[0]/=255,x[C].c.k[N].e[1]/=255,x[C].c.k[N].e[2]/=255,x[C].c.k[N].e[3]/=255);else x[C].c.k[0]/=255,x[C].c.k[1]/=255,x[C].c.k[2]/=255,x[C].c.k[3]/=255}function k(x){var C,B=x.length;for(C=0;C<B;C+=1)x[C].ty===4&&T(x[C].shapes)}return function(x){if(A(V,x.v)&&(k(x.layers),x.assets)){var C,B=x.assets.length;for(C=0;C<B;C+=1)x.assets[C].layers&&k(x.assets[C].layers)}}})(),D=(function(){var V=[4,4,18];function T(x){var C,B=x.length,N,Y;for(C=B-1;C>=0;C-=1)if(x[C].ty==="sh")if(x[C].ks.k.i)x[C].ks.k.c=x[C].closed;else for(Y=x[C].ks.k.length,N=0;N<Y;N+=1)x[C].ks.k[N].s&&(x[C].ks.k[N].s[0].c=x[C].closed),x[C].ks.k[N].e&&(x[C].ks.k[N].e[0].c=x[C].closed);else x[C].ty==="gr"&&T(x[C].it)}function k(x){var C,B,N=x.length,Y,ee,H,U;for(B=0;B<N;B+=1){if(C=x[B],C.hasMask){var W=C.masksProperties;for(ee=W.length,Y=0;Y<ee;Y+=1)if(W[Y].pt.k.i)W[Y].pt.k.c=W[Y].cl;else for(U=W[Y].pt.k.length,H=0;H<U;H+=1)W[Y].pt.k[H].s&&(W[Y].pt.k[H].s[0].c=W[Y].cl),W[Y].pt.k[H].e&&(W[Y].pt.k[H].e[0].c=W[Y].cl)}C.ty===4&&T(C.shapes)}}return function(x){if(A(V,x.v)&&(k(x.layers),x.assets)){var C,B=x.assets.length;for(C=0;C<B;C+=1)x.assets[C].layers&&k(x.assets[C].layers)}}})();function M(V){V.__complete||(R(V),P(V),_(V),L(V),D(V),E(V.layers,V.assets),m(V.chars,V.assets),V.__complete=!0)}function O(V){V.t.a.length===0&&"m"in V.t.p}var z={};return z.completeData=M,z.checkColors=R,z.checkChars=_,z.checkPathProperties=L,z.checkShapes=D,z.completeLayers=E,z}if(s.dataManager||(s.dataManager=p()),s.assetLoader||(s.assetLoader=(function(){function E(v){var y=v.getResponseHeader("content-type");return y&&v.responseType==="json"&&y.indexOf("json")!==-1||v.response&&_typeof$5(v.response)==="object"?v.response:v.response&&typeof v.response=="string"?JSON.parse(v.response):v.responseText?JSON.parse(v.responseText):null}function m(v,y,S,w){var A,P=new XMLHttpRequest;try{P.responseType="json"}catch{}P.onreadystatechange=function(){if(P.readyState===4)if(P.status===200)A=E(P),S(A);else try{A=E(P),S(A)}catch(_){w&&w(_)}};try{P.open(["G","E","T"].join(""),v,!0)}catch{P.open(["G","E","T"].join(""),y+"/"+v,!0)}P.send()}return{load:m}})()),h.data.type==="loadAnimation")s.assetLoader.load(h.data.path,h.data.fullPath,function(E){s.dataManager.completeData(E),s.postMessage({id:h.data.id,payload:E,status:"success"})},function(){s.postMessage({id:h.data.id,status:"error"})});else if(h.data.type==="complete"){var g=h.data.animation;s.dataManager.completeData(g),s.postMessage({id:h.data.id,payload:g,status:"success"})}
vendor: 164,170 bytes, lines 1-2
1else h.data.type==="loadData"&&s.assetLoader.load(h.data.path,h.data.fullPath,function(E){s.postMessage({id:h.data.id,payload:E,status:"success"})},function(){s.postMessage({id:h.data.id,status:"error"})})}),n.onmessage=function(f){var h=f.data,p=h.id,g=e[p];e[p]=null,h.status==="success"?g.onComplete(h.payload):g.onError&&g.onError()})}function l(f,h){t+=1;var p="processId_"+t;return e[p]={onComplete:f,onError:h},p}function c(f,h,p){o();var g=l(h,p);n.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:g})}function u(f,h,p){o();var g=l(h,p);n.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:g})}function d(f,h,p){o();var g=l(h,p);n.postMessage({type:"complete",animation:f,id:g})}return{loadAnimation:c,loadData:u,completeAnimation:d}})(),ImagePreloader=(function(){var t=(function(){var m=createTag("canvas");m.width=1,m.height=1;var v=m.getContext("2d");return v.fillStyle="rgba(0,0,0,0)",v.fillRect(0,0,1,1),m})();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(m,v,y){var S="";if(m.e)S=m.p;else if(v){var w=m.p;w.indexOf("images/")!==-1&&(w=w.split("/")[1]),S=v+w}else S=y,S+=m.u?m.u:"",S+=m.p;return S}function i(m){var v=0,y=setInterval((function(){var S=m.getBBox();(S.width||v>500)&&(this._imageLoaded(),clearInterval(y)),v+=1}).bind(this),50)}function s(m){var v=n(m,this.assetsPath,this.path),y=createNS("image");isSafari?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){S.img=t,this._imageLoaded()}).bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",v),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var S={img:y,assetData:m};return S}function a(m){var v=n(m,this.assetsPath,this.path),y=createTag("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){S.img=t,this._imageLoaded()}).bind(this),!1),y.src=v;var S={img:y,assetData:m};return S}function o(m){var v={assetData:m},y=n(m,this.assetsPath,this.path);return dataManager.loadData(y,(function(S){v.img=S,this._footageLoaded()}).bind(this),(function(){v.img={},this._footageLoaded()}).bind(this)),v}function l(m,v){this.imagesLoadedCb=v;var y,S=m.length;for(y=0;y<S;y+=1)m[y].layers||(!m[y].t||m[y].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(m[y]))):m[y].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(m[y]))))}function c(m){this.path=m||""}function u(m){this.assetsPath=m||""}function d(m){for(var v=0,y=this.images.length;v<y;){if(this.images[v].assetData===m)return this.images[v].img;v+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function h(){return this.totalImages===this.loadedAssets}function p(){return this.totalFootages===this.loadedFootagesCount}function g(m,v){m==="svg"?(this._elementHelper=v,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function E(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return E.prototype={loadAssets:l,setAssetsPath:u,setPath:c,loadedImages:h,loadedFootages:p,destroy:f,getAsset:d,createImgData:a,createImageData:s,imageLoaded:e,footageLoaded:r,setCacheType:g},E})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,r){if(this._cbs[e])for(var n=this._cbs[e],i=0;i<n.length;i+=1)n[i](r)},addEventListener:function(e,r){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(r),(function(){this.removeEventListener(e,r)}).bind(this)},removeEventListener:function(e,r){if(!r)this._cbs[e]=null;else if(this._cbs[e]){for(var n=0,i=this._cbs[e].length;n<i;)this._cbs[e][n]===r&&(this._cbs[e].splice(n,1),n-=1,i-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}};var markerParser=(function(){function t(e){for(var r=e.split(`\r
2`),n={},i,s=0,a=0;a<r.length;a+=1)i=r[a].split(":"),i.length===2&&(n[i[0]]=i[1].trim(),s+=1);if(s===0)throw new Error;return n}return function(e){for(var r=[],n=0;n<e.length;n+=1){var i=e[n],s={time:i.tm,duration:i.dr};try{s.payload=JSON.parse(e[n].cm)}catch{try{s.payload=t(e[n].cm)}catch{s.payload={name:e[n].cm}}}r.push(s)}return r}})(),ProjectInterface=(function(){function t(e){this.compositions.push(e)}return function(){function e(r){for(var n=0,i=this.compositions.length;n<i;){if(this.compositions[n].data&&this.compositions[n].data.nm===r)return this.compositions[n].prepareFrame&&this.compositions[n].data.xt&&this.compositions[n].prepareFrame(this.currentFrame),this.compositions[n].compInterface;n+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}})(),renderers={},registerRenderer=function(e,r){renderers[e]=r};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(t)}var AnimationItem=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=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay="autoplay"in t?t.autoplay:!0,this.name=t.name?t.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(t,"autoloadSegments")?t.autoloadSegments:!0,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf("\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&_typeof$4(e)!=="object"&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},n=t.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";i==="false"?r.loop=!1:i==="true"?r.loop=!0:i!==""&&(r.loop=parseInt(i,10));var s=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:n.getNamedItem("bm-autoplay")?n.getNamedItem("bm-autoplay").value:!0;r.autoplay=s!=="false",r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"";var a=n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"";a==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,r,n=e.length,i=t.layers,s,a=i.length;for(s=0;s<a;s+=1)for(r=0;r<n;){if(e[r].id===i[s].id){e[r]=i[s];break}r+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,r=0;r<n;r+=1)this.animationData.assets.push(t.assets[r]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var r=typeof t=="number"?t:void 0,n=typeof e=="number"?e:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.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")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r<this.markers.length;r+=1)if(e=this.markers[r],e.payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!(r&&this.name!==r)){var n=Number(t);if(isNaN(n)){var i=this.getMarkerData(t);i&&this.goToAndStop(i.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!(r&&this.name!==r)){var n=Number(t);if(isNaN(n)){var i=this.getMarkerData(t);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(n,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!(this.isPaused===!0||this.isLoaded===!1)){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,e=0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var r,n=t.length;for(r=0;r<n;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,r){try{var n=this.renderer.getElementByPath(t);n.updateDocumentData(e,r)}catch{}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=(function(){var t={},e=[],r=0,n=0,i=0,s=!0,a=!1;function o(T){for(var k=0,x=T.target;k<n;)e[k].animation===x&&(e.splice(k,1),k-=1,n-=1,x.isPaused||d()),k+=1}function l(T,k){if(!T)return null;for(var x=0;x<n;){if(e[x].elem===T&&e[x].elem!==null)return e[x].animation;x+=1}var C=new AnimationItem;return f(C,T),C.setData(T,k),C}function c(){var T,k=e.length,x=[];for(T=0;T<k;T+=1)x.push(e[T].animation);return x}function u(){i+=1,R()}function d(){i-=1}function f(T,k){T.addEventListener("destroy",o),T.addEventListener("_active",u),T.addEventListener("_idle",d),e.push({elem:k,animation:T}),n+=1}function h(T){var k=new AnimationItem;return f(k,null),k.setParams(T),k}function p(T,k){var x;for(x=0;x<n;x+=1)e[x].animation.setSpeed(T,k)}function g(T,k){var x;for(x=0;x<n;x+=1)e[x].animation.setDirection(T,k)}function E(T){var k;for(k=0;k<n;k+=1)e[k].animation.play(T)}function m(T){var k=T-r,x;for(x=0;x<n;x+=1)e[x].animation.advanceTime(k);r=T,i&&!a?window.requestAnimationFrame(m):s=!0}function v(T){r=T,window.requestAnimationFrame(m)}function y(T){var k;for(k=0;k<n;k+=1)e[k].animation.pause(T)}function S(T,k,x){var C;for(C=0;C<n;C+=1)e[C].animation.goToAndStop(T,k,x)}function w(T){var k;for(k=0;k<n;k+=1)e[k].animation.stop(T)}function A(T){var k;for(k=0;k<n;k+=1)e[k].animation.togglePause(T)}function P(T){var k;for(k=n-1;k>=0;k-=1)e[k].animation.destroy(T)}function _(T,k,x){var C=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),B,N=C.length;for(B=0;B<N;B+=1)x&&C[B].setAttribute("data-bm-type",x),l(C[B],T);if(k&&N===0){x||(x="svg");var Y=document.getElementsByTagName("body")[0];Y.innerText="";var ee=createTag("div");ee.style.width="100%",ee.style.height="100%",ee.setAttribute("data-bm-type",x),Y.appendChild(ee),l(ee,T)}}function L(){var T;for(T=0;T<n;T+=1)e[T].animation.resize()}function R(){!a&&i&&s&&(window.requestAnimationFrame(v),s=!1)}function D(){a=!0}function M(){a=!1,R()}function O(T,k){var x;for(x=0;x<n;x+=1)e[x].animation.setVolume(T,k)}function z(T){var k;for(k=0;k<n;k+=1)e[k].animation.mute(T)}function V(T){var k;for(k=0;k<n;k+=1)e[k].animation.unmute(T)}return t.registerAnimation=l,t.loadAnimation=h,t.setSpeed=p,t.setDirection=g,t.play=E,t.pause=y,t.stop=w,t.togglePause=A,t.searchAnimations=_,t.resize=L,t.goToAndStop=S,t.destroy=P,t.freeze=D,t.unfreeze=M,t.setVolume=O,t.mute=z,t.unmute=V,t.getRegisteredAnimations=c,t})(),BezierFactory=(function(){var t={};t.getBezierEasing=r;var e={};function r(v,y,S,w,A){var P=A||("bez_"+v+"_"+y+"_"+S+"_"+w).replace(/\./g,"p");if(e[P])return e[P];var _=new m([v,y,S,w]);return e[P]=_,_}var n=4,i=.001,s=1e-7,a=10,o=11,l=1/(o-1),c=typeof Float32Array=="function";function u(v,y){return 1-3*y+3*v}function d(v,y){return 3*y-6*v}function f(v){return 3*v}function h(v,y,S){return((u(y,S)*v+d(y,S))*v+f(y))*v}function p(v,y,S){return 3*u(y,S)*v*v+2*d(y,S)*v+f(y)}function g(v,y,S,w,A){var P,_,L=0;do _=y+(S-y)/2,P=h(_,w,A)-v,P>0?S=_:y=_;while(Math.abs(P)>s&&++L<a);return _}function E(v,y,S,w){for(var A=0;A<n;++A){var P=p(y,S,w);if(P===0)return y;var _=h(y,S,w)-v;y-=_/P}return y}function m(v){this._p=v,this._mSampleValues=c?new Float32Array(o):new Array(o),this._precomputed=!1,this.get=this.get.bind(this)}return m.prototype={get:function(y){var S=this._p[0],w=this._p[1],A=this._p[2],P=this._p[3];return this._precomputed||this._precompute(),S===w&&A===P?y:y===0?0:y===1?1:h(this._getTForX(y),w,P)},_precompute:function(){var y=this._p[0],S=this._p[1],w=this._p[2],A=this._p[3];this._precomputed=!0,(y!==S||w!==A)&&this._calcSampleValues()},_calcSampleValues:function(){for(var y=this._p[0],S=this._p[2],w=0;w<o;++w)this._mSampleValues[w]=h(w*l,y,S)},_getTForX:function(y){for(var S=this._p[0],w=this._p[2],A=this._mSampleValues,P=0,_=1,L=o-1;_!==L&&A[_]<=y;++_)P+=l;--_;var R=(y-A[_])/(A[_+1]-A[_]),D=P+R*l,M=p(D,S,w);return M>=i?E(y,D,S,w):M===0?D:g(y,P,P+l,S,w)}},t})(),pooling=(function(){function t(e){return e.concat(createSizedArray(e.length))}return{double:t}})(),poolFactory=(function(){return function(t,e,r){var n=0,i=t,s=createSizedArray(i),a={newElement:o,release:l};function o(){var c;return n?(n-=1,c=s[n]):c=e(),c}function l(c){n===i&&(s=pooling.double(s),i*=2),r&&r(c),s[n]=c,n+=1}return a}})(),bezierLengthPool=(function(){function t(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)})(),segmentsLengthPool=(function(){function t(){return{lengths:[],totalLength:0}}function e(r){var n,i=r.lengths.length;for(n=0;n<i;n+=1)bezierLengthPool.release(r.lengths[n]);r.lengths.length=0}return poolFactory(8,t,e)})();function bezFunction(){var t=Math;function e(f,h,p,g,E,m){var v=f*g+h*E+p*m-E*g-m*f-p*h;return v>-.001&&v<.001}function r(f,h,p,g,E,m,v,y,S){if(p===0&&m===0&&S===0)return e(f,h,g,E,v,y);var w=t.sqrt(t.pow(g-f,2)+t.pow(E-h,2)+t.pow(m-p,2)),A=t.sqrt(t.pow(v-f,2)+t.pow(y-h,2)+t.pow(S-p,2)),P=t.sqrt(t.pow(v-g,2)+t.pow(y-E,2)+t.pow(S-m,2)),_;return w>A?w>P?_=w-A-P:_=P-A-w:P>A?_=P-A-w:_=A-w-P,_>-1e-4&&_<1e-4}var n=(function(){return function(f,h,p,g){var E=getDefaultCurveSegments(),m,v,y,S,w,A=0,P,_=[],L=[],R=bezierLengthPool.newElement();for(y=p.length,m=0;m<E;m+=1){for(w=m/(E-1),P=0,v=0;v<y;v+=1)S=bmPow(1-w,3)*f[v]+3*bmPow(1-w,2)*w*p[v]+3*(1-w)*bmPow(w,2)*g[v]+bmPow(w,3)*h[v],_[v]=S,L[v]!==null&&(P+=bmPow(_[v]-L[v],2)),L[v]=_[v];P&&(P=bmSqrt(P),A+=P),R.percents[m]=w,R.lengths[m]=A}return R.addedLength=A,R}})();function i(f){var h=segmentsLengthPool.newElement(),p=f.c,g=f.v,E=f.o,m=f.i,v,y=f._length,S=h.lengths,w=0;for(v=0;v<y-1;v+=1)S[v]=n(g[v],g[v+1],E[v],m[v+1]),w+=S[v].addedLength;return p&&y&&(S[v]=n(g[v],g[0],E[v],m[0]),w+=S[v].addedLength),h.totalLength=w,h}function s(f){this.segmentLength=0,this.points=new Array(f)}function a(f,h){this.partialLength=f,this.point=h}var o=(function(){var f={};return function(h,p,g,E){var m=(h[0]+"_"+h[1]+"_"+p[0]+"_"+p[1]+"_"+g[0]+"_"+g[1]+"_"+E[0]+"_"+E[1]).replace(/\./g,"p");if(!f[m]){var v=getDefaultCurveSegments(),y,S,w,A,P,_=0,L,R,D=null;h.length===2&&(h[0]!==p[0]||h[1]!==p[1])&&e(h[0],h[1],p[0],p[1],h[0]+g[0],h[1]+g[1])&&e(h[0],h[1],p[0],p[1],p[0]+E[0],p[1]+E[1])&&(v=2);var M=new s(v);for(w=g.length,y=0;y<v;y+=1){for(R=createSizedArray(w),P=y/(v-1),L=0,S=0;S<w;S+=1)A=bmPow(1-P,3)*h[S]+3*bmPow(1-P,2)*P*(h[S]+g[S])+3*(1-P)*bmPow(P,2)*(p[S]+E[S])+bmPow(P,3)*p[S],R[S]=A,D!==null&&(L+=bmPow(R[S]-D[S],2));L=bmSqrt(L),_+=L,M.points[y]=new a(L,R),D=R}M.segmentLength=_,f[m]=M}return f[m]}})();function l(f,h){var p=h.percents,g=h.lengths,E=p.length,m=bmFloor((E-1)*f),v=f*h.addedLength,y=0;if(m===E-1||m===0||v===g[m])return p[m];for(var S=g[m]>v?-1:1,w=!0;w;)if(g[m]<=v&&g[m+1]>v?(y=(v-g[m])/(g[m+1]-g[m]),w=!1):m+=S,m<0||m>=E-1){if(m===E-1)return p[m];w=!1}return p[m]+(p[m+1]-p[m])*y}function c(f,h,p,g,E,m){var v=l(E,m),y=1-v,S=t.round((y*y*y*f[0]+(v*y*y+y*v*y+y*y*v)*p[0]+(v*v*y+y*v*v+v*y*v)*g[0]+v*v*v*h[0])*1e3)/1e3,w=t.round((y*y*y*f[1]+(v*y*y+y*v*y+y*y*v)*p[1]+(v*v*y+y*v*v+v*y*v)*g[1]+v*v*v*h[1])*1e3)/1e3;return[S,w]}var u=createTypedArray("float32",8);function d(f,h,p,g,E,m,v){E<0?E=0:E>1&&(E=1);var y=l(E,v);m=m>1?1:m;var S=l(m,v),w,A=f.length,P=1-y,_=1-S,L=P*P*P,R=y*P*P*3,D=y*y*P*3,M=y*y*y,O=P*P*_,z=y*P*_+P*y*_+P*P*S,V=y*y*_+P*y*S+y*P*S,T=y*y*S,k=P*_*_,x=y*_*_+P*S*_+P*_*S,C=y*S*_+P*S*S+y*_*S,B=y*S*S,N=_*_*_,Y=S*_*_+_*S*_+_*_*S,ee=S*S*_+_*S*S+S*_*S,H=S*S*S;for(w=0;w<A;w+=1)u[w*4]=t.round((L*f[w]+R*p[w]+D*g[w]+M*h[w])*1e3)/1e3,u[w*4+1]=t.round((O*f[w]+z*p[w]+V*g[w]+T*h[w])*1e3)/1e3,u[w*4+2]=t.round((k*f[w]+x*p[w]+C*g[w]+B*h[w])*1e3)/1e3,u[w*4+3]=t.round((N*f[w]+Y*p[w]+ee*g[w]+H*h[w])*1e3)/1e3;return u}return{getSegmentsLength:i,getNewSegment:d,getPointInSegment:c,buildBezierData:o,pointOnLine2D:e,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var r=this.offsetTime,n;this.propType==="multidimensional"&&(n=createTypedArray("float32",this.pv.length));for(var i=e.lastIndex,s=i,a=this.keyframes.length-1,o=!0,l,c,u;o;){if(l=this.keyframes[s],c=this.keyframes[s+1],s===a-1&&t>=c.t-r){l.h&&(l=c),i=0;break}if(c.t-r>t){i=s;break}s<a-1?s+=1:(i=0,o=!1)}u=this.keyframesMetadata[s]||{};var d,f,h,p,g,E,m=c.t-r,v=l.t-r,y;if(l.to){u.bezierData||(u.bezierData=bez.buildBezierData(l.s,c.s||l.e,l.to,l.ti));var S=u.bezierData;if(t>=m||t<v){var w=t>=m?S.points.length-1:0;for(f=S.points[w].point.length,d=0;d<f;d+=1)n[d]=S.points[w].point[d]}else{u.__fnct?E=u.__fnct:(E=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,u.__fnct=E),h=E((t-v)/(m-v));var A=S.segmentLength*h,P,_=e.lastFrame<t&&e._lastKeyframeIndex===s?e._lastAddedLength:0;for(g=e.lastFrame<t&&e._lastKeyframeIndex===s?e._lastPoint:0,o=!0,p=S.points.length;o;){if(_+=S.points[g].partialLength,A===0||h===0||g===S.points.length-1){for(f=S.points[g].point.length,d=0;d<f;d+=1)n[d]=S.points[g].point[d];break}else if(A>=_&&A<_+S.points[g+1].partialLength){for(P=(A-_)/S.points[g+1].partialLength,f=S.points[g].point.length,d=0;d<f;d+=1)n[d]=S.points[g].point[d]+(S.points[g+1].point[d]-S.points[g].point[d])*P;break}g<p-1?g+=1:o=!1}e._lastPoint=g,e._lastAddedLength=_-S.points[g].partialLength,e._lastKeyframeIndex=s}}else{var L,R,D,M,O;if(a=l.s.length,y=c.s||l.e,this.sh&&l.h!==1)if(t>=m)n[0]=y[0],n[1]=y[1],n[2]=y[2];else if(t<=v)n[0]=l.s[0],n[1]=l.s[1],n[2]=l.s[2];else{var z=createQuaternion(l.s),V=createQuaternion(y),T=(t-v)/(m-v);quaternionToEuler(n,slerp(z,V,T))}else for(s=0;s<a;s+=1)l.h!==1&&(t>=m?h=1:t<v?h=0:(l.o.x.constructor===Array?(u.__fnct||(u.__fnct=[]),u.__fnct[s]?E=u.__fnct[s]:(L=l.o.x[s]===void 0?l.o.x[0]:l.o.x[s],R=l.o.y[s]===void 0?l.o.y[0]:l.o.y[s],D=l.i.x[s]===void 0?l.i.x[0]:l.i.x[s],M=l.i.y[s]===void 0?l.i.y[0]:l.i.y[s],E=BezierFactory.getBezierEasing(L,R,D,M).get,u.__fnct[s]=E)):u.__fnct?E=u.__fnct:(L=l.o.x,R=l.o.y,D=l.i.x,M=l.i.y,E=BezierFactory.getBezierEasing(L,R,D,M).get,l.keyframeMetadata=E),h=E((t-v)/(m-v)))),y=c.s||l.e,O=l.h===1?l.s[s]:l.s[s]+(y[s]-l.s[s])*h,this.propType==="multidimensional"?n[s]=O:n=O}return e.lastIndex=i,n}function slerp(t,e,r){var n=[],i=t[0],s=t[1],a=t[2],o=t[3],l=e[0],c=e[1],u=e[2],d=e[3],f,h,p,g,E;return h=i*l+s*c+a*u+o*d,h<0&&(h=-h,l=-l,c=-c,u=-u,d=-d),1-h>1e-6?(f=Math.acos(h),p=Math.sin(f),g=Math.sin((1-r)*f)/p,E=Math.sin(r*f)/p):(g=1-r,E=r),n[0]=g*i+E*l,n[1]=g*s+E*c,n[2]=g*a+E*u,n[3]=g*o+E*d,n}function quaternionToEuler(t,e){var r=e[0],n=e[1],i=e[2],s=e[3],a=Math.atan2(2*n*s-2*r*i,1-2*n*n-2*i*i),o=Math.asin(2*r*n+2*i*s),l=Math.atan2(2*r*s-2*n*i,1-2*r*r-2*i*i);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=l/degToRads}function createQuaternion(t){var e=t[0]*degToRads,r=t[1]*degToRads,n=t[2]*degToRads,i=Math.cos(e/2),s=Math.cos(r/2),a=Math.cos(n/2),o=Math.sin(e/2),l=Math.sin(r/2),c=Math.sin(n/2),u=i*s*a-o*l*c,d=o*l*a+i*s*c,f=o*s*a+i*l*c,h=i*l*a-o*s*c;return[d,f,h,u]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(t,this._caching);this.pv=n}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if(this.propType==="unidimensional")e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)e=t[r]*this.mult,mathAbs(this.v[r]-e)>1e-5&&(this.v[r]=e,this._mdf=!0),r+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,r,n){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,r,n){this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var i,s=e.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),i=0;i<s;i+=1)this.v[i]=e.k[i]*this.mult,this.pv[i]=e.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,r,n){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=r||1,this.elem=t,this.container=n,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,r,n){this.propType="multidimensional";var i,s=e.k.length,a,o,l,c;for(i=0;i<s-1;i+=1)e.k[i].to&&e.k[i].s&&e.k[i+1]&&e.k[i+1].s&&(a=e.k[i].s,o=e.k[i+1].s,l=e.k[i].to,c=e.k[i].ti,(a.length===2&&!(a[0]===o[0]&&a[1]===o[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],a[0]+l[0],a[1]+l[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],o[0]+c[0],o[1]+c[1])||a.length===3&&!(a[0]===o[0]&&a[1]===o[1]&&a[2]===o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],a[0]+l[0],a[1]+l[1],a[2]+l[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],o[0]+c[0],o[1]+c[1],o[2]+c[2]))&&(e.k[i].to=null,e.k[i].ti=null),a[0]===o[0]&&a[1]===o[1]&&l[0]===0&&l[1]===0&&c[0]===0&&c[1]===0&&(a.length===2||a[2]===o[2]&&l[2]===0&&c[2]===0)&&(e.k[i].to=null,e.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=t,this.container=n,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=e.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),i=0;i<u;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory=(function(){function t(r,n,i,s,a){n.sid&&(n=r.globalData.slotManager.getProp(n));var o;if(!n.k.length)o=new ValueProperty(r,n,s,a);else if(typeof n.k[0]=="number")o=new MultiDimensionalProperty(r,n,s,a);else switch(i){case 0:o=new KeyframedValueProperty(r,n,s,a);break;case 1:o=new KeyframedMultidimensionalProperty(r,n,s,a);break;default:break}return o.effectsSequence.length&&a.addDynamicProperty(o),o}var e={getProp:t};return e})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var e,r=this.dynamicProperties.length;for(e=0;e<r;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=(function(){function t(){return createTypedArray("float32",2)}return poolFactory(8,t)})();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,r,n,i){var s;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[];break}(!s[n]||s[n]&&!i)&&(s[n]=pointPool.newElement()),s[n][0]=t,s[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,n,i,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(r,n,"o",a,o),this.setXYAt(i,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,n=this.i,i=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var s=this._length-1,a=this._length,o;for(o=i;o<a;o+=1)t.setTripleAt(e[s][0],e[s][1],n[s][0],n[s][1],r[s][0],r[s][1],o,!1),s-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function t(){return new ShapePath}function e(i){var s=i._length,a;for(a=0;a<s;a+=1)pointPool.release(i.v[a]),pointPool.release(i.i[a]),pointPool.release(i.o[a]),i.v[a]=null,i.i[a]=null,i.o[a]=null;i._length=0,i.c=!1}function r(i){var s=n.newElement(),a,o=i._length===void 0?i.v.length:i._length;for(s.setLength(o),s.c=i.c,a=0;a<o;a+=1)s.setTripleAt(i.v[a][0],i.v[a][1],i.o[a][0],i.o[a][1],i.i[a][0],i.i[a][1],a);return s}var n=poolFactory(4,t,e);return n.clone=r,n})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(function(){var t={newShapeCollection:i,release:s},e=0,r=4,n=createSizedArray(r);function i(){var a;return e?(e-=1,a=n[e]):a=new ShapeCollection,a}function s(a){var o,l=a._length;for(o=0;o<l;o+=1)shapePool.release(a.shapes[o]);a._length=0,e===r&&(n=pooling.double(n),r*=2),n[e]=a,e+=1}return t})(),ShapePropertyFactory=(function(){var t=-999999;function e(m,v,y){var S=y.lastIndex,w,A,P,_,L,R,D,M,O,z=this.keyframes;if(m<z[0].t-this.offsetTime)w=z[0].s[0],P=!0,S=0;else if(m>=z[z.length-1].t-this.offsetTime)w=z[z.length-1].s?z[z.length-1].s[0]:z[z.length-2].e[0],P=!0;else{for(var V=S,T=z.length-1,k=!0,x,C,B;k&&(x=z[V],C=z[V+1],!(C.t-this.offsetTime>m));)V<T-1?V+=1:k=!1;if(B=this.keyframesMetadata[V]||{},P=x.h===1,S=V,!P){if(m>=C.t-this.offsetTime)M=1;else if(m<x.t-this.offsetTime)M=0;else{var N;B.__fnct?N=B.__fnct:(N=BezierFactory.getBezierEasing(x.o.x,x.o.y,x.i.x,x.i.y).get,B.__fnct=N),M=N((m-(x.t-this.offsetTime))/(C.t-this.offsetTime-(x.t-this.offsetTime)))}A=C.s?C.s[0]:x.e[0]}w=x.s[0]}for(R=v._length,D=w.i[0].length,y.lastIndex=S,_=0;_<R;_+=1)for(L=0;L<D;L+=1)O=P?w.i[_][L]:w.i[_][L]+(A.i[_][L]-w.i[_][L])*M,v.i[_][L]=O,O=P?w.o[_][L]:w.o[_][L]+(A.o[_][L]-w.o[_][L])*M,v.o[_][L]=O,O=P?w.v[_][L]:w.v[_][L]+(A.v[_][L]-w.v[_][L])*M,v.v[_][L]=O}function r(){var m=this.comp.renderedFrame-this.offsetTime,v=this.keyframes[0].t-this.offsetTime,y=this.keyframes[this.keyframes.length-1].t-this.offsetTime,S=this._caching.lastFrame;return S!==t&&(S<v&&m<v||S>y&&m>y)||(this._caching.lastIndex=S<m?this._caching.lastIndex:0,this.interpolateShape(m,this.pv,this._caching)),this._caching.lastFrame=m,this.pv}function n(){this.paths=this.localShapeCollection}function i(m,v){if(m._length!==v._length||m.c!==v.c)return!1;var y,S=m._length;for(y=0;y<S;y+=1)if(m.v[y][0]!==v.v[y][0]||m.v[y][1]!==v.v[y][1]||m.o[y][0]!==v.o[y][0]||m.o[y][1]!==v.o[y][1]||m.i[y][0]!==v.i[y][0]||m.i[y][1]!==v.i[y][1])return!1;return!0}function s(m){i(this.v,m)||(this.v=shapePool.clone(m),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){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 m;this.kf?m=this.pv:this.data.ks?m=this.data.ks.k:m=this.data.pt.k;var v,y=this.effectsSequence.length;for(v=0;v<y;v+=1)m=this.effectsSequence[v](m);this.setVValue(m),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(m,v,y){this.propType="shape",this.comp=m.comp,this.container=m,this.elem=m,this.data=v,this.k=!1,this.kf=!1,this._mdf=!1;var S=y===3?v.pt.k:v.ks.k;this.v=shapePool.clone(S),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function l(m){this.effectsSequence.push(m),this.container.addDynamicProperty(this)}o.prototype.interpolateShape=e,o.prototype.getValue=a,o.prototype.setVValue=s,o.prototype.addEffect=l;function c(m,v,y){this.propType="shape",this.comp=m.comp,this.elem=m,this.container=m,this.offsetTime=m.data.st,this.keyframes=y===3?v.pt.k:v.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var S=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,S),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[r.bind(this)]}c.prototype.getValue=a,c.prototype.interpolateShape=e,c.prototype.setVValue=s,c.prototype.addEffect=l;var u=(function(){var m=roundCorner;function v(y,S){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=S.d,this.elem=y,this.comp=y.comp,this.frameId=-1,this.initDynamicPropertyContainer(y),this.p=PropertyFactory.getProp(y,S.p,1,0,this),this.s=PropertyFactory.getProp(y,S.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return v.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var S=this.p.v[0],w=this.p.v[1],A=this.s.v[0]/2,P=this.s.v[1]/2,_=this.d!==3,L=this.v;L.v[0][0]=S,L.v[0][1]=w-P,L.v[1][0]=_?S+A:S-A,L.v[1][1]=w,L.v[2][0]=S,L.v[2][1]=w+P,L.v[3][0]=_?S-A:S+A,L.v[3][1]=w,L.i[0][0]=_?S-A*m:S+A*m,L.i[0][1]=w-P,L.i[1][0]=_?S+A:S-A,L.i[1][1]=w-P*m,L.i[2][0]=_?S+A*m:S-A*m,L.i[2][1]=w+P,L.i[3][0]=_?S-A:S+A,L.i[3][1]=w+P*m,L.o[0][0]=_?S+A*m:S-A*m,L.o[0][1]=w-P,L.o[1][0]=_?S+A:S-A,L.o[1][1]=w+P*m,L.o[2][0]=_?S-A*m:S+A*m,L.o[2][1]=w+P,L.o[3][0]=_?S-A:S+A,L.o[3][1]=w-P*m}},extendPrototype([DynamicPropertyContainer],v),v})(),d=(function(){function m(v,y){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=v,this.comp=v.comp,this.data=y,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(v),y.sy===1?(this.ir=PropertyFactory.getProp(v,y.ir,0,0,this),this.is=PropertyFactory.getProp(v,y.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(v,y.pt,0,0,this),this.p=PropertyFactory.getProp(v,y.p,1,0,this),this.r=PropertyFactory.getProp(v,y.r,0,degToRads,this),this.or=PropertyFactory.getProp(v,y.or,0,0,this),this.os=PropertyFactory.getProp(v,y.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return m.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var y=Math.floor(this.pt.v)*2,S=Math.PI*2/y,w=!0,A=this.or.v,P=this.ir.v,_=this.os.v,L=this.is.v,R=2*Math.PI*A/(y*2),D=2*Math.PI*P/(y*2),M,O,z,V,T=-Math.PI/2;T+=this.r.v;var k=this.data.d===3?-1:1;for(this.v._length=0,M=0;M<y;M+=1){O=w?A:P,z=w?_:L,V=w?R:D;var x=O*Math.cos(T),C=O*Math.sin(T),B=x===0&&C===0?0:C/Math.sqrt(x*x+C*C),N=x===0&&C===0?0:-x/Math.sqrt(x*x+C*C);x+=+this.p.v[0],C+=+this.p.v[1],this.v.setTripleAt(x,C,x-B*V*z*k,C-N*V*z*k,x+B*V*z*k,C+N*V*z*k,M,!0),w=!w,T+=S*k}},convertPolygonToPath:function(){var y=Math.floor(this.pt.v),S=Math.PI*2/y,w=this.or.v,A=this.os.v,P=2*Math.PI*w/(y*4),_,L=-Math.PI*.5,R=this.data.d===3?-1:1;for(L+=this.r.v,this.v._length=0,_=0;_<y;_+=1){var D=w*Math.cos(L),M=w*Math.sin(L),O=D===0&&M===0?0:M/Math.sqrt(D*D+M*M),z=D===0&&M===0?0:-D/Math.sqrt(D*D+M*M);D+=+this.p.v[0],M+=+this.p.v[1],this.v.setTripleAt(D,M,D-O*P*A*R,M-z*P*A*R,D+O*P*A*R,M+z*P*A*R,_,!0),L+=S*R}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],m),m})(),f=(function(){function m(v,y){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=v,this.comp=v.comp,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(v),this.p=PropertyFactory.getProp(v,y.p,1,0,this),this.s=PropertyFactory.getProp(v,y.s,1,0,this),this.r=PropertyFactory.getProp(v,y.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return m.prototype={convertRectToPath:function(){var y=this.p.v[0],S=this.p.v[1],w=this.s.v[0]/2,A=this.s.v[1]/2,P=bmMin(w,A,this.r.v),_=P*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(y+w,S-A+P,y+w,S-A+P,y+w,S-A+_,0,!0),this.v.setTripleAt(y+w,S+A-P,y+w,S+A-_,y+w,S+A-P,1,!0),P!==0?(this.v.setTripleAt(y+w-P,S+A,y+w-P,S+A,y+w-_,S+A,2,!0),this.v.setTripleAt(y-w+P,S+A,y-w+_,S+A,y-w+P,S+A,3,!0),this.v.setTripleAt(y-w,S+A-P,y-w,S+A-P,y-w,S+A-_,4,!0),this.v.setTripleAt(y-w,S-A+P,y-w,S-A+_,y-w,S-A+P,5,!0),this.v.setTripleAt(y-w+P,S-A,y-w+P,S-A,y-w+_,S-A,6,!0),this.v.setTripleAt(y+w-P,S-A,y+w-_,S-A,y+w-P,S-A,7,!0)):(this.v.setTripleAt(y-w,S+A,y-w+_,S+A,y-w,S+A,2),this.v.setTripleAt(y-w,S-A,y-w,S-A+_,y-w,S-A,3))):(this.v.setTripleAt(y+w,S-A+P,y+w,S-A+_,y+w,S-A+P,0,!0),P!==0?(this.v.setTripleAt(y+w-P,S-A,y+w-P,S-A,y+w-_,S-A,1,!0),this.v.setTripleAt(y-w+P,S-A,y-w+_,S-A,y-w+P,S-A,2,!0),this.v.setTripleAt(y-w,S-A+P,y-w,S-A+P,y-w,S-A+_,3,!0),this.v.setTripleAt(y-w,S+A-P,y-w,S+A-_,y-w,S+A-P,4,!0),this.v.setTripleAt(y-w+P,S+A,y-w+P,S+A,y-w+_,S+A,5,!0),this.v.setTripleAt(y+w-P,S+A,y+w-_,S+A,y+w-P,S+A,6,!0),this.v.setTripleAt(y+w,S+A-P,y+w,S+A-P,y+w,S+A-_,7,!0)):(this.v.setTripleAt(y-w,S-A,y-w+_,S-A,y-w,S-A,1,!0),this.v.setTripleAt(y-w,S+A,y-w,S+A-_,y-w,S+A,2,!0),this.v.setTripleAt(y+w,S+A,y+w-_,S+A,y+w,S+A,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],m),m})();function h(m,v,y){var S;if(y===3||y===4){var w=y===3?v.pt:v.ks,A=w.k;A.length?S=new c(m,v,y):S=new o(m,v,y)}else y===5?S=new f(m,v):y===6?S=new u(m,v):y===7&&(S=new d(m,v));return S.k&&m.addDynamicProperty(S),S}function p(){return o}function g(){return c}var E={};return E.getShapeProp=h,E.getConstructorFunction=p,E.getKeyframedConstructorFunction=g,E})();var Matrix=(function(){var t=Math.cos,e=Math.sin,r=Math.tan,n=Math.round;function i(){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 s(x){if(x===0)return this;var C=t(x),B=e(x);return this._t(C,-B,0,0,B,C,0,0,0,0,1,0,0,0,0,1)}function a(x){if(x===0)return this;var C=t(x),B=e(x);return this._t(1,0,0,0,0,C,-B,0,0,B,C,0,0,0,0,1)}function o(x){if(x===0)return this;var C=t(x),B=e(x);return this._t(C,0,B,0,0,1,0,0,-B,0,C,0,0,0,0,1)}function l(x){if(x===0)return this;var C=t(x),B=e(x);return this._t(C,-B,0,0,B,C,0,0,0,0,1,0,0,0,0,1)}function c(x,C){return this._t(1,C,x,1,0,0)}function u(x,C){return this.shear(r(x),r(C))}function d(x,C){var B=t(C),N=e(C);return this._t(B,N,0,0,-N,B,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(x),1,0,0,0,0,1,0,0,0,0,1)._t(B,-N,0,0,N,B,0,0,0,0,1,0,0,0,0,1)}function f(x,C,B){return!B&&B!==0&&(B=1),x===1&&C===1&&B===1?this:this._t(x,0,0,0,0,C,0,0,0,0,B,0,0,0,0,1)}function h(x,C,B,N,Y,ee,H,U,W,X,ie,_e,Fe,ke,Re,le){return this.props[0]=x,this.props[1]=C,this.props[2]=B,this.props[3]=N,this.props[4]=Y,this.props[5]=ee,this.props[6]=H,this.props[7]=U,this.props[8]=W,this.props[9]=X,this.props[10]=ie,this.props[11]=_e,this.props[12]=Fe,this.props[13]=ke,this.props[14]=Re,this.props[15]=le,this}function p(x,C,B){return B=B||0,x!==0||C!==0||B!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,x,C,B,1):this}function g(x,C,B,N,Y,ee,H,U,W,X,ie,_e,Fe,ke,Re,le){var J=this.props;if(x===1&&C===0&&B===0&&N===0&&Y===0&&ee===1&&H===0&&U===0&&W===0&&X===0&&ie===1&&_e===0)return J[12]=J[12]*x+J[15]*Fe,J[13]=J[13]*ee+J[15]*ke,J[14]=J[14]*ie+J[15]*Re,J[15]*=le,this._identityCalculated=!1,this;var ht=J[0],Lt=J[1],ot=J[2],Ke=J[3],Et=J[4],xt=J[5],Xe=J[6],Xt=J[7],Yt=J[8],pt=J[9],Zt=J[10],Ye=J[11],kr=J[12],Pr=J[13],eo=J[14],to=J[15];return J[0]=ht*x+Lt*Y+ot*W+Ke*Fe,J[1]=ht*C+Lt*ee+ot*X+Ke*ke,J[2]=ht*B+Lt*H+ot*ie+Ke*Re,J[3]=ht*N+Lt*U+ot*_e+Ke*le,J[4]=Et*x+xt*Y+Xe*W+Xt*Fe,J[5]=Et*C+xt*ee+Xe*X+Xt*ke,J[6]=Et*B+xt*H+Xe*ie+Xt*Re,J[7]=Et*N+xt*U+Xe*_e+Xt*le,J[8]=Yt*x+pt*Y+Zt*W+Ye*Fe,J[9]=Yt*C+pt*ee+Zt*X+Ye*ke,J[10]=Yt*B+pt*H+Zt*ie+Ye*Re,J[11]=Yt*N+pt*U+Zt*_e+Ye*le,J[12]=kr*x+Pr*Y+eo*W+to*Fe,J[13]=kr*C+Pr*ee+eo*X+to*ke,J[14]=kr*B+Pr*H+eo*ie+to*Re,J[15]=kr*N+Pr*U+eo*_e+to*le,this._identityCalculated=!1,this}function E(x){var C=x.props;return this.transform(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15])}function m(){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 v(x){for(var C=0;C<16;){if(x.props[C]!==this.props[C])return!1;C+=1}return!0}function y(x){var C;for(C=0;C<16;C+=1)x.props[C]=this.props[C];return x}function S(x){var C;for(C=0;C<16;C+=1)this.props[C]=x[C]}function w(x,C,B){return{x:x*this.props[0]+C*this.props[4]+B*this.props[8]+this.props[12],y:x*this.props[1]+C*this.props[5]+B*this.props[9]+this.props[13],z:x*this.props[2]+C*this.props[6]+B*this.props[10]+this.props[14]}}function A(x,C,B){return x*this.props[0]+C*this.props[4]+B*this.props[8]+this.props[12]}function P(x,C,B){return x*this.props[1]+C*this.props[5]+B*this.props[9]+this.props[13]}function _(x,C,B){return x*this.props[2]+C*this.props[6]+B*this.props[10]+this.props[14]}function L(){var x=this.props[0]*this.props[5]-this.props[1]*this.props[4],C=this.props[5]/x,B=-this.props[1]/x,N=-this.props[4]/x,Y=this.props[0]/x,ee=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/x,H=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/x,U=new Matrix;return U.props[0]=C,U.props[1]=B,U.props[4]=N,U.props[5]=Y,U.props[12]=ee,U.props[13]=H,U}function R(x){var C=this.getInverseMatrix();return C.applyToPointArray(x[0],x[1],x[2]||0)}function D(x){var C,B=x.length,N=[];for(C=0;C<B;C+=1)N[C]=R(x[C]);return N}function M(x,C,B){var N=createTypedArray("float32",6);if(this.isIdentity())N[0]=x[0],N[1]=x[1],N[2]=C[0],N[3]=C[1],N[4]=B[0],N[5]=B[1];else{var Y=this.props[0],ee=this.props[1],H=this.props[4],U=this.props[5],W=this.props[12],X=this.props[13];N[0]=x[0]*Y+x[1]*H+W,N[1]=x[0]*ee+x[1]*U+X,N[2]=C[0]*Y+C[1]*H+W,N[3]=C[0]*ee+C[1]*U+X,N[4]=B[0]*Y+B[1]*H+W,N[5]=B[0]*ee+B[1]*U+X}return N}function O(x,C,B){var N;return this.isIdentity()?N=[x,C,B]:N=[x*this.props[0]+C*this.props[4]+B*this.props[8]+this.props[12],x*this.props[1]+C*this.props[5]+B*this.props[9]+this.props[13],x*this.props[2]+C*this.props[6]+B*this.props[10]+this.props[14]],N}function z(x,C){if(this.isIdentity())return x+","+C;var B=this.props;return Math.round((x*B[0]+C*B[4]+B[12])*100)/100+","+Math.round((x*B[1]+C*B[5]+B[13])*100)/100}function V(){for(var x=0,C=this.props,B="matrix3d(",N=1e4;x<16;)B+=n(C[x]*N)/N,B+=x===15?")":",",x+=1;return B}function T(x){var C=1e4;return x<1e-6&&x>0||x>-1e-6&&x<0?n(x*C)/C:x}function k(){var x=this.props,C=T(x[0]),B=T(x[1]),N=T(x[4]),Y=T(x[5]),ee=T(x[12]),H=T(x[13]);return"matrix("+C+","+B+","+N+","+Y+","+ee+","+H+")"}return function(){this.reset=i,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=u,this.skewFromAxis=d,this.shear=c,this.scale=f,this.setTransform=h,this.translate=p,this.transform=g,this.multiply=E,this.applyToPoint=w,this.applyToX=A,this.applyToY=P,this.applyToZ=_,this.applyToPointArray=O,this.applyToTriplePoints=M,this.applyToPointStringified=z,this.toCSS=V,this.to2dCSS=k,this.clone=y,this.cloneFromProps=S,this.equals=v,this.inversePoints=D,this.inversePoint=R,this.getInverseMatrix=L,this._t=this.transform,this.isIdentity=m,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(t){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return standalone===!0&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var n=e[r].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}return null}var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{!((typeof exports>"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=(function(){var t={},e={};t.registerModifier=r,t.getModifier=n;function r(i,s){e[i]||(e[i]=s)}function n(i,s,a){return new e[i](s,a)}return t})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,n,i){var s=[];e<=1?s.push({s:t,e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a=[],o,l=s.length,c;for(o=0;o<l;o+=1)if(c=s[o],!(c.e*i<n||c.s*i>n+r)){var u,d;c.s*i<=n?u=0:u=(c.s*i-n)/r,c.e*i>=n+r?d=1:d=(c.e*i-n)/r,a.push([u,d])}return a.length||a.push([0,0]),a},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r;if(this._mdf||t){var n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?e=1+n:this.s.v<0?e=0+n:e=this.s.v+n,this.e.v>1?r=1+n:this.e.v<0?r=0+n:r=this.e.v+n,e>r){var i=e;e=r,r=i}e=Math.round(e*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var s,a,o=this.shapes.length,l,c,u,d,f,h=0;if(r===e)for(a=0;a<o;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(r===1&&e===0||r===0&&e===1){if(this._mdf)for(a=0;a<o;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var p=[],g,E;for(a=0;a<o;a+=1)if(g=this.shapes[a],!g.shape._mdf&&!this._mdf&&!t&&this.m!==2)g.shape.paths=g.localShapeCollection;else{if(s=g.shape.paths,c=s._length,f=0,!g.shape._mdf&&g.pathsData.length)f=g.totalShapeLength;else{for(u=this.releasePathsData(g.pathsData),l=0;l<c;l+=1)d=bez.getSegmentsLength(s.shapes[l]),u.push(d),f+=d.totalLength;g.totalShapeLength=f,g.pathsData=u}h+=f,g.shape._mdf=!0}var m=e,v=r,y=0,S;for(a=o-1;a>=0;a-=1)if(g=this.shapes[a],g.shape._mdf){for(E=g.localShapeCollection,E.releaseShapes(),this.m===2&&o>1?(S=this.calculateShapeEdges(e,r,g.totalShapeLength,y,h),y+=g.totalShapeLength):S=[[m,v]],c=S.length,l=0;l<c;l+=1){m=S[l][0],v=S[l][1],p.length=0,v<=1?p.push({s:g.totalShapeLength*m,e:g.totalShapeLength*v}):m>=1?p.push({s:g.totalShapeLength*(m-1),e:g.totalShapeLength*(v-1)}):(p.push({s:g.totalShapeLength*m,e:g.totalShapeLength}),p.push({s:0,e:g.totalShapeLength*(v-1)}));var w=this.addShapes(g,p[0]);if(p[0].s!==p[0].e){if(p.length>1){var A=g.shape.paths.shapes[g.shape.paths._length-1];if(A.c){var P=w.pop();this.addPaths(w,E),w=this.addShapes(g,p[1],P)}else this.addPaths(w,E),w=this.addShapes(g,p[1])}this.addPaths(w,E)}}g.shape.paths=E}}},TrimModifier.prototype.addPaths=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,n,i,s,a){i.setXYAt(e[0],e[1],"o",s),i.setXYAt(r[0],r[1],"i",s+1),a&&i.setXYAt(t[0],t[1],"v",s),i.setXYAt(n[0],n[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,n){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),n&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var n=t.pathsData,i=t.shape.paths.shapes,s,a=t.shape.paths._length,o,l,c=0,u,d,f,h,p=[],g,E=!0;for(r?(d=r._length,g=r._length):(r=shapePool.newElement(),d=0,g=0),p.push(r),s=0;s<a;s+=1){for(f=n[s].lengths,r.c=i[s].c,l=i[s].c?f.length:f.length+1,o=1;o<l;o+=1)if(u=f[o-1],c+u.addedLength<e.s)c+=u.addedLength,r.c=!1;else if(c>e.e){r.c=!1;break}else e.s<=c&&e.e>=c+u.addedLength?(this.addSegment(i[s].v[o-1],i[s].o[o-1],i[s].i[o],i[s].v[o],r,d,E),E=!1):(h=bez.getNewSegment(i[s].v[o-1],i[s].v[o],i[s].o[o-1],i[s].i[o],(e.s-c)/u.addedLength,(e.e-c)/u.addedLength,f[o-1]),this.addSegmentFromArray(h,r,d,E),E=!1,r.c=!1),c+=u.addedLength,d+=1;if(i[s].c&&f.length){if(u=f[o-1],c<=e.e){var m=f[o-1].addedLength;e.s<=c&&e.e>=c+m?(this.addSegment(i[s].v[o-1],i[s].o[o-1],i[s].i[0],i[s].v[0],r,d,E),E=!1):(h=bez.getNewSegment(i[s].v[o-1],i[s].v[0],i[s].o[o-1],i[s].i[0],(e.s-c)/m,(e.e-c)/m,f[o-1]),this.addSegmentFromArray(h,r,d,E),E=!1,r.c=!1)}else r.c=!1;c+=u.addedLength,d+=1}if(r._length&&(r.setXYAt(r.v[g][0],r.v[g][1],"i",g),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),c>e.e)break;s<a-1&&(r=shapePool.newElement(),E=!0,p.push(r),d=0)}return p};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100,n=[0,0],i=t._length,s=0;for(s=0;s<i;s+=1)n[0]+=t.v[s][0],n[1]+=t.v[s][1];n[0]/=i,n[1]/=i;var a=shapePool.newElement();a.c=t.c;var o,l,c,u,d,f;for(s=0;s<i;s+=1)o=t.v[s][0]+(n[0]-t.v[s][0])*r,l=t.v[s][1]+(n[1]-t.v[s][1])*r,c=t.o[s][0]+(n[0]-t.o[s][0])*-r,u=t.o[s][1]+(n[1]-t.o[s][1])*-r,d=t.i[s][0]+(n[0]-t.i[s][0])*-r,f=t.i[s][1]+(n[1]-t.i[s][1])*-r,a.setTripleAt(o,l,c,u,d,f,s);return a},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,n=this.shapes.length,i,s,a=this.amount.v;if(a!==0){var o,l;for(r=0;r<n;r+=1){if(o=this.shapes[r],l=o.localShapeCollection,!(!o.shape._mdf&&!this._mdf&&!t))for(l.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,s=o.shape.paths._length,i=0;i<s;i+=1)l.addShape(this.processPath(e[i],a));o.shape.paths=o.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var t=[0,0];function e(l){var c=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||c,this.a&&l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&l.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&l.skewFromAxis(-this.sk.v,this.sa.v),this.r?l.rotate(-this.r.v):l.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?l.translate(this.px.v,this.py.v,-this.pz.v):l.translate(this.px.v,this.py.v,0):l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(l){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||l){var c;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 u,d;if(c=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(u=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/c,0),d=this.p.getValueAtTime(this.p.keyframes[0].t/c,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(u=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),d=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(u=this.p.pv,d=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/c,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){u=[],d=[];var f=this.px,h=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(u[0]=f.getValueAtTime((f.keyframes[0].t+.01)/c,0),u[1]=h.getValueAtTime((h.keyframes[0].t+.01)/c,0),d[0]=f.getValueAtTime(f.keyframes[0].t/c,0),d[1]=h.getValueAtTime(h.keyframes[0].t/c,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(u[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/c,0),u[1]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/c,0),d[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/c,0),d[1]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/c,0)):(u=[f.pv,h.pv],d[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/c,f.offsetTime),d[1]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/c,h.offsetTime))}else d=t,u=d;this.v.rotate(-Math.atan2(u[1]-d[1],u[0]-d[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 n(){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 i(){}function s(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function a(l,c,u){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=c,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(u||l),c.p&&c.p.s?(this.px=PropertyFactory.getProp(l,c.p.x,0,0,this),this.py=PropertyFactory.getProp(l,c.p.y,0,0,this),c.p.z&&(this.pz=PropertyFactory.getProp(l,c.p.z,0,0,this))):this.p=PropertyFactory.getProp(l,c.p||{k:[0,0,0]},1,0,this),c.rx){if(this.rx=PropertyFactory.getProp(l,c.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,c.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,c.rz,0,degToRads,this),c.or.k[0].ti){var d,f=c.or.k.length;for(d=0;d<f;d+=1)c.or.k[d].to=null,c.or.k[d].ti=null}this.or=PropertyFactory.getProp(l,c.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,c.r||{k:0},0,degToRads,this);c.sk&&(this.sk=PropertyFactory.getProp(l,c.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,c.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(l,c.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,c.s||{k:[100,100,100]},1,.01,this),c.o?this.o=PropertyFactory.getProp(l,c.o,0,.01,l):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}a.prototype={applyToMatrix:e,getValue:r,precalculateMatrix:n,autoOrient:i},extendPrototype([DynamicPropertyContainer],a),a.prototype.addDynamicProperty=s,a.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function o(l,c,u){return new a(l,c,u)}return{getTransformProperty:o}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,r,n,i,s){var a=s?-1:1,o=n.s.v[0]+(1-n.s.v[0])*(1-i),l=n.s.v[1]+(1-n.s.v[1])*(1-i);t.translate(n.p.v[0]*a*i,n.p.v[1]*a*i,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*a*i),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(s?1/o:o,s?1/l:l),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,n){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,t[e].ty==="gr"&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)t[r]._render=e,t[r].ty==="gr"&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,n,i,s,a=!1;if(this._mdf||t){var o=Math.ceil(this.c.v);if(this._groups.length<o){for(;this._groups.length<o;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.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,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}s=0;var c;for(n=0;n<=this._groups.length-1;n+=1){if(c=s<o,this._groups[n]._render=c,this.changeGroupRender(this._groups[n].it,c),!c){var u=this.elemsData[n].it,d=u[u.length-1];d.transform.op.v!==0?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}s+=1}this._currentCopies=o;var f=this.o.v,h=f%1,p=f>0?Math.floor(f):Math.ceil(f),g=this.pMatrix.props,E=this.rMatrix.props,m=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v=0;if(f>0){for(;v<p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),v+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),v+=h)}else if(f<0){for(;v>p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),v-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),v-=h)}n=this.data.m===1?0:this._currentCopies-1,i=this.data.m===1?1:-1,s=this._currentCopies;for(var y,S;s;){if(e=this.elemsData[n].it,r=e[e.length-1].transform.mProps.v.props,S=r.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),v!==0){for((n!==0&&i===1||n!==this._currentCopies-1&&i===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.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]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),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]),y=0;y<S;y+=1)r[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<S;y+=1)r[y]=this.matrix.props[y];v+=1,s-=1,n+=i}}else for(s=this._currentCopies,n=0,i=1;s;)e=this.elemsData[n].it,r=e[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,n+=i;return a},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r=shapePool.newElement();r.c=t.c;var n,i=t._length,s,a,o,l,c,u,d=0,f,h,p,g,E,m;for(n=0;n<i;n+=1)s=t.v[n],o=t.o[n],a=t.i[n],s[0]===o[0]&&s[1]===o[1]&&s[0]===a[0]&&s[1]===a[1]?(n===0||n===i-1)&&!t.c?(r.setTripleAt(s[0],s[1],o[0],o[1],a[0],a[1],d),d+=1):(n===0?l=t.v[i-1]:l=t.v[n-1],c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=c?Math.min(c/2,e)/c:0,E=s[0]+(l[0]-s[0])*u,f=E,m=s[1]-(s[1]-l[1])*u,h=m,p=f-(f-s[0])*roundCorner,g=h-(h-s[1])*roundCorner,r.setTripleAt(f,h,p,g,E,m,d),d+=1,n===i-1?l=t.v[0]:l=t.v[n+1],c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=c?Math.min(c/2,e)/c:0,p=s[0]+(l[0]-s[0])*u,f=p,g=s[1]+(l[1]-s[1])*u,h=g,E=f-(f-s[0])*roundCorner,m=h-(h-s[1])*roundCorner,r.setTripleAt(f,h,p,g,E,m,d),d+=1):(r.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],d),d+=1);return r},RoundCornersModifier.prototype.processShapes=function(t){var e,r,n=this.shapes.length,i,s,a=this.rd.v;if(a!==0){var o,l;for(r=0;r<n;r+=1){if(o=this.shapes[r],l=o.localShapeCollection,!(!o.shape._mdf&&!this._mdf&&!t))for(l.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,s=o.shape.paths._length,i=0;i<s;i+=1)l.addShape(this.processPath(e[i],a));o.shape.paths=o.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(t,e){return Math.abs(t-e)*1e5<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(t===0)return[];var n=e*e-4*t*r;if(n<0)return[];var i=-e/(2*t);if(n===0)return[i];var s=Math.sqrt(n)/(2*t);return[i-s,i+s]}function polynomialCoefficients(t,e,r,n){return[-t+3*e-3*r+n,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,n,i){i&&pointEqual(t,e)&&(e=lerpPoint(t,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(t,n,2/3));var s=polynomialCoefficients(t[0],e[0],r[0],n[0]),a=polynomialCoefficients(t[1],e[1],r[1],n[1]);this.a=[s[0],a[0]],this.b=[s[1],a[1]],this.c=[s[2],a[2]],this.d=[s[3],a[3]],this.points=[t,e,r,n]}PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[e]:[]:[e-n,e+n].filter(function(i){return i>0&&i<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),n=lerpPoint(this.points[2],this.points[3],t),i=lerpPoint(e,r,t),s=lerpPoint(r,n,t),a=lerpPoint(i,s,t);return[new PolynomialBezier(this.points[0],e,i,a,!0),new PolynomialBezier(a,s,n,this.points[3],!0)]};function extrema(t,e){var r=t.points[0][e],n=t.points[t.points.length-1][e];if(r>n){var i=n;n=r,r=i}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<s.length;a+=1)if(s[a]>0&&s[a]<1){var o=t.point(s[a])[e];o<r?r=o:o>n&&(n=o)}return{min:r,max:n}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function intersectData(t,e,r){var n=t.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return Math.abs(t.cx-e.cx)*2<t.width+e.width&&Math.abs(t.cy-e.cy)*2<t.height+e.height}function intersectsImpl(t,e,r,n,i,s){if(boxIntersect(t,e)){if(r>=s||t.width<=n&&t.height<=n&&e.width<=n&&e.height<=n){i.push([t.t,e.t]);return}var a=splitData(t),o=splitData(e);intersectsImpl(a[0],o[0],r+1,n,i,s),intersectsImpl(a[0],o[1],r+1,n,i,s),intersectsImpl(a[1],o[0],r+1,n,i,s),intersectsImpl(a[1],o[1],r+1,n,i,s)}}PolynomialBezier.prototype.intersections=function(t,e,r){e===void 0&&(e=2),r===void 0&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,n,r),n},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)};function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,n){var i=[t[0],t[1],1],s=[e[0],e[1],1],a=[r[0],r[1],1],o=[n[0],n[1],1],l=crossProduct(crossProduct(i,s),crossProduct(a,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(t,e,r,n,i,s,a){var o=r-Math.PI/2,l=r+Math.PI/2,c=e[0]+Math.cos(r)*n*i,u=e[1]-Math.sin(r)*n*i;t.setTripleAt(c,u,c+Math.cos(o)*s,u-Math.sin(o)*s,c+Math.cos(l)*a,u-Math.sin(l)*a,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],n=-Math.PI*.5,i=[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]];return i}function getProjectingAngle(t,e){var r=e===0?t.length()-1:e-1,n=(e+1)%t.length(),i=t.v[r],s=t.v[n],a=getPerpendicularVector(i,s);return Math.atan2(0,1)-Math.atan2(a[1],a[0])}function zigZagCorner(t,e,r,n,i,s,a){var o=getProjectingAngle(e,r),l=e.v[r%e._length],c=e.v[r===0?e._length-1:r-1],u=e.v[(r+1)%e._length],d=s===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,f=s===2?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(t,e.v[r%e._length],o,a,n,f/((i+1)*2),d/((i+1)*2),s)}function zigZagSegment(t,e,r,n,i,s){for(var a=0;a<n;a+=1){var o=(a+1)/(n+1),l=i===2?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,c=e.normalAngle(o),u=e.point(o);setPoint(t,u,c,s,r,l/((n+1)*2),l/((n+1)*2),i),s=-s}return s}ZigZagModifier.prototype.processPath=function(t,e,r,n){var i=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(i-=1),i===0)return s;var a=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,r,n,a);for(var l=0;l<i;l+=1)a=zigZagSegment(s,o,e,r,n,-a),l===i-1&&!t.c?o=null:o=PolynomialBezier.shapeSegment(t,(l+1)%i),zigZagCorner(s,t,l+1,e,r,n,a);return s},ZigZagModifier.prototype.processShapes=function(t){var e,r,n=this.shapes.length,i,s,a=this.amplitude.v,o=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(a!==0){var c,u;for(r=0;r<n;r+=1){if(c=this.shapes[r],u=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!t))for(u.releaseShapes(),c.shape._mdf=!0,e=c.shape.paths.shapes,s=c.shape.paths._length,i=0;i<s;i+=1)u.addShape(this.processPath(e[i],a,o,l));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(t,e,r){var n=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,n,r),polarOffset(e,n,r)]}function offsetSegment(t,e){var r,n,i,s,a,o,l;l=linearOffset(t.points[0],t.points[1],e),r=l[0],n=l[1],l=linearOffset(t.points[1],t.points[2],e),i=l[0],s=l[1],l=linearOffset(t.points[2],t.points[3],e),a=l[0],o=l[1];var c=lineIntersection(r,n,i,s);c===null&&(c=n);var u=lineIntersection(a,o,i,s);return u===null&&(u=a),new PolynomialBezier(r,c,u,o)}function joinLines(t,e,r,n,i){var s=e.points[3],a=r.points[0];if(n===3||pointEqual(s,a))return s;if(n===2){var o=-e.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(s,polarOffset(s,o+Math.PI/2,100),a,polarOffset(a,o+Math.PI/2,100)),u=c?pointDistance(c,s):pointDistance(s,a)/2,d=polarOffset(s,o,2*u*roundCorner);return t.setXYAt(d[0],d[1],"o",t.length()-1),d=polarOffset(a,l,2*u*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],t.length()),a}var f=pointEqual(s,e.points[2])?e.points[0]:e.points[2],h=pointEqual(a,r.points[1])?r.points[3]:r.points[1],p=lineIntersection(f,s,a,h);return p&&pointDistance(p,s)<i?(t.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],t.length()),p):s}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),n=e.slice(),i=getIntersection(t[t.length-1],e[0]);return i&&(r[t.length-1]=t[t.length-1].split(i[0])[0],n[0]=e[0].split(i[1])[1]),t.length>1&&e.length>1&&(i=getIntersection(t[0],e[e.length-1]),i)?[[t[0].split(i[0])[0]],[e[e.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r=t.inflectionPoints(),n,i,s,a;if(r.length===0)return[offsetSegment(t,e)];if(r.length===1||floatEqual(r[1],1))return s=t.split(r[0]),n=s[0],i=s[1],[offsetSegment(n,e),offsetSegment(i,e)];s=t.split(r[0]),n=s[0];var o=(r[1]-r[0])/(1-r[0]);return s=s[1].split(o),a=s[0],i=s[1],[offsetSegment(n,e),offsetSegment(a,e),offsetSegment(i,e)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,e,r,n){var i=shapePool.newElement();i.c=t.c;var s=t.length();t.c||(s-=1);var a,o,l,c=[];for(a=0;a<s;a+=1)l=PolynomialBezier.shapeSegment(t,a),c.push(offsetSegmentSplit(l,e));if(!t.c)for(a=s-1;a>=0;a-=1)l=PolynomialBezier.shapeSegmentInverted(t,a),c.push(offsetSegmentSplit(l,e));c=pruneIntersections(c);var u=null,d=null;for(a=0;a<c.length;a+=1){var f=c[a];for(d&&(u=joinLines(i,d,f[0],r,n)),d=f[f.length-1],o=0;o<f.length;o+=1)l=f[o],u&&pointEqual(l.points[0],u)?i.setXYAt(l.points[1][0],l.points[1][1],"o",i.length()-1):i.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],i.length()),i.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],i.length()),u=l.points[3]}return c.length&&joinLines(i,d,c[0][0],r,n),i},OffsetPathModifier.prototype.processShapes=function(t){var e,r,n=this.shapes.length,i,s,a=this.amount.v,o=this.miterLimit.v,l=this.lineJoin;if(a!==0){var c,u;for(r=0;r<n;r+=1){if(c=this.shapes[r],u=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!t))for(u.releaseShapes(),c.shape._mdf=!0,e=c.shape.paths.shapes,s=c.shape.paths._length,i=0;i<s;i+=1)u.addShape(this.processPath(e[i],a,l,o));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",n="normal",i=e.length,s,a=0;a<i;a+=1)switch(s=e[a].toLowerCase(),s){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";break;default:break}return{style:n,weight:t.fWeight||r}}var FontManager=(function(){var t=5e3,e={w:0,size:0,shapes:[],data:{shapes:[]}},r=[];r=r.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 n=127988,i=917631,s=917601,a=917626,o=65039,l=8205,c=127462,u=127487,d=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(T){var k=T.split(","),x,C=k.length,B=[];for(x=0;x<C;x+=1)k[x]!=="sans-serif"&&k[x]!=="monospace"&&B.push(k[x]);return B.join(",")}function h(T,k){var x=createTag("span");x.setAttribute("aria-hidden",!0),x.style.fontFamily=k;var C=createTag("span");C.innerText="giItT1WQy@!-/#",x.style.position="absolute",x.style.left="-10000px",x.style.top="-10000px",x.style.fontSize="300px",x.style.fontVariant="normal",x.style.fontStyle="normal",x.style.fontWeight="normal",x.style.letterSpacing="0",x.appendChild(C),document.body.appendChild(x);var B=C.offsetWidth;return C.style.fontFamily=f(T)+", "+k,{node:C,w:B,parent:x}}function p(){var T,k=this.fonts.length,x,C,B=k;for(T=0;T<k;T+=1)this.fonts[T].loaded?B-=1:this.fonts[T].fOrigin==="n"||this.fonts[T].origin===0?this.fonts[T].loaded=!0:(x=this.fonts[T].monoCase.node,C=this.fonts[T].monoCase.w,x.offsetWidth!==C?(B-=1,this.fonts[T].loaded=!0):(x=this.fonts[T].sansCase.node,C=this.fonts[T].sansCase.w,x.offsetWidth!==C&&(B-=1,this.fonts[T].loaded=!0)),this.fonts[T].loaded&&(this.fonts[T].sansCase.parent.parentNode.removeChild(this.fonts[T].sansCase.parent),this.fonts[T].monoCase.parent.parentNode.removeChild(this.fonts[T].monoCase.parent)));B!==0&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function g(T,k){var x=document.body&&k?"svg":"canvas",C,B=getFontProperties(T);if(x==="svg"){var N=createNS("text");N.style.fontSize="100px",N.setAttribute("font-family",T.fFamily),N.setAttribute("font-style",B.style),N.setAttribute("font-weight",B.weight),N.textContent="1",T.fClass?(N.style.fontFamily="inherit",N.setAttribute("class",T.fClass)):N.style.fontFamily=T.fFamily,k.appendChild(N),C=N}else{var Y=new OffscreenCanvas(500,500).getContext("2d");Y.font=B.style+" "+B.weight+" 100px "+T.fFamily,C=Y}function ee(H){return x==="svg"?(C.textContent=H,C.getComputedTextLength()):C.measureText(H).width}return{measureText:ee}}function E(T,k){if(!T){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=T.list;return}if(!document.body){this.isLoaded=!0,T.list.forEach(function(ie){ie.helper=g(ie),ie.cache={}}),this.fonts=T.list;return}var x=T.list,C,B=x.length,N=B;for(C=0;C<B;C+=1){var Y=!0,ee,H;if(x[C].loaded=!1,x[C].monoCase=h(x[C].fFamily,"monospace"),x[C].sansCase=h(x[C].fFamily,"sans-serif"),!x[C].fPath)x[C].loaded=!0,N-=1;else if(x[C].fOrigin==="p"||x[C].origin===3){if(ee=document.querySelectorAll('style[f-forigin="p"][f-family="'+x[C].fFamily+'"], style[f-origin="3"][f-family="'+x[C].fFamily+'"]'),ee.length>0&&(Y=!1),Y){var U=createTag("style");U.setAttribute("f-forigin",x[C].fOrigin),U.setAttribute("f-origin",x[C].origin),U.setAttribute("f-family",x[C].fFamily),U.type="text/css",U.innerText="@font-face {font-family: "+x[C].fFamily+"; font-style: normal; src: url('"+x[C].fPath+"');}",k.appendChild(U)}}else if(x[C].fOrigin==="g"||x[C].origin===1){for(ee=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),H=0;H<ee.length;H+=1)ee[H].href.indexOf(x[C].fPath)!==-1&&(Y=!1);if(Y){var W=createTag("link");W.setAttribute("f-forigin",x[C].fOrigin),W.setAttribute("f-origin",x[C].origin),W.type="text/css",W.rel="stylesheet",W.href=x[C].fPath,document.body.appendChild(W)}}else if(x[C].fOrigin==="t"||x[C].origin===2){for(ee=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),H=0;H<ee.length;H+=1)x[C].fPath===ee[H].src&&(Y=!1);if(Y){var X=createTag("link");X.setAttribute("f-forigin",x[C].fOrigin),X.setAttribute("f-origin",x[C].origin),X.setAttribute("rel","stylesheet"),X.setAttribute("href",x[C].fPath),k.appendChild(X)}}x[C].helper=g(x[C],k),x[C].cache={},this.fonts.push(x[C])}N===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function m(T){if(T){this.chars||(this.chars=[]);var k,x=T.length,C,B=this.chars.length,N;for(k=0;k<x;k+=1){for(C=0,N=!1;C<B;)this.chars[C].style===T[k].style&&this.chars[C].fFamily===T[k].fFamily&&this.chars[C].ch===T[k].ch&&(N=!0),C+=1;N||(this.chars.push(T[k]),B+=1)}}}function v(T,k,x){for(var C=0,B=this.chars.length;C<B;){if(this.chars[C].ch===T&&this.chars[C].style===k&&this.chars[C].fFamily===x)return this.chars[C];C+=1}return(typeof T=="string"&&T.charCodeAt(0)!==13||!T)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",T,k,x)),e}function y(T,k,x){var C=this.getFontByName(k),B=T;if(!C.cache[B]){var N=C.helper;if(T===" "){var Y=N.measureText("|"+T+"|"),ee=N.measureText("||");C.cache[B]=(Y-ee)/100}else C.cache[B]=N.measureText(T)/100}return C.cache[B]*x}function S(T){for(var k=0,x=this.fonts.length;k<x;){if(this.fonts[k].fName===T)return this.fonts[k];k+=1}return this.fonts[0]}function w(T){var k=0,x=T.charCodeAt(0);if(x>=55296&&x<=56319){var C=T.charCodeAt(1);C>=56320&&C<=57343&&(k=(x-55296)*1024+C-56320+65536)}return k}function A(T,k){var x=T.toString(16)+k.toString(16);return d.indexOf(x)!==-1}function P(T){return T===l}function _(T){return T===o}function L(T){var k=w(T);return k>=c&&k<=u}function R(T){return L(T.substr(0,2))&&L(T.substr(2,2))}function D(T){return r.indexOf(T)!==-1}function M(T,k){var x=w(T.substr(k,2));if(x!==n)return!1;var C=0;for(k+=2;C<5;){if(x=w(T.substr(k,2)),x<s||x>a)return!1;C+=1,k+=2}return w(T.substr(k,2))===i}function O(){this.isLoaded=!0}var z=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)};z.isModifier=A,z.isZeroWidthJoiner=P,z.isFlagEmoji=R,z.isRegionalCode=L,z.isCombinedCharacter=D,z.isRegionalFlag=M,z.isVariationSelector=_,z.BLACK_FLAG_CODE_POINT=n;var V={addChars:m,addFonts:E,getCharData:v,getFontByName:S,measureText:y,checkLoadedFonts:p,setIsLoaded:O};return z.prototype=V,z})();function SlotManager(t){this.animationData=t}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){this.renderableComponents.indexOf(e)===-1&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){this.renderableComponents.indexOf(e)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},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(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?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 e,r=this.renderableComponents.length;for(e=0;e<r;e+=1)this.renderableComponents[e].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 getBlendMode=(function(){var t={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(e){return t[e]||""}})();function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r=t.ef||[];this.effectElements=[];var n,i=r.length,s;for(n=0;n<i;n+=1)s=new GroupEffect(r[n],e),this.effectElements.push(s)}function GroupEffect(t,e){this.init(t,e)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,n=this.data.ef.length,i,s=this.data.ef;for(r=0;r<n;r+=1){switch(i=null,s[r].ty){case 0:i=new SliderEffect(s[r],e,this);break;case 1:i=new AngleEffect(s[r],e,this);break;case 2:i=new ColorEffect(s[r],e,this);break;case 3:i=new PointEffect(s[r],e,this);break;case 4:case 7:i=new CheckboxEffect(s[r],e,this);break;case 10:i=new LayerIndexEffect(s[r],e,this);break;case 11:i=new MaskIndexEffect(s[r],e,this);break;case 5:i=new EffectsManager(s[r],e,this);break;default:i=new NoValueEffect(s[r],e,this);break}i&&this.effectElements.push(i)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,r=this.data.masksProperties.length;e<r;){if(this.data.masksProperties[e].mode!=="n"&&this.data.masksProperties[e].cl!==!1)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var r=e("layer"),n=e("effects"),i=e("shape"),s=e("text"),a=e("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),this.data.ty===0||this.data.xt?this.compInterface=a(this):this.data.ty===4?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=s(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=e},initBaseData:function(e,r,n){this.globalData=r,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,r){var n,i=this.dynamicProperties.length;for(n=0;n<i;n+=1)(r||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&this.dynamicProperties.push(e)}};function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.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))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var e,r=this.layers.length,n;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(n=this.layers[e],n.ip-n.st<=t-this.layers[e].st&&n.op-n.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var e,r=t.length,n,i=this.layers.length;for(e=0;e<r;e+=1)for(n=0;n<i;){if(this.layers[n].id===t[e].id){this.layers[n]=t[e];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var n=this.elements,i=this.layers,s=0,a=i.length;s<a;)i[s].ind==e&&(!n[s]||n[s]===!0?(this.buildItem(s),this.addPendingElement(t)):(r.push(n[s]),n[s].setAsParent(),i[s].parent!==void 0?this.buildElementParenting(t,i[s].parent,r):t.setHierarchy(r))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(t){var e,r=this.elements.length;for(e=0;e<r;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e=t.shift(),r;if(typeof e=="number")r=this.elements[e];else{var n,i=this.elements.length;for(n=0;n<i;n+=1)if(this.elements[n].data.nm===e){r=this.elements[n];break}}return t.length===0?r:r.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,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 e,r=this.finalTransform.mat,n=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<i;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,r.cloneFromProps(e),n=0;n<i;n+=1)r.multiply(this.hierarchy[n].finalTransform.mProp.v)}(!this.localTransforms||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 e=0,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<r;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),e=1;e<r;e+=1){var i=this.localTransforms[e].matrix;n.multiply(i)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var s=this.finalTransform.localOpacity;for(e=0;e<r;e+=1)s*=this.localTransforms[e].opacity*.01;this.finalTransform.localOpacity=s}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var r=0,n=e.length;for(r=0;r<n;r+=1)this.localTransforms.push(e[r])}}},globalToLocal:function(e){var r=[];r.push(this.finalTransform);for(var n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&r.splice(0,0,i.finalTransform),i=i.comp):n=!1;var s,a=r.length,o;for(s=0;s<a;s+=1)o=r[s].mat.applyToPointArray(0,0,0),e=[e[0]-o[0],e[1]-o[1],0];return e},mHelper:new Matrix};function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n=this.globalData.defs,i,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var a,o=this.masksProperties,l=0,c=[],u,d,f=createElementID(),h,p,g,E,m="clipPath",v="clip-path";for(i=0;i<s;i+=1)if((o[i].mode!=="a"&&o[i].mode!=="n"||o[i].inv||o[i].o.k!==100||o[i].o.x)&&(m="mask",v="mask"),(o[i].mode==="s"||o[i].mode==="i")&&l===0?(h=createNS("rect"),h.setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),c.push(h)):h=null,a=createNS("path"),o[i].mode==="n")this.viewData[i]={op:PropertyFactory.getProp(this.element,o[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[i],3),elem:a,lastPath:""},n.appendChild(a);else{l+=1,a.setAttribute("fill",o[i].mode==="s"?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero");var y;if(o[i].x.k!==0?(m="mask",v="mask",E=PropertyFactory.getProp(this.element,o[i].x,0,null,this.element),y=createElementID(),p=createNS("filter"),p.setAttribute("id",y),g=createNS("feMorphology"),g.setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),p.appendChild(g),n.appendChild(p),a.setAttribute("stroke",o[i].mode==="s"?"#000000":"#ffffff")):(g=null,E=null),this.storedData[i]={elem:a,x:E,expan:g,lastPath:"",lastOperator:"",filterId:y,lastRadius:0},o[i].mode==="i"){d=c.length;var S=createNS("g");for(u=0;u<d;u+=1)S.appendChild(c[u]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",f+"_"+l),w.appendChild(a),n.appendChild(w),S.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+l+")"),c.length=0,c.push(S)}else c.push(a);o[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,o[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[i],3),invRect:h},this.viewData[i].prop.k||this.drawPath(o[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(m),s=c.length,i=0;i<s;i+=1)this.maskElement.appendChild(c[i]);l>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+f+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,r,n=this.masksProperties.length;for(r=0;r<n;r+=1)if((this.viewData[r].prop._mdf||t)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||t)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),this.masksProperties[r].mode!=="n"&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[r].invRect.setAttribute("transform",e.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||t))){var i=this.storedData[r].expan;this.storedData[r].x.v<0?(this.storedData[r].lastOperator!=="erode"&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")),i.setAttribute("radius",-this.storedData[r].x.v)):(this.storedData[r].lastOperator!=="dilate"&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" ",t},MaskElement.prototype.drawPath=function(t,e,r){var n=" M"+e.v[0][0]+","+e.v[0][1],i,s;for(s=e._length,i=1;i<s;i+=1)n+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&s>1&&(n+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==n){var a="";r.elem&&(e.c&&(a=t.inv?this.solidPath+n:n),r.elem.setAttribute("d",a)),r.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=r;function e(n,i){var s=createNS("filter");return s.setAttribute("id",n),i!==!0&&(s.setAttribute("filterUnits","objectBoundingBox"),s.setAttribute("x","0%"),s.setAttribute("y","0%"),s.setAttribute("width","100%"),s.setAttribute("height","100%")),s}function r(){var n=createNS("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),n}return t})(),featureSupport=(function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,r="SourceGraphic",n=t.data.ef?t.data.ef.length:0,i=createElementID(),s=filtersFactory.createFilter(i,!0),a=0;this.filters=[];var o;for(e=0;e<n;e+=1){o=null;var l=t.data.ef[e].ty;if(registeredEffects$1[l]){var c=registeredEffects$1[l].effect;o=new c(s,t.effectsManager.effectElements[e],t,idPrefix+a,r),r=idPrefix+a,registeredEffects$1[l].countsAsEffect&&(a+=1)}o&&this.filters.push(o)}a&&(t.globalData.defs.appendChild(s),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+i+")")),this.filters.length&&t.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,r=this.filters.length,n=[];for(e=0;e<r;e+=1)this.filters[e].type===t&&n.push(this.filters[e]);return n};function registerEffect$1(t,e,r){registeredEffects$1[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),e=r,this.globalData.defs.appendChild(r)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=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 n=createNS("clipPath"),i=createNS("path");i.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(n.setAttribute("id",s),n.appendChild(i),this.globalData.defs.appendChild(n),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),a.appendChild(this.layerElement),this.transformedElement=a,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}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 MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var r=this.layerId+"_"+e,n,i,s,a;if(e===1||e===3){var o=createNS("mask");o.setAttribute("id",r),o.setAttribute("mask-type",e===3?"luminance":"alpha"),s=createNS("use"),s.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(s),this.globalData.defs.appendChild(o),!featureSupport.maskType&&e===1&&(o.setAttribute("mask-type","luminance"),n=createElementID(),i=filtersFactory.createFilter(n),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),a.appendChild(s),o.appendChild(a),a.setAttribute("filter","url("+getLocationHref()+"#"+n+")"))}else if(e===2){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type","alpha");var c=createNS("g");l.appendChild(c),n=createElementID(),i=filtersFactory.createFilter(n);var u=createNS("feComponentTransfer");u.setAttribute("in","SourceGraphic"),i.appendChild(u);var d=createNS("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),u.appendChild(d),this.globalData.defs.appendChild(i);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+n+")"),c.appendChild(f),s=createNS("use"),s.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(s),featureSupport.maskType||(l.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),c.appendChild(f),a.appendChild(this.layerElement),c.appendChild(a)),this.globalData.defs.appendChild(l)}this.matteMasks[e]=r}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var t={initElement:function(r,n,i){this.initFrame(),this.initBaseData(r,n,i),this.initTransform(r,n,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.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(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(t)],RenderableDOMElement)})();function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(e){var r,n=this.shapeModifiers.length;for(r=0;r<n;r+=1)this.shapeModifiers[r].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var r=0,n=this.shapeModifiers.length;r<n;)if(this.shapeModifiers[r].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,r=this.shapes.length;for(e=0;e<r;e+=1)this.shapes[e].sh.reset();r=this.shapeModifiers.length;var n;for(e=r-1;e>=0&&(n=this.shapeModifiers[e].processShapes(this._isFirstFrame),!n);e-=1);}},searchProcessedElement:function(e){for(var r=this.processedElements,n=0,i=r.length;n<i;){if(r[n].elem===e)return r[n].pos;n+=1}return 0},addProcessedElement:function(e,r){for(var n=this.processedElements,i=n.length;i;)if(i-=1,n[i].elem===e){n[i].pos=r;return}n.push(new ProcessedElement(e,r))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var n=0,i=t.length;n<i;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=t.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(t,e,r,n){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var i,s=e.length||0,a;for(i=0;i<s;i+=1)a=PropertyFactory.getProp(t,e[i].v,0,0,this),this.k=a.k||this.k,this.dataProps[i]={n:e[i].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(t){if(!(this.elem.globalData.frameId===this.frameId&&!t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),e=0;e<r;e+=1)this.dataProps[e].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",e.p*4);var n=e.k.k[0].s?e.k.k[0].s.length-e.p*4:e.k.k.length-e.p*4;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,n=this.o.length/2,i;r<n;){if(i=Math.abs(t[r*4]-t[e*4+r*2]),i>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r=this.data.p*4,n,i;for(e=0;e<r;e+=1)n=e%4===0?100:255,i=Math.round(this.prop.v[e]*n),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=this.data.p*4;e<r;e+=1)n=e%2===0?100:1,i=e%2===0?Math.round(this.prop.v[e]*100):this.prop.v[e],this.o[e-this.data.p*4]!==i&&(this.o[e-this.data.p*4]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),n=createNS(e.t===1?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i=[],s,a,o;for(o=e.g.p*4,a=0;a<o;a+=4)s=createNS("stop"),n.appendChild(s),i.push(s);t.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=i},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,s=createNS("mask"),a=createNS("path");s.appendChild(a);var o=createElementID(),l=createElementID();s.setAttribute("id",l);var c=createNS(t.t===1?"linearGradient":"radialGradient");c.setAttribute("id",o),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),i=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var u=this.stops;for(n=t.g.p*4;n<i;n+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),u.push(r);a.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),t.ty==="gs"&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),t.lj===1&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=c,this.ms=s,this.ost=u,this.maskId=l,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(e,r,n,i){if(r===0)return"";var s=e.o,a=e.i,o=e.v,l,c=" M"+i.applyToPointStringified(o[0][0],o[0][1]);for(l=1;l<r;l+=1)c+=" C"+i.applyToPointStringified(s[l-1][0],s[l-1][1])+" "+i.applyToPointStringified(a[l][0],a[l][1])+" "+i.applyToPointStringified(o[l][0],o[l][1]);return n&&r&&(c+=" C"+i.applyToPointStringified(s[l-1][0],s[l-1][1])+" "+i.applyToPointStringified(a[0][0],a[0][1])+" "+i.applyToPointStringified(o[0][0],o[0][1]),c+="z"),c},SVGElementsRenderer=(function(){var t=new Matrix,e=new Matrix,r={createRenderFunction:n};function n(d){switch(d.ty){case"fl":return o;case"gf":return c;case"gs":return l;case"st":return u;case"sh":case"el":case"rc":case"sr":return a;case"tr":return i;case"no":return s;default:return null}}function i(d,f,h){(h||f.transform.op._mdf)&&f.transform.container.setAttribute("opacity",f.transform.op.v),(h||f.transform.mProps._mdf)&&f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function s(){}function a(d,f,h){var p,g,E,m,v,y,S=f.styles.length,w=f.lvl,A,P,_,L;for(y=0;y<S;y+=1){if(m=f.sh._mdf||h,f.styles[y].lvl<w){for(P=e.reset(),_=w-f.styles[y].lvl,L=f.transformers.length-1;!m&&_>0;)m=f.transformers[L].mProps._mdf||m,_-=1,L-=1;if(m)for(_=w-f.styles[y].lvl,L=f.transformers.length-1;_>0;)P.multiply(f.transformers[L].mProps.v),_-=1,L-=1}else P=t;if(A=f.sh.paths,g=A._length,m){for(E="",p=0;p<g;p+=1)v=A.shapes[p],v&&v._length&&(E+=buildShapeString(v,v._length,v.c,P));f.caches[y]=E}else E=f.caches[y];f.styles[y].d+=d.hd===!0?"":E,f.styles[y]._mdf=m||f.styles[y]._mdf}}function o(d,f,h){var p=f.style;(f.c._mdf||h)&&p.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||h)&&p.pElem.setAttribute("fill-opacity",f.o.v)}function l(d,f,h){c(d,f,h),u(d,f,h)}function c(d,f,h){var p=f.gf,g=f.g._hasOpacity,E=f.s.v,m=f.e.v;if(f.o._mdf||h){var v=d.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(v,f.o.v)}if(f.s._mdf||h){var y=d.t===1?"x1":"cx",S=y==="x1"?"y1":"cy";p.setAttribute(y,E[0]),p.setAttribute(S,E[1]),g&&!f.g._collapsable&&(f.of.setAttribute(y,E[0]),f.of.setAttribute(S,E[1]))}var w,A,P,_;if(f.g._cmdf||h){w=f.cst;var L=f.g.c;for(P=w.length,A=0;A<P;A+=1)_=w[A],_.setAttribute("offset",L[A*4]+"%"),_.setAttribute("stop-color","rgb("+L[A*4+1]+","+L[A*4+2]+","+L[A*4+3]+")")}if(g&&(f.g._omdf||h)){var R=f.g.o;for(f.g._collapsable?w=f.cst:w=f.ost,P=w.length,A=0;A<P;A+=1)_=w[A],f.g._collapsable||_.setAttribute("offset",R[A*2]+"%"),_.setAttribute("stop-opacity",R[A*2+1])}if(d.t===1)(f.e._mdf||h)&&(p.setAttribute("x2",m[0]),p.setAttribute("y2",m[1]),g&&!f.g._collapsable&&(f.of.setAttribute("x2",m[0]),f.of.setAttribute("y2",m[1])));else{var D;if((f.s._mdf||f.e._mdf||h)&&(D=Math.sqrt(Math.pow(E[0]-m[0],2)+Math.pow(E[1]-m[1],2)),p.setAttribute("r",D),g&&!f.g._collapsable&&f.of.setAttribute("r",D)),f.s._mdf||f.e._mdf||f.h._mdf||f.a._mdf||h){D||(D=Math.sqrt(Math.pow(E[0]-m[0],2)+Math.pow(E[1]-m[1],2)));var M=Math.atan2(m[1]-E[1],m[0]-E[0]),O=f.h.v;O>=1?O=.99:O<=-1&&(O=-.99);var z=D*O,V=Math.cos(M+f.a.v)*z+E[0],T=Math.sin(M+f.a.v)*z+E[1];p.setAttribute("fx",V),p.setAttribute("fy",T),g&&!f.g._collapsable&&(f.of.setAttribute("fx",V),f.of.setAttribute("fy",T))}}}function u(d,f,h){var p=f.style,g=f.d;g&&(g._mdf||h)&&g.dashStr&&(p.pElem.setAttribute("stroke-dasharray",g.dashStr),p.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),f.c&&(f.c._mdf||h)&&p.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||h)&&p.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||h)&&(p.pElem.setAttribute("stroke-width",f.w.v),p.msElem&&p.msElem.setAttribute("stroke-width",f.w.v))}return r})();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e=this.shapes.length,r,n,i=this.stylesList.length,s,a=[],o=!1;for(n=0;n<i;n+=1){for(s=this.stylesList[n],o=!1,a.length=0,t=0;t<e;t+=1)r=this.shapes[t],r.styles.indexOf(s)!==-1&&(a.push(r),o=r._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,n=new SVGStyleData(t,e),i=n.pElem;if(t.ty==="st")r=new SVGStrokeStyleData(this,t,n);else if(t.ty==="fl")r=new SVGFillStyleData(this,t,n);else if(t.ty==="gf"||t.ty==="gs"){var s=t.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new s(this,t,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else t.ty==="no"&&(r=new SVGNoStyleData(this,t,n));return(t.ty==="st"||t.ty==="gs")&&(i.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),i.setAttribute("fill-opacity","0"),t.lj===1&&i.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&i.setAttribute("fill-rule","evenodd"),t.ln&&i.setAttribute("id",t.ln),t.cl&&i.setAttribute("class",t.cl),t.bm&&(i.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(n),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),n=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var n=4;t.ty==="rc"?n=5:t.ty==="el"?n=6:t.ty==="sr"&&(n=7);var i=ShapePropertyFactory.getShapeProp(this,t,n,this),s=new SVGShapeData(e,r,i);return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e=t.styles,r,n=this.stylesList.length;for(r=0;r<n;r+=1)e.indexOf(this.stylesList[r])===-1&&!this.stylesList[r].closed&&e.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,n,i,s,a){var o=[].concat(s),l,c=t.length-1,u,d,f=[],h=[],p,g,E;for(l=c;l>=0;l-=1){if(E=this.searchProcessedElement(t[l]),E?e[l]=r[E-1]:t[l]._render=a,t[l].ty==="fl"||t[l].ty==="st"||t[l].ty==="gf"||t[l].ty==="gs"||t[l].ty==="no")E?e[l].style.closed=t[l].hd:e[l]=this.createStyleElement(t[l],i),t[l]._render&&e[l].style.pElem.parentNode!==n&&n.appendChild(e[l].style.pElem),f.push(e[l].style);else if(t[l].ty==="gr"){if(!E)e[l]=this.createGroupElement(t[l]);else for(d=e[l].it.length,u=0;u<d;u+=1)e[l].prevViewData[u]=e[l].it[u];this.searchShapes(t[l].it,e[l].it,e[l].prevViewData,e[l].gr,i+1,o,a),t[l]._render&&e[l].gr.parentNode!==n&&n.appendChild(e[l].gr)}else t[l].ty==="tr"?(E||(e[l]=this.createTransformElement(t[l],n)),p=e[l].transform,o.push(p)):t[l].ty==="sh"||t[l].ty==="rc"||t[l].ty==="el"||t[l].ty==="sr"?(E||(e[l]=this.createShapeElement(t[l],o,i)),this.setElementStyles(e[l])):t[l].ty==="tm"||t[l].ty==="rd"||t[l].ty==="ms"||t[l].ty==="pb"||t[l].ty==="zz"||t[l].ty==="op"?(E?(g=e[l],g.closed=!1):(g=ShapeModifiers.getModifier(t[l].ty),g.init(this,t[l]),e[l]=g,this.shapeModifiers.push(g)),h.push(g)):t[l].ty==="rp"&&(E?(g=e[l],g.closed=!0):(g=ShapeModifiers.getModifier(t[l].ty),e[l]=g,g.init(this,t,l,e),this.shapeModifiers.push(g),a=!1),h.push(g));this.addProcessedElement(t[l],l+1)}for(c=f.length,l=0;l<c;l+=1)f[l].closed=!0;for(c=h.length,l=0;l<c;l+=1)h[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e=this.animatedContents.length,r;for(t=0;t<e;t+=1)r=this.animatedContents[t],(this._isFirstFrame||r.element._isAnimated)&&r.data!==!0&&r.fn(r.data,r.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(t,e,r,n,i,s){this.o=t,this.sw=e,this.sc=r,this.fc=n,this.m=i,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!n,m:!0,p:!0}}LetterProps.prototype.update=function(t,e,r,n,i,s){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 a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),s.length&&(this.p[0]!==s[0]||this.p[1]!==s[1]||this.p[4]!==s[4]||this.p[5]!==s[5]||this.p[12]!==s[12]||this.p[13]!==s[13])&&(this.p=s,this._mdf.p=!0,a=!0),a};function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var n,i=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)r!==this.keysIndex?s=this.effectsSequence[n](s,s.t):s=this.effectsSequence[n](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,n=t.length;r<=n-1&&!(r===n-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e=[],r=0,n=t.length,i,s,a=!1,o=!1,l="";r<n;)a=o,o=!1,i=t.charCodeAt(r),l=t.charAt(r),FontManager.isCombinedCharacter(i)?a=!0:i>=55296&&i<=56319?FontManager.isRegionalFlag(t,r)?l=t.substr(r,14):(s=t.charCodeAt(r+1),s>=56320&&s<=57343&&(FontManager.isModifier(i,s)?(l=t.substr(r,2),a=!0):FontManager.isFlagEmoji(t.substr(r,4))?l=t.substr(r,4):l=t.substr(r,2))):i>56319?(s=t.charCodeAt(r+1),FontManager.isVariationSelector(i)&&(a=!0)):FontManager.isZeroWidthJoiner(i)&&(a=!0,o=!0),a?(e[e.length-1]+=l,a=!1):e.push(l),r+=l.length;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,r=this.data,n=[],i,s,a,o=0,l,c=r.m.g,u=0,d=0,f=0,h=[],p=0,g=0,E,m,v=e.getFontByName(t.f),y,S=0,w=getFontProperties(v);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),s=t.finalText.length,t.finalLineHeight=t.lh;var A=t.tr/1e3*t.finalSize,P;if(t.sz)for(var _=!0,L=t.sz[0],R=t.sz[1],D,M;_;){M=this.buildFinalText(t.t),D=0,p=0,s=M.length,A=t.tr/1e3*t.finalSize;var O=-1;for(i=0;i<s;i+=1)P=M[i].charCodeAt(0),a=!1,M[i]===" "?O=i:(P===13||P===3)&&(p=0,a=!0,D+=t.finalLineHeight||t.finalSize*1.2),e.chars?(y=e.getCharData(M[i],v.fStyle,v.fFamily),S=a?0:y.w*t.finalSize/100):S=e.measureText(M[i],t.f,t.finalSize),p+S>L&&M[i]!==" "?(O===-1?s+=1:i=O,D+=t.finalLineHeight||t.finalSize*1.2,M.splice(i,O===i?1:0,"\r"),O=-1,p=0):(p+=S,p+=A);D+=v.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&R<D?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=M,s=t.finalText.length,_=!1)}p=-A,S=0;var z=0,V;for(i=0;i<s;i+=1)if(a=!1,V=t.finalText[i],P=V.charCodeAt(0),P===13||P===3?(z=0,h.push(p),g=p>g?p:g,p=-2*A,l="",a=!0,f+=1):l=V,e.chars?(y=e.getCharData(V,v.fStyle,e.getFontByName(t.f).fFamily),S=a?0:y.w*t.finalSize/100):S=e.measureText(l,t.f,t.finalSize),V===" "?z+=S+A:(p+=S+A+z,z=0),n.push({l:S,an:S,add:u,n:a,anIndexes:[],val:l,line:f,animatorJustifyOffset:0}),c==2){if(u+=S,l===""||l===" "||i===s-1){for((l===""||l===" ")&&(u-=S);d<=i;)n[d].an=u,n[d].ind=o,n[d].extra=S,d+=1;o+=1,u=0}}else if(c==3){if(u+=S,l===""||i===s-1){for(l===""&&(u-=S);d<=i;)n[d].an=u,n[d].ind=o,n[d].extra=S,d+=1;u=0,o+=1}}else n[o].ind=o,n[o].extra=0,o+=1;if(t.l=n,g=p>g?p:g,h.push(p),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=g,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=h;var T=r.a,k,x;m=T.length;var C,B,N=[];for(E=0;E<m;E+=1){for(k=T[E],k.a.sc&&(t.strokeColorAnim=!0),k.a.sw&&(t.strokeWidthAnim=!0),(k.a.fc||k.a.fh||k.a.fs||k.a.fb)&&(t.fillColorAnim=!0),B=0,C=k.s.b,i=0;i<s;i+=1)x=n[i],x.anIndexes[E]=B,(C==1&&x.val!==""||C==2&&x.val!==""&&x.val!==" "||C==3&&(x.n||x.val==" "||i==s-1)||C==4&&(x.n||i==s-1))&&(k.s.rn===1&&N.push(B),B+=1);r.a[E].s.totalChars=B;var Y=-1,ee;if(k.s.rn===1)for(i=0;i<s;i+=1)x=n[i],Y!=x.anIndexes[E]&&(Y=x.anIndexes[E],ee=N.splice(Math.floor(Math.random()*N.length),1)[0]),x.anIndexes[E]=ee}t.yOffset=t.finalLineHeight||t.finalSize*1.2,t.ls=t.ls||0,t.ascent=v.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=e===void 0?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var t=Math.max,e=Math.min,r=Math.floor;function n(s,a){this._currentTextLength=-1,this.k=!1,this.data=a,this.elem=s,this.comp=s.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(s),this.s=PropertyFactory.getProp(s,a.s||{k:0},0,0,this),"e"in a?this.e=PropertyFactory.getProp(s,a.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(s,a.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(s,a.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(s,a.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(s,a.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(s,a.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,l=0,c=1,u=1;this.ne.v>0?o=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?c=1-this.xe.v/100:u=1+this.xe.v/100;var d=BezierFactory.getBezierEasing(o,l,c,u).get,f=0,h=this.finalS,p=this.finalE,g=this.data.sh;if(g===2)p===h?f=a>=p?1:0:f=t(0,e(.5/(p-h)+(a-h)/(p-h),1)),f=d(f);else if(g===3)p===h?f=a>=p?0:1:f=1-t(0,e(.5/(p-h)+(a-h)/(p-h),1)),f=d(f);else if(g===4)p===h?f=0:(f=t(0,e(.5/(p-h)+(a-h)/(p-h),1)),f<.5?f*=2:f=1-2*(f-.5)),f=d(f);else if(g===5){if(p===h)f=0;else{var E=p-h;a=e(t(0,a+.5-h),p-h);var m=-E/2+a,v=E/2;f=Math.sqrt(1-m*m/(v*v))}f=d(f)}else g===6?(p===h?f=0:(a=e(t(0,a+.5-h),p-h),f=(1+Math.cos(Math.PI+Math.PI*2*a/(p-h)))/2),f=d(f)):(a>=r(h)&&(a-h<0?f=t(0,e(e(p,1)-(h-a),1)):f=t(0,e(p-a,1))),f=d(f));if(this.sm.v!==100){var y=this.sm.v*.01;y===0&&(y=1e-8);var S=.5-y*.5;f<S?f=0:(f=(f-S)/y,f>1&&(f=1))}return f*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var o=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/o,c=this.s.v/o+l,u=this.e.v/o+l;if(c>u){var d=c;c=u,u=d}this.finalS=c,this.finalE=u}},extendPrototype([DynamicPropertyContainer],n);function i(s,a,o){return new n(s,a,o)}return{getTextSelectorProp:i}})();function TextAnimatorDataProperty(t,e,r){var n={propType:!1},i=PropertyFactory.getProp,s=e.a;this.a={r:s.r?i(t,s.r,0,degToRads,r):n,rx:s.rx?i(t,s.rx,0,degToRads,r):n,ry:s.ry?i(t,s.ry,0,degToRads,r):n,sk:s.sk?i(t,s.sk,0,degToRads,r):n,sa:s.sa?i(t,s.sa,0,degToRads,r):n,s:s.s?i(t,s.s,1,.01,r):n,a:s.a?i(t,s.a,1,0,r):n,o:s.o?i(t,s.o,0,.01,r):n,p:s.p?i(t,s.p,1,0,r):n,sw:s.sw?i(t,s.sw,0,0,r):n,sc:s.sc?i(t,s.sc,1,0,r):n,fc:s.fc?i(t,s.fc,1,0,r):n,fh:s.fh?i(t,s.fh,0,0,r):n,fs:s.fs?i(t,s.fs,0,.01,r):n,fb:s.fb?i(t,s.fb,0,.01,r):n,t:s.t?i(t,s.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var t,e=this._textData.a.length,r,n=PropertyFactory.getProp;for(t=0;t<e;t+=1)r=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,r,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(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=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,!(!this._mdf&&!this._isFirstFrame&&!e&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,n=this._animatorsData,i=this._textData,s=this.mHelper,a=this._renderType,o=this.renderedLetters.length,l,c,u,d,f=t.l,h,p,g,E,m,v,y,S,w,A,P,_,L,R,D;if(this._hasMaskedPath){if(D=this._pathData.m,!this._pathData.n||this._pathData._mdf){var M=D.v;this._pathData.r.v&&(M=M.reverse()),h={tLength:0,segments:[]},d=M._length-1;var O;for(_=0,u=0;u<d;u+=1)O=bez.buildBezierData(M.v[u],M.v[u+1],[M.o[u][0]-M.v[u][0],M.o[u][1]-M.v[u][1]],[M.i[u+1][0]-M.v[u+1][0],M.i[u+1][1]-M.v[u+1][1]]),h.tLength+=O.segmentLength,h.segments.push(O),_+=O.segmentLength;u=d,D.v.c&&(O=bez.buildBezierData(M.v[u],M.v[0],[M.o[u][0]-M.v[u][0],M.o[u][1]-M.v[u][1]],[M.i[0][0]-M.v[0][0],M.i[0][1]-M.v[0][1]]),h.tLength+=O.segmentLength,h.segments.push(O),_+=O.segmentLength),this._pathData.pi=h}if(h=this._pathData.pi,p=this._pathData.f.v,y=0,v=1,E=0,m=!0,A=h.segments,p<0&&D.v.c)for(h.tLength<Math.abs(p)&&(p=-Math.abs(p)%h.tLength),y=A.length-1,w=A[y].points,v=w.length-1;p<0;)p+=w[v].partialLength,v-=1,v<0&&(y-=1,w=A[y].points,v=w.length-1);w=A[y].points,S=w[v-1],g=w[v],P=g.partialLength}d=f.length,l=0,c=0;var z=t.finalSize*1.2*.714,V=!0,T,k,x,C,B;C=n.length;var N,Y=-1,ee,H,U,W=p,X=y,ie=v,_e=-1,Fe,ke,Re,le,J,ht,Lt,ot,Ke="",Et=this.defaultPropsArray,xt;if(t.j===2||t.j===1){var Xe=0,Xt=0,Yt=t.j===2?-.5:-1,pt=0,Zt=!0;for(u=0;u<d;u+=1)if(f[u].n){for(Xe&&(Xe+=Xt);pt<u;)f[pt].animatorJustifyOffset=Xe,pt+=1;Xe=0,Zt=!0}else{for(x=0;x<C;x+=1)T=n[x].a,T.t.propType&&(Zt&&t.j===2&&(Xt+=T.t.v*Yt),k=n[x].s,N=k.getMult(f[u].anIndexes[x],i.a[x].s.totalChars),N.length?Xe+=T.t.v*N[0]*Yt:Xe+=T.t.v*N*Yt);Zt=!1}for(Xe&&(Xe+=Xt);pt<u;)f[pt].animatorJustifyOffset=Xe,pt+=1}for(u=0;u<d;u+=1){if(s.reset(),Fe=1,f[u].n)l=0,c+=t.yOffset,c+=V?1:0,p=W,V=!1,this._hasMaskedPath&&(y=X,v=ie,w=A[y].points,S=w[v-1],g=w[v],P=g.partialLength,E=0),Ke="",ot="",ht="",xt="",Et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(_e!==f[u].line){switch(t.j){case 1:p+=_-t.lineWidths[f[u].line];break;case 2:p+=(_-t.lineWidths[f[u].line])/2;break;default:break}_e=f[u].line}Y!==f[u].ind&&(f[Y]&&(p+=f[Y].extra),p+=f[u].an/2,Y=f[u].ind),p+=r[0]*f[u].an*.005;var Ye=0;for(x=0;x<C;x+=1)T=n[x].a,T.p.propType&&(k=n[x].s,N=k.getMult(f[u].anIndexes[x],i.a[x].s.totalChars),N.length?Ye+=T.p.v[0]*N[0]:Ye+=T.p.v[0]*N),T.a.propType&&(k=n[x].s,N=k.getMult(f[u].anIndexes[x],i.a[x].s.totalChars),N.length?Ye+=T.a.v[0]*N[0]:Ye+=T.a.v[0]*N);for(m=!0,this._pathData.a.v&&(p=f[0].an*.5+(_-this._pathData.f.v-f[0].an*.5-f[f.length-1].an*.5)*Y/(d-1),p+=this._pathData.f.v);m;)E+P>=p+Ye||!w?(L=(p+Ye-E)/g.partialLength,H=S.point[0]+(g.point[0]-S.point[0])*L,U=S.point[1]+(g.point[1]-S.point[1])*L,s.translate(-r[0]*f[u].an*.005,-(r[1]*z)*.01),m=!1):w&&(E+=g.partialLength,v+=1,v>=w.length&&(v=0,y+=1,A[y]?w=A[y].points:D.v.c?(v=0,y=0,w=A[y].points):(E-=g.partialLength,w=null)),w&&(S=g,g=w[v],P=g.partialLength));ee=f[u].an/2-f[u].add,s.translate(-ee,0,0)}else ee=f[u].an/2-f[u].add,s.translate(-ee,0,0),s.translate(-r[0]*f[u].an*.005,-r[1]*z*.01,0);for(x=0;x<C;x+=1)T=n[x].a,T.t.propType&&(k=n[x].s,N=k.getMult(f[u].anIndexes[x],i.a[x].s.totalChars),(l!==0||t.j!==0)&&(this._hasMaskedPath?N.length?p+=T.t.v*N[0]:p+=T.t.v*N:N.length?l+=T.t.v*N[0]:l+=T.t.v*N));for(t.strokeWidthAnim&&(Re=t.sw||0),t.strokeColorAnim&&(t.sc?ke=[t.sc[0],t.sc[1],t.sc[2]]:ke=[0,0,0]),t.fillColorAnim&&t.fc&&(le=[t.fc[0],t.fc[1],t.fc[2]]),x=0;x<C;x+=1)T=n[x].a,T.a.propType&&(k=n[x].s,N=k.getMult(f[u].anIndexes[x],i.a[x].s.totalChars),N.length?s.translate(-T.a.v[0]*N[0],-T.a.v[1]*N[1],T.a.v[2]*N[2]):s.translate(-T.a.v[0]*N,-T.a.v[1]*N,T.a.v[2]*N));for(x=0;x<C;x+=1)T=n[x].a,T.s.propType&&(k=n[x].s,N=k.getMult(f[u].anIndexes[x],i.a[x].s.totalChars),N.length?s.scale(1+(T.s.v[0]-1)*N[0],1+(T.s.v[1]-1)*N[1],1):s.scale(1+(T.s.v[0]-1)*N,1+(T.s.v[1]-1)*N,1));for(x=0;x<C;x+=1){if(T=n[x].a,k=n[x].s,N=k.getMult(f[u].anIndexes[x],i.a[x].s.totalChars),T.sk.propType&&(N.length?s.skewFromAxis(-T.sk.v*N[0],T.sa.v*N[1]):s.skewFromAxis(-T.sk.v*N,T.sa.v*N)),T.r.propType&&(N.length?s.rotateZ(-T.r.v*N[2]):s.rotateZ(-T.r.v*N)),T.ry.propType&&(N.length?s.rotateY(T.ry.v*N[1]):s.rotateY(T.ry.v*N)),T.rx.propType&&(N.length?s.rotateX(T.rx.v*N[0]):s.rotateX(T.rx.v*N)),T.o.propType&&(N.length?Fe+=(T.o.v*N[0]-Fe)*N[0]:Fe+=(T.o.v*N-Fe)*N),t.strokeWidthAnim&&T.sw.propType&&(N.length?Re+=T.sw.v*N[0]:Re+=T.sw.v*N),t.strokeColorAnim&&T.sc.propType)for(J=0;J<3;J+=1)N.length?ke[J]+=(T.sc.v[J]-ke[J])*N[0]:ke[J]+=(T.sc.v[J]-ke[J])*N;if(t.fillColorAnim&&t.fc){if(T.fc.propType)for(J=0;J<3;J+=1)N.length?le[J]+=(T.fc.v[J]-le[J])*N[0]:le[J]+=(T.fc.v[J]-le[J])*N;T.fh.propType&&(N.length?le=addHueToRGB(le,T.fh.v*N[0]):le=addHueToRGB(le,T.fh.v*N)),T.fs.propType&&(N.length?le=addSaturationToRGB(le,T.fs.v*N[0]):le=addSaturationToRGB(le,T.fs.v*N)),T.fb.propType&&(N.length?le=addBrightnessToRGB(le,T.fb.v*N[0]):le=addBrightnessToRGB(le,T.fb.v*N))}}for(x=0;x<C;x+=1)T=n[x].a,T.p.propType&&(k=n[x].s,N=k.getMult(f[u].anIndexes[x],i.a[x].s.totalChars),this._hasMaskedPath?N.length?s.translate(0,T.p.v[1]*N[0],-T.p.v[2]*N[1]):s.translate(0,T.p.v[1]*N,-T.p.v[2]*N):N.length?s.translate(T.p.v[0]*N[0],T.p.v[1]*N[1],-T.p.v[2]*N[2]):s.translate(T.p.v[0]*N,T.p.v[1]*N,-T.p.v[2]*N));if(t.strokeWidthAnim&&(ht=Re<0?0:Re),t.strokeColorAnim&&(Lt="rgb("+Math.round(ke[0]*255)+","+Math.round(ke[1]*255)+","+Math.round(ke[2]*255)+")"),t.fillColorAnim&&t.fc&&(ot="rgb("+Math.round(le[0]*255)+","+Math.round(le[1]*255)+","+Math.round(le[2]*255)+")"),this._hasMaskedPath){if(s.translate(0,-t.ls),s.translate(0,r[1]*z*.01+c,0),this._pathData.p.v){R=(g.point[1]-S.point[1])/(g.point[0]-S.point[0]);var kr=Math.atan(R)*180/Math.PI;g.point[0]<S.point[0]&&(kr+=180),s.rotate(-kr*Math.PI/180)}s.translate(H,U,0),p-=r[0]*f[u].an*.005,f[u+1]&&Y!==f[u+1].ind&&(p+=f[u].an/2,p+=t.tr*.001*t.finalSize)}else{switch(s.translate(l,c,0),t.ps&&s.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:s.translate(f[u].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[f[u].line]),0,0);break;case 2:s.translate(f[u].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[f[u].line])/2,0,0);break;default:break}s.translate(0,-t.ls),s.translate(ee,0,0),s.translate(r[0]*f[u].an*.005,r[1]*z*.01,0),l+=f[u].l+t.tr*.001*t.finalSize}a==="html"?Ke=s.toCSS():a==="svg"?Ke=s.to2dCSS():Et=[s.props[0],s.props[1],s.props[2],s.props[3],s.props[4],s.props[5],s.props[6],s.props[7],s.props[8],s.props[9],s.props[10],s.props[11],s.props[12],s.props[13],s.props[14],s.props[15]],xt=Fe}o<=u?(B=new LetterProps(xt,ht,Lt,ot,Ke,Et),this.renderedLetters.push(B),o+=1,this.lettersChangedFlag=!0):(B=this.renderedLetters[u],this.lettersChangedFlag=B.update(xt,ht,Lt,ot,Ke,Et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var r,n=e.length,i,s="";for(r=0;r<n;r+=1)e[r].ty==="sh"&&(i=e[r].ks.k,s+=buildShapeString(i,i.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,n,i){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0);break;default:break}e.translate(n,i,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,r=t.length,n=[],i="";e<r;)t[e]==="\r"||t[e]==="�"?(n.push(i),i=""):i+=t[e],e+=1;return n.push(i),n},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=e,n.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,e,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,s=r.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var a=r.l||[],o=!!this.globalData.fontManager.chars;e=a.length;var l,c=this.mHelper,u="",d=this.data.singleShape,f=0,h=0,p=!0,g=r.tr*.001*r.finalSize;if(d&&!o&&!r.sz){var E=this.textContainer,m="start";switch(r.j){case 1:m="end";break;case 2:m="middle";break;default:m="start";break}E.setAttribute("text-anchor",m),E.setAttribute("letter-spacing",g);var v=this.buildTextContents(r.finalText);for(e=v.length,h=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)l=this.textSpans[t].span||createNS("tspan"),l.textContent=v[t],l.setAttribute("x",0),l.setAttribute("y",h),l.style.display="inherit",E.appendChild(l),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=l,h+=r.finalLineHeight;this.layerElement.appendChild(E)}else{var y=this.textSpans.length,S;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!o||!d||t===0){if(l=y>t?this.textSpans[t].span:createNS(o?"g":"text"),y<=t){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=l,o){var w=createNS("g");l.appendChild(w),this.textSpans[t].childSpan=w}this.textSpans[t].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(c.reset(),d&&(a[t].n&&(f=-g,h+=r.yOffset,h+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(r,c,a[t].line,f,h),f+=a[t].l||0,f+=g),o){S=this.globalData.fontManager.getCharData(r.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var A;if(S.t===1)A=new SVGCompElement(S.data,this.globalData,this);else{var P=emptyShapeData;S.data&&S.data.shapes&&(P=this.buildShapeData(S.data,r.finalSize)),A=new SVGShapeElement(P,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=A,A._debug=!0,A.prepareFrame(0),A.renderFrame(),this.textSpans[t].childSpan.appendChild(A.layerElement),S.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else d&&l.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),l.textContent=a[t].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&l&&l.setAttribute("d",u)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<e;t+=1)r=this.textSpans[t].glyph,r&&(r.prepareFrame(this.comp.renderedFrame-this.data.st),r._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var t,e,r=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;e=n.length;var i,s,a;for(t=0;t<e;t+=1)n[t].n||(i=r[t],s=this.textSpans[t].span,a=this.textSpans[t].glyph,a&&a.renderFrame(),i._mdf.m&&s.setAttribute("transform",i.m),i._mdf.o&&s.setAttribute("op
2acity",i.o),i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i._mdf.sc&&s.setAttribute("stroke",i.sc),i._mdf.fc&&s.setAttribute("fill",i.fc))}};function ISolidElement(t,e,r){this.initElement(t,e,r)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var n="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(r);else{var i=e[n],s=i.getMatte(this.layers[t].tt);r.setMatte(s)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var n="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,i=this.elements[n],s=i.getMatte(this.layers[e].tt);t.setMatte(s);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(!(this.renderedFrame===t||this.destroyed)){t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var n=0,i;n<e;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&
vendor: 5,410 bytes, line 2
2(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!e.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=e.title,this.svgElement.appendChild(n),r+=i}if(e&&e.description){var s=createNS("desc"),a=createElementID();s.setAttribute("id",a),s.textContent=e.description,this.svgElement.appendChild(s),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&e.hideOnTransparent===!1),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(e){var r,n=e.length,i="_";for(r=0;r<n;r+=1)i+=e[r].transform.key+"_";var s=this.sequences[i];return s||(s={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=s,this.sequenceList.push(s)),s},processSequence:function(e,r){for(var n=0,i=e.transforms.length,s=r;n<i&&!r;){if(e.transforms[n].transform.mProps._mdf){s=!0;break}n+=1}if(s)for(e.finalTransform.reset(),n=i-1;n>=0;n-=1)e.finalTransform.multiply(e.transforms[n].transform.mProps.v);e._mdf=s},processSequences:function(e){var r,n=this.sequenceList.length;for(r=0;r<n;r+=1)this.processSequence(this.sequenceList[r],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",r=null,n=null,i=null;function s(){var l=createNS("svg"),c=createNS("filter"),u=createNS("feColorMatrix");return c.setAttribute("id",e),u.setAttribute("type","matrix"),u.setAttribute("color-interpolation-filters","sRGB"),u.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),c.appendChild(u),l.appendChild(c),l.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(l.style.display="none"),l}function a(){r||(i=s(),document.body.appendChild(i),r=createTag("canvas"),n=r.getContext("2d"),n.filter="url
2(#"+e+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}function o(l){return r||a(),r.width=l.width,r.height=l.height,n.filter="url(#"+e+")",r}return{load:a,get:o}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var r=createTag("canvas");return r.width=t,r.height=e,r}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(t){var e,r=t.data.ef?t.data.ef.length:0;this.filters=[];var n;for(e=0;e<r;e+=1){n=null;var i=t.data.ef[e].ty;if(registeredEffects[i]){var s=registeredEffects[i].effect;n=new s(t.effectsManager.effectElements[e],t)}n&&this.filters.push(n)}this.filters.length&&t.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,r=this.filters.length,n=[];for(e=0;e<r;e+=1)this.filters[e].type===t&&n.push(this.filters[e]);return n};function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,n=this.masksProperties.length,i=!1;for(r=0;r<n;r+=1)this.masksProperties[r].mode!=="n"&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t=this.element.finalTransform.mat,e=this.element.canvasContext,r,n=this.masksProperties.length,i,s,a;for(e.beginPath(),r=0;r<n;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(e.moveTo(0,0),e.lineTo(this.element.globalData.compSize.w,0),e.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),e.lineTo(0,this.element.globalData.compSize.h),e.lineTo(0,0)),a=this.viewData[r].v,i=t.applyToPointArray(a.v[0][0],a.v[0][1],0),e.moveTo(i[0],i[1]);var o,l=a._length;for(o=1;o<l;o+=1)s=t.applyToTriplePoints(a.o[o-1],a.i[o],a.v[o]),e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);s=t.applyToTriplePoints(a.o[o-1],a.i[0],a.v[0]),e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5])}this.element.globalData.renderer.save(!0),e.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r);var n=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=r}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0],r=e.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],r=e.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var n=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(n.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas),s=i.getContext("2d");s.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(t,e,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,i,t);var s,a=r.length,o;for(s=0;s<a;s+=1)r[s].closed||(o={transforms:n.addTransformSequence(r[s].transforms),trNodes:[]},this.styledShapes.push(o),r[s].elements.push(o))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:t.hd===!0},n={};if(t.ty==="fl"||t.ty==="st"?(n.c=PropertyFactory.getProp(this,t.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):(t.ty==="gf"||t.ty==="gs")&&(n.s=PropertyFactory.getProp(this,t.s,1,null,this),n.e=PropertyFactory.getProp(this,t.e,1,null,this),n.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,t.g,this)),n.o=PropertyFactory.getProp(this,t.o,0,.01,this),t.ty==="st"||t.ty==="gs"){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],t.lj==1&&(r.ml=t.ml),n.w=PropertyFactory.getProp(this,t.w,0,null,this),n.w.k||(r.wi=n.w.v),t.d){var i=new DashProperty(this,t.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=t.r===2?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){var t={it:[],prevViewData:[]};return t},CVShapeElement.prototype.createTransformElement=function(t){var e={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}};return e},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;
vendor: 110,695 bytes, line 2
2e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,n,i){var s,a=t.length-1,o,l,c=[],u=[],d,f,h,p=[].concat(i);for(s=a;s>=0;s-=1){if(d=this.searchProcessedElement(t[s]),d?e[s]=r[d-1]:t[s]._shouldRender=n,t[s].ty==="fl"||t[s].ty==="st"||t[s].ty==="gf"||t[s].ty==="gs")d?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],p),c.push(e[s].style);else if(t[s].ty==="gr"){if(!d)e[s]=this.createGroupElement(t[s]);else for(l=e[s].it.length,o=0;o<l;o+=1)e[s].prevViewData[o]=e[s].it[o];this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,n,p)}else t[s].ty==="tr"?(d||(h=this.createTransformElement(t[s]),e[s]=h),p.push(e[s]),this.addTransformToStyleList(e[s])):t[s].ty==="sh"||t[s].ty==="rc"||t[s].ty==="el"||t[s].ty==="sr"?d||(e[s]=this.createShapeElement(t[s])):t[s].ty==="tm"||t[s].ty==="rd"||t[s].ty==="pb"||t[s].ty==="zz"||t[s].ty==="op"?(d?(f=e[s],f.closed=!1):(f=ShapeModifiers.getModifier(t[s].ty),f.init(this,t[s]),e[s]=f,this.shapeModifiers.push(f)),u.push(f)):t[s].ty==="rp"&&(d?(f=e[s],f.closed=!0):(f=ShapeModifiers.getModifier(t[s].ty),e[s]=f,f.init(this,t,s,e),this.shapeModifiers.push(f),n=!1),u.push(f));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),a=u.length,s=0;s<a;s+=1)u[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e=this.stylesList.length,r,n,i,s,a,o,l=this.globalData.renderer,c=this.globalData.canvasContext,u,d;for(t=0;t<e;t+=1)if(d=this.stylesList[t],u=d.type,!((u==="st"||u==="gs")&&d.wi===0||!d.data._shouldRender||d.coOp===0||this.globalData.currentGlobalAlpha===0)){for(l.save(),a=d.elements,u==="st"||u==="gs"?(l.ctxStrokeStyle(u==="st"?d.co:d.grd),l.ctxLineWidth(d.wi),l.ctxLineCap(d.lc),l.ctxLineJoin(d.lj),l.ctxMiterLimit(d.ml||0)):l.ctxFillStyle(u==="fl"?d.co:d.grd),l.ctxOpacity(d.coOp),u!=="st"&&u!=="gs"&&c.beginPath(),l.ctxTransform(d.preTransforms.finalTransform.props),n=a.length,r=0;r<n;r+=1){for((u==="st"||u==="gs")&&(c.beginPath(),d.da&&(c.setLineDash(d.da),c.lineDashOffset=d.do)),o=a[r].trNodes,s=o.length,i=0;i<s;i+=1)o[i].t==="m"?c.moveTo(o[i].p[0],o[i].p[1]):o[i].t==="c"?c.bezierCurveTo(o[i].pts[0],o[i].pts[1],o[i].pts[2],o[i].pts[3],o[i].pts[4],o[i].pts[5]):c.closePath();(u==="st"||u==="gs")&&(l.ctxStroke(),d.da&&c.setLineDash(this.dashResetter))}u!=="st"&&u!=="gs"&&this.globalData.renderer.ctxFill(d.r),l.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,n){var i,s=e.length-1,a;for(a=t,i=s;i>=0;i-=1)e[i].ty==="tr"?(a=r[i].transform,this.renderShapeTransform(t,a)):e[i].ty==="sh"||e[i].ty==="el"||e[i].ty==="rc"||e[i].ty==="sr"?this.renderPath(e[i],r[i]):e[i].ty==="fl"?this.renderFill(e[i],r[i],a):e[i].ty==="st"?this.renderStroke(e[i],r[i],a):e[i].ty==="gf"||e[i].ty==="gs"?this.renderGradientFill(e[i],r[i],a):e[i].ty==="gr"?this.renderShape(a,e[i].it,r[i].it):e[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r=t.trNodes,n=e.paths,i,s,a,o=n._length;r.length=0;var l=t.transforms.finalTransform;for(a=0;a<o;a+=1){var c=n.shapes[a];if(c&&c.v){for(s=c._length,i=1;i<s;i+=1)i===1&&r.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),r.push({t:"c",pts:l.applyToTriplePoints(c.o[i-1],c.i[i],c.v[i])});s===1&&r.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&s&&(r.push({t:"c",pts:l.applyToTriplePoints(c.o[i-1],c.i[0],c.v[0])}),r.push({t:"z"}))}}t.trNodes=r}},CVShapeElement.prototype.renderPath=function(t,e){if(t.hd!==!0&&t._shouldRender){var r,n=e.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var n=e.style;(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var n=e.style,i;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||t.t!==1&&(e.h._mdf||e.a._mdf)){var s=this.globalData.canvasContext,a=e.s.v,o=e.e.v;if(t.t===1)i=s.createLinearGradient(a[0],a[1],o[0],o[1]);else{var l=Math.sqrt(Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)),c=Math.atan2(o[1]-a[1],o[0]-a[0]),u=e.h.v;u>=1?u=.99:u<=-1&&(u=-.99);var d=l*u,f=Math.cos(c+e.a.v)*d+a[0],h=Math.sin(c+e.a.v)*d+a[1];i=s.createRadialGradient(f,h,0,a[0],a[1],l)}var p,g=t.g.p,E=e.g.c,m=1;for(p=0;p<g;p+=1)e.g._hasOpacity&&e.g._collapsable&&(m=e.g.o[p*2+1]),i.addColorStop(E[p*4]/100,"rgba("+E[p*4+1]+","+E[p*4+2]+","+E[p*4+3]+","+m+")");n.grd=i}n.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var n=e.style,i=e.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(n.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(t,e,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var n=this.globalData.fontManager.getFontByName(t.f),i,s,a=t.l,o=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,s=t.finalText.length;var l,c,u,d,f,h,p,g,E,m,v=this.data.singleShape,y=t.tr*.001*t.finalSize,S=0,w=0,A=!0,P=0;for(i=0;i<s;i+=1){l=this.globalData.fontManager.getCharData(t.finalText[i],n.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily),c=l&&l.data||{},o.reset(),v&&a[i].n&&(S=-y,w+=t.yOffset,w+=A?1:0,A=!1),f=c.shapes?c.shapes[0].it:[],p=f.length,o.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,o,a[i].line,S,w),E=createSizedArray(p-1);var _=0;for(h=0;h<p;h+=1)if(f[h].ty==="sh"){for(d=f[h].ks.k.i.length,g=f[h].ks.k,m=[],u=1;u<d;u+=1)u===1&&m.push(o.applyToX(g.v[0][0],g.v[0][1],0),o.applyToY(g.v[0][0],g.v[0][1],0)),m.push(o.applyToX(g.o[u-1][0],g.o[u-1][1],0),o.applyToY(g.o[u-1][0],g.o[u-1][1],0),o.applyToX(g.i[u][0],g.i[u][1],0),o.applyToY(g.i[u][0],g.i[u][1],0),o.applyToX(g.v[u][0],g.v[u][1],0),o.applyToY(g.v[u][0],g.v[u][1],0));m.push(o.applyToX(g.o[u-1][0],g.o[u-1][1],0),o.applyToY(g.o[u-1][0],g.o[u-1][1],0),o.applyToX(g.i[0][0],g.i[0][1],0),o.applyToY(g.i[0][0],g.i[0][1],0),o.applyToX(g.v[0][0],g.v[0][1],0),o.applyToY(g.v[0][0],g.v[0][1],0)),E[_]=m,_+=1}v&&(S+=a[i].l,S+=y),this.textSpans[P]?this.textSpans[P].elem=E:this.textSpans[P]={elem:E},P+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var t=this.canvasContext;t.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var e,r,n,i,s,a,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;r=l.length;var c,u=null,d=null,f=null,h,p,g=this.globalData.renderer;for(e=0;e<r;e+=1)if(!l[e].n){if(c=o[e],c&&(g.save(),g.ctxTransform(c.p),g.ctxOpacity(c.o)),this.fill){for(c&&c.fc?u!==c.fc&&(g.ctxFillStyle(c.fc),u=c.fc):u!==this.values.fill&&(u=this.values.fill,g.ctxFillStyle(this.values.fill)),h=this.textSpans[e].elem,i=h.length,this.globalData.canvasContext.beginPath(),n=0;n<i;n+=1)for(p=h[n],a=p.length,this.globalData.canvasContext.moveTo(p[0],p[1]),s=2;s<a;s+=6)this.globalData.canvasContext.bezierCurveTo(p[s],p[s+1],p[s+2],p[s+3],p[s+4],p[s+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(c&&c.sw?f!==c.sw&&(f=c.sw,g.ctxLineWidth(c.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),c&&c.sc?d!==c.sc&&(d=c.sc,g.ctxStrokeStyle(c.sc)):d!==this.values.stroke&&(d=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),h=this.textSpans[e].elem,i=h.length,this.globalData.canvasContext.beginPath(),n=0;n<i;n+=1)for(p=h[n],a=p.length,this.globalData.canvasContext.moveTo(p[0],p[1]),s=2;s<a;s+=6)this.globalData.canvasContext.bezierCurveTo(p[s],p[s+1],p[s+2],p[s+3],p[s+4],p[s+5]);this.globalData.canvasContext.closePath(),g.ctxStroke()}c&&this.globalData.renderer.restore()}};function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e=t.getContext("2d"),r=this.img.width,n=this.img.height,i=r/n,s=this.assetData.w/this.assetData.h,a,o,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;i>s&&l==="xMidYMid slice"||i<s&&l!=="xMidYMid slice"?(o=n,a=o*s):(a=r,o=a/s),e.drawImage(this.img,(r-a)/2,(n-o)/2,a,o,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(t,e,r){this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){t[0]===1&&t[1]===0&&t[4]===0&&t[5]===1&&t[12]===0&&t[13]===0||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,r,n){this.canvasContext.fillRect(t,e,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){this.reset();var r,n;t?(r=t,n=e,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr);var i,s;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var a=this.renderConfig.preserveAspectRatio.split(" "),o=a[1]||"meet",l=a[0]||"xMidYMid",c=l.substr(0,4),u=l.substr(4);i=r/n,s=this.transformCanvas.w/this.transformCanvas.h,s>i&&o==="meet"||s<i&&o==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),c==="xMid"&&(s<i&&o==="meet"||s>i&&o==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:c==="xMax"&&(s<i&&o==="meet"||s>i&&o==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,u==="YMid"&&(s>i&&o==="meet"||s<i&&o==="slice")?this.transformCanvas.ty=(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:u==="YMax"&&(s>i&&o==="meet"||s<i&&o==="slice")?this.transformCanvas.ty=(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var t,e=this.layers?this.layers.length:0;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if(!(this.renderedFrame===t&&this.renderConfig.clearCanvas===!0&&!e||this.destroyed||t===-1)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r,n=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var t,e=15;for(t=0;t<e;t+=1){var r=new CanvasContext;this.stack[t]=r}this._length=e,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var t=this._length*2,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e=this.stack[this.cArrPos],r=e.transform,n,i=this.cTr.props;for(n=0;n<16;n+=1)i[n]=r[n];if(t){this.nativeContext.restore();var s=this.stack[this.cArrPos+1];this.appliedFillStyle=s.fillStyle,this.appliedStrokeStyle=s.strokeStyle,this.appliedLineWidth=s.lineWidth,this.appliedLineCap=s.lineCap,this.appliedLineJoin=s.lineJoin,this.appliedMiterLimit=s.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(t||e.opacity!==-1&&this.currentOpacity!==e.opacity)&&(this.nativeContext.globalAlpha=e.opacity,this.currentOpacity=e.opacity),this.currentFillStyle=e.fillStyle,this.currentStrokeStyle=e.strokeStyle,this.currentLineWidth=e.lineWidth,this.currentLineCap=e.lineCap,this.currentLineJoin=e.lineJoin,this.currentMiterLimit=e.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],n;for(n=0;n<16;n+=1)r.transform[n]=e[n];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=r.opacity,i.fillStyle=r.fillStyle,i.strokeStyle=r.strokeStyle,i.lineWidth=r.lineWidth,i.lineCap=r.lineCap,i.lineJoin=r.lineJoin,i.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var r=e.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,r,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();var e,r=this.layers.length;for(e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:e&&e.clearCanvas!==void 0?e.clearCanvas:!0,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();e.transform=r,e.webkitTransform=r}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(t,e,r){this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?(t=createNS("rect"),t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(t=createTag("div"),t.style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)};function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r=t.sh.v,n=t.transformers,i,s=r._length,a,o,l,c;if(!(s<=1)){for(i=0;i<s-1;i+=1)a=this.getTransformedPoint(n,r.v[i]),o=this.getTransformedPoint(n,r.o[i]),l=this.getTransformedPoint(n,r.i[i+1]),c=this.getTransformedPoint(n,r.v[i+1]),this.checkBounds(a,o,l,c,e);r.c&&(a=this.getTransformedPoint(n,r.v[i]),o=this.getTransformedPoint(n,r.o[i]),l=this.getTransformedPoint(n,r.i[0]),c=this.getTransformedPoint(n,r.v[0]),this.checkBounds(a,o,l,c,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,n,i){this.getBoundsOfCurve(t,e,r,n);var s=this.shapeBoundingBox;i.x=bmMin(s.left,i.x),i.xMax=bmMax(s.right,i.xMax),i.y=bmMin(s.top,i.y),i.yMax=bmMax(s.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,r,n){for(var i=[[t[0],n[0]],[t[1],n[1]]],s,a,o,l,c,u,d,f=0;f<2;++f)a=6*t[f]-12*e[f]+6*r[f],s=-3*t[f]+9*e[f]-9*r[f]+3*n[f],o=3*e[f]-3*t[f],a|=0,s|=0,o|=0,s===0&&a===0||(s===0?(l=-o/a,l>0&&l<1&&i[f].push(this.calculateF(l,t,e,r,n,f))):(c=a*a-4*o*s,c>=0&&(u=(-a+bmSqrt(c))/(2*s),u>0&&u<1&&i[f].push(this.calculateF(u,t,e,r,n,f)),d=(-a-bmSqrt(c))/(2*s),d>0&&d<1&&i[f].push(this.calculateF(d,t,e,r,n,f)))));this.shapeBoundingBox.left=bmMin.apply(null,i[0]),this.shapeBoundingBox.top=bmMin.apply(null,i[1]),this.shapeBoundingBox.right=bmMax.apply(null,i[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,i[1])},HShapeElement.prototype.calculateF=function(t,e,r,n,i,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*r[s]+3*(1-t)*bmPow(t,2)*n[s]+bmPow(t,3)*i[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var n=0;n<t.keyframes.length;n+=1){var i=t.keyframes[n].s;i>r&&(r=i)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=i,n.webkitTransform=i}}};function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var n=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{e.fontFamily=n.fFamily;var i=t.fWeight,s=t.fStyle;e.fontStyle=s,e.fontWeight=i}var a,o,l=t.l;o=l.length;var c,u,d,f=this.mHelper,h,p="",g=0;for(a=0;a<o;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?c=this.textPaths[g]:(c=createNS("path"),c.setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?(u=this.textSpans[g],d=u.children[0]):(u=createTag("div"),u.style.lineHeight=0,d=createNS("svg"),d.appendChild(c),styleDiv(u)))):this.isMasked?c=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(u=this.textSpans[g],c=this.textPaths[g]):(u=createTag("span"),styleDiv(u),c=createTag("span"),styleDiv(c),u.appendChild(c)),this.globalData.fontManager.chars){var E=this.globalData.fontManager.getCharData(t.finalText[a],n.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily),m;if(E?m=E.data:m=null,f.reset(),m&&m.shapes&&m.shapes.length&&(h=m.shapes[0].it,f.scale(t.finalSize/100,t.finalSize/100),p=this.createPathShape(f,h),c.setAttribute("d",p)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(u),m&&m.shapes){document.body.appendChild(d);var v=d.getBBox();d.setAttribute("width",v.width+2),d.setAttribute("height",v.height+2),d.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var y=d.style,S="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";y.transform=S,y.webkitTransform=S,l[a].yOffset=v.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);u.appendChild(d)}}else if(c.textContent=l[a].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(u);var w=c.style,A="translate3d(0,"+-t.finalSize/1.2+"px,0)";w.transform=A,w.webkitTransform=A}this.isMasked?this.textSpans[g]=c:this.textSpans[g]=u,this.textSpans[g].style.display="block",this.textPaths[g]=c,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,n,i=0,s=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;n=a.length;var o,l,c;for(r=0;r<n;r+=1)a[r].n?i+=1:(l=this.textSpans[r],c=this.textPaths[r],o=s[i],i+=1,o._mdf.m&&(this.isMasked?l.setAttribute("transform",o.m):(l.style.webkitTransform=o.m,l.style.transform=o.m)),l.style.opacity=o.o,o.sw&&o._mdf.sw&&c.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&c.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(c.setAttribute("fill",o.fc),c.style.color=o.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height));var d=1;if(this.currentBBox.w!==u.width+d*2||this.currentBBox.h!==u.height+d*2||this.currentBBox.x!==u.x-d||this.currentBBox.y!==u.y-d){this.currentBBox.w=u.width+d*2,this.currentBBox.h=u.height+d*2,this.currentBBox.x=u.x-d,this.currentBBox.y=u.y-d,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=f,t.webkitTransform=f}}}};function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,t.pe,0,0,this),t.ks.p.s?(this.px=n(this,t.ks.p.x,1,0,this),this.py=n(this,t.ks.p.y,1,0,this),this.pz=n(this,t.ks.p.z,1,0,this)):this.p=n(this,t.ks.p,1,0,this),t.ks.a&&(this.a=n(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var i,s=t.ks.or.k.length;for(i=0;i<s;i+=1)t.ks.or.k[i].to=null,t.ks.or.k[i].ti=null}this.or=n(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,t.ks.rx,0,degToRads,this),this.ry=n(this,t.ks.ry,0,degToRads,this),this.rz=n(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e=this.comp.threeDElements.length,r,n,i;for(t=0;t<e;t+=1)if(r=this.comp.threeDElements[t],r.type==="3d"){n=r.perspectiveElem.style,i=r.container.style;var s=this.pe.v+"px",a="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=s,n.webkitPerspective=s,i.transformOrigin=a,i.mozTransformOrigin=a,i.webkitTransformOrigin=a,n.transform=o,n.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame,e,r;if(this.hierarchy)for(r=this.hierarchy.length,e=0;e<r;e+=1)t=this.hierarchy[e].finalTransform.mProp._mdf||t;if(t||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(r=this.hierarchy.length-1,e=r;e>=0;e-=1){var n=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;this.p?i=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:i=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/s,i[1]/s,i[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var d,f,h;for(e=0;e<r;e+=1)if(d=this.comp.threeDElements[e],d.type==="3d"){if(u){var p=this.mat.toCSS();h=d.container.style,h.transform=p,h.webkitTransform=p}this.pe._mdf&&(f=d.perspectiveElem.style,f.perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var n=this.layers[e];if(!n.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var i=0,s,a,o;i<e;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement&&(a=this.elements[i],o=this.layers[i].ddd?this.getThreeDContainerByPos(i):a.getBaseElement(),s=o||s),i+=1;s?(!n.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,s):(!n.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,e)}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r=createTag("div"),n,i;styleDiv(r);var s=createTag("div");if(styleDiv(s),e==="3d"){n=r.style,n.width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var a="50% 50%";n.webkitTransformOrigin=a,n.mozTransformOrigin=a,n.transformOrigin=a,i=s.style;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.transform=o,i.webkitTransform=o}r.appendChild(s);var l={container:s,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e=this.layers.length,r,n="";for(t=0;t<e;t+=1)this.layers[t].ddd&&this.layers[t].ty!==3?(n!=="3d"&&(n="3d",r=this.createThreeDContainer(t,"3d")),r.endPos=Math.max(r.endPos,t)):(n!=="2d"&&(n="2d",r=this.createThreeDContainer(t,"2d")),r.endPos=Math.max(r.endPos,t));for(e=this.threeDElements.length,t=e-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,n=this.threeDElements.length;r<n;){if(e<=this.threeDElements[r].endPos){for(var i=this.threeDElements[r].startPos,s;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(s=this.elements[i].getBaseElement()),i+=1;s?this.threeDElements[r].container.insertBefore(t,s):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,n=e.style;n.width=t.w+"px",n.height=t.h+"px",this.resizerElem=e,styleDiv(e),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),n.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var s=createNS("defs");i.appendChild(s),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=s,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,r=t/e,n=this.globalData.compSize.w/this.globalData.compSize.h,i,s,a,o;n>r?(i=t/this.globalData.compSize.w,s=t/this.globalData.compSize.w,a=0,o=(e-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2):(i=e/this.globalData.compSize.h,s=e/this.globalData.compSize.h,a=(t-this.globalData.compSize.w*(e/this.globalData.compSize.h))/2,o=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+i+",0,0,0,0,"+s+",0,0,0,0,1,0,"+a+","+o+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t=this.globalData.compSize.w,e=this.globalData.compSize.h,r,n=this.threeDElements.length;for(r=0;r<n;r+=1){var i=this.threeDElements[r].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(e,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,n=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e],n,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}};function HCompElement(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var r=0,n;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(t,n):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=(function(){return function(t){function e(r){for(var n=0,i=t.layers.length;n<i;){if(t.layers[n].nm===r||t.layers[n].ind===r)return t.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e}})();function _typeof$2(t){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(t)}function seedRandom(t,e){var r=this,n=256,i=6,s=52,a="random",o=e.pow(n,i),l=e.pow(2,s),c=l*2,u=n-1,d;function f(y,S,w){var A=[];S=S===!0?{entropy:!0}:S||{};var P=E(g(S.entropy?[y,v(t)]:y===null?m():y,3),A),_=new h(A),L=function(){for(var D=_.g(i),M=o,O=0;D<l;)D=(D+O)*n,M*=n,O=_.g(1);for(;D>=c;)D/=2,M/=2,O>>>=1;return(D+O)/M};return L.int32=function(){return _.g(4)|0},L.quick=function(){return _.g(4)/4294967296},L.double=L,E(v(_.S),t),(S.pass||w||function(R,D,M,O){return O&&(O.S&&p(O,_),R.state=function(){return p(_,{})}),M?(e[a]=R,D):R})(L,P,"global"in S?S.global:this==e,S.state)}e["seed"+a]=f;function h(y){var S,w=y.length,A=this,P=0,_=A.i=A.j=0,L=A.S=[];for(w||(y=[w++]);P<n;)L[P]=P++;for(P=0;P<n;P++)L[P]=L[_=u&_+y[P%w]+(S=L[P])],L[_]=S;A.g=function(R){for(var D,M=0,O=A.i,z=A.j,V=A.S;R--;)D=V[O=u&O+1],M=M*n+V[u&(V[O]=V[z=u&z+D])+(V[z]=D)];return A.i=O,A.j=z,M}}function p(y,S){return S.i=y.i,S.j=y.j,S.S=y.S.slice(),S}function g(y,S){var w=[],A=_typeof$2(y),P;if(S&&A=="object")for(P in y)try{w.push(g(y[P],S-1))}catch{}return w.length?w:A=="string"?y:y+"\0"}function E(y,S){for(var w=y+"",A,P=0;P<w.length;)S[u&P]=u&(A^=S[u&P]*19)+w.charCodeAt(P++);return v(S)}function m(){try{if(d)return v(d.randomBytes(n));var y=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(y),v(y)}catch{var S=r.navigator,w=S&&S.plugins;return[+new Date,r,w,r.screen,v(t)]}}function v(y){return String.fromCharCode.apply(0,y)}E(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(t)}var ExpressionManager=(function(){"use strict";var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return t==="number"||e instanceof Number||t==="boolean"||t==="string"}function $bm_neg(t){var e=_typeof$1(t);if(e==="number"||t instanceof Number||e==="boolean")return-t;if($bm_isInstanceOfArray(t)){var r,n=t.length,i=[];for(r=0;r<n;r+=1)i[r]=-t[r];return i}return t.propType?t.v:-t}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var r=_typeof$1(t),n=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(n,e)||r==="string"||n==="string")return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return t=t.slice(0),t[0]+=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return e=e.slice(0),e[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var i=0,s=t.length,a=e.length,o=[];i<s||i<a;)(typeof t[i]=="number"||t[i]instanceof Number)&&(typeof e[i]=="number"||e[i]instanceof Number)?o[i]=t[i]+e[i]:o[i]=e[i]===void 0?t[i]:t[i]||e[i],i+=1;return o}return 0}var add=sum;function sub(t,e){var r=_typeof$1(t),n=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(n,e))return r==="string"&&(t=parseInt(t,10)),n==="string"&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return t=t.slice(0),t[0]-=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return e=e.slice(0),e[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var i=0,s=t.length,a=e.length,o=[];i<s||i<a;)(typeof t[i]=="number"||t[i]instanceof Number)&&(typeof e[i]=="number"||e[i]instanceof Number)?o[i]=t[i]-e[i]:o[i]=e[i]===void 0?t[i]:t[i]||e[i],i+=1;return o}return 0}function mul(t,e){var r=_typeof$1(t),n=_typeof$1(e),i;if(isNumerable(r,t)&&isNumerable(n,e))return t*e;var s,a;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(a=t.length,i=createTypedArray("float32",a),s=0;s<a;s+=1)i[s]=t[s]*e;return i}if(isNumerable(r,t)&&$bm_isInstanceOfArray(e)){for(a=e.length,i=createTypedArray("float32",a),s=0;s<a;s+=1)i[s]=t*e[s];return i}return 0}function div(t,e){var r=_typeof$1(t),n=_typeof$1(e),i;if(isNumerable(r,t)&&isNumerable(n,e))return t/e;var s,a;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(a=t.length,i=createTypedArray("float32",a),s=0;s<a;s+=1)i[s]=t[s]/e;return i}if(isNumerable(r,t)&&$bm_isInstanceOfArray(e)){for(a=e.length,i=createTypedArray("float32",a),s=0;s<a;s+=1)i[s]=t/e[s];return i}return 0}function mod(t,e){return typeof t=="string"&&(t=parseInt(t,10)),typeof e=="string"&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var n=r;r=e,e=n}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var r,n=Math.min(t.length,e.length),i=0;for(r=0;r<n;r+=1)i+=Math.pow(e[r]-t[r],2);return Math.sqrt(i)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e=t[0],r=t[1],n=t[2],i=Math.max(e,r,n),s=Math.min(e,r,n),a,o,l=(i+s)/2;if(i===s)a=0,o=0;else{var c=i-s;switch(o=l>.5?c/(2-i-s):c/(i+s),i){case e:a=(r-n)/c+(r<n?6:0);break;case r:a=(n-e)/c+2;break;case n:a=(e-r)/c+4;break;default:break}a/=6}return[a,o,l,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e=t[0],r=t[1],n=t[2],i,s,a;if(r===0)i=n,a=n,s=n;else{var o=n<.5?n*(1+r):n+r-n*r,l=2*n-o;i=hue2rgb(l,o,e+1/3),s=hue2rgb(l,o,e),a=hue2rgb(l,o,e-1/3)}return[i,s,a,t[3]]}function linear(t,e,r,n,i){if((n===void 0||i===void 0)&&(n=e,i=r,e=0,r=1),r<e){var s=r;r=e,e=s}if(t<=e)return n;if(t>=r)return i;var a=r===e?0:(t-e)/(r-e);if(!n.length)return n+(i-n)*a;var o,l=n.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=n[o]+(i[o]-n[o])*a;return c}function random(t,e){if(e===void 0&&(t===void 0?(t=0,e=1):(e=t,t=void 0)),e.length){var r,n=e.length;t||(t=createTypedArray("float32",n));var i=createTypedArray("float32",n),s=BMMath.random();for(r=0;r<n;r+=1)i[r]=t[r]+s*(e[r]-t[r]);return i}t===void 0&&(t=0);var a=BMMath.random();return t+a*(e-t)}function createPath(t,e,r,n){var i,s=t.length,a=shapePool.newElement();a.setPathData(!!n,s);var o=[0,0],l,c;for(i=0;i<s;i+=1)l=e&&e[i]?e[i]:o,c=r&&r[i]?r[i]:o,a.setTripleAt(t[i][0],t[i][1],c[0]+t[i][0],c[1]+t[i][1],l[0]+t[i][0],l[1]+t[i][1],i,!0);return a}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function t(e,r){var n,i,s=this.pv.length?this.pv.length:1,a=createTypedArray("float32",s);e=5;var o=Math.floor(time*e);for(n=0,i=0;n<o;){for(i=0;i<s;i+=1)a[i]+=-r+r*2*BMMath.random();n+=1}var l=time*e,c=l-Math.floor(l),u=createTypedArray("float32",s);if(s>1){for(i=0;i<s;i+=1)u[i]=this.pv[i]+a[i]+(-r+r*2*BMMath.random())*c;return u}return this.pv+a[0]+(-r+r*2*BMMath.random())*c}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,i=-Math.atan2(r[1],r[2])/degToRads;return[i,n,0]}function easeOut(t,e,r,n,i){return applyEase(easeOutBez,t,e,r,n,i)}function easeIn(t,e,r,n,i){return applyEase(easeInBez,t,e,r,n,i)}function ease(t,e,r,n,i){return applyEase(easeInOutBez,t,e,r,n,i)}function applyEase(t,e,r,n,i,s){i===void 0?(i=r,s=n):e=(e-r)/(n-r),e>1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(i)){var o,l=i.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=(s[o]-i[o])*a+i[o];return c}return(s-i)*a+i}function nearestKey(t){var e,r=data.k.length,n,i;if(!data.k.length||typeof data.k[0]=="number")n=0,i=0;else if(n=-1,t*=elem.comp.globalData.frameRate,t<data.k[0].t)n=1,i=data.k[0].t;else{for(e=0;e<r-1;e+=1)if(t===data.k[e].t){n=e+1,i=data.k[e].t;break}else if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(n=e+2,i=data.k[e+1].t):(n=e+1,i=data.k[e].t);break}n===-1&&(n=e+1,i=data.k[e].t)}var s={};return s.index=n,s.time=i/elem.comp.globalData.frameRate,s}function key(t){var e,r,n;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(n=i.length,r=0;r<n;r+=1)e[r]=i[r],e.value[r]=i[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return!t&&t!==0&&(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return typeof value=="string"?e===void 0?value.substring(t):value.substring(t,e):""}function substr(t,e){return typeof value=="string"?e===void 0?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=t===0?0:Math.floor(time*t)/t,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob})(),Expressions=(function(){var t={};t.initExpressions=e,t.resetFrame=ExpressionManager.resetFrame;function e(r){var n=0,i=[];function s(){n+=1}function a(){n-=1,n===0&&l()}function o(c){i.indexOf(c)===-1&&i.push(c)}function l(){var c,u=i.length;for(c=0;c<u;c+=1)i[c].release();i.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=s,r.renderer.globalData.popExpression=a,r.renderer.globalData.registerExpressionProperty=o}return t})(),MaskManagerInterface=(function(){function t(r,n){this._mask=r,this._data=n}Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var e=function(n){var i=createSizedArray(n.viewData.length),s,a=n.viewData.length;for(s=0;s<a;s+=1)i[s]=new t(n.viewData[s],n.masksProperties[s]);var o=function(c){for(s=0;s<a;){if(n.masksProperties[s].nm===c)return i[s];s+=1}return null};return o};return e})(),ExpressionPropertyInterface=(function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(a,o,l){Object.defineProperty(a,"velocity",{get:function(){return o.getVelocityAtTime(o.comp.currentFrame)}}),a.numKeys=o.keyframes?o.keyframes.length:0,a.key=function(c){if(!a.numKeys)return 0;var u="";"s"in o.keyframes[c-1]?u=o.keyframes[c-1].s:"e"in o.keyframes[c-2]?u=o.keyframes[c-2].e:u=o.keyframes[c-2].s;var d=l==="unidimensional"?new Number(u):Object.assign({},u);return d.time=o.keyframes[c-1].t/o.elem.comp.globalData.frameRate,d.value=l==="unidimensional"?u[0]:u,d},a.valueAtTime=o.getValueAtTime,a.speedAtTime=o.getSpeedAtTime,a.velocityAtTime=o.getVelocityAtTime,a.propertyGroup=o.propertyGroup}function n(a){(!a||!("pv"in a))&&(a=t);var o=1/a.mult,l=a.pv*o,c=new Number(l);return c.value=l,r(c,a,"unidimensional"),function(){return a.k&&a.getValue(),l=a.v*o,c.value!==l&&(c=new Number(l),c.value=l,c[0]=l,r(c,a,"unidimensional")),c}}function i(a){(!a||!("pv"in a))&&(a=e);var o=1/a.mult,l=a.data&&a.data.l||a.pv.length,c=createTypedArray("float32",l),u=createTypedArray("float32",l);return c.value=u,r(c,a,"multidimensional"),function(){a.k&&a.getValue();for(var d=0;d<l;d+=1)u[d]=a.v[d]*o,c[d]=u[d];return c}}function s(){return t}return function(a){return a?a.propType==="unidimensional"?n(a):i(a):s}})(),TransformExpressionInterface=(function(){return function(t){function e(a){switch(a){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)});var r,n,i,s;return t.p?s=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),n=ExpressionPropertyInterface(t.py),t.pz&&(i=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[r(),n(),i?i():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e}})(),LayerExpressionInterface=(function(){function t(c){var u=new Matrix;if(c!==void 0){var d=this._elem.finalTransform.mProp.getValueAtTime(c);d.clone(u)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(u)}return u}function e(c,u){var d=this.getMatrix(u);return d.props[12]=0,d.props[13]=0,d.props[14]=0,this.applyPoint(d,c)}function r(c,u){var d=this.getMatrix(u);return this.applyPoint(d,c)}function n(c,u){var d=this.getMatrix(u);return d.props[12]=0,d.props[13]=0,d.props[14]=0,this.invertPoint(d,c)}function i(c,u){var d=this.getMatrix(u);return this.invertPoint(d,c)}function s(c,u){if(this._elem.hierarchy&&this._elem.hierarchy.length){var d,f=this._elem.hierarchy.length;for(d=0;d<f;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(c)}return c.applyToPointArray(u[0],u[1],u[2]||0)}function a(c,u){if(this._elem.hierarchy&&this._elem.hierarchy.length){var d,f=this._elem.hierarchy.length;for(d=0;d<f;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(c)}return c.inversePoint(u)}function o(c){var u=new Matrix;if(u.reset(),this._elem.finalTransform.mProp.applyToMatrix(u),this._elem.hierarchy&&this._elem.hierarchy.length){var d,f=this._elem.hierarchy.length;for(d=0;d<f;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(u);return u.inversePoint(c)}return u.inversePoint(c)}function l(){return[1,1,1,1]}return function(c){var u;function d(g){h.mask=new MaskManagerInterface(g,c)}function f(g){h.effect=g}function h(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=t,h.invertPoint=a,h.applyPoint=s,h.toWorld=r,h.toWorldVec=e,h.fromWorld=i,h.fromWorldVec=n,h.toComp=r,h.fromComp=o,h.sampleImage=l,h.sourceRectAtTime=c.sourceRectAtTime.bind(c),h._elem=c,u=TransformExpressionInterface(c.finalTransform.mProp);var p=getDescriptor(u,"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),h.startTime=c.data.st,h.index=c.data.ind,h.source=c.data.refId,h.height=c.data.ty===0?c.data.h:100,h.width=c.data.ty===0?c.data.w:100,h.inPoint=c.data.ip/c.comp.globalData.frameRate,h.outPoint=c.data.op/c.comp.globalData.frameRate,h._name=c.data.nm,h.registerMaskInterface=d,h.registerEffectsInterface=f,h}})(),propertyGroupFactory=(function(){return function(t,e){return function(r){return r=r===void 0?1:r,r<=0?t:e(r-1)}}})(),PropertyInterface=(function(){return function(t,e){var r={_name:t};function n(i){return i=i===void 0?1:i,i<=0?r:e(i-1)}return n}})(),EffectsExpressionInterface=(function(){var t={createEffectsInterface:e};function e(i,s){if(i.effectsManager){var a=[],o=i.data.ef,l,c=i.effectsManager.effectElements.length;for(l=0;l<c;l+=1)a.push(r(o[l],i.effectsManager.effectElements[l],s,i));var u=i.data.ef||[],d=function(h){for(l=0,c=u.length;l<c;){if(h===u[l].nm||h===u[l].mn||h===u[l].ix)return a[l];l+=1}return null};return Object.defineProperty(d,"numProperties",{get:function(){return u.length}}),d}return null}function r(i,s,a,o){function l(h){for(var p=i.ef,g=0,E=p.length;g<E;){if(h===p[g].nm||h===p[g].mn||h===p[g].ix)return p[g].ty===5?u[g]:u[g]();g+=1}throw new Error}var c=propertyGroupFactory(l,a),u=[],d,f=i.ef.length;for(d=0;d<f;d+=1)i.ef[d].ty===5?u.push(r(i.ef[d],s.effectElements[d],s.effectElements[d].propertyGroup,o)):u.push(n(s.effectElements[d],i.ef[d].ty,o,c));return i.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return u[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:c}}),l.enabled=i.en!==0,l.active=l.enabled,l}function n(i,s,a,o){var l=ExpressionPropertyInterface(i.p);function c(){return s===10?a.comp.compInterface(i.p.v):l()}return i.p.setGroupProperty&&i.p.setGroupProperty(PropertyInterface("",o)),c}return t})(),ShapePathInterface=(function(){return function(e,r,n){var i=r.sh;function s(o){return o==="Shape"||o==="shape"||o==="Path"||o==="path"||o==="ADBE Vector Shape"||o===2?s.path:null}var a=propertyGroupFactory(s,n);return i.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(s,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),s}})(),ShapeExpressionInterface=(function(){function t(p,g,E){var m=[],v,y=p?p.length:0;for(v=0;v<y;v+=1)p[v].ty==="gr"?m.push(r(p[v],g[v],E)):p[v].ty==="fl"?m.push(n(p[v],g[v],E)):p[v].ty==="st"?m.push(a(p[v],g[v],E)):p[v].ty==="tm"?m.push(o(p[v],g[v],E)):p[v].ty==="tr"||(p[v].ty==="el"?m.push(c(p[v],g[v],E)):p[v].ty==="sr"?m.push(u(p[v],g[v],E)):p[v].ty==="sh"?m.push(ShapePathInterface(p[v],g[v],E)):p[v].ty==="rc"?m.push(d(p[v],g[v],E)):p[v].ty==="rd"?m.push(f(p[v],g[v],E)):p[v].ty==="rp"?m.push(h(p[v],g[v],E)):p[v].ty==="gf"?m.push(i(p[v],g[v],E)):m.push(s(p[v],g[v],E)));return m}function e(p,g,E){var m,v=function(w){for(var A=0,P=m.length;A<P;){if(m[A]._name===w||m[A].mn===w||m[A].propertyIndex===w||m[A].ix===w||m[A].ind===w)return m[A];A+=1}return typeof w=="number"?m[w-1]:null};v.propertyGroup=propertyGroupFactory(v,E),m=t(p.it,g.it,v.propertyGroup),v.numProperties=m.length;var y=l(p.it[p.it.length-1],g.it[g.it.length-1],v.propertyGroup);return v.transform=y,v.propertyIndex=p.cix,v._name=p.nm,v}function r(p,g,E){var m=function(w){switch(w){case"ADBE Vectors Group":case"Contents":case 2:return m.content;default:return m.transform}};m.propertyGroup=propertyGroupFactory(m,E);var v=e(p,g,m.propertyGroup),y=l(p.it[p.it.length-1],g.it[g.it.length-1],m.propertyGroup);return m.content=v,m.transform=y,Object.defineProperty(m,"_name",{get:function(){return p.nm}}),m.numProperties=p.np,m.propertyIndex=p.ix,m.nm=p.nm,m.mn=p.mn,m}function n(p,g,E){function m(v){return v==="Color"||v==="color"?m.color:v==="Opacity"||v==="opacity"?m.opacity:null}return Object.defineProperties(m,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},_name:{value:p.nm},mn:{value:p.mn}}),g.c.setGroupProperty(PropertyInterface("Color",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),m}function i(p,g,E){function m(v){return v==="Start Point"||v==="start point"?m.startPoint:v==="End Point"||v==="end point"?m.endPoint:v==="Opacity"||v==="opacity"?m.opacity:null}return Object.defineProperties(m,{startPoint:{get:ExpressionPropertyInterface(g.s)},endPoint:{get:ExpressionPropertyInterface(g.e)},opacity:{get:ExpressionPropertyInterface(g.o)},type:{get:function(){return"a"}},_name:{value:p.nm},mn:{value:p.mn}}),g.s.setGroupProperty(PropertyInterface("Start Point",E)),g.e.setGroupProperty(PropertyInterface("End Point",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),m}function s(){function p(){return null}return p}function a(p,g,E){var m=propertyGroupFactory(P,E),v=propertyGroupFactory(A,m);function y(_){Object.defineProperty(A,p.d[_].nm,{get:ExpressionPropertyInterface(g.d.dataProps[_].p)})}var S,w=p.d?p.d.length:0,A={};for(S=0;S<w;S+=1)y(S),g.d.dataProps[S].p.setGroupProperty(v);function P(_){return _==="Color"||_==="color"?P.color:_==="Opacity"||_==="opacity"?P.opacity:_==="Stroke Width"||_==="stroke width"?P.strokeWidth:null}return Object.defineProperties(P,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},strokeWidth:{get:ExpressionPropertyInterface(g.w)},dash:{get:function(){return A}},_name:{value:p.nm},mn:{value:p.mn}}),g.c.setGroupProperty(PropertyInterface("Color",m)),g.o.setGroupProperty(PropertyInterface("Opacity",m)),g.w.setGroupProperty(PropertyInterface("Stroke Width",m)),P}function o(p,g,E){function m(y){return y===p.e.ix||y==="End"||y==="end"?m.end:y===p.s.ix?m.start:y===p.o.ix?m.offset:null}var v=propertyGroupFactory(m,E);return m.propertyIndex=p.ix,g.s.setGroupProperty(PropertyInterface("Start",v)),g.e.setGroupProperty(PropertyInterface("End",v)),g.o.setGroupProperty(PropertyInterface("Offset",v)),m.propertyIndex=p.ix,m.propertyGroup=E,Object.defineProperties(m,{start:{get:ExpressionPropertyInterface(g.s)},end:{get:ExpressionPropertyInterface(g.e)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:p.nm}}),m.mn=p.mn,m}function l(p,g,E){function m(y){return p.a.ix===y||y==="Anchor Point"?m.anchorPoint:p.o.ix===y||y==="Opacity"?m.opacity:p.p.ix===y||y==="Position"?m.position:p.r.ix===y||y==="Rotation"||y==="ADBE Vector Rotation"?m.rotation:p.s.ix===y||y==="Scale"?m.scale:p.sk&&p.sk.ix===y||y==="Skew"?m.skew:p.sa&&p.sa.ix===y||y==="Skew Axis"?m.skewAxis:null}var v=propertyGroupFactory(m,E);return g.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",v)),g.transform.mProps.p.setGroupProperty(PropertyInterface("Position",v)),g.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",v)),g.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",v)),g.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",v)),g.transform.mProps.sk&&(g.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",v)),g.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",v))),g.transform.op.setGroupProperty(PropertyInterface("Opacity",v)),Object.defineProperties(m,{opacity:{get:ExpressionPropertyInterface(g.transform.mProps.o)},position:{get:ExpressionPropertyInterface(g.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(g.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(g.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(g.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(g.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(g.transform.mProps.sa)},_name:{value:p.nm}}),m.ty="tr",m.mn=p.mn,m.propertyGroup=E,m}function c(p,g,E){function m(S){return p.p.ix===S?m.position:p.s.ix===S?m.size:null}var v=propertyGroupFactory(m,E);m.propertyIndex=p.ix;var y=g.sh.ty==="tm"?g.sh.prop:g.sh;return y.s.setGroupProperty(PropertyInterface("Size",v)),y.p.setGroupProperty(PropertyInterface("Position",v)),Object.defineProperties(m,{size:{get:ExpressionPropertyInterface(y.s)},position:{get:ExpressionPropertyInterface(y.p)},_name:{value:p.nm}}),m.mn=p.mn,m}function u(p,g,E){function m(S){return p.p.ix===S?m.position:p.r.ix===S?m.rotation:p.pt.ix===S?m.points:p.or.ix===S||S==="ADBE Vector Star Outer Radius"?m.outerRadius:p.os.ix===S?m.outerRoundness:p.ir&&(p.ir.ix===S||S==="ADBE Vector Star Inner Radius")?m.innerRadius:p.is&&p.is.ix===S?m.innerRoundness:null}var v=propertyGroupFactory(m,E),y=g.sh.ty==="tm"?g.sh.prop:g.sh;return m.propertyIndex=p.ix,y.or.setGroupProperty(PropertyInterface("Outer Radius",v)),y.os.setGroupProperty(PropertyInterface("Outer Roundness",v)),y.pt.setGroupProperty(PropertyInterface("Points",v)),y.p.setGroupProperty(PropertyInterface("Position",v)),y.r.setGroupProperty(PropertyInterface("Rotation",v)),p.ir&&(y.ir.setGroupProperty(PropertyInterface("Inner Radius",v)),y.is.setGroupProperty(PropertyInterface("Inner Roundness",v))),Object.defineProperties(m,{position:{get:ExpressionPropertyInterface(y.p)},rotation:{get:ExpressionPropertyInterface(y.r)},points:{get:ExpressionPropertyInterface(y.pt)},outerRadius:{get:ExpressionPropertyInterface(y.or)},outerRoundness:{get:ExpressionPropertyInterface(y.os)},innerRadius:{get:ExpressionPropertyInterface(y.ir)},innerRoundness:{get:ExpressionPropertyInterface(y.is)},_name:{value:p.nm}}),m.mn=p.mn,m}function d(p,g,E){function m(S){return p.p.ix===S?m.position:p.r.ix===S?m.roundness:p.s.ix===S||S==="Size"||S==="ADBE Vector Rect Size"?m.size:null}var v=propertyGroupFactory(m,E),y=g.sh.ty==="tm"?g.sh.prop:g.sh;return m.propertyIndex=p.ix,y.p.setGroupProperty(PropertyInterface("Position",v)),y.s.setGroupProperty(PropertyInterface("Size",v)),y.r.setGroupProperty(PropertyInterface("Rotation",v)),Object.defineProperties(m,{position:{get:ExpressionPropertyInterface(y.p)},roundness:{get:ExpressionPropertyInterface(y.r)},size:{get:ExpressionPropertyInterface(y.s)},_name:{value:p.nm}}),m.mn=p.mn,m}function f(p,g,E){function m(S){return p.r.ix===S||S==="Round Corners 1"?m.radius:null}var v=propertyGroupFactory(m,E),y=g;return m.propertyIndex=p.ix,y.rd.setGroupProperty(PropertyInterface("Radius",v)),Object.defineProperties(m,{radius:{get:ExpressionPropertyInterface(y.rd)},_name:{value:p.nm}}),m.mn=p.mn,m}function h(p,g,E){function m(S){return p.c.ix===S||S==="Copies"?m.copies:p.o.ix===S||S==="Offset"?m.offset:null}var v=propertyGroupFactory(m,E),y=g;return m.propertyIndex=p.ix,y.c.setGroupProperty(PropertyInterface("Copies",v)),y.o.setGroupProperty(PropertyInterface("Offset",v)),Object.defineProperties(m,{copies:{get:ExpressionPropertyInterface(y.c)},offset:{get:ExpressionPropertyInterface(y.o)},_name:{value:p.nm}}),m.mn=p.mn,m}return function(p,g,E){var m;function v(S){if(typeof S=="number")return S=S===void 0?1:S,S===0?E:m[S-1];for(var w=0,A=m.length;w<A;){if(m[w]._name===S)return m[w];w+=1}return null}function y(){return E}return v.propertyGroup=propertyGroupFactory(v,y),m=t(p,g,v.propertyGroup),v.numProperties=m.length,v._name="Contents",v}})(),TextExpressionInterface=(function(){return function(t){var e;function r(n){switch(n){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return(!e||i!==e.value)&&(e=new String(i),e.value=i||new String(i),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),r}})();function _typeof(t){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(t)}var FootageInterface=(function(){var t=function(n){var i="",s=n.getFootageData();function a(){return i="",s=n.getFootageData(),o}function o(l){if(s[l])return i=l,s=s[l],_typeof(s)==="object"?o:s;var c=l.indexOf(i);if(c!==-1){var u=parseInt(l.substr(c+i.length),10);return s=s[u],_typeof(s)==="object"?o:s}return""}return a},e=function(n){function i(s){return s==="Outline"?i.outlineInterface():null}return i._name="Outline",i.outlineInterface=t(n),i};return function(r){function n(i){return i==="Data"?n.dataInterface:null}return n._name="Data",n.dataInterface=e(r),n}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers=(function(){function t(a,o,l){o.x&&(l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(a,o,l).bind(l)))}function e(a){return a*=this.elem.globalData.frameRate,a-=this.offsetTime,a!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<a?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(a,this._cachingAtTime),this._cachingAtTime.lastFrame=a),this._cachingAtTime.value}function r(a){var o=-.01,l=this.getValueAtTime(a),c=this.getValueAtTime(a+o),u=0;if(l.length){var d;for(d=0;d<l.length;d+=1)u+=Math.pow(c[d]-l[d],2);u=Math.sqrt(u)*100}else u=0;return u}function n(a){if(this.vel!==void 0)return this.vel;var o=-.001,l=this.getValueAtTime(a),c=this.getValueAtTime(a+o),u;if(l.length){u=createTypedArray("float32",l.length);var d;for(d=0;d<l.length;d+=1)u[d]=(c[d]-l[d])/o}else u=(c-l)/o;return u}function i(){return this.pv}function s(a){this.propertyGroup=a}return{searchExpressions:t,getSpeedAtTime:r,getVelocityAtTime:n,getValueAtTime:e,getStaticValueAtTime:i,setGroupProperty:s}})();function addPropertyDecorator(){function t(f,h,p){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,m=E[E.length-1].t;if(g<=m)return this.pv;var v,y;p?(h?v=Math.abs(m-this.elem.comp.globalData.frameRate*h):v=Math.max(0,m-this.elem.data.ip),y=m-v):((!h||h>E.length-1)&&(h=E.length-1),y=E[E.length-1-h].t,v=m-y);var S,w,A;if(f==="pingpong"){var P=Math.floor((g-y)/v);if(P%2!==0)return this.getValueAtTime((v-(g-y)%v+y)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var _=this.getValueAtTime(y/this.comp.globalData.frameRate,0),L=this.getValueAtTime(m/this.comp.globalData.frameRate,0),R=this.getValueAtTime(((g-y)%v+y)/this.comp.globalData.frameRate,0),D=Math.floor((g-y)/v);if(this.pv.length){for(A=new Array(_.length),w=A.length,S=0;S<w;S+=1)A[S]=(L[S]-_[S])*D+R[S];return A}return(L-_)*D+R}else if(f==="continue"){var M=this.getValueAtTime(m/this.comp.globalData.frameRate,0),O=this.getValueAtTime((m-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(A=new Array(M.length),w=A.length,S=0;S<w;S+=1)A[S]=M[S]+(M[S]-O[S])*((g-m)/this.comp.globalData.frameRate)/5e-4;return A}return M+(M-O)*((g-m)/.001)}return this.getValueAtTime(((g-y)%v+y)/this.comp.globalData.frameRate,0)}function e(f,h,p){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,m=E[0].t;if(g>=m)return this.pv;var v,y;p?(h?v=Math.abs(this.elem.comp.globalData.frameRate*h):v=Math.max(0,this.elem.data.op-m),y=m+v):((!h||h>E.length-1)&&(h=E.length-1),y=E[h].t,v=y-m);var S,w,A;if(f==="pingpong"){var P=Math.floor((m-g)/v);if(P%2===0)return this.getValueAtTime(((m-g)%v+m)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var _=this.getValueAtTime(m/this.comp.globalData.frameRate,0),L=this.getValueAtTime(y/this.comp.globalData.frameRate,0),R=this.getValueAtTime((v-(m-g)%v+m)/this.comp.globalData.frameRate,0),D=Math.floor((m-g)/v)+1;if(this.pv.length){for(A=new Array(_.length),w=A.length,S=0;S<w;S+=1)A[S]=R[S]-(L[S]-_[S])*D;return A}return R-(L-_)*D}else if(f==="continue"){var M=this.getValueAtTime(m/this.comp.globalData.frameRate,0),O=this.getValueAtTime((m+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(A=new Array(M.length),w=A.length,S=0;S<w;S+=1)A[S]=M[S]+(M[S]-O[S])*(m-g)/.001;return A}return M+(M-O)*(m-g)/.001}return this.getValueAtTime((v-((m-g)%v+m))/this.comp.globalData.frameRate,0)}function r(f,h){if(!this.k)return this.pv;if(f=(f||.4)*.5,h=Math.floor(h||5),h<=1)return this.pv;var p=this.comp.renderedFrame/this.comp.globalData.frameRate,g=p-f,E=p+f,m=h>1?(E-g)/(h-1):1,v=0,y=0,S;this.pv.length?S=createTypedArray("float32",this.pv.length):S=0;for(var w;v<h;){if(w=this.getValueAtTime(g+v*m),this.pv.length)for(y=0;y<this.pv.length;y+=1)S[y]+=w[y];else S+=w;v+=1}if(this.pv.length)for(y=0;y<this.pv.length;y+=1)S[y]/=h;else S/=h;return S}function n(f){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var h=this._transformCachingAtTime.v;if(h.cloneFromProps(this.pre.props),this.appliedTransformations<1){var p=this.a.getValueAtTime(f);h.translate(-p[0]*this.a.mult,-p[1]*this.a.mult,p[2]*this.a.mult)}if(this.appliedTransformations<2){var g=this.s.getValueAtTime(f);h.scale(g[0]*this.s.mult,g[1]*this.s.mult,g[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var E=this.sk.getValueAtTime(f),m=this.sa.getValueAtTime(f);h.skewFromAxis(-E*this.sk.mult,m*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var v=this.r.getValueAtTime(f);h.rotate(-v*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var y=this.rz.getValueAtTime(f),S=this.ry.getValueAtTime(f),w=this.rx.getValueAtTime(f),A=this.or.getValueAtTime(f);h.rotateZ(-y*this.rz.mult).rotateY(S*this.ry.mult).rotateX(w*this.rx.mult).rotateZ(-A[2]*this.or.mult).rotateY(A[1]*this.or.mult).rotateX(A[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var P=this.px.getValueAtTime(f),_=this.py.getValueAtTime(f);if(this.data.p.z){var L=this.pz.getValueAtTime(f);h.translate(P*this.px.mult,_*this.py.mult,-L*this.pz.mult)}else h.translate(P*this.px.mult,_*this.py.mult,0)}else{var R=this.p.getValueAtTime(f);h.translate(R[0]*this.p.mult,R[1]*this.p.mult,-R[2]*this.p.mult)}return h}function i(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,h,p){var g=s(f,h,p);return g.dynamicProperties.length?g.getValueAtTime=n.bind(g):g.getValueAtTime=i.bind(g),g.setGroupProperty=expressionHelpers.setGroupProperty,g};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(f,h,p,g,E){var m=a(f,h,p,g,E);m.kf?m.getValueAtTime=expressionHelpers.getValueAtTime.bind(m):m.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m.loopOut=t,m.loopIn=e,m.smooth=r,m.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(m),m.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(m),m.numKeys=h.a===1?h.k.length:0,m.propertyIndex=h.ix;var v=0;return p!==0&&(v=createTypedArray("float32",h.a===1?h.k[0].s.length:h.k.length)),m._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:v},expressionHelpers.searchExpressions(f,h,m),m.k&&E.addDynamicProperty(m),m};function o(f){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function(h,p){this.k&&this.getValue();var g=this.v;p!==void 0&&(g=this.getValueAtTime(p,0));var E,m=g._length,v=g[h],y=g.v,S=createSizedArray(m);for(E=0;E<m;E+=1)h==="i"||h==="o"?S[E]=[v[E][0]-y[E][0],v[E][1]-y[E][1]]:S[E]=[v[E][0],v[E][1]];return S},points:function(h){return this.vertices("v",h)},inTangents:function(h){return this.vertices("i",h)},outTangents:function(h){return this.vertices("o",h)},isClosed:function(){return this.v.c},pointOnPath:function(h,p){var g=this.v;p!==void 0&&(g=this.getValueAtTime(p,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var E=this._segmentsLength,m=E.lengths,v=E.totalLength*h,y=0,S=m.length,w=0,A;y<S;){if(w+m[y].addedLength>v){var P=y,_=g.c&&y===S-1?0:y+1,L=(v-w)/m[y].addedLength;A=bez.getPointInSegment(g.v[P],g.v[_],g.o[P],g.i[_],L,m[y]);break}else w+=m[y].addedLength;y+=1}return A||(A=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),A},vectorOnPath:function(h,p,g){h==1?h=this.v.c:h==0&&(h=.999);var E=this.pointOnPath(h,p),m=this.pointOnPath(h+.001,p),v=m[0]-E[0],y=m[1]-E[1],S=Math.sqrt(Math.pow(v,2)+Math.pow(y,2));if(S===0)return[0,0];var w=g==="tangent"?[v/S,y/S]:[-y/S,v/S];return w},tangentOnPath:function(h,p){return this.vectorOnPath(h,p,"tangent")},normalOnPath:function(h,p){return this.vectorOnPath(h,p,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],l),extendPrototype([u],c),c.prototype.getValueAtTime=o,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,h,p,g,E){var m=d(f,h,p,g,E);return m.propertyIndex=h.ix,m.lock=!1,p===3?expressionHelpers.searchExpressions(f,h.pt,m):p===4&&expressionHelpers.searchExpressions(f,h.ks,m),m.k&&f.addDynamicProperty(m),m}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(e,r){var n=this.calculateExpression(r);if(e.t!==n){var i={};return this.copyData(i,e),i.t=n.toString(),i.__complete=!1,i}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),r=this.searchExpressions();return this.kf=e||r,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(e,r){var n=createNS("feMerge");n.setAttribute("result",e);var i,s;for(s=0;s<r.length;s+=1)i=createNS("feMergeNode"),i.setAttribute("in",r[s]),n.appendChild(i),n.appendChild(i);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,r,n,i){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",n+"_tint_1"),t.appendChild(s),s=createNS("feColorMatrix"),s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",n+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var a=this.createMergeNode(n,[i,n+"_tint_1",n+"_tint_2"]);t.appendChild(a)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}};function SVGFillFilter(t,e,r,n){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",n),t.appendChild(i),this.matrixFilter=i}SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var t=this.elem.layerElement.children||this.elem.layerElement.childNodes,e,r,n,i;for(this.filterManager.effectElements[1].p.v===1?(i=this.elem.maskManager.masksProperties.length,n=0):(n=this.filterManager.effectElements[0].p.v-1,i=n+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),n;n<i;n+=1)e=createNS("path"),r.appendChild(e),this.paths.push({p:e,m:n});if(this.filterManager.effectElements[10].p.v===3){var s=createNS("mask"),a=createElementID();s.setAttribute("id",a),s.setAttribute("mask-type","alpha"),s.appendChild(r),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");t[0];)o.appendChild(t[0]);this.elem.layerElement.appendChild(o),this.masker=s,r.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(t=this.elem.layerElement.children||this.elem.layerElement.childNodes;t.length;)this.elem.layerElement.removeChild(t[0]);this.elem.layerElement.appendChild(r),this.elem.layerElement.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var e,r=this.paths.length,n,i;for(e=0;e<r;e+=1)if(this.paths[e].m!==-1&&(n=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||n.prop._mdf)&&i.setAttribute("d",n.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var s;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var a=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,o=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=i.getTotalLength();s="0 0 0 "+l*a+" ";var c=l*(o-a),u=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(c/u),f;for(f=0;f<d;f+=1)s+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+l*10+" 0 0"}else s="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",s)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(t||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(h[0]*255)+","+bmFloor(h[1]*255)+","+bmFloor(h[2]*255)+")")}};function SVGTritoneFilter(t,e,r,n){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(i);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",n),this.matrixFilter=s;var a=createNS("feFuncR");a.setAttribute("type","table"),s.appendChild(a),this.feFuncR=a;var o=createNS("feFuncG");o.setAttribute("type","table"),s.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,t.appendChild(s)}SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+e[0],s=n[1]+" "+r[1]+" "+e[1],a=n[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",a)}};function SVGProLevelsFilter(t,e,r,n){this.filterManager=e;var i=this.filterManager.effectElements,s=createNS("feComponentTransfer");(i[10].p.k||i[10].p.v!==0||i[11].p.k||i[11].p.v!==1||i[12].p.k||i[12].p.v!==1||i[13].p.k||i[13].p.v!==0||i[14].p.k||i[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(i[17].p.k||i[17].p.v!==0||i[18].p.k||i[18].p.v!==1||i[19].p.k||i[19].p.v!==1||i[20].p.k||i[20].p.v!==0||i[21].p.k||i[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(i[24].p.k||i[24].p.v!==0||i[25].p.k||i[25].p.v!==1||i[26].p.k||i[26].p.v!==1||i[27].p.k||i[27].p.v!==0||i[28].p.k||i[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(i[31].p.k||i[31].p.v!==0||i[32].p.k||i[32].p.v!==1||i[33].p.k||i[33].p.v!==1||i[34].p.k||i[34].p.v!==0||i[35].p.k||i[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(i[3].p.k||i[3].p.v!==0||i[4].p.k||i[4].p.v!==1||i[5].p.k||i[5].p.v!==1||i[6].p.k||i[6].p.v!==0||i[7].p.k||i[7].p.v!==1)&&(s=createNS("feComponentTransfer"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",n),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,n,i){for(var s=0,a=256,o,l=Math.min(t,e),c=Math.max(t,e),u=Array.call(null,{length:a}),d,f=0,h=i-n,p=e-t;s<=256;)o=s/256,o<=l?d=p<0?i:n:o>=c?d=p<0?n:i:d=n+h*Math.pow((o-t)/p,1/r),u[f]=d,f+=1,s+=256/(a-1);return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}};function SVGDropShadowEffect(t,e,r,n,i){var s=e.container.globalData.renderConfig.filterSize,a=e.data.fs||s;t.setAttribute("x",a.x||s.x),t.setAttribute("y",a.y||s.y),t.setAttribute("width",a.width||s.width),t.setAttribute("height",a.height||s.height),this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",n+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",n+"_drop_shadow_1"),l.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=l,t.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=c,t.appendChild(c);var u=createNS("feComposite");u.setAttribute("in",n+"_drop_shadow_3"),u.setAttribute("in2",n+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",n+"_drop_shadow_4"),t.appendChild(u);var d=this.createMergeNode(n,[n+"_drop_shadow_4",i]);t.appendChild(d)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(e[0]*255),Math.round(e[1]*255),Math.round(e[2]*255)))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),s=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var n=r.children,i=0,s=n.length;i<s&&n[i]!==t.layerElement;)i+=1;var a;i<=s-2&&(a=n[i+1]);var o=createNS("use");o.setAttribute("href","#"+e),a?r.insertBefore(o,a):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",e.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var i=t.globalData.defs;i.appendChild(n);var s=createNS("symbol");s.setAttribute("id",r),this.replaceInParent(e,r),s.appendChild(e.layerElement),i.appendChild(s);var a=createNS("use");a.setAttribute("href","#"+r),n.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,n=e.length;r<n;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(t,e,r,n){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var i=createNS("feGaussianBlur");i.setAttribute("result",n),t.appendChild(i),this.feGaussianBlur=i}SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3,r=this.filterManager.effectElements[0].p.v*e,n=this.filterManager.effectElements[1].p.v,i=n==3?0:r,s=n==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+s);var a=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}};function TransformEffect(){}TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,r=e[0].p.v,n=e[1].p.v,i=e[2].p.v===1,s=e[3].p.v,a=i?s:e[4].p.v,o=e[5].p.v,l=e[6].p.v,c=e[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(a*.01,s*.01,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-o*degToRads,(l+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(t,e){this.init(e)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(t){this.init(t)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})});var Pf=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*
2)`,"g"),Qi=class t{element=null;classNames=[];attrs=[];notSelectors=[];static parse(e){let r=[],n=(l,c)=>{c.notSelectors.length>0&&!c.element&&c.classNames.length==0&&c.attrs.length==0&&(c.element="*"),l.push(c)},i=new t,s,a=i,o=!1;for(Pf.lastIndex=0;s=Pf.exec(e);){if(s[1]){if(o)throw new Error("Nesting :not in a selector is not allowed");o=!0,a=new t,i.notSelectors.push(a)}let l=s[2];if(l){let u=s[3];u==="#"?a.addAttribute("id",l.slice(1)):u==="."?a.addClassName(l.slice(1)):a.setElement(l)}let c=s[4];if(c&&a.addAttribute(a.unescapeAttribute(c),s[6]),s[7]&&(o=!1,a=i),s[8]){if(o)throw new Error("Multiple selectors in :not are not supported");n(r,i),i=a=new t}}return n(r,i),r}unescapeAttribute(e){let r="",n=!1;for(let i=0;i<e.length;i++){let s=e.charAt(i);if(s==="\\"){n=!0;continue}if(s==="$"&&!n)throw new Error(`Error in attribute selector "${e}". Unescaped "$" is not supported. Please escape with "\\$".`);n=!1,r+=s}return r}escapeAttribute(e){return e.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}isElementSelector(){return this.hasElementSelector()&&this.classNames.length==0&&this.attrs.length==0&&this.notSelectors.length===0}hasElementSelector(){return!!this.element}
2setElement(e=null){this.element=e}getAttrs(){let e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,r=""){this.attrs.push(e,r&&r.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(r=>e+=`.${r}`),this.attrs)for(let r=0;r<this.attrs.length;r+=2){let n=this.escapeAttribute(this.attrs[r]),i=this.attrs[r+1];e+=`[${n}${i?"="+i:""}]`}return this.notSelectors.forEach(r=>e+=`:not(${r})`),e}},jo=class t{static createNotMatcher(e){let r=new t;return r.addSelectables(e,null),r}_elementMap=new Map;_elementPartialMap=new Map;_classMap=new Map;_classPartialMap=new Map;_attrValueMap=new Map;_attrValuePartialMap=new Map;_listContexts=[];addSelectables(e,r){let n=null;e.length>1&&(n=new Zc(e),this._listContexts.push(n));for(let i=0;i<e.length;i++)this._addSelectable(e[i],r,n)}_addSelectable(e,r,n){let i=this,s=e.element,a=e.classNames,o=e.attrs,l=new Qc(e,r,n);if(s&&(o.length===0&&a.length===0?this._addTerminal(i._elementMap,s,l):i=this._addPartial(i._elementPartialMap,s)),a)for(let c=0;c<a.length;c++){let u=o.length===0&&c===a.length-1,d=a[c];u?this._addTerminal(i._classMap,d,l):i=this._addPartial(i._classPartialMap,d)}if(o)for(let c=0;c<o.length;c+=2){let u=c===o.length-2,d=o[c],f=o[c+1];if(u){let h=i._attrValueMap,p=h.get(d);p||(p=new Map,h.set(d,p)),this._addTerminal(p,f,l)}else{let h=i._attrValuePartialMap,p=h.get(d);p||(p=new Map,h.set(d,p)),i=this._addPartial(p,f)}}}_addTerminal(e,r,n){let i=e.get(r);i||(i=[],e.set(r,i)),i.push(n)}_addPartial(e,r){let n=e.get(r);return n||(n=new t,e.set(r,n)),n}match(e,r){let n=!1,i=e.element,s=e.classNames,a=e.attrs;for(let o=0;o<this._listContexts.length;o++)this._listContexts[o].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,i,e,r)||n,n=this._matchPartial(this._elementPartialMap,i,e,r)||n,s)for(let o=0;o<s.length;o++){let l=s[o];n=this._matchTerminal(this._classMap,l,e,r)||n,n=this._matchPartial(this._classPartialMap,l,e,r)||n}if(a)for(let o=0;o<a.length;o+=2){let l=a[o],c=a[o+1],u=this._attrValueMap.get(l);c&&(n=this._matchTerminal(u,"",e,r)||n),n=this._matchTerminal(u,c,e,r)||n;let d=this._attrValuePartialMap.get(l);c&&(n=this._matchPartial(d,"",e,r)||n),n=this._matchPartial(d,c,e,r)||n}return n}_matchTerminal(e,r,n,i){if(!e||typeof r!="string")return!1;let s=e.get(r)||[],a=e.get("*");if(a&&(s=s.concat(a)),s.length===0)return!1;let o,l=!1;for(let c=0;c<s.length;c++)o=s[c],l=o.finalize(n,i)||l;return l}_matchPartial(e,r,n,i){if(!e||typeof r!="string")return!1;let s=e.get(r);return s?s.match(n,i):!1}},Zc=class{selectors;alreadyMatched=!1;constructor(e){this.selectors=e}},Qc=class{selector;cbContext;listContext;notSelectors;constructor(e,r,n){this.selector=e,this.cbContext=r,this.listContext=n,this.notSelectors=e.notSelectors}finalize(e,r){let n=!0;return this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)&&(n=!jo.createNotMatcher(this.notSelectors).match(e,null)),n&&r&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),r(this.selector,this.cbContext)),n}},Wo=class{registry;constructor(e){this.registry=e}match(e){return this.registry.has(e)?this.registry.get(e):[]}};var Un=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t})(Un||{}),Sh=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(Sh||{}),Vs=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(Vs||{}),If={name:"custom-elements"},Mf={name:"no-errors-schema"};var we=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(we||{});function Iy(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&t.element!=="*"?t.element:"",...t.attrs,...e]}function My(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return t.element?[5,t.element,...t.attrs,...e]:t.attrs.length?[3,...t.attrs,...e]:t.classNames&&t.classNames.length?[9,...t.classNames]:[]}function Dy(t){let e=Iy(t),r=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(n=>My(n)):[];return e.concat(...r)}function Eh(t){return t?Qi.parse(t).map(Dy):[]}
2var Kr=(function(t){return t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule",t})(Kr||{});var Uo;function Ly(t){return Ry(By(t.nodes).join("")+`[${t.meaning}]`)}function Ny(t){return t.id||Em(t)}function Em(t){let e=new Jc,r=t.nodes.map(n=>n.visit(e,null));return xm(r.join(""),t.meaning)}var Xo=class{visitText(e,r){return e.value}visitContainer(e,r){return`[${e.children.map(n=>n.visit(this)).join(", ")}]`}visitIcu(e,r){let n=Object.keys(e.cases).map(i=>`${i} {${e.cases[i].visit(this)}}`);return`{${e.expression}, ${e.type}, ${n.join(", ")}}`}visitTagPlaceholder(e,r){return e.isVoid?`<ph tag name="${e.startName}"/>`:`<ph tag name="${e.startName}">${e.children.map(n=>n.visit(this)).join(", ")}</ph name="${e.closeName}">`}visitPlaceholder(e,r){return e.value?`<ph name="${e.name}">${e.value}</ph>`:`<ph name="${e.name}"/>`}visitIcuPlaceholder(e,r){return`<ph icu name="${e.name}">${e.value.visit(this)}</ph>`}visitBlockPlaceholder(e,r){return`<ph block name="${e.startName}">${e.children.map(n=>n.visit(this)).join(", ")}</ph name="${e.closeName}">`}},Fy=new Xo;function By(t){return t.map(e=>e.visit(Fy,null))}var Jc=class extends Xo{visitIcu(e){let r=Object.keys(e.cases).map(n=>`${n} {${e.cases[n].visit(this)}}`);return`{${e.type}, ${r.join(", ")}}`}};function Ry(t){Uo??=new TextEncoder;let e=[...Uo.encode(t)],r=Vy(e,xh.Big),n=e.length*8,i=new Uint32Array(80),s=1732584193,a=4023233417,o=2562383102,l=271733878,c=3285377520;r[n>>5]|=128<<24-n%32,r[(n+64>>9<<4)+15]=n;for(let u=0;u<r.length;u+=16){let d=s,f=a,h=o,p=l,g=c;for(let E=0;E<80;E++){E<16?i[E]=r[u+E]:i[E]=Pc(i[E-3]^i[E-8]^i[E-14]^i[E-16],1);let m=Oy(E,a,o,l),v=m[0],y=m[1],S=[Pc(s,5),v,c,y,i[E]].reduce(Li);c=l,l=o,o=Pc(a,30),a=s,s=S}s=Li(s,d),a=Li(a,f),o=Li(o,h),l=Li(l,p),c=Li(c,g)}return Ls(s)+Ls(a)+Ls(o)+Ls(l)+Ls(c)}function Ls(t){return(t>>>0).toString(16).padStart(8,"0")}function Oy(t,e,r,n){return t<20?[e&r|~e&n,1518500249]:t<40?[e^r^n,1859775393]:t<60?[e&r|e&n|r&n,2400959708]:[e^r^n,3395469782]}function Df(t){Uo??=new TextEncoder;let e=Uo.encode(t),r=new DataView(e.buffer,e.byteOffset,e.byteLength),n=Lf(r,e.length,0),i=Lf(r,e.length,102072);return n==0&&(i==0||i==1)&&(n=n^319790063,i=i^-1801410264),BigInt.asUintN(32,BigInt(n))<<BigInt(32)|BigInt.asUintN(32,BigInt(i))}function xm(t,e=""){let r=Df(t);return e&&(r=BigInt.asUintN(64,r<<BigInt(1))|r>>BigInt(63)&BigInt(1),r+=Df(e)),BigInt.asUintN(63,r).toString()}function Lf(t,e,r){let n=2654435769,i=2654435769,s=0,a=e-12;for(;s<=a;s+=12){n+=t.getUint32(s,!0),i+=t.getUint32(s+4,!0),r+=t.getUint32(s+8,!0);let l=Nf(n,i,r);n=l[0],i=l[1],r=l[2]}let o=e-s;return r+=e,o>=4?(n+=t.getUint32(s,!0),s+=4,o>=8?(i+=t.getUint32(s,!0),s+=4,o>=9&&(r+=t.getUint8(s++)<<8),o>=10&&(r+=t.getUint8(s++)<<16),o===11&&(r+=t.getUint8(s++)<<24)):(o>=5&&(i+=t.getUint8(s++)),o>=6&&(i+=t.getUint8(s++)<<8),o===7&&(i+=t.getUint8(s++)<<16))):(o>=1&&(n+=t.getUint8(s++)),o>=2&&(n+=t.getUint8(s++)<<8),o===3&&(n+=t.getUint8(s++)<<16)),Nf(n,i,r)[2]}function Nf(t,e,r){return t-=e,t-=r,t^=r>>>13,e-=r,e-=t,e^=t<<8,r-=t,r-=e,r^=e>>>13,t-=e,t-=r,t^=r>>>12,e-=r,e-=t,e^=t<<16,r-=t,r-=e,r^=e>>>5,t-=e,t-=r,t^=r>>>3,e-=r,e-=t,e^=t<<10,r-=t,r-=e,r^=e>>>15,[t,e,r]}var xh=(function(t){return t[t.Little=0]="Little",t[t.Big=1]="Big",t})(xh||{});function Li(t,e){return $y(t,e)[1]}function $y(t,e){let r=(t&65535)+(e&65535),n=(t>>>16)+(e>>>16)+(r>>>16);return[n>>>16,n<<16|r&65535]}function Pc(t,e){return t<<e|t>>>32-e}function Vy(t,e){let r=t.length+3>>>2,n=[];for(let i=0;i<r;i++)n[i]=zy(t,i*4,e);return n}function Ff(t,e){return e>=t.length?0:t[e]}function zy(t,e,r){let n=0;if(r===xh.Big)for(let i=0;i<4;i++)n+=Ff(t,e+i)<<24-8*i;else for(let i=0;i<4;i++)n+=Ff(t,e+i)<<8*i;return n}var bm=(function(t){return t[t.None=0]="None",t[t.Const=1]="Const",t})(bm||{}),Yo=class{modifiers;constructor(e=bm.None){this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},un=(function(t){return t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None",t})(un||{}),$r=class extends Yo{name;constructor(e,r){super(r),this.name=e}visitType(e,r){return e.visitBuiltinType(this,r)}},ar=class extends Yo{value;typeParams;constructor(e,r,n=null){super(r),this.value=e,this.typeParams=n}visitType(e,r){return e.visitExpressionType(this,r)}};
2var Wa=new $r(un.Dynamic),zt=new $r(un.Inferred),Hy=new $r(un.Bool),V2=new $r(un.Int),bh=new $r(un.Number),wh=new $r(un.String),z2=new $r(un.Function),Vr=new $r(un.None),Js=(function(t){return t[t.Minus=0]="Minus",t[t.Plus=1]="Plus",t})(Js||{}),j=(function(t){return t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Assign=2]="Assign",t[t.Identical=3]="Identical",t[t.NotIdentical=4]="NotIdentical",t[t.Minus=5]="Minus",t[t.Plus=6]="Plus",t[t.Divide=7]="Divide",t[t.Multiply=8]="Multiply",t[t.Modulo=9]="Modulo",t[t.And=10]="And",t[t.Or=11]="Or",t[t.BitwiseOr=12]="BitwiseOr",t[t.BitwiseAnd=13]="BitwiseAnd",t[t.Lower=14]="Lower",t[t.LowerEquals=15]="LowerEquals",t[t.Bigger=16]="Bigger",t[t.BiggerEquals=17]="BiggerEquals",t[t.NullishCoalesce=18]="NullishCoalesce",t[t.Exponentiation=19]="Exponentiation",t[t.In=20]="In",t[t.AdditionAssignment=21]="AdditionAssignment",t[t.SubtractionAssignment=22]="SubtractionAssignment",t[t.MultiplicationAssignment=23]="MultiplicationAssignment",t[t.DivisionAssignment=24]="DivisionAssignment",t[t.RemainderAssignment=25]="RemainderAssignment",t[t.ExponentiationAssignment=26]="ExponentiationAssignment",t[t.AndAssignment=27]="AndAssignment",t[t.OrAssignment=28]="OrAssignment",t[t.NullishCoalesceAssignment=29]="NullishCoalesceAssignment",t})(j||{});function Gy(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function wm(t,e,r){let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(!r(t[i],e[i]))return!1;return!0}function qt(t,e){return wm(t,e,(r,n)=>r.isEquivalent(n))}var Ee=class{type;sourceSpan;constructor(e,r){this.type=e||null,this.sourceSpan=r||null}prop(e,r){return new jt(this,e,null,r)}key(e,r,n){return new on(this,e,r,n)}callFn(e,r,n){return new Pt(this,e,null,r,n)}instantiate(e,r,n){return new ea(this,e,r,n)}conditional(e,r=null,n){return new zr(this,e,r,null,n)}equals(e,r){return new ge(j.Equals,this,e,null,r)}notEquals(e,r){return new ge(j.NotEquals,this,e,null,r)}identical(e,r){return new ge(j.Identical,this,e,null,r)}notIdentical(e,r){return new ge(j.NotIdentical,this,e,null,r)}minus(e,r){return new ge(j.Minus,this,e,null,r)}plus(e,r){return new ge(j.Plus,this,e,null,r)}divide(e,r){return new ge(j.Divide,this,e,null,r)}multiply(e,r){return new ge(j.Multiply,this,e,null,r)}modulo(e,r){return new ge(j.Modulo,this,e,null,r)}power(e,r){return new ge(j.Exponentiation,this,e,null,r)}and(e,r){return new ge(j.And,this,e,null,r)}bitwiseOr(e,r){return new ge(j.BitwiseOr,this,e,null,r)}bitwiseAnd(e,r){return new ge(j.BitwiseAnd,this,e,null,r)}or(e,r){return new ge(j.Or,this,e,null,r)}lower(e,r){return new ge(j.Lower,this,e,null,r)}lowerEquals(e,r){return new ge(j.LowerEquals,this,e,null,r)}bigger(e,r){return new ge(j.Bigger,this,e,null,r)}biggerEquals(e,r){return new ge(j.BiggerEquals,this,e,null,r)}isBlank(e){return this.equals(Xy,e)}nullishCoalesce(e,r){return new ge(j.NullishCoalesce,this,e,null,r)}toStmt(){return new lr(this,null)}},or=class t extends Ee{name;constructor(e,r,n){super(r,n),this.name=e}isEquivalent(e){return e instanceof t&&this.name===e.name}isConstant(){return!1}visitExpression(e,r){return e.visitReadVarExpr(this,r)}clone(){return new t(this.name,this.type,this.sourceSpan)}set(e){return new ge(j.Assign,this,e,null,this.sourceSpan)}},Ji=class t extends Ee{expr;constructor(e,r,n){super(r,n),this.expr=e}visitExpression(e,r){return e.visitTypeofExpr(this,r)}isEquivalent(e){return e instanceof t&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},Zo=class t extends Ee{expr;constructor(e,r,n){super(r,n),this.expr=e}visitExpression(e,r){return e.visitVoidExpr(this,r)}isEquivalent(e){return e instanceof t&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},de=class t extends Ee{node;constructor(e,r,n){super(r,n),this.node=e}isEquivalent(e){return e instanceof t&&this.node===e.node}isConstant(){return!1}visitExpression(e,r){return e.visitWrappedNodeExpr(this,r)}clone(){return new t(this.node,this.type,this.sourceSpan)}},Pt=class t extends Ee{fn;args;pure;constructor(e,r,n,i,s=!1){super(n,i),this.fn=e,this.args=r,this.pure=s}get receiver(){return this.fn}isEquivalent(e){return e instanceof t&&this.fn.isEquivalent(e.fn)&&qt(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,r){return e.visitInvokeFunctionExpr(this,r)}clone(){return new t(this.fn.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan,this.pure)}}
2,Ks=class t extends Ee{tag;template;constructor(e,r,n,i){super(n,i),this.tag=e,this.template=r}isEquivalent(e){return e instanceof t&&this.tag.isEquivalent(e.tag)&&this.template.isEquivalent(e.template)}isConstant(){return!1}visitExpression(e,r){return e.visitTaggedTemplateLiteralExpr(this,r)}clone(){return new t(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},ea=class t extends Ee{classExpr;args;constructor(e,r,n,i){super(n,i),this.classExpr=e,this.args=r}isEquivalent(e){return e instanceof t&&this.classExpr.isEquivalent(e.classExpr)&&qt(this.args,e.args)}isConstant(){return!1}visitExpression(e,r){return e.visitInstantiateExpr(this,r)}clone(){return new t(this.classExpr.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan)}},st=class t extends Ee{value;constructor(e,r,n){super(r,n),this.value=e}isEquivalent(e){return e instanceof t&&this.value===e.value}isConstant(){return!0}visitExpression(e,r){return e.visitLiteralExpr(this,r)}clone(){return new t(this.value,this.type,this.sourceSpan)}},ta=class t extends Ee{elements;expressions;constructor(e,r,n){super(null,n),this.elements=e,this.expressions=r}isEquivalent(e){return e instanceof t&&wm(this.elements,e.elements,(r,n)=>r.text===n.text)&&qt(this.expressions,e.expressions)}isConstant(){return!1}visitExpression(e,r){return e.visitTemplateLiteralExpr(this,r)}clone(){return new t(this.elements.map(e=>e.clone()),this.expressions.map(e=>e.clone()))}},Qo=class t extends Ee{text;rawText;constructor(e,r,n){super(wh,r),this.text=e,this.rawText=n??Kc($o(e))}visitExpression(e,r){return e.visitTemplateLiteralElementExpr(this,r)}isEquivalent(e){return e instanceof t&&e.text===this.text&&e.rawText===this.rawText}isConstant(){return!0}clone(){return new t(this.text,this.sourceSpan,this.rawText)}},ri=class{text;sourceSpan;constructor(e,r){this.text=e,this.sourceSpan=r}},Wi=class{text;sourceSpan;associatedMessage;constructor(e,r,n){this.text=e,this.sourceSpan=r,this.associatedMessage=n}},qy="|",Bf="@@",jy="\u241F",Jo=class t extends Ee{metaBlock;messageParts;placeHolderNames;expressions;constructor(e,r,n,i,s){super(wh,s),this.metaBlock=e,this.messageParts=r,this.placeHolderNames=n,this.expressions=i}isEquivalent(e){return!1}isConstant(){return!1}visitExpression(e,r){return e.visitLocalizedString(this,r)}clone(){return new t(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(e=>e.clone()),this.sourceSpan)}serializeI18nHead(){let e=this.metaBlock.description||"";return this.metaBlock.meaning&&(e=`${this.metaBlock.meaning}${qy}${e}`),this.metaBlock.customId&&(e=`${e}${Bf}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(r=>{e=`${e}${jy}${r}`}),Rf(e,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(e){return this.messageParts[e]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(e){return this.placeHolderNames[e]?.sourceSpan??this.expressions[e]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(e){let r=this.placeHolderNames[e-1],n=this.messageParts[e],i=r.text;return r.associatedMessage?.legacyIds.length===0&&(i+=`${Bf}${xm(r.associatedMessage.messageString,r.associatedMessage.meaning)}`),Rf(i,n.text,this.getMessagePartSourceSpan(e))}},$o=t=>t.replace(/\\/g,"\\\\"),Wy=t=>t.replace(/^:/,"\\:"),Uy=t=>t.replace(/:/g,"\\:"),Kc=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function Rf(t,e,r){return t===""?{cooked:e,raw:Kc(Wy($o(e))),range:r}:{cooked:`:${t}:${e}`,raw:Kc(`:${Uy($o(t))}:${$o(e)}`),range:r}}var ci=class t extends Ee{value;typeParams;constructor(e,r,n=null,i){super(r,i),this.value=e,this.typeParams=n}isEquivalent(e){return e instanceof t&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName}isConstant(){return!1}visitExpression(e,r){return e.visitExternalExpr(this,r)}clone(){return new t(this.value,this.type,this.typeParams,this.sourceSpan)}};var zr=class t extends Ee{condition;falseCase;trueCase;constructor(e,r,n=null,i,s){super(i||r.type,s),this.condition=e,this.falseCase=n,this.trueCase=r}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&Gy(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,r){return e.visitConditionalExpr(this,r)}clone(){return new t(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}};
2var ra=class t extends Ee{condition;constructor(e,r){super(Hy,r),this.condition=e}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,r){return e.visitNotExpr(this,r)}clone(){return new t(this.condition.clone(),this.sourceSpan)}},Qe=class t{name;type;constructor(e,r=null){this.name=e,this.type=r}isEquivalent(e){return this.name===e.name}clone(){return new t(this.name,this.type)}},_n=class t extends Ee{params;statements;name;constructor(e,r,n,i,s){super(n,i),this.params=e,this.statements=r,this.name=s}isEquivalent(e){return(e instanceof t||e instanceof na)&&qt(this.params,e.params)&&qt(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,r){return e.visitFunctionExpr(this,r)}toDeclStmt(e,r){return new na(e,this.params,this.statements,this.type,r,this.sourceSpan)}clone(){return new t(this.params.map(e=>e.clone()),this.statements,this.type,this.sourceSpan,this.name)}},ui=class t extends Ee{params;body;constructor(e,r,n,i){super(n,i),this.params=e,this.body=r}isEquivalent(e){return!(e instanceof t)||!qt(this.params,e.params)?!1:this.body instanceof Ee&&e.body instanceof Ee?this.body.isEquivalent(e.body):Array.isArray(this.body)&&Array.isArray(e.body)?qt(this.body,e.body):!1}isConstant(){return!1}visitExpression(e,r){return e.visitArrowFunctionExpr(this,r)}clone(){return new t(this.params.map(e=>e.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(e,r){return new Ue(e,this,zt,r,this.sourceSpan)}},hi=class t extends Ee{operator;expr;parens;constructor(e,r,n,i,s=!0){super(n||bh,i),this.operator=e,this.expr=r,this.parens=s}isEquivalent(e){return e instanceof t&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,r){return e.visitUnaryOperatorExpr(this,r)}clone(){return new t(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},br=class t extends Ee{expr;constructor(e,r,n){super(r,n),this.expr=e}visitExpression(e,r){return e.visitParenthesizedExpr(this,r)}isEquivalent(e){return e instanceof t&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},ge=class t extends Ee{operator;rhs;lhs;constructor(e,r,n,i,s){super(i||r.type,s),this.operator=e,this.rhs=n,this.lhs=r}isEquivalent(e){return e instanceof t&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,r){return e.visitBinaryOperatorExpr(this,r)}clone(){return new t(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}isAssignment(){let e=this.operator;return e===j.Assign||e===j.AdditionAssignment||e===j.SubtractionAssignment||e===j.MultiplicationAssignment||e===j.DivisionAssignment||e===j.RemainderAssignment||e===j.ExponentiationAssignment||e===j.AndAssignment||e===j.OrAssignment||e===j.NullishCoalesceAssignment}},jt=class t extends Ee{receiver;name;constructor(e,r,n,i){super(n,i),this.receiver=e,this.name=r}get index(){return this.name}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,r){return e.visitReadPropExpr(this,r)}set(e){return new ge(j.Assign,this.receiver.prop(this.name),e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},on=class t extends Ee{receiver;index;constructor(e,r,n,i){super(n,i),this.receiver=e,this.index=r}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,r){return e.visitReadKeyExpr(this,r)}set(e){return new ge(j.Assign,this.receiver.key(this.index),e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},wr=class t extends Ee{entries;constructor(e,r,n){super(r,n),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof t&&qt(this.entries,e.entries)}visitExpression(e,r){return e.visitLiteralArrayExpr(this,r)}clone(){return new t(this.entries.map(e=>e.clone()),this.type,this.sourceSpan)}},Ki=class t{key;value;quoted;constructor(e,r,n){this.key=e,this.value=r,this.quoted=n}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new t(this.key,this.value.clone(),this.quoted)}}
2,Hr=class t extends Ee{entries;valueType=null;constructor(e,r,n){super(r,n),this.entries=e,r&&(this.valueType=r.valueType)}isEquivalent(e){return e instanceof t&&qt(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,r){return e.visitLiteralMapExpr(this,r)}clone(){let e=this.entries.map(r=>r.clone());return new t(e,this.type,this.sourceSpan)}};var es=new st(null,null,null),Xy=new st(null,zt,null),rt=(function(t){return t[t.None=0]="None",t[t.Final=1]="Final",t[t.Private=2]="Private",t[t.Exported=4]="Exported",t[t.Static=8]="Static",t})(rt||{}),eu=class{text;multiline;trailingNewline;constructor(e,r,n){this.text=e,this.multiline=r,this.trailingNewline=n}toString(){return this.multiline?` ${this.text} `:this.text}},Ko=class extends eu{tags;constructor(e){super("",!0,!0),this.tags=e}toString(){return Ky(this.tags)}},pi=class{modifiers;sourceSpan;leadingComments;constructor(e=rt.None,r=null,n){this.modifiers=e,this.sourceSpan=r,this.leadingComments=n}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},Ue=class t extends pi{name;value;type;constructor(e,r,n,i,s,a){super(i,s,a),this.name=e,this.value=r,this.type=n||r&&r.type||null}isEquivalent(e){return e instanceof t&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,r){return e.visitDeclareVarStmt(this,r)}},na=class t extends pi{name;params;statements;type;constructor(e,r,n,i,s,a,o){super(s,a,o),this.name=e,this.params=r,this.statements=n,this.type=i||null}isEquivalent(e){return e instanceof t&&qt(this.params,e.params)&&qt(this.statements,e.statements)}visitStatement(e,r){return e.visitDeclareFunctionStmt(this,r)}},lr=class t extends pi{expr;constructor(e,r,n){super(rt.None,r,n),this.expr=e}isEquivalent(e){return e instanceof t&&this.expr.isEquivalent(e.expr)}visitStatement(e,r){return e.visitExpressionStmt(this,r)}},nt=class t extends pi{value;constructor(e,r=null,n){super(rt.None,r,n),this.value=e}isEquivalent(e){return e instanceof t&&this.value.isEquivalent(e.value)}visitStatement(e,r){return e.visitReturnStmt(this,r)}},el=class t extends pi{condition;trueCase;falseCase;constructor(e,r,n=[],i,s){super(rt.None,i,s),this.condition=e,this.trueCase=r,this.falseCase=n}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&qt(this.trueCase,e.trueCase)&&qt(this.falseCase,e.falseCase)}visitStatement(e,r){return e.visitIfStmt(this,r)}};function Yy(t=[]){return new Ko(t)}function pe(t,e,r){return new or(t,e,r)}function te(t,e=null,r){return new ci(t,null,e,r)}function it(t,e,r){return new ar(t,e,r)}function Ua(t){return new Ji(t)}function Se(t,e,r){return new wr(t,e,r)}function yt(t,e=null){return new Hr(t.map(r=>new Ki(r.key,r.value,r.quoted)),e,null)}function Zy(t,e){return new ra(t,e)}function Pn(t,e,r,n,i){return new _n(t,e,r,n,i)}function Cr(t,e,r,n){return new ui(t,e,r,n)}function nc(t,e,r,n,i){return new el(t,e,r,n,i)}function Qy(t,e,r,n){return new Ks(t,e,r,n)}function $(t,e,r){return new st(t,e,r)}function Jy(t,e,r,n,i){return new Jo(t,e,r,n,i)}function Of(t){let e="";if(t.tagName&&(e+=` @${t.tagName}`),t.text){if(t.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+t.text.replace(/@/g,"\\@")}return e}function Ky(t){if(t.length===0)return"";if(t.length===1&&t[0].tagName&&!t[0].text)return`*${Of(t[0])} `;let e=`*
3`;for(let r of t)e+=" *",e+=Of(r).replace(/\n/g,`
4 * `),e+=`
5`;return e+=" ",e}var e0="_c",$f=pe("<unknown>"),t0={},r0=50,tl=class t extends Ee{resolved;original;shared=!1;constructor(e){super(e.type),this.resolved=e,this.original=e}visitExpression(e,r){return r===t0?this.original.visitExpression(e,r):this.resolved.visitExpression(e,r)}isEquivalent(e){return e instanceof t&&this.resolved.isEquivalent(e.resolved)}isConstant(){return!0}clone(){throw new Error("Not supported.")}fixup(e){this.resolved=e,this.shared=!0}},rl=class{isClosureCompilerEnabled;statements=[];literals=new Map;literalFactories=new Map;sharedConstants=new Map;_claimedNames=new Map;nextNameIndex=0;constructor(e=!1){this.isClosureCompilerEnabled=e}getConstLiteral(e,r){if(e instanceof st&&!Vf(e)||e instanceof tl)return e;let n=Ui.INSTANCE.keyOf(e),i=this.literals.get(n),s=!1;
5if(i||(i=new tl(e),this.literals.set(n,i),s=!0),!s&&!i.shared||s&&r){let a=this.freshName(),o,l;this.isClosureCompilerEnabled&&Vf(e)?(o=new _n([],[new nt(e)]),l=pe(a).callFn([])):(o=e,l=pe(a)),this.statements.push(new Ue(a,o,zt,rt.Final)),i.fixup(l)}return i}getSharedConstant(e,r){let n=e.keyOf(r);if(!this.sharedConstants.has(n)){let i=this.freshName();this.sharedConstants.set(n,pe(i)),this.statements.push(e.toSharedConstantDeclaration(i,r))}return this.sharedConstants.get(n)}getLiteralFactory(e){if(e instanceof wr){let r=e.entries.map(i=>i.isConstant()?i:$f),n=Ui.INSTANCE.keyOf(Se(r));return this._getLiteralFactory(n,e.entries,i=>Se(i))}else{let r=yt(e.entries.map(i=>({key:i.key,value:i.value.isConstant()?i.value:$f,quoted:i.quoted}))),n=Ui.INSTANCE.keyOf(r);return this._getLiteralFactory(n,e.entries.map(i=>i.value),i=>yt(i.map((s,a)=>({key:e.entries[a].key,value:s,quoted:e.entries[a].quoted}))))}}getSharedFunctionReference(e,r,n=!0){let i=e instanceof ui;for(let a of this.statements)if(i&&a instanceof Ue&&a.value?.isEquivalent(e)||!i&&a instanceof na&&e instanceof _n&&e.isEquivalent(a))return pe(a.name);let s=n?this.uniqueName(r):r;return this.statements.push(e instanceof _n?e.toDeclStmt(s,rt.Final):new Ue(s,e,zt,rt.Final,e.sourceSpan)),pe(s)}_getLiteralFactory(e,r,n){let i=this.literalFactories.get(e),s=r.filter(a=>!a.isConstant());if(!i){let a=r.map((u,d)=>u.isConstant()?this.getConstLiteral(u,!0):pe(`a${d}`)),o=a.filter(n0).map(u=>new Qe(u.name,Wa)),l=Cr(o,n(a),zt),c=this.freshName();this.statements.push(new Ue(c,l,zt,rt.Final)),i=pe(c),this.literalFactories.set(e,i)}return{literalFactory:i,literalFactoryArguments:s}}uniqueName(e,r=!0){let n=this._claimedNames.get(e)??0,i=n===0&&!r?`${e}`:`${e}${n}`;return this._claimedNames.set(e,n+1),i}freshName(){return this.uniqueName(e0)}},Ui=class t{static INSTANCE=new t;keyOf(e){if(e instanceof st&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof st)return String(e.value);if(e instanceof wr){let r=[];for(let n of e.entries)r.push(this.keyOf(n));return`[${r.join(",")}]`}else if(e instanceof Hr){let r=[];for(let n of e.entries){let i=n.key;n.quoted&&(i=`"${i}"`),r.push(i+":"+this.keyOf(n.value))}return`{${r.join(",")}}`}else{if(e instanceof ci)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof or)return`read(${e.name})`;if(e instanceof Ji)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};function n0(t){return t instanceof or}function Vf(t){return t instanceof st&&typeof t.value=="string"&&t.value.length>=r0}var F="@angular/core",I=(()=>{class t{static NEW_METHOD="factory";static TRANSFORM_METHOD="transform";static PATCH_DEPS="patchedDeps";static core={name:null,moduleName:F};static namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:F};static namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:F};static namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:F};static element={name:"\u0275\u0275element",moduleName:F};static elementStart={name:"\u0275\u0275elementStart",moduleName:F};static elementEnd={name:"\u0275\u0275elementEnd",moduleName:F};static domElement={name:"\u0275\u0275domElement",moduleName:F};static domElementStart={name:"\u0275\u0275domElementStart",moduleName:F};static domElementEnd={name:"\u0275\u0275domElementEnd",moduleName:F};static domElementContainer={name:"\u0275\u0275domElementContainer",moduleName:F};static domElementContainerStart={name:"\u0275\u0275domElementContainerStart",moduleName:F};static domElementContainerEnd={name:"\u0275\u0275domElementContainerEnd",moduleName:F};static domTemplate={name:"\u0275\u0275domTemplate",moduleName:F};static domListener={name:"\u0275\u0275domListener",moduleName:F};static advance={name:"\u0275\u0275advance",moduleName:F};static syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:F};static syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:F};static attribute={name:"\u0275\u0275attribute",moduleName:F};static classProp={name:"\u0275\u0275classProp",moduleName:F};static elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:F};static elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:F};static elementContainer={name:"\u0275\u0275elementContainer",moduleName:F};static styleMap={name:"\u0275\u0275styleMap",moduleName:F};static classMap={name:"\u0275\u0275classMap",moduleName:F};static styleProp={name:"\u0275\u0275styleProp",moduleName:F};static interpolate={name:"\u0275\u0275interpolate",moduleName:F};static interpolate1={name:"\u0275\u0275interpolate1",moduleName:F};static interpolate2={name:"\u0275\u0275interpolate2",moduleName:F};static interpolate3={name:"\u0275\u0275interpolate3",moduleName:F};static interpolate4={name:"\u0275\u0275interpolate4",moduleName:F};static interpolate5={name:"\u0275\u0275interpolate5",moduleName:F};static interpolate6={name:"\u0275\u0275interpolate6",moduleName:F};static interpolate7={name:"\u0275\u0275interpolate7",moduleName:F};static interpolate8={name:"\u0275\u0275interpolate8",moduleName:F};static interpolateV={name:"\u0275\u0275interpolateV",moduleName:F};static nextContext={name:"\u0275\u0275nextContext",moduleName:F};
5static resetView={name:"\u0275\u0275resetView",moduleName:F};static templateCreate={name:"\u0275\u0275template",moduleName:F};static defer={name:"\u0275\u0275defer",moduleName:F};static deferWhen={name:"\u0275\u0275deferWhen",moduleName:F};static deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:F};static deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:F};static deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:F};static deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:F};static deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:F};static deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:F};static deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:F};static deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:F};static deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:F};static deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:F};static deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:F};static deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:F};static deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:F};static deferHydrateWhen={name:"\u0275\u0275deferHydrateWhen",moduleName:F};static deferHydrateNever={name:"\u0275\u0275deferHydrateNever",moduleName:F};static deferHydrateOnIdle={name:"\u0275\u0275deferHydrateOnIdle",moduleName:F};static deferHydrateOnImmediate={name:"\u0275\u0275deferHydrateOnImmediate",moduleName:F};static deferHydrateOnTimer={name:"\u0275\u0275deferHydrateOnTimer",moduleName:F};static deferHydrateOnHover={name:"\u0275\u0275deferHydrateOnHover",moduleName:F};static deferHydrateOnInteraction={name:"\u0275\u0275deferHydrateOnInteraction",moduleName:F};static deferHydrateOnViewport={name:"\u0275\u0275deferHydrateOnViewport",moduleName:F};static deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:F};static conditionalCreate={name:"\u0275\u0275conditionalCreate",moduleName:F};static conditionalBranchCreate={name:"\u0275\u0275conditionalBranchCreate",moduleName:F};static conditional={name:"\u0275\u0275conditional",moduleName:F};static repeater={name:"\u0275\u0275repeater",moduleName:F};static repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:F};static repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:F};static repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:F};static componentInstance={name:"\u0275\u0275componentInstance",moduleName:F};static text={name:"\u0275\u0275text",moduleName:F};static enableBindings={name:"\u0275\u0275enableBindings",moduleName:F};static disableBindings={name:"\u0275\u0275disableBindings",moduleName:F};static getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:F};static textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:F};static textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:F};static textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:F};static textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:F};static textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:F};static textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:F};static textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:F};static textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:F};static textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:F};static textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:F};static restoreView={name:"\u0275\u0275restoreView",moduleName:F};static pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:F};static pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:F};static pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:F};static pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:F};static pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:F};static pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:F};static pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:F};static pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:F};static pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:F};static pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:F};static pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:F};static pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:F};static pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:F};static pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:F};static pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:F};static domProperty={name:"\u0275\u0275domProperty",moduleName:F};static ariaProperty={name:"\u0275\u0275ariaProperty",moduleName:F};static property={name:"\u0275\u0275property",moduleName:F};static animationEnterListener={name:"\u0275\u0275animateEnterListener",moduleName:F};static animationLeaveListener={name:"\u0275\u0275animateLeaveListener",moduleName:F};static animationEnter={name:"\u0275\u0275animateEnter",moduleName:F};static animationLeave={name:"\u0275\u0275animateLeave",moduleName:F};
5static i18n={name:"\u0275\u0275i18n",moduleName:F};static i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:F};static i18nExp={name:"\u0275\u0275i18nExp",moduleName:F};static i18nStart={name:"\u0275\u0275i18nStart",moduleName:F};static i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:F};static i18nApply={name:"\u0275\u0275i18nApply",moduleName:F};static i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:F};static pipe={name:"\u0275\u0275pipe",moduleName:F};static projection={name:"\u0275\u0275projection",moduleName:F};static projectionDef={name:"\u0275\u0275projectionDef",moduleName:F};static reference={name:"\u0275\u0275reference",moduleName:F};static inject={name:"\u0275\u0275inject",moduleName:F};static injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:F};static directiveInject={name:"\u0275\u0275directiveInject",moduleName:F};static invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:F};static invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:F};static templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:F};static forwardRef={name:"forwardRef",moduleName:F};static resolveForwardRef={name:"resolveForwardRef",moduleName:F};static replaceMetadata={name:"\u0275\u0275replaceMetadata",moduleName:F};static getReplaceMetadataURL={name:"\u0275\u0275getReplaceMetadataURL",moduleName:F};static \u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:F};static declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:F};static InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:F};static resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:F};static resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:F};static resolveBody={name:"\u0275\u0275resolveBody",moduleName:F};static getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:F};static defineComponent={name:"\u0275\u0275defineComponent",moduleName:F};static declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:F};static setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:F};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:F};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:F};static ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:F};static FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:F};static declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:F};static FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:F};static defineDirective={name:"\u0275\u0275defineDirective",moduleName:F};static declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:F};static DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:F};static InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:F};static InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:F};static defineInjector={name:"\u0275\u0275defineInjector",moduleName:F};static declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:F};static NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:F};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:F};static defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:F};static declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:F};static setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:F};static registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:F};static PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:F};static definePipe={name:"\u0275\u0275definePipe",moduleName:F};static declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:F};static declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:F};static declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:F};static setClassMetadata={name:"\u0275setClassMetadata",moduleName:F};static setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:F};static setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:F};static queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:F};static viewQuery={name:"\u0275\u0275viewQuery",moduleName:F};static loadQuery={name:"\u0275\u0275loadQuery",moduleName:F};static contentQuery={name:"\u0275\u0275contentQuery",moduleName:F};static viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:F};static contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:F};static queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:F};static twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:F};static twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:F};static twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:F};static declareLet={name:"\u0275\u0275declareLet",moduleName:F};static storeLet={name:"\u0275\u0275storeLet",moduleName:F};static readContextLet={name:"\u0275\u0275readContextLet",moduleName:F};static attachSourceLocations={name:"\u0275\u0275attachSourceLocations",moduleName:F};static NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:F};static InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:F};static CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:F};static ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:F};static HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:F};static ExternalStylesFeature={name:"\u0275\u0275ExternalStylesFeature",moduleName:F};static listener={name:"\u0275\u0275listener",moduleName:F};
5static getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:F};static sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:F};static sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:F};static validateAttribute={name:"\u0275\u0275validateAttribute",moduleName:F};static sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:F};static sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:F};static sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:F};static sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:F};static trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:F};static trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:F};static inputDecorator={name:"Input",moduleName:F};static outputDecorator={name:"Output",moduleName:F};static viewChildDecorator={name:"ViewChild",moduleName:F};static viewChildrenDecorator={name:"ViewChildren",moduleName:F};static contentChildDecorator={name:"ContentChild",moduleName:F};static contentChildrenDecorator={name:"ContentChildren",moduleName:F};static InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:F};static UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:F};static unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:F};static assertType={name:"\u0275assertType",moduleName:F}}return t})(),i0=/-+([a-z0-9])/g;function s0(t){return t.replace(i0,(...e)=>e[1].toUpperCase())}function a0(t,e){return Cm(t,":",e)}function o0(t,e){return Cm(t,".",e)}function Cm(t,e,r){let n=t.indexOf(e);return n==-1?r:[t.slice(0,n).trim(),t.slice(n+1).trim()]}function l0(t){let e=[];for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(n>=55296&&n<=56319&&t.length>r+1){let i=t.charCodeAt(r+1);i>=56320&&i<=57343&&(r++,n=(n-55296<<10)+i-56320+65536)}n<=127?e.push(n):n<=2047?e.push(n>>6&31|192,n&63|128):n<=65535?e.push(n>>12|224,n>>6&63|128,n&63|128):n<=2097151&&e.push(n>>18&7|240,n>>12&63|128,n>>6&63|128,n&63|128)}return e}function Tm(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Tm).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;if(!t.toString)return"object";let r=t.toString();if(r==null)return""+r;let n=r.indexOf(`
6`);return n>=0?r.slice(0,n):r}var tu=class{full;major;minor;patch;constructor(e){this.full=e;let r=e.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}},Ws=globalThis,c0=/^([1-9]|1[0-8])\./;function Am(t){return t.startsWith("0.")?!0:!c0.test(t)}var u0=3,h0="# sourceMappingURL=data:application/json;base64,",ru=class{file;sourcesContent=new Map;lines=[];lastCol0=0;hasMappings=!1;constructor(e=null){this.file=e}addSource(e,r=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,r),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,r,n,i){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(r!=null&&!this.sourcesContent.has(r))throw new Error(`Unknown source file "${r}"`);if(e==null)throw new Error("The column in the generated code must be provided");if(e<this.lastCol0)throw new Error("Mapping should be added in output order");if(r&&(n==null||i==null))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:r,sourceLine0:n,sourceCol0:i}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;let e=new Map,r=[],n=[];Array.from(this.sourcesContent.keys()).forEach((c,u)=>{e.set(c,u),r.push(c),n.push(this.sourcesContent.get(c)||null)});let i="",s=0,a=0,o=0,l=0;return this.lines.forEach(c=>{s=0,i+=c.map(u=>{let d=To(u.col0-s);return s=u.col0,u.sourceUrl!=null&&(d+=To(e.get(u.sourceUrl)-a),a=e.get(u.sourceUrl),d+=To(u.sourceLine0-o),o=u.sourceLine0,d+=To(u.sourceCol0-l),l=u.sourceCol0),d}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:u0,sourceRoot:"",sources:r,sourcesContent:n,mappings:i}}toJsComment(){return this.hasMappings?"//"+h0+p0(JSON.stringify(this,null,0)):""}};function p0(t){let e="",r=l0(t);for(let n=0;n<r.length;){let i=r[n++],s=n<r.length?r[n++]:null,a=n<r.length?r[n++]:null;e+=zs(i>>2),e+=zs((i&3)<<4|(s===null?0:s>>4)),e+=s===null?"=":zs((s&15)<<2|(a===null?0:a>>6)),e+=s===null||a===null?"=":zs(a&63)}return e}function To(t){t=t<0?(-t<<1)+1:t<<1;let e="";do{let r=t&31;t=t>>5,t>0&&(r=r|32),e+=zs(r)}while(t>0);return e}var f0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
6+/";function zs(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return f0[t]}var d0=/'|\\|\n|\r|\$/g,m0=/^[$A-Z_][0-9A-Z_$]*$/i,nu="  ",nl=class{indent;partsLength=0;parts=[];srcSpans=[];constructor(e){this.indent=e}},g0=new Map([[j.And,"&&"],[j.Bigger,">"],[j.BiggerEquals,">="],[j.BitwiseOr,"|"],[j.BitwiseAnd,"&"],[j.Divide,"/"],[j.Assign,"="],[j.Equals,"=="],[j.Identical,"==="],[j.Lower,"<"],[j.LowerEquals,"<="],[j.Minus,"-"],[j.Modulo,"%"],[j.Exponentiation,"**"],[j.Multiply,"*"],[j.NotEquals,"!="],[j.NotIdentical,"!=="],[j.NullishCoalesce,"??"],[j.Or,"||"],[j.Plus,"+"],[j.In,"in"],[j.AdditionAssignment,"+="],[j.SubtractionAssignment,"-="],[j.MultiplicationAssignment,"*="],[j.DivisionAssignment,"/="],[j.RemainderAssignment,"%="],[j.ExponentiationAssignment,"**="],[j.AndAssignment,"&&="],[j.OrAssignment,"||="],[j.NullishCoalesceAssignment,"??="]]),iu=class t{_indent;static createRoot(){return new t(0)}_lines;constructor(e){this._indent=e,this._lines=[new nl(e)]}get _currentLine(){return this._lines[this._lines.length-1]}println(e,r=""){this.print(e||null,r,!0)}lineIsEmpty(){return this._currentLine.parts.length===0}lineLength(){return this._currentLine.indent*nu.length+this._currentLine.partsLength}print(e,r,n=!1){r.length>0&&(this._currentLine.parts.push(r),this._currentLine.partsLength+=r.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),n&&this._lines.push(new nl(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map(e=>e.parts.length>0?zf(e.indent)+e.parts.join(""):"").join(`
7`)}toSourceMapGenerator(e,r=0){let n=new ru(e),i=!1,s=()=>{i||(n.addSource(e," ").addMapping(0,e,0,0),i=!0)};for(let a=0;a<r;a++)n.addLine(),s();return this.sourceLines.forEach((a,o)=>{n.addLine();let l=a.srcSpans,c=a.parts,u=a.indent*nu.length,d=0;for(;d<l.length&&!l[d];)u+=c[d].length,d++;for(d<l.length&&o===0&&u===0?i=!0:s();d<l.length;){let f=l[d],h=f.start.file,p=f.start.line,g=f.start.col;for(n.addSource(h.url,h.content).addMapping(u,h.url,p,g),u+=c[d].length,d++;d<l.length&&(f===l[d]||!l[d]);)u+=c[d].length,d++}}),n}spanOf(e,r){let n=this._lines[e];if(n){let i=r-zf(n.indent).length;for(let s=0;s<n.parts.length;s++){let a=n.parts[s];if(a.length>i)return n.srcSpans[s];i-=a.length}}return null}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},su=class{_escapeDollarInStrings;lastIfCondition=null;constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,r){if(e.leadingComments!==void 0)for(let n of e.leadingComments)n instanceof Ko?r.print(e,`/*${n.toString()}*/`,n.trailingNewline):n.multiline?r.print(e,`/* ${n.text} */`,n.trailingNewline):n.text.split(`
8`).forEach(i=>{r.println(e,`// ${i}`)})}visitExpressionStmt(e,r){return this.printLeadingComments(e,r),e.expr.visitExpression(this,r),r.println(e,";"),null}visitReturnStmt(e,r){return this.printLeadingComments(e,r),r.print(e,"return "),e.value.visitExpression(this,r),r.println(e,";"),null}visitIfStmt(e,r){this.printLeadingComments(e,r),r.print(e,"if ("),this.lastIfCondition=e.condition,e.condition.visitExpression(this,r),this.lastIfCondition=null,r.print(e,") {");let n=e.falseCase!=null&&e.falseCase.length>0;return e.trueCase.length<=1&&!n?(r.print(e," "),this.visitAllStatements(e.trueCase,r),r.removeEmptyLastLine(),r.print(e," ")):(r.println(),r.incIndent(),this.visitAllStatements(e.trueCase,r),r.decIndent(),n&&(r.println(e,"} else {"),r.incIndent(),this.visitAllStatements(e.falseCase,r),r.decIndent())),r.println(e,"}"),null}visitInvokeFunctionExpr(e,r){let n=e.fn instanceof ui;return n&&r.print(e.fn,"("),e.fn.visitExpression(this,r),n&&r.print(e.fn,")"),r.print(e,"("),this.visitAllExpressions(e.args,r,","),r.print(e,")"),null}visitTaggedTemplateLiteralExpr(e,r){return e.tag.visitExpression(this,r),e.template.visitExpression(this,r),null}visitTemplateLiteralExpr(e,r){r.print(e,"`");for(let n=0;n<e.elements.length;n++){e.elements[n].visitExpression(this,r);let i=n<e.expressions.length?e.expressions[n]:null;i!==null&&(r.print(i,"${"),i.visitExpression(this,r),r.print(i,"}"))}r.print(e,"`")}visitTemplateLiteralElementExpr(e,r){r.print(e,e.rawText)}visitWrappedNodeExpr(e,r){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")}visitTypeofExpr(e,r){r.print(e,"typeof "),e.expr.visitExpression(this,r)}visitVoidExpr(e,r){r.print(e,"void "),e.expr.visitExpression(this,r)}visitReadVarExpr(e,r){return r.print(e,e.name),null}visitInstantiateExpr(e,r){return r.print(e,"new "),e.classExpr.visitExpression(this,r),r.print(e,"("),this.visitAllExpressions(e.args,r,","),r.print(e,")"),null}visitLiteralExpr(e,r){let n=e.value;return typeof n=="string"?r.print(e,Qn(n,this._escapeDollarInStrings)):r.print(e,`${n}`),null}visitLocalizedString(e,r){let n=e.serializeI18nHead();r.print(e,"$localize `"+n.raw);for(let i=1;i<e.messageParts.length;i++)r.print(e,"${"),e.expressions[i-1].visitExpression(this,r),r.print(e,`}${e.serializeI18nTemplatePart(i).raw}`);return r.print(e,"`"),null}visitConditionalExpr(e,r){return r.print(e,"("),e.condition.visitExpression(this,r),r.print(e,"? "),e.trueCase.visitExpression(this,r),r.print(e,": "),e.falseCase.visitExpression(this,r),r.print(e,")"),null}visitDynamicImportExpr(e,r){r.print(e,`import(${e.url})`)}visitNotExpr(e,r){return r.print(e,"!"),e.condition.visitExpression(this,r),null}visitUnaryOperatorExpr(e,r){let n;switch(e.operator){case Js.Plus:n="+";break;case Js.Minus:n="-";break;default:throw new Error(`Unknown operator ${e.operator}`)}let i=e!==this.lastIfCondition;return i&&r.print(e,"("),r.print(e,n),e.expr.visitExpression(this,r),i&&r.print(e,")"),null}visitBinaryOperatorExpr(e,r){let n=g0.get(e.operator);if(!n)throw new Error(`Unknown operator ${e.operator}`);let i=e!==this.lastIfCondition;return i&&r.print(e,"("),e.lhs.visitExpression(this,r),r.print(e,` ${n} `),e.rhs.visitExpression(this,r),i&&r.print(e,")"),null}visitReadPropExpr(e,r){return e.receiver.visitExpression(this,r),r.print(e,"."),r.print(e,e.name),null}visitReadKeyExpr(e,r){return e.receiver.visitExpression(this,r),r.print(e,"["),e.index.visitExpression(this,r),r.print(e,"]"),null}visitLiteralArrayExpr(e,r){return r.print(e,"["),this.visitAllExpressions(e.entries,r,","),r.print(e,"]"),null}visitLiteralMapExpr(e,r){return r.print(e,"{"),this.visitAllObjects(n=>{r.print(e,`${Qn(n.key,this._escapeDollarInStrings,n.quoted)}:`),n.value.visitExpression(this,r)},e.entries,r,","),r.print(e,"}"),null}visitCommaExpr(e,r){return r.print(e,"("),this.visitAllExpressions(e.parts,r,","),r.print(e,")"),null}visitParenthesizedExpr(e,r){e.expr.visitExpression(this,r)}visitAllExpressions(e,r,n){this.visitAllObjects(i=>i.visitExpression(this,r),e,r,n)}visitAllObjects(e,r,n,i){let s=!1;for(let a=0;a<r.length;a++)a>0&&(n.lineLength()>80?(n.print(null,i,!0),s||(n.incIndent(),n.incIndent(),s=!0)):n.print(null,i,!1)),e(r[a]);s&&(n.decIndent(),n.decIndent())}visitAllStatements(e,r){e.forEach(n=>
8n.visitStatement(this,r))}};function Qn(t,e,r=!0){if(t==null)return null;let n=t.replace(d0,(...s)=>s[0]=="$"?e?"\\$":"$":s[0]==`
9`?"\\n":s[0]=="\r"?"\\r":`\\${s[0]}`);return r||!m0.test(n)?`'${n}'`:n}function zf(t){let e="";for(let r=0;r<t;r++)e+=nu;return e}function ic(t,e){if(e===0)return it(t);let r=[];for(let n=0;n<e;n++)r.push(Wa);return it(t,void 0,r)}function v0(t,e){let r=Qn(e,!1,!1);return r!==e?`${t}[${r}]`:`${t}.${e}`}function y0(t){return S0("ngJitMode",t)}function S0(t,e){let r=new ci({name:t,moduleName:null}),n=new ge(j.Identical,new Ji(r),$("undefined")),i=new ge(j.Or,n,r,void 0,void 0);return new ge(j.And,i,e)}function je(t){let e=new de(t);return{value:e,type:e}}function Jn(t,e){let r=Se(t.map(n=>n.value));return e?Cr([],r):r}function Ch(t,e){return{expression:t,forwardRef:e}}function E0({expression:t,forwardRef:e}){switch(e){case 0:case 1:return t;case 2:return x0(t)}}function x0(t){return te(I.forwardRef).callFn([Cr([],t)])}var il=(function(t){return t[t.Class=0]="Class",t[t.Function=1]="Function",t})(il||{});function Xn(t){let e=pe("__ngFactoryType__"),r=null,n=Gf(t)?e:new ge(j.Or,e,t.type.value),i=null;t.deps!==null?t.deps!=="invalid"&&(i=new ea(n,Hf(t.deps,t.target))):(r=pe(`\u0275${t.name}_BaseFactory`),i=r.callFn([n]));let s=[],a=null;function o(c){let u=pe("__ngConditionalFactory__");s.push(new Ue(u.name,es,zt));let d=i!==null?u.set(i).toStmt():te(I.invalidFactory).callFn([]).toStmt();return s.push(nc(e,[d],[u.set(c).toStmt()])),u}if(Gf(t)){let c=Hf(t.delegateDeps,t.target),u=new(t.delegateType===il.Class?ea:Pt)(t.delegate,c);a=o(u)}else A0(t)?a=o(t.expression):a=i;if(a===null)s.push(te(I.invalidFactory).callFn([]).toStmt());else if(r!==null){let c=te(I.getInheritedFactory).callFn([t.type.value]),u=new ge(j.Or,r,r.set(c));s.push(new nt(u.callFn([n])))}else s.push(new nt(a));let l=Pn([new Qe(e.name,Wa)],s,zt,void 0,`${t.name}_Factory`);return r!==null&&(l=Cr([],[new Ue(r.name),new nt(l)]).callFn([],void 0,!0)),{expression:l,statements:[],type:b0(t)}}function b0(t){let e=t.deps!==null&&t.deps!=="invalid"?C0(t.deps):Vr;return it(te(I.FactoryDeclaration,[ic(t.type.type,t.typeArgumentCount),e]))}function Hf(t,e){return t.map((r,n)=>w0(r,e,n))}function w0(t,e,r){if(t.token===null)return te(I.invalidFactoryDep).callFn([$(r)]);if(t.attributeNameType===null){let n=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0)|(e===Kr.Pipe?16:0),i=n!==0||t.optional?$(n):null,s=[t.token];i&&s.push(i);let a=_0(e);return te(a).callFn(s)}else return te(I.injectAttribute).callFn([t.token])}function C0(t){let e=!1,r=t.map(n=>{let i=T0(n);return i!==null?(e=!0,i):$(null)});return e?it(Se(r)):Vr}function T0(t){let e=[];return t.attributeNameType!==null&&e.push({key:"attribute",value:t.attributeNameType,quoted:!1}),t.optional&&e.push({key:"optional",value:$(!0),quoted:!1}),t.host&&e.push({key:"host",value:$(!0),quoted:!1}),t.self&&e.push({key:"self",value:$(!0),quoted:!1}),t.skipSelf&&e.push({key:"skipSelf",value:$(!0),quoted:!1}),e.length>0?yt(e):null}function Gf(t){return t.delegateType!==void 0}function A0(t){return t.expression!==void 0}function _0(t){switch(t){case Kr.Component:case Kr.Directive:case Kr.Pipe:return I.directiveInject;case Kr.NgModule:case Kr.Injectable:default:return I.inject}}var fi=class{start;end;constructor(e,r){this.start=e,this.end=r}toAbsolute(e){return new Ht(e+this.start,e+this.end)}},De=class{span;sourceSpan;constructor(e,r){this.span=e,this.sourceSpan=r}toString(){return"AST"}},ia=class extends De{nameSpan;constructor(e,r,n){super(e,r),this.nameSpan=n}},Ct=class extends De{visit(e,r=null){}},Gr=class extends De{visit(e,r=null){return e.visitImplicitReceiver(this,r)}},di=class extends Gr{visit(e,r=null){return e.visitThisReceiver?.(this,r)}},ts=class extends De{expressions;constructor(e,r,n){super(e,r),this.expressions=n}visit(e,r=null){return e.visitChain(this,r)}},sl=class extends De{condition;trueExp;falseExp;constructor(e,r,n,i,s){super(e,r),this.condition=n,this.trueExp=i,this.falseExp=s}visit(e,r=null){return e.visitConditional(this,r)}},nn=class extends ia{receiver;name;constructor(e,r,n,i,s){super(e,r,n),this.receiver=i,this.name=s}visit(e,r=null){return e.visitPropertyRead(this,r)}},sa=class extends ia{receiver;name;constructor(e,r,n,i,s){super(e,r,n),this.receiver=i,this.name=s}visit(e,r=null){return e.visitSafePropertyRead(this,r)}},mi=class extends De{receiver;key;constructor(e,r,n,i){super(e,r),this.receiver=n,this.key=i}visit(e,r=null){return e.visitKeyedRead(this,r)}},aa=class extends De{receiver;key;constructor(e,r,n,i){super(e,r),this.receiver=n,this.key=i}visit(e,r=null){return e.visitSafeKeyedRead(this,r)}},Vo=(function(t){return t[t.ReferencedByName=0]="ReferencedByName",t[t.ReferencedDirectly=1]="ReferencedDirectly",t})(Vo||{}),al=class extends ia{exp;name;args;type;constructor(e,r,n,i,s,a,o){super(e,r,o),this.exp=n,this.name=i,this.args=s,this.type=a}visit(e,r=null){return e.visitPipe(this,r)}},Rt=class extends De{value;constructor(e,r,n){super(e,r),this.value=n}visit(e,r=null){return e.visitLiteralPrimitive(this,r)}},ol=class extends De{expressions;constructor(e,r,n){super(e,r),this.expressions=n}visit(e,r=null){return e.visitLiteralArray(this,r)}},ll=class extends De{keys;values;constructor(e,r,n,i){super(e,r),this.keys=n,this.values=i}visit(e,r=null){return e.visitLiteralMap(this,r)}},Xa=class extends De{strings;expressions;constructor(e,r,n,i){super(e,r),this.strings=n,this.expressions=i}visit(e,r=null){return e.visitInterpolation(this,r)}}
9,ft=class extends De{operation;left;right;constructor(e,r,n,i,s){super(e,r),this.operation=n,this.left=i,this.right=s}visit(e,r=null){return e.visitBinary(this,r)}static isAssignmentOperation(e){return e==="="||e==="+="||e==="-="||e==="*="||e==="/="||e==="%="||e==="**="||e==="&&="||e==="||="||e==="??="}},Xi=class t extends ft{operator;expr;left=null;right=null;operation=null;static createMinus(e,r,n){return new t(e,r,"-",n,"-",new Rt(e,r,0),n)}static createPlus(e,r,n){return new t(e,r,"+",n,"-",n,new Rt(e,r,0))}constructor(e,r,n,i,s,a,o){super(e,r,s,a,o),this.operator=n,this.expr=i}visit(e,r=null){return e.visitUnary!==void 0?e.visitUnary(this,r):e.visitBinary(this,r)}},oa=class extends De{expression;constructor(e,r,n){super(e,r),this.expression=n}visit(e,r=null){return e.visitPrefixNot(this,r)}},la=class extends De{expression;constructor(e,r,n){super(e,r),this.expression=n}visit(e,r=null){return e.visitTypeofExpression(this,r)}},ca=class extends De{expression;constructor(e,r,n){super(e,r),this.expression=n}visit(e,r=null){return e.visitVoidExpression(this,r)}},ua=class extends De{expression;constructor(e,r,n){super(e,r),this.expression=n}visit(e,r=null){return e.visitNonNullAssert(this,r)}},rs=class extends De{receiver;args;argumentSpan;constructor(e,r,n,i,s){super(e,r),this.receiver=n,this.args=i,this.argumentSpan=s}visit(e,r=null){return e.visitCall(this,r)}},cl=class extends De{receiver;args;argumentSpan;constructor(e,r,n,i,s){super(e,r),this.receiver=n,this.args=i,this.argumentSpan=s}visit(e,r=null){return e.visitSafeCall(this,r)}},ha=class extends De{tag;template;constructor(e,r,n,i){super(e,r),this.tag=n,this.template=i}visit(e,r){return e.visitTaggedTemplateLiteral(this,r)}},pa=class extends De{elements;expressions;constructor(e,r,n,i){super(e,r),this.elements=n,this.expressions=i}visit(e,r){return e.visitTemplateLiteral(this,r)}},ul=class extends De{text;constructor(e,r,n){super(e,r),this.text=n}visit(e,r){return e.visitTemplateLiteralElement(this,r)}},fa=class extends De{expression;constructor(e,r,n){super(e,r),this.expression=n}visit(e,r){return e.visitParenthesizedExpression(this,r)}},Ht=class{start;end;constructor(e,r){this.start=e,this.end=r}},Ot=class extends De{ast;source;location;errors;constructor(e,r,n,i,s){super(new fi(0,r===null?0:r.length),new Ht(i,r===null?i:i+r.length)),this.ast=e,this.source=r,this.location=n,this.errors=s}visit(e,r=null){return e.visitASTWithSource?e.visitASTWithSource(this,r):this.ast.visit(e,r)}toString(){return`${this.source} in ${this.location}`}},da=class{sourceSpan;key;value;constructor(e,r,n){this.sourceSpan=e,this.key=r,this.value=n}},au=class{sourceSpan;key;value;constructor(e,r,n){this.sourceSpan=e,this.key=r,this.value=n}},ma=class{visit(e,r){e.visit(this,r)}visitUnary(e,r){this.visit(e.expr,r)}visitBinary(e,r){this.visit(e.left,r),this.visit(e.right,r)}visitChain(e,r){this.visitAll(e.expressions,r)}visitConditional(e,r){this.visit(e.condition,r),this.visit(e.trueExp,r),this.visit(e.falseExp,r)}visitPipe(e,r){this.visit(e.exp,r),this.visitAll(e.args,r)}visitImplicitReceiver(e,r){}visitThisReceiver(e,r){}visitInterpolation(e,r){this.visitAll(e.expressions,r)}visitKeyedRead(e,r){this.visit(e.receiver,r),this.visit(e.key,r)}visitLiteralArray(e,r){this.visitAll(e.expressions,r)}visitLiteralMap(e,r){this.visitAll(e.values,r)}visitLiteralPrimitive(e,r){}visitPrefixNot(e,r){this.visit(e.expression,r)}visitTypeofExpression(e,r){this.visit(e.expression,r)}visitVoidExpression(e,r){this.visit(e.expression,r)}visitNonNullAssert(e,r){this.visit(e.expression,r)}visitPropertyRead(e,r){this.visit(e.receiver,r)}visitSafePropertyRead(e,r){this.visit(e.receiver,r)}visitSafeKeyedRead(e,r){this.visit(e.receiver,r),this.visit(e.key,r)}visitCall(e,r){this.visit(e.receiver,r),this.visitAll(e.args,r)}visitSafeCall(e,r){this.visit(e.receiver,r),this.visitAll(e.args,r)}visitTemplateLiteral(e,r){for(let n=0;n<e.elements.length;n++){this.visit(e.elements[n],r);let i=n<e.expressions.length?e.expressions[n]:null;i!==null&&this.visit(i,r)}}visitTemplateLiteralElement(e,r){}visitTaggedTemplateLiteral(e,r){this.visit(e.tag,r),this.visit(e.template,r)}visitParenthesizedExpression(e,r){this.visit(e.expression,r)}visitAll(e,r){for(let n of e)this.visit(n,r)}},zi=class{name;expression;type;sourceSpan;keySpan;valueSpan;isLiteral;isLegacyAnimation;isAnimation;constructor(e,r,n,i,s,a){this.name=e,this.expression=r,this.type=n,this.sourceSpan=i,this.keySpan=s,this.valueSpan=a,this.isLiteral=this.t
9ype===Br.LITERAL_ATTR,this.isLegacyAnimation=this.type===Br.LEGACY_ANIMATION,this.isAnimation=this.type===Br.ANIMATION}},Br=(function(t){return t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.LEGACY_ANIMATION=2]="LEGACY_ANIMATION",t[t.TWO_WAY=3]="TWO_WAY",t[t.ANIMATION=4]="ANIMATION",t})(Br||{}),gt=(function(t){return t[t.Regular=0]="Regular",t[t.LegacyAnimation=1]="LegacyAnimation",t[t.TwoWay=2]="TwoWay",t[t.Animation=3]="Animation",t})(gt||{}),hl=class{name;targetOrPhase;type;handler;sourceSpan;handlerSpan;keySpan;constructor(e,r,n,i,s,a,o){this.name=e,this.targetOrPhase=r,this.type=n,this.handler=i,this.sourceSpan=s,this.handlerSpan=a,this.keySpan=o}},ou=class{name;value;sourceSpan;keySpan;valueSpan;constructor(e,r,n,i,s){this.name=e,this.value=r,this.sourceSpan=n,this.keySpan=i,this.valueSpan=s}},ve=(function(t){return t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style",t[t.LegacyAnimation=4]="LegacyAnimation",t[t.TwoWay=5]="TwoWay",t[t.Animation=6]="Animation",t})(ve||{}),pl=class{name;type;securityContext;value;unit;sourceSpan;keySpan;valueSpan;constructor(e,r,n,i,s,a,o,l){this.name=e,this.type=r,this.securityContext=n,this.value=i,this.unit=s,this.sourceSpan=a,this.keySpan=o,this.valueSpan=l}},Rr=(function(t){return t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA",t})(Rr||{});function Tr(t,e=!0){if(t[0]!=":")return[null,t];let r=t.indexOf(":",1);if(r===-1){if(e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,r),t.slice(r+1)]}function qf(t){return Tr(t)[1]==="ng-container"}function lu(t){return Tr(t)[1]==="ng-content"}function k0(t){return Tr(t)[1]==="ng-template"}function cu(t){return t===null?null:Tr(t)[0]}function zo(t,e){return t?`:${t}:${e}`:e}var sc=class{value;sourceSpan;constructor(e,r){this.value=e,this.sourceSpan=r}visit(e){throw new Error("visit() not implemented for Comment")}},Kn=class{value;sourceSpan;constructor(e,r){this.value=e,this.sourceSpan=r}visit(e){return e.visitText(this)}},ns=class{value;sourceSpan;i18n;constructor(e,r,n){this.value=e,this.sourceSpan=r,this.i18n=n}visit(e){return e.visitBoundText(this)}},is=class{name;value;sourceSpan;keySpan;valueSpan;i18n;constructor(e,r,n,i,s,a){this.name=e,this.value=r,this.sourceSpan=n,this.keySpan=i,this.valueSpan=s,this.i18n=a}visit(e){return e.visitTextAttribute(this)}},uu=class t{name;type;securityContext;value;unit;sourceSpan;keySpan;valueSpan;i18n;constructor(e,r,n,i,s,a,o,l,c){this.name=e,this.type=r,this.securityContext=n,this.value=i,this.unit=s,this.sourceSpan=a,this.keySpan=o,this.valueSpan=l,this.i18n=c}static fromBoundElementProperty(e,r){if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${e.name}: ${e.sourceSpan}`);return new t(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,r)}visit(e){return e.visitBoundAttribute(this)}},hu=class t{name;type;handler;target;phase;sourceSpan;handlerSpan;keySpan;constructor(e,r,n,i,s,a,o,l){this.name=e,this.type=r,this.handler=n,this.target=i,this.phase=s,this.sourceSpan=a,this.handlerSpan=o,this.keySpan=l}static fromParsedEvent(e){let r=e.type===gt.Regular?e.targetOrPhase:null,n=e.type===gt.LegacyAnimation?e.targetOrPhase:null;if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${e.name}: ${e.sourceSpan}`);return new t(e.name,e.type,e.handler,r,n,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}},qr=class{name;attributes;inputs;outputs;directives;children;references;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;isVoid;i18n;constructor(e,r,n,i,s,a,o,l,c,u,d,f,h){this.name=e,this.attributes=r,this.inputs=n,this.outputs=i,this.directives=s,this.children=a,this.references=o,this.isSelfClosing=l,this.sourceSpan=c,this.startSourceSpan=u,this.endSourceSpan=d,this.isVoid=f,this.i18n=h}visit(e){return e.visitElement(this)}},jr=class{nameSpan;sourceSpan;prefetchSpan;whenOrOnSourceSpan;hydrateSpan;constructor(e,r,n,i,s){this.nameSpan=e,this.sourceSpan=r,this.prefetchSpan=n,this.whenOrOnSourceSpan=i,this.hydrateSpan=s}visit(e){return e.visitDeferredTrigger(this)}},fl=class extends jr{value;constructor(e,r,n,i,s){super(null,r,n,i,s),this.value=e}},pu=class extends jr{},fu=class extends jr{},du=class extends jr{},dl=class extends jr{reference;constructor(e,r,n,i,s,a){super(r,n,i,s,a),this.reference=e}},mu=class extends jr{delay;constructor(e,r,n,i,s,a){super(r,n,i,s,a),this.delay=e}},ml=class extends jr{reference;constructor(e,r,n,i,s,a){super(r,n,i,s,a),this.reference=e}},gl=class extends jr{reference;constructor(e,r,n,i,s,a){super(r,n,i,s,a),this.reference=e}},cr=class{nameSpan;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,r,n,i){this.nameSpan=e,this.sourceSpan=r,this.startSourceSpan=n,this.endSourceSpan=i}},ga=class extends cr{children;minimumTime;i18n;constructor(e,r,n,i,s,a,o){super(n,i,s,a),this.children=e,this.minimumTime=r,this.i18n=o}visit(e){return e.visitDeferredBlockPlaceholder(this)}},va=class extends cr{children;afterTime;minimumTime;i18n;constructor(e,r,n,i,s,a,o,l){super(i,s,a,o),this.children=e,this.afterTime=r,this.minimumTime=n,this.i18n=l}
9visit(e){return e.visitDeferredBlockLoading(this)}},ya=class extends cr{children;i18n;constructor(e,r,n,i,s,a){super(r,n,i,s),this.children=e,this.i18n=a}visit(e){return e.visitDeferredBlockError(this)}},gi=class extends cr{children;placeholder;loading;error;mainBlockSpan;i18n;triggers;prefetchTriggers;hydrateTriggers;definedTriggers;definedPrefetchTriggers;definedHydrateTriggers;constructor(e,r,n,i,s,a,o,l,c,u,d,f,h){super(l,c,d,f),this.children=e,this.placeholder=s,this.loading=a,this.error=o,this.mainBlockSpan=u,this.i18n=h,this.triggers=r,this.prefetchTriggers=n,this.hydrateTriggers=i,this.definedTriggers=Object.keys(r),this.definedPrefetchTriggers=Object.keys(n),this.definedHydrateTriggers=Object.keys(i)}visit(e){return e.visitDeferredBlock(this)}visitAll(e){this.visitTriggers(this.definedHydrateTriggers,this.hydrateTriggers,e),this.visitTriggers(this.definedTriggers,this.triggers,e),this.visitTriggers(this.definedPrefetchTriggers,this.prefetchTriggers,e),Ic(e,this.children);let r=[this.placeholder,this.loading,this.error].filter(n=>n!==null);Ic(e,r)}visitTriggers(e,r,n){Ic(n,e.map(i=>r[i]))}},vl=class extends cr{expression;cases;unknownBlocks;constructor(e,r,n,i,s,a,o){super(o,i,s,a),this.expression=e,this.cases=r,this.unknownBlocks=n}visit(e){return e.visitSwitchBlock(this)}},Sa=class extends cr{expression;children;i18n;constructor(e,r,n,i,s,a,o){super(a,n,i,s),this.expression=e,this.children=r,this.i18n=o}visit(e){return e.visitSwitchBlockCase(this)}},ss=class extends cr{item;expression;trackBy;trackKeywordSpan;contextVariables;children;empty;mainBlockSpan;i18n;constructor(e,r,n,i,s,a,o,l,c,u,d,f,h){super(f,l,u,d),this.item=e,this.expression=r,this.trackBy=n,this.trackKeywordSpan=i,this.contextVariables=s,this.children=a,this.empty=o,this.mainBlockSpan=c,this.i18n=h}visit(e){return e.visitForLoopBlock(this)}},Ea=class extends cr{children;i18n;constructor(e,r,n,i,s,a){super(s,r,n,i),this.children=e,this.i18n=a}visit(e){return e.visitForLoopBlockEmpty(this)}},yl=class extends cr{branches;constructor(e,r,n,i,s){super(s,r,n,i),this.branches=e}visit(e){return e.visitIfBlock(this)}},ni=class extends cr{expression;children;expressionAlias;i18n;constructor(e,r,n,i,s,a,o,l){super(o,i,s,a),this.expression=e,this.children=r,this.expressionAlias=n,this.i18n=l}visit(e){return e.visitIfBlockBranch(this)}},Sl=class{name;sourceSpan;nameSpan;constructor(e,r,n){this.name=e,this.sourceSpan=r,this.nameSpan=n}visit(e){return e.visitUnknownBlock(this)}},Th=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(e,r,n,i,s){this.name=e,this.value=r,this.sourceSpan=n,this.nameSpan=i,this.valueSpan=s}visit(e){return e.visitLetDeclaration(this)}},Us=class{componentName;tagName;fullName;attributes;inputs;outputs;directives;children;references;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(e,r,n,i,s,a,o,l,c,u,d,f,h,p){this.componentName=e,this.tagName=r,this.fullName=n,this.attributes=i,this.inputs=s,this.outputs=a,this.directives=o,this.children=l,this.references=c,this.isSelfClosing=u,this.sourceSpan=d,this.startSourceSpan=f,this.endSourceSpan=h,this.i18n=p}visit(e){return e.visitComponent(this)}},_m=class{name;attributes;inputs;outputs;references;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(e,r,n,i,s,a,o,l,c){this.name=e,this.attributes=r,this.inputs=n,this.outputs=i,this.references=s,this.sourceSpan=a,this.startSourceSpan=o,this.endSourceSpan=l,this.i18n=c}visit(e){return e.visitDirective(this)}},Gt=class{tagName;attributes;inputs;outputs;directives;templateAttrs;children;references;variables;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(e,r,n,i,s,a,o,l,c,u,d,f,h,p){this.tagName=e,this.attributes=r,this.inputs=n,this.outputs=i,this.directives=s,this.templateAttrs=a,this.children=o,this.references=l,this.variables=c,this.isSelfClosing=u,this.sourceSpan=d,this.startSourceSpan=f,this.endSourceSpan=h,this.i18n=p}visit(e){return e.visitTemplate(this)}},as=class{selector;attributes;children;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;name="ng-content";constructor(e,r,n,i,s,a,o,l){this.selector=e,this.attributes=r,this.children=n,this.isSelfClosing=i,this.sourceSpan=s,this.startSourceSpan=a,this.endSourceSpan=o,this.i18n=l}
9visit(e){return e.visitContent(this)}},In=class{name;value;sourceSpan;keySpan;valueSpan;constructor(e,r,n,i,s){this.name=e,this.value=r,this.sourceSpan=n,this.keySpan=i,this.valueSpan=s}visit(e){return e.visitVariable(this)}},xa=class{name;value;sourceSpan;keySpan;valueSpan;constructor(e,r,n,i,s){this.name=e,this.value=r,this.sourceSpan=n,this.keySpan=i,this.valueSpan=s}visit(e){return e.visitReference(this)}},km=class{vars;placeholders;sourceSpan;i18n;constructor(e,r,n,i){this.vars=e,this.placeholders=r,this.sourceSpan=n,this.i18n=i}visit(e){return e.visitIcu(this)}},ba=class{tagNames;bindings;listeners;sourceSpan;constructor(e,r,n,i){if(this.tagNames=e,this.bindings=r,this.listeners=n,this.sourceSpan=i,e.length===0)throw new Error("HostElement must have at least one tag name.")}visit(){throw new Error("HostElement cannot be visited")}};function Ic(t,e){let r=[];if(t.visit)for(let n of e)t.visit(n);else for(let n of e){let i=n.visit(t);i&&r.push(i)}return r}var vt=class{nodes;placeholders;placeholderToMessage;meaning;description;customId;sources;id;legacyIds=[];messageString;constructor(e,r,n,i,s,a){this.nodes=e,this.placeholders=r,this.placeholderToMessage=n,this.meaning=i,this.description=s,this.customId=a,this.id=this.customId,this.messageString=P0(this.nodes),e.length?this.sources=[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:this.sources=[]}},Ns=class{value;sourceSpan;constructor(e,r){this.value=e,this.sourceSpan=r}visit(e,r){return e.visitText(this,r)}},sn=class{children;sourceSpan;constructor(e,r){this.children=e,this.sourceSpan=r}visit(e,r){return e.visitContainer(this,r)}},El=class{expression;type;cases;sourceSpan;expressionPlaceholder;constructor(e,r,n,i,s){this.expression=e,this.type=r,this.cases=n,this.sourceSpan=i,this.expressionPlaceholder=s}visit(e,r){return e.visitIcu(this,r)}},Mn=class{tag;attrs;startName;closeName;children;isVoid;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,r,n,i,s,a,o,l,c){this.tag=e,this.attrs=r,this.startName=n,this.closeName=i,this.children=s,this.isVoid=a,this.sourceSpan=o,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,r){return e.visitTagPlaceholder(this,r)}},wa=class{value;name;sourceSpan;constructor(e,r,n){this.value=e,this.name=r,this.sourceSpan=n}visit(e,r){return e.visitPlaceholder(this,r)}},os=class{value;name;sourceSpan;previousMessage;constructor(e,r,n){this.value=e,this.name=r,this.sourceSpan=n}visit(e,r){return e.visitIcuPlaceholder(this,r)}},Dn=class{name;parameters;startName;closeName;children;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,r,n,i,s,a,o,l){this.name=e,this.parameters=r,this.startName=n,this.closeName=i,this.children=s,this.sourceSpan=a,this.startSourceSpan=o,this.endSourceSpan=l}visit(e,r){return e.visitBlockPlaceholder(this,r)}};function P0(t){let e=new gu;return t.map(n=>n.visit(e)).join("")}var gu=class{visitText(e){return e.value}visitContainer(e){return e.children.map(r=>r.visit(this)).join("")}visitIcu(e){let r=Object.keys(e.cases).map(n=>`${n} {${e.cases[n].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${r.join(" ")}}`}visitTagPlaceholder(e){let r=e.children.map(n=>n.visit(this)).join("");return`{$${e.startName}}${r}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}visitBlockPlaceholder(e){let r=e.children.map(n=>n.visit(this)).join("");return`{$${e.startName}}${r}{$${e.closeName}}`}};var I0=class{visitTag(e){let r=this._serializeAttributes(e.attrs);if(e.children.length==0)return`<${e.name}${r}/>`;let n=e.children.map(i=>i.visit(this));return`<${e.name}${r}>${n.join("")}</${e.name}>`}visitText(e){return e.value}visitDeclaration(e){return`<?xml${this._serializeAttributes(e.attrs)} ?>`}_serializeAttributes(e){let r=Object.keys(e).map(n=>`${n}="${e[n]}"`).join(" ");return r.length>0?" "+r:""}visitDoctype(e){return`<!DOCTYPE ${e.rootTag} [
10${e.dtd}
11]>`}},K2=new I0;function M0(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var Pm="i18n",vu="i18n-",D0="VAR_";function Im(t){return t===Pm||t.startsWith(vu)}function L0(t){return t.attrs.some(e=>Im(e.name))}function Mm(t){return t.nodes[0]}function Ah(t={},e){let r={};return t&&Object.keys(t).length&&Object.keys(t).forEach(n=>r[Ya(n,e)]=t[n]),r}function Ya(t,e=!0){let r=M0(t);if(!e)return r;let n=r.split("_");if(n.length===1)return t.toLowerCase();let i;/^\d+$/.test(n[n.length-1])&&(i=n.pop());let s=n.shift().toLowerCase();return n.length&&(s+=n.map(a=>a.charAt(0).toUpperCase()+a.slice(1).toLowerCase()).join("")),i?`${s}_${i}`:s}var N0=/[-.]/,_h="_t",Ca="ctx",kh="rf";function Dm(t,e){let r=null;return()=>(r||(t(new Ue(_h,void 0,Wa)),r=pe(e)),r)}function Hi(t){return Array.isArray(t)?Se(t.map(Hi)):$(t,zt)}function jf(t,e){let r=Object.getOwnPropertyNames(t);return r.length===0?null:yt(r.map(n=>{let i=t[n],s,a,o,l;if(typeof i=="string")s=n,o=n,a=i,l=Hi(a);else{o=n,s=i.classPropertyName,a=i.bindingPropertyName;let c=a!==s,u=i.transformFunction!==null,d=Vs.None;if(i.isSignal&&(d|=Vs.SignalBased),u&&(d|=Vs.HasDecoratorInputTransform),e&&(c||u||d!==Vs.None)){let f=[$(d),Hi(a)];
11(c||u)&&(f.push(Hi(s)),u&&f.push(i.transformFunction)),l=Se(f)}else l=Hi(a)}return{key:o,quoted:N0.test(o),value:l}}))}var Ln=class{values=[];set(e,r){if(r){let n=this.values.find(i=>i.key===e);n?n.value=r:this.values.push({key:e,value:r,quoted:!1})}}toLiteralMap(){return yt(this.values)}};function F0(t){let e=t instanceof qr?t.name:"ng-template",r=B0(t),n=new Qi,i=Tr(e)[1];return n.setElement(i),Object.getOwnPropertyNames(r).forEach(s=>{let a=Tr(s)[1],o=r[s];n.addAttribute(a,o),s.toLowerCase()==="class"&&o.trim().split(/\s+/).forEach(c=>n.addClassName(c))}),n}function B0(t){let e={};return t instanceof Gt&&t.tagName!=="ng-template"?t.templateAttrs.forEach(r=>e[r.name]=""):(t.attributes.forEach(r=>{Im(r.name)||(e[r.name]=r.value)}),t.inputs.forEach(r=>{(r.type===ve.Property||r.type===ve.TwoWay)&&(e[r.name]="")}),t.outputs.forEach(r=>{e[r.name]=""})),e}function Wf(t,e){let r=null,n={name:t.name,type:t.type,typeArgumentCount:t.typeArgumentCount,deps:[],target:Kr.Injectable};if(t.useClass!==void 0){let o=t.useClass.expression.isEquivalent(t.type.value),l;t.deps!==void 0&&(l=t.deps),l!==void 0?r=Xn(Pe(G({},n),{delegate:t.useClass.expression,delegateDeps:l,delegateType:il.Class})):o?r=Xn(n):r={statements:[],expression:Uf(t.type.value,t.useClass.expression,e)}}else t.useFactory!==void 0?t.deps!==void 0?r=Xn(Pe(G({},n),{delegate:t.useFactory,delegateDeps:t.deps||[],delegateType:il.Function})):r={statements:[],expression:Cr([],t.useFactory.callFn([]))}:t.useValue!==void 0?r=Xn(Pe(G({},n),{expression:t.useValue.expression})):t.useExisting!==void 0?r=Xn(Pe(G({},n),{expression:te(I.inject).callFn([t.useExisting.expression])})):r={statements:[],expression:Uf(t.type.value,t.type.value,e)};let i=t.type.value,s=new Ln;return s.set("token",i),s.set("factory",r.expression),t.providedIn.expression.value!==null&&s.set("providedIn",E0(t.providedIn)),{expression:te(I.\u0275\u0275defineInjectable).callFn([s.toLiteralMap()],void 0,!0),type:R0(t),statements:r.statements}}function R0(t){return new ar(te(I.InjectableDeclaration,[ic(t.type.type,t.typeArgumentCount)]))}function Uf(t,e,r){if(t.node===e.node)return e.prop("\u0275fac");if(!r)return Xf(e);let n=te(I.resolveForwardRef).callFn([e]);return Xf(n)}function Xf(t){let e=new Qe("__ngFactoryType__",Wa);return Cr([e],t.prop("\u0275fac").callFn([pe(e.name)]))}var O0=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function $0(t,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(e!=null){let r=e[0],n=e[1];O0.forEach(i=>{if(i.test(r)||i.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}var xl=class t{start;end;static fromArray(e){return e?($0("interpolation",e),new t(e[0],e[1])):Or}constructor(e,r){this.start=e,this.end=r}},Or=new xl("{{","}}"),V0=new Set(["switch"]),tt=0,z0=8,Ph=9,ii=10,Lm=11,Nm=12,Ih=13,Fm=32,yu=33,Ta=34,Bm=35,ac=36,H0=37,bl=38,Aa=39,xr=40,dt=41,Yf=42,Rm=43,sr=44,wl=45,Hs=46,yr=47,en=58,$t=59,Yi=60,ct=61,Kt=62,Zf=63,Mh=48,G0=55,Om=57,Rn=65,q0=69,j0=70,W0=88,vs=90,kn=91,Zi=92,ei=93,U0=94,On=95,vi=97,X0=98,Y0=101,Dh=102,$m=110,Vm=114,zm=116,Hm=117,Gm=118,qm=120,Za=122,Er=123,Qf=124,mt=125,jm=160,Ni=64,Su=96;function _a(t){return t>=Ph&&t<=Fm||t==jm}function Sr(t){return Mh<=t&&t<=Om}function ls(t){return t>=vi&&t<=Za||t>=Rn&&t<=vs}function Z0(t){return t>=vi&&t<=Dh||t>=Rn&&t<=j0||Sr(t)}function Cl(t){return t===ii||t===Ih}function Jf(t){return Mh<=t&&t<=G0}function Xs(t){return t===Aa||t===Ta||t===Su}var ka=class t{file;offset;line;col;constructor(e,r,n,i){this.file=e,this.offset=r,this.line=n,this.col=i}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,i=this.offset,s=this.line,a=this.col;for(;i>0&&e<0;)if(i--,e++,r.charCodeAt(i)==ii){s--;let l=r.substring(0,i-1).lastIndexOf(String.fromCharCode(ii));a=l>0?i-l:i}else a--;for(;i<n&&e>0;){let o=r.charCodeAt(i);i++,e--,o==ii?(s++,a=0):a++}return new t(this.file,i,s,a)}getContext(e,r){let n=this.file.content,i=this.offset;if(i!=null){i>n.length-1&&(i=n.length-1);let s=i,a=0,o=0;for(;a<e&&i>0&&(i--,a++,!(n[i]==`
12`&&++o==r)););for(a=0,o=0;a<e&&s<n.length-1&&(s++,a++,!(n[s]==`
13`&&++o==r)););return{before:n.substring(i,this.offset),after:n.substring(this.offset,s+1)}}return null}},Tl=class{content;url;constructor(e,r){this.content=e,this.url=r}},se=class{start;end;fullStart;details;constructor(e,r,n=e,i=null){this.start=e,this.end=r,this.fullStart=n,this.details=i}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Tn=(function(t){return t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR",t})(Tn||{}
13),ne=class extends Error{span;msg;level;relatedError;constructor(e,r,n=Tn.ERROR,i){super(r),this.span=e,this.msg=r,this.level=n,this.relatedError=i,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Tn[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function Q0(t,e,r){let n=`in ${t} ${e} in ${r}`,i=new Tl("",n);return new se(new ka(i,-1,-1,-1),new ka(i,-1,-1,-1))}var J0=0;function K0(t){if(!t||!t.reference)return null;let e=t.reference;if(e.__anonymousType)return e.__anonymousType;if(e.__forward_ref__)return"__forward_ref__";let r=Tm(e);return r.indexOf("(")>=0?(r=`anonymous_${J0++}`,e.__anonymousType=r):r=Yn(r),r}function Yn(t){return t.replace(/\W/g,"_")}var Kf='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',Eu=class extends su{constructor(){super(!1)}visitWrappedNodeExpr(e,r){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,r){return r.print(e,`var ${e.name}`),e.value&&(r.print(e," = "),e.value.visitExpression(this,r)),r.println(e,";"),null}visitTaggedTemplateLiteralExpr(e,r){let n=e.template.elements;return e.tag.visitExpression(this,r),r.print(e,`(${Kf}(`),r.print(e,`[${n.map(i=>Qn(i.text,!1)).join(", ")}], `),r.print(e,`[${n.map(i=>Qn(i.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(i=>{r.print(e,", "),i.visitExpression(this,r)}),r.print(e,")"),null}visitTemplateLiteralExpr(e,r){r.print(e,"`");for(let n=0;n<e.elements.length;n++){e.elements[n].visitExpression(this,r);let i=n<e.expressions.length?e.expressions[n]:null;i!==null&&(r.print(i,"${"),i.visitExpression(this,r),r.print(i,"}"))}r.print(e,"`")}visitTemplateLiteralElementExpr(e,r){return r.print(e,e.rawText),null}visitFunctionExpr(e,r){return r.print(e,`function${e.name?" "+e.name:""}(`),this._visitParams(e.params,r),r.println(e,") {"),r.incIndent(),this.visitAllStatements(e.statements,r),r.decIndent(),r.print(e,"}"),null}visitArrowFunctionExpr(e,r){if(r.print(e,"("),this._visitParams(e.params,r),r.print(e,") =>"),Array.isArray(e.body))r.println(e,"{"),r.incIndent(),this.visitAllStatements(e.body,r),r.decIndent(),r.print(e,"}");else{let n=e.body instanceof Hr;n&&r.print(e,"("),e.body.visitExpression(this,r),n&&r.print(e,")")}return null}visitDeclareFunctionStmt(e,r){return r.print(e,`function ${e.name}(`),this._visitParams(e.params,r),r.println(e,") {"),r.incIndent(),this.visitAllStatements(e.statements,r),r.decIndent(),r.println(e,"}"),null}visitLocalizedString(e,r){r.print(e,`$localize(${Kf}(`);let n=[e.serializeI18nHead()];for(let i=1;i<e.messageParts.length;i++)n.push(e.serializeI18nTemplatePart(i));return r.print(e,`[${n.map(i=>Qn(i.cooked,!1)).join(", ")}], `),r.print(e,`[${n.map(i=>Qn(i.raw,!1)).join(", ")}])`),e.expressions.forEach(i=>{r.print(e,", "),i.visitExpression(this,r)}),r.print(e,")"),null}_visitParams(e,r){this.visitAllObjects(n=>r.print(null,n.name),e,r,",")}},Ao;function eS(){if(Ao===void 0){let t=Ws.trustedTypes;if(Ao=null,t)try{Ao=t.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch{}}return Ao}function tS(t){return eS()?.createScript(t)||t}function ed(...t){if(!Ws.trustedTypes)return new Function(...t);let e=t.slice(0,-1).join(","),r=t[t.length-1],n=`(function anonymous(${e}
14) { ${r}
15})`,i=Ws.eval(tS(n));return i.bind===void 0?new Function(...t):(i.toString=()=>n,i.bind(Ws))}var xu=class{evaluateStatements(e,r,n,i){let s=new bu(n),a=iu.createRoot();return r.length>0&&!rS(r[0])&&(r=[$("use strict").toStmt(),...r]),s.visitAllStatements(r,a),s.createReturnStmt(a),this.evaluateCode(e,a,s.getArgs(),i)}evaluateCode(e,r,n,i){let s=`"use strict";${r.toSource()}
16//# sourceURL=${e}`,a=[],o=[];for(let c in n)o.push(n[c]),a.push(c);if(i){let c=ed(...a.concat("return null;")).toString(),u=c.slice(0,c.indexOf("return null;")).split(`
17`).length-1;s+=`
18${r.toSourceMapGenerator(e,u).toJsComment()}`}let l=ed(...a.concat(s));return this.executeFunction(l,o)}executeFunction(e,r){return e(...r)}}
18,bu=class extends Eu{refResolver;_evalArgNames=[];_evalArgValues=[];_evalExportedVars=[];constructor(e){super(),this.refResolver=e}createReturnStmt(e){new nt(new Hr(this._evalExportedVars.map(n=>new Ki(n,pe(n),!1)))).visitStatement(this,e)}getArgs(){let e={};for(let r=0;r<this._evalArgNames.length;r++)e[this._evalArgNames[r]]=this._evalArgValues[r];return e}visitExternalExpr(e,r){return this._emitReferenceToExternal(e,this.refResolver.resolveExternalReference(e.value),r),null}visitWrappedNodeExpr(e,r){return this._emitReferenceToExternal(e,e.node,r),null}visitDeclareVarStmt(e,r){return e.hasModifier(rt.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareVarStmt(e,r)}visitDeclareFunctionStmt(e,r){return e.hasModifier(rt.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareFunctionStmt(e,r)}_emitReferenceToExternal(e,r,n){let i=this._evalArgValues.indexOf(r);if(i===-1){i=this._evalArgValues.length,this._evalArgValues.push(r);let s=K0({reference:r})||"val";this._evalArgNames.push(`jit_${s}_${i}`)}n.print(e,this._evalArgNames[i])}};function rS(t){return t.isEquivalent($("use strict").toStmt())}function td(t){let e=new Ln;t.providers!==null&&e.set("providers",t.providers),t.imports.length>0&&e.set("imports",Se(t.imports));let r=te(I.defineInjector).callFn([e.toLiteralMap()],void 0,!0),n=nS(t);return{expression:r,type:n,statements:[]}}function nS(t){return new ar(te(I.InjectorDeclaration,[new ar(t.type.type)]))}var wu=class{context;constructor(e){this.context=e}resolveExternalReference(e){if(e.moduleName!=="@angular/core")throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}},Al=(function(t){return t[t.Inline=0]="Inline",t[t.SideEffect=1]="SideEffect",t[t.Omit=2]="Omit",t})(Al||{}),An=(function(t){return t[t.Global=0]="Global",t[t.Local=1]="Local",t})(An||{});function iS(t){let e=[],r=new Ln;if(r.set("type",t.type.value),t.kind===An.Global&&t.bootstrap.length>0&&r.set("bootstrap",Jn(t.bootstrap,t.containsForwardDecls)),t.selectorScopeMode===Al.Inline)t.declarations.length>0&&r.set("declarations",Jn(t.declarations,t.containsForwardDecls)),t.imports.length>0&&r.set("imports",Jn(t.imports,t.containsForwardDecls)),t.exports.length>0&&r.set("exports",Jn(t.exports,t.containsForwardDecls));else if(t.selectorScopeMode===Al.SideEffect){let s=oS(t);s!==null&&e.push(s)}
18t.schemas!==null&&t.schemas.length>0&&r.set("schemas",Se(t.schemas.map(s=>s.value))),t.id!==null&&(r.set("id",t.id),e.push(te(I.registerNgModuleType).callFn([t.type.value,t.id]).toStmt()));let n=te(I.defineNgModule).callFn([r.toLiteralMap()],void 0,!0),i=aS(t);return{expression:n,type:i,statements:e}}function sS(t){let e=new Ln;return e.set("type",new de(t.type)),t.bootstrap!==void 0&&e.set("bootstrap",new de(t.bootstrap)),t.declarations!==void 0&&e.set("declarations",new de(t.declarations)),t.imports!==void 0&&e.set("imports",new de(t.imports)),t.exports!==void 0&&e.set("exports",new de(t.exports)),t.schemas!==void 0&&e.set("schemas",new de(t.schemas)),t.id!==void 0&&e.set("id",new de(t.id)),te(I.defineNgModule).callFn([e.toLiteralMap()])}function aS(t){if(t.kind===An.Local)return new ar(t.type.value);let{type:e,declarations:r,exports:n,imports:i,includeImportTypes:s,publicDeclarationTypes:a}=t;return new ar(te(I.NgModuleDeclaration,[new ar(e.type),a===null?Mc(r):lS(a),s?Mc(i):Vr,Mc(n)]))}function oS(t){let e=new Ln;if(t.kind===An.Global?t.declarations.length>0&&e.set("declarations",Jn(t.declarations,t.containsForwardDecls)):t.declarationsExpression&&e.set("declarations",t.declarationsExpression),t.kind===An.Global?t.imports.length>0&&e.set("imports",Jn(t.imports,t.containsForwardDecls)):t.importsExpression&&e.set("imports",t.importsExpression),t.kind===An.Global?t.exports.length>0&&e.set("exports",Jn(t.exports,t.containsForwardDecls)):t.exportsExpression&&e.set("exports",t.exportsExpression),t.kind===An.Local&&t.bootstrapExpression&&e.set("bootstrap",t.bootstrapExpression),Object.keys(e.values).length===0)return null;let r=new Pt(te(I.setNgModuleScope),[t.type.value,e.toLiteralMap()]),n=y0(r),i=new _n([],[n.toStmt()]);return new Pt(i,[]).toStmt()}function Mc(t){let e=t.map(r=>Ua(r.type));return t.length>0?it(Se(e)):Vr}function lS(t){let e=t.map(r=>Ua(r));return t.length>0?it(Se(e)):Vr}function rd(t){let e=[];e.push({key:"name",value:$(t.pipeName??t.name),quoted:!1}),e.push({key:"type",value:t.type.value,quoted:!1}),e.push({key:"pure",value:$(t.pure),quoted:!1}),t.isStandalone===!1&&e.push({key:"standalone",value:$(!1),quoted:!1});let r=te(I.definePipe).callFn([yt(e)],void 0,!0),n=cS(t);return{expression:r,type:n,statements:[]}}function cS(t){return new ar(te(I.PipeDeclaration,[ic(t.type.type,t.typeArgumentCount),new ar(new st(t.pipeName)),new ar(new st(t.isStandalone))]))}var cs=(function(t){return t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule",t})(cs||{}),uS=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]),hS=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],Cu=class{shimCssText(e,r,n=""){let i=[];e=e.replace(CS,o=>{if(o.match(TS))i.push(o);else{let l=o.match(wS);i.push((l?.join("")??"")+`
19`)}return Lh}),e=this._insertDirectives(e);let s=this._scopeCssText(e,r,n),a=0;return s.replace(AS,()=>i[a++])}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,r){let n=new Set,i=_o(e,s=>this._scopeLocalKeyframeDeclarations(s,r,n));return _o(i,s=>this._scopeAnimationRule(s,r,n))}_scopeLocalKeyframeDeclarations(e,r,n){return Pe(G({},e),{selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(i,s,a,o,l)=>(n.add(sd(o,a)),`${s}${a}${r}_${o}${a}${l}`))})}_scopeAnimationKeyframe(e,r,n){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(i,s,a,o,l)=>(o=`${n.has(sd(o,a))?r+"_":""}${o}`,`${s}${a}${o}${a}${l}`))}_animationDeclarationKeyframesRe=/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;_scopeAnimationRule(e,r,n){let i=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(s,a,o)=>a+o.replace(this._animationDeclarationKeyframesRe,(l,c,u="",d,f)=>d?`${c}${this._scopeAnimationKeyframe(`${u}${d}${u}`,r,n)}
19`:uS.has(f)?l:`${c}${this._scopeAnimationKeyframe(f,r,n)}`));return i=i.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(s,a,o)=>`${a}${o.split(",").map(l=>this._scopeAnimationKeyframe(l,r,n)).join(",")}`),Pe(G({},e),{content:i})}_insertPolyfillDirectivesInCssText(e){return e.replace(fS,function(...r){return r[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(dS,(...r)=>{let n=r[0].replace(r[1],"").replace(r[2],"");return r[4]+n})}_scopeCssText(e,r,n){let i=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),r&&(e=this._scopeKeyframesRelatedCss(e,r),e=this._scopeSelectors(e,r,n)),e=e+`
20`+i,e.trim()}_extractUnscopedRulesFromCssText(e){let r="",n;for(nd.lastIndex=0;(n=nd.exec(e))!==null;){let i=n[0].replace(n[2],"").replace(n[1],n[4]);r+=i+`
21
22`}return r}_convertColonHost(e){return e.replace(mS,(r,n,i)=>{if(n){let s=[],a=n.split(",").map(o=>o.trim());for(let o of a){if(!o)break;let l=bn+o.replace(_l,"")+i;s.push(l)}return s.join(",")}else return bn+i})}_convertColonHostContext(e){let r=e.length,n=0,i=0,s="";for(let a=0;a<r;a++){let o=e[a];if(o===","&&n===0){s+=this._convertColonHostContextInSelectorPart(e.slice(i,a))+",",i=a+1;continue}if(a===r-1){s+=this._convertColonHostContextInSelectorPart(e.slice(i));break}o==="("?n++:o===")"&&n--}return s}_convertColonHostContextInSelectorPart(e){return e.replace(gS,(r,n)=>{let i=[[]],s;for(;s=vS.exec(r);){let a=(s[1]??"").trim().split(",").map(l=>l.trim()).filter(l=>l!==""),o=i.length;RS(i,a.length);for(let l=0;l<a.length;l++)for(let c=0;c<o;c++)i[c+l*o].push(a[l]);r=s[2]}return i.map(a=>BS(a,r,n)).join(", ")})}_convertShadowDOMSelectors(e){return SS.reduce((r,n)=>r.replace(n," "),e)}_scopeSelectors(e,r,n){return _o(e,i=>{let s=i.selector,a=i.content;return i.selector[0]!=="@"?s=this._scopeSelector({selector:s,scopeSelector:r,hostSelector:n,isParentSelector:!0}):hS.some(o=>i.selector.startsWith(o))?a=this._scopeSelectors(i.content,r,n):(i.selector.startsWith("@font-face")||i.selector.startsWith("@page"))&&(a=this._stripScopingSelectors(i.content)),new Pa(s,a)})}_stripScopingSelectors(e){return _o(e,r=>{let n=r.selector.replace(id," ").replace(Dc," ");return new Pa(n,r.content)})}_safeSelector;_shouldScopeIndicator;_scopeSelector({selector:e,scopeSelector:r,hostSelector:n,isParentSelector:i=!1}){let s=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/;return e.split(s).map(a=>a.split(id)).map(a=>{let[o,...l]=a;return[(u=>this._selectorNeedsScoping(u,r)?this._applySelectorScope({selector:u,scopeSelector:r,hostSelector:n,isParentSelector:i}):u)(o),...l].join(" ")}).join(", ")}_selectorNeedsScoping(e,r){return!this._makeScopeMatcher(r).test(e)}_makeScopeMatcher(e){let r=/\[/g,n=/\]/g;return e=e.replace(r,"\\[").replace(n,"\\]"),new RegExp("^("+e+")"+ES,"m")}_applySimpleSelectorScope(e,r,n){if(Gi.lastIndex=0,Gi.test(e)){let i=`[${n}]`,s=e;for(;s.match(Dc);)s=s.replace(Dc,(a,o)=>o.replace(/([^:\)]*)(:*)(.*)/,(l,c,u,d)=>c+i+u+d));return s.replace(Gi,i)}return r+" "+e}_applySelectorScope({selector:e,scopeSelector:r,hostSelector:n,isParentSelector:i}){let s=/\[is=([^\]]*)\]/g;r=r.replace(s,(g,...E)=>E[0]);let a=`[${r}]`,o=g=>{let E=g.trim();if(!E)return g;if(g.includes(bn)){if(E=this._applySimpleSelectorScope(g,r,n),!g.match(yS)){let[m,v,y,S]=E.match(/([^:]*)(:*)([\s\S]*)/);E=v+a+y+S}}else{let m=g.replace(Gi,"");if(m.length>0){let v=m.match(/([^:]*)(:*)([\s\S]*)/);v&&(E=v[1]+a+v[2]+v[3])}}return E},l=g=>{let E="",m=[],v;for(;(v=Fs.exec(g))!==null;){let y=1,S=Fs.lastIndex;for(;S<g.length;){let w=g[S];if(S++,w==="("){y++;continue}if(w===")"){if(y--,y===0)break;continue}}m.push(`${v[0]}${g.slice(Fs.lastIndex,S)}`),Fs.lastIndex=S}return m.join("")===g?E=m.map(y=>{let[S]=y.match(Fs)??[],w=y.slice(S?.length,-1);w.includes(bn)&&(this._shouldScopeIndicator=!0);let A=this._scopeSelector({selector:w,scopeSelector:r,hostSelector:n});return`${S}${A})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||g.includes(bn),E=this._shouldScopeIndicator?o(g):g),E};i&&(this._safeSelector=new Tu(e),e=this._safeSelector.content());let c="",u=0,d,f=/( |>|\+|~(?!=))(?!([^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\)))\s*/g,h=e.includes(bn);for((i||this._shouldScopeIndicator)&&(this._shouldScopeIndicator=!h);(d=f.exec(e))!==null;){let g=d[1],E=e.slice(u,d.index);if(E.match(/__esc-ph-(\d+)__/)&&e[d.index+1]?.match(/[a-fA-F\d]/))continue;let m=l(E);c+=`${m} ${g} `,u=f.lastIndex}let p=e.substring(u);return c+=l(p),this._safeSelector.restore(c)}_insertPolyfillHostInCssText(e){return e.replace(bS,Wm).replace(xS,_l)}},Tu=class{placeholders=[];index=0;_content;constructor(e){e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=e.replace(/(\\.)/g,(r,n)=>{let i=`__esc-ph-${this.index}__`;return this.placeholders.push(n),this.index++,i}),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(r,n,i)=>{let s=`__ph-${this.index}__`;return this.placeholders.push(i),this.index++,n+s})}restore(e){return e.replace(/__(?:ph|esc-ph)-(\d+)__/g,(r,n)=>this.placeholders[+n])}content(){return this._content}_escapeRegexMatches(e,r){return e.replace(r,(n,i)=>{let s=`__ph-${this.index}__`;return this.placeholders.push(i),this.index++,s})}},pS="(:(where|is)\\()?",Fs=/:(where|is)\(/gi,fS=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,dS=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,nd=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,_l="-shadowcsshost",Wm="-shadowcsscontext",Um="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))",mS=new RegExp(_l+Um+"?([^,{]*)","gim"),Xm=Wm+Um+"?([^{]*)",gS=new RegExp(`${pS}(${Xm})`,"gim"),vS=new RegExp(Xm,"im"),bn=_l+"-no-combinator",yS=new RegExp(`${bn}
22(?![^(]*\\))`,"g"),Dc=/-shadowcsshost-no-combinator([^\s,]*)/,SS=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],id=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,ES="([>\\s~+[.,{:][\\s\\S]*)?$",Gi=/-shadowcsshost/gim,xS=/:host/gim,bS=/:host-context/gim,wS=/\r?\n/g,CS=/\/\*[\s\S]*?\*\//g,TS=/\/\*\s*#\s*source(Mapping)?URL=/g,Lh="%COMMENT%",AS=new RegExp(Lh,"g"),Lc="%BLOCK%",_S=new RegExp(`(\\s*(?:${Lh}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),kS=new Map([["{","}"]]),Ym="%COMMA_IN_PLACEHOLDER%",Zm="%SEMI_IN_PLACEHOLDER%",Qm="%COLON_IN_PLACEHOLDER%",PS=new RegExp(Ym,"g"),IS=new RegExp(Zm,"g"),MS=new RegExp(Qm,"g"),Pa=class{selector;content;constructor(e,r){this.selector=e,this.content=r}};function _o(t,e){let r=NS(t),n=DS(r,kS,Lc),i=0,s=n.escapedString.replace(_S,(...a)=>{let o=a[2],l="",c=a[4],u="";c&&c.startsWith("{"+Lc)&&(l=n.blocks[i++],c=c.substring(Lc.length+1),u="{");let d=e(new Pa(o,l));return`${a[1]}${d.selector}${a[3]}${u}${d.content}${c}`});return FS(s)}var Au=class{escapedString;blocks;constructor(e,r){this.escapedString=e,this.blocks=r}};function DS(t,e,r){let n=[],i=[],s=0,a=0,o=-1,l,c;for(let u=0;u<t.length;u++){let d=t[u];d==="\\"?u++:d===c?(s--,s===0&&(i.push(t.substring(o,u)),n.push(r),a=u,o=-1,l=c=void 0)):d===l?s++:s===0&&e.has(d)&&(l=d,c=e.get(d),s=1,o=u+1,n.push(t.substring(a,o)))}return o!==-1?(i.push(t.substring(o)),n.push(r)):n.push(t.substring(a)),new Au(n.join(""),i)}var LS={";":Zm,",":Ym,":":Qm};function NS(t){let e=t,r=null;for(let n=0;n<e.length;n++){let i=e[n];if(i==="\\")n++;else if(r!==null)if(i===r)r=null;else{let s=LS[i];s&&(e=`${e.substr(0,n)}${s}${e.substr(n+1)}`,n+=s.length-1)}else(i==="'"||i==='"')&&(r=i)}return e}function FS(t){let e=t.replace(PS,",");return e=e.replace(IS,";"),e=e.replace(MS,":"),e}function sd(t,e){return e?t.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):t}function BS(t,e,r=""){let n=bn;Gi.lastIndex=0;let i=Gi.test(e);if(t.length===0)return n+e;let s=[t.pop()||""];for(;t.length>0;){let a=s.length,o=t.pop();for(let l=0;l<a;l++){let c=s[l];s[a*2+l]=c+" "+o,s[a+l]=o+" "+c,s[l]=o+c}}return s.map(a=>i?`${r}${a}${e}`:`${r}${a}${n}${e}, ${r}${a} ${n}${e}`).join(",")}function RS(t,e){let r=t.length;for(let n=1;n<e;n++)for(let i=0;i<r;i++)t[i+n*r]=t[i].slice(0)}var b=(function(t){return t[t.ListEnd=0]="ListEnd",t[t.Statement=1]="Statement",t[t.Variable=2]="Variable",t[t.ElementStart=3]="ElementStart",t[t.Element=4]="Element",t[t.Template=5]="Template",t[t.ElementEnd=6]="ElementEnd",t[t.ContainerStart=7]="ContainerStart",t[t.Container=8]="Container",t[t.ContainerEnd=9]="ContainerEnd",t[t.DisableBindings=10]="DisableBindings",t[t.ConditionalCreate=11]="ConditionalCreate",t[t.ConditionalBranchCreate=12]="ConditionalBranchCreate",t[t.Conditional=13]="Conditional",t[t.EnableBindings=14]="EnableBindings",t[t.Text=15]="Text",t[t.Listener=16]="Listener",t[t.InterpolateText=17]="InterpolateText",t[t.Binding=18]="Binding",t[t.Property=19]="Property",t[t.StyleProp=20]="StyleProp",t[t.ClassProp=21]="ClassProp",t[t.StyleMap=22]="StyleMap",t[t.ClassMap=23]="ClassMap",t[t.Advance=24]="Advance",t[t.Pipe=25]="Pipe",t[t.Attribute=26]="Attribute",t[t.ExtractedAttribute=27]="ExtractedAttribute",t[t.Defer=28]="Defer",t[t.DeferOn=29]="DeferOn",t[t.DeferWhen=30]="DeferWhen",t[t.I18nMessage=31]="I18nMessage",t[t.DomProperty=32]="DomProperty",t[t.Namespace=33]="Namespace",t[t.ProjectionDef=34]="ProjectionDef",t[t.Projection=35]="Projection",t[t.RepeaterCreate=36]="RepeaterCreate",t[t.Repeater=37]="Repeater",t[t.TwoWayProperty=38]="TwoWayProperty",t[t.TwoWayListener=39]="TwoWayListener",t[t.DeclareLet=40]="DeclareLet",t[t.StoreLet=41]="StoreLet",t[t.I18nStart=42]="I18nStart",t[t.I18n=43]="I18n",t[t.I18nEnd=44]="I18nEnd",t[t.I18nExpression=45]="I18nExpression",t[t.I18nApply=46]="I18nApply",t[t.IcuStart=47]="IcuStart",t[t.IcuEnd=48]="IcuEnd",t[t.IcuPlaceholder=49]="IcuPlaceholder",t[t.I18nContext=50]="I18nContext",t[t.I18nAttributes=51]="I18nAttributes",t[t.SourceLocation=52]="SourceLocation",t[t.Animation=53]="Animation",t[t.AnimationString=54]="AnimationString",t[t.AnimationBinding=55]="AnimationBinding",t[t.AnimationListener=56]="AnimationListener",t})(b||{}),re=(function(t){return t[t.LexicalRead=0]="LexicalRead",t[t.Context=1]="Context",t[t.TrackContext=2]="TrackContext",t[t.ReadVariable=3]="ReadVariable",t[t.NextContext=4]="NextContext",t[t.Reference=5]="Reference",t[t.StoreLet=6]="StoreLet",t[t.ContextLetReference=7]="ContextLetReference",t[t.GetCurrentView=8]="GetCurrentView",t[t.RestoreView=9]="RestoreView",t[t.ResetView=10]="ResetView",t[t.PureFunctionExpr=11]="PureFunctionExpr",t[t.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",t[t.PipeBinding=13]="PipeBinding",t[t.PipeBindingVariadic=14]="PipeBindingVariadic",t[t.SafePropertyRead=15]="SafePropertyRead",t[t.SafeKeyedRead=16]="SafeKeyedRead",t[t.SafeInvokeFunction=17]="SafeInvokeFunction",t[t.SafeTernaryExpr=18]="SafeTernaryExpr",t[t.EmptyExpr=19]="EmptyExpr",t[t.AssignTemporaryExpr=20]="AssignTemporaryExpr",t[t.ReadTemporaryExpr=21]="ReadTemporaryExpr",t[t.SlotLiteralExpr=22]="SlotLiteralExpr",t[t.ConditionalCase=23]="ConditionalCase",t[t.ConstCollected=24]="ConstCollected",t[t.TwoWayBindingSet=25]="TwoWayBindingSet",t})(re||{}),rr=(function(t){return t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline",t})(rr||{}),Ze=(function(t){return t[t.Context=0]="Context",t[t.Identifier=1]="Identifier",t[t.SavedView=2]="SavedView",t[t.Alias=3]="Alias",t})(Ze||{}),Wt=(function(t){return t[t.Normal=0]="Normal",t[t.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder",t})(Wt||{}),K=(function(t){return t[t.Attribute=0]="Attribute",t[t.ClassName=1]="ClassName",t[t.StyleProperty=2]="StyleProperty",t[t.Property=3]="Property",t[t.Template=4]="Template",t[t.I18n=5]="I18n",t[t.LegacyAnimation=6]="LegacyAnimation",t[t.TwoWayProperty=7]="TwoWayProperty",t[t.Animation=8]="Animation",t})(K||{}),Ia=(function(t){return t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing",t})(Ia||{}),ys=(function(t){return t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute",t})(ys||{}),Te=(function(t){return t[t.None=0]="None",t[t.ElementTag=1]="ElementTag",t[t.TemplateTag=2]="TemplateTag",t[t.OpenTag=4]="OpenTag",t[t.CloseTag=8]="CloseTag",t[t.ExpressionIndex=16]="ExpressionIndex",t})(Te||{}),ut=(function(t){return t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math",t})(ut||{}),be=(function(t){return t[t.Idle=0]="Idle",t[t.Immediate=1]="Immediate",t[t.Timer=2]="Timer",t[t.Hover=3]="Hover",t[t.Interaction=4]="Interaction",t[t.Viewport=5]="Viewport",t[t.Never=6]="Never",t})(be||{}),ti=(function(t){return t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr",t})(ti||{}
22),kt=(function(t){return t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block",t})(kt||{}),Jm=Symbol("ConsumesSlot"),Nh=Symbol("DependsOnSlotContext"),Ss=Symbol("ConsumesVars"),oc=Symbol("UsesVarOffset"),hr={[Jm]:!0,numSlotsUsed:1},Ut={[Nh]:!0},It={[Ss]:!0};function Es(t){return t[Jm]===!0}function Ma(t){return t[Nh]===!0}function Nc(t){return t[Ss]===!0}function ad(t){return t[oc]===!0}function ur(t){return G({kind:b.Statement,statement:t},ae)}function Cn(t,e,r,n){return G({kind:b.Variable,xref:t,variable:e,initializer:r,flags:n},ae)}var ae={debugListId:null,prev:null,next:null};function OS(t,e,r){return G(G(G({kind:b.InterpolateText,target:t,interpolation:e,sourceSpan:r},Ut),It),ae)}var Be=class{strings;expressions;i18nPlaceholders;constructor(e,r,n){if(this.strings=e,this.expressions=r,this.i18nPlaceholders=n,n.length!==0&&n.length!==r.length)throw new Error(`Expected ${r.length} placeholders to match interpolation expression count, but got ${n.length}`)}};function yi(t,e,r,n,i,s,a,o,l,c,u){return G({kind:b.Binding,bindingKind:e,target:t,name:r,expression:n,unit:i,securityContext:s,isTextAttribute:a,isStructuralTemplateAttribute:o,templateKind:l,i18nContext:null,i18nMessage:c,sourceSpan:u},ae)}function $S(t,e,r,n,i,s,a,o,l,c){return G(G(G({kind:b.Property,target:t,name:e,expression:r,bindingKind:n,securityContext:i,sanitizer:null,isStructuralTemplateAttribute:s,templateKind:a,i18nContext:o,i18nMessage:l,sourceSpan:c},Ut),It),ae)}function VS(t,e,r,n,i,s,a,o,l){return G(G(G({kind:b.TwoWayProperty,target:t,name:e,expression:r,securityContext:n,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:s,i18nContext:a,i18nMessage:o,sourceSpan:l},Ut),It),ae)}function zS(t,e,r,n,i){return G(G(G({kind:b.StyleProp,target:t,name:e,expression:r,unit:n,sourceSpan:i},Ut),It),ae)}function HS(t,e,r,n){return G(G(G({kind:b.ClassProp,target:t,name:e,expression:r,sourceSpan:n},Ut),It),ae)}function GS(t,e,r){return G(G(G({kind:b.StyleMap,target:t,expression:e,sourceSpan:r},Ut),It),ae)}function qS(t,e,r){return G(G(G({kind:b.ClassMap,target:t,expression:e,sourceSpan:r},Ut),It),ae)}function od(t,e,r,n,i,s,a,o,l,c){return G(G(G({kind:b.Attribute,target:t,namespace:e,name:r,expression:n,securityContext:i,sanitizer:null,isTextAttribute:s,isStructuralTemplateAttribute:a,templateKind:o,i18nContext:null,i18nMessage:l,sourceSpan:c},Ut),It),ae)}function jS(t,e){return G({kind:b.Advance,delta:t,sourceSpan:e},ae)}function Km(t,e,r,n){return G(G(G({kind:b.Conditional,target:t,test:e,conditions:r,processed:null,sourceSpan:n,contextValue:null},ae),Ut),It)}function WS(t,e,r,n){return G(G({kind:b.Repeater,target:t,targetSlot:e,collection:r,sourceSpan:n},ae),Ut)}function ld(t,e,r,n,i,s,a){return G({kind:b.AnimationBinding,name:t,target:e,animationKind:r,expression:n,i18nMessage:null,securityContext:i,sanitizer:null,sourceSpan:s,animationBindingKind:a},ae)}function US(t,e,r,n){return G(G(G({kind:b.DeferWhen,target:t,expr:e,modifier:r,sourceSpan:n},ae),Ut),It)}function eg(t,e,r,n,i,s,a,o,l,c,u){return G(G(G({kind:b.I18nExpression,context:t,target:e,i18nOwner:r,handle:n,expression:i,icuPlaceholder:s,i18nPlaceholder:a,resolutionTime:o,usage:l,name:c,sourceSpan:u},ae),It),Ut)}function XS(t,e,r){return G({kind:b.I18nApply,owner:t,handle:e,sourceSpan:r},ae)}function YS(t,e,r,n){return G(G(G({kind:b.StoreLet,target:t,declaredName:e,value:r,sourceSpan:n},Ut),It),ae)}function Wr(t){return t instanceof Ce}var Ce=class extends Ee{constructor(e=null){super(null,e)}},et=class t extends Ce{name;kind=re.LexicalRead;constructor(e){super(),this.name=e}visitExpression(e,r){}isEquivalent(e){return this.name===e.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.name)}},kl=class t extends Ce{target;targetSlot;offset;kind=re.Reference;constructor(e,r,n){super(),this.target=e,this.targetSlot=r,this.offset=n}visitExpression(){}isEquivalent(e){return e instanceof t&&e.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot,this.offset)}},Da=class t extends Ce{target;value;sourceSpan;kind=re.StoreLet;[Ss]=!0;[Nh]=!0;constructor(e,r,n){super(),this.target=e,this.value=r,this.sourceSpan=n}visitExpression(){}isEquivalent(e){return e instanceof t&&e.target===this.target&&e.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(e,r){this.value=Q(this.value,e,r)}clone(){return new t(this.target,this.value,this.sourceSpan)}},La=class t extends Ce{target;targetSlot;kind=re.ContextLetReference;constructor(e,r){super(),this.target=e,this.targetSlot=r}visitExpression(){}isEquivalent(e){return e instanceof t&&e.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot)}},Nn=class t extends Ce{view;kind=re.Context;constructor(e){super(),this.view=e}visitExpression(){}isEquivalent(e){return e instanceof t&&e.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},_u=class t extends Ce{view;kind=re.TrackContext;constructor(e){super(),this.view=e}visitExpression(){}isEquivalent(e){return e instanceof t&&e.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},Pl=class t extends Ce{kind=re.NextContext;steps=1;constructor(){super()}visitExpression(){}isEquivalent(e){return e instanceof t&&e.steps===this.steps}isConstant(){return!1}transformInternalExpressions(){}clone(){let e=new t;return e.steps=this.steps,e}},ku=class t extends Ce{kind=re.GetCurrentView;constructor(){super()}visitExpression(){}isEquivalent(e){return e instanceof t}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t}},Il=class t extends Ce{view;kind=re.RestoreView;constructor(e){super(),this.view=e}visitExpression(e,r){typeof this.view!="number"&&this.view.visitExpression(e,r)}isEquivalent(e){return!(e instanceof t)||typeof e.view!=typeof this.view?!1:typeof this.view=="number"?this.view===e.view:this.view.isEquivalent(e.view)}isConstant(){return!1}transformInternalExpressions(e,r){typeof this.view!="number"&&(this.view=Q(this.view,e,r))}clone(){return new t(this.view instanceof Ee?this.view.clone():this.view)}},Pu=class t extends Ce{expr;kind=re.ResetView;constructor(e){super(),this.expr=e}visitExpression(e,r){this.expr.visitExpression(e,r)}isEquivalent(e){return e instanceof t&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}transformInternalExpressions(e,r){this.expr=Q(this.expr,e,r)}clone(){return new t(this.expr.clone())}},Ml=class t extends Ce{target;value;kind=re.TwoWayBindingSet;constructor(e,r){super(),this.target=e,this.value=r}visitExpression(e,r){this.target.visitExpression(e,r),this.value.visitExpression(e,r)}isEquivalent(e){return this.target.isEquivalent(e.target)&&this.value.isEquivalent(e.value)}isConstant(){return!1}transformInternalExpressions(e,r){this.target=Q(this.target,e,r),this.value=Q(this.value,e,r)}clone(){return new t(this.target,this.value)}},an=class t extends Ce{xref;kind=re.ReadVariable;name=null;constructor(e){super(),this.xref=e}visitExpression(){}isEquivalent(e){return e instanceof t&&e.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){let e=new t(this.xref);return e.name=this.name,e}},Si=class t extends Ce{kind=re.PureFunctionExpr;[Ss]=!0;[oc]=!0;varOffset=null;body;args;fn=null;constructor(e,r){super(),this.body=e,this.args=r}visitExpression(e,r){this.body?.visitExpression(e,r);for(let n of this.args)n.visitExpression(e,r)}isEquivalent(e){return!(e instanceof t)||e.args.length!==this.args.length?!1:e.body!==null&&this.body!==null&&e.body.isEquivalent(this.body)&&e.args.every((r,n)=>r.isEquivalent(this.args[n]))}isConstant(){return!1}transformInternalExpressions(e,r){this.body!==null?this.body=Q(this.body,e,r|ye.InChildOperation):this.fn!==null&&(this.fn=Q(this.fn,e,r));for(let n=0;n<this.args.length;n++)this.args[n]=Q(this.args[n],e,r)}clone(){let e=new t(this.body?.clone()??null,this.args.map(r=>r.clone()));
22return e.fn=this.fn?.clone()??null,e.varOffset=this.varOffset,e}},us=class t extends Ce{index;kind=re.PureFunctionParameterExpr;constructor(e){super(),this.index=e}visitExpression(){}isEquivalent(e){return e instanceof t&&e.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new t(this.index)}},Ei=class t extends Ce{target;targetSlot;name;args;kind=re.PipeBinding;[Ss]=!0;[oc]=!0;varOffset=null;constructor(e,r,n,i){super(),this.target=e,this.targetSlot=r,this.name=n,this.args=i}visitExpression(e,r){for(let n of this.args)n.visitExpression(e,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,r){for(let n=0;n<this.args.length;n++)this.args[n]=Q(this.args[n],e,r)}clone(){let e=new t(this.target,this.targetSlot,this.name,this.args.map(r=>r.clone()));return e.varOffset=this.varOffset,e}},Na=class t extends Ce{target;targetSlot;name;args;numArgs;kind=re.PipeBindingVariadic;[Ss]=!0;[oc]=!0;varOffset=null;constructor(e,r,n,i,s){super(),this.target=e,this.targetSlot=r,this.name=n,this.args=i,this.numArgs=s}visitExpression(e,r){this.args.visitExpression(e,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,r){this.args=Q(this.args,e,r)}clone(){let e=new t(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}},hs=class t extends Ce{receiver;name;kind=re.SafePropertyRead;constructor(e,r){super(),this.receiver=e,this.name=r}get index(){return this.name}visitExpression(e,r){this.receiver.visitExpression(e,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,r){this.receiver=Q(this.receiver,e,r)}clone(){return new t(this.receiver.clone(),this.name)}},ps=class t extends Ce{receiver;index;kind=re.SafeKeyedRead;constructor(e,r,n){super(n),this.receiver=e,this.index=r}visitExpression(e,r){this.receiver.visitExpression(e,r),this.index.visitExpression(e,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,r){this.receiver=Q(this.receiver,e,r),this.index=Q(this.index,e,r)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},xi=class t extends Ce{receiver;args;kind=re.SafeInvokeFunction;constructor(e,r){super(),this.receiver=e,this.args=r}visitExpression(e,r){this.receiver.visitExpression(e,r);for(let n of this.args)n.visitExpression(e,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,r){this.receiver=Q(this.receiver,e,r);for(let n=0;n<this.args.length;n++)this.args[n]=Q(this.args[n],e,r)}clone(){return new t(this.receiver.clone(),this.args.map(e=>e.clone()))}},fs=class t extends Ce{guard;expr;kind=re.SafeTernaryExpr;constructor(e,r){super(),this.guard=e,this.expr=r}visitExpression(e,r){this.guard.visitExpression(e,r),this.expr.visitExpression(e,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,r){this.guard=Q(this.guard,e,r),this.expr=Q(this.expr,e,r)}clone(){return new t(this.guard.clone(),this.expr.clone())}},Fa=class t extends Ce{kind=re.EmptyExpr;visitExpression(e,r){}isEquivalent(e){return e instanceof t}isConstant(){return!0}clone(){return new t}transformInternalExpressions(){}},Ur=class t extends Ce{expr;xref;kind=re.AssignTemporaryExpr;name=null;constructor(e,r){super(),this.expr=e,this.xref=r}visitExpression(e,r){this.expr.visitExpression(e,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,r){this.expr=Q(this.expr,e,r)}clone(){let e=new t(this.expr.clone(),this.xref);return e.name=this.name,e}},Fn=class t extends Ce{xref;kind=re.ReadTemporaryExpr;name=null;constructor(e){super(),this.xref=e}visitExpression(e,r){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(e,r){}clone(){let e=new t(this.xref);return e.name=this.name,e}},Dl=class t extends Ce{slot;kind=re.SlotLiteralExpr;constructor(e){super(),this.slot=e}visitExpression(e,r){}isEquivalent(e){return e instanceof t&&e.slot===this.slot}isConstant(){return!0}clone(){return new t(this.slot)}transformInternalExpressions(){}},Ll=class t extends Ce{expr;target;targetSlot;
22alias;kind=re.ConditionalCase;constructor(e,r,n,i=null){super(),this.expr=e,this.target=r,this.targetSlot=n,this.alias=i}visitExpression(e,r){this.expr!==null&&this.expr.visitExpression(e,r)}isEquivalent(e){return e instanceof t&&e.expr===this.expr}isConstant(){return!0}clone(){return new t(this.expr,this.target,this.targetSlot)}transformInternalExpressions(e,r){this.expr!==null&&(this.expr=Q(this.expr,e,r))}},Ba=class t extends Ce{expr;kind=re.ConstCollected;constructor(e){super(),this.expr=e}transformInternalExpressions(e,r){this.expr=e(this.expr,r)}visitExpression(e,r){this.expr.visitExpression(e,r)}isEquivalent(e){return e instanceof t?this.expr.isEquivalent(e.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr)}};function Je(t,e){ze(t,(r,n)=>(e(r,n),r),ye.None)}var ye=(function(t){return t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation",t})(ye||{});function Fc(t,e,r){for(let n=0;n<t.expressions.length;n++)t.expressions[n]=Q(t.expressions[n],e,r)}function ze(t,e,r){switch(t.kind){case b.StyleProp:case b.StyleMap:case b.ClassProp:case b.ClassMap:case b.AnimationString:case b.AnimationBinding:case b.Binding:t.expression instanceof Be?Fc(t.expression,e,r):t.expression=Q(t.expression,e,r);break;case b.Property:case b.DomProperty:case b.Attribute:t.expression instanceof Be?Fc(t.expression,e,r):t.expression=Q(t.expression,e,r),t.sanitizer=t.sanitizer&&Q(t.sanitizer,e,r);break;case b.TwoWayProperty:t.expression=Q(t.expression,e,r),t.sanitizer=t.sanitizer&&Q(t.sanitizer,e,r);break;case b.I18nExpression:t.expression=Q(t.expression,e,r);break;case b.InterpolateText:Fc(t.interpolation,e,r);break;case b.Statement:Nl(t.statement,e,r);break;case b.Variable:t.initializer=Q(t.initializer,e,r);break;case b.Conditional:for(let n of t.conditions)n.expr!==null&&(n.expr=Q(n.expr,e,r));t.processed!==null&&(t.processed=Q(t.processed,e,r)),t.contextValue!==null&&(t.contextValue=Q(t.contextValue,e,r));break;case b.Animation:case b.AnimationListener:case b.Listener:case b.TwoWayListener:for(let n of t.handlerOps)ze(n,e,r|ye.InChildOperation);break;case b.ExtractedAttribute:t.expression=t.expression&&Q(t.expression,e,r),t.trustedValueFn=t.trustedValueFn&&Q(t.trustedValueFn,e,r);break;case b.RepeaterCreate:if(t.trackByOps===null)t.track=Q(t.track,e,r);else for(let n of t.trackByOps)ze(n,e,r|ye.InChildOperation);t.trackByFn!==null&&(t.trackByFn=Q(t.trackByFn,e,r));break;case b.Repeater:t.collection=Q(t.collection,e,r);break;case b.Defer:t.loadingConfig!==null&&(t.loadingConfig=Q(t.loadingConfig,e,r)),t.placeholderConfig!==null&&(t.placeholderConfig=Q(t.placeholderConfig,e,r)),t.resolverFn!==null&&(t.resolverFn=Q(t.resolverFn,e,r));break;case b.I18nMessage:for(let[n,i]of t.params)t.params.set(n,Q(i,e,r));for(let[n,i]of t.postprocessingParams)t.postprocessingParams.set(n,Q(i,e,r));break;case b.DeferWhen:t.expr=Q(t.expr,e,r);break;case b.StoreLet:t.value=Q(t.value,e,r);break;case b.Advance:case b.Container:case b.ContainerEnd:case b.ContainerStart:case b.DeferOn:case b.DisableBindings:case b.Element:case b.ElementEnd:case b.ElementStart:case b.EnableBindings:case b.I18n:case b.I18nApply:case b.I18nContext:case b.I18nEnd:case b.I18nStart:case b.IcuEnd:case b.IcuStart:case b.Namespace:case b.Pipe:case b.Projection:case b.ProjectionDef:case b.Template:case b.Text:case b.I18nAttributes:case b.IcuPlaceholder:case b.DeclareLet:case b.SourceLocation:case b.ConditionalCreate:case b.ConditionalBranchCreate:break;default:throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${b[t.kind]}`)}}function Q(t,e,r){if(t instanceof Ce)t.transformInternalExpressions(e,r);else if(t instanceof ge)t.lhs=Q(t.lhs,e,r),t.rhs=Q(t.rhs,e,r);else if(t instanceof hi)t.expr=Q(t.expr,e,r);else if(t instanceof jt)t.receiver=Q(t.receiver,e,r);else if(t instanceof on)t.receiver=Q(t.receiver,e,r),t.index=Q(t.index,e,r);else if(t instanceof Pt){t.fn=Q(t.fn,e,r);for(let n=0;n<t.args.length;n++)t.args[n]=Q(t.args[n],e,r)}else if(t instanceof wr)for(let n=0;n<t.entries.length;n++)t.entries[n]=Q(t.entries[n],e,r);else if(t instanceof Hr)for(let n=0;n<t.entries.length;n++)t.entries[n].value=Q(t.entries[n].value,e,r);else if(t instanceof zr)t.condition=Q(t.condition,e,r),t.trueCase=Q(t.trueCase,e,r),t.falseCase!==null&&(t.falseCase=Q(t.falseCase,e,r));else if(t instanceof Ji)t.expr=Q(t.expr,e,r);else if(t instanceof Zo)t.expr=Q(t.expr,e,r);else if(t instanceof Jo)for(let n=0;n<t.expressions.length;n++)t.expressions[n]=Q(t.expressions[n],e,r);else if(t instanceof ra)t.condition=Q(t.condition,e,r);else if(t instanceof Ks)t.tag=Q(t.tag,e,r),t.template.expressions=t.template.expressions.map(n=>Q(n,e,r));else if(t instanceof ui)if(Array.isArray(t.body))for(let n=0;n<t.body.length;n++)Nl(t.body[n],e,r);else t.body=Q(t.body,e,r);else if(!(t instanceof de)){if(t instanceof ta)for(let n=0;n<t.expressions.length;n++)t.expressions[n]=Q(t.expressions[n],e,r);else if(t instanceof br)t.expr=Q(t.expr,e,r);else if(!(t instanceof or||t instanceof ci||t instanceof st))throw new Error(`Unhandled expression kind: ${t.constructor.name}`)}return e(t,r)}function Nl(t,e,r){if(t instanceof lr)t.expr=Q(t.expr,e,r);else if(t instanceof nt)t.value=Q(t.value,e,r);else if(t instanceof Ue)t.value!==void 0&&(t.value=Q(t.value,e,r));else if(t instanceof el){t.condition=Q(t.condition,e,r);for(let n of t.trueCase)Nl(n,e,r);for(let n of t.falseCase)Nl(n,e,r)}else throw new Error(`Unhandled statement kind: ${t.constructor.name}`)}function tg(t){return t instanceof st&&typeof t.value=="string"}var q=(()=>{class t{static nextListId=0;debugListId=t.nextListId++;head={kind:b.ListEnd,next:null,prev:null,debugListId:this.debugListId};
22tail={kind:b.ListEnd,next:null,prev:null,debugListId:this.debugListId};constructor(){this.head.next=this.tail,this.tail.prev=this.head}push(r){if(Array.isArray(r)){for(let i of r)this.push(i);return}t.assertIsNotEnd(r),t.assertIsUnowned(r),r.debugListId=this.debugListId;let n=this.tail.prev;r.prev=n,n.next=r,r.next=this.tail,this.tail.prev=r}prepend(r){if(r.length===0)return;for(let s of r)t.assertIsNotEnd(s),t.assertIsUnowned(s),s.debugListId=this.debugListId;let n=this.head.next,i=this.head;for(let s of r)i.next=s,s.prev=i,i=s;i.next=n,n.prev=i}*[Symbol.iterator](){let r=this.head.next;for(;r!==this.tail;){t.assertIsOwned(r,this.debugListId);let n=r.next;yield r,r=n}}*reversed(){let r=this.tail.prev;for(;r!==this.head;){t.assertIsOwned(r,this.debugListId);let n=r.prev;yield r,r=n}}static replace(r,n){t.assertIsNotEnd(r),t.assertIsNotEnd(n),t.assertIsOwned(r),t.assertIsUnowned(n),n.debugListId=r.debugListId,r.prev!==null&&(r.prev.next=n,n.prev=r.prev),r.next!==null&&(r.next.prev=n,n.next=r.next),r.debugListId=null,r.prev=null,r.next=null}static replaceWithMany(r,n){if(n.length===0){t.remove(r);return}t.assertIsNotEnd(r),t.assertIsOwned(r);let i=r.debugListId;r.debugListId=null;for(let u of n)t.assertIsNotEnd(u),t.assertIsUnowned(u);let{prev:s,next:a}=r;r.prev=null,r.next=null;let o=s;for(let u of n)t.assertIsUnowned(u),u.debugListId=i,o.next=u,u.prev=o,u.next=null,o=u;let l=n[0],c=o;s!==null&&(s.next=l,l.prev=s),a!==null&&(a.prev=c,c.next=a)}static remove(r){t.assertIsNotEnd(r),t.assertIsOwned(r),r.prev.next=r.next,r.next.prev=r.prev,r.debugListId=null,r.prev=null,r.next=null}static insertBefore(r,n){if(Array.isArray(r)){for(let i of r)t.insertBefore(i,n);return}if(t.assertIsOwned(n),n.prev===null)throw new Error("AssertionError: illegal operation on list start");t.assertIsNotEnd(r),t.assertIsUnowned(r),r.debugListId=n.debugListId,r.prev=null,n.prev.next=r,r.prev=n.prev,r.next=n,n.prev=r}static insertAfter(r,n){if(t.assertIsOwned(n),n.next===null)throw new Error("AssertionError: illegal operation on list end");t.assertIsNotEnd(r),t.assertIsUnowned(r),r.debugListId=n.debugListId,n.next.prev=r,r.next=n.next,r.prev=n,n.next=r}static assertIsUnowned(r){if(r.debugListId!==null)throw new Error(`AssertionError: illegal operation on owned node: ${b[r.kind]}`)}static assertIsOwned(r,n){if(r.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${b[r.kind]}`);if(n!==void 0&&r.debugListId!==n)throw new Error(`AssertionError: node belongs to the wrong list (expected ${n}, actual ${r.debugListId})`)}static assertIsNotEnd(r){if(r.kind===b.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}}return t})(),at=class{slot=null},ZS=new Set([b.Element,b.ElementStart,b.Container,b.ContainerStart,b.Template,b.RepeaterCreate,b.ConditionalCreate,b.ConditionalBranchCreate]);function Bn(t){return ZS.has(t.kind)}function QS(t,e,r,n,i,s){return G(G({kind:b.ElementStart,xref:e,tag:t,handle:new at,attributes:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:n,startSourceSpan:i,wholeSourceSpan:s},hr),ae)}function rg(t,e,r,n,i,s,a,o){return G(G({kind:b.Template,xref:t,templateKind:e,attributes:null,tag:r,handle:new at,functionNameSuffix:n,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:i,i18nPlaceholder:s,startSourceSpan:a,wholeSourceSpan:o},hr),ae)}function ng(t,e,r,n,i,s,a,o){return G(G({kind:b.ConditionalCreate,xref:t,templateKind:e,attributes:null,tag:r,handle:new at,functionNameSuffix:n,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:i,i18nPlaceholder:s,startSourceSpan:a,wholeSourceSpan:o},hr),ae)}function ig(t,e,r,n,i,s,a,o){return G(G({kind:b.ConditionalBranchCreate,xref:t,templateKind:e,attributes:null,tag:r,handle:new at,functionNameSuffix:n,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:i,i18nPlaceholder:s,startSourceSpan:a,wholeSourceSpan:o},hr),ae)}function JS(t,e,r,n,i,s,a,o,l,c){return Pe(G(G(G({kind:b.RepeaterCreate,attributes:null,xref:t,handle:new at,emptyView:e,track:n,trackByFn:null,trackByOps:null,tag:r,emptyTag:s,emptyAttributes:null,functionNameSuffix:"For",namespace:ut.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:i,usesComponentInstance:!1,i18nPlaceholder:a,emptyI18nPlaceholder:o,startSourceSpan:l,wholeSourceSpan:c}
22,hr),ae),It),{numSlotsUsed:e===null?2:3})}function KS(t,e){return G({kind:b.ElementEnd,xref:t,sourceSpan:e},ae)}function eE(t){return G({kind:b.DisableBindings,xref:t},ae)}function tE(t){return G({kind:b.EnableBindings,xref:t},ae)}function sg(t,e,r,n){return G(G({kind:b.Text,xref:t,handle:new at,initialValue:e,icuPlaceholder:r,sourceSpan:n},hr),ae)}function rE(t,e,r,n,i,s){return G({kind:b.AnimationString,name:t,target:e,animationKind:r,expression:n,i18nMessage:null,securityContext:i,sanitizer:null,sourceSpan:s},ae)}function nE(t,e,r,n,i,s){let a=new q;return a.push(n),G({kind:b.Animation,name:t,target:e,animationKind:r,handlerOps:a,handlerFnName:null,i18nMessage:null,securityContext:i,sanitizer:null,sourceSpan:s},ae)}function Fh(t,e,r,n,i,s,a,o,l){let c=new q;return c.push(i),G({kind:b.Listener,target:t,targetSlot:e,tag:n,hostListener:o,name:r,handlerOps:c,handlerFnName:null,consumesDollarEvent:!1,isLegacyAnimationListener:s!==null,legacyAnimationPhase:s,eventTarget:a,sourceSpan:l},ae)}function ag(t,e,r,n,i,s,a,o,l){let c=new q;return c.push(i),G({kind:b.AnimationListener,target:t,targetSlot:e,tag:n,hostListener:o,name:r,animationKind:s,handlerOps:c,handlerFnName:null,consumesDollarEvent:!1,eventTarget:a,sourceSpan:l},ae)}function og(t,e,r,n,i,s){let a=new q;return a.push(i),G({kind:b.TwoWayListener,target:t,targetSlot:e,tag:n,name:r,handlerOps:a,handlerFnName:null,sourceSpan:s},ae)}function lg(t,e,r){return G(G({kind:b.Pipe,xref:t,handle:e,name:r},ae),hr)}function iE(t){return G({kind:b.Namespace,active:t},ae)}function sE(t){return G({kind:b.ProjectionDef,def:t},ae)}function aE(t,e,r,n,i){return Pe(G(G({kind:b.Projection,xref:t,handle:new at,selector:e,i18nPlaceholder:r,fallbackView:n,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:i},ae),hr),{numSlotsUsed:n===null?1:2})}function nr(t,e,r,n,i,s,a,o){return G({kind:b.ExtractedAttribute,target:t,bindingKind:e,namespace:r,name:n,expression:i,i18nContext:s,i18nMessage:a,securityContext:o,trustedValueFn:null},ae)}function oE(t,e,r,n,i,s){return Pe(G(G({kind:b.Defer,xref:t,handle:new at,mainView:e,mainSlot:r,loadingView:null,loadingSlot:null,loadingConfig:null,loadingMinimumTime:null,loadingAfterTime:null,placeholderView:null,placeholderSlot:null,placeholderConfig:null,placeholderMinimumTime:null,errorView:null,errorSlot:null,ownResolverFn:n,resolverFn:i,flags:null,sourceSpan:s},ae),hr),{numSlotsUsed:2})}function xn(t,e,r,n){return G({kind:b.DeferOn,defer:t,trigger:e,modifier:r,sourceSpan:n},ae)}function lE(t,e,r){return G(G({kind:b.DeclareLet,xref:t,declaredName:e,sourceSpan:r,handle:new at},hr),ae)}function cE(t,e,r,n,i,s,a,o){return G({kind:b.I18nMessage,xref:t,i18nContext:e,i18nBlock:r,message:n,messagePlaceholder:i,params:s,postprocessingParams:a,needsPostprocessing:o,subMessages:[]},ae)}function lc(t,e,r,n){return G(G({kind:b.I18nStart,xref:t,handle:new at,root:r??t,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:n},ae),hr)}function cc(t,e){return G({kind:b.I18nEnd,xref:t,sourceSpan:e},ae)}function uE(t,e,r,n){return G({kind:b.IcuStart,xref:t,message:e,messagePlaceholder:r,context:null,sourceSpan:n},ae)}function hE(t){return G({kind:b.IcuEnd,xref:t},ae)}function pE(t,e,r){return G({kind:b.IcuPlaceholder,xref:t,name:e,strings:r,expressionPlaceholders:[]},ae)}function Bc(t,e,r,n,i){if(r===null&&t!==ti.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return G({kind:b.I18nContext,contextKind:t,xref:e,i18nBlock:r,message:n,sourceSpan:i,params:new Map,postprocessingParams:new Map},ae)}function cg(t,e,r){return G(G({kind:b.I18nAttributes,xref:t,handle:e,target:r,i18nAttributesConfig:null},ae),hr)}function fE(t,e){return G({kind:b.SourceLocation,templatePath:t,locations:e},ae)}function dE(t,e,r,n,i,s){return G(G({kind:b.DomProperty,name:t,expression:e,bindingKind:r,i18nContext:n,securityContext:i,sanitizer:null,sourceSpan:s},It),ae)}var ug="CTX_REF_MARKER",Z=(function(t){return t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both",t})(Z||{}),Tt=(function(t){return t[t.Full=0]="Full",t[t.DomOnly=1]="DomOnly",t})(Tt||{}),Fl=class{componentName;pool;compatibility;mode;constructor(e,r,n,i){this.componentName=e,this.pool=r,this.compatibility=n,this.mode=i}kind=Z.Both;allocateXrefId(){return this.nextXrefId++}nextXrefId=0},Ra=class extends Fl{relativeContextFilePath;i18nUseExternalIds;deferMeta;allDeferrableDepsFn;relativeTemplatePath;enableDebugLocations;constructor(e,r,n,i,s,a,o,l,c,u){super(e,r,n,i),this.relativeContextFilePath=s,this.i18nUseExternalIds=a,this.deferMeta=o,this.allDeferrableDepsFn=l,this.relativeTemplatePath=c,this.enableDebugLocations=u,this.root=new ir(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}kind=Z.Tmpl;fnSuffix="Template";root;views=new Map;contentSelectors=null;allocateView(e){let r=new ir(this,this.allocateXrefId(),e);return this.views.set(r.xref,r),r}get units(){return this.views.values()}addConst(e,r){for(let i=0;i<this.consts.length;i++)if(this.consts[i].isEquivalent(e))return i;let n=this.consts.length;
22return this.consts.push(e),r&&this.constsInitializers.push(...r),n}consts=[];constsInitializers=[]},Bl=class{xref;constructor(e){this.xref=e}create=new q;update=new q;fnName=null;vars=null;*ops(){for(let e of this.create)if(yield e,e.kind===b.Listener||e.kind===b.Animation||e.kind===b.AnimationListener||e.kind===b.TwoWayListener)for(let r of e.handlerOps)yield r;else if(e.kind===b.RepeaterCreate&&e.trackByOps!==null)for(let r of e.trackByOps)yield r;for(let e of this.update)yield e}},ir=class extends Bl{job;parent;constructor(e,r,n){super(r),this.job=e,this.parent=n}contextVariables=new Map;aliases=new Set;decls=null},Rl=class extends Fl{constructor(e,r,n,i){super(e,r,n,i),this.root=new Iu(this)}kind=Z.Host;fnSuffix="HostBindings";root;get units(){return[this.root]}},Iu=class extends Bl{job;constructor(e){super(0),this.job=e}attributes=null};function mE(t){for(let e of t.units)for(let r of e.ops())ze(r,gE,ye.None)}function gE(t){if(t instanceof Pt&&t.fn instanceof et&&t.fn.name==="$any"){if(t.args.length!==1)throw new Error("The $any builtin function expects exactly one argument.");return t.args[0]}return t}function vE(t){let e=new Map;for(let r of t.units)for(let n of r.create)n.kind===b.I18nContext&&e.set(n.xref,n);for(let r of t.units)for(let n of r.update)n.kind===b.I18nExpression&&yE(e,n)&&q.insertAfter(XS(n.i18nOwner,n.handle,null),n)}function yE(t,e){if(e.next?.kind!==b.I18nExpression)return!0;let r=t.get(e.context),n=t.get(e.next.context);if(r===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the I18nExpressionOp's context");if(n===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the next I18nExpressionOp's context");return r.i18nBlock!==null?r.i18nBlock!==n.i18nBlock:e.i18nOwner!==e.next.i18nOwner}function SE(t){for(let e of t.units){let r=e.update.head,n=[],i=null;for(let s of e.create){if(s.kind===b.I18nStart)i={blockXref:s.xref,lastSlotConsumer:s.xref};else if(s.kind===b.I18nEnd){for(let a of n)a.target=i.lastSlotConsumer,q.insertBefore(a,r);n.length=0,i=null}if(Es(s))for(i!==null&&(i.lastSlotConsumer=s.xref);r.next!==null;){if(i!==null&&r.kind===b.I18nExpression&&r.usage===ys.I18nText&&r.i18nOwner===i.blockXref){let o=r;r=r.next,q.remove(o),n.push(o);continue}let a=!1;if(Ma(r)&&r.target!==s.xref?a=!0:(r.kind===b.Statement||r.kind===b.Variable)&&Je(r,o=>{!a&&Ma(o)&&o.target!==s.xref&&(a=!0)}),a)break;r=r.next}}}}function EE(t){if(!(!t.enableDebugLocations||t.relativeTemplatePath===null))for(let e of t.units){let r=[];for(let n of e.create)if(n.kind===b.ElementStart||n.kind===b.Element){let i=n.startSourceSpan.start;r.push({targetSlot:n.handle,offset:i.offset,line:i.line,column:i.col})}r.length>0&&e.create.push(fE(t.relativeTemplatePath,r))}}function hg(t){let e=new Map;for(let r of t.create)Es(r)&&(e.set(r.xref,r),r.kind===b.RepeaterCreate&&r.emptyView!==null&&e.set(r.emptyView,r));return e}function xE(t){for(let e of t.units){let r=hg(e);for(let n of e.ops())switch(n.kind){case b.Attribute:bE(e,n,r);break;case b.Property:if(n.bindingKind!==K.LegacyAnimation&&n.bindingKind!==K.Animation){let i;n.i18nMessage!==null&&n.templateKind===null?i=K.I18n:n.isStructuralTemplateAttribute?i=K.Template:i=K.Property,q.insertBefore(nr(n.target,i,null,n.name,null,null,null,n.securityContext),Vi(r,n.target))}break;case b.TwoWayProperty:q.insertBefore(nr(n.target,K.TwoWayProperty,null,n.name,null,null,null,n.securityContext),Vi(r,n.target));break;case b.StyleProp:case b.ClassProp:e.job.compatibility===Wt.TemplateDefinitionBuilder&&n.expression instanceof Fa&&q.insertBefore(nr(n.target,K.Property,null,n.name,null,null,null,we.STYLE),Vi(r,n.target));break;case b.Listener:if(!n.isLegacyAnimationListener){let i=nr(n.target,K.Property,null,n.name,null,null,null,we.NONE);if(t.kind===Z.Host){if(t.compatibility)break;e.create.push(i)}else q.insertBefore(i,Vi(r,n.target))}break;case b.TwoWayListener:if(t.kind!==Z.Host){let i=nr(n.target,K.Property,null,n.name,null,null,null,we.NONE);q.insertBefore(i,Vi(r,n.target))}break}}}function Vi(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an element-like target.");return r}function bE(t,e,r){if(e.expression instanceof Be)return;let n=e.isTextAttribute||e.expression.isConstant();if(t.job.compatibility===Wt.TemplateDefinitionBuilder&&(n&&=e.isTextAttribute),n){let i=nr(e.target,e.isStructuralTemplateAttribute?K.Template:K.Attribute,e.namespace,e.name,e.expression,e.i18nContext,e.i18nMessage,e.securityContext);if(t.job.kind===Z.Host)t.create.push(i);else{let s=Vi(r,e.target);q.insertBefore(i,s)}q.remove(e)}}var cd="aria-";function pg(t){return t.startsWith(cd)&&t.length>cd.length}function wE(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an element-like target.");return r}function CE(t){let e=new Map;for(let r of t.units)for(let n of r.create)Bn(n)&&e.set(n.xref,n);for(let r of t.units)for(let n of r.ops())if(n.kind===b.Binding)switch(n.bindingKind){case K.Attribute:if(n.name==="ngNonBindable"){q.remove(n);let i=wE(e,n.target);i.nonBindable=!0}else if(n.name.startsWith("animate."))q.replace(n,ld(n.name,n.target,n.name==="animate.enter"?"enter":"leave",n.expression,n.securityContext,n.sourceSpan,
220));else{let[i,s]=Tr(n.name);q.replace(n,od(n.target,i,s,n.expression,n.securityContext,n.isTextAttribute,n.isStructuralTemplateAttribute,n.templateKind,n.i18nMessage,n.sourceSpan))}break;case K.Animation:q.replace(n,ld(n.name,n.target,n.name==="animate.enter"?"enter":"leave",n.expression,n.securityContext,n.sourceSpan,1));break;case K.Property:case K.LegacyAnimation:t.mode===Tt.DomOnly&&pg(n.name)?q.replace(n,od(n.target,null,n.name,n.expression,n.securityContext,!1,n.isStructuralTemplateAttribute,n.templateKind,n.i18nMessage,n.sourceSpan)):t.kind===Z.Host?q.replace(n,dE(n.name,n.expression,n.bindingKind,n.i18nContext,n.securityContext,n.sourceSpan)):q.replace(n,$S(n.target,n.name,n.expression,n.bindingKind,n.securityContext,n.isStructuralTemplateAttribute,n.templateKind,n.i18nContext,n.i18nMessage,n.sourceSpan));break;case K.TwoWayProperty:if(!(n.expression instanceof Ee))throw new Error(`Expected value of two-way property binding "${n.name}" to be an expression`);q.replace(n,VS(n.target,n.name,n.expression,n.securityContext,n.isStructuralTemplateAttribute,n.templateKind,n.i18nContext,n.i18nMessage,n.sourceSpan));break;case K.I18n:case K.ClassName:case K.StyleProperty:throw new Error(`Unhandled binding of kind ${K[n.bindingKind]}`)}}var ud=new Map([[I.ariaProperty,I.ariaProperty],[I.attribute,I.attribute],[I.classProp,I.classProp],[I.element,I.element],[I.elementContainer,I.elementContainer],[I.elementContainerEnd,I.elementContainerEnd],[I.elementContainerStart,I.elementContainerStart],[I.elementEnd,I.elementEnd],[I.elementStart,I.elementStart],[I.domProperty,I.domProperty],[I.i18nExp,I.i18nExp],[I.listener,I.listener],[I.listener,I.listener],[I.property,I.property],[I.styleProp,I.styleProp],[I.syntheticHostListener,I.syntheticHostListener],[I.syntheticHostProperty,I.syntheticHostProperty],[I.templateCreate,I.templateCreate],[I.twoWayProperty,I.twoWayProperty],[I.twoWayListener,I.twoWayListener],[I.declareLet,I.declareLet],[I.conditionalCreate,I.conditionalBranchCreate],[I.conditionalBranchCreate,I.
22conditionalBranchCreate],[I.domElement,I.domElement],[I.domElementStart,I.domElementStart],[I.domElementEnd,I.domElementEnd],[I.domElementContainer,I.domElementContainer],[I.domElementContainerStart,I.domElementContainerStart],[I.domElementContainerEnd,I.domElementContainerEnd],[I.domListener,I.domListener],[I.domTemplate,I.domTemplate],[I.animationEnter,I.animationEnter],[I.animationLeave,I.animationLeave],[I.animationEnterListener,I.animationEnterListener],[I.animationLeaveListener,I.animationLeaveListener]]),TE=256;function AE(t){for(let e of t.units)hd(e.create),hd(e.update)}function hd(t){let e=null;for(let r of t){if(r.kind!==b.Statement||!(r.statement instanceof lr)){e=null;continue}if(!(r.statement.expr instanceof Pt)||!(r.statement.expr.fn instanceof ci)){e=null;continue}let n=r.statement.expr.fn.value;if(!ud.has(n)){e=null;continue}if(e!==null&&ud.get(e.instruction)===n&&e.length<TE){let i=e.expression.callFn(r.statement.expr.args,r.statement.expr.sourceSpan,r.statement.expr.pure);e.expression=i,e.op.statement=i.toStmt(),e.length++,q.remove(r)}else e={op:r,instruction:n,expression:r.statement.expr,length:1}}}function _E(t){for(let e of t.units)for(let r of e.update)(r.kind===b.Attribute||r.kind===b.StyleProp||r.kind==b.StyleMap||r.kind===b.ClassMap)&&r.expression instanceof Be&&r.expression.strings.length===2&&r.expression.strings.every(i=>i==="")&&(r.expression=r.expression.expressions[0])}function kE(t){for(let e of t.units)for(let r of e.ops()){if(r.kind!==b.Conditional)continue;let n,i=r.conditions.findIndex(o=>o.expr===null);if(i>=0){let o=r.conditions.splice(i,1)[0].targetSlot;n=new Dl(o)}else n=$(-1);let s=r.test==null?null:new Ur(r.test,t.allocateXrefId()),a=null;for(let o=r.conditions.length-1;o>=0;o--){let l=r.conditions[o];if(l.expr!==null){if(s!==null){let c=o===0?s:new Fn(s.xref);l.expr=new ge(j.Identical,c,l.expr)}else l.alias!==null&&(a??=t.allocateXrefId(),l.expr=new Ur(l.expr,a),r.contextValue=new Fn(a));n=new zr(l.expr,new Dl(l.targetSlot),n)}}r.processed=n,r.conditions=[]}}var PE=new Map([["&&",j.And],[">",j.Bigger],[">=",j.BiggerEquals],["|",j.BitwiseOr],["&",j.BitwiseAnd],["/",j.Divide],["=",j.Assign],["==",j.Equals],["===",j.Identical],["<",j.Lower],["<=",j.LowerEquals],["-",j.Minus],["%",j.Modulo],["**",j.Exponentiation],["*",j.Multiply],["!=",j.NotEquals],["!==",j.NotIdentical],["??",j.NullishCoalesce],["||",j.Or],["+",j.Plus],["in",j.In],["+=",j.AdditionAssignment],["-=",j.SubtractionAssignment],["*=",j.MultiplicationAssignment],["/=",j.DivisionAssignment],["%=",j.RemainderAssignment],["**=",j.ExponentiationAssignment],["&&=",j.AndAssignment],["||=",j.OrAssignment],["??=",j.NullishCoalesceAssignment]]);function fg(t){let e=new Map([["svg",ut.SVG],["math",ut.Math]]);return t===null?ut.HTML:e.get(t)??ut.HTML}function IE(t){let e=new Map([["svg",ut.SVG],["math",ut.Math]]);for(let[r,n]of e.entries())if(n===t)return r;return null}function ME(t,e){return e===ut.HTML?t:`:${IE(e)}:${t}`}function ds(t){return Array.isArray(t)?Se(t.map(ds)):$(t)}function DE(t){let e=new Map;for(let r of t.units)for(let n of r.create)if(n.kind===b.ExtractedAttribute){let i=e.get(n.target)||new Mu(t.compatibility);e.set(n.target,i),i.add(n.bindingKind,n.name,n.expression,n.namespace,n.trustedValueFn),q.remove(n)}if(t instanceof Ra)for(let r of t.units)for(let n of r.create)if(n.kind==b.Projection){let i=e.get(n.xref);if(i!==void 0){let s=Du(i);s.entries.length>0&&(n.attributes=s)}}else Bn(n)&&(n.attributes=pd(t,e,n.xref),n.kind===b.RepeaterCreate&&n.emptyView!==null&&(n.emptyAttributes=pd(t,e,n.emptyView)));else if(t instanceof Rl)for(let[r,n]of e.entries()){if(r!==t.root.xref)throw new Error("An attribute would be const collected into the host binding's template function, but is not associated with the root xref.");let i=Du(n);i.entries.length>0&&(t.root.attributes=i)}}function pd(t,e,r){let n=e.get(r);if(n!==void 0){let i=Du(n);if(i.entries.length>0)return t.addConst(i)}return null}var Fi=Object.freeze([]),Mu=class{compatibility;known=new Map;byKind=new Map;propertyBindings=null;projectAs=null;get attributes(){return this.byKind.get(K.Attribute)??Fi}get classes(){return this.byKind.get(K.ClassName)??Fi}get styles(){return this.byKind.get(K.StyleProperty)??Fi}get bindings(){return this.propertyBindings??Fi}get template(){return this.byKind.get(K.Template)??Fi}get i18n(){return this.byKind.get(K.I18n)??Fi}constructor(e){this.compatibility=e}isKnown(e,r){let n=this.known.get(e)??new Set;return this.known.set(e,n),n.has(r)?!0:(n.add(r),!1)}add(e,r,n,i,s){if(!(this.compatibility===Wt.TemplateDefinitionBuilder&&(e===K.Attribute||e===K.ClassName||e===K.StyleProperty))&&this.isKnown(e,r))return;if(r==="ngProjectAs"){if(n===null||!(n instanceof st)||n.value==null||typeof n.value?.toString()!="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=n.value.toString()}let o=this.arrayFor(e);if(o.push(...LE(i,r)),e===K.Attribute||e===K.StyleProperty){if(n===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(s!==null){if(!tg(n))throw Error("AssertionError: extracted attribute value should be string literal");o.push(Qy(s,new ta([new Qo(n.value)],[]),void 0,n.sourceSpan))}else o.push(n)}}arrayFor(e){return e===K.Property||e===K.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function LE(t,e){let r=$(e);return t?[$(0),$(t),r]:[r]}function Du({attributes:t,bindings:e,classes:r,i18n:n,projectAs:i,styles:s,template:a}){let o=[...t];if(i!==null){let l=Eh(i)[0];o.push($(5),ds(l))}return r.length>0&&o.push($(1),...r),s.length>0&&o.push($(2),...s),e.length>0&&o.push($(3),...e),a.length>0&&o.push($(4),...a),n.length>0&&o.push($(6),...n),Se(o)}function NE(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an element-like target.");return r}function FE(t){let e=new Map;for(let r of t.units)for(let n of r.create)Bn(n)&&e.set(n.xref,n);for(let r of t.units)for(let n of r.ops())if(n.kind===b.AnimationBinding){let i=BE(n);t.kind===Z.Host?r.create.push(i):q.insertAfter(i,NE(e,n.target)),q.remove(n)}}function BE(t){if(t.animationBindingKind===0)return rE(t.name,t.target,t.name==="animate.enter"?"enter":"leave",t.expression,t.securityContext,t.sourceSpan);{let e=t.expression;return nE(t.name,t.target,t.name==="animate.enter"?"enter":"leave",[ur(new nt(e,e.sourceSpan))],t.securityContext,t.sourceSpan)}}function RE(t){let e=new Map;for(let r of t.units){for(let n of r.create)n.kind===b.I18nAttributes&&e.set(n.target,n);for(let n of r.update)switch(n.kind){case b.Property:case b.Attribute:if(n.i18nContext===null||!(n.expression instanceof Be))continue;let i=e.get(n.target);if(i===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(i.target!==n.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let s=[];for(let a=0;a<n.expression.expressions.length;a++){let o=n.expression.expressions[a];if(n.expression.i18nPlaceholders.length!==n.expression.expressions.length)throw new Error(`AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${n.expression.i18nPlaceholders.length} placeholders and ${n.expression.expressions.length} expressions`);
22s.push(eg(n.i18nContext,i.target,i.xref,i.handle,o,null,n.expression.i18nPlaceholders[a],Ia.Creation,ys.I18nAttribute,n.name,n.sourceSpan))}q.replaceWithMany(n,s);break}}}function OE(t){let e=new Map;for(let i of t.units)for(let s of i.ops())switch(s.kind){case b.Binding:case b.Property:case b.Attribute:case b.ExtractedAttribute:if(s.i18nMessage===null)continue;if(!e.has(s.i18nMessage)){let a=Bc(ti.Attr,t.allocateXrefId(),null,s.i18nMessage,null);i.create.push(a),e.set(s.i18nMessage,a.xref)}s.i18nContext=e.get(s.i18nMessage);break}let r=new Map;for(let i of t.units)for(let s of i.create)switch(s.kind){case b.I18nStart:if(s.xref===s.root){let a=Bc(ti.RootI18n,t.allocateXrefId(),s.xref,s.message,null);i.create.push(a),s.context=a.xref,r.set(s.xref,a)}break}for(let i of t.units)for(let s of i.create)if(s.kind===b.I18nStart&&s.xref!==s.root){let a=r.get(s.root);if(a===void 0)throw Error("AssertionError: Root i18n block i18n context should have been created.");s.context=a.xref,r.set(s.xref,a)}let n=null;for(let i of t.units)for(let s of i.create)switch(s.kind){case b.I18nStart:n=s;break;case b.I18nEnd:n=null;break;case b.IcuStart:if(n===null)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(s.message.id!==n.message.id){let a=Bc(ti.Icu,t.allocateXrefId(),n.root,s.message,null);i.create.push(a),s.context=a.xref}else s.context=n.context,r.get(n.xref).contextKind=ti.Icu;break}}function $E(t){let e=new Map;for(let r of t.units)for(let n of r.update.reversed())if(n.kind===b.Binding&&n.isTextAttribute){let i=e.get(n.target)||new Set;i.has(n.name)&&t.compatibility===Wt.TemplateDefinitionBuilder&&(n.name==="style"||n.name==="class")&&q.remove(n),i.add(n.name),e.set(n.target,i)}}function VE(t){for(let e of t.units)for(let r of e.create)r.kind===b.Defer&&(r.placeholderMinimumTime!==null&&(r.placeholderConfig=new Ba(ds([r.placeholderMinimumTime]))),(r.loadingMinimumTime!==null||r.loadingAfterTime!==null)&&(r.loadingConfig=new Ba(ds([r.loadingMinimumTime,r.loadingAfterTime]))))}function zE(t){let e=new Map;function r(i){if(e.has(i.xref))return e.get(i.xref);let s=new HE;for(let a of i.create)if(!(!Bn(a)||a.localRefs===null)){if(!Array.isArray(a.localRefs))throw new Error("LocalRefs were already processed, but were needed to resolve defer targets.");for(let o of a.localRefs)o.target===""&&s.targets.set(o.name,{xref:a.xref,slot:a.handle})}return e.set(i.xref,s),s}function n(i,s,a){switch(s.trigger.kind){case be.Idle:case be.Never:case be.Immediate:case be.Timer:return;case be.Hover:case be.Interaction:case be.Viewport:if(s.trigger.targetName===null){if(a===null)throw new Error("defer on trigger with no target name must have a placeholder block");let c=t.views.get(a);if(c==null)throw new Error("AssertionError: could not find placeholder view for defer on trigger");for(let u of c.create)if(Es(u)&&(Bn(u)||u.kind===b.Projection)){s.trigger.targetXref=u.xref,s.trigger.targetView=a,s.trigger.targetSlotViewSteps=-1,s.trigger.targetSlot=u.handle;return}return}let o=a!==null?t.views.get(a):i,l=a!==null?-1:0;for(;o!==null;){let c=r(o);if(c.targets.has(s.trigger.targetName)){let{xref:u,slot:d}=c.targets.get(s.trigger.targetName);s.trigger.targetXref=u,s.trigger.targetView=o.xref,s.trigger.targetSlotViewSteps=l,s.trigger.targetSlot=d;return}o=o.parent!==null?t.views.get(o.parent):null,l++}break;default:throw new Error(`Trigger kind ${s.trigger.kind} not handled`)}}for(let i of t.units){let s=new Map;for(let a of i.create)switch(a.kind){case b.Defer:s.set(a.xref,a);break;case b.DeferOn:let o=s.get(a.defer);n(i,a,a.modifier==="hydrate"?o.mainView:o.placeholderView);break}}}var HE=class{targets=new Map},GE=new Map([[b.ElementEnd,[b.ElementStart,b.Element]],[b.ContainerEnd,[b.ContainerStart,b.Container]],[b.I18nEnd,[b.I18nStart,b.I18n]]]),qE=new Set([b.Pipe]);function jE(t){for(let e of t.units)for(let r of e.create){let n=GE.get(r.kind);if(n===void 0)continue;let[i,s]=n,a=r.prev;
22for(;a!==null&&qE.has(a.kind);)a=a.prev;a!==null&&a.kind===i&&(a.kind=s,q.remove(r))}}function WE(t){for(let e of t.units)for(let r of e.ops())ze(r,n=>JE(n,{job:t}),ye.None),ze(r,KE,ye.None)}function Bt(t){return t instanceof hi?Bt(t.expr):t instanceof ge?Bt(t.lhs)||Bt(t.rhs):t instanceof zr?t.falseCase&&Bt(t.falseCase)?!0:Bt(t.condition)||Bt(t.trueCase):t instanceof ra?Bt(t.condition):t instanceof Ur?Bt(t.expr):t instanceof jt?Bt(t.receiver):t instanceof on?Bt(t.receiver)||Bt(t.index):t instanceof br?Bt(t.expr):t instanceof Pt||t instanceof wr||t instanceof Hr||t instanceof xi||t instanceof Ei}function UE(t){let e=new Set;return Q(t,r=>(r instanceof Ur&&e.add(r.xref),r),ye.None),e}function XE(t,e,r){return Q(t,n=>{if(n instanceof Ur&&e.has(n.xref)){let i=new Fn(n.xref);return r.job.compatibility===Wt.TemplateDefinitionBuilder?new Ur(i,i.xref):i}return n},ye.None),t}function Bi(t,e,r){let n;if(Bt(t)){let i=r.job.allocateXrefId();n=[new Ur(t,i),new Fn(i)]}else n=[t,t.clone()],XE(n[1],UE(n[0]),r);return new fs(n[0],e(n[1]))}function YE(t){return t instanceof hs||t instanceof ps||t instanceof xi}function ZE(t){return t instanceof jt||t instanceof on||t instanceof Pt}function dg(t){return YE(t)||ZE(t)}function QE(t){if(dg(t)&&t.receiver instanceof fs){let e=t.receiver;for(;e.expr instanceof fs;)e=e.expr;return e}return null}function JE(t,e){if(!dg(t))return t;let r=QE(t);if(r){if(t instanceof Pt)return r.expr=r.expr.callFn(t.args),t.receiver;if(t instanceof jt)return r.expr=r.expr.prop(t.name),t.receiver;if(t instanceof on)return r.expr=r.expr.key(t.index),t.receiver;if(t instanceof xi)return r.expr=Bi(r.expr,n=>n.callFn(t.args),e),t.receiver;if(t instanceof hs)return r.expr=Bi(r.expr,n=>n.prop(t.name),e),t.receiver;if(t instanceof ps)return r.expr=Bi(r.expr,n=>n.key(t.index),e),t.receiver}else{if(t instanceof xi)return Bi(t.receiver,n=>n.callFn(t.args),e);if(t instanceof hs)return Bi(t.receiver,n=>n.prop(t.name),e);if(t instanceof ps)return Bi(t.receiver,n=>n.key(t.index),e)}return t}function KE(t){return t instanceof fs?new br(new zr(new ge(j.Equals,t.guard,es),es,t.expr)):t}var fd="\uFFFD",ex="#",tx="*",rx="/",nx=":",ix="[",sx="]",ax="|";function ox(t){let e=new Map,r=new Map,n=new Map;for(let s of t.units)for(let a of s.create)switch(a.kind){case b.I18nContext:let o=lx(t,a);s.create.push(o),e.set(a.xref,o),n.set(a.xref,a);break;case b.I18nStart:r.set(a.xref,a);break}let i=null;for(let s of t.units)for(let a of s.create)switch(a.kind){case b.IcuStart:i=a,q.remove(a);let o=n.get(a.context);if(o.contextKind!==ti.Icu)continue;let l=r.get(o.i18nBlock);if(l.context===o.xref)continue;let c=r.get(l.root),u=e.get(c.context);if(u===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let d=e.get(o.xref);d.messagePlaceholder=a.messagePlaceholder,u.subMessages.push(d.xref);break;case b.IcuEnd:i=null,q.remove(a);break;case b.IcuPlaceholder:if(i===null||i.context==null)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");e.get(i.context).postprocessingParams.set(a.name,$(cx(a))),q.remove(a);break}}function lx(t,e,r){let n=dd(e.params),i=dd(e.postprocessingParams),s=[...e.params.values()].some(a=>a.length>1);return cE(t.allocateXrefId(),e.xref,e.i18nBlock,e.message,null,n,i,s)}function cx(t){if(t.strings.length!==t.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${t.strings.length} strings and ${t.expressionPlaceholders.length} expressions`);let e=t.expressionPlaceholders.map(qi);return t.strings.flatMap((r,n)=>[r,e[n]||""]).join("")}function dd(t){let e=new Map;for(let[r,n]of t){let i=ux(n);i!==null&&e.set(r,$(i))}return e}function ux(t){if(t.length===0)return null;let e=t.map(r=>qi(r));return e.length===1?e[0]:`${ix}${e.join(ax)}${sx}`}function qi(t){if(t.flags&Te.ElementTag&&t.flags&Te.TemplateTag){if(typeof t.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let i=qi(Pe(G({},t),{value:t.value.element,flags:t.flags&~Te.TemplateTag})),s=qi(Pe(G({},t),{value:t.value.template,flags:t.flags&~Te.ElementTag}));return t.flags&Te.OpenTag&&t.flags&Te.CloseTag?`${s}${i}${s}`:t.flags&Te.CloseTag?`${i}${s}`:`${s}${i}`}if(t.flags&Te.OpenTag&&t.flags&Te.CloseTag)return`${qi(Pe(G({},t),{flags:t.flags&~Te.CloseTag}))}${qi(Pe(G({},t),{flags:t.flags&~Te.OpenTag}))}`;if(t.flags===Te.None)return`${t.value}`;let e="",r="";t.flags&Te.ElementTag?e=ex:t.flags&Te.TemplateTag&&(e=tx),e!==""&&(r=t.flags&Te.CloseTag?rx:"");let n=t.subTemplateIndex===null?"":`${nx}${t.subTemplateIndex}`;return`${fd}${r}${e}${t.value}${n}${fd}`}function hx(t){for(let e of t.units){let r=new Map;for(let i of e.create){if(Es(i)){if(i.handle.slot===null)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls")}else continue;r.set(i.xref,i.handle.slot)}let n=0;for(let i of e.update){let s=null;if(Ma(i)?s=i:Je(i,o=>{s===null&&Ma(o)&&(s=o)}),s===null)continue;if(!r.has(s.target))throw new Error(`AssertionError: reference to unknown slot for target ${s.target}`);let a=r.get(s.target);if(n!==a){let o=a-n;if(o<0)throw new Error("AssertionError: slot counter should never need to move backwards");q.insertBefore(jS(o,s.sourceSpan),i),n=a}}}}function px(t){for(let e of t.units)for(let r of e.update){if(r.kind!==b.StoreLet)continue;let n={kind:Ze.Identifier,name:null,identifier:r.declaredName,local:!0};q.replace(r,Cn(t.allocateXrefId(),n,new Da(r.target,r.value,r.sourceSpan),rr.None))}}function fx(t){let e=t.compatibility===Wt.TemplateDefinitionBuilder,r=[],n=0;for(let i of t.units)for(let s of i.create)s.kind===b.Projection&&(r.push(s.selector),s.projectionSlotIndex=n++);if(r.length>0){let i=null;if(r.length>1||r[0]!=="*"){let s=r.map(a=>a==="*"?a:Eh(a));i=t.pool.getConstLiteral(ds(s),e)}t.contentSelectors=t.pool.getConstLiteral(ds(r),e),t.root.create.prepend([sE(i)])}}function dx(t){Gs(t.root,null)}function Gs(t,e){let r=mx(t,e);for(let n of t.create)switch(n.kind){case b.ConditionalCreate:case b.ConditionalBranchCreate:case b.Template:Gs(t.job.views.get(n.xref),r);break;case b.Projection:n.fallbackView!==null&&Gs(t.job.views.get(n.fallbackView),r);break;case b.RepeaterCreate:Gs(t.job.views.get(n.xref),r),n.emptyView&&Gs(t.job.views.get(n.emptyView),r),n.trackByOps!==null&&n.trackByOps.prepend(Ho(t,r,!1));break;case b.Animation:case b.AnimationListener:case b.Listener:case b.TwoWayListener:n.handlerOps.prepend(Ho(t,r,!0));break}t.update.prepend(Ho(t,r,!1))}function mx(t,e){let r={view:t.xref,viewContextVariable:{kind:Ze.Context,name:null,view:t.xref},contextVariables:new Map,aliases:t.aliases,references:[],letDeclarations:[],parent:e};for(let n of t.contextVariables.keys())r.contextVariables.set(n,{kind:Ze.Identifier,name:null,identifier:n,local:!1});for(let n of t.create)switch(n.kind){case b.ElementStart:case b.ConditionalCreate:case b.ConditionalBranchCreate:case b.Template:if(!Array.isArray(n.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let i=0;i<n.localRefs.length;i++)r.references.push({name:n.localRefs[i].name,targetId:n.xref,targetSlot:n.handle,offset:i,variable:{kind:Ze.Identifier,name:null,identifier:n.localRefs[i].name,local:!1}});break;
22case b.DeclareLet:r.letDeclarations.push({targetId:n.xref,targetSlot:n.handle,variable:{kind:Ze.Identifier,name:null,identifier:n.declaredName,local:!1}});break}return r}function Ho(t,e,r){let n=[];e.view!==t.xref&&n.push(Cn(t.job.allocateXrefId(),e.viewContextVariable,new Pl,rr.None));let i=t.job.views.get(e.view);for(let[s,a]of i.contextVariables){let o=new Nn(e.view),l=a===ug?o:new jt(o,a);n.push(Cn(t.job.allocateXrefId(),e.contextVariables.get(s),l,rr.None))}for(let s of i.aliases)n.push(Cn(t.job.allocateXrefId(),s,s.expression.clone(),rr.AlwaysInline));for(let s of e.references)n.push(Cn(t.job.allocateXrefId(),s.variable,new kl(s.targetId,s.targetSlot,s.offset),rr.None));if(e.view!==t.xref||r)for(let s of e.letDeclarations)n.push(Cn(t.job.allocateXrefId(),s.variable,new La(s.targetId,s.targetSlot),rr.None));return e.parent!==null&&n.push(...Ho(t,e.parent,!1)),n}function gx(t){for(let e of t.units)for(let r of e.ops())ze(r,n=>n instanceof Ba?$(t.addConst(n.expr)):n,ye.None)}var md="style.",gd="class.",vx="style!",vd="class!",yd="!important";function yx(t){for(let e of t.root.update)if(e.kind===b.Binding&&e.bindingKind===K.Property)if(e.name.endsWith(yd)&&(e.name=e.name.substring(0,e.name.length-yd.length)),e.name.startsWith(md)){e.bindingKind=K.StyleProperty,e.name=e.name.substring(md.length),Sx(e.name)||(e.name=Ex(e.name));let{property:r,suffix:n}=Rc(e.name);e.name=r,e.unit=n}else e.name.startsWith(vx)?(e.bindingKind=K.StyleProperty,e.name="style"):e.name.startsWith(gd)?(e.bindingKind=K.ClassName,e.name=Rc(e.name.substring(gd.length)).property):e.name.startsWith(vd)&&(e.bindingKind=K.ClassName,e.name=Rc(e.name.substring(vd.length)).property)}function Sx(t){return t.startsWith("--")}function Ex(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Rc(t){let e=t.indexOf("!important");e!==-1&&(t=e>0?t.substring(0,e):"");let r=null,n=t,i=t.lastIndexOf(".");return i>0&&(r=t.slice(i+1),n=t.substring(0,i)),{property:n,suffix:r}}function Lu(t,e=!1){return yt(Object.keys(t).map(r=>({key:r,quoted:e,value:t[r]})))}var Nu=class{visitText(e){return e.value}visitContainer(e){return e.children.map(r=>r.visit(this)).join("")}visitIcu(e){let r=Object.keys(e.cases).map(i=>`${i} {${e.cases[i].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${r.join(" ")}}`}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(r=>r.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(r=>r.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,r){return this.formatPh(e.name)}formatPh(e){return`{${Ya(e,!1)}}`}},xx=new Nu;function mg(t){return t.visit(xx)}var ln=class{sourceSpan;i18n;constructor(e,r){this.sourceSpan=e,this.i18n=r}},bi=class extends ln{value;tokens;constructor(e,r,n,i){super(r,i),this.value=e,this.tokens=n}visit(e,r){return e.visitText(this,r)}},si=class extends ln{switchValue;type;cases;switchValueSourceSpan;constructor(e,r,n,i,s,a){super(i,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=s}visit(e,r){return e.visitExpansion(this,r)}},Ol=class{value;expression;sourceSpan;valueSourceSpan;expSourceSpan;constructor(e,r,n,i,s){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=i,this.expSourceSpan=s}visit(e,r){return e.visitExpansionCase(this,r)}},Fu=class extends ln{name;value;keySpan;valueSpan;valueTokens;constructor(e,r,n,i,s,a,o){super(n,o),this.name=e,this.value=r,this.keySpan=i,this.valueSpan=s,this.valueTokens=a}visit(e,r){return e.visitAttribute(this,r)}},er=class extends ln{name;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;isVoid;constructor(e,r,n,i,s,a,o,l=null,c,u){super(a,u),this.name=e,this.attrs=r,this.directives=n,this.children=i,this.isSelfClosing=s,this.startSourceSpan=o,this.endSourceSpan=l,this.isVoid=c}visit(e,r){return e.visitElement(this,r)}},Oa=class{value;sourceSpan;constructor(e,r){this.value=e,this.sourceSpan=r}visit(e,r){return e.visitComment(this,r)}},tr=class extends ln{name;parameters;children;nameSpan;startSourceSpan;endSourceSpan;constructor(e,r,n,i,s,a,o=null,l){super(i,l),this.name=e,this.parameters=r,this.children=n,this.nameSpan=s,this.startSourceSpan=a,this.endSourceSpan=o}visit(e,r){return e.visitBlock(this,r)}},At=class extends ln{componentName;tagName;fullName;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;constructor(e,r,n,i,s,a,o,l,c,u=null,d){super(l,d),this.componentName=e,this.tagName=r,this.fullName=n,this.attrs=i,this.directives=s,this.children=a,this.isSelfClosing=o,this.startSourceSpan=c,this.endSourceSpan=u}visit(e,r){return e.visitComponent(this,r)}},Bu=class{name;attrs;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,r,n,i,s=null){this.name=e,this.attrs=r,this.sourceSpan=n,this.startSourceSpan=i,this.endSourceSpan=s}visit(e,r){return e.visitDirective(this,r)}},$l=class{expression;sourceSpan;constructor(e,r){this.expression=e,this.sourceSpan=r}visit(e,r){return e.visitBlockParameter(this,r)}},Vl=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(e,r,n,i,s){this.name=e,this.value=r,this.sourceSpan=n,this.nameSpan=i,this.valueSpan=s}visit(e,r){return e.visitLetDeclaration(this,r)}};function Ie(t,e,r=null){let n=[],i=t.visit?s=>t.visit(s,r)||s.visit(t,r):s=>s.visit(t,r);return e.forEach(s=>{let a=i(s);a&&n.push(a)}),n}var $a
vendor: 35,739 bytes, lines 22-23
22={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:`
23`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:"	",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},
23gg="\uE500";$a.ngsp=gg;var Ru=class{tokens;errors;nonNormalizedIcuExpressions;constructor(e,r,n){this.tokens=e,this.errors=r,this.nonNormalizedIcuExpressions=n}};function bx(t,e,r,n={}){let i=new $u(new Tl(t,e),r,n);return i.tokenize(),new Ru(Dx(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var wx=/\r\n?/g;function Ri(t){return`Unexpected character "${t===tt?"EOF":String.fromCharCode(t)}"`}function Sd(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or  "&#x<hex>;" syntax`}function Cx(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var Ou=(function(t){return t.HEX="hexadecimal",t.DEC="decimal",t})(Ou||{}),Tx=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],$u=class{_getTagDefinition;_cursor;_tokenizeIcu;_interpolationConfig;_leadingTriviaCodePoints;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(e,r,n){this._getTagDefinition=r,this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Or,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(s=>s.codePointAt(0)||0);let i=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new Vu(e,i):new zl(e,i),this._preserveLineEndings=n.preserveLineEndings||
23!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0,this._selectorlessEnabled=n.selectorlessEnabled??!1;try{this._cursor.init()}catch(s){this.handleError(s)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(wx,`
24`)}tokenize(){for(;this._cursor.peek()!==tt;){let e=this._cursor.clone();try{this._attemptCharCode(Yi)?this._attemptCharCode(yu)?this._attemptCharCode(kn)?this._consumeCdata(e):this._attemptCharCode(wl)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(yr)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===Ni&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(mt)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(41),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(n=>_a(n)?!e:Mx(n)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._requireCharCode(Ni),this._beginToken(24,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===xr)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Le),this._attemptCharCode(dt))this._attemptCharCodeUntilFn(Le);else{r.type=28;return}this._attemptCharCode(Er)?(this._beginToken(25),this._endToken([])):r.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(xd);this._cursor.peek()!==dt&&this._cursor.peek()!==tt;){this._beginToken(27);let e=this._cursor.clone(),r=null,n=0;for(;this._cursor.peek()!==$t&&this._cursor.peek()!==tt||r!==null;){let i=this._cursor.peek();if(i===Zi)this._cursor.advance();else if(i===r)r=null;else if(r===null&&Xs(i))r=i;else if(i===xr&&r===null)n++;else if(i===dt&&r===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(xd)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(29,e),_a(this._cursor.peek()))this._attemptCharCodeUntilFn(Le);else{let i=this._endToken([this._cursor.getChars(e)]);i.type=32;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Le),!this._attemptCharCode(ct)){r.type=32;return}this._attemptCharCodeUntilFn(i=>Le(i)&&!Cl(i)),this._consumeLetDeclarationValue(),this._cursor.peek()===$t?(this._beginToken(31),this._endToken([]),this._cursor.advance()):(r.type=32,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(n=>ls(n)||n===ac||n===On||r&&Sr(n)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==tt;){let r=this._cursor.peek();if(r===$t)break;Xs(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(n=>n===Zi?(this._cursor.advance(),!1):n===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Px(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===mt){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new ne(this._cursor.getSpan(r),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new ne(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new ne(r,e);return this._currentTokenStart=null,this._currentTokenType=null,n}handleError(e){if(e instanceof Va&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof ne)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return Ix(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Ri(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(e){let r=e.length;if(this._cursor.charsLeft()<r)return!1;let n=this._cursor.clone();for(let i=0;i<r;i++)if(!this._attemptCharCode(e.charCodeAt(i)))return this._cursor=n,!1;return!0}_attemptStrCaseInsensitive(e){for(let r=0;r<e.length;r++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(r)))return!1;return!0}_requireStr(e){let r=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(Ri(this._cursor.peek()),this._cursor.getSpan(r))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,r){let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(n)<r)throw this._createError(Ri(this._cursor.peek()),this._cursor.getSpan(n))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let r=e.length;if(this._cursor.charsLeft()<r)return!1;let n=this._cursor.clone();for(let i=0;i<r;i++){if(n.peek()!==e.charCodeAt(i))return!1;n.advance()}return!0}_isBlockStart(){return this._cursor.peek()===Ni&&Tx.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===Ni&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(9);let r=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(Bm)){let n=this._attemptCharCode(qm)||this._attemptCharCode(W0),i=this._cursor.clone();if(this._attemptCharCodeUntilFn(_x),this._cursor.peek()!=$t){this._cursor.advance();let a=n?Ou.HEX:Ou.DEC;throw this._createError(Cx(a,this._cursor.getChars(r)),this._cursor.getSpan())}let s=this._cursor.getChars(i);this._cursor.advance();try{let a=parseInt(s,n?16:10);this._endToken([String.fromCodePoint(a),this._cursor.getChars(r)])}catch{throw this._createError(Sd(this._cursor.getChars(r)),this._cursor.getSpan())}}else{let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(kx),this._cursor.peek()!=$t)this._beginToken(e,r),this._cursor=n,this._endToken(["&"]);else{let i=this._cursor.getChars(n);this._cursor.advance();let s=$a.hasOwnProperty(i)&&$a[i];if(!s)throw this._createError(Sd(i),this._cursor.getSpan(r));this._endToken([s,`&${i};`])}}}_consumeRawText(e,r){this._beginToken(e?6:7);let n=[];for(;;){let i=this._cursor.clone(),s=r();if(this._cursor=i,s)break;e&&this._cursor.peek()===bl?(this._endToken([this._processCarriageReturns(n.join(""))]),n.length=0,this._consumeEntity(6),this._beginToken(6)):n.push(this._readChar())}this._endToken([this._processCarriageReturns(n.join(""))])}_consumeComment(e){this._beginToken(10,e),this._requireCharCode(wl),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e);let r=this._cursor.clone();this._attemptUntilChar(Kt);let n=this._cursor.getChars(r);this._cursor.advance(),this._endToken([n])}_consumePrefixAndName(e){let r=this._cursor.clone(),n="";for(;this._cursor.peek()!==en&&!Ax(this._cursor.peek());)this._cursor.advance();let i;
24this._cursor.peek()===en?(n=this._cursor.getChars(r),this._cursor.advance(),i=this._cursor.clone()):i=r,this._requireCharCodeUntilFn(e,n===""?0:1);let s=this._cursor.getChars(i);return[n,s]}_consumeTagOpen(e){let r,n,i,s;try{if(this._selectorlessEnabled&&ko(this._cursor.peek()))s=this._consumeComponentOpenStart(e),[i,n,r]=s.parts,n&&(i+=`:${n}`),r&&(i+=`:${r}`),this._attemptCharCodeUntilFn(Le);else{if(!ls(this._cursor.peek()))throw this._createError(Ri(this._cursor.peek()),this._cursor.getSpan(e));s=this._consumeTagOpenStart(e),n=s.parts[0],r=i=s.parts[1],this._attemptCharCodeUntilFn(Le)}for(;!wd(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===Ni){let o=this._cursor.clone(),l=o.clone();l.advance(),ko(l.peek())&&this._consumeDirective(o,l)}else this._consumeAttribute();s.type===33?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(o){if(o instanceof ne){s?s.type=s.type===33?37:4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}let a=this._getTagDefinition(r).getContentType(n);a===Rr.RAW_TEXT?this._consumeRawTextWithTagClose(s,i,!1):a===Rr.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(s,i,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(Yi)||!this._attemptCharCode(yr)||(this._attemptCharCodeUntilFn(Le),!this._attemptStrCaseInsensitive(r))?!1:(this._attemptCharCodeUntilFn(Le),this._attemptCharCode(Kt))),this._beginToken(e.type===33?36:3),this._requireCharCodeUntilFn(i=>i===Kt,3),this._cursor.advance(),this._endToken(e.parts)}_consumeTagOpenStart(e){this._beginToken(0,e);let r=this._consumePrefixAndName(Wn);return this._endToken(r)}_consumeComponentOpenStart(e){this._beginToken(33,e);let r=this._consumeComponentName();return this._endToken(r)}_consumeComponentName(){let e=this._cursor.clone();for(;bd(this._cursor.peek());)this._cursor.advance();let r=this._cursor.getChars(e),n="",i="";
24return this._cursor.peek()===en&&(this._cursor.advance(),[n,i]=this._consumePrefixAndName(Wn)),[r,n,i]}_consumeAttribute(){this._consumeAttributeName(),this._attemptCharCodeUntilFn(Le),this._attemptCharCode(ct)&&(this._attemptCharCodeUntilFn(Le),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Le)}_consumeAttributeName(){let e=this._cursor.peek();if(e===Aa||e===Ta)throw this._createError(Ri(e),this._cursor.getSpan());this._beginToken(14);let r;if(this._openDirectiveCount>0){let i=0;r=s=>{if(this._openDirectiveCount>0){if(s===xr)i++;else if(s===dt){if(i===0)return!0;i--}}return Wn(s)}}else if(e===kn){let i=0;r=s=>(s===kn?i++:s===ei&&i--,i<=0?Wn(s):Cl(s))}else r=Wn;let n=this._consumePrefixAndName(r);this._endToken(n)}_consumeAttributeValue(){if(this._cursor.peek()===Aa||this._cursor.peek()===Ta){let e=this._cursor.peek();this._consumeQuote(e);let r=()=>this._cursor.peek()===e;this._consumeWithInterpolation(16,17,r,r),this._consumeQuote(e)}else{let e=()=>Wn(this._cursor.peek());this._consumeWithInterpolation(16,17,e,e)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(yr)?2:1;this._beginToken(e),this._requireCharCode(Kt),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(yr)?35:34;this._beginToken(e),this._requireCharCode(Kt),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let n=e.clone();for(;n.peek()!==Kt&&!ko(n.peek());)n.advance();if(ko(n.peek())){this._beginToken(36,e);let i=this._consumeComponentName();this._attemptCharCodeUntilFn(Le),this._requireCharCode(Kt),this._endToken(i);return}}this._beginToken(3,e),this._attemptCharCodeUntilFn(Le);let r=this._consumePrefixAndName(Wn);this._attemptCharCodeUntilFn(Le),this._requireCharCode(Kt),this._endToken(r)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(Er),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(sr),r=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let i=this._endToken([e]);r!==e&&this.nonNormalizedIcuExpressions.push(i)}this._requireCharCode(sr),this._attemptCharCodeUntilFn(Le),this._beginToken(7);let n=this._readUntil(sr);this._endToken([n]),this._requireCharCode(sr),this._attemptCharCodeUntilFn(Le)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(Er).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Le),this._beginToken(21),this._requireCharCode(Er),this._endToken([]),this._attemptCharCodeUntilFn(Le),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(mt),this._endToken([]),this._attemptCharCodeUntilFn(Le),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(mt),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,r,n,i){this._beginToken(e);let s=[];for(;!n();){let a=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(s.join(""))],a),s.length=0,this._consumeInterpolation(r,a,i),this._beginToken(e)):this._cursor.peek()===bl?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(e),this._beginToken(e)):s.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(s.join(""))])}_consumeInterpolation(e,r,n){let i=[];this._beginToken(e,r),i.push(this._interpolationConfig.start);let s=this._cursor.clone(),a=null,o=!1;for(;this._cursor.peek()!==tt&&(n===null||!n());){let l=this._cursor.clone();if(this._isTagStart()){this._cursor=l,i.push(this._getProcessedChars(s,l)),this._endToken(i);return}if(a===null)if(this._attemptStr(this._interpolationConfig.end)){i.push(this._getProcessedChars(s,l)),i.push(this._interpolationConfig.end),this._endToken(i);return}else this._attemptStr("//")&&(o=!0);let c=this._cursor.peek();this._cursor.advance(),c===Zi?this._cursor.advance():c===a?a=null:!o&&a===null&&Xs(c)&&(a=c)}i.push(this._getProcessedChars(s,this._cursor)),this._endToken(i)}_consumeDirective(e,r){for(this._requireCharCode(Ni),this._cursor.advance();bd(this._cursor.peek());)this._cursor.advance();this._beginToken(38,e);let n=this._cursor.getChars(r);if(this._endToken([n]),this._attemptCharCodeUntilFn(Le),this._cursor.peek()===xr){for(this._openDirectiveCount++,this._beginToken(39),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Le);!wd(this._cursor.peek())&&this._cursor.peek()!==dt;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(Le),this._openDirectiveCount--,this._cursor.peek()!==dt){if(this._cursor.peek()===Kt||this._cursor.peek()===yr)return;throw this._createError(Ri(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(40),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Le)}}_getProcessedChars(e,r){return this._processCarriageReturns(r.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===tt||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===mt&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===mt))}
24_isTagStart(){if(this._cursor.peek()===Yi){let e=this._cursor.clone();e.advance();let r=e.peek();if(vi<=r&&r<=Za||Rn<=r&&r<=vs||r===yr||r===yu)return!0}return!1}_readUntil(e){let r=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===21}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===19}isExpansionFormStart(){if(this._cursor.peek()!==Er)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!r}return!0}};function Le(t){return!_a(t)||t===tt}function Wn(t){return _a(t)||t===Kt||t===Yi||t===yr||t===Aa||t===Ta||t===ct||t===tt}function Ax(t){return(t<vi||Za<t)&&(t<Rn||vs<t)&&(t<Mh||t>Om)}function _x(t){return t===$t||t===tt||!Z0(t)}function kx(t){return t===$t||t===tt||!ls(t)}function Px(t){return t!==mt}function Ix(t,e){return Ed(t)===Ed(e)}function Ed(t){return t>=vi&&t<=Za?t-vi+Rn:t}function Mx(t){return ls(t)||Sr(t)||t===On}function xd(t){return t!==$t&&Le(t)}function ko(t){return t===On||t>=Rn&&t<=vs}function bd(t){return ls(t)||Sr(t)||t===On}function wd(t){return t===yr||t===Kt||t===Yi||t===tt}function Dx(t){let e=[],r;for(let n=0;n<t.length;n++){let i=t[n];r&&r.type===5&&i.type===5||r&&r.type===16&&i.type===16?(r.parts[0]+=i.parts[0],r.sourceSpan.end=i.sourceSpan.end):(r=i,e.push(r))}return e}var zl=class t{state;file;input;end;constructor(e,r){if(e instanceof t){this.file=e.file,this.input=e.input,this.end=e.end;let n=e.state;this.state={peek:n.peek,offset:n.offset,line:n.line,column:n.column}}else{if(!r)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol}}}clone(){return new t(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,r){e=e||this;let n=e;if(r)for(;this.diff(e)>0&&r.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let i=this.locationFromCursor(e),s=this.locationFromCursor(this),a=n!==e?this.locationFromCursor(n):i;return new se(i,s,a)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Va('Unexpected character "EOF"',this);let r=this.charAt(e.offset);r===ii?(e.line++,e.column=0):Cl(r)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?tt:this.charAt(e.offset)}locationFromCursor(e){return new ka(e.file,e.state.offset,e.state.line,e.state.column)}},Vu=class t extends zl{internalState;constructor(e,r){e instanceof t?(super(e),this.internalState=G({},e.internalState)):(super(e,r),this.internalState=this.state)}
24advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let r=e.clone(),n="";for(;r.internalState.offset<this.internalState.offset;)n+=String.fromCodePoint(r.peek()),r.advance();return n}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===Zi)if(this.internalState=G({},this.state),this.advanceState(this.internalState),e()===$m)this.state.peek=ii;else if(e()===Vm)this.state.peek=Ih;else if(e()===Gm)this.state.peek=Lm;else if(e()===zm)this.state.peek=Ph;else if(e()===X0)this.state.peek=z0;else if(e()===Dh)this.state.peek=Nm;else if(e()===Hm)if(this.advanceState(this.internalState),e()===Er){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;e()!==mt;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(e()===qm){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(Jf(e())){let r="",n=0,i=this.clone();for(;Jf(e())&&n<3;)i=this.clone(),r+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=i.internalState}else Cl(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,r){let n=this.input.slice(e.internalState.offset,e.internalState.offset+r),i=parseInt(n,16);if(isNaN(i))throw e.state=e.internalState,new Va("Invalid hexadecimal escape sequence",e);return i}},Va=class extends Error{msg;cursor;constructor(e,r){super(e),this.msg=e,this.cursor=r,Object.setPrototypeOf(this,new.target.prototype)}},Ve=class t extends ne{elementName;static create(e,r,n){return new t(e,r,n)}constructor(e,r,n){super(r,n),this.elementName=e}},Hl=class{rootNodes;errors;constructor(e,r){this.rootNodes=e,this.errors=r}},Lx=class{getTagDefinition;constructor(e){this.getTagDefinition=e}parse(e,r,n){let i=bx(e,r,this.getTagDefinition,n),s=new zu(i.tokens,this.getTagDefinition);return s.build(),new Hl(s.rootNodes,[...i.errors,...s.errors])}},zu=class t{tokens;tagDefinitionResolver;_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(e,r){this.tokens=e,this.tagDefinitionResolver=r,this._advance()}build(){for(;this._peek.type!==41;)this._peek.type===0||this._peek.type===4?this._consumeElementStartTag(this._advance()):this._peek.type===3?this._consumeElementEndTag(this._advance()):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===19?this._consumeExpansion(this._advance()):this._peek.type===24?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===32?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===33||this._peek.type===37?this._consumeComponentStartTag(this._advance()):this._peek.type===36?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof tr&&this.errors.push(Ve.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){this._consumeText(this._advance()),this._advanceIf(13)}_consumeComment(e){let r=this._advanceIf(7),n=this._advanceIf(11),i=r!=null?r.parts[0].trim():null,
24s=n==null?e.sourceSpan:new se(e.sourceSpan.start,n.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Oa(i,s))}_consumeExpansion(e){let r=this._advance(),n=this._advance(),i=[];for(;this._peek.type===20;){let a=this._parseExpansionCase();if(!a)return;i.push(a)}if(this._peek.type!==23){this.errors.push(Ve.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let s=new se(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new si(r.parts[0],n.parts[0],i,s,r.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==21)return this.errors.push(Ve.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;let i=this._advance();n.push({type:41,parts:[],sourceSpan:i.sourceSpan});let s=new t(n,this.tagDefinitionResolver);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;let a=new se(e.sourceSpan.start,i.sourceSpan.end,e.sourceSpan.fullStart),o=new se(r.sourceSpan.start,i.sourceSpan.end,r.sourceSpan.fullStart);return new Ol(e.parts[0],s.rootNodes,a,e.sourceSpan,o)}_collectExpansionExpTokens(e){let r=[],n=[21];for(;;){if((this._peek.type===19||this._peek.type===21)&&n.push(this._peek.type),this._peek.type===22)if(Cd(n,21)){if(n.pop(),n.length===0)return r}else return this.errors.push(Ve.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(Cd(n,19))n.pop();else return this.errors.push(Ve.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===41)return this.errors.push(Ve.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_consumeText(e){let r=[e],n=e.sourceSpan,i=e.parts[0];if(i.length>0&&i[0]===`
25`){let s=this._getContainer();s!=null&&s.children.length===0&&this._getTagDefinition(s)?.ignoreFirstLf&&(i=i.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[i]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?i+=e.parts.join("").replace(/&([^;]+);/g,Td):e.type===9?i+=e.parts[0]:i+=e.parts.join("");if(i.length>0){let s=e.sourceSpan;this._addToParent(new bi(i,new se(n.start,s.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getContainer();e!==null&&this._getTagDefinition(e)?.isVoid&&this._containerStack.pop()}_consumeElementStartTag(e){let r=[],n=[];this._consumeAttributesAndDirectives(r,n);let i=this._getElementFullName(e,this._getClosestElementLikeParent()),s=this._getTagDefinition(i),a=!1;this._peek.type===2?(this._advance(),a=!0,s?.canSelfClose||cu(i)!==null||s?.isVoid||this.errors.push(Ve.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))):this._peek.type===1&&(this._advance(),a=!1);let o=this._peek.sourceSpan.fullStart,l=new se(e.sourceSpan.start,o,e.sourceSpan.fullStart),c=new se(e.sourceSpan.start,o,e.sourceSpan.fullStart),u=new er(i,r,n,[],a,l,c,void 0,s?.isVoid??!1),d=this._getContainer(),f=d!==null&&!!this._getTagDefinition(d)?.isClosedByChild(u.name);this._pushContainer(u,f),a?this._popContainer(i,er,l):e.type===4&&(this._popContainer(i,er,null),this.errors.push(Ve.create(i,l,`Opening tag "${i}" not terminated.`)))}_consumeComponentStartTag(e){let r=e.parts[0],n=[],i=[];this._consumeAttributesAndDirectives(n,i);let s=this._getClosestElementLikeParent(),a=this._getComponentTagName(e,s),o=this._getComponentFullName(e,s),l=this._peek.type===35;this._advance();let c=this._peek.sourceSpan.fullStart,u=new se(e.sourceSpan.start,c,e.sourceSpan.fullStart),d=new se(e.sourceSpan.start,c,e.sourceSpan.fullStart),f=new At(r,a,o,n,i,[],l,u,d,void 0),h=this._getContainer(),p=h!==null&&f.tagName!==null&&!!this._getTagDefinition(h)?.isClosedByChild(f.tagName);this._pushContainer(f,p),l?this._popContainer(o,At,u):e.type===37&&(this._popContainer(o,At,null),this.errors.push(Ve.create(o,u,`Opening tag "${o}" not terminated.`)))}_consumeAttributesAndDirectives(e,r){for(;this._peek.type===14||this._peek.type===38;
25)this._peek.type===38?r.push(this._consumeDirective(this._peek)):e.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(e){let r=this._getComponentFullName(e,this._getClosestElementLikeParent());if(!this._popContainer(r,At,e.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],i;n instanceof At&&n.componentName===e.parts[0]?i=`, did you mean "${n.fullName}"?`:i=". It may happen when the tag has already been closed by another tag.";let s=`Unexpected closing tag "${r}"${i}`;this.errors.push(Ve.create(r,e.sourceSpan,s))}}_getTagDefinition(e){return typeof e=="string"?this.tagDefinitionResolver(e):e instanceof er?this.tagDefinitionResolver(e.name):e instanceof At&&e.tagName!==null?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){let r=this._getElementFullName(e,this._getClosestElementLikeParent());if(this._getTagDefinition(r)?.isVoid)this.errors.push(Ve.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(r,er,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Ve.create(r,e.sourceSpan,n))}}_popContainer(e,r,n){let i=!1;for(let s=this._containerStack.length-1;s>=0;s--){let a=this._containerStack[s];if(((a instanceof At?a.fullName:a.name)===e||e===null)&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=n!==null?n.end:a.sourceSpan.end,this._containerStack.splice(s,this._containerStack.length-s),!i;(a instanceof tr||!this._getTagDefinition(a)?.closedByParent)&&(i=!0)}return!1}_consumeAttr(e){let r=zo(e.parts[0],e.parts[1]),n=e.sourceSpan.end;this._peek.type===15&&this._advance();let i="",s=[],a,o;if(this._peek.type===16)for(a=this._peek.sourceSpan,o=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let u=this._advance();s.push(u),u.type===17?i+=u.parts.join("").replace(/&([^;]+);/g,Td):u.type===9?i+=u.parts[0]:i+=u.parts.join(""),o=n=u.sourceSpan.end}this._peek.type===15&&(n=this._advance().sourceSpan.end);let c=a&&o&&new se(a.start,o,a.fullStart);return new Fu(r,i,new se(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,c,s.length>0?s:void 0,void 0)}_consumeDirective(e){let r=[],n=e.sourceSpan.end,i=null;if(this._advance(),this._peek.type===39){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===14;)r.push(this._consumeAttr(this._advance()));this._peek.type===40?(i=this._peek.sourceSpan,this._advance()):this.errors.push(Ve.create(null,e.sourceSpan,"Unterminated directive definition"))}let s=new se(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new se(s.start,i===null?e.sourceSpan.end:i.end,s.fullStart);return new Bu(e.parts[0],r,a,s,i)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===27;){let o=this._advance();r.push(new $l(o.parts[0],o.sourceSpan))}this._peek.type===25&&this._advance();let n=this._peek.sourceSpan.fullStart,i=new se(e.sourceSpan.start,n,e.sourceSpan.fullStart),s=new se(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new tr(e.parts[0],r,[],i,e.sourceSpan,s);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,tr,e.sourceSpan)||this.errors.push(Ve.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===27;){let o=this._advance();r.push(new $l(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,i=new se(e.sourceSpan.start,n,e.sourceSpan.fullStart),s=new se(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new tr(e.parts[0],r,[],i,e.sourceSpan,s);this._pushContainer(a,!1),this._popContainer(null,tr,null),this.errors.push(Ve.create(e.parts[0],i,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],n,i;if(this._peek.type!==30){this.errors.push(Ve.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==31){this.errors.push(Ve.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else i=this._advance();let s=i.sourceSpan.fullStart,a=new se(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(r),l=e.sourceSpan.start.moveBy(o),c=new se(l,e.sourceSpan.end),u=new Vl(r,n.parts[0],a,c,n.sourceSpan);this._addToParent(u)}_consumeIncompleteLet(e){let r=e.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let i=e.sourceSpan.toString().lastIndexOf(r),s=e.sourceSpan.start.moveBy(i),a=new se(s,e.sourceSpan.end),o=new se(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),l=new Vl(r,"",e.sourceSpan,a,o);this._addToParent(l)}this.errors.push(Ve.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let e=this._containerStack.length-1;e>-1;e--){let r=this._containerStack[e];if(r instanceof er||r instanceof At)return r}return null}_addToParent(e){let r=this._getContainer();r===null?this.rootNodes.push(e):r.children.push(e)}_getElementFullName(e,r){let n=this._getPrefix(e,r);return zo(n,e.parts[1])}_getComponentFullName(e,r){let n=e.parts[0],i=this._getComponentTagName(e,r);return i===null?n:i.startsWith(":")?n+i:`${n}:${i}`}_getComponentTagName(e,r){let n=this._getPrefix(e,r),i=e.parts[2];return!n&&!i?null:!n&&i?i:zo(n,i||"ng-component")}_getPrefix(e,r){let n,i;if(e.type===33||e.type===37||e.type===36?(n=e.parts[1],i=e.parts[2]):(n=e.parts[0],i=e.parts[1]),n=n||this._getTagDefinition(i)?.implicitNamespacePrefix||"",!n&&r){let s=r instanceof er?r.name:r.tagName;if(s!==null){let a=Tr(s)[1],o=this._getTagDefinition(a);o!==null&&!o.preventNamespaceInheritance&&(n=cu(s))}}return n}};function Cd(t,e){return t.length>0&&t[t.length-1]===e}function Td(t,e){return $a[e]!==void 0?$a[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}
25var vg="ngPreserveWhitespaces",Ad=new Set(["pre","template","textarea","script","style"]),yg=` \f
26\r	\v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,Nx=new RegExp(`[^${yg}]`),Fx=new RegExp(`[${yg}]{2,}`,"g");function _d(t){return t.some(e=>e.name===vg)}function Sg(t){return t.replace(new RegExp(gg,"g")," ")}var Gl=class{preserveSignificantWhitespace;originalNodeMap;requireContext;icuExpansionDepth=0;constructor(e,r,n=!0){this.preserveSignificantWhitespace=e,this.originalNodeMap=r,this.requireContext=n}visitElement(e,r){if(Ad.has(e.name)||_d(e.attrs)){let i=new er(e.name,Nr(this,e.attrs),Nr(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n);return this.originalNodeMap?.set(i,e),i}let n=new er(e.name,e.attrs,e.directives,Nr(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n);return this.originalNodeMap?.set(n,e),n}visitAttribute(e,r){return e.name!==vg?e:null}visitText(e,r){let n=e.value.match(Nx),i=r&&(r.prev instanceof si||r.next instanceof si);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(n||i){let a=e.tokens.map(u=>u.type===5?$x(u):u);if(!this.preserveSignificantWhitespace&&a.length>0){let u=a[0];a.splice(0,1,Bx(u,r));let d=a[a.length-1];a.splice(a.length-1,1,Rx(d,r))}let o=xg(e.value),l=this.preserveSignificantWhitespace?o:Ox(o,r),c=new bi(l,e.sourceSpan,a,e.i18n);return this.originalNodeMap?.set(c,e),c}return null}visitComment(e,r){return e}visitExpansion(e,r){this.icuExpansionDepth++;let n;try{n=new si(e.switchValue,e.type,Nr(this,e.cases),e.sourceSpan,e.switchValueSourceSpan,e.i18n)}finally{this.icuExpansionDepth--}return this.originalNodeMap?.set(n,e),n}visitExpansionCase(e,r){let n=new Ol(e.value,Nr(this,e.expression),e.sourceSpan,e.valueSourceSpan,e.expSourceSpan);return this.originalNodeMap?.set(n,e),n}visitBlock(e,r){let n=new tr(e.name,e.parameters,Nr(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan);return this.originalNodeMap?.set(n,e),n}visitBlockParameter(e,r){return e}visitLetDeclaration(e,r){return e}visitComponent(e,r){if(e.tagName&&Ad.has(e.tagName)||_d(e.attrs)){let i=new At(e.componentName,e.tagName,e.fullName,Nr(this,e.attrs),Nr(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(i,e),i}let n=new At(e.componentName,e.tagName,e.fullName,e.attrs,e.directives,Nr(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(n,e),n}visitDirective(e,r){return e}visit(e,r){if(this.requireContext&&!r)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function Bx(t,e){return t.type!==5||!!e?.prev?t:Eg(t,n=>n.trimStart())}function Rx(t,e){return t.type!==5||!!e?.next?t:Eg(t,n=>n.trimEnd())}function Ox(t,e){let r=!e?.prev,n=!e?.next,i=r?t.trimStart():t;return n?i.trimEnd():i}function $x({type:t,parts:e,sourceSpan:r}){return{type:t,parts:[xg(e[0])],sourceSpan:r}}function Eg({type:t,parts:e,sourceSpan:r},n){return{type:t,parts:[n(e[0])],sourceSpan:r}}function xg(t){return Sg(t).replace(Fx," ")}function Nr(t,e){let r=[];return e.forEach((n,i)=>{let s={prev:e[i-1],next:e[i+1]},a=n.visit(t,s);a&&r.push(a)}),r}var ce=(function(t){return t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.Error=7]="Error",t})(ce||{}),ai=(function(t){return t[t.Plain=0]="Plain",t[t.TemplateLiteralPart=1]="TemplateLiteralPart",t[t.TemplateLiteralEnd=2]="TemplateLiteralEnd",t})(ai||{}),Vx=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in"],za=class{tokenize(e){return new Hu(e).scan()}},Ar=class{index;end;type;numValue;strValue;constructor(e,r,n,i,s){this.index=e,this.end=r,this.type=n,this.numValue=i,this.strValue=s}isCharacter(e){return this.type===ce.Character&&this.numValue===e}isNumber(){return this.type===ce.Number}isString(){return this.type===ce.String}isOperator(e){return this.type===ce.Operator&&this.strValue===e}isIdentifier(){return this.type===ce.Identifier}isPrivateIdentifier(){return this.type===ce.PrivateIdentifier}isKeyword(){return this.type===ce.Keyword}isKeywordLet(){return this.type===ce.Keyword&&this.strValue==="let"}isKeywordAs(){return this.type===ce.Keyword&&this.strValue==="as"}isKeywordNull(){return this.type===ce.Keyword&&this.strValue==="null"}isKeywordUndefined(){return this.type===ce.Keyword&&this.strValue==="undefined"}isKeywordTrue(){return this.type===ce.Keyword&&this.strValue==="true"}isKeywordFalse(){return this.type===ce.Keyword&&this.strValue==="false"}isKeywordThis(){return this.type===ce.Keyword&&this.strValue==="this"}isKeywordTypeof(){return this.type===ce.Keyword&&this.strValue==="typeof"}isKeywordVoid(){return this.type===ce.Keyword&&this.strValue==="void"}isKeywordIn(){return this.type===ce.Keyword&&this.strValue==="in"}isError(){return this.type===ce.Error}toNumber(){return this.type===ce.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===ai.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===ai.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}toString(){switch(this.type){case ce.Character:case ce.Identifier:case ce.Keyword:case ce.Operator:case ce.PrivateIdentifier:case ce.String:case ce.Error:return this.strValue;case ce.Number:return this.numValue.toString();default:return null}}},Ys=class extends Ar{kind;constructor(e,r,n,i){super(e,r,ce.String,0,n),this.kind=i}};function Bs(t,e,r){return new Ar(t,e,ce.Character,r,String.fromCharCode(r))}function zx(t,e,r){return new Ar(t,e,ce.Identifier,0,r)}function Hx(t,e,r){return new Ar(t,e,ce.PrivateIdentifier,0,r)}function Gx(t,e,r){return new Ar(t,e,ce.Keyword,0,r)}function Rs(t,e,r){return new Ar(t,e,ce.Operator,0,r)}
26function qx(t,e,r){return new Ar(t,e,ce.Number,r,"")}function jx(t,e,r){return new Ar(t,e,ce.Error,0,r)}var Po=new Ar(-1,-1,ce.Character,0,""),Hu=class{input;tokens=[];length;peek=0;index=-1;braceStack=[];constructor(e){this.input=e,this.length=e.length,this.advance()}scan(){let e=this.scanToken();for(;e!==null;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?tt:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,r=this.length,n=this.peek,i=this.index;for(;n<=Fm;)if(++i>=r){n=tt;break}else n=e.charCodeAt(i);if(this.peek=n,this.index=i,i>=r)return null;if(kd(n))return this.scanIdentifier();if(Sr(n))return this.scanNumber(i);let s=i;switch(n){case Hs:return this.advance(),Sr(this.peek)?this.scanNumber(s):Bs(s,this.index,Hs);case xr:case dt:case kn:case ei:case sr:case en:case $t:return this.scanCharacter(s,n);case Er:return this.scanOpenBrace(s,n);case mt:return this.scanCloseBrace(s,n);case Aa:case Ta:return this.scanString();case Su:return this.advance(),this.scanTemplateLiteralPart(s);case Bm:return this.scanPrivateIdentifier();case Rm:return this.scanComplexOperator(s,"+",ct,"=");case wl:return this.scanComplexOperator(s,"-",ct,"=");case yr:return this.scanComplexOperator(s,"/",ct,"=");case H0:return this.scanComplexOperator(s,"%",ct,"=");case U0:return this.scanOperator(s,"^");case Yf:return this.scanStar(s);case Zf:return this.scanQuestion(s);case Yi:case Kt:return this.scanComplexOperator(s,String.fromCharCode(n),ct,"=");case yu:case ct:return this.scanComplexOperator(s,String.fromCharCode(n),ct,"=",ct,"=");case bl:return this.scanComplexOperator(s,"&",bl,"&",ct,"=");case Qf:return this.scanComplexOperator(s,"|",Qf,"|",ct,"=");case jm:for(;_a(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(n)}]`,0)}scanCharacter(e,r){return this.advance(),Bs(e,this.index,r)}scanOperator(e,r){return this.advance(),Rs(e,this.index,r)}scanOpenBrace(e,r){return this.braceStack.push("expression"),this.advance(),Bs(e,this.index,r)}scanCloseBrace(e,r){return this.advance(),this.braceStack.pop()==="interpolation"?(this.tokens.push(Bs(e,this.index,mt)),this.scanTemplateLiteralPart(this.index)):Bs(e,this.index,r)}scanComplexOperator(e,r,n,i,s,a){this.advance();let o=r;return this.peek==n&&(this.advance(),o+=i),s!=null&&this.peek==s&&(this.advance(),o+=a),Rs(e,this.index,o)}scanIdentifier(){let e=this.index;for(this.advance();Pd(this.peek);)this.advance();let r=this.input.substring(e,this.index);return Vx.indexOf(r)>-1?Gx(e,this.index,r):zx(e,this.index,r)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!kd(this.peek))return this.error("Invalid character [#]",-1);for(;Pd(this.peek);)this.advance();let r=this.input.substring(e,this.index);return Hx(e,this.index,r)}scanNumber(e){let r=this.index===e,n=!1;for(this.advance();;){if(!Sr(this.peek))if(this.peek===On){if(!Sr(this.input.charCodeAt(this.index-1))||!Sr(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);n=!0}else if(this.peek===Hs)r=!1;else if(Wx(this.peek)){if(this.advance(),Ux(this.peek)&&this.advance(),!Sr(this.peek))return this.error("Invalid exponent",-1);r=!1}else break;this.advance()}let i=this.input.substring(e,this.index);n&&(i=i.replace(/_/g,""));let s=r?Yx(i):parseFloat(i);return qx(e,this.index,s)}scanString(){let e=this.index,r=this.peek;this.advance();let n="",i=this.index,s=this.input;for(;this.peek!=r;)if(this.peek==Zi){let o=this.scanStringBackslash(n,i);if(typeof o!="string")return o;n=o,i=this.index}else{if(this.peek==tt)return this.error("Unterminated quote",0);this.advance()}let a=s.substring(i,this.index);return this.advance(),new Ys(e,this.index,n+a,ai.Plain)}scanQuestion(e){this.advance();let r="?";return this.peek===Zf?(r+="?",this.advance(),this.peek===ct&&(r+="=",this.advance())):this.peek===Hs&&(r+=".",this.advance()),Rs(e,this.index,r)}scanTemplateLiteralPart(e){let r="",n=this.index;for(;this.peek!==Su;)if(this.peek===Zi){let s=this.scanStringBackslash(r,n);
26if(typeof s!="string")return s;r=s,n=this.index}else if(this.peek===ac){let s=this.index;if(this.advance(),this.peek===Er)return this.braceStack.push("interpolation"),this.tokens.push(new Ys(e,s,r+this.input.substring(n,s),ai.TemplateLiteralPart)),this.advance(),Rs(s,this.index,this.input.substring(s,this.index))}else{if(this.peek===tt)return this.error("Unterminated template literal",0);this.advance()}let i=this.input.substring(n,this.index);return this.advance(),new Ys(e,this.index,r+i,ai.TemplateLiteralEnd)}error(e,r){let n=this.index+r;return jx(n,this.index,`Lexer Error: ${e} at column ${n} in expression [${this.input}]`)}scanStringBackslash(e,r){e+=this.input.substring(r,this.index);let n;if(this.advance(),this.peek===Hm){let i=this.input.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(i))n=parseInt(i,16);else return this.error(`Invalid unicode escape [\\u${i}]`,0);for(let s=0;s<5;s++)this.advance()}else n=Xx(this.peek),this.advance();return e+=String.fromCharCode(n),e}scanStar(e){this.advance();let r="*";return this.peek===Yf?(r+="*",this.advance(),this.peek===ct&&(r+="=",this.advance())):this.peek===ct&&(r+="=",this.advance()),Rs(e,this.index,r)}};function kd(t){return vi<=t&&t<=Za||Rn<=t&&t<=vs||t==On||t==ac}function Pd(t){return ls(t)||Sr(t)||t==On||t==ac}function Wx(t){return t==Y0||t==q0}function Ux(t){return t==wl||t==Rm}function Xx(t){switch(t){case $m:return ii;case Dh:return Nm;case Vm:return Ih;case zm:return Ph;case Gm:return Lm;default:return t}}function Yx(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Gu=class{strings;expressions;offsets;constructor(e,r,n){this.strings=e,this.expressions=r,this.offsets=n}},qu=class{templateBindings;warnings;errors;constructor(e,r,n){this.templateBindings=e,this.warnings=r,this.errors=n}};function wn(t){return t.start.toString()||"(unknown)"}var ql=class{_lexer;_supportsDirectPipeReferences;constructor(e,r=!1){this._lexer=e,this._supportsDirectPipeReferences=r}parseAction(e,r,n,i=Or){let s=[];this._checkNoInterpolation(s,e,r,i);let{stripped:a}=this._stripComments(e),o=this._lexer.tokenize(a),l=new Zn(e,r,n,o,1,s,0,this._supportsDirectPipeReferences).parseChain();return new Ot(l,e,wn(r),n,s)}parseBinding(e,r,n,i=Or){let s=[],a=this._parseBindingAst(e,r,n,i,s);return new Ot(a,e,wn(r),n,s)}checkSimpleExpression(e){let r=new ju;return e.visit(r),r.errors}parseSimpleBinding(e,r,n,i=Or){let s=[],a=this._parseBindingAst(e,r,n,i,s),o=this.checkSimpleExpression(a);return o.length>0&&s.push(ji(`Host binding expression cannot contain ${o.join(" ")}`,e,"",r)),new Ot(a,e,wn(r),n,s)}_parseBindingAst(e,r,n,i,s){this._checkNoInterpolation(s,e,r,i);let{stripped:a}=this._stripComments(e),o=this._lexer.tokenize(a);return new Zn(e,r,n,o,0,s,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(e,r,n,i,s){let a=this._lexer.tokenize(r),o=[];return new Zn(r,n,s,a,0,o,0,this._supportsDirectPipeReferences).parseTemplateBindings({source:e,span:new Ht(i,i+e.length)})}parseInterpolation(e,r,n,i,s=Or){let a=[],{strings:o,expressions:l,offsets:c}=this.splitInterpolation(e,r,a,i,s);if(l.length===0)return null;let u=[];for(let d=0;d<l.length;++d){let f=i?.[d*2+1]?.sourceSpan,h=l[d].text,{stripped:p,hasComments:g}=this._stripComments(h),E=this._lexer.tokenize(p);if(g&&p.trim().length===0&&E.length===0){a.push(ji("Interpolation expression cannot only contain a comment",e,`at column ${l[d].start} in`,r));continue}let m=new Zn(f?h:e,f||r,n,E,0,a,c[d],this._supportsDirectPipeReferences).parseChain();u.push(m)}return this.createInterpolationAst(o.map(d=>d.text),u,e,wn(r),n,a)}parseInterpolationExpression(e,r,n){let{stripped:i}=this._stripComments(e),s=this._lexer.tokenize(i),a=[],o=new Zn(e,r,n,s,0,a,0,this._supportsDirectPipeReferences).parseChain(),l=["",""];return this.createInterpolationAst(l,[o],e,wn(r),n,a)}createInterpolationAst(e,r,n,i,s,a){let o=new fi(0,n.length),l=new Xa(o,o.toAbsolute(s),e,r);return new Ot(l,n,i,s,a)}splitInterpolation(e,r,n,i,s=Or){let a=[],o=[],l=[],c=i?Zx(i):null,u=0,d=!1,f=!1,{start:h,end:p}=s;for(;u<e.length;)if(d){let g=u,E=g+h.length,m=this._getInterpolationEndIndex(e,p,E);if(m===-1){d=!1,f=!0;break}let v=m+p.length,y=e.substring(E,m);y.trim().length===0&&n.push(ji("Blank expressions are not allowed in interpolated strings",e,`at column ${u} in`,r)),o.push({text:y,start:g,end:v});let w=(c?.get(g)??g)+h.length;l.push(w),u=v,d=!1}else{let g=u;u=e.indexOf(h,u),u===-1&&(u=e.length);let E=e.substring(g,u);a.push({text:E,start:g,end:u}),d=!0}if(!d)if(f){let g=a[a.length-1];g.text+=e.substring(u),g.end=e.length}else a.push({text:e.substring(u),start:u,end:e.length});return new Gu(a,o,l)}wrapLiteralPrimitive(e,r,n){let i=new fi(0,e==null?0:e.length);return new Ot(new Rt(i,i.toAbsolute(n),e),e,typeof r=="string"?r:wn(r),n,[])}_stripComments(e){let r=this._commentStart(e);return r!=null?{stripped:e.substring(0,r),hasComments:!0}:{stripped:e,hasComments:!1}}_commentStart(e){let r=null;for(let n=0;n<e.length-1;n++){let i=e.charCodeAt(n),s=e.charCodeAt(n+1);if(i===yr&&s==yr&&r==null)return n;r===i?r=null:r==null&&Xs(i)&&(r=i)}return null}_checkNoInterpolation(e,r,n,{start:i,end:s}){let a=-1,o=-1;
26for(let l of this._forEachUnquotedChar(r,0))if(a===-1)r.startsWith(i)&&(a=l);else if(o=this._getInterpolationEndIndex(r,s,l),o>-1)break;a>-1&&o>-1&&e.push(ji(`Got interpolation (${i}${s}) where expression was expected`,r,`at column ${a} in`,n))}_getInterpolationEndIndex(e,r,n){for(let i of this._forEachUnquotedChar(e,n)){if(e.startsWith(r,i))return i;if(e.startsWith("//",i))return e.indexOf(r,i)}return-1}*_forEachUnquotedChar(e,r){let n=null,i=0;for(let s=r;s<e.length;s++){let a=e[s];Xs(e.charCodeAt(s))&&(n===null||n===a)&&i%2===0?n=n===null?a:null:n===null&&(yield s),i=a==="\\"?i+1:0}}},qs=(function(t){return t[t.None=0]="None",t[t.Writable=1]="Writable",t})(qs||{}),Zn=class{input;parseSourceSpan;absoluteOffset;tokens;parseFlags;errors;offset;supportsDirectPipeReferences;rparensExpected=0;rbracketsExpected=0;rbracesExpected=0;context=qs.None;sourceSpanCache=new Map;index=0;constructor(e,r,n,i,s,a,o,l){this.input=e,this.parseSourceSpan=r,this.absoluteOffset=n,this.tokens=i,this.parseFlags=s,this.errors=a,this.offset=o,this.supportsDirectPipeReferences=l}peek(e){let r=this.index+e;return r<this.tokens.length?this.tokens[r]:Po}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,r){let n=this.currentEndIndex;if(r!==void 0&&r>this.currentEndIndex&&(n=r),e>n){let i=n;n=e,e=i}return new fi(e,n)}sourceSpan(e,r){let n=`${e}@${this.inputIndex}:${r}`;return this.sourceSpanCache.has(n)||this.sourceSpanCache.set(n,this.span(e,r).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(n)}advance(){this.index++}withContext(e,r){this.context|=e;let n=r();return this.context^=e,n}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}isAssignmentOperator(e){return e.type===ce.Operator&&ft.isAssignmentOperation(e.strValue)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Po?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],r=this.inputIndex;for(;this.index<this.tokens.length;){let n=this.parsePipe();if(e.push(n),this.consumeOptionalCharacter($t))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter($t););else if(this.index<this.tokens.length){let i=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===i)break}}if(e.length===0){let n=this.offset,i=this.offset+this.input.length;return new Ct(this.span(n,i),this.sourceSpan(n,i))}return e.length==1?e[0]:new ts(this.span(r),this.sourceSpan(r),e)}parsePipe(){let e=this.inputIndex,r=this.parseExpression();if(this.consumeOptionalOperator("|")){this.parseFlags&1&&this.error("Cannot have a pipe in an action expression");do{let n=this.inputIndex,i=this.expectIdentifierOrKeyword(),s,a;i!==null?s=this.sourceSpan(n):(i="",a=this.next.index!==-1?this.next.index:this.input.length+this.offset,s=new fi(a,a).toAbsolute(this.absoluteOffset));let o=[];for(;this.consumeOptionalCharacter(en);)o.push(this.parseExpression());let l;if(this.supportsDirectPipeReferences){let c=i.charCodeAt(0);l=c===On||c>=Rn&&c<=vs?Vo.ReferencedDirectly:Vo.ReferencedByName}else l=Vo.ReferencedByName;r=new al(this.span(e),this.sourceSpan(e,a),r,i,o,l,s)}while(this.consumeOptionalOperator("|"))}return r}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,r=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let n=this.parsePipe(),i;if(this.consumeOptionalCharacter(en))i=this.parsePipe();else{let s=this.inputIndex,a=this.input.substring(e,s);this.error(`Conditional expression ${a} requires all 3 expressions`),i=new Ct(this.span(e),this.sourceSpan(e))}return new sl(this.span(e),this.sourceSpan(e),r,n,i)}else return r}parseLogicalOr(){let e=this.inputIndex,r=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let n=this.parseLogicalAnd();r=new ft(this.span(e),this.sourceSpan(e),"||",r,n)}return r}parseLogicalAnd(){let e=this.inputIndex,r=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let n=this.parseNullishCoalescing();r=new ft(this.span(e),this.sourceSpan(e),"&&",r,n)}return r}parseNullishCoalescing(){let e=this.inputIndex,r=this.parseEquality();for(;this.consumeOptionalOperator("??");){let n=this.parseEquality();r=new ft(this.span(e),this.sourceSpan(e),"??",r,n)}return r}parseEquality(){let e=this.inputIndex,r=this.parseRelational();for(;this.next.type==ce.Operator;){let n=this.next.strValue;switch(n){case"==":case"===":case"!=":case"!==":this.advance();let i=this.parseRelational();r=new ft(this.span(e),this.sourceSpan(e),n,r,i);continue}break}return r}parseRelational(){let e=this.inputIndex,r=this.parseAdditive();for(;this.next.type==ce.Operator||this.next.isKeywordIn;){let n=this.next.strValue;switch(n){case"<":case">":case"<=":case">=":case"in":this.advance();let i=this.parseAdditive();r=new ft(this.span(e),this.sourceSpan(e),n,r,i);continue}break}return r}parseAdditive(){let e=this.inputIndex,r=this.parseMultiplicative();for(;this.next.type==ce.Operator;){let n=this.next.strValue;switch(n){case"+":case"-":this.advance();let i=this.parseMultiplicative();r=new ft(this.span(e),this.sourceSpan(e),n,r,i);continue}break}return r}parseMultiplicative(){let e=this.inputIndex,r=this.parseExponentiation();for(;this.next.type==ce.Operator;){let n=this.next.strValue;switch(n){case"*":case"%":case"/":this.advance();let i=this.parseExponentiation();r=new ft(this.span(e),this.sourceSpan(e),n,r,i);continue}break}return r}parseExponentiation(){let e=this.inputIndex,r=this.parsePrefix();for(;this.next.type==ce.Operator&&this.next.strValue==="**";){(r instanceof Xi||r instanceof oa||r instanceof la||r instanceof ca)&&this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"),this.advance();let n=this.parseExponentiation();r=new ft(this.span(e),this.sourceSpan(e),"**",r,n)}return r}parsePrefix(){if(this.next.type==ce.Operator){let e=this.inputIndex,r=this.next.strValue,n;switch(r){case"+":return this.advance(),n=this.parsePrefix(),Xi.createPlus(this.span(e),this.sourceSpan(e),n);case"-":return this.advance(),n=this.parsePrefix(),Xi.createMinus(this.span(e),this.sourceSpan(e),n);case"!":return this.advance(),n=this.parsePrefix(),new oa(this.span(e),this.sourceSpan(e),n)}}else if(this.next.isKeywordTypeof()){this.advance();let e=this.inputIndex,r=this.parsePrefix();return new la(this.span(e),this.sourceSpan(e),r)}else if(this.next.isKeywordVoid()){this.advance();let e=this.inputIndex,r=this.parsePrefix();return new ca(this.span(e),this.sourceSpan(e),r)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,r=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(Hs))r=this.parseAccessMember(r,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(xr)?r=this.parseCall(r,e,!0):r=this.consumeOptionalCharacter(kn)?this.parseKeyedReadOrWrite(r,e,!0):this.parseAccessMember(r,e,!0);else if(this.consumeOptionalCharacter(kn))r=this.parseKeyedReadOrWrite(r,e,!1);else if(this.consumeOptionalCharacter(xr))r=this.parseCall(r,e,!1);else if(this.consumeOptionalOperator("!"))r=new ua(this.span(e),this.sourceSpan(e),r);else if(this.next.isTemplateLiteralEnd())r=this.parseNoInterpolationTaggedTemplateLiteral(r,e);else if(this.next.isTemplateLiteralPart())r=this.parseTaggedTemplateLiteral(r,e);else return r}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(xr)){this.rparensExpected++;let r=this.parsePipe();return this.consumeOptionalCharacter(dt)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(dt)),this.rparensExpected--,new fa(this.span(e),this.sourceSpan(e),r)}else{if(this.next.isKeywordNull())return this.advance(),new Rt(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Rt(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Rt(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Rt(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordIn())return this.advance(),new Rt(this.span(e),this.sourceSpan(e),"in");if(this.next.isKeywordThis())return this.advance(),new di(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(kn)){this.rbracketsExpected++;let r=this.parseExpressionList(ei);return this.rbracketsExpected--,this.expectCharacter(ei),new ol(this.span(e),this.sourceSpan(e),r)}else{if(this.next.isCharacter(Er))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Gr(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let r=this.next.toNumber();return this.advance(),new Rt(this.span(e),this.sourceSpan(e),r)}else{if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===ai.Plain){let r=this.next.toString();return this.advance(),new Rt(this.span(e),this.sourceSpan(e),r)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Ct(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new Ct(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new Ct(this.span(e),this.sourceSpan(e)))}}}}parseExpressionList(e){let r=[];do if(!this.next.isCharacter(e))r.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(sr));return r}parseLiteralMap(){let e=[],r=[],n=this.inputIndex;if(this.expectCharacter(Er),!this.consumeOptionalCharacter(mt)){this.rbracesExpected++;do{let i=this.inputIndex,s=this.next.isString(),a=this.expectIdentifierOrKeywordOrString(),o={key:a,quoted:s};if(e.push(o),s)this.expectCharacter(en),r.push(this.parsePipe());else if(this.consumeOptionalCharacter(en))r.push(this.parsePipe());else{o.isShorthandInitialized=!0;let l=this.span(i),c=this.sourceSpan(i);r.push(new nn(l,c,c,new Gr(l,c),a))}}while(this.consumeOptionalCharacter(sr)&&!this.next.isCharacter(mt));this.rbracesExpected--,this.expectCharacter(mt)}return new ll(this.span(n),this.sourceSpan(n),e,r)}parseAccessMember(e,r,n){let i=this.inputIndex,s=this.withContext(qs.Writable,()=>{let o=this.expectIdentifierOrKeyword()??"";return o.length===0&&this.error("Expected identifier for property access",e.span.end),o}),a=this.sourceSpan(i);if(n)return this.isAssignmentOperator(this.next)?(this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new Ct(this.span(r),this.sourceSpan(r))):new sa(this.span(r),this.sourceSpan(r),a,e,s);if(this.isAssignmentOperator(this.next)){let o=this.next.strValue;if(!(this.parseFlags&1))return this.advance(),this.error("Bindings cannot contain assignments"),new Ct(this.span(r),this.sourceSpan(r));let l=new nn(this.span(r),this.sourceSpan(r),a,e,s);this.advance();let c=this.parseConditional();return new ft(this.span(r),this.sourceSpan(r),o,l,c)}else return new nn(this.span(r),this.sourceSpan(r),a,e,s)}parseCall(e,r,n){let i=this.inputIndex;this.rparensExpected++;let s=this.parseCallArguments(),a=this.span(i,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(dt),this.rparensExpected--;let o=this.span(r),l=this.sourceSpan(r);return n?new cl(o,l,e,s,a):new rs(o,l,e,s,a)}parseCallArguments(){if(this.next.isCharacter(dt))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(sr));return e}expectTemplateBindingKey(){let e="",r=!1,n=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),r=this.consumeOptionalOperator("-"),r&&(e+="-");while(r);return{source:e,span:new Ht(n,n+e.length)}}parseTemplateBindings(e){let r=[];for(r.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let n=this.parseLetBinding();if(n)r.push(n);else{let i=this.expectTemplateBindingKey(),s=this.parseAsBinding(i);s?r.push(s):(i.source=e.source+i.source.charAt(0).toUpperCase()+i.source.substring(1),r.push(...this.parseDirectiveKeywordBindings(i)))}this.consumeStatementTerminator()}return new qu(r,[],this.errors)}parseKeyedReadOrWrite(e,r,n){return this.withContext(qs.Writable,()=>{this.rbracketsExpected++;let i=this.parsePipe();if(i instanceof Ct&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(ei),this.isAssignmentOperator(this.next)){let s=this.next.strValue;if(n)this.advance(),this.error("The '?.' operator cannot be used in the assignment");else{let a=new mi(this.span(r),this.sourceSpan(r),e,i);this.advance();let o=this.parseConditional();return new ft(this.span(r),this.sourceSpan(r),s,a,o)}}else return n?new aa(this.span(r),this.sourceSpan(r),e,i):new mi(this.span(r),this.sourceSpan(r),e,i);return new Ct(this.span(r),this.sourceSpan(r))})}parseDirectiveKeywordBindings(e){let r=[];this.consumeOptionalCharacter(en);let n=this.getDirectiveBoundTarget(),i=this.currentAbsoluteOffset,s=this.parseAsBinding(e);s||(this.consumeStatementTerminator(),i=this.currentAbsoluteOffset);let a=new Ht(e.span.start,i);return r.push(new au(a,e,n)),s&&r.push(s),r}
26getDirectiveBoundTarget(){if(this.next===Po||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:r,end:n}=e.span,i=this.input.substring(r,n);return new Ot(e,i,wn(this.parseSourceSpan),this.absoluteOffset+r,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let r=this.expectTemplateBindingKey();this.consumeStatementTerminator();let n=new Ht(e.span.start,this.currentAbsoluteOffset);return new da(n,r,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let r=this.expectTemplateBindingKey(),n=null;this.consumeOptionalOperator("=")&&(n=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let i=new Ht(e,this.currentAbsoluteOffset);return new da(i,r,n)}parseNoInterpolationTaggedTemplateLiteral(e,r){let n=this.parseNoInterpolationTemplateLiteral();return new ha(this.span(r),this.sourceSpan(r),e,n)}parseNoInterpolationTemplateLiteral(){let e=this.next.strValue,r=this.inputIndex;this.advance();let n=this.span(r),i=this.sourceSpan(r);return new pa(n,i,[new ul(n,i,e)],[])}parseTaggedTemplateLiteral(e,r){let n=this.parseTemplateLiteral();return new ha(this.span(r),this.sourceSpan(r),e,n)}parseTemplateLiteral(){let e=[],r=[],n=this.inputIndex;for(;this.next!==Po;){let i=this.next;if(i.isTemplateLiteralPart()||i.isTemplateLiteralEnd()){let s=this.inputIndex;if(this.advance(),e.push(new ul(this.span(s),this.sourceSpan(s),i.strValue)),i.isTemplateLiteralEnd())break}else if(i.isTemplateLiteralInterpolationStart()){this.advance(),this.rbracesExpected++;let s=this.parsePipe();s instanceof Ct?this.error("Template literal interpolation cannot be empty"):r.push(s),this.rbracesExpected--}else this.advance()}return new pa(this.span(n),this.sourceSpan(n),e,r)}consumeStatementTerminator(){this.consumeOptionalCharacter($t)||this.consumeOptionalCharacter(sr)}error(e,r=this.index){this.errors.push(ji(e,this.input,this.getErrorLocationText(r),this.parseSourceSpan)),this.skip()}getErrorLocationText(e){return e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,r){let n=`Private identifiers are not supported. Unexpected private identifier: ${e}`;r!==null&&(n+=`, ${r}`),this.error(n)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter($t)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(dt))&&(this.rbracesExpected<=0||!e.isCharacter(mt))&&(this.rbracketsExpected<=0||!e.isCharacter(ei))&&
26(!(this.context&qs.Writable)||!this.isAssignmentOperator(e));)this.next.isError()&&this.errors.push(ji(this.next.toString(),this.input,this.getErrorLocationText(this.next.index),this.parseSourceSpan)),this.advance(),e=this.next}};function ji(t,e,r,n){r.length>0&&(r=` ${r} `);let i=wn(n),s=`Parser Error: ${t}${r}[${e}] in ${i}`;return new ne(n,s)}var ju=class extends ma{errors=[];visitPipe(){this.errors.push("pipes")}};function Zx(t){let e=new Map,r=0,n=0,i=0;for(;i<t.length;){let s=t[i];if(s.type===9){let[a,o]=s.parts;r+=o.length,n+=a.length}else{let a=s.parts.reduce((o,l)=>o+l.length,0);n+=a,r+=a}e.set(n,r),i++}return e}function Qx(t){return t.visit(new Wu)}var Wu=class{visitUnary(e,r){return`${e.operator}${e.expr.visit(this,r)}`}visitBinary(e,r){return`${e.left.visit(this,r)} ${e.operation} ${e.right.visit(this,r)}`}visitChain(e,r){return e.expressions.map(n=>n.visit(this,r)).join("; ")}visitConditional(e,r){return`${e.condition.visit(this,r)} ? ${e.trueExp.visit(this,r)} : ${e.falseExp.visit(this,r)}`}visitThisReceiver(){return"this"}visitImplicitReceiver(){return""}visitInterpolation(e,r){return Kx(e.strings,e.expressions.map(n=>n.visit(this,r))).join("")}visitKeyedRead(e,r){return`${e.receiver.visit(this,r)}[${e.key.visit(this,r)}]`}visitLiteralArray(e,r){return`[${e.expressions.map(n=>n.visit(this,r)).join(", ")}]`}visitLiteralMap(e,r){return`{${Jx(e.keys.map(n=>n.quoted?`'${n.key}'`:n.key),e.values.map(n=>n.visit(this,r))).map(([n,i])=>`${n}: ${i}`).join(", ")}}`}visitLiteralPrimitive(e){if(e.value===null)return"null";switch(typeof e.value){case"number":case"boolean":return e.value.toString();case"undefined":return"undefined";case"string":return`'${e.value.replace(/'/g,"\\'")}'`;default:throw new Error(`Unsupported primitive type: ${e.value}`)}}visitPipe(e,r){return`${e.exp.visit(this,r)} | ${e.name}`}visitPrefixNot(e,r){return`!${e.expression.visit(this,r)}`}visitNonNullAssert(e,r){return`${e.expression.visit(this,r)}!`}visitPropertyRead(e,r){return e.receiver instanceof Gr?e.name:`${e.receiver.visit(this,r)}.${e.name}`}visitSafePropertyRead(e,r){return`${e.receiver.visit(this,r)}?.${e.name}`}visitSafeKeyedRead(e,r){return`${e.receiver.visit(this,r)}?.[${e.key.visit(this,r)}]`}visitCall(e,r){return`${e.receiver.visit(this,r)}(${e.args.map(n=>n.visit(this,r)).join(", ")})`}visitSafeCall(e,r){return`${e.receiver.visit(this,r)}?.(${e.args.map(n=>n.visit(this,r)).join(", ")})`}visitTypeofExpression(e,r){return`typeof ${e.expression.visit(this,r)}`}visitVoidExpression(e,r){return`void ${e.expression.visit(this,r)}`}visitASTWithSource(e,r){return e.ast.visit(this,r)}visitTemplateLiteral(e,r){let n="";for(let i=0;i<e.elements.length;i++){n+=e.elements[i].visit(this,r);let s=i<e.expressions.length?e.expressions[i]:null;s!==null&&(n+="${"+s.visit(this,r)+"}")}return"`"+n+"`"}visitTemplateLiteralElement(e,r){return e.text}visitTaggedTemplateLiteral(e,r){return e.tag.visit(this,r)+e.template.visit(this,r)}visitParenthesizedExpression(e,r){return"("+e.expression.visit(this,r)+")"}};function Jx(t,e){if(t.length!==e.length)throw new Error("Array lengths must match");return t.map((r,n)=>[r,e[n]])}function Kx(t,e){let r=[];for(let n=0;n<Math.max(t.length,e.length);n++)n<t.length&&r.push(t[n]),n<e.length&&r.push(e[n]);return r}var Go;function Id(){return Go||(Go={},Os(we.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Os(we.STYLE,["*|style"]),Os(we.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|xlink:href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src","annotation|href","annotation|xlink:href","annotation-xml|href","annotation-xml|xlink:href","maction|href","maction|xlink:href","malignmark|href","malignmark|xlink:href","math|href","math|xlink:href","mroot|href","mroot|xlink:href","msqrt|href","msqrt|xlink:href","merror|href","merror|xlink:href","mfrac|href","mfrac|xlink:href","mglyph|href","mglyph|xlink:href","msub|href","msub|xlink:href","msup|href","msup|xlink:href","msubsup|href","msubsup|xlink:href","mmultiscripts|href","mmultiscripts|xlink:href","mprescripts|href","mprescripts|xlink:href","mi|href","mi|xlink:href","mn|href","mn|xlink:href","mo|href","mo|xlink:href","mpadded|href","mpadded|xlink:href","mphantom|href","mphantom|xlink:href","mrow|href","mrow|xlink:href","ms|href","ms|xlink:href","mspace|href","mspace|xlink:href","mstyle|href","mstyle|xlink:href","mtable|href","mtable|xlink:href","mtd|href","mtd|xlink:href","mtr|href","mtr|xlink:href","mtext|href","mtext|xlink:href","mover|href","mover|xlink:href","munder|href","munder|xlink:href","munderover|href","munderover|xlink:href","semantics|href","semantics|xlink:href","none|href","none|xlink:href"]),Os(we.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src","script|href","script|xlink:href"]),Os(we.ATTRIBUTE_NO_BINDING,["animate|attributeName","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","
26iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"])),Go}function Os(t,e){for(let r of e)Go[r.toLowerCase()]=t}var Uu=class{},e1="boolean",t1="number",r1="string",n1="object",i1=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%control
26sList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxcl
26ick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],bg=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colspan":"ariaColSpan","aria-current":"ariaCurrent","aria-disabled":"ariaDisabled","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),s1=Array.from(bg).reduce((t,[e,r])=>(t.set(e,r),t),new Map),ms=class extends Uu{_schema=new Map;_eventSchema=new Map;constructor(){super(),i1.forEach(e=>{let r=new Map,n=new Set,[i,s]=e.split("|"),a=s.split(","),[o,l]=i.split("^");o.split(",").forEach(u=>{this._schema.set(u.toLowerCase(),r),this._eventSchema.set(u.toLowerCase(),n)});let c=l&&this._schema.get(l.toLowerCase());if(c){for(let[u,d]of c)r.set(u,d);for(let u of this._eventSchema.get(l.toLowerCase()))n.add(u)}a.forEach(u=>{if(u.length>0)switch(u[0]){case"*":n.add(u.substring(1));break;case"!":r.set(u.substring(1),e1);break;case"#":r.set(u.substring(1),t1);break;case"%":r.set(u.substring(1),n1);break;default:r.set(u,r1)}})})}hasProperty(e,r,n){if(n.some(s=>s.name===Mf.name))return!0;if(e.indexOf("-")>-1){if(qf(e)||lu(e))return!1;if(n.some(s=>s.name===If.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(e,r){return r.some(n=>n.name===Mf.name)||e.indexOf("-")>-1&&(qf(e)||lu(e)||r.some(n=>n.name===If.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,r,n){n&&(r=this.getMappedPropName(r)),e=e.toLowerCase(),r=r.toLowerCase();let i=Id()[e+"|"+r];
26return i||(i=Id()["*|"+r],i||we.NONE)}getMappedPropName(e){return bg.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
27If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>s1.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return s0(e)}normalizeAnimationStyleValue(e,r,n){let i="",s=n.toString().trim(),a=null;if(a1(e)&&n!==0&&n!=="0")if(typeof n=="number")i="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:s+i}}};function a1(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var ue=class{closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=Rr.PARSABLE_DATA,closedByParent:i=!1,isVoid:s=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:l=!1}={}){e&&e.length>0&&e.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=s,this.closedByParent=i||s,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=l??s}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Md,Oi;function Xu(t){return Oi||(Md=new ue({canSelfClose:!0}),Oi=Object.assign(Object.create(null),{base:new ue({isVoid:!0}),meta:new ue({isVoid:!0}),area:new ue({isVoid:!0}),embed:new ue({isVoid:!0}),link:new ue({isVoid:!0}),img:new ue({isVoid:!0}),input:new ue({isVoid:!0}),param:new ue({isVoid:!0}),hr:new ue({isVoid:!0}),br:new ue({isVoid:!0}),source:new ue({isVoid:!0}),track:new ue({isVoid:!0}),wbr:new ue({isVoid:!0}),p:new ue({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new ue({closedByChildren:["tbody","tfoot"]}),tbody:new ue({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ue({closedByChildren:["tbody"],closedByParent:!0}),tr:new ue({closedByChildren:["tr"],closedByParent:!0}),td:new ue({closedByChildren:["td","th"],closedByParent:!0}),th:new ue({closedByChildren:["td","th"],closedByParent:!0}),col:new ue({isVoid:!0}),svg:new ue({implicitNamespacePrefix:"svg"}),foreignObject:new ue({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ue({implicitNamespacePrefix:"math"}),li:new ue({closedByChildren:["li"],closedByParent:!0}),dt:new ue({closedByChildren:["dt","dd"]}),dd:new ue({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ue({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ue({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ue({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ue({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ue({closedByChildren:["optgroup"],closedByParent:!0}),option:new ue({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ue({ignoreFirstLf:!0}),listing:new ue({ignoreFirstLf:!0}),style:new ue({contentType:Rr.RAW_TEXT}),script:new ue({contentType:Rr.RAW_TEXT}),title:new ue({contentType:{default:Rr.ESCAPABLE_RAW_TEXT,svg:Rr.PARSABLE_DATA}}),textarea:new ue({contentType:Rr.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}
27),new ms().allKnownElementNames().forEach(e=>{!Oi[e]&&cu(e)===null&&(Oi[e]=new ue({canSelfClose:!1}))})),Oi[t]??Oi[t.toLowerCase()]??Md}var Dd={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},Yu=class{_placeHolderNameCounts={};_signatureToName={};getStartTagPlaceholderName(e,r,n){let i=this._hashTag(e,r,n);if(this._signatureToName[i])return this._signatureToName[i];let s=e.toUpperCase(),a=Dd[s]||`TAG_${s}`,o=this._generateUniqueName(n?a:`START_${a}`);return this._signatureToName[i]=o,o}getCloseTagPlaceholderName(e){let r=this._hashClosingTag(e);if(this._signatureToName[r])return this._signatureToName[r];let n=e.toUpperCase(),i=Dd[n]||`TAG_${n}`,s=this._generateUniqueName(`CLOSE_${i}`);return this._signatureToName[r]=s,s}getPlaceholderName(e,r){let n=e.toUpperCase(),i=`PH: ${n}=${r}`;if(this._signatureToName[i])return this._signatureToName[i];let s=this._generateUniqueName(n);return this._signatureToName[i]=s,s}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,r){let n=this._hashBlock(e,r);if(this._signatureToName[n])return this._signatureToName[n];let i=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[n]=i,i}getCloseBlockPlaceholderName(e){let r=this._hashClosingBlock(e);if(this._signatureToName[r])return this._signatureToName[r];let n=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[r]=n,n}_hashTag(e,r,n){let i=`<${e}`,s=Object.keys(r).sort().map(o=>` ${o}=${r[o]}`).join(""),a=n?"/>":`></${e}>`;return i+s+a}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,r){let n=r.length===0?"":` (${r.sort().join("; ")})`;return`@${e}${n} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;let n=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=n+1,`${e}_${n}`}},o1=new ql(new za);function l1(t,e,r,n){let i=new Zu(o1,t,e,r,n);return(s,a,o,l,c)=>i.toI18nMessage(s,a,o,l,c)}function c1(t,e){return e}var Zu=class{_expressionParser;_interpolationConfig;_containerBlocks;_retainEmptyTokens;_preserveExpressionWhitespace;constructor(e,r,n,i,s){this._expressionParser=e,this._interpolationConfig=r,this._containerBlocks=n,this._retainEmptyTokens=i,this._preserveExpressionWhitespace=s}toI18nMessage(e,r="",n="",i="",s){let a={isIcu:e.length==1&&e[0]instanceof si,icuDepth:0,placeholderRegistry:new Yu,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||c1},o=Ie(this,e,a);return new vt(o,a.placeholderToContent,a.placeholderToMessage,r,n,i)}visitElement(e,r){return this._visitElementLike(e,r)}visitComponent(e,r){return this._visitElementLike(e,r)}visitDirective(e,r){throw new Error("Unreachable code")}visitAttribute(e,r){let n=e.valueTokens===void 0||e.valueTokens.length===1?new Ns(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,r,e.i18n);return r.visitNodeFn(e,n)}visitText(e,r){let n=e.tokens.length===1?new Ns(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,r,e.i18n);return r.visitNodeFn(e,n)}visitComment(e,r){return null}visitExpansion(e,r){r.icuDepth++;let n={},i=new El(e.switchValue,e.type,n,e.sourceSpan);if(e.cases.forEach(o=>{n[o.value]=new sn(o.expression.map(l=>l.visit(this,r)),o.expSourceSpan)}),r.icuDepth--,r.isIcu||r.icuDepth>0){let o=r.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return i.expressionPlaceholder=o,r.placeholderToContent[o]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},r.visitNodeFn(e,i)}let s=r.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());r.placeholderToMessage[s]=this.toI18nMessage([e],"","","",void 0);let a=new os(i,s,e.sourceSpan);return r.visitNodeFn(e,a)}visitExpansionCase(e,r){throw new Error("Unreachable code")}visitBlock(e,r){let n=Ie(this,e.children,r);if(this._containerBlocks.has(e.name))return new sn(n,e.sourceSpan);let i=e.parameters.map(l=>l.expression),s=r.placeholderRegistry.getStartBlockPlaceholderName(e.name,i),a=r.placeholderRegistry.getCloseBlockPlaceholderName(e.name);r.placeholderToContent[s]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan},r.placeholderToContent[a]={text:e.endSourceSpan?e.endSourceSpan.toString():"}",sourceSpan:e.endSourceSpan??e.sourceSpan};let o=new Dn(e.name,i,s,a,n,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return r.visitNodeFn(e,o)}visitBlockParameter(e,r){throw new Error("Unreachable code")}visitLetDeclaration(e,r){return null}_visitElementLike(e,r){let n=Ie(this,e.children,r),i={},s=d=>{i[d.name]=d.value},a,o;e instanceof er?(a=e.name,o=Xu(e.name).isVoid):(a=e.fullName,o=e.tagName?Xu(e.tagName).isVoid:!1),e.attrs.forEac
27h(s),e.directives.forEach(d=>d.attrs.forEach(s));let l=r.placeholderRegistry.getStartTagPlaceholderName(a,i,o);r.placeholderToContent[l]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let c="";o||(c=r.placeholderRegistry.getCloseTagPlaceholderName(a),r.placeholderToContent[c]={text:`</${a}>`,sourceSpan:e.endSourceSpan??e.sourceSpan});let u=new Mn(a,i,l,c,n,o,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return r.visitNodeFn(e,u)}_visitTextWithInterpolation(e,r,n,i){let s=[],a=!1;for(let o of e)switch(o.type){case 8:case 17:a=!0;let[l,c,u]=o.parts,d=d1(c)||"INTERPOLATION",f=n.placeholderRegistry.getPlaceholderName(d,c);if(this._preserveExpressionWhitespace)n.placeholderToContent[f]={text:o.parts.join(""),sourceSpan:o.sourceSpan},s.push(new wa(c,f,o.sourceSpan));else{let h=this.normalizeExpression(o);n.placeholderToContent[f]={text:`${l}${h}${u}`,sourceSpan:o.sourceSpan},s.push(new wa(h,f,o.sourceSpan))}break;default:if(o.parts[0].length>0||this._retainEmptyTokens){let h=s[s.length-1];h instanceof Ns?(h.value+=o.parts[0],h.sourceSpan=new se(h.sourceSpan.start,o.sourceSpan.end,h.sourceSpan.fullStart,h.sourceSpan.details)):s.push(new Ns(o.parts[0],o.sourceSpan))}else this._retainEmptyTokens&&s.push(new Ns(o.parts[0],o.sourceSpan));break}return a?(u1(s,i),new sn(s,r)):s[0]}normalizeExpression(e){let r=e.parts[1],n=this._expressionParser.parseBinding(r,e.sourceSpan,e.sourceSpan.start.offset,this._interpolationConfig);return Qx(n)}};function u1(t,e){if(e instanceof vt&&(h1(e),e=e.nodes[0]),e instanceof sn){p1(e.children,t);for(let r=0;r<t.length;r++)t[r].sourceSpan=e.children[r].sourceSpan}}function h1(t){let e=t.nodes;if(e.length!==1||!(e[0]instanceof sn))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function p1(t,e){if(t.length!==e.length)throw new Error(`
28The number of i18n message children changed between first and second pass.
29
30First pass (${t.length} tokens):
31${t.map(r=>`"${r.sourceSpan.toString()}"`).join(`
32`)}
33
34Second pass (${e.length} tokens):
35${e.map(r=>`"${r.sourceSpan.toString()}"`).join(`
36`)}
37    `.trim());if(t.some((r,n)=>e[n].constructor!==r.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var f1=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function d1(t){return t.split(f1)[2]}var Ld=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function Nd(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),Ld.has(t+"|"+e)||Ld.has("*|"+e)}var m1=t=>(e,r)=>{let n=t.get(e)??e;return n instanceof ln&&(r instanceof os&&n.i18n instanceof vt&&(r.previousMessage=n.i18n),n.i18n=r),r},jl=class{interpolationConfig;keepI18nAttrs;enableI18nLegacyMessageIdFormat;containerBlocks;preserveSignificantWhitespace;retainEmptyTokens;hasI18nMeta=!1;_errors=[];constructor(e=Or,r=!1,n=!1,i=V0,s=!0,a=!s){this.interpolationConfig=e,this.keepI18nAttrs=r,this.enableI18nLegacyMessageIdFormat=n,this.containerBlocks=i,this.preserveSignificantWhitespace=s,this.retainEmptyTokens=a}_generateI18nMessage(e,r="",n){let{meaning:i,description:s,customId:a}=this._parseMetadata(r),l=l1(this.interpolationConfig,this.containerBlocks,this.retainEmptyTokens,this.preserveSignificantWhitespace)(e,i,s,a,n);return this._setMessageId(l,r),this._setLegacyIds(l,r),l}visitAllWithErrors(e){let r=e.map(n=>n.visit(this,null));return new Hl(r,this._errors)}visitElement(e){return this._visitElementLike(e),e}visitComponent(e,r){return this._visitElementLike(e),e}visitExpansion(e,r){let n,i=e.i18n;if(this.hasI18nMeta=!0,i instanceof os){let s=i.name;n=this._generateI18nMessage([e],i);let a=Mm(n);a.name=s,r!==null&&(r.placeholderToMessage[s]=n)}else n=this._generateI18nMessage([e],r||i);return e.i18n=n,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,r){return Ie(this,e.children,r),e}visitBlockParameter(e,r){return e}visitLetDeclaration(e,r){return e}visitDirective(e,r){return e}_visitElementLike(e){let r;if(L0(e)){this.hasI18nMeta=!0;let n=[],i={};for(let s of e.attrs)if(s.name===Pm){let a=e.i18n||s.value,o=new Map,l=this.preserveSignificantWhitespace?e.children:Nr(new Gl(!1,o),e.children);
37r=this._generateI18nMessage(l,a,m1(o)),r.nodes.length===0&&(r=void 0),e.i18n=r}else if(s.name.startsWith(vu)){let a=s.name.slice(vu.length),o;e instanceof At?o=e.tagName===null?!1:Nd(e.tagName,a):o=Nd(e.name,a),o?this._reportError(s,`Translating attribute '${a}' is disallowed for security reasons.`):i[a]=s.value}else n.push(s);if(Object.keys(i).length)for(let s of n){let a=i[s.name];a!==void 0&&s.value&&(s.i18n=this._generateI18nMessage([s],s.i18n||a))}this.keepI18nAttrs||(e.attrs=n)}Ie(this,e.children,r)}_parseMetadata(e){return typeof e=="string"?y1(e):e instanceof vt?e:{}}_setMessageId(e,r){e.id||(e.id=r instanceof vt&&r.id||Ny(e))}_setLegacyIds(e,r){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[Ly(e),Em(e)];else if(typeof r!="string"){let n=r instanceof vt?r:r instanceof os?r.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}}_reportError(e,r){this._errors.push(new ne(e.sourceSpan,r))}},g1="|",v1="@@";function y1(t=""){let e,r,n;if(t=t.trim(),t){let i=t.indexOf(v1),s=t.indexOf(g1),a;[a,e]=i>-1?[t.slice(0,i),t.slice(i+2)]:[t,""],[r,n]=s>-1?[a.slice(0,s),a.slice(s+1)]:["",a]}return{customId:e,meaning:r,description:n}}function S1(t){let e=[];return t.description?e.push({tagName:"desc",text:t.description}):e.push({tagName:"suppress",text:"{msgDescriptions}"}),t.meaning&&e.push({tagName:"meaning",text:t.meaning}),Yy(e)}var E1="goog.getMsg";function x1(t,e,r,n){let i=w1(e),s=[$(i)];Object.keys(n).length&&(s.push(Lu(Ah(n,!0),!0)),s.push(Lu({original_code:yt(Object.keys(n).map(l=>({key:Ya(l),quoted:!0,value:e.placeholders[l]?$(e.placeholders[l].sourceSpan.toString()):$(e.placeholderToMessage[l].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let a=new Ue(r.name,pe(E1).callFn(s),zt,rt.Final);a.addLeadingComment(S1(e));let o=new lr(t.set(r));return[a,o]}var Qu=class{formatPh(e){return`{$${Ya(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(r=>r.visit(this)).join("")}visitIcu(e){return mg(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(r=>r.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(r=>r.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,r){return this.formatPh(e.name)}},b1=new Qu;function w1(t){return t.nodes.map(e=>e.visit(b1,null)).join("")}function C1(t,e,r){let{messageParts:n,placeHolders:i}=T1(e),s=A1(e),a=i.map(c=>r[c.text]),o=Jy(e,n,i,a,s),l=t.set(o);return[new lr(l)]}var Ju=class{placeholderToMessage;pieces;constructor(e,r){this.placeholderToMessage=e,this.pieces=r}visitText(e){if(this.pieces[this.pieces.length-1]instanceof ri)this.pieces[this.pieces.length-1].text+=e.value;else{let r=new se(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new ri(e.value,r))}}visitContainer(e){e.children.forEach(r=>r.visit(this))}visitIcu(e){this.pieces.push(new ri(mg(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach(r=>r.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitBlockPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.children.forEach(r=>r.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,r,n){return new Wi(Ya(e,!1),r,n)}};function T1(t){let e=[],r=new Ju(t.placeholderToMessage,e);return t.nodes.forEach(n=>n.visit(r)),_1(e)}function A1(t){let e=t.nodes[0],r=t.nodes[t.nodes.length-1];return new se(e.sourceSpan.fullStart,r.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function _1(t){let e=[],r=[];t[0]instanceof Wi&&e.push(Oc(t[0].sourceSpan.start));for(let n=0;n<t.length;n++){let i=t[n];i instanceof ri?e.push(i):(r.push(i),t[n-1]instanceof Wi&&e.push(Oc(t[n-1].sourceSpan.end)))}return t[t.length-1]instanceof Wi&&e.push(Oc(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:r}}function Oc(t){return new ri("",new se(t,t))}var Fd="ngI18nClosureMode",k1="i18n_",P1="I18N_EXP_",Bd="\uFFFD",I1="MSG_";function Rd(t){return`${I1}${t}`.toUpperCase()}function M1(t){return new Ue(t.name,void 0,zt,void 0,t.sourceSpan)}function D1(t){let e=t.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",r=new Map,n=new Map,i=new Map,s=new Map;for(let l of t.units)for(let c of l.ops())if(c.kind===b.ExtractedAttribute&&c.i18nContext!==null){let u=r.get(c.i18nContext)??[];u.push(c),r.set(c.i18nContext,u)}else if(c.kind===b.I18nAttributes)n.set(c.target,c);else if(c.kind===b.I18nExpression&&c.usage===ys.I18nAttribute){let u=i.get(c.target)??[];u.push(c),i.set(c.target,u)}else c.kind===b.I18nMessage&&s.set(c.xref,c);let a=new Map,o=new Map;for(let l of t.units)for(let c of l.create)if(c.kind===b.I18nMessage){if(c.messagePlaceholder===null){let{mainVar:u,statements:d}=wg(t,e,s,c);if(c.i18nBlock!==null){let f=t.addConst(u,d);o.set(c.i18nBlock,f)}
37else{t.constsInitializers.push(...d),a.set(c.i18nContext,u);let f=r.get(c.i18nContext);if(f!==void 0)for(let h of f)h.expression=u.clone()}}q.remove(c)}for(let l of t.units)for(let c of l.create)if(Bn(c)){let u=n.get(c.xref);if(u===void 0)continue;let d=i.get(c.xref);if(d===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let f=new Set;d=d.filter(p=>{let g=f.has(p.name);return f.add(p.name),!g});let h=d.flatMap(p=>{let g=a.get(p.context);if(g===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[$(p.name),g]});u.i18nAttributesConfig=t.addConst(new wr(h))}for(let l of t.units)for(let c of l.create)if(c.kind===b.I18nStart){let u=o.get(c.root);if(u===void 0)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");c.messageIndex=u}}function wg(t,e,r,n){let i=[],s=new Map;for(let c of n.subMessages){let u=r.get(c),{mainVar:d,statements:f}=wg(t,e,r,u);i.push(...f);let h=s.get(u.messagePlaceholder)??[];h.push(d),s.set(u.messagePlaceholder,h)}L1(n,s),n.params=new Map([...n.params.entries()].sort());let a=pe(t.pool.uniqueName(k1)),o=B1(t.pool,n.message.id,e,t.i18nUseExternalIds),l;if(n.needsPostprocessing||n.postprocessingParams.size>0){let c=Object.fromEntries([...n.postprocessingParams.entries()].sort()),u=Ah(c,!1),d=[];n.postprocessingParams.size>0&&d.push(Lu(u,!0)),l=f=>te(I.i18nPostprocess).callFn([f,...d])}return i.push(...N1(n.message,a,o,n.params,l)),{mainVar:a,statements:i}}function L1(t,e){for(let[r,n]of e)n.length===1?t.params.set(r,n[0]):(t.params.set(r,$(`${Bd}${P1}${r}${Bd}`)),t.postprocessingParams.set(r,Se(n)))}function N1(t,e,r,n,i){let s=Object.fromEntries(n),a=[M1(e),nc(F1(),x1(e,t,r,s),C1(e,t,Ah(s,!1)))];return i&&a.push(new lr(e.set(i(e)))),a}function F1(){return Ua(pe(Fd)).notIdentical($("undefined",wh)).and(pe(Fd))}function B1(t,e,r,n){let i,s=r;if(n){let a=Rd("EXTERNAL_"),o=t.uniqueName(s);i=`${a}${Yn(e)}$$${o}`}else{let a=Rd(s);i=t.uniqueName(a)}return pe(i)}function R1(t){for(let e of t.units){let r=null,n=null,i=new Map,s=new Map,a=new Map;for(let o of e.create)switch(o.kind){case b.I18nStart:if(o.context===null)throw Error("I18n op should have its context set.");r=o;break;case b.I18nEnd:r=null;break;case b.IcuStart:if(o.context===null)throw Error("Icu op should have its context set.");n=o;break;case b.IcuEnd:n=null;break;case b.Text:if(r!==null)if(i.set(o.xref,r),s.set(o.xref,n),o.icuPlaceholder!==null){let l=pE(t.allocateXrefId(),o.icuPlaceholder,[o.initialValue]);q.replace(o,l),a.set(o.xref,l)}else q.remove(o);break}for(let o of e.update)switch(o.kind){case b.InterpolateText:if(!i.has(o.target))continue;let l=i.get(o.target),c=s.get(o.target),u=a.get(o.target),d=c?c.context:l.context,f=c?Ia.Postproccessing:Ia.Creation,h=[];for(let p=0;p<o.interpolation.expressions.length;p++){let g=o.interpolation.expressions[p];h.push(eg(d,l.xref,l.xref,l.handle,g,u?.xref??null,o.interpolation.i18nPlaceholders[p]??null,f,ys.I18nText,"",g.sourceSpan??o.sourceSpan))}q.replaceWithMany(o,h),u!==void 0&&(u.strings=o.interpolation.strings);break}}}function O1(t){for(let e of t.units)for(let r of e.create)switch(r.kind){case b.ElementStart:case b.ConditionalCreate:case b.ConditionalBranchCreate:case b.Template:if(!Array.isArray(r.localRefs))throw new Error("AssertionError: expected localRefs to be an array still");if(r.numSlotsUsed+=r.localRefs.length,r.localRefs.length>0){let n=$1(r.localRefs);r.localRefs=t.addConst(n)}else r.localRefs=null;break}}function $1(t){let e=[];for(let r of t)e.push($(r.name),$(r.target));return Se(e)}function V1(t){for(let e of t.units){let r=ut.HTML;for(let n of e.create)n.kind===b.ElementStart&&n.namespace!==r&&(q.insertBefore(iE(n.namespace),n),r=n.namespace)}}function z1(t){let e=[],r=0,n=0,i=0,s=0,a=0,o=null;for(;r<t.length;)switch(t.charCodeAt(r++)){case 40:n++;break;case 41:n--;break;case 39:i===0?i=39:i===39&&t.charCodeAt(r-1)!==92&&(i=0);break;case 34:i===0?i=34:i===34&&t.charCodeAt(r-1)!==92&&(i=0);break;case 58:!o&&n===0&&i===0&&(o=Cg(t.substring(a,r-1).trim()),s=r);break;case 59:if(o&&s>0&&n===0&&i===0){let c=t.substring(s,r-1).trim();e.push(o,c),a=r,s=0,o=null}break}if(o&&s){let l=t.slice(s).trim();e.push(o,l)}return e}function Cg(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function H1(t){let e=new Map;for(let r of t.units)for(let n of r.create)Bn(n)&&e.set(n.xref,n);for(let r of t.units)for(let n of r.create)if(n.kind===b.ExtractedAttribute&&n.bindingKind===K.Attribute&&tg(n.expression)){let i=e.get(n.target);if(i!==void 0&&(i.kind===b.Template||i.kind===b.ConditionalCreate||i.kind===b.ConditionalBranchCreate)&&i.templateKind===kt.Structural)continue;if(n.name==="style"){let s=z1(n.expression.value);for(let a=0;a<s.length-1;a+=2)q.insertBefore(nr(n.target,K.StyleProperty,null,s[a],$(s[a+1]),null,null,we.STYLE),n);q.remove(n)}else if(n.name==="class"){let s=n.expression.value.trim().split(/\s+/g);for(let a of s)q.insertBefore(nr(n.target,K.ClassName,null,a,null,null,null,we.NONE),n);q.remove(n)}}}function G1(t){js(t.root,t.componentName,{index:0},t.compatibility===Wt.TemplateDefinitionBuilder)}function js(t,e,r,n){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(Yn(`${e}_${t.job.fnSuffix}`),!1));let i=new Map;for(let s of t.ops())switch(s.kind){case b.Property:case b.DomProperty:s.bindingKind===K.LegacyAnimation&&(s.name="@"+s.name);break;case b.Animation:if(s.handlerFnName===null){let u=s.name.replace(".","");s.handlerFnName=`${t.fnName}_${u}_cb`,s.handlerFnName=Yn(s.handlerFnName)}break;case b.AnimationListener:if(s.handlerFnName!==null)break;
37if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let a=s.name.replace(".","");s.hostListener?s.handlerFnName=`${e}_${a}_HostBindingHandler`:s.handlerFnName=`${t.fnName}_${s.tag.replace("-","_")}_${a}_${s.targetSlot.slot}_listener`,s.handlerFnName=Yn(s.handlerFnName);break;case b.Listener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o="";s.isLegacyAnimationListener&&(s.name=`@${s.name}.${s.legacyAnimationPhase}`,o="animation"),s.hostListener?s.handlerFnName=`${e}_${o}${s.name}_HostBindingHandler`:s.handlerFnName=`${t.fnName}_${s.tag.replace("-","_")}_${o}${s.name}_${s.targetSlot.slot}_listener`,s.handlerFnName=Yn(s.handlerFnName);break;case b.TwoWayListener:if(s.handlerFnName!==null)break;if(s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");s.handlerFnName=Yn(`${t.fnName}_${s.tag.replace("-","_")}_${s.name}_${s.targetSlot.slot}_listener`);break;case b.Variable:i.set(s.xref,q1(t,s.variable,r));break;case b.RepeaterCreate:if(!(t instanceof ir))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.emptyView!==null){let u=t.job.views.get(s.emptyView);js(u,`${e}_${s.functionNameSuffix}Empty_${s.handle.slot+2}`,r,n)}js(t.job.views.get(s.xref),`${e}_${s.functionNameSuffix}_${s.handle.slot+1}`,r,n);break;case b.Projection:if(!(t instanceof ir))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.fallbackView!==null){let u=t.job.views.get(s.fallbackView);js(u,`${e}_ProjectionFallback_${s.handle.slot}`,r,n)}break;case b.ConditionalCreate:case b.ConditionalBranchCreate:case b.Template:if(!(t instanceof ir))throw new Error("AssertionError: must be compiling a component");let l=t.job.views.get(s.xref);if(s.handle.slot===null)throw new Error("Expected slot to be assigned");let c=s.functionNameSuffix.length===0?"":`_${s.functionNameSuffix}`;js(l,`${e}${c}_${s.handle.slot}`,r,n);break;case b.StyleProp:s.name=j1(s.name),n&&(s.name=Od(s.name));break;case b.ClassProp:n&&(s.name=Od(s.name));break}for(let s of t.ops())Je(s,a=>{if(!(!(a instanceof an)||a.name!==null)){if(!i.has(a.xref))throw new Error(`Variable ${a.xref} not yet named`);a.name=i.get(a.xref)}})}function q1(t,e,r){if(e.name===null)switch(e.kind){case Ze.Context:e.name=`ctx_r${r.index++}`;break;case Ze.Identifier:if(t.job.compatibility===Wt.TemplateDefinitionBuilder){let n=e.identifier==="ctx"?"i":"";e.name=`${e.identifier}_${n}r${++r.index}`}else e.name=`${e.identifier}_i${r.index++}`;break;default:e.name=`_r${++r.index}`;break}return e.name}function j1(t){return t.startsWith("--")?t:Cg(t)}function Od(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function W1(t){for(let e of t.units){for(let r of e.create)(r.kind===b.Listener||r.kind===b.Animation||r.kind===b.AnimationListener||r.kind===b.TwoWayListener)&&$d(r.handlerOps);$d(e.update)}}function $d(t){for(let e of t){if(e.kind!==b.Statement||!(e.statement instanceof lr)||!(e.statement.expr instanceof Pl))continue;let r=e.statement.expr.steps,n=!0;for(let i=e.next;i.kind!==b.ListEnd&&n;i=i.next)Je(i,(s,a)=>{if(!Wr(s))return s;if(n&&!(a&ye.InChildOperation))switch(s.kind){case re.NextContext:s.steps+=r,q.remove(e),n=!1;break;case re.GetCurrentView:case re.Reference:case re.ContextLetReference:n=!1;break}})}}var U1="ng-container";function X1(t){for(let e of t.units){let r=new Set;for(let n of e.create)n.kind===b.ElementStart&&n.tag===U1&&(n.kind=b.ContainerStart,r.add(n.xref)),n.kind===b.ElementEnd&&r.has(n.xref)&&(n.kind=b.ContainerEnd)}}function Y1(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an element-like target.");return r}function Z1(t){let e=new Map;for(let r of t.units)for(let n of r.create)Bn(n)&&e.set(n.xref,n);for(let r of t.units)for(let n of r.create)(n.kind===b.ElementStart||n.kind===b.ContainerStart)&&n.nonBindable&&q.insertAfter(eE(n.xref),n),(n.kind===b.ElementEnd||n.kind===b.ContainerEnd)&&Y1(e,n.xref).nonBindable&&q.insertBefore(tE(n.xref),n)}function tn(t){return e=>e.kind===t}function Zs(t,e){return r=>r.kind===t&&e===r.expression instanceof Be}function Q1(t){return t.kind===b.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===b.TwoWayListener||t.kind===b.Animation||t.kind===b.AnimationListener}function J1(t){return(t.kind===b.Property||t.kind===b.TwoWayProperty)&&!(t.expression instanceof Be)}var K1=[{test:t=>t.kind===b.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:Q1}],eb=[{test:tn(b.StyleMap),transform:Wl},{test:tn(b.ClassMap),transform:Wl},{test:tn(b.StyleProp)},{test:tn(b.ClassProp)},{test:Zs(b.Attribute,!0)},{test:Zs(b.Property,!0)},{test:J1},{test:Zs(b.Attribute,!1)}],tb=[{test:Zs(b.DomProperty,!0)},{test:Zs(b.DomProperty,!1)},{test:tn(b.Attribute)},{test:tn(b.StyleMap),transform:Wl},{test:tn(b.ClassMap),transform:Wl},{test:tn(b.StyleProp)},{test:tn(b.ClassProp)}],Vd=new Set([b.Listener,b.TwoWayListener,b.AnimationListener,b.StyleMap,b.ClassMap,b.StyleProp,b.ClassProp,b.Property,b.TwoWayProperty,b.DomProperty,b.Attribute,b.Animation]);function rb(t){for(let e of t.units){zd(e.create,K1);let r=e.job.kind===Z.Host?tb:eb;zd(e.update,r)}}function zd(t,e){let r=[],n=null;for(let i of t){let s=Ma(i)?i.target:null;(!Vd.has(i.kind)||s!==n&&n!==null&&s!==null)&&(q.insertBefore(Hd(r,e),i),r=[],n=null),Vd.has(i.kind)&&(r.push(i),q.remove(i),n=s??n)}t.push(Hd(r,e))}function Hd(t,e){let r=Array.from(e,()=>new Array);for(let n of t){let i=e.findIndex(s=>s.test(n));r[i].push(n)}return r.flatMap((n,i)=>{let s=e[i].transform;return s?s(n):n})}function Wl(t){return t.slice(t.length-1)}function nb(t){for(let e of t.units){let r=hg(e);
37for(let n of e.ops())switch(n.kind){case b.Binding:let i=sb(r,n.target);ib(n.name)&&i.kind===b.Projection&&q.remove(n);break}}}function ib(t){return t.toLowerCase()==="select"}function sb(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an slottable target.");return r}function ab(t){for(let e of t.units)lb(e)}function lb(t){for(let e of t.update)Je(e,(r,n)=>{if(Wr(r)&&r.kind===re.PipeBinding){if(n&ye.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(t.job.compatibility){if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");cb(t,e.target,r)}else t.create.push(lg(r.target,r.targetSlot,r.name))}})}function cb(t,e,r){for(let n=t.create.head.next;n.kind!==b.ListEnd;n=n.next){if(!Es(n)||n.xref!==e)continue;for(;n.next.kind===b.Pipe;)n=n.next;let i=lg(r.target,r.targetSlot,r.name);q.insertBefore(i,n.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${r.name}`)}function ub(t){for(let e of t.units)for(let r of e.update)ze(r,n=>!(n instanceof Ei)||n.args.length<=4?n:new Na(n.target,n.targetSlot,n.name,Se(n.args),n.args.length),ye.None)}function hb(t){Tg(t.root,0)}function Tg(t,e){let r=null;for(let n of t.create)switch(n.kind){case b.I18nStart:n.subTemplateIndex=e===0?null:e,r=n;break;case b.I18nEnd:r.subTemplateIndex===null&&(e=0),r=null;break;case b.ConditionalCreate:case b.ConditionalBranchCreate:case b.Template:e=Io(t.job.views.get(n.xref),r,n.i18nPlaceholder,e);break;case b.RepeaterCreate:let i=t.job.views.get(n.xref);e=Io(i,r,n.i18nPlaceholder,e),n.emptyView!==null&&(e=Io(t.job.views.get(n.emptyView),r,n.emptyI18nPlaceholder,e));break;case b.Projection:n.fallbackView!==null&&(e=Io(t.job.views.get(n.fallbackView),r,n.fallbackViewI18nPlaceholder,e));break}return e}function Io(t,e,r,n){if(r!==void 0){if(e===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");n++,pb(t,e)}return Tg(t,n)}function pb(t,e){if(t.create.head.next?.kind!==b.I18nStart){let r=t.job.allocateXrefId();q.insertAfter(lc(r,e.message,e.root,null),t.create.head),q.insertBefore(cc(r,null),t.create.tail)}}function fb(t){for(let e of t.units)for(let r of e.ops())Je(r,n=>{if(!(n instanceof Si)||n.body===null)return;let i=new Ku(n.args.length);n.fn=t.pool.getSharedConstant(i,n.body),n.body=null})}var Ku=class extends Ui{numArgs;constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof us?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,r){let n=[];for(let s=0;s<this.numArgs;s++)n.push(new Qe("a"+s));let i=Q(r,s=>s instanceof us?pe("a"+s.index):s,ye.None);return new Ue(e,new ui(n,i),void 0,rt.Final)}};function db(t){for(let e of t.units)for(let r of e.update)ze(r,(n,i)=>i&ye.InChildOperation?n:n instanceof wr?mb(n):n instanceof Hr?gb(n):n,ye.None)}function mb(t){let e=[],r=[];for(let n of t.entries)if(n.isConstant())e.push(n);else{let i=r.length;r.push(n),e.push(new us(i))}return new Si(Se(e),r)}function gb(t){let e=[],r=[];for(let n of t.entries)if(n.value.isConstant())e.push(n);else{let i=r.length;r.push(n.value),e.push(new Ki(n.key,new us(i),n.quoted))}return new Si(yt(e),r)}function vb(t,e,r,n,i){return $n(I.element,t,e,r,n,i)}function yb(t,e,r,n,i){return $n(I.elementStart,t,e,r,n,i)}function $n(t,e,r,n,i,s){let a=[$(e)];return r!==null&&a.push($(r)),i!==null?a.push($(n),$(i)):n!==null&&a.push($(n)),oe(t,a,s)}function Ag(t,e,r,n,i,s,a,o,l){let c=[$(e),r,$(n),$(i),$(s),$(a)];for(o!==null&&(c.push($(o)),c.push(te(I.templateRefExtractor)));c[c.length-1].isEquivalent(es);)c.pop();return oe(t,c,l)}function Bh(t,e,r,n,i){let s=[$(e)];return r instanceof Be?s.push(xs(r,i)):s.push(r),n!==null&&s.push(n),oe(t,s,i)}function Sb(t){return oe(I.elementEnd,[],t)}function Eb(t,e,r,n){return $n(I.elementContainerStart,t,null,e,r,n)}function xb(t,e,r,n){return $n(I.elementContainer,t,null,e,r,n)}function bb(){return oe(I.elementContainerEnd,[],null)}function wb(t,e,r,n,i,s,a,o){return Ag(I.templateCreate,t,e,r,n,i,s,a,o)}function Cb(){return oe(I.disableBindings,[],null)}function Tb(){return oe(I.enableBindings,[],null)}function Ab(t,e,r,n,i){let s=[$(t),e];return r!==null&&s.push(te(r)),oe(n?I.syntheticHostListener:I.listener,s,i)}function Gd(t,e){return te(I.twoWayBindingSet).callFn([t,e])}function _b(t,e,r){return oe(I.twoWayListener,[$(t),e],r)}function kb(t,e){return oe(I.pipe,[$(t),$(e)],null)}function Pb(){return oe(I.namespaceHTML,[],null)}function Ib(){return oe(I.namespaceSVG,[],null)}function Mb(){return oe(I.namespaceMathML,[],null)}function Db(t,e){return oe(I.advance,t>1?[$(t)]:[],e)}
37function Lb(t){return te(I.reference).callFn([$(t)])}function Nb(t){return te(I.nextContext).callFn(t===1?[]:[$(t)])}function Fb(){return te(I.getCurrentView).callFn([])}function Bb(t){return te(I.restoreView).callFn([t])}function Rb(t){return te(I.resetView).callFn([t])}function Ob(t,e,r){let n=[$(t,null)];return e!==""&&n.push($(e)),oe(I.text,n,r)}function $b(t,e,r,n,i,s,a,o,l,c,u){let d=[$(t),$(e),r??$(null),$(n),$(i),$(s),a??$(null),o??$(null),l?te(I.deferEnableTimerScheduling):$(null),$(u)],f;for(;(f=d[d.length-1])!==null&&f instanceof st&&f.value===null;)d.pop();return oe(I.defer,d,c)}var Vb=new Map([[be.Idle,{none:I.deferOnIdle,prefetch:I.deferPrefetchOnIdle,hydrate:I.deferHydrateOnIdle}],[be.Immediate,{none:I.deferOnImmediate,prefetch:I.deferPrefetchOnImmediate,hydrate:I.deferHydrateOnImmediate}],[be.Timer,{none:I.deferOnTimer,prefetch:I.deferPrefetchOnTimer,hydrate:I.deferHydrateOnTimer}],[be.Hover,{none:I.deferOnHover,prefetch:I.deferPrefetchOnHover,hydrate:I.deferHydrateOnHover}],[be.Interaction,{none:I.deferOnInteraction,prefetch:I.deferPrefetchOnInteraction,hydrate:I.deferHydrateOnInteraction}],[be.Viewport,{none:I.deferOnViewport,prefetch:I.deferPrefetchOnViewport,hydrate:I.deferHydrateOnViewport}],[be.Never,{none:I.deferHydrateNever,prefetch:I.deferHydrateNever,hydrate:I.deferHydrateNever}]]);function zb(t,e,r,n){let i=Vb.get(t)?.[r];if(i===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return oe(i,e.map(s=>$(s)),n)}function Hb(t){return oe(I.projectionDef,t?[t]:[],null)}function Gb(t,e,r,n,i,s,a){let o=[$(t)];return(e!==0||r!==null||n!==null)&&(o.push($(e)),r!==null&&o.push(r),n!==null&&(r===null&&o.push($(null)),o.push(pe(n),$(i),$(s)))),oe(I.projection,o,a)}function qb(t,e,r,n){let i=[$(t),$(e)];return r!==null&&i.push($(r)),oe(I.i18nStart,i,n)}function jb(t,e,r,n,i,s,a,o){let l=[$(t),e,$(r),$(n),$(i),$(s)];for(a!==null&&(l.push($(a)),l.push(te(I.templateRefExtractor)));l[l.length-1].isEquivalent(es);)l.pop();return oe(I.conditionalCreate,l,o)}function Wb(t,e,r,n,i,s,a,o){let l=[$(t),e,$(r),$(n),$(i),$(s)];for(a!==null&&(l.push($(a)),l.push(te(I.templateRefExtractor)));l[l.length-1].isEquivalent(es);)l.pop();return oe(I.conditionalBranchCreate,l,o)}function Ub(t,e,r,n,i,s,a,o,l,c,u,d,f,h){let p=[$(t),pe(e),$(r),$(n),$(i),$(s),a];return(o||l!==null)&&(p.push($(o)),l!==null&&(p.push(pe(l),$(c),$(u)),(d!==null||f!==null)&&p.push($(d)),f!==null&&p.push($(f)))),oe(I.repeaterCreate,p,h)}function Xb(t,e){return oe(I.repeater,[t],e)}function Yb(t,e,r){return t==="prefetch"?oe(I.deferPrefetchWhen,[e],r):t==="hydrate"?oe(I.deferHydrateWhen,[e],r):oe(I.deferWhen,[e],r)}function Zb(t,e){return oe(I.declareLet,[$(t)],e)}function Qb(t,e){return te(I.storeLet).callFn([t],e)}function Jb(t){return te(I.readContextLet).callFn([$(t)])}function Kb(t,e,r,n){let i=[$(t),$(e)];return r&&i.push($(r)),oe(I.i18n,i,n)}function ew(t){return oe(I.i18nEnd,[],t)}function tw(t,e){let r=[$(t),$(e)];return oe(I.i18nAttributes,r,null)}function rw(t,e,r){return Bh(I.ariaProperty,t,e,null,r)}function nw(t,e,r,n){return Bh(I.property,t,e,r,n)}function iw(t,e,r,n){let i=[$(t),e];return r!==null&&i.push(r),oe(I.twoWayProperty,i,n)}function sw(t,e,r,n,i){let s=[$(t)];return e instanceof Be?s.push(xs(e,i)):s.push(e),(r!==null||n!==null)&&s.push(r??$(null)),n!==null&&s.push($(n)),oe(I.attribute,s,null)}function aw(t,e,r,n){let i=[$(t)];return e instanceof Be?i.push(xs(e,n)):i.push(e),r!==null&&i.push($(r)),oe(I.styleProp,i,n)}function ow(t,e,r){return oe(I.classProp,[$(t),e],r)}function lw(t,e){let r=t instanceof Be?xs(t,e):t;return oe(I.styleMap,[r],e)}function cw(t,e){let r=t instanceof Be?xs(t,e):t;return oe(I.classMap,[r],e)}function uw(t,e,r,n,i){return $n(I.domElement,t,e,r,n,i)}function hw(t,e,r,n,i){return $n(I.domElementStart,t,e,r,n,i)}function pw(t){return oe(I.domElementEnd,[],t)}function fw(t,e,r,n){return $n(I.domElementContainerStart,t,null,e,r,n)}function dw(t,e,r,n){return $n(I.domElementContainer,t,null,e,r,n)}function mw(){return oe(I.domElementContainerEnd,[],null)}function gw(t,e,r,n){let i=[$(t),e];return r!==null&&i.push(te(r)),oe(I.domListener,i,n)}function vw(t,e,r,n,i,s,a,o){return Ag(I.domTemplate,t,e,r,n,i,s,a,o)}
37var qd=[I.pipeBind1,I.pipeBind2,I.pipeBind3,I.pipeBind4];function yw(t,e,r){if(r.length<1||r.length>qd.length)throw new Error("pipeBind() argument count out of bounds");let n=qd[r.length-1];return te(n).callFn([$(t),$(e),...r])}function Sw(t,e,r){return te(I.pipeBindV).callFn([$(t),$(e),r])}function Ew(t,e,r){let n=_g(t,e);return Nw(Mw,[],n,[],r)}function xw(t,e){return oe(I.i18nExp,[t],e)}function bw(t,e){return oe(I.i18nApply,[$(t)],e)}function ww(t,e,r,n){return Bh(I.domProperty,t,e,r,n)}function Cw(t,e,r,n){let i=[e];r!==null&&i.push(r);let s=t==="enter"?I.animationEnter:I.animationLeave;return oe(s,i,n)}function Tw(t,e,r,n){let s=[e instanceof Be?xs(e,n):e];r!==null&&s.push(r);let a=t==="enter"?I.animationEnter:I.animationLeave;return oe(a,s,n)}function Aw(t,e,r,n){let i=[e],s=t==="enter"?I.animationEnterListener:I.animationLeaveListener;return oe(s,i,n)}function _w(t,e,r){return oe(I.syntheticHostProperty,[$(t),e],r)}function kw(t,e,r){return Rh(Lw,[$(t),e],r,[],null)}function Pw(t,e){return oe(I.attachSourceLocations,[$(t),e],null)}function _g(t,e){if(t.length<1||e.length!==t.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let r=[];if(e.length===1&&t[0]===""&&t[1]==="")r.push(e[0]);else{let n;for(n=0;n<e.length;n++)r.push($(t[n]),e[n]);r.push($(t[n]))}return r}function xs(t,e){let r=_g(t.strings,t.expressions);return Rh(Dw,[],r,[],e)}function oe(t,e,r){let n=te(t).callFn(e,r);return ur(new lr(n,r))}function Iw(t,e,r){let n=[t];return e!==null&&n.push(e),oe(I.conditional,n,r)}var Mw={constant:[I.textInterpolate,I.textInterpolate1,I.textInterpolate2,I.textInterpolate3,I.textInterpolate4,I.textInterpolate5,I.textInterpolate6,I.textInterpolate7,I.textInterpolate8],variable:I.textInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},Dw={constant:[I.interpolate,I.interpolate1,I.interpolate2,I.interpolate3,I.interpolate4,I.interpolate5,I.interpolate6,I.interpolate7,I.interpolate8],variable:I.interpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},Lw={constant:[I.pureFunction0,I.pureFunction1,I.pureFunction2,I.pureFunction3,I.pureFunction4,I.pureFunction5,I.pureFunction6,I.pureFunction7,I.pureFunction8],variable:I.pureFunctionV,mapping:t=>t};function Rh(t,e,r,n,i){let s=t.mapping(r.length),a=r.at(-1);if(n.length===0&&r.length>1&&a instanceof st&&a.value===""&&r.pop(),s<t.constant.length)return te(t.constant[s]).callFn([...e,...r,...n],i);if(t.variable!==null)return te(t.variable).callFn([...e,Se(r),...n],i);throw new Error("AssertionError: unable to call variadic function")}function Nw(t,e,r,n,i){return ur(Rh(t,e,r,n,i).toStmt())}var Fw=new Map([["window",I.resolveWindow],["document",I.resolveDocument],["body",I.resolveBody]]),Bw=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function Rw(t){for(let e of t.units)Ow(e,e.create),Oh(e,e.update)}function Ow(t,e){for(let r of e)switch(ze(r,kg,ye.None),r.kind){case b.Text:q.replace(r,Ob(r.handle.slot,r.initialValue,r.sourceSpan));break;case b.ElementStart:q.replace(r,t.job.mode===Tt.DomOnly?hw(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan):yb(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case b.Element:q.replace(r,t.job.mode===Tt.DomOnly?uw(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan):vb(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan));break;case b.ElementEnd:q.replace(r,t.job.mode===Tt.DomOnly?pw(r.sourceSpan):Sb(r.sourceSpan));break;case b.ContainerStart:q.replace(r,t.job.mode===Tt.DomOnly?fw(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan):Eb(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan));break;case b.Container:q.replace(r,t.job.mode===Tt.DomOnly?dw(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan):xb(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan));break;case b.ContainerEnd:q.replace(r,t.job.mode===Tt.DomOnly?mw():bb());break;case b.I18nStart:q.replace(r,qb(r.handle.slot,r.messageIndex,r.subTemplateIndex,r.sourceSpan));break;case b.I18nEnd:q.replace(r,ew(r.sourceSpan));break;case b.I18n:q.replace(r,Kb(r.handle.slot,r.messageIndex,r.subTemplateIndex,r.sourceSpan));break;case b.I18nAttributes:if(r.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");q.replace(r,tw(r.handle.slot,r.i18nAttributesConfig));break;case b.Template:if(!(t instanceof ir))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(r.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let n=t.job.views.get(r.xref);q.replace(r,r.templateKind===kt.Block||t.job.mode===Tt.DomOnly?vw(r.handle.slot,pe(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan):wb(r.handle.slot,pe(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case b.DisableBindings:q.replace(r,Cb());break;case b.EnableBindings:q.replace(r,Tb());break;case b.Pipe:q.replace(r,kb(r.handle.slot,r.name));break;
37case b.DeclareLet:q.replace(r,Zb(r.handle.slot,r.sourceSpan));break;case b.AnimationString:q.replace(r,Tw(r.animationKind,r.expression,r.sanitizer,r.sourceSpan));break;case b.Animation:let i=Mo(t,r.handlerFnName,r.handlerOps,!1);q.replace(r,Cw(r.animationKind,i,r.sanitizer,r.sourceSpan));break;case b.AnimationListener:let s=Mo(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent);q.replace(r,Aw(r.animationKind,s,null,r.sourceSpan));break;case b.Listener:let a=Mo(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent),o=r.eventTarget?Fw.get(r.eventTarget):null;if(o===void 0)throw new Error(`Unexpected global target '${r.eventTarget}' defined for '${r.name}' event. Supported list of global targets: window,document,body.`);q.replace(r,t.job.mode===Tt.DomOnly&&!r.hostListener&&!r.isLegacyAnimationListener?gw(r.name,a,o,r.sourceSpan):Ab(r.name,a,o,r.hostListener&&r.isLegacyAnimationListener,r.sourceSpan));break;case b.TwoWayListener:q.replace(r,_b(r.name,Mo(t,r.handlerFnName,r.handlerOps,!0),r.sourceSpan));break;case b.Variable:if(r.variable.name===null)throw new Error(`AssertionError: unnamed variable ${r.xref}`);q.replace(r,ur(new Ue(r.variable.name,r.initializer,void 0,rt.Final)));break;case b.Namespace:switch(r.active){case ut.HTML:q.replace(r,Pb());break;case ut.SVG:q.replace(r,Ib());break;case ut.Math:q.replace(r,Mb());break}break;case b.Defer:let l=!!r.loadingMinimumTime||!!r.loadingAfterTime||!!r.placeholderMinimumTime;q.replace(r,$b(r.handle.slot,r.mainSlot.slot,r.resolverFn,r.loadingSlot?.slot??null,r.placeholderSlot?.slot??null,r.errorSlot?.slot??null,r.loadingConfig,r.placeholderConfig,l,r.sourceSpan,r.flags));break;case b.DeferOn:let c=[];switch(r.trigger.kind){case be.Never:case be.Idle:case be.Immediate:break;case be.Timer:c=[r.trigger.delay];break;case be.Interaction:case be.Hover:case be.Viewport:r.modifier==="hydrate"?c=[]:(c=[r.trigger.targetSlot?.slot??null],r.trigger.targetSlotViewSteps!==0&&c.push(r.trigger.targetSlotViewSteps));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${r.trigger.kind}`)}q.replace(r,zb(r.trigger.kind,c,r.modifier,r.sourceSpan));break;case b.ProjectionDef:q.replace(r,Hb(r.def));break;case b.Projection:if(r.handle.slot===null)throw new Error("No slot was assigned for project instruction");let u=null,d=null,f=null;if(r.fallbackView!==null){if(!(t instanceof ir))throw new Error("AssertionError: must be compiling a component");let S=t.job.views.get(r.fallbackView);if(S===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(S.fnName===null||S.decls===null||S.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");u=S.fnName,d=S.decls,f=S.vars}q.replace(r,Gb(r.handle.slot,r.projectionSlotIndex,r.attributes,u,d,f,r.sourceSpan));break;case b.ConditionalCreate:if(!(t instanceof ir))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(r.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let h=t.job.views.get(r.xref);q.replace(r,jb(r.handle.slot,pe(h.fnName),h.decls,h.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case b.ConditionalBranchCreate:if(!(t instanceof ir))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(r.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let p=t.job.views.get(r.xref);q.replace(r,Wb(r.handle.slot,pe(p.fnName),p.decls,p.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case b.RepeaterCreate:if(r.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(t instanceof ir))throw new Error("AssertionError: must be compiling a component");let g=t.job.views.get(r.xref);if(g.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let E=null,m=null,v=null;if(r.emptyView!==null){let S=t.job.views.get(r.emptyView);if(S===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(S.fnName===null||S.decls===null||S.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");E=S.fnName,m=S.decls,v=S.vars}q.replace(r,Ub(r.handle.slot,g.fnName,r.decls,r.vars,r.tag,r.attributes,Vw(t,r),r.usesComponentInstance,E,m,v,r.emptyTag,r.emptyAttributes,r.wholeSourceSpan));break;case b.SourceLocation:let y=Se(r.locations.map(({targetSlot:S,offset:w,line:A,column:P})=>{if(S.slot===null)throw new Error("No slot was assigned for source location");return Se([$(S.slot),$(w),$(A),$(P)])}));q.replace(r,Pw(r.templatePath,y));break;case b.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${b[r.kind]}`)}}function Oh(t,e){for(let r of e)switch(ze(r,kg,ye.None),r.kind){case b.Advance:q.replace(r,Db(r.delta,r.sourceSpan));break;case b.Property:q.replace(r,t.job.mode===Tt.DomOnly&&r.bindingKind!==K.LegacyAnimation&&r.bindingKind!==K.Animation?jd(r):$w(r));break;case b.TwoWayProperty:q.replace(r,iw(r.name,r.expression,r.sanitizer,r.sourceSpan));break;case b.StyleProp:q.replace(r,aw(r.name,r.expression,r.unit,r.sourceSpan));break;case b.ClassProp:q.replace(r,ow(r.name,r.expression,r.sourceSpan));break;case b.StyleMap:q.replace(r,lw(r.expression,r.sourceSpan));break;case b.ClassMap:q.replace(r,cw(r.expression,r.sourceSpan));break;case b.I18nExpression:q.replace(r,xw(r.expression,r.sourceSpan));break;case b.I18nApply:q.replace(r,bw(r.handle.slot,r.sourceSpan));break;case b.InterpolateText:q.replace(r,Ew(r.interpolation.strings,r.interpolation.expressions,r.sourceSpan));break;case b.Attribute:q.replace(r,sw(r.name,r.expression,r.sanitizer,r.namespace,r.sourceSpan));break;case b.DomProperty:if(r.expression instanceof Be)throw new Error("not yet handled");r.bindingKind===K.LegacyAnimation||r.bindingKind===K.Animation?q.replace(r,_w(r.name,r.expression,r.sourceSpan)):q.replace(r,jd(r));break;case b.Variable:if(r.variable.name===null)throw new Error(`AssertionError: unnamed variable ${r.xref}`);q.replace(r,ur(new Ue(r.variable.name,r.initializer,void 0,rt.Final)));break;case b.Conditional:if(r.processed===null)throw new Error("Conditional test was not set.");q.replace(r,Iw(r.processed,r.contextValue,r.sourceSpan));break;case b.Repeater:q.replace(r,Xb(r.collection,r.sourceSpan));break;case b.DeferWhen:q.replace(r,Yb(r.modifier,r.expr,r.sourceSpan));break;case b.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${r.declaredName}`);case b.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${b[r.kind]}`)}}
37function jd(t){return ww(Bw.get(t.name)??t.name,t.expression,t.sanitizer,t.sourceSpan)}function $w(t){return pg(t.name)?rw(t.name,t.expression,t.sourceSpan):nw(t.name,t.expression,t.sanitizer,t.sourceSpan)}function kg(t){if(!Wr(t))return t;switch(t.kind){case re.NextContext:return Nb(t.steps);case re.Reference:return Lb(t.targetSlot.slot+1+t.offset);case re.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${t.name}`);case re.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case re.RestoreView:if(typeof t.view=="number")throw new Error("AssertionError: unresolved RestoreView");return Bb(t.view);case re.ResetView:return Rb(t.expr);case re.GetCurrentView:return Fb();case re.ReadVariable:if(t.name===null)throw new Error(`Read of unnamed variable ${t.xref}`);return pe(t.name);case re.ReadTemporaryExpr:if(t.name===null)throw new Error(`Read of unnamed temporary ${t.xref}`);return pe(t.name);case re.AssignTemporaryExpr:if(t.name===null)throw new Error(`Assign of unnamed temporary ${t.xref}`);return pe(t.name).set(t.expr);case re.PureFunctionExpr:if(t.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return kw(t.varOffset,t.fn,t.args);case re.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case re.PipeBinding:return yw(t.targetSlot.slot,t.varOffset,t.args);case re.PipeBindingVariadic:return Sw(t.targetSlot.slot,t.varOffset,t.args);case re.SlotLiteralExpr:return $(t.slot.slot);case re.ContextLetReference:return Jb(t.targetSlot.slot);case re.StoreLet:return Qb(t.value,t.sourceSpan);case re.TrackContext:return pe("this");default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${re[t.kind]}`)}}function Mo(t,e,r,n){Oh(t,r);let i=[];for(let a of r){if(a.kind!==b.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${b[a.kind]}`);i.push(a.statement)}let s=[];return n&&s.push(new Qe("$event")),Pn(s,i,void 0,void 0,e)}function Vw(t,e){if(e.trackByFn!==null)return e.trackByFn;let r=[new Qe("$index"),new Qe("$item")],n;if(e.trackByOps===null)n=e.usesComponentInstance?Pn(r,[new nt(e.track)]):Cr(r,e.track);else{Oh(t,e.trackByOps);let i=[];for(let s of e.trackByOps){if(s.kind!==b.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${b[s.kind]}`);i.push(s.statement)}n=e.usesComponentInstance||i.length!==1||!(i[0]instanceof nt)?Pn(r,i):Cr(r,i[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(n,"_forTrack"),e.trackByFn}function zw(t){for(let e of t.units)for(let r of e.update)switch(r.kind){case b.Attribute:case b.Binding:case b.ClassProp:case b.ClassMap:case b.Property:case b.StyleProp:case b.StyleMap:r.expression instanceof Fa&&q.remove(r);break}}function Hw(t){for(let e of t.units)for(let r of e.create)switch(r.kind){case b.I18nContext:q.remove(r);break;case b.I18nStart:r.context=null;break}}function Gw(t){for(let e of t.units)for(let r of e.update){if(r.kind!==b.Variable||r.variable.kind!==Ze.Identifier||!(r.initializer instanceof Da))continue;let n=r.variable.identifier,i=r;for(;i&&i.kind!==b.ListEnd;)ze(i,s=>s instanceof et&&s.name===n?$(void 0):s,ye.None),i=i.prev}}function qw(t){for(let e of t.units){let r=new Set;for(let n of e.update)switch(n.kind){case b.I18nExpression:r.add(n.i18nOwner)}for(let n of e.create)switch(n.kind){case b.I18nAttributes:if(r.has(n.xref))continue;q.remove(n)}}}function jw(t){for(let e of t.units)Ul(e,e.create),Ul(e,e.update)}function Ul(t,e){let r=new Map;r.set(t.xref,pe("ctx"));for(let n of e)switch(n.kind){case b.Variable:switch(n.variable.kind){case Ze.Context:r.set(n.variable.view,new an(n.xref));break}break;case b.Animation:case b.AnimationListener:case b.Listener:case b.TwoWayListener:Ul(t,n.handlerOps);break;case b.RepeaterCreate:n.trackByOps!==null&&Ul(t,n.trackByOps);break}t===t.job.root&&r.set(t.xref,pe("ctx"));for(let n of e)ze(n,i=>{if(i instanceof Nn){if(!r.has(i.view))throw new Error(`No context found for reference to view ${i.view} from view ${t.xref}`);return r.get(i.view)}else return i},ye.None)}function Ww(t){for(let e of t.units)for(let r of e.create)if(r.kind===b.Defer){if(r.resolverFn!==null)continue;if(r.ownResolverFn!==null){if(r.handle.slot===null)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");let n=e.fnName?.replace("_Template","");r.resolverFn=t.pool.getSharedFunctionReference(r.ownResolverFn,`${n}_Defer_${r.handle.slot}_DepsFn`,!1)}}}function Uw(t){for(let e of t.units)Wd(e.create),Wd(e.update)}function Wd(t){for(let e of t)(e.kind===b.Listener||e.kind===b.TwoWayListener||e.kind===b.AnimationListener)&&ze(e,r=>r instanceof et&&r.name==="$event"?((e.kind===b.Listener||e.kind===b.AnimationListener)&&(e.consumesDollarEvent=!0),new or(r.name)):r,ye.InChildOperation)}function Xw(t){let e=new Map,r=new Map;for(let n of t.units)for(let i of n.create)switch(i.kind){case b.I18nContext:e.set(i.xref,i);break;case b.ElementStart:r.set(i.xref,i);break}Fr(t,t.root,e,r)}function Fr(t,e,r,n,i){let s=null,a=new Map;for(let o of e.create)switch(o.kind){case b.I18nStart:if(!o.context)throw Error("Could not find i18n context for i18n op");s={i18nBlock:o,i18nContext:r.get(o.context)};break;case b.I18nEnd:s=null;break;case b.ElementStart:if(o.i18nPlaceholder!==void 0){if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Ud(o,s.i18nContext,s.i18nBlock,i),i&&o.i18nPlaceholder.closeName&&a.set(o.xref,i),i=void 0}break;case b.ElementEnd:let l=n.get(o.xref);if(l&&l.i18nPlaceholder!==void 0){if(s===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Xd(l,s.i18nContext,s.i18nBlock,a.get(o.xref)),a.delete(o.xref)}break;case b.Projection:if(o.i18nPlaceholder!==void 0){if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Ud(o,s.i18nContext,s.i18nBlock,i),Xd(o,s.i18nContext,s.i18nBlock,i),i=void 0}if(o.fallbackView!==null){let f=t.views.get(o.fallbackView);if(o.fallbackViewI18nPlaceholder===void 0)Fr(t,f,r,n);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Do(t,f,o.handle.slot,o.fallbackViewI18nPlaceholder,s.i18nContext,s.i18nBlock,i),Fr(t,f,r,n),Lo(t,f,o.handle.slot,o.fallbackViewI18nPlaceholder,s.i18nContext,s.i18nBlock,i),i=void 0}}break;case b.ConditionalCreate:case b.ConditionalBranchCreate:case b.Template:let c=t.views.get(o.xref);if(o.i18nPlaceholder===void 0)Fr(t,c,r,n);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");o.templateKind===kt.Structural?Fr(t,c,r,n,o):(Do(t,c,o.handle.slot,o.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),Fr(t,c,r,n),Lo(t,c,o.handle.slot,o.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),i=void 0)}break;case b.RepeaterCreate:if(i!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let u=o.handle.slot+1,d=t.views.get(o.xref);if(o.i18nPlaceholder===void 0)Fr(t,d,r,n);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Do(t,d,u,o.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),Fr(t,d,r,n),Lo(t,d,u,o.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),i=void 0}if(o.emptyView!==null){let f=o.handle.slot+2,h=t.views.get(o.emptyView);if(o.emptyI18nPlaceholder===void 0)Fr(t,h,r,n);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Do(t,h,f,o.emptyI18nPlaceholder,s.i18nContext,s.i18nBlock,i),Fr(t,h,r,n),Lo(t,h,f,o.emptyI18nPlaceholder,s.i18nContext,s.i18nBlock,i),i=void 0}}break}}function Ud(t,e,r,n){let{startName:i,closeName:s}=t.i18nPlaceholder,a=Te.ElementTag|Te.OpenTag,o=t.handle.slot;n!==void 0&&(a|=Te.TemplateTag,o={element:o,template:n.handle.slot}),s||(a|=Te.CloseTag),gs(e.params,i,o,r.subTemplateIndex,a)}function Xd(t,e,r,n){let{closeName:i}=t.i18nPlaceholder;if(i){let s=Te.ElementTag|Te.CloseTag,a=t.handle.slot;n!==void 0&&(s|=Te.TemplateTag,a={element:a,template:n.handle.slot}),gs(e.params,i,a,r.subTemplateIndex,s)}}function Do(t,e,r,n,i,s,a){let{startName:o,closeName:l}=n,c=Te.TemplateTag|Te.OpenTag;l||(c|=Te.CloseTag),a!==void 0&&gs(i.params,o,a.handle.slot,s.subTemplateIndex,c),gs(i.params,o,r,Pg(t,s,e),c)}function Lo(t,e,r,n,i,s,a){let{closeName:o}=n,l=Te.TemplateTag|Te.CloseTag;o&&(gs(i.params,o,r,Pg(t,s,e),l),a!==void 0&&gs(i.params,o,a.handle.slot,s.subTemplateIndex,l))}function Pg(t,e,r){for(let n of r.create)if(n.kind===b.I18nStart)return n.subTemplateIndex;return e.subTemplateIndex}function gs(t,e,r,n,i){let s=t.get(e)??[];s.push({value:r,subTemplateIndex:n,flags:i}),t.set(e,s)}function Yw(t){let e=new Map,r=new Map,n=new Map;for(let a of t.units)for(let o of a.create)switch(o.kind){case b.I18nStart:e.set(o.xref,o.subTemplateIndex);break;case b.I18nContext:r.set(o.xref,o);break;case b.IcuPlaceholder:n.set(o.xref,o);break}let i=new Map,s=a=>a.usage===ys.I18nText?a.i18nOwner:a.context;
37for(let a of t.units)for(let o of a.update)if(o.kind===b.I18nExpression){let l=i.get(s(o))||0,c=e.get(o.i18nOwner)??null,u={value:l,subTemplateIndex:c,flags:Te.ExpressionIndex};Zw(o,u,r,n),i.set(s(o),l+1)}}function Zw(t,e,r,n){if(t.i18nPlaceholder!==null){let i=r.get(t.context),s=t.resolutionTime===Ia.Creation?i.params:i.postprocessingParams,a=s.get(t.i18nPlaceholder)||[];a.push(e),s.set(t.i18nPlaceholder,a)}t.icuPlaceholder!==null&&n.get(t.icuPlaceholder)?.expressionPlaceholders.push(e)}function Qw(t){for(let e of t.units)Xl(e,e.create,null),Xl(e,e.update,null)}function Xl(t,e,r){let n=new Map,i=new Map;for(let s of e)switch(s.kind){case b.Variable:switch(s.variable.kind){case Ze.Identifier:if(s.variable.local){if(i.has(s.variable.identifier))continue;i.set(s.variable.identifier,s.xref)}else if(n.has(s.variable.identifier))continue;n.set(s.variable.identifier,s.xref);break;case Ze.Alias:if(n.has(s.variable.identifier))continue;n.set(s.variable.identifier,s.xref);break;case Ze.SavedView:r={view:s.variable.view,variable:s.xref};break}break;case b.Animation:case b.AnimationListener:case b.Listener:case b.TwoWayListener:Xl(t,s.handlerOps,r);break;case b.RepeaterCreate:s.trackByOps!==null&&Xl(t,s.trackByOps,r);break}for(let s of e)s.kind==b.Listener||s.kind===b.TwoWayListener||s.kind===b.Animation||s.kind===b.AnimationListener||ze(s,a=>{if(a instanceof et)return i.has(a.name)?new an(i.get(a.name)):n.has(a.name)?new an(n.get(a.name)):new jt(new Nn(t.job.root.xref),a.name);if(a instanceof Il&&typeof a.view=="number"){if(r===null||r.view!==a.view)throw new Error(`AssertionError: no saved view ${a.view} from view ${t.xref}`);return a.view=new an(r.variable),a}else return a},ye.None);for(let s of e)Je(s,a=>{if(a instanceof et)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${a.name}`)})}var Jw=new Map([[we.HTML,I.sanitizeHtml],[we.RESOURCE_URL,I.sanitizeResourceUrl],[we.SCRIPT,I.sanitizeScript],[we.STYLE,I.sanitizeStyle],[we.URL,I.sanitizeUrl],[we.ATTRIBUTE_NO_BINDING,I.validateAttribute]]),Kw=new Map([[we.HTML,I.trustConstantHtml],[we.RESOURCE_URL,I.trustConstantResourceUrl]]);function eC(t){for(let e of t.units){if(t.kind!==Z.Host){for(let r of e.create)if(r.kind===b.ExtractedAttribute){let n=Kw.get(Yd(r.securityContext))??null;r.trustedValueFn=n!==null?te(n):null}}for(let r of e.update)switch(r.kind){case b.Property:case b.Attribute:case b.DomProperty:let n=null;Array.isArray(r.securityContext)&&r.securityContext.length===2&&r.securityContext.includes(we.URL)&&r.securityContext.includes(we.RESOURCE_URL)?n=I.sanitizeUrlOrResourceUrl:n=Jw.get(Yd(r.securityContext))??null,r.sanitizer=n!==null?te(n):null;break}}}function Yd(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||we.NONE}return t}function tC(t){for(let e of t.units){e.create.prepend([Cn(e.job.allocateXrefId(),{kind:Ze.SavedView,name:null,view:e.xref},new ku,rr.None)]);for(let r of e.create){if(r.kind!==b.Listener&&r.kind!==b.TwoWayListener&&r.kind!==b.Animation&&r.kind!==b.AnimationListener)continue;let n=e!==t.root;if(!n)for(let i of r.handlerOps)Je(i,s=>{(s instanceof kl||s instanceof La)&&(n=!0)});n&&rC(e,r)}}}function rC(t,e){e.handlerOps.prepend([Cn(t.job.allocateXrefId(),{kind:Ze.Context,name:null,view:t.xref},new Il(t.xref),rr.None)]);for(let r of e.handlerOps)r.kind===b.Statement&&r.statement instanceof nt&&(r.statement.value=new Pu(r.statement.value))}function nC(t){let e=new Map;for(let r of t.units){let n=0;for(let i of r.create)Es(i)&&(i.handle.slot=n,e.set(i.xref,i.handle.slot),n+=i.numSlotsUsed);r.decls=n}for(let r of t.units)for(let n of r.ops())if(n.kind===b.Template||n.kind===b.ConditionalCreate||n.kind===b.ConditionalBranchCreate||n.kind===b.RepeaterCreate){let i=t.views.get(n.xref);n.decls=i.decls}}function iC(t){let e=new Set,r=new Map;for(let n of t.units)for(let i of n.ops())i.kind===b.DeclareLet&&r.set(i.xref,i),Je(i,s=>{s instanceof La&&e.add(s.target)});for(let n of t.units)for(let i of n.update)ze(i,s=>s instanceof Da&&!e.has(s.target)?(sC(s)||q.remove(r.get(s.target)),s.value):s,ye.None)}function sC(t){let e=!1;return Q(t,r=>((r instanceof Ei||r instanceof Na)&&(e=!0),r),ye.None),e}function aC(t){let e=new Set;for(let r of t.units)for(let n of r.ops())Je(n,i=>
37{if(i instanceof ge)switch(i.operator){case j.Exponentiation:oC(i,e);break;case j.NullishCoalesce:lC(i,e);break;case j.And:case j.Or:cC(i,e)}});for(let r of t.units)for(let n of r.ops())ze(n,i=>i instanceof br?e.has(i)?i:i.expr:i,ye.None)}function oC(t,e){t.lhs instanceof br&&t.lhs.expr instanceof hi&&e.add(t.lhs)}function lC(t,e){t.lhs instanceof br&&(Zd(t.lhs.expr)||t.lhs.expr instanceof zr)&&e.add(t.lhs),t.rhs instanceof br&&(Zd(t.rhs.expr)||t.rhs.expr instanceof zr)&&e.add(t.rhs)}function cC(t,e){t.lhs instanceof br&&t.lhs.expr instanceof ge&&t.lhs.expr.operator===j.NullishCoalesce&&e.add(t.lhs)}function Zd(t){return t instanceof ge&&(t.operator===j.And||t.operator===j.Or)}function uC(t){for(let e of t.units)for(let r of e.update)if(r.kind===b.Binding)switch(r.bindingKind){case K.ClassName:if(r.expression instanceof Be)throw new Error("Unexpected interpolation in ClassName binding");q.replace(r,HS(r.target,r.name,r.expression,r.sourceSpan));break;case K.StyleProperty:q.replace(r,zS(r.target,r.name,r.expression,r.unit,r.sourceSpan));break;case K.Property:case K.Template:r.name==="style"?q.replace(r,GS(r.target,r.expression,r.sourceSpan)):r.name==="class"&&q.replace(r,qS(r.target,r.expression,r.sourceSpan));break}}function hC(t){for(let e of t.units)e.create.prepend(Yl(e.create)),e.update.prepend(Yl(e.update))}function Yl(t){let e=0,r=[];for(let n of t){let i=new Map;Je(n,(c,u)=>{u&ye.InChildOperation||c instanceof Fn&&i.set(c.xref,c)});let s=0,a=new Set,o=new Set,l=new Map;Je(n,(c,u)=>{u&ye.InChildOperation||(c instanceof Ur?(a.has(c.xref)||(a.add(c.xref),l.set(c.xref,`tmp_${e}_${s++}`)),Qd(l,c)):c instanceof Fn&&(i.get(c.xref)===c&&(o.add(c.xref),s--),Qd(l,c)))}),r.push(...Array.from(new Set(l.values())).map(c=>ur(new Ue(c)))),e++,n.kind===b.Listener||n.kind===b.Animation||n.kind===b.AnimationListener||n.kind===b.TwoWayListener?n.handlerOps.prepend(Yl(n.handlerOps)):n.kind===b.RepeaterCreate&&n.trackByOps!==null&&n.trackByOps.prepend(Yl(n.trackByOps))}return r}function Qd(t,e){let r=t.get(e.xref);if(r===void 0)throw new Error(`Found xref with unassigned name: ${e.xref}`);e.name=r}function pC(t){for(let e of t.units)for(let r of e.create)if(r.kind===b.RepeaterCreate)if(r.track instanceof or&&r.track.name==="$index")r.trackByFn=te(I.repeaterTrackByIndex);else if(r.track instanceof or&&r.track.name==="$item")r.trackByFn=te(I.repeaterTrackByIdentity);else if(fC(t.root.xref,r.track))r.usesComponentInstance=!0,r.track.receiver.receiver.view===e.xref?r.trackByFn=r.track.receiver:(r.trackByFn=te(I.componentInstance).callFn([]).prop(r.track.receiver.name),r.track=r.trackByFn);else{r.track=Q(r.track,i=>{if(i instanceof Ei||i instanceof Na)throw new Error("Illegal State: Pipes are not allowed in this context");return i instanceof Nn?(r.usesComponentInstance=!0,new _u(i.view)):i},ye.None);let n=new q;n.push(ur(new nt(r.track,r.track.sourceSpan))),r.trackByOps=n}}function fC(t,e){if(!(e instanceof Pt)||e.args.length===0||e.args.length>2||!(e.receiver instanceof jt&&e.receiver.receiver instanceof Nn)||e.receiver.receiver.view!==t)return!1;let[r,n]=e.args;return!(r instanceof or)||r.name!=="$index"?!1:e.args.length===1?!0:!(!(n instanceof or)||n.name!=="$item")}function dC(t){for(let e of t.units)for(let r of e.create)r.kind===b.RepeaterCreate&&(r.track=Q(r.track,n=>{if(n instanceof et){if(r.varNames.$index.has(n.name))return pe("$index");if(n.name===r.varNames.$implicit)return pe("$item")}return n},ye.None))}function mC(t){for(let e of t.units)for(let r of e.create)r.kind===b.TwoWayListener&&ze(r,n=>{if(!(n instanceof Ml))return n;let{target:i,value:s}=n;if(i instanceof jt||i instanceof on)return Gd(i,s).or(i.set(s));if(i instanceof an)return Gd(i,s);throw new Error("Unsupported expression in two-way action binding.")},ye.InChildOperation)}function gC(t){for(let e of t.units){let r=0;for(let n of e.ops())Nc(n)&&(r+=vC(n));for(let n of e.ops())Je(n,i=>{Wr(i)&&(t.compatibility===Wt.TemplateDefinitionBuilder&&i instanceof Si||(ad(i)&&(i.varOffset=r),Nc(i)&&(r+=Jd(i))))});if(t.compatibility===Wt.TemplateDefinitionBuilder)for(let n of e.o
37ps())Je(n,i=>{!Wr(i)||!(i instanceof Si)||(ad(i)&&(i.varOffset=r),Nc(i)&&(r+=Jd(i)))});e.vars=r}if(t instanceof Ra)for(let e of t.units)for(let r of e.create){if(r.kind!==b.Template&&r.kind!==b.RepeaterCreate&&r.kind!==b.ConditionalCreate&&r.kind!==b.ConditionalBranchCreate)continue;let n=t.views.get(r.xref);r.vars=n.vars}}function vC(t){let e;switch(t.kind){case b.Attribute:return e=1,t.expression instanceof Be&&!yC(t.expression)&&(e+=t.expression.expressions.length),e;case b.Property:case b.DomProperty:return e=1,t.expression instanceof Be&&(e+=t.expression.expressions.length),e;case b.TwoWayProperty:return 1;case b.StyleProp:case b.ClassProp:case b.StyleMap:case b.ClassMap:return e=2,t.expression instanceof Be&&(e+=t.expression.expressions.length),e;case b.InterpolateText:return t.interpolation.expressions.length;case b.I18nExpression:case b.Conditional:case b.DeferWhen:case b.StoreLet:return 1;case b.RepeaterCreate:return t.emptyView?1:0;default:throw new Error(`Unhandled op: ${b[t.kind]}`)}}function Jd(t){switch(t.kind){case re.PureFunctionExpr:return 1+t.args.length;case re.PipeBinding:return 1+t.args.length;case re.PipeBindingVariadic:return 1+t.numArgs;case re.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function yC(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function SC(t){for(let e of t.units){No(e.create),No(e.update);for(let r of e.create)r.kind===b.Listener||r.kind===b.Animation||r.kind===b.AnimationListener||r.kind===b.TwoWayListener?No(r.handlerOps):r.kind===b.RepeaterCreate&&r.trackByOps!==null&&No(r.trackByOps);Fo(e.create,t.compatibility),Fo(e.update,t.compatibility);for(let r of e.create)r.kind===b.Listener||r.kind===b.Animation||r.kind===b.AnimationListener||r.kind===b.TwoWayListener?Fo(r.handlerOps,t.compatibility):r.kind===b.RepeaterCreate&&r.trackByOps!==null&&Fo(r.trackByOps,t.compatibility)}}var We=(function(t){return t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful",t})(We||{});function No(t){let e=new Map;for(let r of t)r.kind===b.Variable&&r.flags&rr.AlwaysInline&&(Je(r,n=>{if(Wr(n)&&$h(n)!==We.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(r.xref,r)),ze(r,n=>n instanceof an&&e.has(n.xref)?e.get(n.xref).initializer.clone():n,ye.None);for(let r of e.values())q.remove(r)}function Fo(t,e){let r=new Map,n=new Map,i=new Set,s=new Map;for(let c of t){if(c.kind===b.Variable){if(r.has(c.xref)||n.has(c.xref))throw new Error(`Should not see two declarations of the same variable: ${c.xref}`);r.set(c.xref,c),n.set(c.xref,0)}s.set(c,EC(c)),xC(c,n,i)}let a=!1;for(let c of t.reversed()){let u=s.get(c);if(c.kind===b.Variable&&n.get(c.xref)===0){if(a&&u.fences&We.Vie
37wContextWrite||u.fences&We.SideEffectful){let d=ur(c.initializer.toStmt());s.set(d,u),q.replace(c,d)}else bC(c,n),q.remove(c);s.delete(c),r.delete(c.xref),n.delete(c.xref);continue}u.fences&We.ViewContextRead&&(a=!0)}let o=[];for(let[c,u]of n){let f=!!(r.get(c).flags&rr.AlwaysInline);u!==1||f||i.has(c)||o.push(c)}let l;for(;l=o.pop();){let c=r.get(l),u=s.get(c);if(!!(c.flags&rr.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let f=c.next;f.kind!==b.ListEnd;f=f.next){let h=s.get(f);if(h.variablesUsed.has(l)){if(e===Wt.TemplateDefinitionBuilder&&!CC(c,f))break;if(wC(l,c.initializer,f,u.fences)){h.variablesUsed.delete(l);for(let p of u.variablesUsed)h.variablesUsed.add(p);h.fences|=u.fences,r.delete(l),n.delete(l),s.delete(c),q.remove(c)}break}if(!Ig(h.fences,u.fences))break}}}function $h(t){switch(t.kind){case re.NextContext:return We.ViewContextRead|We.ViewContextWrite;case re.RestoreView:return We.ViewContextRead|We.ViewContextWrite|We.SideEffectful;case re.StoreLet:return We.SideEffectful;case re.Reference:case re.ContextLetReference:return We.ViewContextRead;default:return We.None}}function EC(t){let e=We.None,r=new Set;return Je(t,n=>{if(Wr(n))switch(n.kind){case re.ReadVariable:r.add(n.xref);break;default:e|=$h(n)}}),{fences:e,variablesUsed:r}}function xC(t,e,r){Je(t,(n,i)=>{if(!Wr(n)||n.kind!==re.ReadVariable)return;let s=e.get(n.xref);s!==void 0&&(e.set(n.xref,s+1),i&ye.InChildOperation&&r.add(n.xref))})}function bC(t,e){Je(t,r=>{if(!Wr(r)||r.kind!==re.ReadVariable)return;let n=e.get(r.xref);if(n!==void 0){if(n===0)throw new Error(`Inaccurate variable count: ${r.xref} - found another read but count is already 0`);e.set(r.xref,n-1)}})}function Ig(t,e){if(t&We.ViewContextWrite){if(e&We.ViewContextRead)return!1}else if(t&We.ViewContextRead&&e&We.ViewContextWrite)return!1;return!0}function wC(t,e,r,n){let i=!1,s=!0;return ze(r,(a,o)=>{if(!Wr(a)||i||!s)return a;if(o&ye.InChildOperation&&n&We.ViewContextRead)return a;switch(a.kind){case re.ReadVariable:if(a.xref===t)return i=!0,e;break;default:let l=$h(a);s=s&&Ig(l,n);break}return a},ye.None),i}function CC(t,e){switch(t.variable.kind){case Ze.Identifier:return t.initializer instanceof or&&t.initializer.name==="ctx";case Ze.Context:return e.kind===b.Variable;default:return!0}}function TC(t){for(let e of t.units){let r=null,n=null;for(let i of e.create)switch(i.kind){case b.I18nStart:r=i;break;case b.I18nEnd:r=null;break;case b.IcuStart:r===null&&(n=t.allocateXrefId(),q.insertBefore(lc(n,i.message,void 0,null),i));break;case b.IcuEnd:n!==null&&(q.insertAfter(cc(n,null),i),n=null);break}}}var AC=[{kind:Z.Tmpl,fn:nb},{kind:Z.Host,fn:yx},{kind:Z.Tmpl,fn:V1},{kind:Z.Tmpl,fn:hb},{kind:Z.Tmpl,fn:TC},{kind:Z.Both,fn:$E},{kind:Z.Both,fn:uC},{kind:Z.Both,fn:CE},{kind:Z.Both,fn:FE},{kind:Z.Both,fn:xE},{kind:Z.Tmpl,fn:OE},{kind:Z.Both,fn:H1},{kind:Z.Tmpl,fn:zw},{kind:Z.Both,fn:_E},{kind:Z.Both,fn:rb},{kind:Z.Tmpl,fn:kE},{kind:Z.Tmpl,fn:ab},{kind:Z.Tmpl,fn:VE},{kind:Z.Tmpl,fn:ub},{kind:Z.Both,fn:db},{kind:Z.Tmpl,fn:fx},{kind:Z.Tmpl,fn:px},{kind:Z.Tmpl,fn:dx},{kind:Z.Tmpl,fn:tC},{kind:Z.Both,fn:mE},{kind:Z.Both,fn:Uw},{kind:Z.Tmpl,fn:dC},{kind:Z.Tmpl,fn:Gw},{kind:Z.Both,fn:Qw},{kind:Z.Tmpl,fn:zE},{kind:Z.Tmpl,fn:mC},{kind:Z.Tmpl,fn:pC},{kind:Z.Both,fn:jw},{kind:Z.Both,fn:eC},{kind:Z.Tmpl,fn:O1},{kind:Z.Both,fn:WE},{kind:Z.Both,fn:aC},{kind:Z.Both,fn:hC},{kind:Z.Both,fn:SC},{kind:Z.Both,fn:iC},{kind:Z.Tmpl,fn:R1},{kind:Z.Tmpl,fn:RE},{kind:Z.Tmpl,fn:qw},{kind:Z.Tmpl,fn:SE},{kind:Z.Tmpl,fn:vE},{kind:Z.Tmpl,fn:nC},{kind:Z.Tmpl,fn:Xw},{kind:Z.Tmpl,fn:Yw},{kind:Z.Tmpl,fn:ox},{kind:Z.Tmpl,fn:D1},{kind:Z.Tmpl,fn:gx},{kind:Z.Both,fn:DE},{kind:Z.Tmpl,fn:Hw},{kind:Z.Both,fn:gC},{kind:Z.Tmpl,fn:hx},{kind:Z.Both,fn:G1},{kind:Z.Tmpl,fn:Ww},{kind:Z.Tmpl,fn:W1},{kind:Z.Tmpl,fn:X1},{kind:Z.Tmpl,fn:jE},{kind:Z.Tmpl,fn:EE},{kind:Z.Tmpl,fn:Z1},{kind:Z.Both,fn:fb},{kind:Z.Both,fn:Rw},{kind:Z.Both,fn:AE}];function Mg(t,e){for(let r of AC)(r.kind===e||r.kind===Z.Both)&&r.fn(t)}function _C(t,e){let r=Lg(t.root);return Dg(t.root,e),r}function Dg(t,e){for(let r of t.job.units){if(r.parent!==t.xref)continue;Dg(r,e);let n=Lg(r);e.statements.push(n.toDeclStmt(n.name))}}function Lg(t){if(t.fnName===null)throw new Error(`AssertionError: view ${t.xref} is unnamed`);let e=[];for(let s of t.create){if(s.kind!==b.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${b[s.kind]}`);e.push(s.statement)}let r=[];for(let s of t.update){if(s.kind!==b.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${b[s.kind]}`);r.push(s.statement)}let n=Zl(1,e),i=Zl(2,r);return Pn([new Qe("rf"),new Qe("ctx")],[...n,...i],void 0,void 0,t.fnName)}function Zl(t,e){return e.length===0?[]:[nc(new ge(j.BitwiseAnd,pe("rf"),$(t)),e)]}function kC(t){if(t.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let s of t.root.create){if(s.kind!==b.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${b[s.kind]}`);e.push(s.statement)}let r=[];for(let s of t.root.update){if(s.kind!==b.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${b[s.kind]}`);r.push(s.statement)}if(e.length===0&&r.length===0)return null;let n=Zl(1,e),i=Zl(2,r);return Pn([new Qe("rf"),new Qe("ctx")],[...n,...i],void 0,void 0,t.root.fnName)}var Ng=Wt.TemplateDefinitionBuilder,oi=new ms,li="ng-template",PC="animate.";function qo(t){return t instanceof vt}function IC(t){return qo(t)&&t.nodes.length===1&&t.nodes[0]instanceof El}function MC(t,e,r,n,i,s,a,o,l,c){let u=new Ra(t,r,Ng,n,i,s,a,o,l,c);return cn(u.root,e),u}function DC(t,e,r){let n=new Rl(t.componentName,r,Ng,Tt.DomOnly);for(let i of t.properties??[]){let s=K.Property;i.name.startsWith("attr.")&&(i.name=i.name.substring(5),s=K.Attribute),i.isLegacyAnimation&&(s=K.LegacyAnimation),i.isAnimation&&(s=K.Animation);let a=e.calcPossibleSecurityContexts(t.componentSelector,i.name,s===K.Attribute).filter(o=>o!==we.NONE);LC(n,i,s,a)}for(let[i,s]of Object.entries(t.attributes)??[]){let a=e.calcPossibleSecurityContexts(t.componentSelector,i,!0).filter(o=>o!==we.NONE);NC(n,i,s,a)}for(let i of t.events??[])FC(n,i);return n}function LC(t,e,r,n){let i,s=e.expression.ast;s instanceof Xa?i=new Be(s.strings,s.expressions.map(a=>he(a,t,e.sourceSpan)),[]):i=he(s,t,e.sourceSpan),t.root.update.push(yi(t.root.xref,r,e.name,i,null,n,!1,!1,null,null,e.sourceSpan))}function NC(t,e,r,n){let i=yi(t.root.xref,K.Attribute,e,r,null,n,!0,!1,null,null,r.sourceSpan);t.root.update.push(i)}function FC(t,e){let r;if(e.type===gt.Animation)r=ag(t.root.xref,new at,e.name,null,Ha(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[n,i]=e.type!==gt.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];r=Fh(t.root.xref,new at,e.name,null,Ha(t.root,e.handler,e.handlerSpan),n,i,!0,e.sourceSpan)}t.root.create.push(r)}function cn(t,e){for(let r of e)if(r instanceof qr)BC(t,r);else if(r instanceof Gt)RC(t,r);else if(r instanceof as)OC(t,r);else if(r instanceof Kn)Fg(t,r,null);else if(r instanceof ns)Bg(t,r,null);
37else if(r instanceof yl)$C(t,r);else if(r instanceof vl)VC(t,r);else if(r instanceof gi)zC(t,r);else if(r instanceof km)GC(t,r);else if(r instanceof ss)qC(t,r);else if(r instanceof Th)WC(t,r);else if(!(r instanceof Us))throw new Error(`Unsupported template node: ${r.constructor.name}`)}function BC(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof vt||e.i18n instanceof Mn))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=t.job.allocateXrefId(),[n,i]=Tr(e.name),s=QS(i,r,fg(n),e.i18n instanceof Mn?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(s),XC(t,s,e),$g(s,e);let a=null;e.i18n instanceof vt&&(a=t.job.allocateXrefId(),t.create.push(lc(a,e.i18n,void 0,e.startSourceSpan))),cn(t,e.children);let o=KS(r,e.endSourceSpan??e.startSourceSpan);t.create.push(o),a!==null&&q.insertBefore(cc(a,e.endSourceSpan??e.startSourceSpan),o)}function RC(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof vt||e.i18n instanceof Mn))throw Error(`Unhandled i18n metadata type for template: ${e.i18n.constructor.name}`);let r=t.job.allocateView(t.xref),n=e.tagName,i="";e.tagName&&([i,n]=Tr(e.tagName));let s=e.i18n instanceof Mn?e.i18n:void 0,a=fg(i),o=n===null?"":ME(n,a),l=UC(e)?kt.NgTemplate:kt.Structural,c=rg(r.xref,l,n,o,a,s,e.startSourceSpan,e.sourceSpan);t.create.push(c),YC(t,c,e,l),$g(c,e),cn(r,e.children);for(let{name:u,value:d}of e.variables)r.contextVariables.set(u,d!==""?d:"$implicit");if(l===kt.NgTemplate&&e.i18n instanceof vt){let u=t.job.allocateXrefId();q.insertAfter(lc(u,e.i18n,void 0,e.startSourceSpan),r.create.head),q.insertBefore(cc(u,e.endSourceSpan??e.startSourceSpan),r.create.tail)}}function OC(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Mn))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=null;e.children.some(s=>!(s instanceof sc)&&(!(s instanceof Kn)||s.value.trim().length>0))&&(r=t.job.allocateView(t.xref),cn(r,e.children));let n=t.job.allocateXrefId(),i=aE(n,e.selector,e.i18n,r?.xref??null,e.sourceSpan);for(let s of e.attributes){let a=oi.securityContext(e.name,s.name,!0);t.update.push(yi(i.xref,K.Attribute,s.name,$(s.value),null,a,!0,!1,null,rn(s.i18n),s.sourceSpan))}t.create.push(i)}function Fg(t,e,r){t.create.push(sg(t.job.allocateXrefId(),e.value,r,e.sourceSpan))}function Bg(t,e,r){let n=e.value;if(n instanceof Ot&&(n=n.ast),!(n instanceof Xa))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${n.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof sn))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let i=e.i18n instanceof sn?e.i18n.children.filter(o=>o instanceof wa).map(o=>o.name):[];if(i.length>0&&i.length!==n.expressions.length)throw Error(`Unexpected number of i18n placeholders (${n.expressions.length}) for BoundText with ${n.expressions.length} expressions`);let s=t.job.allocateXrefId();t.create.push(sg(s,"",r,e.sourceSpan));let a=t.job.compatibility?null:e.sourceSpan;t.update.push(OS(s,new Be(n.strings,n.expressions.map(o=>he(o,t.job,a)),i),e.sourceSpan))}function $C(t,e){let r=null,n=[];for(let i=0;i<e.branches.length;i++){let s=e.branches[i],a=t.job.allocateView(t.xref),o=Ql(t,a.xref,s);s.expressionAlias!==null&&a.contextVariables.set(s.expressionAlias.name,ug);let l;if(s.i18n!==void 0){if(!(s.i18n instanceof Dn))throw Error(`Unhandled i18n metadata type for if block: ${s.i18n?.constructor.name}`);l=s.i18n}let u=(i===0?ng:ig)(a.xref,kt.Block,o,"Conditional",ut.HTML,l,s.startSourceSpan,s.sourceSpan);t.create.push(u),r===null&&(r=a.xref);let d=s.expression?he(s.expression,t.job,null):null,f=new Ll(d,u.xref,u.handle,s.expressionAlias);n.push(f),cn(a,s.children)}t.update.push(Km(r,null,n,e.sourceSpan))}function VC(t,e){if(e.cases.length===0)return;let r=null,n=[];for(let i=0;i<e.cases.length;i++){let s=e.cases[i],a=t.job.allocateView(t.xref),o=Ql(t,a.xref,s),l;if(s.i18n!==void 0){if(!(s.i18n instanceof Dn))throw Error(`Unhandled i18n metadata type for switch block: ${s.i18n?.constructor.name}`);l=s.i18n}
37let u=(i===0?ng:ig)(a.xref,kt.Block,o,"Case",ut.HTML,l,s.startSourceSpan,s.sourceSpan);t.create.push(u),r===null&&(r=a.xref);let d=s.expression?he(s.expression,t.job,e.startSourceSpan):null,f=new Ll(d,u.xref,u.handle);n.push(f),cn(a,s.children)}t.update.push(Km(r,he(e.expression,t.job,null),n,e.sourceSpan))}function Bo(t,e,r,n,i){if(r!==void 0&&!(r instanceof Dn))throw Error("Unhandled i18n metadata type for defer block");if(n===void 0)return null;let s=t.job.allocateView(t.xref);cn(s,n);let a=rg(s.xref,kt.Block,null,`Defer${e}`,ut.HTML,r,i,i);return t.create.push(a),a}function zC(t,e){let r=null;if(t.job.deferMeta.mode===0){if(!t.job.deferMeta.blocks.has(e))throw new Error("AssertionError: unable to find a dependency function for this deferred block");r=t.job.deferMeta.blocks.get(e)??null}let n=Bo(t,"",e.i18n,e.children,e.sourceSpan),i=Bo(t,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),s=Bo(t,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),a=Bo(t,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),o=t.job.allocateXrefId(),l=oE(o,n.xref,n.handle,r,t.job.allDeferrableDepsFn,e.sourceSpan);l.placeholderView=s?.xref??null,l.placeholderSlot=s?.handle??null,l.loadingSlot=i?.handle??null,l.errorSlot=a?.handle??null,l.placeholderMinimumTime=e.placeholder?.minimumTime??null,l.loadingMinimumTime=e.loading?.minimumTime??null,l.loadingAfterTime=e.loading?.afterTime??null,l.flags=HC(e),t.create.push(l);let c=[],u=[];$c("hydrate",e.hydrateTriggers,c,u,t,o),$c("none",e.triggers,c,u,t,o),$c("prefetch",e.prefetchTriggers,c,u,t,o),c.some(f=>f.modifier==="none")||u.some(f=>f.modifier==="none")||c.push(xn(o,{kind:be.Idle},"none",null)),t.create.push(c),t.update.push(u)}function HC(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function $c(t,e,r,n,i,s){if(e.idle!==void 0){let a=xn(s,{kind:be.Idle},t,e.idle.sourceSpan);r.push(a)}if(e.immediate!==void 0){let a=xn(s,{kind:be.Immediate},t,e.immediate.sourceSpan);r.push(a)}if(e.timer!==void 0){let a=xn(s,{kind:be.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);r.push(a)}if(e.hover!==void 0){let a=xn(s,{kind:be.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);r.push(a)}if(e.interaction!==void 0){let a=xn(s,{kind:be.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);r.push(a)}if(e.viewport!==void 0){let a=xn(s,{kind:be.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.viewport.sourceSpan);r.push(a)}if(e.never!==void 0){let a=xn(s,{kind:be.Never},t,e.never.sourceSpan);r.push(a)}if(e.when!==void 0){if(e.when.value instanceof Xa)throw new Error("Unexpected interpolation in defer block when trigger");let a=US(s,he(e.when.value,i.job,e.when.sourceSpan),t,e.when.sourceSpan);n.push(a)}}function GC(t,e){if(e.i18n instanceof vt&&IC(e.i18n)){let r=t.job.allocateXrefId();t.create.push(uE(r,e.i18n,Mm(e.i18n).name,null));for(let[n,i]of Object.entries(G(G({},e.vars),e.placeholders)))i instanceof ns?Bg(t,i,n):Fg(t,i,n);t.create.push(hE(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function qC(t,e){let r=t.job.allocateView(t.xref),n=`\u0275$index_${r.xref}`,i=`\u0275$count_${r.xref}`,s=new Set;r.contextVariables.set(e.item.name,e.item.value);for(let m of e.contextVariables)m.value==="$index"&&s.add(m.name),m.name==="$index"?r.contextVariables.set("$index",m.value).set(n,m.value):m.name==="$count"?r.contextVariables.set("$count",m.value).set(i,m.value):r.aliases.add({kind:Ze.Alias,name:null,identifier:m.name,expression:jC(m,n,i)});let a=qe(e.trackBy.span,e.sourceSpan),o=he(e.trackBy,t.job,a);cn(r,e.children);let l=null,c=null;e.empty!==null&&(l=t.job.allocateView(t.xref),cn(l,e.empty.children),c=Ql(t,l.xref,e.empty));let u={$index:s,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Dn))throw Error("AssertionError: Unhandled i18n metadata type or @for");
37if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof Dn))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let d=e.i18n,f=e.empty?.i18n,h=Ql(t,r.xref,e),p=JS(r.xref,l?.xref??null,h,o,u,c,d,f,e.startSourceSpan,e.sourceSpan);t.create.push(p);let g=he(e.expression,t.job,qe(e.expression.span,e.sourceSpan)),E=WS(p.xref,p.handle,g,e.sourceSpan);t.update.push(E)}function jC(t,e,r){switch(t.value){case"$index":return new et(e);case"$count":return new et(r);case"$first":return new et(e).identical($(0));case"$last":return new et(e).identical(new et(r).minus($(1)));case"$even":return new et(e).modulo($(2)).identical($(0));case"$odd":return new et(e).modulo($(2)).notIdentical($(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function WC(t,e){let r=t.job.allocateXrefId();t.create.push(lE(r,e.name,e.sourceSpan)),t.update.push(YS(r,e.name,he(e.value,t.job,e.valueSpan),e.sourceSpan))}function he(t,e,r){if(t instanceof Ot)return he(t.ast,e,r);if(t instanceof nn)return t.receiver instanceof Gr&&!(t.receiver instanceof di)?new et(t.name):new jt(he(t.receiver,e,r),t.name,null,qe(t.span,r));if(t instanceof rs){if(t.receiver instanceof Gr)throw new Error("Unexpected ImplicitReceiver");return new Pt(he(t.receiver,e,r),t.args.map(n=>he(n,e,r)),void 0,qe(t.span,r))}else{if(t instanceof Rt)return $(t.value,void 0,qe(t.span,r));if(t instanceof Xi)switch(t.operator){case"+":return new hi(Js.Plus,he(t.expr,e,r),void 0,qe(t.span,r));case"-":return new hi(Js.Minus,he(t.expr,e,r),void 0,qe(t.span,r));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof ft){let n=PE.get(t.operation);if(n===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new ge(n,he(t.left,e,r),he(t.right,e,r),void 0,qe(t.span,r))}else{if(t instanceof di)return new Nn(e.root.xref);if(t instanceof mi)return new on(he(t.receiver,e,r),he(t.key,e,r),void 0,qe(t.span,r));if(t instanceof ts)throw new Error("AssertionError: Chain in unknown context");if(t instanceof ll){let n=t.keys.map((i,s)=>{let a=t.values[s];return new Ki(i.key,he(a,e,r),i.quoted)});return new Hr(n,void 0,qe(t.span,r))}else{if(t instanceof ol)return new wr(t.expressions.map(n=>he(n,e,r)));if(t instanceof sl)return new zr(he(t.condition,e,r),he(t.trueExp,e,r),he(t.falseExp,e,r),void 0,qe(t.span,r));if(t instanceof ua)return he(t.expression,e,r);if(t instanceof al)return new Ei(e.allocateXrefId(),new at,t.name,[he(t.exp,e,r),...t.args.map(n=>he(n,e,r))]);if(t instanceof aa)return new ps(he(t.receiver,e,r),he(t.key,e,r),qe(t.span,r));if(t instanceof sa)return new hs(he(t.receiver,e,r),t.name);if(t instanceof cl)return new xi(he(t.receiver,e,r),t.args.map(n=>he(n,e,r)));if(t instanceof Ct)return new Fa(qe(t.span,r));if(t instanceof oa)return Zy(he(t.expression,e,r),qe(t.span,r));if(t instanceof la)return Ua(he(t.expression,e,r));if(t instanceof ca)return new Zo(he(t.expression,e,r),void 0,qe(t.span,r));if(t instanceof pa)return Kd(t,e,r);if(t instanceof ha)return new Ks(he(t.tag,e,r),Kd(t.template,e,r),void 0,qe(t.span,r));if(t instanceof fa)return new br(he(t.expression,e,r),void 0,qe(t.span,r));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${r?.start.file.url}"`)}}}}function Kd(t,e,r){return new ta(t.elements.map(n=>new Qo(n.text,qe(n.span,r))),t.expressions.map(n=>he(n,e,r)),qe(t.span,r))}function eh(t,e,r,n){let i;return e instanceof Xa?i=new Be(e.strings,e.expressions.map(s=>he(s,t,null)),Object.keys(rn(r)?.placeholders??{})):e instanceof De?i=he(e,t,null):i=$(e),i}var Rg=new Map([[ve.Property,K.Property],[ve.TwoWay,K.TwoWayProperty],[ve.Attribute,K.Attribute],[ve.Class,K.ClassName],[ve.Style,K.StyleProperty],[ve.LegacyAnimation,K.LegacyAnimation],[ve.Animation,K.Animation]]);function UC(t){return Tr(t.tagName??"")[1]===li}function rn(t){if(t==null)return null;if(!(t instanceof vt))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function XC(t,e,r){let n=new Array,i=new Set;for(let s of r.attributes){let a=oi.securityContext(r.name,s.name,!0);n.push(yi(e.xref,K.Attribute,s.name,eh(t.job,s.value,s.i18n),null,a,
37!0,!1,null,rn(s.i18n),s.sourceSpan)),s.i18n&&i.add(s.name)}for(let s of r.inputs)i.has(s.name)&&console.error(`On component ${t.job.componentName}, the binding ${s.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`),n.push(yi(e.xref,Rg.get(s.type),s.name,eh(t.job,Ga(s.value),s.i18n),s.unit,s.securityContext,!1,!1,null,rn(s.i18n)??null,s.sourceSpan));t.create.push(n.filter(s=>s?.kind===b.ExtractedAttribute)),t.update.push(n.filter(s=>s?.kind===b.Binding));for(let s of r.outputs){if(s.type===gt.LegacyAnimation&&s.phase===null)throw Error("Animation listener should have a phase");s.type===gt.TwoWay?t.create.push(og(e.xref,e.handle,s.name,e.tag,Og(t,s.handler,s.handlerSpan),s.sourceSpan)):s.type===gt.Animation?t.create.push(ag(e.xref,e.handle,s.name,e.tag,Ha(t,s.handler,s.handlerSpan),s.name.endsWith("enter")?"enter":"leave",s.target,!1,s.sourceSpan)):t.create.push(Fh(e.xref,e.handle,s.name,e.tag,Ha(t,s.handler,s.handlerSpan),s.phase,s.target,!1,s.sourceSpan))}n.some(s=>s?.i18nMessage)!==null&&t.create.push(cg(t.job.allocateXrefId(),new at,e.xref))}function YC(t,e,r,n){let i=new Array;for(let s of r.templateAttrs)if(s instanceof is){let a=oi.securityContext(li,s.name,!0);i.push(Ro(t,e.xref,ve.Attribute,s.name,s.value,null,a,!0,n,rn(s.i18n),s.sourceSpan))}else i.push(Ro(t,e.xref,s.type,s.name,Ga(s.value),s.unit,s.securityContext,!0,n,rn(s.i18n),s.sourceSpan));for(let s of r.attributes){let a=oi.securityContext(li,s.name,!0);i.push(Ro(t,e.xref,ve.Attribute,s.name,s.value,null,a,!1,n,rn(s.i18n),s.sourceSpan))}for(let s of r.inputs)i.push(Ro(t,e.xref,s.type,s.name,Ga(s.value),s.unit,s.securityContext,!1,n,rn(s.i18n),s.sourceSpan));t.create.push(i.filter(s=>s?.kind===b.ExtractedAttribute)),t.update.push(i.filter(s=>s?.kind===b.Binding));for(let s of r.outputs){if(s.type===gt.LegacyAnimation&&s.phase===null)throw Error("Animation listener should have a phase");if(n===kt.NgTemplate&&(s.type===gt.TwoWay?t.create.push(og(e.xref,e.handle,s.name,e.tag,Og(t,s.handler,s.handlerSpan),s.sourceSpan)):t.create.push(Fh(e.xref,e.handle,s.name,e.tag,Ha(t,s.handler,s.handlerSpan),s.phase,s.target,!1,s.sourceSpan))),n===kt.Structural&&s.type!==gt.LegacyAnimation){let a=oi.securityContext(li,s.name,!1);t.create.push(nr(e.xref,K.Property,null,s.name,null,null,null,a))}}i.some(s=>s?.i18nMessage)!==null&&t.create.push(cg(t.job.allocateXrefId(),new at,e.xref))}function Ro(t,e,r,n,i,s,a,o,l,c,u){let d=typeof i=="string";if(l===kt.Structural){if(!o)switch(r){case ve.Property:case ve.Class:case ve.Style:return nr(e,K.Property,null,n,null,null,c,a);case ve.TwoWay:return nr(e,K.TwoWayProperty,null,n,null,null,c,a)}if(!d&&(r===ve.Attribute||r===ve.LegacyAnimation||r===ve.Animation))return null}let f=Rg.get(r);return l===kt.NgTemplate&&(r===ve.Class||r===ve.Style||r===ve.Attribute&&!d)&&(f=K.Property),yi(e,f,n,eh(t.job,i,c),s,a,d,o,l,c,u)}function Ha(t,e,r){e=Ga(e);let n=new Array,i=e instanceof ts?e.expressions:[e];if(i.length===0)throw new Error("Expected listener to have non-empty expression list.");let s=i.map(o=>he(o,t.job,r)),a=s.pop();return n.push(...s.map(o=>ur(new lr(o,o.sourceSpan)))),n.push(ur(new nt(a,a.sourceSpan))),n}function Og(t,e,r){e=Ga(e);let n=new Array;if(e instanceof ts)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let i=he(e,t.job,r),s=new et("$event"),a=new Ml(i,s);return n.push(ur(new lr(a))),n.push(ur(new nt(s))),n}function Ga(t){return t instanceof Ot?t.ast:t}function $g(t,e){ZC(t.localRefs);for(let{name:r,value:n}of e.references)t.localRefs.push({name:r,target:n})}function ZC(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function qe(t,e){if(e===null)return null;let r=e.start.moveBy(t.start),n=e.start.moveBy(t.end),i=e.fullStart.moveBy(t.start);return new se(r,n,i)}function Ql(t,e,r){let n=null;for(let i of r.children)if(!(i instanceof sc||i instanceof Th)){if(n!==null)return null;if(i instanceof qr||i instanceof Gt&&i.tagName!==null)n=i;else return null}if(n!==null){for(let s of n.attributes)if(!s.name.startsWith(PC)){let a=oi.securityContext(li,s.name,!0);
37t.update.push(yi(e,K.Attribute,s.name,$(s.value),null,a,!0,!1,null,rn(s.i18n),s.sourceSpan))}for(let s of n.inputs)if(s.type!==ve.LegacyAnimation&&s.type!==ve.Animation&&s.type!==ve.Attribute){let a=oi.securityContext(li,s.name,!0);t.create.push(nr(e,K.Property,null,s.name,null,null,null,a))}let i=n instanceof qr?n.name:n.tagName;return i===li?null:i}return null}var QC=!1;function JC(){return QC}function Jl(t,e){return nc(pe(kh).bitwiseAnd($(t),null),e)}function KC(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function eT(t,e){if(Array.isArray(t.predicate)){let r=[];return t.predicate.forEach(n=>{let i=n.split(",").map(s=>$(s.trim()));r.push(...i)}),e.getConstLiteral(Se(r),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return te(I.resolveForwardRef).callFn([t.predicate.expression])}}function Vg(t,e,r,n){let i=[];n!==void 0&&i.push(...n),t.isSignal&&i.push(new jt(pe(Ca),t.propertyName)),i.push(eT(t,e),$(KC(t))),t.read&&i.push(t.read);let s=t.isSignal?r.signalBased:r.nonSignal;return te(s).callFn(i)}var Vh=Symbol("queryAdvancePlaceholder");function zg(t){let e=[],r=0,n=()=>{r>0&&(e.unshift(te(I.queryAdvance).callFn(r===1?[]:[$(r)]).toStmt()),r=0)};for(let i=t.length-1;i>=0;i--){let s=t[i];s===Vh?r++:(n(),e.unshift(s))}return n(),e}function tT(t,e,r){let n=[],i=[],s=Dm(o=>i.push(o),_h);t.forEach(o=>{let l=Vg(o,e,{signalBased:I.viewQuerySignal,nonSignal:I.viewQuery});if(n.push(l.toStmt()),o.isSignal){i.push(Vh);return}let c=s(),u=te(I.loadQuery).callFn([]),d=te(I.queryRefresh).callFn([c.set(u)]),f=pe(Ca).prop(o.propertyName).set(o.first?c.prop("first"):c);i.push(d.and(f).toStmt())});let a=r?`${r}_Query`:null;return Pn([new Qe(kh,bh),new Qe(Ca,null)],[Jl(1,n),Jl(2,zg(i))],zt,null,a)}function rT(t,e,r){let n=[],i=[],s=Dm(o=>i.push(o),_h);for(let o of t){if(n.push(Vg(o,e,{nonSignal:I.contentQuery,signalBased:I.contentQuerySignal},[pe("dirIndex")]).toStmt()),o.isSignal){i.push(Vh);continue}let l=s(),c=te(I.loadQuery).callFn([]),u=te(I.queryRefresh).callFn([l.set(c)]),d=pe(Ca).prop(o.propertyName).set(o.first?l.prop("first"):l);i.push(u.and(d).toStmt())}let a=r?`${r}_ContentQueries`:null;return Pn([new Qe(kh,bh),new Qe(Ca,null),new Qe("dirIndex",null)],[Jl(1,n),Jl(2,zg(i))],zt,null,a)}var th=class extends Lx{constructor(){super(Xu)}parse(e,r,n){return super.parse(e,r,n)}},Oo=".",nT="attr",Vc="animate",iT="class",sT="style",aT="*",zc="animate-",rh=class{_exprParser;_interpolationConfig;_schemaRegistry;errors;constructor(e,r,n,i){this._exprParser=e,this._interpolationConfig=r,this._schemaRegistry=n,this.errors=i}get interpolationConfig(){return this._interpolationConfig}createBoundHostProperties(e,r){let n=[];for(let i of Object.keys(e)){let s=e[i];typeof s=="string"?this.parsePropertyBinding(i,s,!0,!1,r,r.start.offset,void 0,[],n,r):this._reportError(`Value of the host property binding "${i}" needs to be a string representing an expression but got "${s}" (${typeof s})`,r)}return n}createDirectiveHostEventAsts(e,r){let n=[];for(let i of Object.keys(e)){let s=e[i];typeof s=="string"?this.parseEvent(i,s,!1,r,r,[],n,r):this._reportError(`Value of the host listener "${i}" needs to be a string representing an expression but got "${s}" (${typeof s})`,r)}return n}parseInterpolation(e,r,n){let i=r.fullStart.offset;try{let s=this._exprParser.parseInterpolation(e,r,i,n,this._interpolationConfig);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,i)}}parseInterpolationExpression(e,r){let n=r.start.offset;try{let i=this._exprParser.parseInterpolationExpression(e,r,n);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)}}parseInlineTemplateBinding(e,r,n,i,s,a,o,l){let c=n.start.offset+aT.length,u=this._parseTemplateBindings(e,r,n,c,i);for(let d of u){let f=Sn(n,d.sourceSpan),h=d.key.source,p=Sn(n,d.key.span);if(d instanceof da){let g=d.value?d.value.source:"$implicit",E=d.value?Sn(n,d.value.span):void 0;o.push(new ou(h,g,f,p,E))}else if(d.value){let g=l?f:n,E=Sn(n,d.value.ast.sourceSpan);this._parsePropertyAst(h,d.value,!1,g,p,E,s,a)}else s.push([h,""]),this.parseLiteralAttr(h,null,p,i,void 0,s,a,p)}}_parseTemplateBindings(e,r,n,i,s){try{let a=this._exprParser.parseTemplateBindings(e,r,n,i,s);
37return a.errors.forEach(o=>this.errors.push(o)),a.warnings.forEach(o=>{this._reportError(o,n,Tn.WARNING)}),a.templateBindings}catch(a){return this._reportError(`${a}`,n),[]}}parseLiteralAttr(e,r,n,i,s,a,o,l){Hc(e)?(e=e.substring(1),l!==void 0&&(l=Sn(l,new Ht(l.start.offset+1,l.end.offset))),r&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,Tn.ERROR),this._parseLegacyAnimation(e,r,n,i,l,s,a,o)):o.push(new zi(e,this._exprParser.wrapLiteralPrimitive(r,"",i),Br.LITERAL_ATTR,n,l,s))}parsePropertyBinding(e,r,n,i,s,a,o,l,c,u){e.length===0&&this._reportError("Property name is missing in binding",s);let d=!1;e.startsWith(zc)?(d=!0,e=e.substring(zc.length),u!==void 0&&(u=Sn(u,new Ht(u.start.offset+zc.length,u.end.offset)))):Hc(e)&&(d=!0,e=e.substring(1),u!==void 0&&(u=Sn(u,new Ht(u.start.offset+1,u.end.offset)))),d?this._parseLegacyAnimation(e,r,s,a,u,o,l,c):e.startsWith(`${Vc}${Oo}`)?this._parseAnimation(e,this.parseBinding(r,n,o||s,a),s,u,o,l,c):this._parsePropertyAst(e,this.parseBinding(r,n,o||s,a),i,s,u,o,l,c)}parsePropertyInterpolation(e,r,n,i,s,a,o,l){let c=this.parseInterpolation(r,i||n,l);return c?(this._parsePropertyAst(e,c,!1,n,o,i,s,a),!0):!1}_parsePropertyAst(e,r,n,i,s,a,o,l){o.push([e,r.source]),l.push(new zi(e,r,n?Br.TWO_WAY:Br.DEFAULT,i,s,a))}_parseAnimation(e,r,n,i,s,a,o){a.push([e,r.source]),o.push(new zi(e,r,Br.ANIMATION,n,i,s))}_parseLegacyAnimation(e,r,n,i,s,a,o,l){e.length===0&&this._reportError("Animation trigger is missing",n);let c=this.parseBinding(r||"undefined",!1,a||n,i);o.push([e,c.source]),l.push(new zi(e,c,Br.LEGACY_ANIMATION,n,s,a))}parseBinding(e,r,n,i){try{let s=r?this._exprParser.parseSimpleBinding(e,n,i,this._interpolationConfig):this._exprParser.parseBinding(e,n,i,this._interpolationConfig);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,i)}}createBoundElementProperty(e,r,n=!1,i=!0){if(r.isLegacyAnimation)return new pl(r.name,ve.LegacyAnimation,we.NONE,r.expression,null,r.sourceSpan,r.keySpan,r.valueSpan);let s=null,a,o=null,l=r.name.split(Oo),c;if(l.length>1)if(l[0]==nT){o=l.slice(1).join(Oo),n||this._validatePropertyOrAttributeName(o,r.sourceSpan,!0),c=Gc(this._schemaRegistry,e,o,!0);let u=o.indexOf(":");if(u>-1){let d=o.substring(0,u),f=o.substring(u+1);o=zo(d,f)}a=ve.Attribute}else l[0]==iT?(o=l[1],a=ve.Class,c=[we.NONE]):l[0]==sT?(s=l.length>2?l[2]:null,o=l[1],a=ve.Style,c=[we.STYLE]):l[0]==Vc&&(o=r.name,a=ve.Animation,c=[we.NONE]);if(o===null){let u=this._schemaRegistry.getMappedPropName(r.name);o=i?u:r.name,c=Gc(this._schemaRegistry,e,u,!1),a=r.type===Br.TWO_WAY?ve.TwoWay:ve.Property,n||this._validatePropertyOrAttributeName(u,r.sourceSpan,!1)}return new pl(o,a,c[0],r.expression,s,r.sourceSpan,r.keySpan,r.valueSpan)}parseEvent(e,r,n,i,s,a,o,l){e.length===0&&this._reportError("Event name is missing in binding",i),Hc(e)?(e=e.slice(1),l!==void 0&&(l=Sn(l,new Ht(l.start.offset+1,l.end.offset))),this._parseLegacyAnimationEvent(e,r,i,s,o,l)):this._parseRegularEvent(e,r,n,i,s,a,o,l)}calcPossibleSecurityContexts(e,r,n){let i=this._schemaRegistry.getMappedPropName(r);return Gc(this._schemaRegistry,e,i,n)}parseEventListenerName(e){let[r,n]=a0(e,[null,e]);return{eventName:n,target:r}}parseLegacyAnimationEventName(e){let r=o0(e,[e,null]);return{eventName:r[0],phase:r[1]===null?null:r[1].toLowerCase()}}_parseLegacyAnimationEvent(e,r,n,i,s,a){let{eventName:o,phase:l}=this.parseLegacyAnimationEventName(e),c=this._parseAction(r,i);s.push(new hl(o,l,gt.LegacyAnimation,c,n,i,a)),o.length===0&&this._reportError("Animation event name is missing in binding",n),l?l!=="start"&&l!=="done"&&this._reportError(`The provided animation output phase value "${l}" for "@${o}" is not supported (use start or done)`,n):this._reportError(`The animation trigger output event (@${o}) is missing its phase value name (start or done are currently supported)`,n)}_parseRegularEvent(e,r,n,i,s,a,o,l){let{eventName:c,target:u}=this.parseEventListenerName(e),d=this.errors.length,f=this._parseAction(r,s),h=this.errors.length===d;
37a.push([e,f.source]),n&&h&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",i);let p=gt.Regular;n&&(p=gt.TwoWay),e.startsWith(`${Vc}${Oo}`)&&(p=gt.Animation),o.push(new hl(c,u,p,f,i,s,l))}_parseAction(e,r){let n=r&&r.start?r.start.offset:0;try{let i=this._exprParser.parseAction(e,r,n,this._interpolationConfig);return i&&this.errors.push(...i.errors),!i||i.ast instanceof Ct?(this._reportError("Empty expressions are not allowed",r),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)):i}catch(i){return this._reportError(`${i}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)}}_reportError(e,r,n=Tn.ERROR){this.errors.push(new ne(r,e,n))}_validatePropertyOrAttributeName(e,r,n){let i=n?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);i.error&&this._reportError(i.msg,r,Tn.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Ot?this._isAllowedAssignmentEvent(e.ast):e instanceof ua?this._isAllowedAssignmentEvent(e.expression):e instanceof rs&&e.args.length===1&&e.receiver instanceof nn&&e.receiver.name==="$any"&&e.receiver.receiver instanceof Gr&&!(e.receiver.receiver instanceof di)?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof nn||e instanceof mi)&&!nh(e)}};function nh(t){return t instanceof sa||t instanceof aa?!0:t instanceof fa?nh(t.expression):t instanceof nn||t instanceof mi||t instanceof rs?nh(t.receiver):!1}function Hc(t){return t[0]=="@"}function Gc(t,e,r,n){let i,s=a=>t.securityContext(a,r,n);return e===null?i=t.allKnownElementNames().map(s):(i=[],Qi.parse(e).forEach(a=>{let o=a.element?[a.element]:t.allKnownElementNames(),l=new Set(a.notSelectors.filter(u=>u.isElementSelector()).map(u=>u.element)),c=o.filter(u=>!l.has(u));i.push(...c.map(s))})),i.length===0?[we.NONE]:Array.from(new Set(i)).sort()}function Sn(t,e){let r=e.start-t.start.offset,n=e.end-t.end.offset;return new se(t.start.moveBy(r),t.end.moveBy(n),t.fullStart.moveBy(r),t.details)}function oT(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(lT);return e===null||e[1]=="package"||e[1]=="asset"}var lT=/^([^:/?#]+):/,cT="select",uT="link",hT="rel",pT="href",fT="stylesheet",dT="style",mT="script",gT="ngNonBindable",vT="ngProjectAs";function Hg(t){let e=null,r=null,n=null,i=!1,s="";t.attrs.forEach(l=>{let c=l.name.toLowerCase();c==cT?e=l.value:c==pT?r=l.value:c==hT?n=l.value:l.name==gT?i=!0:l.name==vT&&l.value.length>0&&(s=l.value)}),e=yT(e);let a=t.name.toLowerCase(),o=Vt.OTHER;return lu(a)?o=Vt.NG_CONTENT:a==dT?o=Vt.STYLE:a==mT?o=Vt.SCRIPT:a==uT&&n==fT&&(o=Vt.STYLESHEET),new ih(o,e,r,i,s)}var Vt=(function(t){return t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER",t})(Vt||{}),ih=class{type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(e,r,n,i,s){this.type=e,this.selectAttr=r,this.hrefAttr=n,this.nonBindable=i,this.projectAs=s}};function yT(t){return t===null||t.length===0?"*":t}var ST=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,ET=/^track\s+([\S\s]*)/,xT=/^(as\s+)(.*)/,uc=/^else[^\S\r\n]+if/,bT=/^let\s+([\S\s]*)/,wT=/^[$A-Z_][0-9A-Z_$]*$/i,em=/(\s*)(\S+)(\s*)/,Qs=new Set(["$index","$first","$last","$even","$odd","$count"]);function tm(t){return t==="empty"}function rm(t){return t==="else"||uc.test(t)}function CT(t,e,r,n){let i=IT(e),s=[],a=nm(t,i,n);a!==null&&s.push(new ni(a.expression,Ie(r,t.children,t.children),a.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if(uc.test(d.name)){let f=nm(d,i,n);if(f!==null){let h=Ie(r,d.children,d.children);s.push(new ni(f.expression,h,f.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let f=Ie(r,d.children,d.children);s.push(new ni(null,f,null,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}let o=s.length>0?s[0].startSourceSpan:t.startSourceSpan,l=s.length>0?s[s.length-1].endSourceSpan:t.endSourceSpan,c=t.sourceSpan,u=s[s.length-1];return u!==void 0&&(c=new se(o.start,u.sourceSpan.end)),{node:new yl(s,c,t.startSourceSpan,l,t.nameSpan),errors:i}}function TT(t,e,r,n){let i=[],s=_T(t,i,n),a=null,o=null;for(let l of e)l.name==="empty"?o!==null?i.push(new ne(l.sourceSpan,"@for loop can only have one @empty block")):l.parameters.length>0?i.push(new ne(l.sourceSpan,"@empty block cannot have parameters")):o=new Ea(Ie(r,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n):i.push(new ne(l.sourceSpan,`Unrecognized @for loop block "${l.name}"`));if(s!==null)if(s.trackBy===null)i.push(new ne(t.startSourceSpan,'@for loop must have a "track" expression'));else{let l=o?.endSourceSpan??t.endSourceSpan,c=new se(t.sourceSpan.start,l?.end??t.sourceSpan.end);kT(s.trackBy.expression,s.trackBy.keywordSpan,i),a=new ss(s.itemName,s.expression,s.trackBy.expression,s.trackBy.keywordSpan,s.context,Ie(r,t.children,t.children),o,
37c,t.sourceSpan,t.startSourceSpan,l,t.nameSpan,t.i18n)}return{node:a,errors:i}}function AT(t,e,r){let n=MT(t),i=t.parameters.length>0?qa(t.parameters[0],r):r.parseBinding("",!1,t.sourceSpan,0),s=[],a=[],o=null;for(let l of t.children){if(!(l instanceof tr))continue;if((l.name!=="case"||l.parameters.length===0)&&l.name!=="default"){a.push(new Sl(l.name,l.sourceSpan,l.nameSpan));continue}let c=l.name==="case"?qa(l.parameters[0],r):null,u=new Sa(c,Ie(e,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n);c===null?o=u:s.push(u)}return o!==null&&s.push(o),{node:new vl(i,s,a,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:n}}function _T(t,e,r){if(t.parameters.length===0)return e.push(new ne(t.startSourceSpan,"@for loop does not have an expression")),null;let[n,...i]=t.parameters,s=DT(n,e)?.match(ST);if(!s||s[2].trim().length===0)return e.push(new ne(n.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,a,o]=s;Qs.has(a)&&e.push(new ne(n.sourceSpan,`@for loop item name cannot be one of ${Array.from(Qs).join(", ")}.`));let l=n.expression.split(" ")[0],c=new se(n.sourceSpan.start,n.sourceSpan.start.moveBy(l.length)),u={itemName:new In(a,"$implicit",c,c),trackBy:null,expression:qa(n,r,o),context:Array.from(Qs,d=>{let f=new se(t.startSourceSpan.end,t.startSourceSpan.end);return new In(d,d,f,f)})};for(let d of i){let f=d.expression.match(bT);if(f!==null){let p=new se(d.sourceSpan.start.moveBy(f[0].length-f[1].length),d.sourceSpan.end);PT(d.sourceSpan,f[1],p,a,u.context,e);continue}let h=d.expression.match(ET);if(h!==null){if(u.trackBy!==null)e.push(new ne(d.sourceSpan,'@for loop can only have one "track" expression'));else{let p=qa(d,r,h[1]);p.ast instanceof Ct&&e.push(new ne(t.startSourceSpan,'@for loop must have a "track" expression'));let g=new se(d.sourceSpan.start,d.sourceSpan.start.moveBy(5));u.trackBy={expression:p,keywordSpan:g}}continue}e.push(new ne(d.sourceSpan,`Unrecognized @for loop parameter "${d.expression}"`))}return u}function kT(t,e,r){let n=new sh;t.ast.visit(n),n.hasPipe&&r.push(new ne(e,"Cannot use pipes in track expressions"))}function PT(t,e,r,n,i,s){let a=e.split(","),o=r.start;for(let l of a){let c=l.split("="),u=c.length===2?c[0].trim():"",d=c.length===2?c[1].trim():"";if(u.length===0||d.length===0)s.push(new ne(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!Qs.has(d))s.push(new ne(t,`Unknown "let" parameter variable "${d}". The allowed variables are: ${Array.from(Qs).join(", ")}`));else if(u===n)s.push(new ne(t,`Invalid @for loop "let" parameter. Variable cannot be called "${n}"`));else if(i.some(f=>f.name===u))s.push(new ne(t,`Duplicate "let" parameter variable "${d}"`));else{let[,f,h]=c[0].match(em)??[],p=f!==void 0&&c.length===2?new se(o.moveBy(f.length),o.moveBy(f.length+h.length)):r,g;if(c.length===2){let[,m,v]=c[1].match(em)??[];g=m!==void 0?new se(o.moveBy(c[0].length+1+m.length),o.moveBy(c[0].length+1+m.length+v.length)):void 0}let E=new se(p.start,g?.end??p.end);i.push(new In(u,d,E,p,g))}o=o.moveBy(l.length+1)}}function IT(t){let e=[],r=!1;for(let n=0;n<t.length;n++){let i=t[n];i.name==="else"?(r?e.push(new ne(i.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&n<t.length-1?e.push(new ne(i.startSourceSpan,"@else block must be last inside the conditional")):i.parameters.length>0&&e.push(new ne(i.startSourceSpan,"@else block cannot have parameters")),r=!0):uc.test(i.name)||e.push(new ne(i.startSourceSpan,`Unrecognized conditional block @${i.name}`))}return e}function MT(t){let e=[],r=!1;if(t.parameters.length!==1)return e.push(new ne(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let n of t.children)if(!(n instanceof Oa||n instanceof bi&&n.value.trim().length===0)){if(!(n instanceof tr)||n.name!=="case"&&n.name!=="default"){e.push(new ne(n.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}n.name==="default"?(r?e.push(new ne(n.startSourceSpan,"@switch block can only have one @default block")):n.parameters.length>0&&e.push(new ne(n.startSourceSpan,"@default block cannot have parameters")),r=!0):n.name==="case"&&n.parameters.length!==1&&e.push(new ne(n.startSourceSpan,"@case block must have exactly one parameter"))}return e}function qa(t,e,r){let n,i;return typeof r=="string"?(n=Math.max(0,t.expression.lastIndexOf(r)),i=n+r.length):(n=0,i=t.expression.length),e.parseBinding(t.expression.slice(n,i),!1,t.sourceSpan,t.sourceSpan.start.offset+n)}function nm(t,e,r){if(t.parameters.length===0)return e.push(new ne(t.startSourceSpan,"Conditional block does not have an expression")),null;let n=qa(t.parameters[0],r),i=null;for(let s=1;s<t.parameters.length;s++){let a=t.parameters[s],o=a.expression.match(xT);if(o===null)e.push(new ne(a.sourceSpan,`Unrecognized conditional parameter "${a.expression}"`));else if(t.name!=="if"&&!uc.test(t.name))e.push(new ne(a.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(i!==null)e.push(new ne(a.sourceSpan,'Conditional can only have one "as" expression'));else{let l=o[2].trim();if(wT.test(l)){let c=a.sourceSpan.start.moveBy(o[1].length),u=new se(c,c.moveBy(l.length));i=new In(l,l,u,u)}else e.push(new ne(a.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:n,expressionAlias:i}}function DT(t,e){let r=t.expression,n=/^\s$/,i=0,s=0,a=r.length-1;for(let o=0;o<r.length;o++){let l=r[o];if(l==="(")s=o+1,i++;else{if(n.test(l))continue;break}}if(i===0)return r;for(let o=r.length-1;o>-1;o--){let l=r[o];if(l===")"){if(a=o,i--,i===0)break}else{if(n.test(l))continue;break}}return i!==0?(e.push(new ne(t.sourceSpan,"Unclosed parentheses in expression")),null):r.slice(s,a)}var sh=class extends ma{hasPipe=!1;visitPipe(){this.hasPipe=!0}},LT=/^\d+\.?\d*(ms|s)?$/,NT=/^\s$/,im=new Map([[Er,mt],[kn,ei],[xr,dt]]),_t=(function(t){return t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never",t})(_t||{});function FT({expression:t,sourceSpan:e},r,n){let i=t.indexOf("never"),s=new se(e.start.moveBy(i),e.start.moveBy(i+5)),a=zh(t,e),o=Hh(t,e);i===-1?n.push(new ne(e,'Could not find "never" keyword in expression')):Gh("never",r,n,new pu(s,e,a,null,o))}function qc({expression:t,sourceSpan:e},r,n,i){let s=t.indexOf("when"),a=new se(e.start.moveBy(s),e.start.moveBy(s+4)),o=zh(t,e),l=Hh(t,e);if(s===-1)i.push(new ne(e,'Could not find "when" keyword in expression'));else{let c=ja(t,s+1),u=r.parseBinding(t.slice(c),!1,e,e.start.offset+c);Gh("when",n,i,new fl(u,e,o,a,l))}}function jc({expression:t,sourceSpan:e},r,n,i){let s=t.indexOf("on"),a=new se(e.start.moveBy(s),e.start.moveBy(s+2)),o=zh(t,e),l=Hh(t,e);if(s===-1)n.push(new ne(e,'Could not find "on" keyword in expression'));else{let c=ja(t,s+1);new ah(t,c,e,r,n,t.startsWith("hydrate")?GT:HT,i,o,a,l).parse()}}function zh(t,e){return t.startsWith("prefetch")?new se(e.start,e.start.moveBy(8)):null}function Hh(t,e){return t.startsWith("hydrate")?new se(e.start,e.start.moveBy(7)):null}var ah=class{expression;start;span;triggers;errors;validator;placeholder;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(e,r,n,i,s,a,o,l,c,u){this.expression=e,this.start=r,this.span=n,this.triggers=i,this.errors=s,this.validator=a,this.placeholder=o,this.prefetchSpan=l,this.onSourceSpan=c,this.hydrateSpan=u,this.tokens=new za().tokenize(e.slice(r))}parse(){for(;this.tokens.length>0&&this.index<this.tokens.length;){let e=this.token();if(!e.isIdentifier()){this.unexpectedToken(e);break}if(this.isFollowedByOrLast(sr))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(xr)){this.advance();let r=this.errors.length,n=this.consumeParameters();if(this.errors.length!==r)break;this.consumeTrigger(e,n),this.advance()}else this.index<this.tokens.length-1&&this.unexpectedToken(this.tokens[this.index+1]);this.advance()}}advance(){this.index++}isFollowedByOrLast(e){return this.index===this.tokens.length-1?!0:this.tokens[this.index+1].isCharacter(e)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(e,r){let n=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),i=new se(n,n.moveBy(e.strValue.length)),s=n.moveBy(this.token().end-e.index),a=e.index===0,o=a?this.onSourceSpan:null,l=a?this.prefetchSpan:null,c=a?this.hydrateSpan:null,u=new se(a?this.span.start:n,s);try{switch(e.toString()){case _t.IDLE:this.trackTrigger("idle",BT(r,i,u,l,o,c));break;case _t.TIMER:this.trackTrigger("timer",RT(r,i,u,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case _t.INTERACTION:this.trackTrigger("interaction",VT(r,i,u,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case _t.IMMEDIATE:this.trackTrigger("immediate",OT(r,i,u,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case _t.HOVER:this.trackTrigger("hover",$T(r,i,u,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.placeholder,this.validator));break;case _t.VIEWPORT:this.trackTrigger("viewport",zT(r,i,u,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(d){this.error(e,d.message)}}consumeParameters(){let e=[];
37if(!this.token().isCharacter(xr))return this.unexpectedToken(this.token()),e;this.advance();let r=[],n="";for(;this.index<this.tokens.length;){let i=this.token();if(i.isCharacter(dt)&&r.length===0){n.length&&e.push(n);break}if(i.type===ce.Character&&im.has(i.numValue)&&r.push(im.get(i.numValue)),r.length>0&&i.isCharacter(r[r.length-1])&&r.pop(),r.length===0&&i.isCharacter(sr)&&n.length>0){e.push(n),n="",this.advance();continue}n+=this.tokenText(),this.advance()}return(!this.token().isCharacter(dt)||r.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(sr)&&this.unexpectedToken(this.tokens[this.index+1]),e}tokenText(){return this.expression.slice(this.start+this.token().index,this.start+this.token().end)}trackTrigger(e,r){Gh(e,this.triggers,this.errors,r)}error(e,r){let n=this.span.start.moveBy(this.start+e.index),i=n.moveBy(e.end-e.index);this.errors.push(new ne(new se(n,i),r))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function Gh(t,e,r,n){e[t]?r.push(new ne(n.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=n}function BT(t,e,r,n,i,s){if(t.length>0)throw new Error(`"${_t.IDLE}" trigger cannot have parameters`);return new fu(e,r,n,i,s)}function RT(t,e,r,n,i,s){if(t.length!==1)throw new Error(`"${_t.TIMER}" trigger must have exactly one parameter`);let a=Kl(t[0]);if(a===null)throw new Error(`Could not parse time value of trigger "${_t.TIMER}"`);return new mu(a,e,r,n,i,s)}function OT(t,e,r,n,i,s){if(t.length>0)throw new Error(`"${_t.IMMEDIATE}" trigger cannot have parameters`);return new du(e,r,n,i,s)}function $T(t,e,r,n,i,s,a,o){return o(_t.HOVER,t),new dl(t[0]??null,e,r,n,i,s)}function VT(t,e,r,n,i,s,a){return a(_t.INTERACTION,t),new ml(t[0]??null,e,r,n,i,s)}function zT(t,e,r,n,i,s,a){return a(_t.VIEWPORT,t),new gl(t[0]??null,e,r,n,i,s)}function HT(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function GT(t,e){if(e.length>0)throw new Error(`Hydration trigger "${t}" cannot have parameters`)}function ja(t,e=0){let r=!1;for(let n=e;n<t.length;n++)if(NT.test(t[n]))r=!0;else if(r)return n;return-1}function Kl(t){let e=t.match(LT);if(!e)return null;let[r,n]=e;return parseFloat(r)*(n==="s"?1e3:1)}var qT=/^prefetch\s+when\s/,jT=/^prefetch\s+on\s/,WT=/^hydrate\s+when\s/,UT=/^hydrate\s+on\s/,XT=/^hydrate\s+never(\s*)$/,Gg=/^minimum\s/,YT=/^after\s/,ZT=/^when\s/,QT=/^on\s/;function oh(t){return t==="placeholder"||t==="loading"||t==="error"}function JT(t,e,r,n){let i=[],{placeholder:s,loading:a,error:o}=KT(e,i,r),{triggers:l,prefetchTriggers:c,hydrateTriggers:u}=nA(t,n,i,s),d=t.endSourceSpan,f=t.sourceSpan.end;if(e.length>0){let g=e[e.length-1];d=g.endSourceSpan,f=g.sourceSpan.end}let h=new se(t.sourceSpan.start,f);return{node:new gi(Ie(r,t.children,t.children),l,c,u,s,a,o,t.nameSpan,h,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:i}}function KT(t,e,r){let n=null,i=null,s=null;for(let a of t)try{if(!oh(a.name)){e.push(new ne(a.startSourceSpan,`Unrecognized block "@${a.name}"`));break}switch(a.name){case"placeholder":n!==null?e.push(new ne(a.startSourceSpan,"@defer block can only have one @placeholder block")):n=eA(a,r);break;case"loading":i!==null?e.push(new ne(a.startSourceSpan,"@defer block can only have one @loading block")):i=tA(a,r);break;case"error":s!==null?e.push(new ne(a.startSourceSpan,"@defer block can only have one @error block")):s=rA(a,r);break}}catch(o){e.push(new ne(a.startSourceSpan,o.message))}return{placeholder:n,loading:i,error:s}}function eA(t,e){let r=null;for(let n of t.parameters)if(Gg.test(n.expression)){if(r!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let i=Kl(n.expression.slice(ja(n.expression)));if(i===null)throw new Error('Could not parse time value of parameter "minimum"');r=i}else throw new Error(`Unrecognized parameter in @placeholder block: "${n.expression}"`);return new ga(Ie(e,t.children,t.children),r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function tA(t,e){let r=null,n=null;for(let i of t.parameters)if(YT.test(i.expression)){if(r!=null)throw new Error('@loading block can only have one "after" parameter');let s=Kl(i.expression.slice(ja(i.expression)));if(s===null)throw new Error('Could not parse time value of parameter "after"');r=s}else if(Gg.test(i.expression)){if(n!=null)throw new Error('@loading block can only have one "minimum" parameter');let s=Kl(i.expression.slice(ja(i.expression)));if(s===null)throw new Error('Could not parse time value of parameter "minimum"');n=s}else throw new Error(`Unrecognized parameter in @loading block: "${i.expression}"`);return new va(Ie(e,t.children,t.children),r,n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function rA(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new ya(Ie(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function nA(t,e,r,n){let i={},s={},a={};for(let o of t.parameters)ZT.test(o.expression)?qc(o,e,i,r):QT.test(o.expression)?jc(o,i,r,n):qT.test(o.expression)?qc(o,e,s,r):jT.test(o.expression)?jc(o,s,r,n):WT.test(o.expression)?qc(o,e,a,r):UT.test(o.expression)?jc(o,a,r,n):XT.test(o.expression)?FT(o,a,r):r.push(new ne(o.sourceSpan,"Unrecognized trigger"));return a.never&&Object.keys(a).length>1&&r.push(new ne(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:i,prefetchTriggers:s,hydrateTriggers:a}}var iA=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,sm=1,am=2,om=3,lm=4,cm=5,sA=6,$s=7,En={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},Wc="*",aA=new Set(["link","style","script","ng-template","ng-container","ng-content"]),oA=new Set(["ngProjectAs","ngNonBindable"]);function lA(t,e,r){let n=new lh(e,r),i=Ie(n,t,t),s=e.errors.concat(n.errors),a={nodes:i,errors:s,styleUrls:n.styleUrls,styles:n.styles,ngContentSelectors:n.ngContentSelectors};return r.collectCommentNodes&&(a.commentNodes=n.commentNodes),a}var lh=class{bindingParser;options;errors=[];styles=[];styleUrls=[];ngContentSelectors=[];commentNodes=[];inI18nBlock=!1;processedNodes=new Set;constructor(e,r){this.bindingParser=e,this.options=r}visitElement(e){let r=qo(e.i18n);r&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);let n=Hg(e);
37if(n.type===Vt.SCRIPT)return null;if(n.type===Vt.STYLE){let m=cA(e);return m!==null&&this.styles.push(m),null}else if(n.type===Vt.STYLESHEET&&oT(n.hrefAttr))return this.styleUrls.push(n.hrefAttr),null;let i=k0(e.name),{attributes:s,boundEvents:a,references:o,variables:l,templateVariables:c,elementHasInlineTemplate:u,parsedProperties:d,templateParsedProperties:f,i18nAttrsMeta:h}=this.prepareAttributes(e.attrs,i),p=this.extractDirectives(e),g;n.nonBindable?g=Ie(um,e.children).flat(1/0):g=Ie(this,e.children,e.children);let E;if(n.type===Vt.NG_CONTENT){let m=n.selectAttr,v=e.attrs.map(y=>this.visitAttribute(y));E=new as(m,v,g,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(m)}else if(i){let m=this.categorizePropertyAttributes(e.name,d,h);E=new Gt(e.name,s,m.bound,a,p,[],g,o,l,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let m=this.categorizePropertyAttributes(e.name,d,h);if(e.name==="ng-container")for(let v of m.bound)v.type===ve.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",v.sourceSpan);E=new qr(e.name,s,m.bound,a,p,g,o,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return u&&(E=this.wrapInTemplate(E,f,c,h,i,r)),r&&(this.inI18nBlock=!1),E}visitAttribute(e){return new is(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return this.processedNodes.has(e)?null:this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}visitExpansion(e){if(!e.i18n)return null;if(!qo(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);let r=e.i18n,n={},i={};return Object.keys(r.placeholders).forEach(s=>{let a=r.placeholders[s];if(s.startsWith(D0)){let o=s.trim(),l=this.bindingParser.parseInterpolationExpression(a.text,a.sourceSpan);n[o]=new ns(l,a.sourceSpan)}else i[s]=this._visitTextWithInterpolation(a.text,a.sourceSpan,null)}),new km(n,i,e.sourceSpan,r)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new sc(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,r){let n=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return n.errors.length===0&&n.ast instanceof Ct&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new Th(e.name,n,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let r=qo(e.i18n);if(r&&(this.inI18nBlock&&this.reportError("Cannot mark a component as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0),e.tagName!==null&&aA.has(e.tagName))return this.reportError(`Tag name "${e.tagName}" cannot be used as a component tag`,e.startSourceSpan),null;let{attributes:n,boundEvents:i,references:s,templateVariables:a,elementHasInlineTemplate:o,parsedProperties:l,templateParsedProperties:c,i18nAttrsMeta:u}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(s);let d=this.extractDirectives(e),f;e.attrs.find(g=>g.name==="ngNonBindable")?f=Ie(um,e.children).flat(1/0):f=Ie(this,e.children,e.children);let h=this.categorizePropertyAttributes(e.tagName,l,u),p=new Us(e.componentName,e.tagName,e.fullName,n,h.bound,i,d,f,s,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return o&&(p=this.wrapInTemplate(p,c,a,u,!1,r)),r&&(this.inI18nBlock=!1),p}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(e,r){let n=Array.isArray(r)?r.indexOf(e):-1;if(n===-1)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(e))return null;let i=null;switch(e.name){case"defer":i=JT(e,this.findConnectedBlocks(n,r,oh),this,this.bindingParser);break;case"switch":i=AT(e,this,this.bindingParser);break;case"for":i=TT(e,this.findConnectedBlocks(n,r,tm),this,this.bindingParser);break;case"if":i=CT(e,this.findConnectedBlocks(n,r,rm),this,this.bindingParser);break;default:let s;oh(e.name)?(s=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):tm(e.name)?(s=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):rm(e.name)?(s=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):s=`Unrecognized block @${e.name}.`,i={node:new Sl(e.name,e.sourceSpan,e.nameSpan),errors:[new ne(e.sourceSpan,s)]};break}return this.errors.push(...i.errors),i.node}findConnectedBlocks(e,r,n){let i=[];for(let s=e+1;s<r.length;s++){let a=r[s];if(!(a instanceof Oa)){if(a instanceof bi&&a.value.trim().length===0){this.processedNodes.add(a);continue}if(!(a instanceof tr)||!n(a.name))break;i.push(a),this.processedNodes.add(a)}}return i}categorizePropertyAttributes(e,r,n){let i=[],s=[];return r.forEach(a=>{let o=n[a.name];if(a.isLiteral)s.push(new is(a.name,a.expression.source||"",a.sourceSpan,a.keySpan,a.valueSpan,o));else{let l=this.bindingParser.createBoundElementProperty(e,a,!0,!1);i.push(uu.fromBoundElementProperty(l,o))}}),{bound:i,literal:s}}prepareAttributes(e,r){let n=[],i=[],s=[],a=[],o=[],l={},c=[],u=[],d=!1;for(let f of e){let h=!1,p=hm(f.name),g=!1;if(f.i18n&&(l[f.name]=f.i18n),p.startsWith(Wc)){d&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",f.s
37ourceSpan),g=!0,d=!0;let E=f.value,m=p.substring(Wc.length),v=[],y=f.valueSpan?f.valueSpan.fullStart.offset:f.sourceSpan.fullStart.offset+f.name.length;this.bindingParser.parseInlineTemplateBinding(m,E,f.sourceSpan,y,[],c,v,!0),u.push(...v.map(S=>new In(S.name,S.value,S.sourceSpan,S.keySpan,S.valueSpan)))}else h=this.parseAttribute(r,f,[],n,i,s,a);!h&&!g&&o.push(this.visitAttribute(f))}return{attributes:o,boundEvents:i,references:a,variables:s,templateVariables:u,elementHasInlineTemplate:d,parsedProperties:n,templateParsedProperties:c,i18nAttrsMeta:l}}parseAttribute(e,r,n,i,s,a,o){let l=hm(r.name),c=r.value,u=r.sourceSpan,d=r.valueSpan?r.valueSpan.fullStart.offset:u.fullStart.offset;function f(m,v,y){let S=r.name.length-l.length,w=m.start.moveBy(v.length+S),A=w.moveBy(y.length);return new se(w,A,w,y)}let h=l.match(iA);if(h){if(h[sm]!=null){let m=h[$s],v=f(u,h[sm],m);this.bindingParser.parsePropertyBinding(m,c,!1,!1,u,d,r.valueSpan,n,i,v)}else if(h[am])if(e){let m=h[$s],v=f(u,h[am],m);this.parseVariable(m,c,u,v,r.valueSpan,a)}else this.reportError('"let-" is only supported on ng-template elements.',u);else if(h[om]){let m=h[$s],v=f(u,h[om],m);this.parseReference(m,c,u,v,r.valueSpan,o)}else if(h[lm]){let m=[],v=h[$s],y=f(u,h[lm],v);this.bindingParser.parseEvent(v,c,!1,u,r.valueSpan||u,n,m,y),Uc(m,s)}else if(h[cm]){let m=h[$s],v=f(u,h[cm],m);this.bindingParser.parsePropertyBinding(m,c,!1,!0,u,d,r.valueSpan,n,i,v),this.parseAssignmentEvent(m,c,u,r.valueSpan,n,s,v,d)}else if(h[sA]){let m=f(u,"",l);this.bindingParser.parseLiteralAttr(l,c,u,d,r.valueSpan,n,i,m)}return!0}let p=null;if(l.startsWith(En.BANANA_BOX.start)?p=En.BANANA_BOX:l.startsWith(En.PROPERTY.start)?p=En.PROPERTY:l.startsWith(En.EVENT.start)&&(p=En.EVENT),p!==null&&l.endsWith(p.end)&&l.length>p.start.length+p.end.length){let m=l.substring(p.start.length,l.length-p.end.length),v=f(u,p.start,m);if(p.start===En.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(m,c,!1,!0,u,d,r.valueSpan,n,i,v),this.parseAssignmentEvent(m,c,u,r.valueSpan,n,s,v,d);else if(p.start===En.PROPERTY.start)this.bindingParser.parsePropertyBinding(m,c,!1,!1,u,d,r.valueSpan,n,i,v);else{let y=[];this.bindingParser.parseEvent(m,c,!1,u,r.valueSpan||u,n,y,v),Uc(y,s)}return!0}let g=f(u,"",l);return this.bindingParser.parsePropertyInterpolation(l,c,u,r.valueSpan,n,i,g,r.valueTokens??null)}extractDirectives(e){let r=e instanceof At?e.tagName:e.name,n=[],i=new Set;for(let s of e.directives){let a=!1;for(let h of s.attrs)h.name.startsWith(Wc)?(a=!0,this.reportError(`Shorthand template syntax "${h.name}" is not supported inside a directive context`,h.sourceSpan)):oA.has(h.name)&&(a=!0,this.reportError(`Attribute "${h.name}" is not supported in a directive context`,h.sourceSpan));if(!a&&i.has(s.name)&&(a=!0,this.reportError(`Cannot apply directive "${s.name}" multiple times on the same element`,s.sourceSpan)),a)continue;let{attributes:o,parsedProperties:l,boundEvents:c,references:u,i18nAttrsMeta:d}=this.prepareAttributes(s.attrs,!1);this.validateSelectorlessReferences(u);let{bound:f}=this.categorizePropertyAttributes(r,l,d);for(let h of f)h.type!==ve.Property&&h.type!==ve.TwoWay&&(a=!0,this.reportError("Binding is not supported in a directive context",h.sourceSpan));a||(i.add(s.name),n.push(new _m(s.name,o,f,c,u,s.sourceSpan,s.startSourceSpan,s.endSourceSpan,void 0)))}return n}filterAnimationAttributes(e){return e.filter(r=>!r.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(r=>r.type!==ve.Animation)}wrapInTemplate(e,r,n,i,s,a){let o=this.categorizePropertyAttributes("ng-template",r,i),l=[];o.literal.forEach(f=>l.push(f)),o.bound.forEach(f=>l.push(f));let c={attributes:[],inputs:[],outputs:[]};(e instanceof qr||e instanceof Us)&&(c.attributes.push(...this.filterAnimationAttributes(e.attributes)),c.inputs.push(...this.filterAnimationInputs(e.inputs)),c.outputs.push(...e.outputs));let u=s&&a?void 0:e.i18n,d;return e instanceof Us?d=e.tagName:e instanceof Gt?d=null:d=e.name,new Gt(d,c.attributes,c.inputs,c.outputs,[],l,[e],[],n,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,u)}_visitTextWithInterpolation(e,r,n,i){let s=Sg(e),a=this.bindingParser.parseInterpolation(s,r,n);return a?new ns(a,r,i):new Kn(s,r)}parseVariable(e,r,n,i,s,a){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',n):e.length===0&&this.reportError("Variable does not have a name",n),a.push(new In(e,r,n,i,s))}parseReference(e,r,n,i,s,a){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',n):e.length===0?this.reportError("Reference does not have a name",n):a.some(o=>o.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,n),a.push(new xa(e,r,n,i,s))}parseAssignmentEvent(e,r,n,i,s,a,o,l){let c=[];this.bindingParser.parseEvent(`${e}Change`,r,!0,n,i||n,s,c,o),Uc(c,a)}validateSelectorlessReferences(e){if(e.length===0)return;let r=new Set;for(let n of e)n.value.length>0?this.reportError("Cannot specify a value for a local reference in this context",n.valueSpan||n.sourceSpan):r.has(n.name)?this.reportError("Duplicate reference names are not allowed",n.sourceSpan):r.add(n.name)}reportError(e,r,n=Tn.ERROR){this.errors.push(new ne(r,e,n))}},ch=class{visitElement(e){let r=Hg(e);
37if(r.type===Vt.SCRIPT||r.type===Vt.STYLE||r.type===Vt.STYLESHEET)return null;let n=Ie(this,e.children,null);return new qr(e.name,Ie(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new is(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Kn(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,r){let n=[new Kn(e.startSourceSpan.toString(),e.startSourceSpan),...Ie(this,e.children)];return e.endSourceSpan!==null&&n.push(new Kn(e.endSourceSpan.toString(),e.endSourceSpan)),n}visitBlockParameter(e,r){return null}visitLetDeclaration(e,r){return new Kn(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,r){let n=Ie(this,e.children,null);return new qr(e.fullName,Ie(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,r){return null}},um=new ch;function hm(t){return/^data-/i.test(t)?t.substring(5):t}function Uc(t,e){e.push(...t.map(r=>hu.fromParsedEvent(r)))}function cA(t){return t.children.length!==1||!(t.children[0]instanceof bi)?null:t.children[0].value}var uA=[" ",`
38`,"\r","	"];function hA(t,e,r={}){let{interpolationConfig:n,preserveWhitespaces:i,enableI18nLegacyMessageIdFormat:s}=r,a=r.enableSelectorless??!1,o=ec(n,a),c=new th().parse(t,e,Pe(G({leadingTriviaChars:uA},r),{tokenizeExpansionForms:!0,tokenizeBlocks:r.enableBlockSyntax??!0,tokenizeLet:r.enableLetSyntax??!0,selectorlessEnabled:a}));if(!r.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let w={interpolationConfig:n,preserveWhitespaces:i,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return r.collectCommentNodes&&(w.commentNodes=[]),w}let u=c.rootNodes,d=!(r.preserveSignificantWhitespace??!0),f=new jl(n,!i,s,void 0,r.preserveSignificantWhitespace,d),h=f.visitAllWithErrors(u);if(!r.alwaysAttemptHtmlToR3AstConversion&&h.errors&&h.errors.length>0){let w={interpolationConfig:n,preserveWhitespaces:i,errors:h.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return r.collectCommentNodes&&(w.commentNodes=[]),w}u=h.rootNodes,i||(u=Ie(new Gl(!0,void 0,!1),u),f.hasI18nMeta&&(u=Ie(new jl(n,!1,void 0,void 0,!0,d),u)));let{nodes:p,errors:g,styleUrls:E,styles:m,ngContentSelectors:v,commentNodes:y}=lA(u,o,{collectCommentNodes:!!r.collectCommentNodes});g.push(...c.errors,...h.errors);let S={interpolationConfig:n,preserveWhitespaces:i,errors:g.length>
380?g:null,nodes:p,styleUrls:E,styles:m,ngContentSelectors:v};return r.collectCommentNodes&&(S.commentNodes=y),S}var pA=new ms;function ec(t=Or,e=!1){return new rh(new ql(new za,e),t,pA,[])}var qg="%COMP%",fA=`_nghost-${qg}`,dA=`_ngcontent-${qg}`;function jg(t,e,r){let n=new Ln,i=Eh(t.selector);return n.set("type",t.type.value),i.length>0&&n.set("selectors",Hi(i)),t.queries.length>0&&n.set("contentQueries",rT(t.queries,e,t.name)),t.viewQueries.length&&n.set("viewQuery",tT(t.viewQueries,e,t.name)),n.set("hostBindings",bA(t.host,t.typeSourceSpan,r,e,t.selector||"",t.name,n)),n.set("inputs",jf(t.inputs,!0)),n.set("outputs",jf(t.outputs)),t.exportAs!==null&&n.set("exportAs",Se(t.exportAs.map(s=>$(s)))),t.isStandalone===!1&&n.set("standalone",$(!1)),t.isSignal&&n.set("signals",$(!0)),n}function Wg(t,e){let r=[],n=e.providers,i=e.viewProviders;if(n||i){let s=[n||new wr([])];i&&s.push(i),r.push(te(I.ProvidersFeature).callFn(s))}if(e.hostDirectives?.length&&r.push(te(I.HostDirectivesFeature).callFn([_A(e.hostDirectives)])),e.usesInheritance&&r.push(te(I.InheritDefinitionFeature)),e.fullInheritance&&r.push(te(I.CopyDefinitionFeature)),e.lifecycle.usesOnChanges&&r.push(te(I.NgOnChangesFeature)),"externalStyles"in e&&e.externalStyles?.length){let s=e.externalStyles.map(a=>$(a));r.push(te(I.ExternalStylesFeature).callFn([Se(s)]))}r.length&&t.set("features",Se(r))}function mA(t,e,r){let n=jg(t,e,r);Wg(n,t);let i=te(I.defineDirective).callFn([n.toLiteralMap()],void 0,!0),s=xA(t);return{expression:i,type:s,statements:[]}}function gA(t,e,r){let n=jg(t,e,r);Wg(n,t);let i=t.selector&&Qi.parse(t.selector),s=i&&i[0];if(s){let p=s.getAttrs();p.length&&n.set("attrs",e.getConstLiteral(Se(p.map(g=>g!=null?$(g):$(void 0))),!0))}let a=t.name,o=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let p=`${a}_DeferFn`;e.statements.push(new Ue(p,t.defer.dependenciesFn,void 0,rt.Final)),o=pe(p)}let l=t.isStandalone&&!t.hasDirectiveDependencies?Tt.DomOnly:Tt.Full,c=MC(t.name,t.template.nodes,e,l,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,o,t.relativeTemplatePath,JC());Mg(c,Z.Tmpl);let u=_C(c,e);if(c.contentSelectors!==null&&n.set("ngContentSelectors",c.contentSelectors),n.set("decls",$(c.root.decls)),n.set("vars",$(c.root.vars)),c.consts.length>0&&(c.constsInitializers.length>0?n.set("consts",Cr([],[...c.constsInitializers,new nt(Se(c.consts))])):n.set("consts",Se(c.consts))),n.set("template",u),t.declarationListEmitMode!==3&&t.declarations.length>0)n.set("dependencies",yA(Se(t.declarations.map(p=>p.type)),t.declarationListEmitMode));else if(t.declarationListEmitMode===3){let p=[t.type.value];t.rawImports&&p.push(t.rawImports),n.set("dependencies",te(I.getComponentDepsFactory).callFn(p))}t.encapsulation===null&&(t.encapsulation=Un.Emulated);let d=!!t.externalStyles?.length;if(t.styles&&t.styles.length){let g=(t.encapsulation==Un.Emulated?AA(t.styles,dA,fA):t.styles).reduce((E,m)=>(m.trim().length>0&&E.push(e.getConstLiteral($(m))),E),[]);g.length>0&&(d=!0,n.set("styles",Se(g)))}!d&&t.encapsulation===Un.Emulated&&(t.encapsulation=Un.None),t.encapsulation!==Un.Emulated&&n.set("encapsulation",$(t.encapsulation)),t.animations!==null&&n.set("data",yt([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==Sh.Default?n.set("changeDetection",$(t.changeDetection)):typeof t.changeDetection=="object"&&n.set("changeDetection",t.changeDetection));let f=te(I.defineComponent).callFn([n.toLiteralMap()],void 0,!0),h=vA(t);return{expression:f,type:h,statements:[]}}function vA(t){let e=Ug(t);return e.push(hh(t.template.ngContentSelectors)),e.push(it($(t.isStandalone))),e.push(Xg(t)),t.isSignal&&e.push(it($(t.isSignal))),it(te(I.ComponentDeclaration,e))}function yA(t,e){switch(e){case 0:return t;case 1:return Cr([],t);case 2:let r=t.prop("map").callFn([te(I.resolveForwardRef)]);return Cr([],r);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function SA(t){return it($(t))}function uh(t){let e=Object.keys(t).map(r=>{let n=Array.isArray(t[r])?t[r][0]:t[r];return{key:r,value:$(n),quoted:!0}});return yt(e)}function hh(t){return t.length>0?it(Se(t.map(e=>$(e)))):Vr}function Ug(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[ic(t.type.type,t.typeArgumentCount),e!==null?SA(e):Vr,t.exportAs!==null?hh(t.exportAs):Vr,it(EA(t)),it(uh(t.outputs)),hh(t.queries.map(r=>r.propertyName))]}function EA(t){return yt(Object.keys(t.inputs).map(e=>{let r=t.inputs[e],n=[{key:"alias",value:$(r.bindingPropertyName),quoted:!0},{key:"required",value:$(r.required),quoted:!0}];return r.isSignal&&n.push({key:"isSignal",value:$(r.isSignal),quoted:!0}),{key:e,value:yt(n),quoted:!0}}))}function xA(t){let e=Ug(t);return e.push(Vr),e.push(it($(t.isStandalone))),e.push(Xg(t)),t.isSignal&&e.push(it($(t.isSignal))),it(te(I.DirectiveDeclaration,e))}function bA(t,e,r,n,i,s,a){let o=r.createBoundHostProperties(t.properties,e),l=r.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=$(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=$(t.specialAttributes.classAttr));let c=DC({componentName:s,componentSelector:i,properties:o,events:l,attributes:t.attributes}
38,r,n);Mg(c,Z.Host),a.set("hostAttrs",c.root.attributes);let u=c.root.vars;return u!==null&&u>0&&a.set("hostVars",$(u)),kC(c)}var wA=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function CA(t){let e={},r={},n={},i={};for(let s of Object.keys(t)){let a=t[s],o=s.match(wA);if(o===null)switch(s){case"class":if(typeof a!="string")throw new Error("Class binding must be string");i.classAttr=a;break;case"style":if(typeof a!="string")throw new Error("Style binding must be string");i.styleAttr=a;break;default:typeof a=="string"?e[s]=$(a):e[s]=a}else if(o[1]!=null){if(typeof a!="string")throw new Error("Property binding must be string");n[o[1]]=a}else if(o[2]!=null){if(typeof a!="string")throw new Error("Event binding must be string");r[o[2]]=a}}return{attributes:e,listeners:r,properties:n,specialAttributes:i}}function TA(t,e){let r=ec();return r.createDirectiveHostEventAsts(t.listeners,e),r.createBoundHostProperties(t.properties,e),r.errors}function AA(t,e,r){let n=new Cu;return t.map(i=>n.shimCssText(i,e,r))}function Xg(t){return t.hostDirectives?.length?
38it(Se(t.hostDirectives.map(e=>yt([{key:"directive",value:Ua(e.directive.type),quoted:!1},{key:"inputs",value:uh(e.inputs||{}),quoted:!1},{key:"outputs",value:uh(e.outputs||{}),quoted:!1}])))):Vr}function _A(t){let e=[],r=!1;for(let n of t){if(!n.inputs&&!n.outputs)e.push(n.directive.type);else{let i=[{key:"directive",value:n.directive.type,quoted:!1}];if(n.inputs){let s=pm(n.inputs);s&&i.push({key:"inputs",value:s,quoted:!1})}if(n.outputs){let s=pm(n.outputs);s&&i.push({key:"outputs",value:s,quoted:!1})}e.push(yt(i))}n.isForwardReference&&(r=!0)}return r?new _n([],[new nt(Se(e))]):Se(e)}function pm(t){let e=[];for(let r in t)t.hasOwnProperty(r)&&e.push($(r),$(t[r]));return e.length>0?Se(e):null}var ph=class extends ma{visit(e){e instanceof Ot?this.visit(e.ast):e.visit(this)}visitElement(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitTemplate(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.templateAttrs),this.visitAllTemplateNodes(e.variables),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitContent(e){this.visitAllTemplateNodes(e.children)}visitBoundAttribute(e){this.visit(e.value)}visitBoundEvent(e){this.visit(e.handler)}visitBoundText(e){this.visit(e.value)}visitIcu(e){Object.keys(e.vars).forEach(r=>this.visit(e.vars[r])),Object.keys(e.placeholders).forEach(r=>this.visit(e.placeholders[r]))}visitDeferredBlock(e){e.visitAll(this)}visitDeferredTrigger(e){e instanceof fl&&this.visit(e.value)}visitDeferredBlockPlaceholder(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockError(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockLoading(e){this.visitAllTemplateNodes(e.children)}visitSwitchBlock(e){this.visit(e.expression),this.visitAllTemplateNodes(e.cases)}visitSwitchBlockCase(e){e.expression&&this.visit(e.expression),this.visitAllTemplateNodes(e.children)}visitForLoopBlock(e){e.item.visit(this),this.visitAllTemplateNodes(e.contextVariables),this.visit(e.expression),this.visitAllTemplateNodes(e.children),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.visitAllTemplateNodes(e.children)}visitIfBlock(e){this.visitAllTemplateNodes(e.branches)}visitIfBlockBranch(e){e.expression&&this.visit(e.expression),e.expressionAlias?.visit(this),this.visitAllTemplateNodes(e.children)}visitLetDeclaration(e){this.visit(e.value)}visitComponent(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitDirective(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.references)}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitText(e){}visitUnknownBlock(e){}visitAllTemplateNodes(e){for(let r of e)this.visit(r)}};var fh=class{directiveMatcher;constructor(e){this.directiveMatcher=e}bind(e){if(!e.template&&!e.host)throw new Error("Empty bound targets are not supported");let r=new Map,n=[],i=new Set,s=new Map,a=new Map,o=new Map,l=new Map,c=new Map,u=new Map,d=new Set,f=new Set,h=[];if(e.template){let p=tc.apply(e.template);kA(p,o),dh.apply(e.template,this.directiveMatcher,r,n,i,s,a),rc.applyWithScope(e.template,p,l,c,u,d,f,h)}return e.host&&(r.set(e.host.node,e.host.directives),rc.applyWithScope(e.host.node,tc.apply(e.host.node),l,c,u,d,f,h)),new mh(e,r,n,i,s,a,l,c,u,o,d,f,h)}},tc=class t{parentScope;rootNode;namedEntities=new Map;elementLikeInScope=new Set;childScopes=new Map;isDeferred;constructor(e,r){this.parentScope=e,this.rootNode=r,this.isDeferred=e!==null&&e.isDeferred?!0:r instanceof gi}static newRootScope(){return new t(null,null)}static apply(e){let r=t.newRootScope();
38return r.ingest(e),r}ingest(e){e instanceof Gt?(e.variables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof ni?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(r=>r.visit(this))):e instanceof ss?(this.visitVariable(e.item),e.contextVariables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof Sa||e instanceof Ea||e instanceof gi||e instanceof ya||e instanceof ga||e instanceof va||e instanceof as?e.children.forEach(r=>r.visit(this)):e instanceof ba||e.forEach(r=>r.visit(this))}visitElement(e){this.visitElementLike(e)}visitTemplate(e){e.directives.forEach(r=>r.visit(this)),e.references.forEach(r=>this.visitReference(r)),this.ingestScopedNode(e)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitDeferredBlock(e){this.ingestScopedNode(e),e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.cases.forEach(r=>r.visit(this))}visitSwitchBlockCase(e){this.ingestScopedNode(e)}visitForLoopBlock(e){this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(r=>r.visit(this))}visitIfBlockBranch(e){this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){this.maybeDeclare(e)}visitComponent(e){this.visitElementLike(e)}visitDirective(e){e.references.forEach(r=>this.visitReference(r))}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitElementLike(e){e.directives.forEach(r=>r.visit(this)),e.references.forEach(r=>this.visitReference(r)),e.children.forEach(r=>r.visit(this)),this.elementLikeInScope.add(e)}maybeDeclare(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)}lookup(e){return this.namedEntities.has(e)?this.namedEntities.get(e):this.parentScope!==null?this.parentScope.lookup(e):null}getChildScope(e){let r=this.childScopes.get(e);if(r===void 0)throw new Error(`Assertion error: child scope for ${e} not found`);return r}ingestScopedNode(e){let r=new t(this,e);r.ingest(e),this.childScopes.set(e,r)}},dh=class t{directiveMatcher;directives;eagerDirectives;missingDirectives;bindings;references;isInDeferBlock=!1;constructor(e,r,n,i,s,a){this.directiveMatcher=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=s,this.references=a}static apply(e,r,n,i,s,a,o){new t(r,n,i,s,a,o).ingest(e)}ingest(e){e.forEach(r=>r.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitDeferredBlock(e){let r=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(n=>n.visit(this)),this.isInDeferBlock=r,e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(r=>r.visit(this))}visitDeferredBlockError(e){e.children.forEach(r=>r.visit(this))}visitDeferredBlockLoading(e){e.children.forEach(r=>r.visit(this))}visitSwitchBlock(e){e.cases.forEach(r=>r.visit(this))}visitSwitchBlockCase(e){e.children.forEach(r=>r.visit(this))}visitForLoopBlock(e){e.item.visit(this),e.contextVariables.forEac
38h(r=>r.visit(this)),e.children.forEach(r=>r.visit(this)),e.empty?.visit(this)}visitForLoopBlockEmpty(e){e.children.forEach(r=>r.visit(this))}visitIfBlock(e){e.branches.forEach(r=>r.visit(this))}visitIfBlockBranch(e){e.expressionAlias?.visit(this),e.children.forEach(r=>r.visit(this))}visitContent(e){e.children.forEach(r=>r.visit(this))}visitComponent(e){if(this.directiveMatcher instanceof Wo){let r=this.directiveMatcher.match(e.componentName);r.length>0?this.trackSelectorlessMatchesAndDirectives(e,r):this.missingDirectives.add(e.componentName)}e.directives.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this))}visitDirective(e){if(this.directiveMatcher instanceof Wo){let r=this.directiveMatcher.match(e.name);r.length>0?this.trackSelectorlessMatchesAndDirectives(e,r):this.missingDirectives.add(e.name)}}visitElementOrTemplate(e){if(this.directiveMatcher instanceof jo){let r=[],n=F0(e);this.directiveMatcher.match(n,(i,s)=>r.push(...s)),this.trackSelectorBasedBindingsAndDirectives(e,r)}else e.references.forEach(r=>{r.value.trim()===""&&this.references.set(r,e)});e.directives.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this))}trackMatchedDirectives(e,r){r.length>0&&(this.directives.set(e,r),this.isInDeferBlock||this.eagerDirectives.push(...r))}trackSelectorlessMatchesAndDirectives(e,r){if(r.length===0)return;this.trackMatchedDirectives(e,r);let n=(i,s,a)=>{i[a].hasBindingPropertyName(s.name)&&this.bindings.set(s,i)};for(let i of r)e.inputs.forEach(s=>n(i,s,"inputs")),e.attributes.forEach(s=>n(i,s,"inputs")),e.outputs.forEach(s=>n(i,s,"outputs"));e.references.forEach(i=>this.references.set(i,{directive:r[0],node:e}))}trackSelectorBasedBindingsAndDirectives(e,r){this.trackMatchedDirectives(e,r),e.references.forEach(i=>{let s=null;if(i.value.trim()==="")s=r.find(a=>a.isComponent)||null;else if(s=r.find(a=>a.exportAs!==null&&a.exportAs.some(o=>o===i.value))||null,s===null)return;s!==null?this.references.set(i,{directive:s,node:e}):this.references.set(i,e)});let n=(i,s)=>{let a=r.find(l=>l[s].hasBindingPropertyName(i.name)),o=a!==void 0?a:e;this.bindings.set(i,o)};e.inputs.forEach(i=>n(i,"inputs")),e.attributes.forEach(i=>n(i,"inputs")),e instanceof Gt&&e.templateAttrs.forEach(i=>n(i,"inputs")),e.outputs.forEach(i=>n(i,"outputs"))}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitLetDeclaration(e){}},rc=class t extends ph{bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;visitNode=e=>e.visit(this);constructor(e,r,n,i,s,a,o,l,c){super(),this.bindings=e,this.symbols=r,this.usedPipes=n,this.eagerPipes=i,this.deferBlocks=s,this.nestingLevel=a,this.scope=o,this.rootNode=l,this.level=c}static applyWithScope(e,r,n,i,s,a,o,l){let c=e instanceof Gt?e:null;new t(n,i,a,o,l,s,r,c,0).ingest(e)}
38ingest(e){if(e instanceof Gt)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof ni)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof ss)this.visitNode(e.item),e.contextVariables.forEach(r=>this.visitNode(r)),e.trackBy.visit(this),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof gi){if(this.scope.rootNode!==e)throw new Error(`Assertion error: resolved incorrect scope for deferred block ${e}`);this.deferBlocks.push([e,this.scope]),e.children.forEach(r=>r.visit(this)),this.nestingLevel.set(e,this.level)}else e instanceof Sa||e instanceof Ea||e instanceof ya||e instanceof ga||e instanceof va||e instanceof as?(e.children.forEach(r=>r.visit(this)),this.nestingLevel.set(e,this.level)):e instanceof ba?this.nestingLevel.set(e,0):e.forEach(this.visitNode)}visitTemplate(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.directives.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode),this.ingestScopedNode(e)}visitVariable(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitReference(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitDeferredBlock(e){this.ingestScopedNode(e),e.triggers.when?.value.visit(this),e.prefetchTriggers.when?.value.visit(this),e.hydrateTriggers.when?.value.visit(this),e.hydrateTriggers.never?.visit(this),e.placeholder&&this.visitNode(e.placeholder),e.loading&&this.visitNode(e.loading),e.error&&this.visitNode(e.error)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlockCase(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitForLoopBlock(e){e.expression.visit(this),this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlockBranch(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){super.visitLetDeclaration(e),this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitPipe(e,r){return this.usedPipes.add(e.name),this.scope.isDeferred||this.eagerPipes.add(e.name),super.visitPipe(e,r)}visitPropertyRead(e,r){return this.maybeMap(e,e.name),super.visitPropertyRead(e,r)}visitSafePropertyRead(e,r){return this.maybeMap(e,e.name),super.visitSafePropertyRead(e,r)}ingestScopedNode(e){let r=this.scope.getChildScope(e);new t(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,r,e,this.level+1).ingest(e)}maybeMap(e,r){if(!(e.receiver instanceof Gr)||e.receiver instanceof di)return;let n=this.scope.lookup(r);n!==null&&this.bindings.set(e,n)}},mh=class{target;directives;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;deferredBlocks;deferredScopes;constructor(e,r,n,i,s,a,o,l,c,u,d,f,h){this.target=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=s,this.references=a,this.exprTargets=o,this.symbols=l,this.nestingLevel=c,this.scopedNodeEntities=u,this.usedPipes=d,this.eagerPipes=f,this.deferredBlocks=h.map(p=>p[0]),this.deferredScopes=new Map(h)}getEntitiesInScope(e){return this.scopedNodeEntities.get(e)??new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getDefinitionNodeOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){let e=new Set;return this.directives.forEach(r=>r.forEach(n=>e.add(n))),Array.from(e.values())}getEagerlyUsedDirectives(){let e=new Set(this.eagerDirectives);return Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(e,r){if(!(r instanceof ml)&&!(r instanceof gl)&&!(r instanceof dl))return null;let n=r.reference;if(n===null){let s=null;if(e.placeholder!==null){for(let a of e.placeholder.children)if(!(a instanceof sc)){if(s!==null)return null;a instanceof qr&&(s=a)}}return s}let i=this.findEntityInScope(e,n);if(i instanceof xa&&this.getDefinitionNodeOfSymbol(i)!==e){let s=this.getReferenceTarget(i);if(s!==null)return this.referenceTargetToElement(s)}if(e.placeholder!==null){let s=this.findEntityInScope(e.placeholder,n),a=s instanceof xa?this.getReferenceTarget(s):null;if(a!==null)return this.referenceTargetToElement(a)}return null}isDeferred(e){for(let r of this.deferredBlocks){if(!this.deferredScopes.has(r))continue;let n=[this.deferredScopes.get(r)];for(;n.length>0;){let i=n.pop();if(i.elementLikeInScope.has(e))return!0;n.push(...i.childScopes.values())}}return!1}referencedDirectiveExists(e){return!this.missingDirectives.has(e)}findEntityInScope(e,r){let n=this.getEntitiesInScope(e);for(let i of n)if(i.name===r)return i;return null}referenceTargetToElement(e){return e instanceof qr?e:e instanceof Gt||e.node instanceof Us||e.node instanceof _m||e.node instanceof ba?null:this.referenceTargetToElement(e.node)}};function kA(t,e){let r=new Map;function n(s){if(r.has(s.rootNode))return r.get(s.rootNode);let a=s.namedEntities,o;return s.parentScope!==null?o=new Map([...n(s.parentScope),...a]):o=new Map(a),r.set(s.rootNode,o),o}let i=[t];for(;i.length>0;){let s=i.pop();for(let a of s.childScopes.values())i.push(a);n(s)}
38for(let[s,a]of r)e.set(s,new Set(a.values()))}var gh=class{},vh=class{jitEvaluator;FactoryTarget=Kr;ResourceLoader=gh;elementSchemaRegistry=new ms;constructor(e=new xu){this.jitEvaluator=e}compilePipe(e,r,n){let i={name:n.name,type:je(n.type),typeArgumentCount:0,deps:null,pipeName:n.pipeName,pure:n.pure,isStandalone:n.isStandalone},s=rd(i);return this.jitExpression(s.expression,e,r,[])}compilePipeDeclaration(e,r,n){let i=jA(n),s=rd(i);return this.jitExpression(s.expression,e,r,[])}compileInjectable(e,r,n){let{expression:i,statements:s}=Wf({name:n.name,type:je(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:ym(n.providedIn),useClass:$i(n,"useClass"),useFactory:vm(n,"useFactory"),useValue:$i(n,"useValue"),useExisting:$i(n,"useExisting"),deps:n.deps?.map(Jg)},!0);return this.jitExpression(i,e,r,s)}compileInjectableDeclaration(e,r,n){let{expression:i,statements:s}=Wf({name:n.type.name,type:je(n.type),typeArgumentCount:0,providedIn:ym(n.providedIn),useClass:$i(n,"useClass"),useFactory:vm(n,"useFactory"),useValue:$i(n,"useValue"),useExisting:$i(n,"useExisting"),deps:n.deps?.map(Sm)},!0);return this.jitExpression(i,e,r,s)}compileInjector(e,r,n){let i={name:n.name,type:je(n.type),providers:n.providers&&n.providers.length>0?new de(n.providers):null,imports:n.imports.map(a=>new de(a))},s=td(i);return this.jitExpression(s.expression,e,r,[])}compileInjectorDeclaration(e,r,n){let i=WA(n),s=td(i);return this.jitExpression(s.expression,e,r,[])}compileNgModule(e,r,n){let i={kind:An.Global,type:je(n.type),bootstrap:n.bootstrap.map(je),declarations:n.declarations.map(je),publicDeclarationTypes:null,imports:n.imports.map(je),includeImportTypes:!0,exports:n.exports.map(je),selectorScopeMode:Al.Inline,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(je):null,id:n.id?new de(n.id):null},s=iS(i);return this.jitExpression(s.expression,e,r,[])}compileNgModuleDeclaration(e,r,n){let i=sS(n);return this.jitExpression(i,e,r,[])}compileDirective(e,r,n){let i=mm(n);return this.compileDirectiveFromMeta(e,r,i)}compileDirectiveDeclaration(e,r,n){let i=this.createParseSourceSpan("Directive",n.type.name,r),s=Zg(n,i);return this.compileDirectiveFromMeta(e,r,s)}compileDirectiveFromMeta(e,r,n){let i=new rl,s=ec(),a=mA(n,i,s);return this.jitExpression(a.expression,e,r,i.statements)}compileComponent(e,r,n){let{template:i,interpolation:s,defer:a}=Qg(n.template,n.name,r,n.preserveWhitespaces,n.interpolation,void 0),o=Pe(G(G({},n),mm(n)),{selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:i,declarations:n.declarations.map(DA),declarationListEmitMode:0,defer:a,styles:[...n.styles,...i.styles],encapsulation:n.encapsulation,interpolation:s,changeDetection:n.changeDetection??null,animations:n.animations!=null?new de(n.animations):null,viewProviders:n.viewProviders!=null?new de(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null}),l=`ng:///${n.name}.js`;return this.compileComponentFromMeta(e,l,o)}compileComponentDeclaration(e,r,n){let i=this.createParseSourceSpan("Component",n.type.name,r),s=MA(n,i,r);return this.compileComponentFromMeta(e,r,s)}compileComponentFromMeta(e,r,n){let i=new rl,s=ec(n.interpolation),a=gA(n,i,s);return this.jitExpression(a.expression,e,r,i.statements)}compileFactory(e,r,n){let i=Xn({name:n.name,type:je(n.type),typeArgumentCount:n.typeArgumentCount,deps:FA(n.deps),target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}compileFactoryDeclaration(e,r,n){let i=Xn({name:n.type.name,type:je(n.type),typeArgumentCount:0,deps:Array.isArray(n.deps)?n.deps.map(Sm):n.deps,target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}createParseSourceSpan(e,r,n){return Q0(e,r,n)}jitExpression(e,r,n,i){let s=[...i,new Ue("$def",e,void 0,rt.Exported)];return this.jitEvaluator.evaluateStatements(n,s,new wu(r),!0).$def}};function fm(t){return Pe(G({},t),{isSignal:t.isSignal,predicate:Yg(t.predicate),read:t.read?new de(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly})}function dm(t){return{propertyName:t.propertyName,first:t.first??!1,predicate:Yg(t.predicate),descendants:t.descendants??!1,read:t.read?new de(t.read):null,
38static:t.static??!1,emitDistinctChangesOnly:t.emitDistinctChangesOnly??!0,isSignal:!!t.isSignal}}function Yg(t){return Array.isArray(t)?t:Ch(new de(t),1)}function mm(t){let e=qA(t.inputs||[]),r=Yc(t.outputs||[]),n=t.propMetadata,i={},s={};for(let o in n)n.hasOwnProperty(o)&&n[o].forEach(l=>{VA(l)?i[o]={bindingPropertyName:l.alias||o,classPropertyName:o,required:l.required||!1,isSignal:!!l.isSignal,transformFunction:l.transform!=null?new de(l.transform):null}:zA(l)&&(s[o]=l.alias||o)});let a=t.hostDirectives?.length?t.hostDirectives.map(o=>typeof o=="function"?{directive:je(o),inputs:null,outputs:null,isForwardReference:!1}:{directive:je(o.directive),isForwardReference:!1,inputs:o.inputs?Yc(o.inputs):null,outputs:o.outputs?Yc(o.outputs):null}):null;return Pe(G({},t),{typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:je(t.type),deps:null,host:G({},RA(t.propMetadata,t.typeSourceSpan,t.host)),inputs:G(G({},e),i),outputs:G(G({},r),s),queries:t.queries.map(fm),providers:t.providers!=null?new de(t.providers):null,viewQueries:t.viewQueries.map(fm),fullInheritance:!1,hostDirectives:a})}function Zg(t,e){let r=t.hostDirectives?.length?t.hostDirectives.map(n=>({directive:je(n.directive),isForwardReference:!1,inputs:n.inputs?gm(n.inputs):null,outputs:n.outputs?gm(n.outputs):null})):null;return{name:t.type.name,type:je(t.type),typeSourceSpan:e,selector:t.selector??null,inputs:t.inputs?HA(t.inputs):{},outputs:t.outputs??{},host:PA(t.host),queries:(t.queries??[]).map(dm),viewQueries:(t.viewQueries??[]).map(dm),providers:t.providers!==void 0?new de(t.providers):null,exportAs:t.exportAs??null,usesInheritance:t.usesInheritance??!1,lifecycle:{usesOnChanges:t.usesOnChanges??!1},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:t.isStandalone??Am(t.version),isSignal:t.isSignal??!1,hostDirectives:r}}function PA(t={}){return{attributes:IA(t.attributes??{}),listeners:t.listeners??{},properties:t.properties??{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function gm(t){let e=null;for(let r=1;r<t.length;r+=2)e=e||{},e[t[r-1]]=t[r];return e}function IA(t){let e={};for(let r of Object.keys(t))e[r]=new de(t[r]);return e}function MA(t,e,r){let{template:n,interpolation:i,defer:s}=Qg(t.template,t.type.name,r,t.preserveWhitespaces??!1,t.interpolation,t.deferBlockDependencies),a=[];if(t.dependencies)for(let l of t.dependencies)switch(l.kind){case"directive":case"component":a.push(Xc(l));break;case"pipe":a.push(NA(l));break}else(t.components||t.directives||t.pipes)&&(t.components&&a.push(...t.components.map(l=>Xc(l,!0))),t.directives&&a.push(...t.directives.map(l=>Xc(l))),t.pipes&&a.push(...LA(t.pipes)));let o=a.some(({kind:l})=>l===cs.Directive||l===cs.NgModule);return Pe(G({},Zg(t,e)),{template:n,styles:t.styles??[],declarations:a,viewProviders:t.viewProviders!==void 0?new de(t.viewProviders):null,animations:t.animations!==void 0?new de(t.animations):null,defer:s,changeDetection:t.changeDetection??Sh.Default,encapsulation:t.encapsulation??Un.Emulated,interpolation:i,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:o})}function DA(t){return Pe(G({},t),{type:new de(t.type)})}function Xc(t,e=null){return{kind:cs.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new de(t.type),inputs:t.inputs??[],outputs:t.outputs??[],exportAs:t.exportAs??null}}function LA(t){return t?Object.keys(t).map(e=>({kind:cs.Pipe,name:e,type:new de(t[e])})):[]}function NA(t){return{kind:cs.Pipe,name:t.name,type:new de(t.type)}}function Qg(t,e,r,n,i,s){let a=i?xl.fromArray(i):Or,o=hA(t,r,{preserveWhitespaces:n,interpolationConfig:a});if(o.errors!==null){let u=o.errors.map(d=>d.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${u}`)}let c=new fh(null).bind({template:o.nodes});return{template:o,interpolation:a,defer:BA(c,s)}}function $i(t,e){if(t.hasOwnProperty(e))return Ch(new de(t[e]),0)}function vm(t,e){if(t.hasOwnProperty(e))return new de(t[e])}function ym(t){let e=typeof t=="function"?new de(t):new st(t??null);return Ch(e,0)}function FA(t){return t==null?null:t.map(Jg)}function Jg(t){let e=t.attribute!=null,r=t.token===null?null:new de(t.token),n=e?new de(t.attribute):r;return Kg(n,e,t.host,t.optional,t.self,t.skipSelf)}function Sm(t){let e=t.attribute??!1,r=t.token===null?null:new de(t.token);return Kg(r,e,t.host??!1,t.optional??!1,t.self??!1,t.skipSelf??!1)}function Kg(t,e,r,n,i,s){let a=e?$("unknown"):null;return{token:t,attributeNameType:a,host:r,optional:n,self:i,skipSelf:s}}function BA(t,e){let r=t.getDeferBlocks(),n=new Map;for(let i=0;i<r.length;i++){let s=e?.[i];n.set(r[i],s?new de(s):null)}return{mode:0,blocks:n}}function RA(t,e,r){let n=CA(r||{}),i=TA(n,e);if(i.length)throw new Error(i.map(s=>s.msg).join(`
39`));
39for(let s in t)t.hasOwnProperty(s)&&t[s].forEach(a=>{OA(a)?n.properties[a.hostPropertyName||s]=v0("this",s):$A(a)&&(n.listeners[a.eventName||s]=`${s}(${(a.args||[]).join(",")})`)});return n}function OA(t){return t.ngMetadataName==="HostBinding"}function $A(t){return t.ngMetadataName==="HostListener"}function VA(t){return t.ngMetadataName==="Input"}function zA(t){return t.ngMetadataName==="Output"}function HA(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=GA(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new de(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function GA(t){return typeof t=="string"?{bindingPropertyName:t,classPropertyName:t,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:t[0],classPropertyName:t[1],transformFunction:t[2]?new de(t[2]):null,required:!1,isSignal:!1}}function qA(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=ev(r);e[i]={bindingPropertyName:n,classPropertyName:i,required:!1,isSignal:!1,transformFunction:null}}else e[r.name]={bindingPropertyName:r.alias||r.name,classPropertyName:r.name,required:r.required||!1,isSignal:!1,transformFunction:r.transform!=null?new de(r.transform):null};return e},{})}function Yc(t){return t.reduce((e,r)=>
39{let[n,i]=ev(r);return e[i]=n,e},{})}function ev(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function jA(t){return{name:t.type.name,type:je(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??Am(t.version)}}function WA(t){return{name:t.type.name,type:je(t.type),providers:t.providers!==void 0&&t.providers.length>0?new de(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new de(e)):[]}}function UA(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new vh}var yh=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Rr.PARSABLE_DATA}},rk=new yh;var nk=new tu("20.3.16");UA(Ws);function XA(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(t.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return r===0||r===1?1:i===0&&r!==0&&r%1e6===0&&n===0||!(i>=0&&i<=5)?4:5}var tv=["fr",[["AM","PM"]],void 0,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xE9vr.","mars","avr.","mai","juin","juil.","ao\xFBt","sept.","oct.","nov.","d\xE9c."],["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"]],void 0,[["av. J.-C.","ap. J.-C."],void 0,["avant J\xE9sus-Christ","apr\xE8s J\xE9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1}, {0}","{1} '\xE0' {0}",void 0],[",","\u202F",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BYN:[void 0,"\u0440."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[void 0,"\xA5"],COP:["$CO","$"],CYP:["\xA3CY"],EGP:[void 0,"\xA3E"],FJD:["$FJ","$"],FKP:["\xA3FK","\xA3"],FRF:["F"],GBP:["\xA3GB","\xA3"],GIP:["\xA3GI","\xA3"],HKD:[void 0,"$"],IEP:["\xA3IE"],ILP:["\xA3IL"],ITL:["\u20A4IT"],JPY:[void 0,"\xA5"],KMF:[void 0,"FC"],LBP:["\xA3LB","\xA3L"],MTP:["\xA3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[void 0,"$C"],NZD:["$NZ","$"],PHP:[void 0,"\u20B1"],RHD:["$RH"],RON:[void 0,"L"],RWF:[void 0,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[void 0,"$T"],TTD:["$TT","$"],TWD:[void 0,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[void 0,"$"],XPF:["FCFP"],ZMW:[void 0,"Kw"]},"ltr",XA];var wy=Py(rv());var YA=(()=>{class t extends vo{constructor(r,n,i){super(r,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(fe(io),fe(Ms),fe(go))};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();function ZA(){return new Rp}function QA(t,e,r){return new $p(t,e,r)}var iv=[{provide:go,useFactory:ZA},{provide:vo,useClass:YA},{provide:ao,useFactory:QA,deps:[po,vo,so]}],JA=[{provide:Ms,useClass:Bp},{provide:ks,useValue:"NoopAnimations"},...iv],nv=[{provide:Ms,useFactory:()=>new Op},{provide:ks,useFactory:()=>"BrowserAnimations"},...iv],sv=(()=>{class t{static withConfig(r){return{ngModule:t,providers:r.disableAnimations?JA:nv}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=wt({type:t});static \u0275inj=bt({providers:nv,imports:[fo]})}return t})();var qh=new no("TRANSLATE_HTTP_LOADER_CONFIG"),av=(()=>{class t{http;config;constructor(){this.config=G({prefix:"/assets/i18n/",suffix:".json",enforceLoading:!1,useHttpBackend:!1},jn(qh)),this.http=this.config.useHttpBackend?new Is(jn(_p)):jn(Is)}getTranslation(r){let n=this.config.enforceLoading?`?enforceLoading=${Date.now()}`:"";return this.http.get(`${this.config.prefix}${r}${this.config.suffix}${n}`)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})();var ov=(()=>{let e=class e{constructor(n,i,s){this.databaseService=n,this.https=i,this.logger=s}getCurrencies(){return this.https.get(`${vr.ASSETS_URL}currencies/currencies.json`).pipe(hp(n=>n))}saveCurrencies(n){this.databaseService.getDB().open().then(i=>{this.saveCurrenciesInDB(n)}).catch(i=>{this.logger.error(`Error while opening of database while saving list of currencies: ${i.stack}`)})}saveCurrenciesInDB(n,i=this.databaseService.getDB()){return this.updateCurrenciesInDB(n,i)}updateCurrenciesInDB(n,i=this.databaseService.getDB()){return i.currency.bulkPut(n)}};e.\u0275fac=function(i){return new(i||e)(fe(wo),fe(Is),fe(lt))},e.\u0275prov=Ae({token:e,factory:e.\u0275fac});let t=e;return t})();var hc=(()=>{let e=class e{constructor(n,i,s){this.auth=n,this.router=i,this.deviceService=s}canActivate(){return this.auth.isAuthenticated()?!0:(this.router.navigate([this.deviceService.isMobile?"welcome":"login"]),!1)}};e.\u0275fac=function(i){return new(i||e)(fe(Ft),fe(gn),fe(vn))},e.\u0275prov=Ae({token:e,factory:e.\u0275fac});let t=e;return t})();var pc=(()=>{let e=class e{constructor(n,i){this.auth=n,this.router=i}canActivate(){return this.auth.isAuthenticated()?(this.router.navigate(["/"]),!1):!0}};e.\u0275fac=function(i){return new(i||e)(fe(Ft),fe(gn))},e.\u0275prov=Ae({token:e,factory:e.\u0275fac});let t=e;return t})();var fc=class{constructor(e,r,n,i,s,a){this.request=e,this.next=r,this.authService=n,this.urlGiverService=i,this.sessionService=s,this.logger=a}handle(){return this.request.url.startsWith(this.urlGiverService.g
39iveAPIUrl())&&this.request.url.endsWith(Ft.AUTH_TOKEN_URL_PART)?this.handleTokenEndpointRequests():this.request.url.startsWith(this.urlGiverService.giveAPIUrl())&&this.authService.isAuthenticated()?this.handleAPIRequestsWhenAuthenticated():this.next.handle(this.request)}handleTokenEndpointRequests(){let e=this.getRequestWithBasicAuthorization();return this.next.handle(e).pipe(_i(r=>{throw(r.status===Nt.BAD_REQUEST||r.status===Nt.UNAUTHORIZED)&&this.sessionService.getSession()&&(this.logger.info("400 or 401 while trying to authenticate against token endpoint. Logging out..."),this.authService.redirectTologout()),r}))}getRequestWithBasicAuthorization(){return this.request.clone({setHeaders:{Authorization:`Basic ${btoa("angular:secret")}`}})}handleAPIRequestsWhenAuthenticated(){if(this.authService.isTokenRefreshInProgress())return this.waitForNewAccessTokenBeforeSending();{let e=this.getRequestWithTokenAuthorization(this.authService.getAccessToken());return e.url===this.urlGiverService.giveSubmitOtpAPIUrl()?this.next.handle(e):this.next.handle(e).pipe(_i(r=>{if(r.status===Nt.UNAUTHORIZED)return this.refreshAccessTokenAndResend();throw r}))}}waitForNewAccessTokenBeforeSending(){return mr.info("Token refresh already in progress, waiting for new access token to be available before sending..."),this.logger.info("Token refresh already in progress, waiting for new access token to be available before sending..."),this.internalSendRequestWhenRefreshDone(this.authService.waitForNewAccessToken())}refreshAccessTokenAndResend(){return mr.info("Access token expired, try to refresh token and resend..."),this.logger.info("Access token expired, try to refresh token and resend..."),this.internalSendRequestWhenRefreshDone(this.authService.internalRefreshUserSession())}internalSendRequestWhenRefreshDone(e){return e.pipe(pp(r=>{if(r===Ft.NO_TOKEN_MUTEX_VALUE)return this.logger.info("Not retrying the request as access token refresh was unsuccessful."),up(null);{mr.info(`Token refresh successful, sending request with new access token ${r}`),this.logger.info(`Token refresh successful, sending request with new access token ${r}`);let n=this.getRequestWithTokenAuthorization(r);return this.next.handle(n)}}),_i(r=>{throw r.status===Nt.UNAUTHORIZED&&this.sessionService.getSession()&&(this.logger.error("access_token still invalid after refresh",r),this.authService.redirectTologout()),r}))}getRequestWithTokenAuthorization(e){return this.request.clone({setHeaders:{Authorization:`Bearer ${e}`}})}};var cv=(()=>{let e=class e{constructor(n,i,s,a){this.authService=n,this.urlGiverService=i,this.sessionservice=s,this.logger=a}intercept(n,i){return new fc(n,i,this.authService,this.urlGiverService,this.sessionservice,this.logger).handle()}};e.\u0275fac=function(i){return new(i||e)(fe(Ft),fe(vr),fe(Qp),fe(lt))},e.\u0275prov=Ae({token:e,factory:e.\u0275fac});let t=e;return t})();var uv=(()=>{let e=class e{constructor(n,i){this.toasterService=n,this.logger=i}intercept(n,i){return i.handle(n).pipe(fn({error:s=>{s.status===Nt.PAYMENT_REQUIRED&&(this.logger.error("Received unexpected FeatureNotAvailable exception",s),this.toasterService.showErrorToaster("payment.featurenotavailable"))}}))}};e.\u0275fac=function(i){return new(i||e)(fe(Lr),fe(lt))},e.\u0275prov=Ae({token:e,factory:e.\u0275fac});let t=e;return t})();var hv=(()=>{let e=class e{constructor(n){this.offlineCheckerService=n}intercept(n,i){return i.handle(n).pipe(fn({error:s=>{s.status===0&&!navigator.onLine&&(yn.isOnline=!1,this.offlineCheckerService.startChecking())}}))}};e.\u0275fac=function(i){return new(i||e)(fe(Mi))},e.\u0275prov=Ae({token:e,factory:e.\u0275fac});let t=e;return t})();var dc=class{};var pv=(()=>{let e=class e{constructor(n){this.urlGiver=n}intercept(n,i){if(!yn.isOnline&&!n.url.startsWith(this.urlGiver.giveAssetsUrl()))throw new dc;return i.handle(n)}};e.\u0275fac=function(i){return new(i||e)(fe(vr))},e.\u0275prov=Ae({token:e,factory:e.\u0275fac});let t=e;return t})();var fv=(()=>{let e=class e{constructor(n,i,s){this.toasterService=n,this.logger=i,this.logoutService=s}intercept(n,i){return i.handle(n).pipe(fn({error:s=>{s.status===Nt.FORBIDDEN&&n.url.includes("/sync/latestSubset")&&this.logoutService.disconnectServices(),s.status===Nt.FORBIDDEN&&!(s.error&&s.error.title)&&(s.error.message&&s.error.message===af.ENTITY_BEING_USED_ERROR||(this.logger.error("Received PermissionNotAllowed exception",s),this.toasterService.showErrorToaster("sync.permission.error",{itemLabel:""})))}}))}};e.\u0275fac=function(i){return new(i||e)(fe(Lr),fe(lt),fe(tf))},e.\u0275prov=Ae({token:e,factory:e.\u0275fac});let t=e;return t})();var dv=(()=>{let e=class e{constructor(n,i,s,a,o,l,c){this.deviceService=n,this.authService=i,this.route=s,this.router=a,this.translate=o,this.toastr=l,this.logger=c}
39ngOnInit(){let n=this.route.snapshot.queryParams.key;yn.waitForOnlineStatus().subscribe(()=>{this.authService.confirmUserEmail(n).subscribe(i=>{this.logger.info(`[CONFIRM_EMAIL] success form email ${i.email}`),this.toastr.showSuccessToaster("account.notify.new_account.confirm"),this.router.navigate(["/login"],{queryParams:{email:i.email}})},i=>{this.logger.error("[CONFIRM_EMAIL]",i),this.router.navigate(["/login"])})})}};e.\u0275fac=function(i){return new(i||e)($e(vn),$e(Ft),$e(Vp),$e(gn),$e(yo),$e(Lr),$e(lt))},e.\u0275cmp=oo({type:e,selectors:[["app-account-validation"]],standalone:!1,decls:10,vars:6,consts:[[1,"content"],[1,"spinner"],["src","/assets/img/logo/casque_sitediary.svg","alt","site diary app worker logo"]],template:function(i,s){i&1&&(dr(0,"section")(1,"div",0),Mr(2,"div",1),dr(3,"p"),Pi(4),Qt(5,"translate"),Mr(6,"br"),Pi(7),Qt(8,"translate"),Jr(),Mr(9,"img",2),Jr()()),i&2&&(Qr(4),Ps(Jt(5,2,"activation_progress")),Qr(3),Ps(Jt(8,4,"activation_progress_redirection")))},dependencies:[So],styles:["section[_ngcontent-%COMP%]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background-color:#22234b;color:#fff}section[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}section[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:1em;text-align:center;margin-bottom:40px}section[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:64px;height:64px}.spinner[_ngcontent-%COMP%]{height:48px;width:48px;color:#fff;position:relative;display:inline-block;border:4px solid;border-radius:50%;border-right-color:#ffffff80;animation:_ngcontent-%COMP%_rotate .8s linear infinite;margin-bottom:20px}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]});let t=e;return t})();var r_=[{path:"",loadChildren:()=>import("./chunk-JMIWVRQY.js").then(t=>t.HomeModule),canActivate:[hc]},{path:"",loadChildren:()=>import("./chunk-3UBV5MS6.js").then(t=>
vendor: 7,636 bytes, line 39
39t.WelcomeModule),canActivate:[pc]},{path:"validation",component:dv},{path:"**",redirectTo:""}],mv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=bt({imports:[Ds.forRoot(r_),Ds]});let t=e;return t})();var mc=Dr("FirebaseCrashlytics",{web:()=>import("./chunk-A77V6GFV.js").then(t=>new t.FirebaseCrashlyticsWeb)});var gv=Dr("Keyboard");var vv=Dr("SplashScreen",{web:()=>import("./chunk-PSNDTO75.js").then(t=>new t.SplashScreenWeb)});var gc=(function(t){return t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT",t})(gc||{});var yv=Dr("StatusBar");var Sv=Dr("EdgeToEdge",{});function Ev(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Yh(t={},e={}){let r=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>r.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:Ev(e[n])&&Ev(t[n])&&Object.keys(e[n]).length>0&&Yh(t[n],e[n])})}var xv={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Me(){let t=typeof document<"u"?document:{};return Yh(t,xv),t}var n_={document:xv,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function xe(){let t=typeof window<"u"?window:{};return Yh(t,n_),t}function hn(t=""){return t.trim().split(" ").filter(e=>!!e.trim())}function bv(t){let e=t;Object.keys(e).forEach(r=>{try{e[r]=null}catch{}try{delete e[r]}catch{}})}function Xr(t,e=0){return setTimeout(t,e)}function St(){return Date.now()}function i_(t){let e=xe(),r;return e.getComputedStyle&&(r=e.getComputedStyle(t,null)),!r&&t.currentStyle&&(r=t.currentStyle),r||(r=t.style),r}function Qa(t,e="x"){let r=xe(),n,i,s,a=i_(t);return r.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(o=>o.replace(",",".")).join(", ")),s=new r.WebKitCSSMatrix(i==="none"?"":i)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=s.toString().split(",")),e==="x"&&(r.WebKitCSSMatrix?i=s.m41:n.length===16?i=parseFloat(n[12]):i=parseFloat(n[4])),e==="y"&&(r.WebKitCSSMatrix?i=s.m42:n.length===16?i=parseFloat(n[13]):i=parseFloat(n[5])),i||0}function bs(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function s_(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Mt(...t){let e=Object(t[0]),r=["__proto__","constructor","prototype"];for(let n=1;n<t.length;n+=1){let i=t[n];if(i!=null&&!s_(i)){let s=Object.keys(Object(i)).filter(a=>r.indexOf(a)<0);for(let a=0,o=s.length;a<o;a+=1){let l=s[a],c=Object.getOwnPropertyDescriptor(i,l);c!==void 0&&c.enumerable&&(bs(e[l])&&bs(i[l])?i[l].__swiper__?e[l]=i[l]:Mt(e[l],i[l]):!bs(e[l])&&bs(i[l])?(e[l]={},i[l].__swiper__?e[l]=i[l]:Mt(e[l],i[l])):e[l]=i[l])}}}return e}function Ci(t,e,r){t.style.setProperty(e,r)}function Zh({swiper:t,targetPosition:e,side:r}){let n=xe(),i=-t.translate,s=null,a,o=t.params.speed;t.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(t.cssModeFrameID);let l=e>i?"next":"prev",c=(d,f)=>l==="next"&&d>=f||l==="prev"&&d<=f,u=()=>{a=new Date().getTime(),s===null&&(s=a);let d=Math.max(Math.min((a-s)/o,1),0),f=.5-Math.cos(d*Math.PI)/2,h=i+f*(e-i);if(c(h,e)&&(h=e),t.wrapperEl.scrollTo({[r]:h}),c(h,e)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:h})}),n.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=n.requestAnimationFrame(u)};u()}function Dt(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function Ne(t,e=""){let r=xe(),n=[...t.children];return r.HTMLSlotElement&&t instanceof HTMLSlotElement&&n.push(...t.assignedElements()),e?n.filter(i=>i.matches(e)):n}function a_(t,e){let r=[e];for(;r.length>0;){let n=r.shift();if(t===n)return!0;r.push(...n.children,...n.shadowRoot?n.shadowRoot.children:[],...n.assignedElements?n.assignedElements():[])}}function wv(t,e){let r=xe(),n=e.contains(t);return!n&&r.HTMLSlotElement&&e instanceof HTMLSlotElement&&(n=[...e.assignedElements()].includes(t),n||(n=a_(t,e))),n}function Ja(t){try{console.warn(t);return}catch{}}function He(t,e=[]){let r=document.createElement(t);return r.classList.add(...Array.isArray(e)?e:hn(e)),r}function Ti(t){let e=xe(),r=Me(),n=t.getBoundingClientRect(),i=r.body,s=t.clientTop||i.clientTop||0,a=t.clientLeft||i.clientLeft||0,o=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:n.top+o-s,left:n.left+l-a}}function Cv(t,e){let r=[];for(;t.previousElementSibling;){let n=t.previousElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function Tv(t,e){let r=[];for(;t.nextElementSibling;){let n=t.nextElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function pn(t,e){return xe().getComputedStyle(t,null).getPropertyValue(e)}function Vn(t){let e=t,r;if(e){for(r=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(r+=1);return r}}function _r(t,e){let r=[],n=t.parentElement;for(;n;)e?n.matches(e)&&r.push(n):r.push(n),n=n.parentElement;return r}function zn(t,e){function r(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",r))}e&&t.addEventListener("transitionend",r)}function Ka(t,e,r){let n=xe();return r?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function me(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Hn(t){return e=>Math.abs(e)>0&&t.browser&&t.browser.need3dFix&&Math.abs(e)%90===0?e+.001:e}function Ge(t,e=""){typeof trustedTypes<"u"?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:r=>r}).createHTML(e):t.innerHTML=e}var Qh;function o_(){let t=xe(),e=Me();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Iv(){return Qh||(Qh=o_()),Qh}var Jh;function l_({userAgent:t}={}){let e=Iv(),r=xe(),n=r.navigator.platform,i=t||r.navigator.userAgent,s={ios:!1,android:!1},a=r.screen.width,o=r.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/),c=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/),u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=n==="Win32",h=n==="MacIntel",p=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&h&&e.touch&&p.indexOf(`${a}x${o}`)>
vendor: 4,304 bytes, line 39
39=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),l&&!f&&(s.os="android",s.android=!0),(c||d||u)&&(s.os="ios",s.ios=!0),s}function Mv(t={}){return Jh||(Jh=l_(t)),Jh}var Kh;function c_(){let t=xe(),e=Mv(),r=!1;function n(){let o=t.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(n()){let o=String(t.navigator.userAgent);if(o.includes("Version/")){let[l,c]=o.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));r=l<16||l===16&&c<2}}let i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),s=n(),a=s||i&&e.ios;return{isSafari:r||s,needPerspectiveFix:r,need3dFix:a,isWebView:i}}function Dv(){return Kh||(Kh=c_()),Kh}function u_({swiper:t,on:e,emit:r}){let n=xe(),i=null,s=null,a=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},o=()=>{!t||t.destroyed||!t.initialized||(i=new ResizeObserver(u=>{s=n.requestAnimationFrame(()=>{let{width:d,height:f}=t,h=d,p=f;u.forEach(({contentBoxSize:g,contentRect:E,target:m})=>{m&&m!==t.el||(h=E?E.width:(g[0]||g).inlineSize,p=E?E.height:(g[0]||g).blockSize)}),(h!==d||p!==f)&&a()})}),i.observe(t.el))},l=()=>{s&&n.cancelAnimationFrame(s),i&&i.unobserve&&t.el&&(i.unobserve(t.el),i=null)},c=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};e("init",()=>{if(t.params.resizeObserver&&typeof n.ResizeObserver<"u"){o();return}n.addEventListener("resize",a),n.addEventListener("orientationchange",c)}),e("destroy",()=>{l(),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",c)})}function h_({swiper:t,extendParams:e,on:r,emit:n}){let i=[],s=xe(),a=(c,u={})=>{let d=s.MutationObserver||s.WebkitMutationObserver,f=new d(h=>{if(t.__preventObserver__)return;if(h.length===1){n("observerUpdate",h[0]);return}let p=function(){n("observerUpdate",h[0])};s.requestAnimationFrame?s.requestAnimationFrame(p):s.setTimeout(p,0)});f.observe(c,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:t.isElement||(typeof u.childList>"u"?!0:u).childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),i.push(f)},o=()=>{if(t.params.observer){if(t.params.observeParents){let c=_r(t.hostEl);for(let u=0;u<c.length;u+=1)a(c[u])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}},l=()=>{i.forEach(c=>{c.disconnect()}),i.splice(0,i.length)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",o),r("destroy",l)}var p_={on(t,e,r){let n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;let i=r?"unshift":"push";return t.split(" ").forEach(s=>{n.eventsListeners[s]||(n.eventsListeners[s]=[]),n.eventsListeners[s][i](e)}),n},once(t,e,r){let n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function i(...s){n.off(t,i),i.__emitterProxy&&delete i.__emitterProxy,e.apply(n,s)}return i.__emitterProxy=e,n.on(t,i,r)},onAny(t,e){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;let n=e?"unshift":"push";return r.eventsAnyListeners.indexOf(t)<0&&r.eventsAnyListeners[n](t),r},offAny(t){let e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;let r=e.eventsAnyListeners.indexOf(t);return r>=0&&e.eventsAnyListeners.splice(r,1),e},off(t,e){let r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?r.eventsListeners[n]=[]:r.eventsListeners[n]&&r.eventsListeners[n].forEach((i,s)=>{(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&r.eventsListeners[n].splice(s,1)})}),r},emit(...t){let e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let r,n,i;return typeof t[0]=="string"||Array.isArray(t[0])?(r=t[0],n=t.slice(1,t.length),i=e):(r=t[0].events,n=t[0].data,i=t[0].context||e),n.unshift(i),(Array.isArray(r)?r:r.split(" ")).forEach(a=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(o=>{o.apply(i,[a,...n])}),e.eventsListeners&&e.eventsListeners[a]&&e.eventsListeners[a].forEach(o=>{o.apply(i,n)})}),e}};function f_(){let t=this,e,r,n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?r=t.params.height:r=n.clientHeight,!(e===0&&t.isHorizontal()||r===0&&t.isVertical())&&(e=e
vendor: 4,183 bytes, line 39
39-parseInt(pn(n,"padding-left")||0,10)-parseInt(pn(n,"padding-right")||0,10),r=r-parseInt(pn(n,"padding-top")||0,10)-parseInt(pn(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(r)&&(r=0),Object.assign(t,{width:e,height:r,size:t.isHorizontal()?e:r}))}function d_(){let t=this;function e(R,D){return parseFloat(R.getPropertyValue(t.getDirectionLabel(D))||0)}let r=t.params,{wrapperEl:n,slidesEl:i,rtlTranslate:s,wrongRTL:a}=t,o=t.virtual&&r.virtual.enabled,l=o?t.virtual.slides.length:t.slides.length,c=Ne(i,`.${t.params.slideClass}, swiper-slide`),u=o?t.virtual.slides.length:c.length,d=[],f=[],h=[],p=r.slidesOffsetBefore;typeof p=="function"&&(p=r.slidesOffsetBefore.call(t));let g=r.slidesOffsetAfter;typeof g=="function"&&(g=r.slidesOffsetAfter.call(t));let E=t.snapGrid.length,m=t.slidesGrid.length,v=t.size-p-g,y=r.spaceBetween,S=-p,w=0,A=0;if(typeof v>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*v:typeof y=="string"&&(y=parseFloat(y)),t.virtualSize=-y-p-g,c.forEach(R=>{s?R.style.marginLeft="":R.style.marginRight="",R.style.marginBottom="",R.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(Ci(n,"--swiper-centered-offset-before",""),Ci(n,"--swiper-centered-offset-after",""));let P=r.grid&&r.grid.rows>1&&t.grid;P?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let _,L=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(R=>typeof r.breakpoints[R].slidesPerView<"u").length>0;for(let R=0;R<u;R+=1){_=0;let D=c[R];if(!(D&&(P&&t.grid.updateSlide(R,D,c),pn(D,"display")==="none"))){if(o&&r.slidesPerView==="auto")r.virtual.slidesPerViewAutoSlideSize&&(_=r.virtual.slidesPerViewAutoSlideSize),_&&D&&(r.roundLengths&&(_=Math.floor(_)),D.style[t.getDirectionLabel("width")]=`${_}px`);else if(r.slidesPerView==="auto"){L&&(D.style[t.getDirectionLabel("width")]="");let M=getComputedStyle(D),O=D.style.transform,z=D.style.webkitTransform;if(O&&(D.style.transform="none"),z&&(D.style.webkitTransform="none"),r.roundLengths)_=t.isHorizontal()?Ka(D,"width",!0):Ka(D,"height",!0);else{let V=e(M,"width"),T=e(M,"padding-left"),k=e(M,"padding-right"),x=e(M,"margin-left"),C=e(M,"margin-right"),B=M.getPropertyValue("box-sizing");if(B&&B==="border-box")_=V+x+C;else{let{clientWidth:N,offsetWidth:Y}=D;_=V+T+k+x+C+(Y-N)}}O&&(D.style.transform=O),z&&(D.style.webkitTransform=z),r.roundLengths&&(_=Math.floor(_))}else _=(v-(r.slidesPerView-1)*y)/r.slidesPerView,r.roundLengths&&(_=Math.floor(_)),D&&(D.style[t.getDirectionLabel("width")]=`${_}px`);D&&(D.swiperSlideSize=_),h.push(_),r.centeredSlides?(S=S+_/2+w/2+y,w===0&&R!==0&&(S=S-v/2-y),R===0&&(S=S-v/2-y),Math.abs(S)<1/1e3&&(S=0),r.roundLengths&&(S=Math.floor(S)),A%r.slidesPerGroup===0&&d.push(S),f.push(S)):(r.roundLengths&&(S=Math.floor(S)),(A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup===0&&d.push(S),f.push(S),S=S+_+y),t.virtualSize+=_+y,w=_,A+=1}}if(t.virtualSize=Math.max(t.virtualSize,v)+g,s&&a&&(r.effect==="slide"||r.effect==="coverflow")&&(n.style.width=`${t.virtualSize+y}px`),r.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+y}px`),P&&t.grid.updateWrapperSize(_,d),!r.centeredSlides){let R=[];for(let D=0;D<d.length;D+=1){let M=d[D];r.roundLengths&&(M=Math.floor(M)),d[D]<=t.virtualSize-v&&R.push(M)}d=R,Math.floor(t.virtualSize-v)-Math.floor(d[d.length-1])>1&&d.push(t.virtualSize-v)}if(o&&r.loop){let R=h[0]+y;if(r.slidesPerGroup>1){let D=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup),M=R*r.slidesPerGroup;for(let O=0;O<D;O+=1)d.push(d[d.length-1]+M)}for(let D=0;D<t.virtual.slidesBefore+t.virtual.slidesAfter;D+=1)r.slidesPerGroup===1&&d.push(d[d.length-1]+R),f.push(f[f.length-1]+R),t.virtualSize+=R}if(d.length===0&&(d=[0]),y!==0){let R=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");c.filter((D,M)=>!r.cssMode||r.loop?!0:M!==c.length-1).forEach(D=>{D.style[R]=`${y}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let R=0;h.forEach(M=>{R+=M+(y||0)}),R-=y;let D=R>v?R-v:0;d=d.map(M=>M<=0?-p:M>D?D+g:M)}if(r.centerInsufficientSlides){let R=0;h.forEach(M=>{R+=M+(y||0)}),R-=y;let D=(p||0)+(g||0);if(R+D<v){let M=(v-R-D)/2;d.forEach((O,z)=>
vendor: 4,238 bytes, line 39
39{d[z]=O-M}),f.forEach((O,z)=>{f[z]=O+M})}}if(Object.assign(t,{slides:c,snapGrid:d,slidesGrid:f,slidesSizesGrid:h}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){Ci(n,"--swiper-centered-offset-before",`${-d[0]}px`),Ci(n,"--swiper-centered-offset-after",`${t.size/2-h[h.length-1]/2}px`);let R=-t.snapGrid[0],D=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(M=>M+R),t.slidesGrid=t.slidesGrid.map(M=>M+D)}if(u!==l&&t.emit("slidesLengthChange"),d.length!==E&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==m&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!o&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){let R=`${r.containerModifierClass}backface-hidden`,D=t.el.classList.contains(R);u<=r.maxBackfaceHiddenSlides?D||t.el.classList.add(R):D&&t.el.classList.remove(R)}}function m_(t){let e=this,r=[],n=e.virtual&&e.params.virtual.enabled,i=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);let a=o=>n?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{r.push(o)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){let o=e.activeIndex+s;if(o>e.slides.length&&!n)break;r.push(a(o))}else r.push(a(e.activeIndex));for(s=0;s<r.length;s+=1)if(typeof r[s]<"u"){let o=r[s].offsetHeight;i=o>i?o:i}(i||i===0)&&(e.wrapperEl.style.height=`${i}px`)}function g_(){let t=this,e=t.slides,r=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-r-t.cssOverflowAdjustment()}var Av=(t,e,r)=>{e&&!t.classList.contains(r)?t.classList.add(r):!e&&t.classList.contains(r)&&t.classList.remove(r)};function v_(t=this&&this.translate||0){let e=this,r=e.params,{slides:n,rtlTranslate:i,snapGrid:s}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;i&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=r.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l<n.length;l+=1){let c=n[l],u=c.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(u-=n[0].swiperSlideOffset);let d=(a+(r.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+o),f=(a-s[0]+(r.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+o),h=-(a-u),p=h+e.slidesSizesGrid[l],g=h>=0&&h<=e.size-e.slidesSizesGrid[l],E=h>=0&&h<e.size-1||p>1&&p<=e.size||h<=0&&p>=e.size;E&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l)),Av(c,E,r.slideVisibleClass),Av(c,g,r.slideFullyVisibleClass),c.progress=i?-d:d,c.originalProgress=i?-f:f}}function y_(t){let e=this;if(typeof t>"u"){let u=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*u||0}let r=e.params,n=e.maxTranslate()-e.minTranslate(),{progress:i,isBeginning:s,isEnd:a,progressLoop:o}=e,l=s,c=a;if(n===0)i=0,s=!0,a=!0;else{i=(t-e.minTranslate())/n;let u=Math.abs(t-e.minTranslate())<1,d=Math.abs(t-e.maxTranslate())<1;s=u||i<=0,a=d||i>=1,u&&(i=0),d&&(i=1)}if(r.loop){let u=e.getSlideIndexByData(0),d=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[u],h=e.slidesGrid[d],p=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=f?o=(g-f)/p:o=(g+p-h)/p,o>1&&(o-=1)}Object.assign(e,{progress:i,progressLoop:o,isBeginning:s,isEnd:a}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&e.updateSlidesProgress(t),s&&!l&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(l&&!s||c&&!a)&&e.emit("fromEdge"),e.emit("progress",i)}var ep=(t,e,r)=>{e&&!t.classList.contains(r)?t.classList.add(r):!e&&t.classList.contains(r)&&t.classList.remove(r)};function S_(){let t=this,{slides:e,params:r,slidesEl:n,activeIndex:i}=t,s=t.virtual&&r.virtual.enabled,a=t.grid&&r.grid&&r.grid.rows>1,o=d=>Ne(n,`.${r.slideClass}${d}, swiper-slide${d}`)[0],l,c,u;if(s)if(r.loop){let d=i-t.virtual.slidesBefore;d<0&&(d=t.virtual.slides.length+d),d>=t.virtual.slides.length&&(d-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${d}"]`)}else l=o(`[data-swiper-slide-index="${i}"]`);else a?(l=e.find(d=>d.column===i),u=e.find(d=>
vendor: 3,167 bytes, line 39
39d.column===i+1),c=e.find(d=>d.column===i-1)):l=e[i];l&&(a||(u=Tv(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!u&&(u=e[0]),c=Cv(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(d=>{ep(d,d===l,r.slideActiveClass),ep(d,d===u,r.slideNextClass),ep(d,d===c,r.slidePrevClass)}),t.emitSlidesClasses()}var vc=(t,e)=>{if(!t||t.destroyed||!t.params)return;let r=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(r());if(n){let i=n.querySelector(`.${t.params.lazyPreloaderClass}`);!i&&t.isElement&&(n.shadowRoot?i=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(i=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},tp=(t,e)=>{if(!t.slides[e])return;let r=t.slides[e].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},ip=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext,r=t.slides.length;if(!r||!e||e<0)return;e=Math.min(e,r);let n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),i=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){let a=i,o=[a-e];o.push(...Array.from({length:e}).map((l,c)=>a+n+c)),t.slides.forEach((l,c)=>{o.includes(l.column)&&tp(t,c)});return}let s=i+n-1;if(t.params.rewind||t.params.loop)for(let a=i-e;a<=s+e;a+=1){let o=(a%r+r)%r;(o<i||o>s)&&tp(t,o)}else for(let a=Math.max(i-e,0);a<=Math.min(s+e,r-1);a+=1)a!==i&&(a>s||a<i)&&tp(t,a)};function E_(t){let{slidesGrid:e,params:r}=t,n=t.rtlTranslate?t.translate:-t.translate,i;for(let s=0;s<e.length;s+=1)typeof e[s+1]<"u"?n>=e[s]&&n<e[s+1]-(e[s+1]-e[s])/2?i=s:n>=e[s]&&n<e[s+1]&&(i=s+1):n>=e[s]&&(i=s);return r.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function x_(t){let e=this,r=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:i,activeIndex:s,realIndex:a,snapIndex:o}=e,l=t,c,u=h=>{let p=h-e.virtual.slidesBefore;return p<0&&(p=e.virtual.slides.length+p),p>=e.virtual.slides.length&&(p-=e.virtual.slides.length),p};if(typeof l>"u"&&(l=E_(e)),n.indexOf(r)>=0)c=n.indexOf(r);else{let h=Math.min(i.slidesPerGroupSkip,l);c=h+Math.floor((l-h)/i.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),l===s&&!e.params.loop){c!==o&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===s&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=u(l);return}let d=e.grid&&i.grid&&i.grid.rows>1,f;if(e.virtual&&i.virtual.enabled&&i.loop)f=u(l);else if(d){let h=e.slides.find(g=>g.column===l),p=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(p)&&(p=Math.max(e.slides.indexOf(h),0)),f=Math.floor(p/i.grid.rows)}else if(e.slides[l]){let h=e.slides[l].getAttribute("data-swiper-slide-index");h?f=parseInt(h,10):f=l}else f=l;Object.assign(e,{previousSnapIndex:o,snapIndex:c,previousRealIndex:a,realIndex:f,previousIndex:s,activeIndex:l}),e.initialized&&ip(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function b_(t,e){let r=this,n=r.params,i=t.closest(`.${n.slideClass}, swiper-slide`);!i&&r.isElement&&e&&e.length>
vendor: 13,681 bytes, line 39
391&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!i&&o.matches&&o.matches(`.${n.slideClass}, swiper-slide`)&&(i=o)});let s=!1,a;if(i){for(let o=0;o<r.slides.length;o+=1)if(r.slides[o]===i){s=!0,a=o;break}}if(i&&s)r.clickedSlide=i,r.virtual&&r.params.virtual.enabled?r.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):r.clickedIndex=a;else{r.clickedSlide=void 0,r.clickedIndex=void 0;return}n.slideToClickedSlide&&r.clickedIndex!==void 0&&r.clickedIndex!==r.activeIndex&&r.slideToClickedSlide()}var w_={updateSize:f_,updateSlides:d_,updateAutoHeight:m_,updateSlidesOffset:g_,updateSlidesProgress:v_,updateProgress:y_,updateSlidesClasses:S_,updateActiveIndex:x_,updateClickedSlide:b_};function C_(t=this.isHorizontal()?"x":"y"){let e=this,{params:r,rtlTranslate:n,translate:i,wrapperEl:s}=e;if(r.virtualTranslate)return n?-i:i;if(r.cssMode)return i;let a=Qa(s,t);return a+=e.cssOverflowAdjustment(),n&&(a=-a),a||0}function T_(t,e){let r=this,{rtlTranslate:n,params:i,wrapperEl:s,progress:a}=r,o=0,l=0,c=0;r.isHorizontal()?o=n?-t:t:l=t,i.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?o:l,i.cssMode?s[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-o:-l:i.virtualTranslate||(r.isHorizontal()?o-=r.cssOverflowAdjustment():l-=r.cssOverflowAdjustment(),s.style.transform=`translate3d(${o}px, ${l}px, ${c}px)`);let u,d=r.maxTranslate()-r.minTranslate();d===0?u=0:u=(t-r.minTranslate())/d,u!==a&&r.updateProgress(t),r.emit("setTranslate",r.translate,e)}function A_(){return-this.snapGrid[0]}function __(){return-this.snapGrid[this.snapGrid.length-1]}function k_(t=0,e=this.params.speed,r=!0,n=!0,i){let s=this,{params:a,wrapperEl:o}=s;if(s.animating&&a.preventInteractionOnTransition)return!1;let l=s.minTranslate(),c=s.maxTranslate(),u;if(n&&t>l?u=l:n&&t<c?u=c:u=t,s.updateProgress(u),a.cssMode){let d=s.isHorizontal();if(e===0)o[d?"scrollLeft":"scrollTop"]=-u;else{if(!s.support.smoothScroll)return Zh({swiper:s,targetPosition:-u,side:d?"left":"top"}),!0;o.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return e===0?(s.setTransition(0),s.setTranslate(u),r&&(s.emit("beforeTransitionStart",e,i),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(u),r&&(s.emit("beforeTransitionStart",e,i),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(f){!s||s.destroyed||f.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,r&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var P_={getTranslate:C_,setTranslate:T_,minTranslate:A_,maxTranslate:__,translateTo:k_};function I_(t,e){let r=this;r.params.cssMode||(r.wrapperEl.style.transitionDuration=`${t}ms`,r.wrapperEl.style.transitionDelay=t===0?"0ms":""),r.emit("setTransition",t,e)}function Lv({swiper:t,runCallbacks:e,direction:r,step:n}){let{activeIndex:i,previousIndex:s}=t,a=r;a||(i>s?a="next":i<s?a="prev":a="reset"),t.emit(`transition${n}`),e&&a==="reset"?t.emit(`slideResetTransition${n}`):e&&i!==s&&(t.emit(`slideChangeTransition${n}`),a==="next"?t.emit(`slideNextTransition${n}`):t.emit(`slidePrevTransition${n}`))}function M_(t=!0,e){let r=this,{params:n}=r;n.cssMode||(n.autoHeight&&r.updateAutoHeight(),Lv({swiper:r,runCallbacks:t,direction:e,step:"Start"}))}function D_(t=!0,e){let r=this,{params:n}=r;r.animating=!1,!n.cssMode&&(r.setTransition(0),Lv({swiper:r,runCallbacks:t,direction:e,step:"End"}))}var L_={setTransition:I_,transitionStart:M_,transitionEnd:D_};function N_(t=0,e,r=!0,n,i){typeof t=="string"&&(t=parseInt(t,10));let s=this,a=t;a<0&&(a=0);let{params:o,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:h,enabled:p}=s;if(!p&&!n&&!i||s.destroyed||s.animating&&o.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=s.params.speed);let g=Math.min(s.params.slidesPerGroupSkip,a),E=g+Math.floor((a-g)/s.params.slidesPerGroup);E>=l.length&&(E=l.length-1);let m=-l[E];if(o.normalizeSlideIndex)for(let P=0;P<c.length;P+=1){let _=-Math.floor(m*100),L=Math.floor(c[P]*100),R=Math.floor(c[P+1]*100);typeof c[P+1]<"u"?_>=L&&_<R-(R-L)/2?a=P:_>=L&&_<R&&(a=P+1):_>=L&&(a=P)}if(s.initialized&&a!==d&&(!s.allowSlideNext&&(f?m>s.translate&&m>s.minTranslate():m<s.translate&&m<s.minTranslate())||!s.allowSlidePrev&&m>s.translate&&m>s.maxTranslate()&&(d||0)!==a))return!1;a!==(u||0)&&r&&s.emit("beforeSlideChangeStart"),s.updateProgress(m);let v;a>d?v="next":a<d?v="prev":v="reset";let y=s.virtual&&s.params.virtual.enabled;if(!(y&&i)&&(f&&-m===s.translate||!f&&m===s.translate))return s.updateActiveIndex(a),o.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),o.effect!=="slide"&&s.setTranslate(m),v!=="reset"&&(s.transitionStart(r,v),s.transitionEnd(r,v)),!1;if(o.cssMode){let P=s.isHorizontal(),_=f?m:-m;if(e===0)y&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),y&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[P?"scrollLeft":"scrollTop"]=_})):h[P?"scrollLeft":"scrollTop"]=_,y&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return Zh({swiper:s,targetPosition:_,side:P?"left":"top"}),!0;h.scrollTo({[P?"left":"top"]:_,behavior:"smooth"})}return!0}let A=Dv().isSafari;return y&&!i&&A&&s.isElement&&s.virtual.update(!1,!1,a),s.setTransition(e),s.setTranslate(m),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(r,v),e===0?s.transitionEnd(r,v):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(_){!s||s.destroyed||_.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(r,v))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function F_(t=0,e,r=!0,n){typeof t=="string"&&(t=parseInt(t,10));let i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);let s=i.grid&&i.params.grid&&i.params.grid.rows>1,a=t;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a=a+i.virtual.slidesBefore;else{let o;if(s){let g=a*i.params.grid.rows;o=i.slides.find(E=>E.getAttribute("data-swiper-slide-index")*1===g).column}else o=i.getSlideIndexByData(a);let l=s?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:c,slidesOffsetBefore:u,slidesOffsetAfter:d}=i.params,f=c||!!u||!!d,h=i.params.slidesPerView;h==="auto"?h=i.slidesPerViewDynamic():(h=Math.ceil(parseFloat(i.params.slidesPerView,10)),f&&h%2===0&&(h=h+1));let p=l-o<h;if(f&&(p=p||o<Math.ceil(h/2)),n&&f&&i.params.slidesPerView!=="auto"&&!s&&(p=!1),p){let g=f?o<i.activeIndex?"prev":"next":o-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:g,slideTo:!0,activeSlideIndex:g==="next"?o+1:o-l+1,slideRealIndex:g==="next"?i.realIndex:void 0})}if(s){let g=a*i.params.grid.rows;a=i.slides.find(E=>E.getAttribute("data-swiper-slide-index")*1===g).column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame(()=>{i.slideTo(a,e,r,n)}),i}function B_(t,e=!0,r){let n=this,{enabled:i,params:s,animating:a}=n;if(!i||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let o=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(o=Math.max(n.slidesPerViewDynamic("current",!0),1));let l=n.activeIndex<s.slidesPerGroupSkip?1:o,c=n.virtual&&s.virtual.enabled;if(s.loop){if(a&&!c&&s.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+l,t,e,r)}),!0}return s.rewind&&n.isEnd?n.slideTo(0,t,e,r):n.slideTo(n.activeIndex+l,t,e,r)}function R_(t,e=!0,r){let n=this,{params:i,snapGrid:s,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=n;if(!l||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let u=n.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}let d=o?n.translate:-n.translate;function f(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}let h=f(d),p=s.map(v=>f(v)),g=i.freeMode&&i.freeMode.enabled,E=s[p.indexOf(h)-1];if(typeof E>"u"&&(i.cssMode||g)){let v;s.forEach((y,S)=>{h>=y&&(v=S)}),typeof v<"u"&&(E=g?s[v]:s[v>0?v-1:v])}let m=0;if(typeof E<"u"&&(m=a.indexOf(E),m<0&&(m=n.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(m=m-n.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),i.rewind&&n.isBeginning){let v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,r)}else if(i.loop&&n.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{n.slideTo(m,t,e,r)}),!0;return n.slideTo(m,t,e,r)}function O_(t,e=!0,r){let n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,r)}function $_(t,e=!0,r,n=.5){let i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);let s=i.activeIndex,a=Math.min(i.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[o]){let c=i.snapGrid[o],u=i.snapGrid[o+1];l-c>(u-c)*n&&(s+=i.params.slidesPerGroup)}else{let c=i.snapGrid[o-1],u=i.snapGrid[o];l-c<=(u-c)*n&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,t,e,r)}function V_(){let t=this;if(t.destroyed)return;let{params:e,slidesEl:r}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView,i=t.getSlideIndexWhenGrid(t.clickedIndex),s,a=t.isElement?"swiper-slide":`.${e.slideClass}`,o=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(s):i>(o?(t.slides.length-n)/2-(t.params.grid.rows-1):t.slides.length-n)?(t.loopFix(),i=t.getSlideIndex(Ne(r,`${a}[data-swiper-slide-index="${s}"]`)[0]),Xr(()=>{t.slideTo(i)})):t.slideTo(i)}else t.slideTo(i)}var z_={slideTo:N_,slideToLoop:F_,slideNext:B_,slidePrev:R_,slideReset:O_,slideToClosest:$_,slideToClickedSlide:V_};function H_(t,e){let r=this,{params:n,slidesEl:i}=r;if(!n.loop||r.virtual&&r.params.virtual.enabled)return;let s=()=>{Ne(i,`.${n.slideClass}, swiper-slide`).forEach((p,g)=>{p.setAttribute("data-swiper-slide-index",g)})},a=()=>{let h=Ne(i,`.${n.slideBlankClass}`);h.forEach(p=>{p.remove()}),h.length>0&&(r.recalcSlides(),r.updateSlides())},o=r.grid&&n.grid&&n.grid.rows>1;n.loopAddBlankSlides&&(n.slidesPerGroup>1||o)&&a();let l=n.slidesPerGroup*(o?n.grid.rows:1),c=r.slides.length%l!==0,u=o&&r.slides.length%n.grid.rows!==0,d=h=>{for(let p=0;p<h;p+=1){let g=r.isElement?He("swiper-slide",[n.slideBlankClass]):He("div",[n.slideClass,n.slideBlankClass]);r.slidesEl.append(g)}};if(c){if(n.loopAddBlankSlides){let h=l-r.slides.length%l;d(h),r.recalcSlides(),r.updateSlides()}else Ja("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(u){if(n.loopAddBlankSlides){let h=n.grid.rows-r.slides.length%n.grid.rows;d(h),r.recalcSlides(),r.updateSlides()}else Ja("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();let f=n.centeredSlides||!!n.slidesOffsetBefore||!!n.slidesOffsetAfter;r.loopFix({slideRealIndex:t,direction:f?void 0:"next",initial:e})}function G_({slideRealIndex:t,slideTo:e=!0,direction:r,setTranslate:n,activeSlideIndex:i,initial:s,byController:a,byMousewheel:o}={}){let l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");let{slides:c,allowSlidePrev:u,allowSlideNext:d,slidesEl:f,params:h}=l,{centeredSlides:p,slidesOffsetBefore:g,slidesOffsetAfter:E,initialSlide:m}=h,v=p||!!g||!!E;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled){e&&(!v&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):v&&l.snapIndex<h.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0)),l.allowSlidePrev=u,l.allowSlideNext=d,l.emit("loopFix");return}let y=h.slidesPerView;y==="auto"?y=l.slidesPerViewDynamic():(y=Math.ceil(parseFloat(h.slidesPerView,10)),v&&y%2===0&&(y=y+1));let S=h.slidesPerGroupAuto?y:h.slidesPerGroup,w=v?Math.max(S,Math.ceil(y/2)):S;w%S!==0&&(w+=S-w%S),w+=h.loopAdditionalSlides,l.loopedSlides=w;let A=l.grid&&h.grid&&h.grid.rows>1;c.length<y+w||l.params.effect==="cards"&&c.length<y+w*2?Ja("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):A&&h.grid.fill==="row"&&Ja("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let P=[],_=[],L=A?Math.ceil(c.length/h.grid.rows):c.length,R=s&&L-m<y&&!v,D=R?m:l.activeIndex;typeof i>"u"?i=l.getSlideIndex(c.find(x=>x.classList.contains(h.slideActiveClass))):D=i;let M=r==="next"||!r,O=r==="prev"||!r,z=0,V=0,k=(A?c[i].column:i)+(v&&typeof n>"u"?-y/2+.5:0);if(k<w){z=Math.max(w-k,S);for(let x=0;x<w-k;
vendor: 7,496 bytes, line 39
39x+=1){let C=x-Math.floor(x/L)*L;if(A){let B=L-C-1;for(let N=c.length-1;N>=0;N-=1)c[N].column===B&&P.push(N)}else P.push(L-C-1)}}else if(k+y>L-w){V=Math.max(k-(L-w*2),S),R&&(V=Math.max(V,y-L+m+1));for(let x=0;x<V;x+=1){let C=x-Math.floor(x/L)*L;A?c.forEach((B,N)=>{B.column===C&&_.push(N)}):_.push(C)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),l.params.effect==="cards"&&c.length<y+w*2&&(_.includes(i)&&_.splice(_.indexOf(i),1),P.includes(i)&&P.splice(P.indexOf(i),1)),O&&P.forEach(x=>{c[x].swiperLoopMoveDOM=!0,f.prepend(c[x]),c[x].swiperLoopMoveDOM=!1}),M&&_.forEach(x=>{c[x].swiperLoopMoveDOM=!0,f.append(c[x]),c[x].swiperLoopMoveDOM=!1}),l.recalcSlides(),h.slidesPerView==="auto"?l.updateSlides():A&&(P.length>0&&O||_.length>0&&M)&&l.slides.forEach((x,C)=>{l.grid.updateSlide(C,x,l.slides)}),h.watchSlidesProgress&&l.updateSlidesOffset(),e){if(P.length>0&&O){if(typeof t>"u"){let x=l.slidesGrid[D],B=l.slidesGrid[D+z]-x;o?l.setTranslate(l.translate-B):(l.slideTo(D+Math.ceil(z),0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-B,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-B))}else if(n){let x=A?P.length/h.grid.rows:P.length;l.slideTo(l.activeIndex+x,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(_.length>0&&M)if(typeof t>"u"){let x=l.slidesGrid[D],B=l.slidesGrid[D-V]-x;o?l.setTranslate(l.translate-B):(l.slideTo(D-V,0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-B,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-B))}else{let x=A?_.length/h.grid.rows:_.length;l.slideTo(l.activeIndex-x,0,!1,!0)}}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!a){let x={slideRealIndex:t,direction:r,setTranslate:n,activeSlideIndex:i,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(C=>{!C.destroyed&&C.params.loop&&C.loopFix(Pe(G({},x),{slideTo:C.params.slidesPerView===h.slidesPerView?e:!1}))}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix(Pe(G({},x),{slideTo:l.controller.control.params.slidesPerView===h.slidesPerView?e:!1}))}l.emit("loopFix")}function q_(){let t=this,{params:e,slidesEl:r}=t;if(!e.loop||!r||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();let n=[];t.slides.forEach(i=>{let s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;n[s]=i}),t.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),n.forEach(i=>{r.append(i)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var j_={loopCreate:H_,loopFix:G_,loopDestroy:q_};function W_(t){let e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;let r=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function U_(){let t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var X_={setGrabCursor:W_,unsetGrabCursor:U_};function Y_(t,e=this){function r(n){if(!n||n===Me()||n===xe())return null;n.assignedSlot&&(n=n.assignedSlot);let i=n.closest(t);return!i&&!n.getRootNode?null:i||r(n.getRootNode().host)}return r(e)}function _v(t,e,r){let n=xe(),{params:i}=t,s=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return s&&(r<=a||r>=n.innerWidth-a)?s==="prevent"?(e.preventDefault(),!0):!1:!0}function Z_(t){let e=this,r=Me(),n=t;n.originalEvent&&(n=n.originalEvent);let i=e.touchEventsData;if(n.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==n.pointerId)return;i.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(i.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){_v(e,n,n.targetTouches[0].pageX);return}let{params:s,touches:a,enabled:o}=e;if(!o||!s.simulateTouch&&n.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=n.target;if(s.touchEventsTarget==="wrapper"&&!wv(l,e.wrapperEl)||"which"in n&&n.which===3||"button"in n&&n.button>0||i.isTouched&&i.isMoved)return;let c=!!s.noSwipingClass&&s.noSwipingClass!=="",u=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&u&&(l=u[0]);let d=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(s.noSwiping&&(f?Y_(d,l):l.closest(d))){e.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;let h=a.currentX,p=a.currentY;if(!_v(e,n,h))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=p,i.touchStartTime=St(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let g=!0;l.matches(i.focusableElements)&&(g=!1,l.nodeName==="SELECT"&&(i.isTouched=!1)),r.activeElement&&r.activeElement.matches(i.focusableElements)&&r.activeElement!==l&&(n.pointerType==="mouse"||n.pointerType!=="mouse"&&!l.matches(i.focusableElements))&&r.activeElement.blur();let E=g&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||E)&&!l.isContentEditable&&n.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Q_(t){let e=Me(),r=this,n=r.touchEventsData,{params:i,touches:s,rtlTranslate:a,enabled:o}=r;if(!o||!i.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(n.touchId!==null||l.pointerId!==n.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].find(A=>A.identifier===n.touchId),!c||c.identifier!==n.touchId)return}else c=l;if(!n.isTouched){n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",l);return}let u=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){s.startX=u,s.startY=d;return}if(!r.allowTouchMove){l.target.matches(n.focusableElements)||(r.allowClick=!1),n.isTouched&&(Object.assign(s,{startX:u,startY:d,currentX:u,currentY:d}),n.touchStartTime=St());return}if(i.touchReleaseOnEdges&&!i.loop)if(r.isVertical()){if(d<s.startY&&r.translate<=r.maxTranslate()||d>s.startY&&r.translate>=r.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else{if(a&&(u>s.startX&&-r.translate<=r.maxTranslate()||u<s.startX&&-r.translate>=r.minTranslate()))return;if(!a&&(u<s.startX&&r.translate<=r.maxTranslate()||u>s.startX&&r.translate>=r.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(n.focusableElements)){n.isMoved=!0,r.allowClick=!1;return}n.allowTouchCallbacks&&r.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=u,s.currentY=d;let f=s.currentX-s.startX,h=s.currentY-s.startY;if(r.params.threshold&&Math.sqrt(f**2+h**2)<r.params.threshold)return;if(typeof n.isScrolling>"u"){let A;r.isHorizontal()&&s.currentY===s.startY||r.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:f*f+h*h>=25&&(A=Math.atan2(Math.abs(h),Math.abs(f))*180/Math.PI,n.isScrolling=r.isH
vendor: 11,523 bytes, line 39
39orizontal()?A>i.touchAngle:90-A>i.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(n.startMoving=!0),n.isScrolling||l.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;r.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let p=r.isHorizontal()?f:h,g=r.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(p=Math.abs(p)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),s.diff=p,p*=i.touchRatio,a&&(p=-p,g=-g);let E=r.touchesDirection;r.swipeDirection=p>0?"prev":"next",r.touchesDirection=g>0?"prev":"next";let m=r.params.loop&&!i.cssMode,v=r.touchesDirection==="next"&&r.allowSlideNext||r.touchesDirection==="prev"&&r.allowSlidePrev;if(!n.isMoved){if(m&&v&&r.loopFix({direction:r.swipeDirection}),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){let A=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent(A)}n.allowMomentumBounce=!1,i.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",l)}let y;if(new Date().getTime(),i._loopSwapReset!==!1&&n.isMoved&&n.allowThresholdMove&&E!==r.touchesDirection&&m&&v&&Math.abs(p)>=1){Object.assign(s,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}r.emit("sliderMove",l),n.isMoved=!0,n.currentTranslate=p+n.startTranslate;let S=!0,w=i.resistanceRatio;if(i.touchReleaseOnEdges&&(w=0),p>0?(m&&v&&!y&&n.allowThresholdMove&&n.currentTranslate>(i.centeredSlides?r.minTranslate()-r.slidesSizesGrid[r.activeIndex+1]-(i.slidesPerView!=="auto"&&r.slides.length-i.slidesPerView>=2?r.slidesSizesGrid[r.activeIndex+1]+r.params.spaceBetween:0)-r.params.spaceBetween:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>r.minTranslate()&&(S=!1,i.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+p)**w))):p<0&&(m&&v&&!y&&n.allowThresholdMove&&n.currentTranslate<(i.centeredSlides?r.maxTranslate()+r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween+(i.slidesPerView!=="auto"&&r.slides.length-i.slidesPerView>=2?r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween:0):r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-(i.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),n.currentTranslate<r.maxTranslate()&&(S=!1,i.resistance&&(n.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-n.startTranslate-p)**w))),S&&(l.preventedByNestedSwiper=!0),!r.allowSlideNext&&r.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&r.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(n.currentTranslate=n.startTranslate),i.threshold>0)if(Math.abs(p)>i.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,s.diff=r.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{n.currentTranslate=n.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&r.freeMode||i.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function J_(t){let e=this,r=e.touchEventsData,n=t;n.originalEvent&&(n=n.originalEvent);let i;if(n.type==="touchend"||n.type==="touchcancel"){if(i=[...n.changedTouches].find(w=>w.identifier===r.touchId),!i||i.identifier!==r.touchId)return}else{if(r.touchId!==null||n.pointerId!==r.pointerId)return;i=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;r.pointerId=null,r.touchId=null;let{params:a,touches:o,rtlTranslate:l,slidesGrid:c,enabled:u}=e;if(!u||!a.simulateTouch&&n.pointerType==="mouse")return;if(r.allowTouchCallbacks&&e.emit("touchEnd",n),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&a.grabCursor&&e.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}a.grabCursor&&r.isMoved&&r.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);let d=St(),f=d-r.touchStartTime;if(e.allowClick){let w=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(w&&w[0]||n.target,w),e.emit("tap click",n),f<300&&d-r.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(r.lastClickTime=St(),Xr(()=>{e.destroyed||(e.allowClick=!0)}),!r.isTouched||!r.isMoved||!e.swipeDirection||o.diff===0&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let h;if(a.followFinger?h=l?e.translate:-e.translate:h=-r.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:h});return}let p=h>=-e.maxTranslate()&&!e.params.loop,g=0,E=e.slidesSizesGrid[0];for(let w=0;w<c.length;w+=w<a.slidesPerGroupSkip?1:a.slidesPerGroup){let A=w<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[w+A]<"u"?(p||h>=c[w]&&h<c[w+A])&&(g=w,E=c[w+A]-c[w]):(p||h>=c[w])&&(g=w,E=c[c.length-1]-c[c.length-2])}let m=null,v=null;a.rewind&&(e.isBeginning?v=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(m=0));let y=(h-c[g])/E,S=g<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(y>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?m:g+S):e.slideTo(g)),e.swipeDirection==="prev"&&(y>1-a.longSwipesRatio?e.slideTo(g+S):v!==null&&y<0&&Math.abs(y)>a.longSwipesRatio?e.slideTo(v):e.slideTo(g))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(g+S):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(m!==null?m:g+S),e.swipeDirection==="prev"&&e.slideTo(v!==null?v:g))}}function kv(){let t=this,{params:e,el:r}=t;if(r&&r.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();let{allowSlideNext:n,allowSlidePrev:i,snapGrid:s}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();let o=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=i,t.allowSlideNext=n,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function K_(t){let e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function e2(){let t=this,{wrapperEl:e,rtlTranslate:r,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let i,s=t.maxTranslate()-t.minTranslate();s===0?i=0:i=(t.translate-t.minTranslate())/s,i!==t.progress&&t.updateProgress(r?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function t2(t){let e=this;vc(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function r2(){let t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}var Nv=(t,e)=>{let r=Me(),{params:n,el:i,wrapperEl:s,device:a}=t,o=!!n.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;!i||typeof i=="string"||(r[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),i[l]("touchstart",t.onTouchStart,{passive:!1}),i[l]("pointerdown",t.onTouchStart,{passive:!1}),r[l]("touchmove",t.onTouchMove,{passive:!1,capture:o}),r[l]("pointermove",t.onTouchMove,{passive:!1,capture:o}),r[l]("touchend",t.onTouchEnd,{passive:!0}),r[l]("pointerup",t.onTouchEnd,{passive:!0}),r[l]("pointercancel",t.onTouchEnd,{passive:!0}),r[l]("touchcancel",t.onTouchEnd,{passive:!0}),r[l]("pointerout",t.onTouchEnd,{passive:!0}),r[l]("pointerleave",t.onTouchEnd,{passive:!0}),r[l]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[l]("click",t.onClick,!0),n.cssMode&&s[l]("scroll",t.onScroll),n.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",kv,!0):t[c]("observerUpdate",kv,!0),i[l]("load",t.onLoad,{capture:!0}))};function n2(){let t=this,{params:e}=t;t.onTouchStart=Z_.bind(t),t.onTouchMove=Q_.bind(t),t.onTouchEnd=J_.bind(t),t.onDocumentTouchStart=r2.bind(t),e.cssMode&&(t.onScroll=e2.bind(t)),t.onClick=K_.bind(t),t.onLoad=t2.bind(t),Nv(t,"on")}function i2(){Nv(this,"off")}var s2={attachEvents:n2,detachEvents:i2},Pv=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function a2(){let t=this,{realIndex:e,initialized:r,params:n,el:i}=t,s=n.breakpoints;if(!s||s&&Object.keys(s).length===0)return;let a=Me(),o=n.breakpointsBase==="window"||!n.breakpointsBase?n.breakpointsBase:"container",l=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?t.el:a.querySelector(n.breakpointsBase),c=t.getBreakpoint(s,o,l);if(!c||t.currentBreakpoint===c)return;let d=(c in s?s[c]:void 0)||t.originalParams,f=Pv(t,n),h=Pv(t,d),p=t.params.grabCursor,g=d.grabCursor,E=n.enabled;f&&!h?(i.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!f&&h&&(i.classList.add(`${n.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&n.grid.fill==="column")&&i.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),p&&!g?t.unsetGrabCursor():!p&&g&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof d[A]>"u")return;let P=n[A]&&n[A].enabled,_=d[A]&&d[A].enabled;P&&!_&&t[A].disable(),!P&&_&&t[A].enable()});let m=d.direction&&d.direction!==n.direction,v=n.loop&&(d.slidesPerView!==n.slidesPerView||m),y=n.loop;m&&r&&t.changeDirection(),Mt(t.params,d);let S=t.params.enabled,w=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),E&&!S?t.disable():!E&&S&&t.enable(),t.currentBreakpoint=c,t.emit("_beforeBreakpoint",d),r&&(v?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!y&&w?(t.loopCreate(e),t.updateSlides()):y&&!w&&t.loopDestroy()),t.emit("breakpoint",d)}function o2(t,e="window",r){if(!t||e==="container"&&!r)return;let n=!1,i=xe(),s=e==="window"?i.innerHeight:r.clientHeight,a=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){let l=parseFloat(o.substr(1));return{value:s*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>
vendor: 4,639 bytes, line 39
39parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o<a.length;o+=1){let{point:l,value:c}=a[o];e==="window"?i.matchMedia(`(min-width: ${c}px)`).matches&&(n=l):c<=r.clientWidth&&(n=l)}return n||"max"}var l2={setBreakpoint:a2,getBreakpoint:o2};function c2(t,e){let r=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(i=>{n[i]&&r.push(e+i)}):typeof n=="string"&&r.push(e+n)}),r}function u2(){let t=this,{classNames:e,params:r,rtl:n,el:i,device:s}=t,a=c2(["initialized",r.direction,{"free-mode":t.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);e.push(...a),i.classList.add(...e),t.emitContainerClasses()}function h2(){let t=this,{el:e,classNames:r}=t;!e||typeof e=="string"||(e.classList.remove(...r),t.emitContainerClasses())}var p2={addClasses:u2,removeClasses:h2};function f2(){let t=this,{isLocked:e,params:r}=t,{slidesOffsetBefore:n}=r;if(n){let i=t.slides.length-1,s=t.slidesGrid[i]+t.slidesSizesGrid[i]+n*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;r.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),r.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var d2={checkOverflow:f2},yc={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function m2(t,e){return function(n={}){let i=Object.keys(n)[0],s=n[i];if(typeof s!="object"||s===null){Mt(e,n);return}if(t[i]===!0&&(t[i]={enabled:!0}),i==="navigation"&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),!(i in t&&"enabled"in s)){Mt(e,n);return}typeof t[i]=="object"&&!("enabled"in t[i])&&(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),Mt(e,n)}}var rp={eventsEmitter:p_,update:w_,translate:P_,transition:L_,slide:z_,loop:j_,grabCursor:X_,events:s2,breakpoints:l2,checkOverflow:d2,classes:p2},np={},Gn=class t{constructor(...e){let r,n;e.length===1&&e[0].constructor&&Object.prototype.toString.call(e[0]).slice(8,-1)==="Object"?n=e[0]:[r,n]=e,n||(n={}),n=Mt({},n),r&&!n.el&&(n.el=r);let i=Me();if(n.el&&typeof n.el=="string"&&i.querySelectorAll(n.el).length>1){let l=[];return i.querySelectorAll(n.el).forEach(c=>{let u=Mt({},n,{el:c});l.push(new t(u))}),l}let s=this;s.__swiper__=!0,s.support=Iv(),s.device=Mv({userAgent:n.userAgent}),s.browser=Dv(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],n.modules&&Array.isArray(n.modules)&&s.modules.push(...n.modules);let a={};
vendor: 8,220 bytes, line 39
39s.modules.forEach(l=>{l({params:n,swiper:s,extendParams:m2(n,a),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});let o=Mt({},yc,a);return s.params=Mt({},o,np,n),s.originalParams=Mt({},s.params),s.passedParams=Mt({},n),s.params&&s.params.on&&Object.keys(s.params.on).forEach(l=>{s.on(l,s.params.on[l])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:r,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){let{slidesEl:r,params:n}=this,i=Ne(r,`.${n.slideClass}, swiper-slide`),s=Vn(i[0]);return Vn(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(r=>r.getAttribute("data-swiper-slide-index")*1===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill==="row"&&(e=e%Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let e=this,{slidesEl:r,params:n}=e;e.slides=Ne(r,`.${n.slideClass}, swiper-slide`)}enable(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){let e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,r){let n=this;e=Math.min(Math.max(e,0),1);let i=n.minTranslate(),a=(n.maxTranslate()-i)*e+i;n.translateTo(a,typeof r>"u"?0:r),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let r=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",r.join(" "))}getSlideClasses(e){let r=this;return r.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let r=[];e.slides.forEach(n=>{let i=e.getSlideClasses(n);r.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)}),e.emit("_slideClasses",r)}slidesPerViewDynamic(e="current",r=!1){let n=this,{params:i,slides:s,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:c}=n,u=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let d=s[c]?Math.ceil(s[c].swiperSlideSize):0,f;for(let h=c+1;h<s.length;h+=1)s[h]&&!f&&(d+=Math.ceil(s[h].swiperSlideSize),u+=1,d>l&&(f=!0));for(let h=c-1;h>=0;h-=1)s[h]&&!f&&(d+=s[h].swiperSlideSize,u+=1,d>l&&(f=!0))}else if(e==="current")for(let d=c+1;d<s.length;d+=1)(r?a[d]+o[d]-a[c]<l:a[d]-a[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)a[c]-a[d]<l&&(u+=1);return u}update(){let e=this;if(!e||e.destroyed)return;let{snapGrid:r,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&vc(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function i(){let a=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){let a=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(a.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}n.watchOverflow&&r!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,r=!0){let n=this,i=n.params.direction;return e||(e=i==="horizontal"?"vertical":"horizontal"),e===i||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),n.emit("changeDirection"),r&&n.update()),n}changeLanguageDirection(e){let r=this;r.rtl&&e==="rtl"||!r.rtl&&e==="ltr"||(r.rtl=e==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.el.classList.add(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.el.classList.remove(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(e){let r=this;if(r.mounted)return!0;let n=e||r.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=r,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===r.params.swiperElementNodeName.toUpperCase()&&(r.isElement=!0);let i=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`,a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):Ne(n,i())[0];return!a&&r.params.createElements&&(a=He("div",r.params.wrapperClass),n.append(a),Ne(n,`.${r.params.slideClass}`).forEach(o=>{a.append(o)})),Object.assign(r,{el:n,wrapperEl:a,slidesEl:r.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:r.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||pn(n,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||pn(n,"direction")==="rtl"),wrongRTL:pn(a,"display")==="-webkit-box"}),!0}init(e){let r=this;if(r.initialized||r.mount(e)===!1)return r;r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.loop&&r.virtual&&r.params.virtual.enabled?r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.params.loop&&r.loopCreate(void 0,!0),r.attachEvents();let i=[...r.el.querySelectorAll('[loading="lazy"]')];return r.isElement&&i.push(...r.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(s=>{s.complete?vc(r,s):s.addEventListener("load",a=>{vc(r,a.target)})}),ip(r),r.initialized=!0,ip(r),r.emit("init"),r.emit("afterInit"),r}destroy(e=!0,r=!0){let n=this,{params:i,el:s,wrapperEl:a,slides:o}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),r&&(n.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),a&&a.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(l=>{n.off(l)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),bv(n)),n.destroyed=!0),null}static extendDefaults(e){Mt(np,e)}static get extendedDefaults(){return np}static get defaults(){return yc}static installModule(e){t.prototype.__modules__||(t.prototype.__modules__=[]);let r=t.prototype.__modules__;typeof e=="function"&&r.indexOf(e)<0&&r.push(e)}static use(e){return Array.isArray(e)?(e.forEach(r=>t.installModule(r)),t):(t.installModule(e),t)}};
vendor: 7,801 bytes, line 39
39Object.keys(rp).forEach(t=>{Object.keys(rp[t]).forEach(e=>{Gn.prototype[e]=rp[t][e]})});Gn.use([u_,h_]);function Fv({swiper:t,extendParams:e,on:r,emit:n}){e({virtual:{enabled:!1,slides:[],cache:!0,slidesPerViewAutoSlideSize:320,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let i,s=Me();t.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};let a=s.createElement("div");function o(h,p){let g=t.params.virtual;if(g.cache&&t.virtual.cache[p])return t.virtual.cache[p];let E;return g.renderSlide?(E=g.renderSlide.call(t,h,p),typeof E=="string"&&(Ge(a,E),E=a.children[0])):t.isElement?E=He("swiper-slide"):E=He("div",t.params.slideClass),E.setAttribute("data-swiper-slide-index",p),g.renderSlide||Ge(E,h),g.cache&&(t.virtual.cache[p]=E),E}function l(h,p,g){let{slidesPerGroup:E,centeredSlides:m,slidesPerView:v,loop:y,initialSlide:S}=t.params;if(p&&!y&&S>0)return;let{addSlidesBefore:w,addSlidesAfter:A,slidesPerViewAutoSlideSize:P}=t.params.virtual,{from:_,to:L,slides:R,slidesGrid:D,offset:M}=t.virtual;t.params.cssMode||t.updateActiveIndex();let O=typeof g>"u"?t.activeIndex||0:g,z;t.rtlTranslate?z="right":z=t.isHorizontal()?"left":"top";let V;if(v==="auto")if(P){let X=t.size;X||(X=t.isHorizontal()?t.el.getBoundingClientRect().width:t.el.getBoundingClientRect().height),V=Math.max(1,Math.ceil(X/P))}else V=1;else V=v;let T,k;m?(T=Math.floor(V/2)+E+A,k=Math.floor(V/2)+E+w):(T=V+(E-1)+A,k=(y?V:E)+w);let x=O-k,C=O+T;y||(x=Math.max(x,0),C=Math.min(C,R.length-1));let B=(t.slidesGrid[x]||0)-(t.slidesGrid[0]||0);y&&O>=k?(x-=k,m||(B+=t.slidesGrid[0])):y&&O<k&&(x=-k,m&&(B+=t.slidesGrid[0])),Object.assign(t.virtual,{from:x,to:C,offset:B,slidesGrid:t.slidesGrid,slidesBefore:k,slidesAfter:T});function N(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),n("virtualUpdate")}if(_===x&&L===C&&!h){t.slidesGrid!==D&&B!==M&&t.slides.forEach(X=>{X.style[z]=`${B-Math.abs(t.cssOverflowAdjustment())}px`}),t.updateProgress(),n("virtualUpdate");return}if(t.params.virtual.renderExternal){t.params.virtual.renderExternal.call(t,{offset:B,from:x,to:C,slides:(function(){let ie=[];for(let _e=x;_e<=C;_e+=1)ie.push(R[_e]);return ie})()}),t.params.virtual.renderExternalUpdate?N():n("virtualUpdate");return}let Y=[],ee=[],H=X=>{let ie=X;return X<0?ie=R.length+X:ie>=R.length&&(ie=ie-R.length),ie};if(h)t.slides.filter(X=>X.matches(`.${t.params.slideClass}, swiper-slide`)).forEach(X=>{X.remove()});else for(let X=_;X<=L;X+=1)if(X<x||X>C){let ie=H(X);t.slides.filter(_e=>_e.matches(`.${t.params.slideClass}[data-swiper-slide-index="${ie}"], swiper-slide[data-swiper-slide-index="${ie}"]`)).forEach(_e=>{_e.remove()})}let U=y?-R.length:0,W=y?R.length*2:R.length;for(let X=U;X<W;X+=1)if(X>=x&&X<=C){let ie=H(X);typeof L>"u"||h?ee.push(ie):(X>L&&ee.push(ie),X<_&&Y.push(ie))}if(ee.forEach(X=>{t.slidesEl.append(o(R[X],X))}),y)for(let X=Y.length-1;X>=0;X-=1){let ie=Y[X];t.slidesEl.prepend(o(R[ie],ie))}else Y.sort((X,ie)=>ie-X),Y.forEach(X=>{t.slidesEl.prepend(o(R[X],X))});Ne(t.slidesEl,".swiper-slide, swiper-slide").forEach(X=>{X.style[z]=`${B-Math.abs(t.cssOverflowAdjustment())}px`}),N()}function c(h){if(typeof h=="object"&&"length"in h)for(let p=0;p<h.length;p+=1)h[p]&&t.virtual.slides.push(h[p]);else t.virtual.slides.push(h);l(!0)}function u(h){let p=t.activeIndex,g=p+1,E=1;if(Array.isArray(h)){for(let m=0;m<h.length;m+=1)h[m]&&t.virtual.slides.unshift(h[m]);g=p+h.length,E=h.length}else t.virtual.slides.unshift(h);if(t.params.virtual.cache){let m=t.virtual.cache,v={};Object.keys(m).forEach(y=>{let S=m[y],w=S.getAttribute("data-swiper-slide-index");w&&S.setAttribute("data-swiper-slide-index",parseInt(w,10)+E),v[parseInt(y,10)+E]=S}),t.virtual.cache=v}l(!0),t.slideTo(g,0)}function d(h){if(typeof h>"u"||h===null)return;let p=t.activeIndex;if(Array.isArray(h))for(let g=h.length-1;g>=0;g-=1)t.params.virtual.cache&&(delete t.virtual.cache[h[g]],Object.keys(t.virtual.cache).forEach(E=>{E>h&&(t.virtual.cache[E-1]=t.virtual.cache[E],t.virtual.cache[E-1].setAttribute("data-swiper-slide-index",E-1),delete t.virtual.cache[E])})),t.virtual.slides.splice(h[g],1),h[g]<p&&(p-=1),p=Math.max(p,0);else t.params.virtual.cache&&(delete t.virtual.cache[h],Object.keys(t.virtual.cache).forEach(g=>{g>h&&(t.virtual.cache[g-1]=t.virtual.cache[g],t.virtual.cache[g-1].setAttribute("data-swiper-slide-index",g-1),delete t.virtual.cache[g])})),t.virtual.slides.splice(h,1),h<p&&(p-=1),p=Math.max(p,0);l(!0),t.slideTo(p,0)}function f(){t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),l(!0),t.slideTo(0,0)}r("beforeInit",()=>{if(!t.params.virtual.enabled)return;let h;if(typeof t.passedParams.virtual.slides>"u"){let p=[...t.slidesEl.children].filter(g=>g.matches(`.${t.params.slideClass}, swiper-slide`));p&&p.length&&(t.virtual.slides=[...p],h=!0,p.forEach((g,E)=>{g.setAttribute("data-swiper-slide-index",E),t.virtual.cache[E]=g,g.remove()}))}h||(t.virtual.slides=t.params.virtual.slides),t.classNames.push(`${t.params.containerModifierClass}virtual`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0,l(!1,!0)}),r("setTranslate",()=>{t.params.virtual.enabled&&(t.params.cssMode&&!t._immediateVirtual?(clearTimeout(i),i=setTimeout(()=>{l()},100)):l())}),r("init update resize",()=>{t.params.virtual.enabled&&t.params.cssMode&&Ci(t.wrapperEl,"--swiper-virtual-size",`${t.virtualSize}px`)}),Object.assign(t.virtual,{appendSlide:c,prependSlide:u,removeSlide:d,removeAllSlides:f,update:l})}function Bv({swiper:t,extendParams:e,on:r,emit:n}){let i=Me(),s=xe();t.keyboard={enabled:!1},e({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function a(c){if(!t.enabled)return;let{rtlTranslate:u}=t,d=c;d.originalEvent&&(d=d.originalEvent);let f=d.keyCode||d.charCode,h=t.params.keyboard.pageUpDown,p=h&&f===33,g=h&&f===34,E=f===37,m=f===39,v=f===38,y=f===40;if(!t.allowSlideNext&&(t.isHorizontal()&&m||t.isVertical()&&y||g)||!t.allowSlidePrev&&(t.isHorizontal()&&E||t.isVertical()&&v||p))return!1;if(!(d.shiftKey||d.altKey||d.ctrlKey||d.metaKey)&&!(i.activeElement&&(i.activeElement.isContentEditable||i.activeElement.nodeName&&(i.activeElement.nodeName.toLowerCase()==="input"||i.activeElement.nodeName.toLowerCase()==="textarea")))){if(t.params.keyboard.onlyInViewport&&(p||g||E||m||v||y)){let S=!1;if(_r(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&_r(t.el,`.${t.params.slideActiveClass}`).length===0)return;let w=t.el,A=w.clientWidth,P=w.clientHeight,_=s.innerWidth,L=s.innerHeight,R=Ti(w);u&&(R.left-=w.scrollLeft);let D=[[R.left,R.top],[R.left+A,R.top],[R.left,R.top+P],[R.left+A,R.top+P]];for(let M=0;M<D.length;M+=1){let O=D[M];if(O[0]>=0&&O[0]<=_&&O[1]>=0&&O[1]<=L){if(O[0]===0&&O[1]===0)continue;S=!0}}if(!S)return}t.isHorizontal()?((p||g||E||m)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),((g||m)&&!u||(p||E)&&u)&&t.slideNext(),((p||E)&&!u||(g||m)&&u)&&t.slidePrev()):((p||g||v||y)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),(g||y)&&t.slideNext(),(p||v)&&t.slidePrev()),n("keyPress",f)}}function o(){t.keyboard.enabled||(i.addEventListener("keydown",a),t.keyboard.enabled=!0)}function l(){t.keyboard.enabled&&(i.removeEventListener("keydown",a),t.keyboard.enabled=!1)}r("init",()=>{t.params.keyboard.enabled&&o()}),r("destroy",()=>{t.keyboard.enabled&&l()}),Object.assign(t.keyboard,{enable:o,disable:l})}function Rv({swiper:t,extendParams:e,on:r,emit:n}){let i=xe();e({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let s,a=St(),o,l=[];function c(v){let A=0,P=0,_=0,L=0;return"detail"in v&&(P=v.detail),"wheelDelta"in v&&(P=-v.wheelDelta/120),"wheelDeltaY"in v&&(P=-v.wheelDeltaY/120
vendor: 4,327 bytes, line 39
39),"wheelDeltaX"in v&&(A=-v.wheelDeltaX/120),"axis"in v&&v.axis===v.HORIZONTAL_AXIS&&(A=P,P=0),_=A*10,L=P*10,"deltaY"in v&&(L=v.deltaY),"deltaX"in v&&(_=v.deltaX),v.shiftKey&&!_&&(_=L,L=0),(_||L)&&v.deltaMode&&(v.deltaMode===1?(_*=40,L*=40):(_*=800,L*=800)),_&&!A&&(A=_<1?-1:1),L&&!P&&(P=L<1?-1:1),{spinX:A,spinY:P,pixelX:_,pixelY:L}}function u(){t.enabled&&(t.mouseEntered=!0)}function d(){t.enabled&&(t.mouseEntered=!1)}function f(v){return t.params.mousewheel.thresholdDelta&&v.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&St()-a<t.params.mousewheel.thresholdTime?!1:v.delta>=6&&St()-a<60?!0:(v.direction<0?(!t.isEnd||t.params.loop)&&!t.animating&&(t.slideNext(),n("scroll",v.raw)):(!t.isBeginning||t.params.loop)&&!t.animating&&(t.slidePrev(),n("scroll",v.raw)),a=new i.Date().getTime(),!1)}function h(v){let y=t.params.mousewheel;if(v.direction<0){if(t.isEnd&&!t.params.loop&&y.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&y.releaseOnEdges)return!0;return!1}function p(v){let y=v,S=!0;if(!t.enabled||v.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;let w=t.params.mousewheel;t.params.cssMode&&y.preventDefault();let A=t.el;t.params.mousewheel.eventsTarget!=="container"&&(A=document.querySelector(t.params.mousewheel.eventsTarget));let P=A&&A.contains(y.target);if(!t.mouseEntered&&!P&&!w.releaseOnEdges)return!0;y.originalEvent&&(y=y.originalEvent);let _=0,L=t.rtlTranslate?-1:1,R=c(y);if(w.forceToAxis)if(t.isHorizontal())if(Math.abs(R.pixelX)>Math.abs(R.pixelY))_=-R.pixelX*L;else return!0;else if(Math.abs(R.pixelY)>Math.abs(R.pixelX))_=-R.pixelY;else return!0;else _=Math.abs(R.pixelX)>Math.abs(R.pixelY)?-R.pixelX*L:-R.pixelY;if(_===0)return!0;w.invert&&(_=-_);let D=t.getTranslate()+_*w.sensitivity;if(D>=t.minTranslate()&&(D=t.minTranslate()),D<=t.maxTranslate()&&(D=t.maxTranslate()),S=t.params.loop?!0:!(D===t.minTranslate()||D===t.maxTranslate()),S&&t.params.nested&&y.stopPropagation(),!t.params.freeMode||!t.params.freeMode.enabled){let M={time:St(),delta:Math.abs(_),direction:Math.sign(_),raw:v};l.length>=2&&l.shift();let O=l.length?l[l.length-1]:void 0;if(l.push(M),O?(M.direction!==O.direction||M.delta>O.delta||M.time>O.time+150)&&f(M):f(M),h(M))return!0}else{let M={time:St(),delta:Math.abs(_),direction:Math.sign(_)},O=o&&M.time<o.time+500&&M.delta<=o.delta&&M.direction===o.direction;if(!O){o=void 0;let z=t.getTranslate()+_*w.sensitivity,V=t.isBeginning,T=t.isEnd;if(z>=t.minTranslate()&&(z=t.minTranslate()),z<=t.maxTranslate()&&(z=t.maxTranslate()),t.setTransition(0),t.setTranslate(z),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!V&&t.isBeginning||!T&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:M.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(s),s=void 0,l.length>=15&&l.shift();let k=l.length?l[l.length-1]:void 0,x=l[0];if(l.push(M),k&&(M.delta>k.delta||M.direction!==k.direction))l.splice(0);else if(l.length>=15&&M.time-x.time<500&&x.delta-M.delta>=1&&M.delta<=6){let C=_>0?.8:.2;o=M,l.splice(0),s=Xr(()=>{t.destroyed||!t.params||t.slideToClosest(t.params.speed,!0,void 0,C)},0)}s||(s=Xr(()=>{if(t.destroyed||!t.params)return;let C=.5;o=M,l.splice(0),t.slideToClosest(t.params.speed,!0,void 0,C)},500))}if(O||n("scroll",y),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),w.releaseOnEdges&&(z===t.minTranslate()||z===t.maxTranslate()))return!0}}return y.preventDefault?y.preventDefault():y.returnValue=!1,!1}function g(v){let y=t.el;t.params.mousewheel.eventsTarget!=="container"&&(y=document.querySelector(t.params.mousewheel.eventsTarget)),y[v]("mouseenter",u),y[v]("mouseleave",d),y[v]("wheel",p)}function E(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",p),!0):t.mousewheel.enabled?!1:(g("addEventListener"),t.mousewheel.enabled=!0,!0)}function m(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,p),!0):t.mousewheel.enabled?(g("removeEventListener"),t.mousewheel.enabled=!1,!0):!1}r("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&m(),t.params.mousewheel.enabled&&E()}),r("destroy",()=>{t.params.cssMode&&E(),t.mousewheel.enabled&&m()}),Object.assign(t.mousewheel,{enable:E,disable:m})}function ws(t,e,r,n){return t.params.createElements&&Object.keys(n).forEac
vendor: 11,127 bytes, line 39
39h(i=>{if(!r[i]&&r.auto===!0){let s=Ne(t.el,`.${n[i]}`)[0];s||(s=He("div",n[i]),s.className=n[i],t.el.append(s)),r[i]=s,e[i]=s}}),r}var Ov='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function $v({swiper:t,extendParams:e,on:r,emit:n}){e({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null,arrowSvg:Ov};function i(h){let p;return h&&typeof h=="string"&&t.isElement&&(p=t.el.querySelector(h)||t.hostEl.querySelector(h),p)?p:(h&&(typeof h=="string"&&(p=[...document.querySelectorAll(h)]),t.params.uniqueNavElements&&typeof h=="string"&&p&&p.length>1&&t.el.querySelectorAll(h).length===1?p=t.el.querySelector(h):p&&p.length===1&&(p=p[0])),h&&!p?h:p)}function s(h,p){let g=t.params.navigation;h=me(h),h.forEach(E=>{E&&(E.classList[p?"add":"remove"](...g.disabledClass.split(" ")),E.tagName==="BUTTON"&&(E.disabled=p),t.params.watchOverflow&&t.enabled&&E.classList[t.isLocked?"add":"remove"](g.lockClass))})}function a(){let{nextEl:h,prevEl:p}=t.navigation;if(t.params.loop){s(p,!1),s(h,!1);return}s(p,t.isBeginning&&!t.params.rewind),s(h,t.isEnd&&!t.params.rewind)}function o(h){h.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),n("navigationPrev"))}function l(h){h.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),n("navigationNext"))}function c(){let h=t.params.navigation;if(t.params.navigation=ws(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(h.nextEl||h.prevEl))return;let p=i(h.nextEl),g=i(h.prevEl);Object.assign(t.navigation,{nextEl:p,prevEl:g}),p=me(p),g=me(g);let E=(m,v)=>{if(m){if(h.addIcons&&m.matches(".swiper-button-next,.swiper-button-prev")&&!m.querySelector("svg")){let y=document.createElement("div");Ge(y,Ov),m.appendChild(y.querySelector("svg")),y.remove()}m.addEventListener("click",v==="next"?l:o)}!t.enabled&&m&&m.classList.add(...h.lockClass.split(" "))};p.forEach(m=>E(m,"next")),g.forEach(m=>E(m,"prev"))}function u(){let{nextEl:h,prevEl:p}=t.navigation;h=me(h),p=me(p);let g=(E,m)=>{E.removeEventListener("click",m==="next"?l:o),E.classList.remove(...t.params.navigation.disabledClass.split(" "))};h.forEach(E=>g(E,"next")),p.forEach(E=>g(E,"prev"))}r("init",()=>{t.params.navigation.enabled===!1?f():(c(),a())}),r("toEdge fromEdge lock unlock",()=>{a()}),r("destroy",()=>{u()}),r("enable disable",()=>{let{nextEl:h,prevEl:p}=t.navigation;if(h=me(h),p=me(p),t.enabled){a();return}[...h,...p].filter(g=>!!g).forEach(g=>g.classList.add(t.params.navigation.lockClass))}),r("click",(h,p)=>{let{nextEl:g,prevEl:E}=t.navigation;g=me(g),E=me(E);let m=p.target,v=E.includes(m)||g.includes(m);if(t.isElement&&!v){let y=p.path||p.composedPath&&p.composedPath();y&&(v=y.find(S=>g.includes(S)||E.includes(S)))}if(t.params.navigation.hideOnClick&&!v){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===m||t.pagination.el.contains(m)))return;let y;g.length?y=g[0].classList.contains(t.params.navigation.hiddenClass):E.length&&(y=E[0].classList.contains(t.params.navigation.hiddenClass)),n(y===!0?"navigationShow":"navigationHide"),[...g,...E].filter(S=>!!S).forEach(S=>S.classList.toggle(t.params.navigation.hiddenClass))}});let d=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),a()},f=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:d,disable:f,update:a,init:c,destroy:u})}function pr(t=""){return`.${t.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function Vv({swiper:t,extendParams:e,on:r,emit:n}){let i="swiper-pagination";e({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:m=>m,formatFractionTotal:m=>m,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),t.pagination={el:null,bullets:[]};let s,a=0;function o(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function l(m,v){let{bulletActiveClass:y}=t.params.pagination;m&&(m=m[`${v==="prev"?"previous":"next"}ElementSibling`],m&&(m.classList.add(`${y}-${v}`),m=m[`${v==="prev"?"previous":"next"}ElementSibling`],m&&m.classList.add(`${y}-${v}-${v}`)))}function c(m,v,y){if(m=m%y,v=v%y,v===m+1)return"next";if(v===m-1)return"previous"}function u(m){let v=m.target.closest(pr(t.params.pagination.bulletClass));if(!v)return;m.preventDefault();let y=Vn(v)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===y)return;let S=c(t.realIndex,y,t.slides.length);S==="next"?t.slideNext():S==="previous"?t.slidePrev():t.slideToLoop(y)}else t.slideTo(y)}function d(){let m=t.rtl,v=t.params.pagination;if(o())return;let y=t.pagination.el;y=me(y);let S,w,A=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,P=t.params.loop?Math.ceil(A/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(w=t.previousRealIndex||0,S=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(S=t.snapIndex,w=t.previousSnapIndex):(w=t.previousIndex||0,S=t.activeIndex||0),v.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){let _=t.pagination.bullets,L,R,D;if(v.dynamicBullets&&(s=Ka(_[0],t.isHorizontal()?"width":"height",!0),y.forEach(M=>{M.style[t.isHorizontal()?"width":"height"]=`${s*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&w!==void 0&&(a+=S-(w||0),a>v.dynamicMainBullets-1?a=v.dynamicMainBullets-1:a<0&&(a=0)),L=Math.max(S-a,0),R=L+(Math.min(_.length,v.dynamicMainBullets)-1),D=(R+L)/2),_.forEach(M=>{let O=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(z=>`${v.bulletActiveClass}${z}`)].map(z=>typeof z=="string"&&z.includes(" ")?z.split(" "):z).flat();M.classList.remove(...O)}),y.length>1)_.forEach(M=>{let O=Vn(M);O===S?M.classList.add(...v.bulletActiveClass.split(" ")):t.isElement&&M.setAttribute("part","bullet"),v.dynamicBullets&&(O>=L&&O<=R&&M.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),O===L&&l(M,"prev"),O===R&&l(M,"next"))});else{let M=_[S];if(M&&M.classList.add(...v.bulletActiveClass.split(" ")),t.isElement&&_.forEach((O,z)=>{O.setAttribute("part",z===S?"bullet-active":"bullet")}),v.dynamicBullets){let O=_[L],z=_[R];for(let V=L;V<=R;V+=1)_[V]&&_[V].classList.add(...`${v.bulletActiveClass}-main`.split(" "));l(O,"prev"),l(z,"next")}}if(v.dynamicBullets){let M=Math.min(_.length,v.dynamicMainBullets+4),O=(s*M-s)/2-D*s,z=m?"right":"left";_.forEach(V=>{V.style[t.isHorizontal()?z:"top"]=`${O}px`})}}y.forEach((_,L)=>{if(v.type==="fraction"&&(_.querySelectorAll(pr(v.currentClass)).forEach(R=>{R.textContent=v.formatFractionCurrent(S+1)}),_.querySelectorAll(pr(v.totalClass)).forEach(R=>{R.textContent=v.formatFractionTotal(P)})),v.type==="progressbar"){let R;v.progressbarOpposite?R=t.isHorizontal()?"vertical":"horizontal":R=t.isHorizontal()?"horizontal":"vertical";let D=(S+1)/P,M=1,O=1;R==="horizontal"?M=D:O=D,_.querySelectorAll(pr(v.progressbarFillClass)).forEach(z=>{z.style.transform=`translate3d(0,0,0) scaleX(${M}) scaleY(${O})`,z.style.transitionDuration=`${t.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(Ge(_,v.renderCustom(t,S+1,P)),L===0&&n("paginationRender",_)):(L===0&&n("paginationRender",_),n("paginationUpdate",_)),t.params.watchOverflow&&t.enabled&&_.classList[t.isLocked?"add":"remove"](v.lockClass)})}function f(){let m=t.params.pagination;if(o())return;let v=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length,y=t.pagination.el;y=me(y);let S="";if(m.type==="bullets"){let w=t.params.loop?Math.ceil(v/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&w>v&&(w=v);for(let A=0;A<w;A+=1)m.renderBullet?S+=m.renderBullet.call(t,A,m.bulletClass):S+=`<${m.bulletElement} ${t.isElement?'part="bullet"':""} class="${m.bulletClass}"></${m.bulletElement}>`}m.type==="fraction"&&(m.renderFraction?S=m.renderFraction.call(t,m.currentClass,m.totalClass):S=`<span class="${m.currentClass}"></span> / <span class="${m.totalClass}"></span>`),m.type==="progressbar"&&(m.renderProgressbar?S=m.renderProgressbar.call(t,m.progressbarFillClass):S=`<span class="${m.progressbarFillClass}"></span>`),t.pagination.bullets=[],y.forEach(w=>{m.type!=="custom"&&Ge(w,S||""),m.type==="bullets"&&t.pagination.bullets.push(...w.querySelectorAll(pr(m.bulletClass)))}),m.type!=="custom"&&n("paginationRender",y[0])}function h(){t.params.pagination=ws(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});let m=t.params.pagination;if(!m.el)return;let v;typeof m.el=="string"&&t.isElement&&(v=t.el.querySelector(m.el)),!v&&typeof m.el=="string"&&(v=[...document.querySelectorAll(m.el)]),v||(v=m.el),!(!v||v.length===0)&&(t.params.uniqueNavElements&&typeof m.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...t.el.querySelectorAll(m.el)],v.length>1&&(v=v.find(y=>_r(y,".swiper")[0]===t.el))),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(t.pagination,{el:v}),v=me(v),v.forEach(y=>{m.type==="bullets"&&m.clickable&&y.classList.add(...(m.clickableClass||"").split(" ")),y.classList.add(m.modifierClass+m.type),y.classList.add(t.isHorizontal()?m.horizontalClass:m.verticalClass),m.type==="bullets"&&m.dynamicBullets&&(y.classList.add(`${m.modifierClass}${m.type}-dynamic`),a=0,m.dynamicMainBullets<1&&(m.dynamicMainBullets=1)),m.type==="progressbar"&&m.progressbarOpposite&&y.classList.add(m.progressbarOppositeClass),m.clickable&&y.addEventListener("click",u),t.enabled||y.classList.add(m.lockClass)}))}function p(){let m=t.params.pagination;if(o())return;let v=t.pagination.el;v&&(v=me(v),v.forEach(y=>{y.classList.remove(m.hiddenClass),y.classList.remove(m.modifierClass+m.type),y.classList.remove(t.isHorizontal()?m.horizontalClass:m.verticalClass),m.clickable&&(y.classList.remove(...(m.clickableClass||"").split(" ")),y.removeEventListener("click",u))}
vendor: 19,966 bytes, line 39
39)),t.pagination.bullets&&t.pagination.bullets.forEach(y=>y.classList.remove(...m.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;let m=t.params.pagination,{el:v}=t.pagination;v=me(v),v.forEach(y=>{y.classList.remove(m.horizontalClass,m.verticalClass),y.classList.add(t.isHorizontal()?m.horizontalClass:m.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?E():(h(),f(),d())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&d()}),r("snapIndexChange",()=>{d()}),r("snapGridLengthChange",()=>{f(),d()}),r("destroy",()=>{p()}),r("enable disable",()=>{let{el:m}=t.pagination;m&&(m=me(m),m.forEach(v=>v.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{d()}),r("click",(m,v)=>{let y=v.target,S=me(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&S&&S.length>0&&!y.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&y===t.navigation.nextEl||t.navigation.prevEl&&y===t.navigation.prevEl))return;let w=S[0].classList.contains(t.params.pagination.hiddenClass);n(w===!0?"paginationShow":"paginationHide"),S.forEach(A=>A.classList.toggle(t.params.pagination.hiddenClass))}});let g=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:m}=t.pagination;m&&(m=me(m),m.forEach(v=>v.classList.remove(t.params.pagination.paginationDisabledClass))),h(),f(),d()},E=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:m}=t.pagination;m&&(m=me(m),m.forEach(v=>v.classList.add(t.params.pagination.paginationDisabledClass))),p()};Object.assign(t.pagination,{enable:g,disable:E,render:f,update:d,init:h,destroy:p})}function zv({swiper:t,extendParams:e,on:r,emit:n}){let i=Me(),s=!1,a=null,o=null,l,c,u,d;e({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null};function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;let{scrollbar:D,rtlTranslate:M}=t,{dragEl:O,el:z}=D,V=t.params.scrollbar,T=t.params.loop?t.progressLoop:t.progress,k=c,x=(u-c)*T;M?(x=-x,x>0?(k=c-x,x=0):-x+c>u&&(k=u+x)):x<0?(k=c+x,x=0):x+c>u&&(k=u-x),t.isHorizontal()?(O.style.transform=`translate3d(${x}px, 0, 0)`,O.style.width=`${k}px`):(O.style.transform=`translate3d(0px, ${x}px, 0)`,O.style.height=`${k}px`),V.hide&&(clearTimeout(a),z.style.opacity=1,a=setTimeout(()=>{z.style.opacity=0,z.style.transitionDuration="400ms"},1e3))}function h(D){!t.params.scrollbar.el||!t.scrollbar.el||(t.scrollbar.dragEl.style.transitionDuration=`${D}ms`)}function p(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;let{scrollbar:D}=t,{dragEl:M,el:O}=D;M.style.width="",M.style.height="",u=t.isHorizontal()?O.offsetWidth:O.offsetHeight,d=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),t.params.scrollbar.dragSize==="auto"?c=u*d:c=parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?M.style.width=`${c}px`:M.style.height=`${c}px`,d>=1?O.style.display="none":O.style.display="",t.params.scrollbar.hide&&(O.style.opacity=0),t.params.watchOverflow&&t.enabled&&D.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function g(D){return t.isHorizontal()?D.clientX:D.clientY}function E(D){let{scrollbar:M,rtlTranslate:O}=t,{el:z}=M,V;V=(g(D)-Ti(z)[t.isHorizontal()?"left":"top"]-(l!==null?l:c/2))/(u-c),V=Math.max(Math.min(V,1),0),O&&(V=1-V);let T=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*V;t.updateProgress(T),t.setTranslate(T),t.updateActiveIndex(),t.updateSlidesClasses()}function m(D){let M=t.params.scrollbar,{scrollbar:O,wrapperEl:z}=t,{el:V,dragEl:T}=O;s=!0,l=D.target===T?g(D)-D.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,D.preventDefault(),D.stopPropagation(),z.style.transitionDuration="100ms",T.style.transitionDuration="100ms",E(D),clearTimeout(o),V.style.transitionDuration="0ms",M.hide&&(V.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),n("scrollbarDragStart",D)}function v(D){let{scrollbar:M,wrapperEl:O}=t,{el:z,dragEl:V}=M;s&&(D.preventDefault&&D.cancelable?D.preventDefault():D.returnValue=!1,E(D),O.style.transitionDuration="0ms",z.style.transitionDuration="0ms",V.style.transitionDuration="0ms",n("scrollbarDragMove",D))}function y(D){let M=t.params.scrollbar,{scrollbar:O,wrapperEl:z}=t,{el:V}=O;s&&(s=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",z.style.transitionDuration=""),M.hide&&(clearTimeout(o),o=Xr(()=>{V.style.opacity=0,V.style.transitionDuration="400ms"},1e3)),n("scrollbarDragEnd",D),M.snapOnRelease&&t.slideToClosest())}function S(D){let{scrollbar:M,params:O}=t,z=M.el;if(!z)return;let V=z,T=O.passiveListeners?{passive:!1,capture:!1}:!1,k=O.passiveListeners?{passive:!0,capture:!1}:!1;if(!V)return;let x=D==="on"?"addEventListener":"removeEventListener";V[x]("pointerdown",m,T),i[x]("pointermove",v,T),i[x]("pointerup",y,k)}function w(){!t.params.scrollbar.el||!t.scrollbar.el||S("on")}function A(){!t.params.scrollbar.el||!t.scrollbar.el||S("off")}function P(){let{scrollbar:D,el:M}=t;t.params.scrollbar=ws(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});let O=t.params.scrollbar;if(!O.el)return;let z;if(typeof O.el=="string"&&t.isElement&&(z=t.el.querySelector(O.el)),!z&&typeof O.el=="string"){if(z=i.querySelectorAll(O.el),!z.length)return}else z||(z=O.el);t.params.uniqueNavElements&&typeof O.el=="string"&&z.length>1&&M.querySelectorAll(O.el).length===1&&(z=M.querySelector(O.el)),z.length>0&&(z=z[0]),z.classList.add(t.isHorizontal()?O.horizontalClass:O.verticalClass);let V;z&&(V=z.querySelector(pr(t.params.scrollbar.dragClass)),V||(V=He("div",t.params.scrollbar.dragClass),z.append(V))),Object.assign(D,{el:z,dragEl:V}),O.draggable&&w(),z&&z.classList[t.enabled?"remove":"add"](...hn(t.params.scrollbar.lockClass))}function _(){let D=t.params.scrollbar,M=t.scrollbar.el;M&&M.classList.remove(...hn(t.isHorizontal()?D.horizontalClass:D.verticalClass)),A()}r("changeDirection",()=>{if(!t.scrollbar||!t.scrollbar.el)return;let D=t.params.scrollbar,{el:M}=t.scrollbar;M=me(M),M.forEach(O=>{O.classList.remove(D.horizontalClass,D.verticalClass),O.classList.add(t.isHorizontal()?D.horizontalClass:D.verticalClass)})}),r("init",()=>{t.params.scrollbar.enabled===!1?R():(P(),p(),f())}),r("update resize observerUpdate lock unlock changeDirection",()=>{p()}),r("setTranslate",()=>{f()}),r("setTransition",(D,M)=>{h(M)}),r("enable disable",()=>{let{el:D}=t.scrollbar;D&&D.classList[t.enabled?"remove":"add"](...hn(t.params.scrollbar.lockClass))}),r("destroy",()=>{_()});let L=()=>{t.el.classList.remove(...hn(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...hn(t.params.scrollbar.scrollbarDisabledClass)),P(),p(),f()},R=()=>{t.el.classList.add(...hn(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...hn(t.params.scrollbar.scrollbarDisabledClass)),_()};Object.assign(t.scrollbar,{enable:L,disable:R,updateSize:p,setTranslate:f,init:P,destroy:_})}function Hv({swiper:t,extendParams:e,on:r}){e({parallax:{enabled:!1}});let n="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",i=(o,l)=>{let{rtl:c}=t,u=c?-1:1,d=o.getAttribute("data-swiper-parallax")||"0",f=o.getAttribute("data-swiper-parallax-x"),h=o.getAttribute("data-swiper-parallax-y"),p=o.getAttribute("data-swiper-parallax-scale"),g=o.getAttribute("data-swiper-parallax-opacity"),E=o.getAttribute("data-swiper-parallax-rotate");if(f||h?(f=f||"0",h=h||"0"):t.isHorizontal()?(f=d,h="0"):(h=d,f="0"),f.indexOf("%")>=0?f=`${parseInt(f,10)*l*u}%`:f=`${f*l*u}px`,h.indexOf("%")>=0?h=`${parseInt(h,10)*l}%`:h=`${h*l}px`,typeof g<"u"&&g!==null){let v=g-(g-1)*(1-Math.abs(l));o.style.opacity=v}let m=`translate3d(${f}, ${h}, 0px)`;if(typeof p<"u"&&p!==null){let v=p-(p-1)*(1-Math.abs(l));m+=` scale(${v})`}if(E&&typeof E<"u"&&E!==null){let v=E*l*-1;m+=` rotate(${v}deg)`}o.style.transform=m},s=()=>{let{el:o,slides:l,progress:c,snapGrid:u,isElement:d}=t,f=Ne(o,n);t.isElement&&f.push(...Ne(t.hostEl,n)),f.forEach(h=>{i(h,c)}),l.forEach((h,p)=>{let g=h.progress;t.params.slidesPerGroup>1&&t.params.slidesPerView!=="auto"&&(g+=Math.ceil(p/2)-c*(u.length-1)),g=Math.min(Math.max(g,-1),1),h.querySelectorAll(`${n}, [data-swiper-parallax-rotate]`).forEach(E=>{i(E,g)})})},a=(o=t.params.speed)=>{let{el:l,hostEl:c}=t,u=[...l.querySelectorAll(n)];t.isElement&&u.push(...c.querySelectorAll(n)),u.forEach(d=>{let f=parseInt(d.getAttribute("data-swiper-parallax-duration"),10)||o;o===0&&(f=0),d.style.transitionDuration=`${f}ms`})};r("beforeInit",()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),r("init",()=>{t.params.parallax.enabled&&s()}),r("setTranslate",()=>{t.params.parallax.enabled&&s()}),r("setTransition",(o,l)=>{t.params.parallax.enabled&&a(l)})}function Gv({swiper:t,extendParams:e,on:r,emit:n}){let i=xe();e({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let s=1,a=!1,o=!1,l={x:0,y:0},c=-3,u,d,f=[],h={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},p={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0},E=1;Object.defineProperty(t.zoom,"scale",{get(){return E},set(H){if(E!==H){let U=h.imageEl,W=h.slideEl;n("zoomChange",H,U,W)}E=H}});function m(){if(f.length<2)return 1;let H=f[0].pageX,U=f[0].pageY,W=f[1].pageX,X=f[1].pageY;return Math.sqrt((W-H)**2+(X-U)**2)}function v(){let H=t.params.zoom,U=h.imageWrapEl.getAttribute("data-swiper-zoom")||H.maxRatio;if(H.limitToOriginalSize&&h.imageEl&&h.imageEl.naturalWidth){let W=h.imageEl.naturalWidth/h.imageEl.offsetWidth;return Math.min(W,U)}return U}function y(){if(f.length<2)return{x:null,y:null};let H=h.imageEl.getBoundingClientRect();return[(f[0].pageX+(f[1].pageX-f[0].pageX)/2-H.x-i.scrollX)/s,(f[0].pageY+(f[1].pageY-f[0].pageY)/2-H.y-i.scrollY)/s]}function S(){return t.isElement?"swiper-slide":`.${t.params.slideClass}`}function w(H){let U=S();return!!(H.target.matches(U)||t.slides.filter(W=>W.contains(H.target)).length>0)}function A(H){let U=`.${t.params.zoom.containerClass}`;return!!(H.target.matches(U)||[...t.hostEl.querySelectorAll(U)].filter(W=>W.contains(H.target)).length>0)}function P(H){if(H.pointerType==="mouse"&&f.splice(0,f.length),!w(H))return;let U=t.params.zoom;if(u=!1,d=!1,f.push(H),!(f.length<2)){if(u=!0,h.scaleStart=m(),!h.slideEl){h.slideEl=H.target.closest(`.${t.params.slideClass}, swiper-slide`),h.slideEl||(h.slideEl=t.slides[t.activeIndex]);let W=h.slideEl.querySelector(`.${U.containerClass}`);if(W&&(W=W.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=W,W?h.imageWrapEl=_r(h.imageEl,`.${U.containerClass}`)[0]:h.imageWrapEl=void 0,!h.imageWrapEl){h.imageEl=void 0;return}h.maxRatio=v()}if(h.imageEl){let[W,X]=y();h.originX=W,h.originY=X,h.imageEl.style.transitionDuration="0ms"}a=!0}}function _(H){if(!w(H))return;let U=t.params.zoom,W=t.zoom,X=f.findIndex(ie=>ie.pointerId===H.pointerId);X>=0&&(f[X]=H),!(f.length<2)&&(d=!0,h.scaleMove=m(),h.imageEl&&(W.scale=h.scaleMove/h.scaleStart*s,W.scale>h.maxRatio&&(W.scale=h.maxRatio-1+(W.scale-h.maxRatio+1)**.5),W.scale<U.minRatio&&(W.scale=U.minRatio+1-(U.minRatio-W.scale+1)**.5),h.imageEl.style.transform=`translate3d(0,0,0) scale(${W.scale})`))}function L(H){if(!w(H)||H.pointerType==="mouse"&&H.type==="pointerout")return;let U=t.params.zoom,W=t.zoom,X=f.findIndex(ie=>ie.pointerId===H.pointerId);X>=0&&f.splice(X,1),!(!u||!d)&&(u=!1,d=!1,h.imageEl&&(W.scale=Math.max(Math.min(W.scale,h.maxRatio),U.minRatio),h.imageEl.style.transitionDuration=`${t.params.speed}ms`,h.imageEl.style.transform=`translate3d(0,0,0) scale(${W.scale})`,s=W.scale,a=!1,W.scale>1&&h.slideEl?h.slideEl.classList.add(`${U.zoomedSlideClass}`):W.scale<=1&&h.slideEl&&h.slideEl.classList.remove(`${U.zoomedSlideClass}`),W.scale===1&&(h.originX=0,h.originY=0,h.slideEl=void 0)))}let R;function D(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function M(){clearTimeout(R),t.touchEventsData.preventTouchMoveFromPointerMove=!0,R=setTimeout(()=>{t.destroyed||D()})}function O(H){let U=t.device;if(!h.imageEl||p.isTouched)return;U.android&&H.cancelable&&H.preventDefault(),p.isTouched=!0;let W=f.length>0?f[0]:H;p.touchesStart.x=W.pageX,p.touchesStart.y=W.pageY}function z(H){let W=H.pointerType==="mouse"&&t.params.zoom.panOnMouseMove;if(!w(H)||!A(H))return;let X=t.zoom;if(!h.imageEl)return;if(!p.isTouched||!h.slideEl){W&&k(H);return}if(W){k(H);return}p.isMoved||(p.width=h.imageEl.offsetWidth||h.imageEl.clientWidth,p.height=h.imageEl.offsetHeight||h.imageEl.clientHeight,p.startX=Qa(h.imageWrapEl,"x")||0,p.startY=Qa(h.imageWrapEl,"y")||0,h.slideWidth=h.slideEl.offsetWidth,h.slideHeight=h.slideEl.offsetHeight,h.imageWrapEl.style.transitionDuration="0ms");let ie=p.width*X.scale,_e=p.height*X.scale;if(p.minX=Math.min(h.slideWidth/2-ie/2,0),p.maxX=-p.minX,p.minY=Math.min(h.slideHeight/2-_e/2,0),p.maxY=-p.minY,p.touchesCurrent.x=f.length>0?f[0].pageX:H.pageX,p.touchesCurrent.y=f.length>0?f[0].pageY:H.pageY,Math.max(Math.abs(p.touchesCurrent.x-p.touchesStart.x),Math.abs(p.touchesCurrent.y-p.touchesStart.y))>5&&(t.allowClick=!1),!p.isMoved&&!a){if(t.isHorizontal()&&(Math.floor(p.minX)===Math.floor(p.startX)&&p.touchesCurrent.x<p.touchesStart.x||Math.floor(p.maxX)===Math.floor(p.startX)&&p.touchesCurrent.x>p.touchesStart.x)){p.isTouched=!1,D();return}if(!t.isHorizontal()&&(Math.floor(p.minY)===Math.floor(p.startY)&&p.touchesCurrent.y<p.touchesStart.y||Math.floor(p.maxY)===Math.floor(p.startY)&&p.touchesCurrent.y>p.touchesStart.y)){p.isTouched=!1,D();return}}H.cancelable&&H.preventDefault(),H.stopPropagation(),M(),p.isMoved=!0;let ke=(X.scale-s)/(h.maxRatio-t.params.zoom.minRatio),{originX:Re,originY:le}=h;p.currentX=p.touchesCurrent.x-p.touchesStart.x+p.startX+ke*(p.width-Re*2),p.currentY=p.touchesCurrent.y-p.touchesStart.y+p.startY+ke*(p.height-le*2),p.currentX<p.minX&&(p.currentX=p.minX+1-(p.minX-p.currentX+1)**.8),p.currentX>p.maxX&&(p.currentX=p.maxX-1+(p.currentX-p.maxX+1)**.8),p.currentY<p.minY&&(p.currentY=p.minY+1-(p.minY-p.currentY+1)**.8),p.currentY>p.maxY&&(p.currentY=p.maxY-1+(p.currentY-p.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=p.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=p.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(p.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(p.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(p.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(p.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=p.touchesCurrent.x,g.prevPositionY=p.touchesCurrent.y,g.prevTime=Date.now(),h.imageWrapEl.style.transform=`translate3d(${p.currentX}px, ${p.currentY}px,0)`}function V(){let H=t.zoom;if(f.length=0,!h.imageEl)return;if(!p.isTouched||!p.isMoved){p.isTouched=!1,p.isMoved=!1;return}p.isTouched=!1,p.isMoved=!1;let U=300,W=300,X=g.x*U,ie=p.currentX+X,_e=g.y*W,Fe=p.currentY+_e;g.x!==0&&(U=Math.abs((ie-p.currentX)/g.x)),g.y!==0&&(W=Math.abs((Fe-p.currentY)/g.y));let ke=Math.max(U,W);p.currentX=ie,p.currentY=Fe;let Re=p.width*H.scale,le=p.height*H.scale;p.minX=Math.min(h.slideWidth/2-Re/2,0),p.maxX=-p.minX,p.minY=Math.min(h.slideHeight/2-le/2,0),p.maxY=-p.minY,p.currentX=Math.max(Math.min(p.currentX,p.maxX),p.minX),p.currentY=Math.max(Math.min(p.currentY,p.maxY),p.minY),h.imageWrapEl.style.transitionDuration=`${ke}ms`,h.imageWrapEl.style.transform=`translate3d(${p.currentX}px, ${p.currentY}px,0)`}function T(){let H=t.zoom;h.slideEl&&t.activeIndex!==t.slides.indexOf(h.slideEl)&&(h.imageEl&&(h.imageEl.style.transform="translate3d(0,0,0) scale(1)"),h.imageWrapEl&&(h.imageWrapEl.style.transform="translate3d(0,0,0)"),h.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),H.scale=1,s=1,h.slideEl=void 0,h.imageEl=void 0,h.imageWrapEl=void 0,h.originX=0,h.originY=0)}function k(H){if(s<=1||!h.imageWrapEl||!w(H)||!A(H))return;let U=i.getComputedStyle(h.imageWrapEl).transform,W=new i.DOMMatrix(U);if(!o){o=!0,l.x=H.clientX,l.y=H.clientY,p.startX=W.e,p.startY=W.f,p.width=h.imageEl.offsetWidth||h.imageEl.clientWidth,p.height=h.imageEl.offsetHeight||h.imageEl.clientHeight,h.slideWidth=h.slideEl.offsetWidth,h.slideHeight=h.slideEl.offsetHeight;return}let X=(H.clientX-l.x)*c,ie=(H.clientY-l.y)*c,_e=p.width*s,Fe=p.height*s,ke=h.slideWidth,Re=h.slideHeight,le=Math.min(ke/2-_e/2,0),J=-le,ht=Math.min(Re/2-Fe/2,0),Lt=-ht,ot=Math.max(Math.min(p.startX+X,J),le),Ke=Math.max(Math.min(p.startY+ie,Lt),ht);h.imageWrapEl.style.transitionDuration="0ms",h.imageWrapEl.style.transform=`translate3d(${ot}px, ${Ke}px, 0)`,l.x=H.clientX,l.y=H.clientY,p.startX=ot,p.startY=Ke,p.currentX=ot,p.currentY=Ke}function x(H){let U=t.zoom,W=t.params.zoom;if(!h.slideEl){H&&H.target&&(h.slideEl=H.target.closest(`.${t.params.slideClass}, swiper-slide`)),h.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?h.slideEl=Ne(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:h.slideEl=t.slides[t.activeIndex]);let Pr=h.slideEl.querySelector(`.${W.containerClass}`);Pr&&(Pr=Pr.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=Pr,Pr?h.imageWrapEl=_r(h.imageEl,`.${W.containerClass}`)[0]:h.imageWrapEl=void 0}if(!h.imageEl||!h.imageWrapEl)return;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),h.slideEl.classList.add(`${W.zoomedSlideClass}`);let X,ie,_e,Fe,ke,Re,le,J,ht,Lt,ot,Ke,Et,xt,Xe,Xt,Yt,pt;typeof p.touchesStart.x>"u"&&H?(X=H.pageX,ie=H.pageY):(X=p.touchesStart.x,ie=p.touchesStart.y);let Zt=s,Ye=typeof H=="number"?H:null;s===1&&Ye&&(X=void 0,ie=void 0,p.touchesStart.x=void 0,p.touchesStart.y=void 0);let kr=v();U.scale=Ye||kr,s=Ye||kr,H&&!(s===1&&Ye)?(Yt=h.slideEl.offsetWidth,pt=h.slideEl.offsetHeight,_e=Ti(h.slideEl).left+i.scrollX,Fe=Ti(h.slideEl).top+i.scrollY,ke=_e+Yt/2-X,Re=Fe+pt/2-ie,ht=h.imageEl.offsetWidth||h.imageEl.clientWidth,Lt=h.imageEl.offsetHeight||h.imageEl.clientHeight,ot=ht*U.scale,Ke=Lt*U.scale,Et=Math.min(Yt/2-ot/2,0),xt=Math.min(pt/2-Ke/2,0),Xe=-Et,Xt=-xt,Zt>0&&Ye&&typeof p.currentX=="number"&&typeof p.currentY=="number"?(le=p.currentX*U.scale/Zt,J=p.currentY*U.scale/Zt):(le=ke*U.scale,J=Re*U.scale),le<Et&&(le=Et),le>Xe&&(le=Xe),J<xt&&(J=xt),J>Xt&&(J=Xt)):(le=0,J=0),Ye&&U.scale===1&&(h.originX=0,h.originY=0),p.currentX=le,p.currentY=J,h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform=`translate3d(${le}px, ${J}px,0)`,h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform=`translate3d(0,0,0) scale(${U.scale})`}function C(){let H=t.zoom,U=t.params.zoom;if(!h.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?h.slideEl=Ne(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:h.slideEl=t.slides[t.activeIndex];let W=h.slideEl.querySelector(`.${U.containerClass}`);W&&(W=W.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=W,W?h.imageWrapEl=_r(h.imageEl,`.${U.containerClass}`)[0]:h.imageWrapEl=void 0}!h.imageEl||!h.imageWrapEl||(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),H.scale=1,s=1,p.currentX=void 0,p.currentY=void 0,p.touchesStart.x=void 0,p.touchesStart.y=void 0,h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform="translate3d(0,
390,0)",h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform="translate3d(0,0,0) scale(1)",h.slideEl.classList.remove(`${U.zoomedSlideClass}`),h.slideEl=void 0,h.originX=0,h.originY=0,t.params.zoom.panOnMouseMove&&(l={x:0,y:0},o&&(o=!1,p.startX=0,p.startY=0)))}function B(H){let U=t.zoom;U.scale&&U.scale!==1?C():x(H)}function N(){let H=t.params.passiveListeners?{passive:!0,capture:!1}:!1,U=t.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:H,activeListenerWithCapture:U}}function Y(){let H=t.zoom;if(H.enabled)return;H.enabled=!0;let{passiveListener:U,activeListenerWithCapture:W}=N();t.wrapperEl.addEventListener("pointerdown",P,U),t.wrapperEl.addEventListener("pointermove",_,W),["pointerup","pointercancel","pointerout"].forEach(X=>{t.wrapperEl.addEventListener(X,L,U)}),t.wrapperEl.addEventListener("pointermove",z,W)}function ee(){let H=t.zoom;if(!H.enabled)return;H.enabled=!1;let{passiveListener:U,activeListenerWithCapture:W}=N();t.wrapperEl.removeEventListener("pointerdown",P,U),t.wrapperEl.removeEventListener("pointermove",_,W),["pointerup","pointercancel","pointerout"].forEach(X=>{t.wrapperEl.removeEventListener(X,L,U)}),t.wrapperEl.removeEventListener("pointermove",z,W)}r("init",()=>{t.params.zoom.enabled&&Y()}),r("destroy",()=>{ee()}),r("touchStart",(H,U)=>{t.zoom.enabled&&O(U)}),r("touchEnd",(H,U)=>{t.zoom.enabled&&V()}),r("doubleTap",(H,U)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&B(U)}),r("transitionEnd",()=>{t.zoom.enabled&&t.params.zoom.enabled&&T()}),r("slideChange",()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&T()}),Object.assign(t.zoom,{enable:Y,disable:ee,in:x,out:C,toggle:B})}function qv({swiper:t,extendParams:e,on:r}){e({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0};function n(l,c){let u=(function(){let p,g,E;return(m,v)=>{for(g=-1,p=m.length;p-g>1;)E=p+g>>1,m[E]<=v?g=E:p=E;return p}})();this.x=l,this.y=c,this.lastIndex=l.length-1;let d,f;return this.interpolate=function(p){return p?(f=u(this.x,p),d=f-1,(p-this.x[d])*(this.y[f]-this.y[d])/(this.x[f]-this.x[d])+this.y[d]):0},this}function i(l){t.controller.spline=t.params.loop?new n(t.slidesGrid,l.slidesGrid):new n(t.snapGrid,l.snapGrid)}function s(l,c){let u=t.controller.control,d,f,h=t.constructor;function p(g){if(g.destroyed)return;let E=t.rtlTranslate?-t.translate:t.translate;t.params.controller.by==="slide"&&(i(g),f=-t.controller.spline.interpolate(-E)),(!f||t.params.controller.by==="container")&&(d=(g.maxTranslate()-g.minTranslate())/(t.maxTranslate()-t.minTranslate()),(Number.isNaN(d)||!Number.isFinite(d))&&(d=1),f=(E-t.minTranslate())*d+g.minTranslate()),t.params.controller.inverse&&(f=g.maxTranslate()-f),g.updateProgress(f),g.setTranslate(f,t),g.updateActiveIndex(),g.updateSlidesClasses()}if(Array.isArray(u))for(let g=0;g<u.length;g+=1)u[g]!==c&&u[g]instanceof h&&p(u[g]);else u instanceof h&&c!==u&&p(u)}function a(l,c){let u=t.constructor,d=t.controller.control,f;function h(p){p.destroyed||(p.setTransition(l,t),l!==0&&(p.transitionStart(),p.params.autoHeight&&Xr(()=>{p.updateAutoHeight()}),zn(p.wrapperEl,()=>{d&&p.transitionEnd()})))}if(Array.isArray(d))for(f=0;f<d.length;f+=1)d[f]!==c&&d[f]instanceof u&&h(d[f]);else d instanceof u&&c!==d&&h(d)}function o(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}r("beforeInit",()=>{if(typeof window<"u"&&(typeof t.params.controller.control=="string"||t.params.controller.control instanceof HTMLElement)){(typeof t.params.controller.control=="string"?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach(c=>{if(t.controller.control||(t.controller.control=[]),c&&c.swiper)t.controller.control.push(c.swiper);else if(c){let u=`${t.params.eventsPrefix}init`,d=f=>{t.controller.control.push(f.detail[0]),t.update(),c.removeEventListener(u,d)};c.addEventListener(u,d)}});return}t.controller.control=t.params.controller.control}),r("update",()=>{o()}),r("resize",()=>{o()}),r("observerUpdate",()=>{o()}),r("setTranslate",(l,c,u)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTranslate(c,u)}),r("setTransition",(l,c,u)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTransition(c,u)}),Object.assign(t.controller,{setTranslate:s,setTransition:a})}function jv({swiper:t,extendParams:e,on:r}){e({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,
vendor: 37,971 bytes, lines 39-43
39scrollOnFocus:!0,wrapperLiveRegion:!0}}),t.a11y={clicked:!1};let n=null,i,s,a=new Date().getTime();function o(T){let k=n;k.length!==0&&Ge(k,T)}function l(T=16){let k=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(T).replace(/x/g,k)}function c(T){T=me(T),T.forEach(k=>{k.setAttribute("tabIndex","0")})}function u(T){T=me(T),T.forEach(k=>{k.setAttribute("tabIndex","-1")})}function d(T,k){T=me(T),T.forEach(x=>{x.setAttribute("role",k)})}function f(T,k){T=me(T),T.forEach(x=>{x.setAttribute("aria-roledescription",k)})}function h(T,k){T=me(T),T.forEach(x=>{x.setAttribute("aria-controls",k)})}function p(T,k){T=me(T),T.forEach(x=>{x.setAttribute("aria-label",k)})}function g(T,k){T=me(T),T.forEach(x=>{x.setAttribute("id",k)})}function E(T,k){T=me(T),T.forEach(x=>{x.setAttribute("aria-live",k)})}function m(T){T=me(T),T.forEach(k=>{k.setAttribute("aria-disabled",!0)})}function v(T){T=me(T),T.forEach(k=>{k.setAttribute("aria-disabled",!1)})}function y(T){if(T.keyCode!==13&&T.keyCode!==32)return;let k=t.params.a11y,x=T.target;if(!(t.pagination&&t.pagination.el&&(x===t.pagination.el||t.pagination.el.contains(T.target))&&!T.target.matches(pr(t.params.pagination.bulletClass)))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){let C=me(t.navigation.prevEl);me(t.navigation.nextEl).includes(x)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?o(k.lastSlideMessage):o(k.nextSlideMessage)),C.includes(x)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?o(k.firstSlideMessage):o(k.prevSlideMessage))}t.pagination&&x.matches(pr(t.params.pagination.bulletClass))&&x.click()}}function S(){if(t.params.loop||t.params.rewind||!t.navigation)return;let{nextEl:T,prevEl:k}=t.navigation;k&&(t.isBeginning?(m(k),u(k)):(v(k),c(k))),T&&(t.isEnd?(m(T),u(T)):(v(T),c(T)))}function w(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function A(){return w()&&t.params.pagination.clickable}function P(){let T=t.params.a11y;w()&&t.pagination.bullets.forEach(k=>{t.params.pagination.clickable&&(c(k),t.params.pagination.renderBullet||(d(k,"button"),p(k,T.paginationBulletMessage.replace(/\{\{index\}\}/,Vn(k)+1)))),k.matches(pr(t.params.pagination.bulletActiveClass))?k.setAttribute("aria-current","true"):k.removeAttribute("aria-current")})}let _=(T,k,x)=>{c(T),T.tagName!=="BUTTON"&&(d(T,"button"),T.addEventListener("keydown",y)),p(T,x),h(T,k)},L=T=>{s&&s!==T.target&&!s.contains(T.target)&&(i=!0),t.a11y.clicked=!0},R=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},D=T=>{a=new Date().getTime()},M=T=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus||new Date().getTime()-a<100)return;let k=T.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!k||!t.slides.includes(k))return;s=k;let x=t.slides.indexOf(k)===t.activeIndex,C=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(k);x||C||T.sourceCapabilities&&T.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>{i||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(k.getAttribute("data-swiper-slide-index"))),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(k)),0),i=!1)}))},O=()=>{let T=t.params.a11y;T.itemRoleDescriptionMessage&&f(t.slides,T.itemRoleDescriptionMessage),T.slideRole&&d(t.slides,T.slideRole);let k=t.slides.length;T.slideLabelMessage&&t.slides.forEach((x,C)=>{let B=t.params.loop?parseInt(x.getAttribute("data-swiper-slide-index"),10):C,N=T.slideLabelMessage.replace(/\{\{index\}\}/,B+1).replace(/\{\{slidesLength\}\}/,k);p(x,N)})},z=()=>{let T=t.params.a11y;t.el.append(n);let k=t.el;T.containerRoleDescriptionMessage&&f(k,T.containerRoleDescriptionMessage),T.containerMessage&&p(k,T.containerMessage),T.containerRole&&d(k,T.containerRole);let x=t.wrapperEl,C=T.id||x.getAttribute("id")||`swiper-wrapper-${l(16)}`;if(g(x,C),T.wrapperLiveRegion){let ee=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";E(x,ee)}O();let{nextEl:B,prevEl:N}=t.navigation?t.navigation:{};B=me(B),N=me(N),B&&B.forEach(ee=>_(ee,C,T.nextSlideMessage)),N&&N.forEach(ee=>_(ee,C,T.prevSlideMessage)),A()&&me(t.pagination.el).forEach(H=>{H.addEventListener("keydown",y)}),Me().addEventListener("visibilitychange",D),t.el.addEventListener("focus",M,!0),t.el.addEventListener("focus",M,!0),t.el.addEventListener("pointerdown",L,!0),t.el.addEventListener("pointerup",R,!0)};function V(){n&&n.remove();let{nextEl:T,prevEl:k}=t.navigation?t.navigation:{};T=me(T),k=me(k),T&&T.forEach(C=>C.removeEventListener("keydown",y)),k&&k.forEach(C=>C.removeEventListener("keydown",y)),A()&&me(t.pagination.el).forEach(B=>{B.removeEventListener("keydown",y)}),Me().removeEventListener("visibilitychange",D),t.el&&typeof t.el!="string"&&(t.el.removeEventListener("focus",M,!0),t.el.removeEventListener("pointerdown",L,!0),t.el.removeEventListener("pointerup",R,!0))}r("beforeInit",()=>{n=He("span",t.params.a11y.notificationClass),n.setAttribute("aria-live","assertive"),n.setAttribute("aria-atomic","true")}),r("afterInit",()=>{t.params.a11y.enabled&&z()}),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&O()}),r("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&S()}),r("paginationUpdate",()=>{t.params.a11y.enabled&&P()}),r("destroy",()=>{t.params.a11y.enabled&&V()})}function Wv({swiper:t,extendParams:e,on:r}){e({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let n=!1,i={},s=f=>f.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),a=f=>{let h=xe(),p;f?p=new URL(f):p=h.location;let g=p.pathname.slice(1).split("/").filter(y=>y!==""),E=g.length,m=g[E-2],v=g[E-1];return{key:m,value:v}},o=(f,h)=>{let p=xe();if(!n||!t.params.history.enabled)return;let g;t.params.url?g=new URL(t.params.url):g=p.location;let E=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${h}"]`):t.slides[h],m=s(E.getAttribute("data-history"));if(t.params.history.root.length>0){let y=t.params.history.root;y[y.length-1]==="/"&&(y=y.slice(0,y.length-1)),m=`${y}/${f?`${f}/`:""}${m}`}else g.pathname.includes(f)||(m=`${f?`${f}/`:""}${m}`);t.params.history.keepQuery&&(m+=g.search);let v=p.history.state;v&&v.value===m||(t.params.history.replaceState?p.history.replaceState({value:m},null,m):p.history.pushState({value:m},null,m))},l=(f,h,p)=>{if(h)for(let g=0,E=t.slides.length;g<E;g+=1){let m=t.slides[g];if(s(m.getAttribute("data-history"))===h){let y=t.getSlideIndex(m);t.slideTo(y,f,p)}}else t.slideTo(0,f,p)},c=()=>{i=a(t.params.url),l(t.params.speed,i.value,!1)},u=()=>{let f=xe();if(t.params.history){if(!f.history||!f.history.pushState){t.params.history.enabled=!1,t.params.hashNavigation.enabled=!0;return}if(n=!0,i=a(t.params.url),!i.key&&!i.value){t.params.history.replaceState||f.addEventListener("popstate",c);return}l(0,i.value,t.params.runCallbacksOnInit),t.params.history.replaceState||f.addEventListener("popstate",c)}},d=()=>{let f=xe();t.params.history.replaceState||f.removeEventListener("popstate",c)};r("init",()=>{t.params.history.enabled&&u()}),r("destroy",()=>{t.params.history.enabled&&d()}),r("transitionEnd _freeModeNoMomentumRelease",()=>{n&&o(t.params.history.key,t.activeIndex)}),r("slideChange",()=>{n&&t.params.cssMode&&o(t.params.history.key,t.activeIndex)})}function Uv({swiper:t,extendParams:e,emit:r,on:n}){let i=!1,s=Me(),a=xe();e({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(d,f){if(t.virtual&&t.params.virtual.enabled){let h=t.slides.find(g=>g.getAttribute("data-hash")===f);return h?parseInt(h.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(Ne(t.slidesEl,`.${t.params.slideClass}[data-hash="${f}"], swiper-slide[data-hash="${f}"]`)[0])}}});let o=()=>{r("hashChange");let d=s.location.hash.replace("#",""),f=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],h=f?f.getAttribute("data-hash"):"";if(d!==h){let p=t.params.hashNavigation.getSlideIndex(t,d);if(typeof p>"u"||Number.isNaN(p))return;t.slideTo(p)}},l=()=>{if(!i||!t.params.hashNavigation.enabled)return;let d=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],f=d?d.getAttribute("data-hash")||d.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&a.history&&a.history.replaceState?(a.history.replaceState(null,null,`#${f}`||""),r("hashSet")):(s.location.hash=f||"",r("hashSet"))},c=()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;i=!0;let d=s.location.hash.replace("#","");if(d){let h=t.params.hashNavigation.getSlideIndex(t,d);t.slideTo(h||0,0,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&a.addEventListener("hashchange",o)},u=()=>{t.params.hashNavigation.watchState&&a.removeEventListener("hashchange",o)};n("init",()=>{t.params.hashNavigation.enabled&&c()}),n("destroy",()=>{t.params.hashNavigation.enabled&&u()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{i&&l()}),n("slideChange",()=>{i&&t.params.cssMode&&l()})}function Xv({swiper:t,extendParams:e,on:r,emit:n,params:i}){t.autoplay={running:!1,paused:!1,timeLeft:0},e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,a,o=i&&i.autoplay?i.autoplay.delay:3e3,l=i&&i.autoplay?i.autoplay.delay:3e3,c,u=new Date().getTime(),d,f,h,p,g,E,m;function v(k){!t||t.destroyed||!t.wrapperEl||k.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",v),!(m||k.detail&&k.detail.bySwiperTouchMove)&&L())}let y=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?d=!0:d&&(l=c,d=!1);let k=t.autoplay.paused?c:u+l-new Date().getTime();t.autoplay.timeLeft=k,n("autoplayTimeLeft",k,k/o),a=requestAnimationFrame(()=>{y()})},S=()=>{let k;return t.virtual&&t.params.virtual.enabled?k=t.slides.find(C=>C.classList.contains("swiper-slide-active")):k=t.slides[t.activeIndex],k?parseInt(k.getAttribute("data-swiper-autoplay"),10):void 0},w=k=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(a),y();let x=typeof k>"u"?t.params.autoplay.delay:k;o=t.params.autoplay.delay,l=t.params.autoplay.delay;let C=S();!Number.isNaN(C)&&C>0&&typeof k>"u"&&(x=C,o=C,l=C),c=x;let B=t.params.speed,N=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(B,!0,!0),n("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,B,!0,!0),n("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(B,!0,!0),n("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,B,!0,!0),n("autoplay")),t.params.cssMode&&(u=new Date().getTime(),requestAnimationFrame(()=>{w()})))};return x>0?(clearTimeout(s),s=setTimeout(()=>{N()},x)):requestAnimationFrame(()=>{N()}),x},A=()=>{u=new Date().getTime(),t.autoplay.running=!0,w(),n("autoplayStart")},P=()=>{t.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(a),n("autoplayStop")},_=(k,x)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(s),k||(E=!0);let C=()=>{n("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",v):L()};if(t.autoplay.paused=!0,x){g&&(c=t.params.autoplay.delay),g=!1,C();return}c=(c||t.params.autoplay.delay)-(new Date().getTime()-u),!(t.isEnd&&c<0&&!t.params.loop)&&(c<0&&(c=0),C())},L=()=>{t.isEnd&&c<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(u=new Date().getTime(),E?(E=!1,w(c)):w(),t.autoplay.paused=!1,n("autoplayResume"))},R=()=>{if(t.destroyed||!t.autoplay.running)return;let k=Me();k.visibilityState==="hidden"&&(E=!0,_(!0)),k.visibilityState==="visible"&&L()},D=k=>{k.pointerType==="mouse"&&(E=!0,m=!0,!(t.animating||t.autoplay.paused)&&_(!0))},M=k=>{k.pointerType==="mouse"&&(m=!1,t.autoplay.paused&&L())},O=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",D),t.el.addEventListener("pointerleave",M))},z=()=>{t.el&&typeof t.el!="string"&&(t.el.removeEventListener("pointerenter",D),t.el.removeEventListener("pointerleave",M))},V=()=>{Me().addEventListener("visibilitychange",R)},T=()=>{Me().removeEventListener("visibilitychange",R)};r("init",()=>{t.params.autoplay.enabled&&(O(),V(),A())}),r("destroy",()=>{z(),T(),t.autoplay.running&&P()}),r("_freeModeStaticRelease",()=>{(h||E)&&L()}),r("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?P():_(!0,!0)}),r("beforeTransitionStart",(k,x,C)=>{t.destroyed||!t.autoplay.running||(C||!t.params.autoplay.disableOnInteraction?_(!0,!0):P())}),r("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){P();return}f=!0,h=!1,E=!1,p=setTimeout(()=>{E=!0,h=!0,_(!0)},200)}}),r("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!f)){if(clearTimeout(p),clearTimeout(s),t.params.autoplay.disableOnInteraction){h=!1,f=!1;return}h&&t.params.cssMode&&L(),h=!1,f=!1}}),r("slideChange",()=>{t.destroyed||!t.autoplay.running||(g=!0)}),Object.assign(t.autoplay,{start:A,stop:P,pause:_,resume:L})}function Yv({swiper:t,extendParams:e,on:r}){e({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let n=!1,i=!1;t.thumbs={swiper:null};function s(){let l=t.thumbs.swiper;if(!l||l.destroyed)return;let c=l.clickedIndex,u=l.clickedSlide;if(u&&u.classList.contains(t.params.thumbs.slideThumbActiveClass)||typeof c>"u"||c===null)return;let d;l.params.loop?d=parseInt(l.clickedSlide.getAttribute("data-swiper-slide-index"),10):d=c,t.params.loop?t.slideToLoop(d):t.slideTo(d)}function a(){let{thumbs:l}=t.params;if(n)return!1;n=!0;let c=t.constructor;if(l.swiper instanceof c){if(l.swiper.destroyed)return n=!1,!1;t.thumbs.swiper=l.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update()}else if(bs(l.swiper)){let u=Object.assign({},l.swiper);Object.assign(u,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new c(u),i=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",s),!0}function o(l){let c=t.thumbs.swiper;if(!c||c.destroyed)return;let u=c.params.slidesPerView==="auto"?c.slidesPerViewDynamic():c.params.slidesPerView,d=1,f=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(d=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(d=1),d=Math.floor(d),c.slides.forEach(g=>g.classList.remove(f)),c.params.loop||c.params.virtual&&c.params.virtual.enabled)for(let g=0;g<d;g+=1)Ne(c.slidesEl,`[data-swiper-slide-index="${t.realIndex+g}"]`).forEach(E=>{E.classList.add(f)});else for(let g=0;g<d;g+=1)c.slides[t.realIndex+g]&&c.slides[t.realIndex+g].classList.add(f);let h=t.params.thumbs.autoScrollOffset,p=h&&!c.params.loop;if(t.realIndex!==c.realIndex||p){let g=c.activeIndex,E,m;if(c.params.loop){let v=c.slides.find(y=>y.getAttribute("data-swiper-slide-index")===`${t.realIndex}`);E=c.slides.indexOf(v),m=t.activeIndex>t.previousIndex?"next":"prev"}else E=t.realIndex,m=E>t.previousIndex?"next":"prev";p&&(E+=m==="next"?h:-1*h),c.visibleSlidesIndexes&&c.visibleSlidesIndexes.indexOf(E)<0&&(c.params.centeredSlides?E>g?E=E-Math.floor(u/2)+1:E=E+Math.floor(u/2)-1:E>g&&c.params.slidesPerGroup,c.slideTo(E,l?0:void 0))}}r("beforeInit",()=>{let{thumbs:l}=t.params;if(!(!l||!l.swiper))if(typeof l.swiper=="string"||l.swiper instanceof HTMLElement){let c=Me(),u=()=>{let f=typeof l.swiper=="string"?c.querySelector(l.swiper):l.swiper;if(f&&f.swiper)l.swiper=f.swiper,a(),o(!0);else if(f){let h=`${t.params.eventsPrefix}init`,p=g=>{l.swiper=g.detail[0],f.removeEventListener(h,p),a(),o(!0),l.swiper.update(),t.update()};f.addEventListener(h,p)}return f},d=()=>{if(t.destroyed)return;u()||requestAnimationFrame(d)};requestAnimationFrame(d)}else a(),o(!0)}),r("slideChange update resize observerUpdate",()=>{o()}),r("setTransition",(l,c)=>{let u=t.thumbs.swiper;!u||u.destroyed||u.setTransition(c)}),r("beforeDestroy",()=>{let l=t.thumbs.swiper;!l||l.destroyed||i&&l.destroy()}),Object.assign(t.thumbs,{init:a,update:o})}function Zv({swiper:t,extendParams:e,emit:r,once:n}){e({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function i(){if(t.params.cssMode)return;let o=t.getTranslate();t.setTranslate(o),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function s(){if(t.params.cssMode)return;let{touchEventsData:o,touches:l}=t;o.velocities.length===0&&o.velocities.push({position:l[t.isHorizontal()?"startX":"startY"],time:o.touchStartTime}),o.velocities.push({position:l[t.isHorizontal()?"currentX":"currentY"],time:St()})}function a({currentPos:o}){if(t.params.cssMode)return;let{params:l,wrapperEl:c,rtlTranslate:u,snapGrid:d,touchEventsData:f}=t,p=St()-f.touchStartTime;if(o<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(o>-t.maxTranslate()){t.slides.length<d.length?t.slideTo(d.length-1):t.slideTo(t.slides.length-1);return}if(l.freeMode.momentum){if(f.velocities.length>1){let A=f.velocities.pop(),P=f.velocities.pop(),_=A.position-P.position,L=A.time-P.time;t.velocity=_/L,t.velocity/=2,Math.abs(t.velocity)<l.freeMode.minimumVelocity&&(t.velocity=0),(L>150||St()-A.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=l.freeMode.momentumVelocityRatio,f.velocities.length=0;let g=1e3*l.freeMode.momentumRatio,E=t.velocity*g,m=t.translate+E;u&&(m=-m);let v=!1,y,S=Math.abs(t.velocity)*20*l.freeMode.momentumBounceRatio,w;if(m<t.maxTranslate())l.freeMode.momentumBounce?(m+t.maxTranslate()<-S&&(m=t.maxTranslate()-S),y=t.maxTranslate(),v=!0,f.allowMomentumBounce=!0):m=t.maxTranslate(),l.loop&&l.centeredSlides&&(w=!0);else if(m>t.minTranslate())l.freeMode.momentumBounce?(m-t.minTranslate()>S&&(m=t.minTranslate()+S),y=t.minTranslate(),v=!0,f.allowMomentumBounce=!0):m=t.minTranslate(),l.loop&&l.centeredSlides&&(w=!0);else if(l.freeMode.sticky){let A;for(let P=0;P<d.length;P+=1)if(d[P]>-m){A=P;break}Math.abs(d[A]-m)<Math.abs(d[A-1]-m)||t.swipeDirection==="next"?m=d[A]:m=d[A-1],m=-m}if(w&&n("transitionEnd",()=>{t.loopFix()}),t.velocity!==0){if(u?g=Math.abs((-m-t.translate)/t.velocity):g=Math.abs((m-t.translate)/t.velocity),l.freeMode.sticky){let A=Math.abs((u?-m:m)-t.translate),P=t.slidesSizesGrid[t.activeIndex];A<P?g=l.speed:A<2*P?g=l.speed*1.5:g=l.speed*2.5}}else if(l.freeMode.sticky){t.slideToClosest();return}l.freeMode.momentumBounce&&v?(t.updateProgress(y),t.setTransition(g),t.setTranslate(m),t.transitionStart(!0,t.swipeDirection),t.animating=!0,zn(c,()=>{!t||t.destroyed||!f.allowMomentumBounce||(r("momentumBounce"),t.setTransition(l.speed),setTimeout(()=>{t.setTranslate(y),zn(c,()=>{!t||t.destroyed||t.transitionEnd()})},0))})):t.velocity?(r("_freeModeNoMomentumRelease"),t.updateProgress(m),t.setTransition(g),t.setTranslate(m),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,zn(c,()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(m),t.updateActiveIndex(),t.updateSlidesClasses()}else if(l.freeMode.sticky){t.slideToClosest();return}else l.freeMode&&r("_freeModeNoMomentumRelease");(!l.freeMode.momentum||p>=l.longSwipesMs)&&(r("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}Object.assign(t,{freeMode:{onTouchStart:i,onTouchMove:s,onTouchEnd:a}})}function Qv({swiper:t,extendParams:e,on:r}){e({grid:{rows:1,fill:"column"}});let n,i,s,a,o=()=>{let p=t.params.spaceBetween;return typeof p=="string"&&p.indexOf("%")>=0?p=parseFloat(p.replace("%",""))/100*t.size:typeof p=="string"&&(p=parseFloat(p)),p},l=p=>{let{slidesPerView:g}=t.params,{rows:E,fill:m}=t.params.grid,v=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:p.length;s=Math.floor(v/E),Math.floor(v/E)===v/E?n=v:n=Math.ceil(v/E)*E,g!=="auto"&&m==="row"&&(n=Math.max(n,g*E)),i=n/E},c=()=>{t.slides&&t.slides.forEach(p=>{p.swiperSlideGridSet&&(p.style.height="",p.style[t.getDirectionLabel("margin-top")]="")})},u=(p,g,E)=>{let{slidesPerGroup:m}=t.params,v=o(),{rows:y,fill:S}=t.params.grid,w=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:E.length,A,P,_;if(S==="row"&&m>1){let L=Math.floor(p/(m*y)),R=p-y*m*L,D=L===0?m:Math.min(Math.ceil((w-L*y*m)/y),m);_=Math.floor(R/D),P=R-_*D+L*m,A=P+_*n/y,g.style.order=A}else S==="column"?(P=Math.floor(p/y),_=p-P*y,(P>s||P===s&&_===y-1)&&(_+=1,_>=y&&(_=0,P+=1))):(_=Math.floor(p/i),P=p-_*i);g.row=_,g.column=P,g.style.height=`calc((100% - ${(y-1)*v}px) / ${y})`,g.style[t.getDirectionLabel("margin-top")]=_!==0?v&&`${v}px`:"",g.swiperSlideGridSet=!0},d=(p,g)=>{let{centeredSlides:E,roundLengths:m}=t.params,v=o(),{rows:y}=t.params.grid;if(t.virtualSize=(p+v)*n,t.virtualSize=Math.ceil(t.virtualSize/y)-v,t.params.cssMode||(t.wrapperEl.style[t.getDirectionLabel("width")]=`${t.virtualSize+v}px`),E){let S=[];for(let w=0;w<g.length;w+=1){let A=g[w];m&&(A=Math.floor(A)),g[w]<t.virtualSize+g[0]&&S.push(A)}g.splice(0,g.length),g.push(...S)}},f=()=>{a=t.params.grid&&t.params.grid.rows>1},h=()=>{let{params:p,el:g}=t,E=p.grid&&p.grid.rows>1;a&&!E?(g.classList.remove(`${p.containerModifierClass}grid`,`${p.containerModifierClass}grid-column`),s=1,t.emitContainerClasses()):!a&&E&&(g.classList.add(`${p.containerModifierClass}grid`),p.grid.fill==="column"&&g.classList.add(`${p.containerModifierClass}grid-column`),t.emitContainerClasses()),a=E};r("init",f),r("update",h),t.grid={initSlides:l,unsetSlides:c,updateSlide:u,updateWrapperSize:d}}function g2(t){let e=this,{params:r,slidesEl:n}=e;r.loop&&e.loopDestroy();let i=s=>{if(typeof s=="string"){let a=document.createElement("div");Ge(a,s),n.append(a.children[0]),Ge(a,"")}else n.append(s)};if(typeof t=="object"&&"length"in t)for(let s=0;s<t.length;s+=1)t[s]&&i(t[s]);else i(t);e.recalcSlides(),r.loop&&e.loopCreate(),(!r.observer||e.isElement)&&e.update()}function v2(t){let e=this,{params:r,activeIndex:n,slidesEl:i}=e;r.loop&&e.loopDestroy();let s=n+1,a=o=>{if(typeof o=="string"){let l=document.createElement("div");Ge(l,o),i.prepend(l.children[0]),Ge(l,"")}else i.prepend(o)};if(typeof t=="object"&&"length"in t){for(let o=0;o<t.length;o+=1)t[o]&&a(t[o]);s=n+t.length}else a(t);e.recalcSlides(),r.loop&&e.loopCreate(),(!r.observer||e.isElement)&&e.update(),e.slideTo(s,0,!1)}function y2(t,e){let r=this,{params:n,activeIndex:i,slidesEl:s}=r,a=i;n.loop&&(a-=r.loopedSlides,r.loopDestroy(),r.recalcSlides());let o=r.slides.length;if(t<=0){r.prependSlide(e);return}if(t>=o){r.appendSlide(e);return}let l=a>t?a+1:a,c=[];for(let u=o-1;u>=t;u-=1){let d=r.slides[u];d.remove(),c.unshift(d)}if(typeof e=="object"&&"length"in e){for(let u=0;u<e.length;u+=1)e[u]&&s.append(e[u]);l=a>t?a+e.length:a}else s.append(e);for(let u=0;u<c.length;u+=1)s.append(c[u]);r.recalcSlides(),n.loop&&r.loopCreate(),(!n.observer||r.isElement)&&r.update(),n.loop?r.slideTo(l+r.loopedSlides,0,!1):r.slideTo(l,0,!1)}function S2(t){let e=this,{params:r,activeIndex:n}=e,i=n;r.loop&&(i-=e.loopedSlides,e.loopDestroy());let s=i,a;if(typeof t=="object"&&"length"in t){for(let o=0;o<t.length;o+=1)a=t[o],e.slides[a]&&e.slides[a].remove(),a<s&&(s-=1);s=Math.max(s,0)}else a=t,e.slides[a]&&e.slides[a].remove(),a<s&&(s-=1),s=Math.max(s,0);e.recalcSlides(),r.loop&&e.loopCreate(),(!r.observer||e.isElement)&&e.update(),r.loop?e.slideTo(s+e.loopedSlides,0,!1):e.slideTo(s,0,!1)}function E2(){let t=this,e=[];for(let r=0;r<t.slides.length;r+=1)e.push(r);t.removeSlide(e)}function Jv({swiper:t}){Object.assign(t,{appendSlide:g2.bind(t),prependSlide:v2.bind(t),addSlide:y2.bind(t),removeSlide:S2.bind(t),removeAllSlides:E2.bind(t)})}function fr(t){let{effect:e,swiper:r,on:n,setTranslate:i,setTransition:s,overwriteParams:a,perspective:o,recreateShadows:l,getEffectParams:c}=t;n("beforeInit",()=>{if(r.params.effect!==e)return;r.classNames.push(`${r.params.containerModifierClass}${e}`),o&&o()&&r.classNames.push(`${r.params.containerModifierClass}3d`);let d=a?a():{};Object.assign(r.params,d),Object.assign(r.originalParams,d)}),n("setTranslate _virtualUpdated",()=>{r.params.effect===e&&i()}),n("setTransition",(d,f)=>{r.params.effect===e&&s(f)}),n("transitionEnd",()=>{if(r.params.effect===e&&l){if(!c||!c().slideShadows)return;r.slides.forEach(d=>{d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>f.remove())}),l()}});let u;n("virtualUpdate",()=>{r.params.effect===e&&(r.slides.length||(u=!0),requestAnimationFrame(()=>{u&&r.slides&&r.slides.length&&(i(),u=!1)}))})}function Yr(t,e){let r=Dt(e);return r!==e&&(r.style.backfaceVisibility="hidden",r.style["-webkit-backface-visibility"]="hidden"),r}function qn({swiper:t,duration:e,transformElements:r,allSlides:n}){let{activeIndex:i}=t,s=a=>a.parentElement?a.parentElement:t.slides.find(l=>l.shadowRoot&&l.shadowRoot===a.parentNode);if(t.params.virtualTranslate&&e!==0){let a=!1,o;n?o=r:o=r.filter(l=>{let c=l.classList.contains("swiper-slide-transform")?s(l):l;return t.getSlideIndex(c)===i}),o.forEach(l=>{zn(l,()=>{if(a||!t||t.destroyed)return;a=!0,t.animating=!1;let c=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(c)})})}}function Kv({swiper:t,extendParams:e,on:r}){e({fadeEffect:{crossFade:!1}}),fr({effect:"fade",swiper:t,on:r,setTranslate:()=>{let{slides:s}=t,a=t.params.fadeEffect;for(let o=0;o<s.length;o+=1){let l=t.slides[o],u=-l.swiperSlideOffset;t.params.virtualTranslate||(u-=t.translate);let d=0;t.isHorizontal()||(d=u,u=0);let f=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(l.progress),0):1+Math.min(Math.max(l.progress,-1),0),h=Yr(a,l);h.style.opacity=f,h.style.transform=`translate3d(${u}px, ${d}px, 0px)`}},setTransition:s=>{let a=t.slides.map(o=>Dt(o));a.forEach(o=>{o.style.transitionDuration=`${s}ms`}),qn({swiper:t,duration:s,transformElements:a,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function ey({swiper:t,extendParams:e,on:r}){e({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});let n=(o,l,c)=>{let u=c?o.querySelector(".swiper-slide-shadow-left"):o.querySelector(".swiper-slide-shadow-top"),d=c?o.querySelector(".swiper-slide-shadow-right"):o.querySelector(".swiper-slide-shadow-bottom");u||(u=He("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"left":"top"}`.split(" ")),o.append(u)),d||(d=He("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"right":"bottom"}`.split(" ")),o.append(d)),u&&(u.style.opacity=Math.max(-l,0)),d&&(d.style.opacity=Math.max(l,0))};fr({effect:"cube",swiper:t,on:r,setTranslate:()=>{let{el:o,wrapperEl:l,slides:c,width:u,height:d,rtlTranslate:f,size:h,browser:p}=t,g=Hn(t),E=t.params.cubeEffect,m=t.isHorizontal(),v=t.virtual&&t.params.virtual.enabled,y=0,S;E.shadow&&(m?(S=t.wrapperEl.querySelector(".swiper-cube-shadow"),S||(S=He("div","swiper-cube-shadow"),t.wrapperEl.append(S)),S.style.height=`${u}px`):(S=o.querySelector(".swiper-cube-shadow"),S||(S=He("div","swiper-cube-shadow"),o.append(S))));for(let A=0;A<c.length;A+=1){let P=c[A],_=A;v&&(_=parseInt(P.getAttribute("data-swiper-slide-index"),10));let L=_*90,R=Math.floor(L/360);f&&(L=-L,R=Math.floor(-L/360));let D=Math.max(Math.min(P.progress,1),-1),M=0,O=0,z=0;_%4===0?(M=-R*4*h,z=0):(_-1)%4===0?(M=0,z=-R*4*h):(_-2)%4===0?(M=h+R*4*h,z=h):(_-3)%4===0&&(M=-h,z=3*h+h*4*R),f&&(M=-M),m||(O=M,M=0);let V=`rotateX(${g(m?0:-L)}deg) rotateY(${g(m?L:0)}deg) translate3d(${M}px, ${O}px, ${z}px)`;D<=1&&D>-1&&(y=_*90+D*90,f&&(y=-_*90-D*90)),P.style.transform=V,E.slideShadows&&n(P,D,m)}if(l.style.transformOrigin=`50% 50% -${h/2}px`,l.style["-webkit-transform-origin"]=`50% 50% -${h/2}px`,E.shadow)if(m)S.style.transform=`translate3d(0px, ${u/2+E.shadowOffset}px, ${-u/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${E.shadowScale})`;else{let A=Math.abs(y)-Math.floor(Math.abs(y)/90)*90,P=1.5-(Math.sin(A*2*Math.PI/360)/2+Math.cos(A*2*Math.PI/360)/2),_=E.shadowScale,L=E.shadowScale/P,R=E.shadowOffset;S.style.transform=`scale3d(${_}, 1, ${L}) translate3d(0px, ${d/2+R}px, ${-d/2/L}px) rotateX(-89.99deg)`}let w=(p.isSafari||p.isWebView)&&p.needPerspectiveFix?-h/2:0;l.style.transform=`translate3d(0px,0,${w}px) rotateX(${g(t.isHorizontal()?0:y)}deg) rotateY(${g(t.isHorizontal()?-y:0)}deg)`,l.style.setProperty("--swiper-cube-translate-z",`${w}px`)},setTransition:o=>{let{el:l,slides:c}=t;if(c.forEach(u=>{u.style.transitionDuration=`${o}ms`,u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${o}ms`})}),t.params.cubeEffect.shadow&&!t.isHorizontal()){let u=l.querySelector(".swiper-cube-shadow");u&&(u.style.transitionDuration=`${o}ms`)}},recreateShadows:()=>{let o=t.isHorizontal();t.slides.forEach(l=>{let c=Math.max(Math.min(l.progress,1),-1);n(l,c,o)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function Zr(t,e,r){let n=`swiper-slide-shadow${r?`-${r}`:""}${t?` swiper-slide-shadow-${t}`:""}`,i=Dt(e),s=i.querySelector(`.${n.split(" ").join(".")}`);return s||(s=He("div",n.split(" ")),i.append(s)),s}function ty({swiper:t,extendParams:e,on:r}){e({flipEffect:{slideShadows:!0,limitRotation:!0}});let n=(o,l)=>{let c=t.isHorizontal()?o.querySelector(".swiper-slide-shadow-left"):o.querySelector(".swiper-slide-shadow-top"),u=t.isHorizontal()?o.querySelector(".swiper-slide-shadow-right"):o.querySelector(".swiper-slide-shadow-bottom");c||(c=Zr("flip",o,t.isHorizontal()?"left":"top")),u||(u=Zr("flip",o,t.isHorizontal()?"right":"bottom")),c&&(c.style.opacity=Math.max(-l,0)),u&&(u.style.opacity=Math.max(l,0))};fr({effect:"flip",swiper:t,on:r,setTranslate:()=>{let{slides:o,rtlTranslate:l}=t,c=t.params.flipEffect,u=Hn(t);for(let d=0;d<o.length;d+=1){let f=o[d],h=f.progress;t.params.flipEffect.limitRotation&&(h=Math.max(Math.min(f.progress,1),-1));let p=f.swiperSlideOffset,E=-180*h,m=0,v=t.params.cssMode?-p-t.translate:-p,y=0;t.isHorizontal()?l&&(E=-E):(y=v,v=0,m=-E,E=0),f.style.zIndex=-Math.abs(Math.round(h))+o.length,c.slideShadows&&n(f,h);let S=`translate3d(${v}px, ${y}px, 0px) rotateX(${u(m)}deg) rotateY(${u(E)}deg)`,w=Yr(c,f);w.style.transform=S}},setTransition:o=>{let l=t.slides.map(c=>Dt(c));l.forEach(c=>{c.style.transitionDuration=`${o}ms`,c.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${o}ms`})}),qn({swiper:t,duration:o,transformElements:l})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach(o=>{let l=o.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(o.progress,1),-1)),n(o,l)})},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function ry({swiper:t,extendParams:e,on:r}){e({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),fr({effect:"coverflow",swiper:t,on:r,setTranslate:()=>{let{width:s,height:a,slides:o,slidesSizesGrid:l}=t,c=t.params.coverflowEffect,u=t.isHorizontal(),d=t.translate,f=u?-d+s/2:-d+a/2,h=u?c.rotate:-c.rotate,p=c.depth,g=Hn(t);for(let E=0,m=o.length;E<m;E+=1){let v=o[E],y=l[E],S=v.swiperSlideOffset,w=(f-S-y/2)/y,A=typeof c.modifier=="function"?c.modifier(w):w*c.modifier,P=u?h*A:0,_=u?0:h*A,L=-p*Math.abs(A),R=c.stretch;typeof R=="string"&&R.indexOf("%")!==-1&&(R=parseFloat(c.stretch)/100*y);let D=u?0:R*A,M=u?R*A:0,O=1-(1-c.scale)*Math.abs(A);Math.abs(M)<.001&&(M=0),Math.abs(D)<.001&&(D=0),Math.abs(L)<.001&&(L=0),Math.abs(P)<.001&&(P=0),Math.abs(_)<.001&&(_=0),Math.abs(O)<.001&&(O=0);let z=`translate3d(${M}px,${D}px,${L}px)  rotateX(${g(_)}deg) rotateY(${g(P)}deg) scale(${O})`,V=Yr(c,v);if(V.style.transform=z,v.style.zIndex=-Math.abs(Math.round(A))+1,c.slideShadows){let T=u?v.querySelector(".swiper-slide-shadow-left"):v.querySelector(".swiper-slide-shadow-top"),k=u?v.querySelector(".swiper-slide-shadow-right"):v.querySelector(".swiper-slide-shadow-bottom");T||(T=Zr("coverflow",v,u?"left":"top")),k||(k=Zr("coverflow",v,u?"right":"bottom")),T&&(T.style.opacity=A>0?A:0),k&&(k.style.opacity=-A>0?-A:0)}}},setTransition:s=>{t.slides.map(o=>Dt(o)).forEach(o=>{o.style.transitionDuration=`${s}ms`,o.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(l=>{l.style.transitionDuration=`${s}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function ny({swiper:t,extendParams:e,on:r}){e({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});let n=a=>typeof a=="string"?a:`${a}px`;fr({effect:"creative",swiper:t,on:r,setTranslate:()=>{let{slides:a,wrapperEl:o,slidesSizesGrid:l}=t,c=t.params.creativeEffect,{progressMultiplier:u}=c,d=t.params.centeredSlides,f=Hn(t);if(d){let h=l[0]/2-t.params.slidesOffsetBefore||0;o.style.transform=`translateX(calc(50% - ${h}px))`}for(let h=0;h<a.length;h+=1){let p=a[h],g=p.progress,E=Math.min(Math.max(p.progress,-c.limitProgress),c.limitProgress),m=E;d||(m=Math.min(Math.max(p.originalProgress,-c.limitProgress),c.limitProgress));let v=p.swiperSlideOffset,y=[t.params.cssMode?-v-t.translate:-v,0,0],S=[0,0,0],w=!1;t.isHorizontal()||(y[1]=y[0],y[0]=0);let A={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};E<0?(A=c.next,w=!0):E>0&&(A=c.prev,w=!0),y.forEach((O,z)=>{y[z]=`calc(${O}px + (${n(A.translate[z])} * ${Math.abs(E*u)}))`}),S.forEach((O,z)=>{let V=A.rotate[z]*Math.abs(E*u);S[z]=V}),p.style.zIndex=-Math.abs(Math.round(g))+a.length;let P=y.join(", "),_=`rotateX(${f(S[0])}deg) rotateY(${f(S[1])}deg) rotateZ(${f(S[2])}deg)`,L=m<0?`scale(${1+(1-A.scale)*m*u})`:`scale(${1-(1-A.scale)*m*u})`,R=m<0?1+(1-A.opacity)*m*u:1-(1-A.opacity)*m*u,D=`translate3d(${P}) ${_} ${L}`;if(w&&A.shadow||!w){let O=p.querySelector(".swiper-slide-shadow");if(!O&&A.shadow&&(O=Zr("creative",p)),O){let z=c.shadowPerProgress?E*(1/c.limitProgress):E;O.style.opacity=Math.min(Math.max(Math.abs(z),0),1)}}let M=Yr(c,p);M.style.transform=D,M.style.opacity=R,A.origin&&(M.style.transformOrigin=A.origin)}},setTransition:a=>{let o=t.slides.map(l=>Dt(l));o.forEach(l=>{l.style.transitionDuration=`${a}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${a}ms`})}),qn({swiper:t,duration:a,transformElements:o,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}function iy({swiper:t,extendParams:e,on:r}){e({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),fr({effect:"cards",swiper:t,on:r,setTranslate:()=>{let{slides:s,activeIndex:a,rtlTranslate:o}=t,l=t.params.cardsEffect,{startTranslate:c,isTouched:u}=t.touchEventsData,d=o?-t.translate:t.translate;for(let f=0;f<s.length;f+=1){let h=s[f],p=h.progress,g=Math.min(Math.max(p,-4),4),E=h.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(E-=s[0].swiperSlideOffset);let m=t.params.cssMode?-E-t.translate:-E,v=0,y=-100*Math.abs(g),S=1,w=-l.perSlideRotate*g,A=l.perSlideOffset-Math.abs(g)*.75,P=t.virtual&&t.params.virtual.enabled?t.virtual.from+f:f,_=(P===a||P===a-1)&&g>0&&g<1&&(u||t.params.cssMode)&&d<c,L=(P===a||P===a+1)&&g<0&&g>-1&&(u||t.params.cssMode)&&d>c;if(_||L){let O=(1-Math.abs((Math.abs(g)-.5)/.5))**.5;w+=-28*g*O,S+=-.5*O,A+=96*O,v=`${(l.rotate||t.isHorizontal()?-25:0)*O*Math.abs(g)}%`}if(g<0?m=`calc(${m}px ${o?"-":"+"} (${A*Math.abs(g)}%))`:g>0?m=`calc(${m}px ${o?"-":"+"} (-${A*Math.abs(g)}%))`:m=`${m}px`,!t.isHorizontal()){let O=v;v=m,m=O}let R=g<0?`${1+(1-S)*g}`:`${1-(1-S)*g}`,D=`
40        translate3d(${m}, ${v}, ${y}px)
41        rotateZ(${l.rotate?o?-w:w:0}deg)
42        scale(${R})
43      `;if(l.slideShadows){let O=h.querySelector(".swiper-slide-shadow");O||(O=Zr("cards",h)),O&&(O.style.opacity=Math.min(Math.max((Math.abs(g)-.5)/.5,0),1))}h.style.zIndex=-Math.abs(Math.round(p))+s.length;let M=Yr(l,h);M.style.transform=D}},setTransition:s=>{let a=t.slides.map(o=>Dt(o));a.forEach(o=>{o.style.transitionDuration=`${s}ms`,o.querySelectorAll(".swiper-slide-shadow").forEach(l=>{l.style.transitionDuration=`${s}ms`})}),qn({swiper:t,duration:s,transformElements:a})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:t.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})}var x2=[Fv,Bv,Rv,$v,Vv,zv,Hv,Gv,qv,jv,Wv,Uv,Xv,Yv,Zv,Qv,Jv,Kv,ey,ty,ry,ny,iy];Gn.use(x2);var Cs=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesB
43ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Ai(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Sc(t,e){let r=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>r.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:Ai(e[n])&&Ai(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:Sc(t[n],e[n]):t[n]=e[n]})}function sy(t={}){return t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function ay(t={}){return t.pagination&&typeof t.pagination.el>"u"}function oy(t={}){return t.scrollbar&&typeof t.scrollbar.el>"u"}function Ts(t=""){return t.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}function ly({swiper:t,slides:e,passedParams:r,changedParams:n,nextEl:i,prevEl:s,scrollbarEl:a,paginationEl:o}){let l=n.filter(_=>_!=="children"&&_!=="direction"&&_!=="wrapperClass"),{params:c,pagination:u,navigation:d,scrollbar:f,virtual:h,thumbs:p}=t,g,E,m,v,y,S,w,A;n.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(g=!0),n.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(E=!0),n.includes("pagination")&&r.pagination&&(r.pagination.el||o)&&(c.pagination||c.pagination===!1)&&u&&!u.el&&(m=!0),n.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&f&&!f.el&&(v=!0),n.includes("navigation")&&r.navigation&&(r.navigation.prevEl||s)&&(r.navigation.nextEl||i)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(y=!0);let P=_=>{t[_]&&(t[_].destroy(),_==="navigation"?(t.isElement&&(t[_].prevEl.remove(),t[_].nextEl.remove()),c[_].prevEl=void 0,c[_].nextEl=void 0,t[_].prevEl=void 0,t[_].nextEl=void 0):(t.isElement&&t[_].el.remove(),c[_].el=void 0,t[_].el=void 0))};n.includes("loop")&&t.isElement&&(c.loop&&!r.loop?S=!0:!c.loop&&r.loop?w=!0:A=!0),l.forEach(_=>{if(Ai(c[_])&&Ai(r[_]))Object.assign(c[_],r[_]),(_==="navigation"||_==="pagination"||_==="scrollbar")&&"enabled"in r[_]&&!r[_].enabled&&P(_);else{let L=r[_];(L===!0||L===!1)&&(_==="navigation"||_==="pagination"||_==="scrollbar")?L===!1&&P(_):c[_]=r[_]}}),l.includes("controller")&&!E&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),n.includes("children")&&e&&h&&c.virtual.enabled?(h.slides=e,h.update(!0)):n.includes("virtual")&&h&&c.virtual.enabled&&(e&&(h.slides=e),h.update(!0)),n.includes("children")&&e&&c.loop&&(A=!0),g&&p.init()&&p.update(!0),E&&(t.controller.control=c.controller.control),m&&(t.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-pagination"),o.part.add("pagination"),t.el.appendChild(o)),o&&(c.pagination.el=o),u.init(),u.render(),u.update(
vendor: 8,993 bytes, line 43
43)),v&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.appendChild(a)),a&&(c.scrollbar.el=a),f.init(),f.updateSize(),f.setTranslate()),y&&(t.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),Ge(i,t.navigation.arrowSvg),i.part.add("button-next"),t.el.appendChild(i)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),Ge(s,t.navigation.arrowSvg),s.part.add("button-prev"),t.el.appendChild(s))),i&&(c.navigation.nextEl=i),s&&(c.navigation.prevEl=s),d.init(),d.update()),n.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),n.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),n.includes("direction")&&t.changeDirection(r.direction,!1),(S||A)&&t.loopDestroy(),(w||A)&&t.loopCreate(),t.update()}var cy=t=>{if(parseFloat(t)===Number(t))return Number(t);if(t==="true"||t==="")return!0;if(t==="false")return!1;if(t==="null")return null;if(t!=="undefined"){if(typeof t=="string"&&t.includes("{")&&t.includes("}")&&t.includes('"')){let e;try{e=JSON.parse(t)}catch{e=t}return e}return t}},uy=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function sp(t,e,r){let n={},i={};Sc(n,yc);let s=[...Cs,"on"],a=s.map(l=>l.replace(/_/,""));s.forEach(l=>{l=l.replace("_",""),typeof t[l]<"u"&&(i[l]=t[l])});let o=[...t.attributes];return typeof e=="string"&&typeof r<"u"&&o.push({name:e,value:Ai(r)?G({},r):r}),o.forEach(l=>{let c=uy.find(u=>l.name.startsWith(`${u}-`));if(c){let u=Ts(c),d=Ts(l.name.split(`${c}-`)[1]);typeof i[u]>"u"&&(i[u]={}),i[u]===!0&&(i[u]={enabled:!0}),i[u]===!1&&(i[u]={enabled:!1}),i[u][d]=cy(l.value)}else{let u=Ts(l.name);if(!a.includes(u))return;let d=cy(l.value);i[u]&&uy.includes(l.name)&&!Ai(d)?(i[u].constructor!==Object&&(i[u]={}),i[u].enabled=!!d):i[u]=d}}),Sc(n,i),n.navigation?n.navigation=G({prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},n.navigation!==!0?n.navigation:{}):n.navigation===!1&&delete n.navigation,n.scrollbar?n.scrollbar=G({el:".swiper-scrollbar"},n.scrollbar!==!0?n.scrollbar:{}):n.scrollbar===!1&&delete n.scrollbar,n.pagination?n.pagination=G({el:".swiper-pagination"},n.pagination!==!0?n.pagination:{}):n.pagination===!1&&delete n.pagination,{params:n,passedParams:i}}var b2=':host{--swiper-theme-color:#007aff}:host{display:block;margin-left:auto;margin-right:auto;position:relative;z-index:1}.swiper{display:block;height:100%;list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0;position:relative;width:100%;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:initial;display:flex;height:100%;position:relative;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);width:100%;z-index:1}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){display:block;flex-shrink:0;height:100%;position:relative;transition-property:transform;width:100%}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper:after{content:"";left:0;pointer-events:none;position:absolute;top:0}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{align-items:center;color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;display:flex;height:var(--swiper-navigation-size);justify-content:center;position:absolute;width:var(--swiper-navigation-size);z-index:10}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{height:100%;object-fit:contain;transform-origin:center;width:100%;fill:currentColor;pointer-events:none}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.swiper-button-prev .swiper-navigation-icon{transform:rotate(180deg)}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal .swiper-button-next,.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-next,.swiper-horizontal~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-horizontal .swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next,.swiper-horizontal~.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.swiper-horizontal .swiper-button-next,.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev,.swiper-horizontal~.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal .swiper-button-prev .swiper-navigation-icon,.swiper-horizontal.swiper-rtl .swiper-button-next .swiper-navigation-icon,.swiper-horizontal.swiper-rtl~.swiper-button-next .swiper-navigation-icon,.swiper-horizontal~.swiper-button-prev .swiper-navigation-icon{transform:rotate(180deg)}.swiper-horizontal.swiper-rtl .swiper-button-prev .swiper-navigation-icon,.swiper-horizontal.swiper-rtl~.swiper-button-prev .swiper-navigation-icon{transform:rotate(0deg)}.swiper-vertical .swiper-button-next,.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-next,.swiper-vertical~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px)}.swiper-vertical .swiper-button-prev .swiper-navigation-icon,.swiper-vertical~.swiper-button-prev .swiper-navigation-icon{transform:rotate(-90deg)}.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto}.swiper-vertical .swiper-button-next .swiper-navigation-icon,.swiper-vertical~.swiper-button-next .swiper-navigation-icon
vendor: 8,763 bytes, line 43
43{transform:rotate(90deg)}.swiper-pagination{position:absolute;text-align:center;transform:translateZ(0);transition:opacity .3s;z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);display:inline-block;height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px))}button.swiper-pagination-bullet{appearance:none;border:none;box-shadow:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translate3d(0,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{display:block;margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:transform .2s,top .2s}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));height:100%;left:0;position:absolute;top:0;transform:scale(0);transform-origin:left top;width:100%}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0;width:100%}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{height:100%;left:0;top:0;width:var(--swiper-pagination-progressbar-size,4px)}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);position:absolute;top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset, 1%)*2);z-index:50}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{height:calc(100% - var(--swiper-scrollbar-sides-offset, 1%)*2);left:var(--swiper-scrollbar-left,auto);position:absolute;right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);height:100%;left:0;position:relative;top:0;width:100%}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{left:0;opacity:0;pointer-events:none;position:absolute;top:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{margin:0 auto;transition-timing-function:ease-out}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-direction:column;flex-wrap:wrap}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){backface-visibility:hidden;height:100%;pointer-events:none;transform-origin:0 0;visibility:hidden;width:100%;z-index:1}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{bottom:0;height:100%;left:0;opacity:.6;position:absolute;width:100%;z-index:0}.swiper-cube .swiper-cube-shadow:before{background:#000;bottom:0;content:"";filter:blur(50px);left:0;position:absolute;right:0;top:0}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){backface-visibility:hidden;pointer-events:none;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){backface-visibility:hidden;overflow:hidden;transform-origin:center bottom}',
vendor: 8,797 bytes, lines 43-65
43w2="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}::slotted(.swiper-slide-shadow){background:#00000026}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(270deg,#00000080,#0000)}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(90deg,#00000080,#0000)}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(0deg,#00000080,#0000)}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(180deg,#00000080,#0000)}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s linear infinite;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top:4px solid #0000;box-sizing:border-box;height:42px;left:50%;margin-left:-21px;margin-top:-21px;position:absolute;top:50%;transform-origin:50%;width:42px;z-index:10}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){backface-visibility:hidden;z-index:0}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){backface-visibility:hidden;z-index:0}::slotted(.swiper-zoom-container){align-items:center;display:flex;height:100%;justify-content:center;text-align:center;width:100%}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-height:100%;max-width:100%;object-fit:contain}",ap=class{},hy=typeof window>"u"||typeof HTMLElement>"u"?ap:HTMLElement,py=(t,e)=>{if(typeof CSSStyleSheet<"u"&&t.adoptedStyleSheets){let r=new CSSStyleSheet;r.replaceSync(e),t.adoptedStyleSheets=[r]}else{let r=document.createElement("style");r.rel="stylesheet",r.textContent=e,t.appendChild(r)}},Ec=class extends hy{constructor(){super(),this.attachShadow({mode:"open"})}cssStyles(){return[b2,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(`
44`)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){let e=this.slideSlots||0,r=[...this.querySelectorAll("[slot^=slide-]")].map(n=>parseInt(n.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=r.length?Math.max(...r)+1:0,!!this.rendered){if(this.slideSlots>e)for(let n=e;n<this.slideSlots;n+=1){let i=document.createElement("swiper-slide");i.setAttribute("part",`slide slide-${n+1}`);let s=document.createElement("slot");s.setAttribute("name",`slide-${n+1}`),i.appendChild(s),this.shadowRoot.querySelector(".swiper-wrapper").appendChild(i)}else if(this.slideSlots<e){let n=this.swiper.slides;for(let i=n.length-1;i>=0;i-=1)i>this.slideSlots&&n[i].remove()}}}render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&py(this.shadowRoot,e),this.cssLinks().forEach(n=>{if(this.shadowRoot.querySelector(`link[href="${n}"]`))return;let s=document.createElement("link");s.rel="stylesheet",s.href=n,this.shadowRoot.appendChild(s)});let r=document.createElement("div");r.classList.add("swiper"),r.part="container",Ge(r,`
45      <slot name="container-start"></slot>
46      <div class="swiper-wrapper" part="wrapper">
47        <slot></slot>
48        ${Array.from({length:this.slideSlots}).map((n,i)=>`
49        <swiper-slide part="slide slide-${i}">
50          <slot name="slide-${i}"></slot>
51        </swiper-slide>
52        `).join("")}
53      </div>
54      <slot name="container-end"></slot>
55      ${sy(this.passedParams)?`
56        <div part="button-prev" class="swiper-button-prev"></div>
57        <div part="button-next" class="swiper-button-next"></div>
58      `:""}
59      ${ay(this.passedParams)?`
60        <div part="pagination" class="swiper-pagination"></div>
61      `:""}
62      ${oy(this.passedParams)?`
63        <div part="scrollbar" class="swiper-scrollbar"></div>
64      `:""}
65    `),this.shadowRoot.appendChild(r),this.rendered=!0}initialize(){if(this.swiper&&this.swiper.initialized)return;let{params:e,passedParams:r}=sp(this);this.swiperParams=e,this.passedParams=r,delete this.swiperParams.init,this.render(),this.swiper=new Gn(this.shadowRoot.querySelector(".swiper"),Pe(G(G({},e.virtual?{}:{observer:!0}),e),{touchEventsTarget:"container",onAny:(n,...i)=>{n==="observerUpdate"&&this.calcSlideSlots();let s=e.eventsPrefix?`${e.eventsPrefix}${n.toLowerCase()}`:n.toLowerCase(),a=new CustomEvent(s,{detail:i,bubbles:n!=="hashChange",cancelable:!0});this.dispatchEvent(a)}}))}connectedCallback(){this.swiper&&this.swiper.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.init===!1||this.getAttribute("init")==="false"||this.initialize()}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.swiper&&this.swiper.destroy&&this.swiper.destroy()}updateSwiperOnPropChange(e,r){let{params:n,passedParams:i}=sp(this,e,r);this.passedParams=i,this.swiperParams=n,!(this.swiper&&this.swiper.params[e]===r)&&ly(G(G(G({swiper:this.swiper,passedParams:this.passedParams,changedParams:[Ts(e)]},e==="navigation"&&i[e]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{}),e==="pagination"&&i[e]?{paginationEl:".swiper-pagination"}:{}),e==="scrollbar"&&i[e]?{scrollbarEl:".swiper-scrollbar"}:{}))}attributeChangedCallback(e,r,n){this.swiper&&this.swiper.initialized&&(r==="true"&&n===null&&(n=!1),this.updateSwiperOnPropChange(e,n))}static get observedAttributes(){return Cs.filter(r=>r.includes("_")).map(r=>r.replace(/[A-Z]/g,n=>`-${n}`).replace("_","").toLowerCase())}};Cs.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(Ec.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.swiper&&this.swiper.initialized&&this.updateSwiperOnPropChange(t,e)}}))});var op=class extends hy{constructor(){super(),this.attachShadow({mode:"open"})}render(){let e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(py(this.shadowRoot,w2),this.shadowRoot.appendChild(document.createElement("slot")),e){let r=document.createElement("div");r.classList.add("swiper-lazy-preloader"),r.part.add("preloader"),this.shadowRoot.appendChild(r)}}initialize(){this.render()}connectedCallback(){this.swiperLoopMoveDOM||this.initialize()}},fy=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",Ec),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",op))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Cs.push(...t)});function _2(t,e){if(t&1&&Mr(0,"app-spinner",0),t&2){let r=e;uo("type",r.type)("message",r.message)("active",r.isActive)("appTypeInputString",r.appTypeInputString)}}function k2(t,e){if(t&1){let r=Tc();dr(0,"app-mobile-dialog",3),Qt(1,"translate"),Qt(2,"translate"),Qt(3,"translate"),Ac("primaryAction",function(){As(r);let i=ki();return _s(i.updateApp())})("secondaryAction",function(){As(r);let i=ki();return _s(i.appUpdateSettingsService.isUpdateRequiredDialogOpen.set(!1))}),dr(4,"div",4),Mr(5,"ion-icon",5),Jr(),dr(6,"p",6),Pi(7),Jr()()}if(t&2){let r=ki();uo("title",Jt(1,4,"upgrade.title"))("primaryButtonText",Jt(2,6,"app.update.update.button"))("secondaryButtonText",Jt(3,8,"upgrade.btn.update_later")),Qr(7),xp(" ",r.appUpdateSettingsService.updateRequiredMessage()," ")}}function P2(t,e){if(t&1){let r=Tc();dr(0,"app-mobile-dialog",7),Qt(1,"translate"),Qt(2,"translate"),Qt(3,"translate"),Ac("primaryAction",function(){As(r);let i=ki();return _s(i.handleResetLocalData())})("secondaryAction",function(){As(r);let i=ki();return _s(i.supportService.isResetDataDialogOpen.set(!1))}),dr(4,"div",8),Mr(5,"ion-icon",9),Jr(),dr(6,"p",6),Pi(7),Qt(8,"translate"),Jr()()}t&2&&(uo("title",Jt(1,4,"support.selector.warning"))("primaryButtonText",Jt(2,6,"support.reset-data.button"))("secondaryButtonText",Jt(3,8,"btn.cancel")),Qr(7),Ps(Jt(8,10,"support.reset-data.description")))}fy();var dy=(()=>{let e=class e{constructor(n,i,s,a,o,l,c,u,d,f,h){this.deviceService=n,this.platform=i,this.i18n=s,this.spinnerService=a,this.screenManipulationService=o,this.offlineCheckerService=l,this.appTypeService=c,this.appUpdateSettingsService=u,this.logger=
65d,this.supportService=f,this.router=h}ngOnInit(){this.i18n.initApplicationLanguageSettings(),this.appTypeService.observeCurrentURLForAppType(),this.platform.ready().then(()=>Ir(this,null,function*(){yield this.screenManipulationService.lockScreenOrientation(),this.offlineCheckerService.startChecking(),mr.info("Site Diary online status : ",yn.isOnline),vv.hide(),this.deviceService.isNativeIos()&&Ir(this,null,function*(){try{yield gv.setAccessoryBarVisible({isVisible:!1})}catch(n){this.logger.error("Failed to set iOS Keyboard accessory bar visibility:",n)}}),this.deviceService.isNativeAndroid()&&Ir(this,null,function*(){try{let n=window.matchMedia("(prefers-color-scheme: dark)").matches,i=n?"#000000":"#ffffff",s=n?gc.Dark:gc.Light;yield Sv.setBackgroundColor({color:i}),yield yv.setStyle({style:s})}catch(n){this.logger.error("Failed to set Android StatusBar style/background color:",n)}})})),this.appUpdateSettingsService.versionCheck(),this.deviceService.isNativeMobile()&&(Ir(this,null,function*(){try{yield mc.setEnabled({enabled:gr.production})}catch(n){this.logger.error("Failed to set FirebaseCrashlytics enabled:",n)}}),Ir(this,null,function*(){try{yield mc.setCustomKey({key:"environment",value:gr.name,type:"string"})}catch(n){this.logger.error("Failed to set custom FirebaseCrashlytics key:",n)}}),Ir(this,null,function*(){try{yield mc.log({message:"App component initialized"})}catch(n){this.logger.error("Failed to log to FirebaseCrashlytics:",n)}}))}handleResetLocalData(){return Ir(this,null,function*(){(yield this.supportService.resetLocalData())&&(this.supportService.isResetDataDialogOpen.set(!1),this.router.navigate(["/spaces"]))})}updateApp(){this.deviceService.isNativeMobile()?this.appUpdateSettingsService.goToAppStore():window.location.reload()}};e.\u0275fac=function(i){return new(i||e)($e(vn),$e(Hp),$e(xo),$e(bo),$e(xf),$e(Mi),$e(vf),$e(Co),$e(lt),$e(kc),$e(gn))},e.\u0275cmp=oo({type:e,selectors:[["app-root"]],standalone:!1,decls:7,vars:9,consts:[[3,"type","message","active","appTypeInputString"],[3,"title","primaryButtonText","secondaryButtonText"],["primaryButtonColor","destroy",3,"title","primaryButtonText","secondaryButtonText"],[3,"primaryAction","secondaryAction","title","primaryButtonText","secondaryButtonText"],["icon","",2,"display","flex","justify-content","center","align-items","center","border-radius","50%","width","60px","height","60px","background-color","#E1DBF3"],["name","download-outline",2,"color","#22234B","width","36px","height","36px","font-size","36px"],[2,"font-weight","300","font-style","light","font-size","14px","line-height","20px","letter-spacing","0%","vertical-align","middle"],["primaryButtonColor","destroy",3,"primaryAction","secondaryAction","title","primaryButtonText","secondaryButtonText"],["icon","",2,"display","flex","justify-content","center","align-items","center","border-radius","50%","width","60px","height","60px","background-color","#E0000026"],["src","assets/icons/alert-triangle.svg",2,"color","#E00000","width","36px","height","36px","font-size","36px"]],template:function(i,s){if(i&1&&(dr(0,"div"),lo(1,_2,1,4,"app-spinner",0),Qt(2,"async"),Mr(3,"router-outlet"),lo(4,k2,8,10,"app-mobile-dialog",1),Jr(),Mr(5,"app-admin-onboarding-modal"),lo(6,P2,9,12,"app-mobile-dialog",2)),i&2){let a;Ep("webapp-style",!s.deviceService.isMobile)("mobile-style",s.deviceService.isMobile),Qr(),co((a=Jt(2,7,s.spinnerService.spinner))?1:-1,a),Qr(3),co(s.appUpdateSettingsService.isUpdateRequiredDialogOpen()?4:-1),Qr(2),co(s.supportService.isResetDataDialogOpen()?6:-1)}},dependencies:[zp,Tf,Af,yf,Cp,So],encapsulation:2});let t=e;return t})();var my=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=bt({imports:[dn,Ds,Di]});let t=e;return t})();var gy=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=bt({imports:[dn,Di,Ii]});let t=e;return t})();var vy=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=bt({imports:[dn,Eo]});let t=e;return t})();var yy=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=wt({type:e}),e.\u0275inj=bt({providers:[Sf],imports:[dn,Ii,Di]});let t=e;return t})();var Sy=(()=>{let e=class e extends Kp{constructor(n){super(yp),this.databaseService=n}writeMessage(n,i){return Ir(this,null,function*(){let s=yield this.databaseService.getUserDB(),a="";if(n.additional.length>0)try{a=JSON.stringify(n.additional)}catch{a=n.additional}let o=this.getLogLevel(n.level);if(s){let l=new Date().toISOString(),c=`
66`+o+" : ["+(l+"] "+n.message)+" - "+a+` 
67`;s.logData.put(c,l)}gr.production===!1&&this.logToConsole(n),o==="Error"&&n.additional[0]!==!1&&this.throwErrorToSentry(n)})}logToConsole(n){switch(n.level){case 1:mr.debug(n.message,n.additional);break;case 2:mr.info(n.message,n.additional);break;case 4:mr.warn(n.message,n.additional);break;case 5:mr.error(n.message,n.additional);break;default:console.log(n);break}}getLogLevel(n){switch(n){case 0:return"Trace";case 1:return"Debug";case 2:return"Info";case 3:return"Log";case 4:return"Warn";case 5:return"Error";case 6:return"Fatal";case 7:return"Off";default:return"Off"}}throwErrorToSentry(n){let i=n.message;qp(i,s=>s.setExtra("error",JSON.stringify(n.additional)))}};e.\u0275fac=function(i){return new(i||e)(fe(wo))},e.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var M2="site-diary-ionic",D2="site-productivity-angular",L2="/sync/queue",Ey=(()=>{let e=class e{constructor(n,i,s,a,o,l){this.toasterService=n,this.logger=i,this.deviceService=s,this.appUpdateSettingsService=a,this.urlGiverService=o,this.spinnerService=l,this.packageInfo=mo,this.deviceService.isMobile?this.platform=M2:this.platform=D2}
67intercept(n,i){if(!n.url.startsWith(this.urlGiverService.giveAPIUrl())||n.url.includes("/oauth/token"))return i.handle(n);{let s=n.clone({headers:n.headers.set("client-version",this.packageInfo.version).set("client-platform",this.platform)});return i.handle(s).pipe(_i(a=>a.status===Nt.UPGRADE_REQUIRED||a.error?.errorCode==="UPGRADE_REQUIRED"?(this.spinnerService.deactivate(),this.appUpdateSettingsService.showUpdateRequiredDialog(a.error.message),this.isMobileQueueSyncRequest(n)?wc(()=>a):new bc):a.status===Nt.FORBIDDEN&&this.isAppUnsupported(a)?(this.spinnerService.deactivate(),this.appUpdateSettingsService.updateAppUpdateSettings(Ef.appUnsupported),this.toasterService.showInfoToaster("app.update.unsupported"),this.logger.error("The app is unsupported, user is logged out from the app",!1),new bc):wc(()=>a)))}}isMobileQueueSyncRequest(n){return this.deviceService.isMobile&&n.url.includes(L2)}isAppUnsupported(n){return n.error.message==="UNSUPPORTED_CLIENT"}};e.\u0275fac=function(i){return new(i||e)(fe(Lr),fe(lt),fe(vn),fe(Co),fe(vr),fe(bo))},e.\u0275prov=Ae({token:e,factory:e.\u0275fac});let t=e;return t})();var xy=(()=>{let e=class e{constructor(n){this.logger=n}intercept(n,i){return n.url.includes("sitediary.com/api")?(this.logger.info("[REQUEST]: ",n),i.handle(n).pipe(fn({next:s=>{s.type!==kp.Sent&&this.logger.info("[RESPONSE RECEIVED]: ",s)},error:s=>{this.logger.info("[ERROR RESPONSE]: ",s)}}))):i.handle(n)}};e.\u0275fac=function(i){return new(i||e)(fe(lt))},e.\u0275prov=Ae({token:e,factory:e.\u0275fac});let t=e;return t})();var N2="@",F2=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;
67scheduler=null;injector=jn(mp);loadingSchedulerFn=jn(B2,{optional:!0});_engine;constructor(r,n,i,s,a){this.doc=r,this.delegate=n,this.zone=i,this.animationType=s,this.moduleImpl=a}ngOnDestroy(){this._engine?.flush()}loadImpl(){let r=()=>this.moduleImpl??import("./chunk-IFXOZ5QY.js").then(i=>i),n;return this.loadingSchedulerFn?n=this.loadingSchedulerFn(r):n=r(),n.catch(i=>{throw new fp(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:s})=>{this._engine=i(this.animationType,this.doc);let a=new s(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(r,n){let i=this.delegate.createRenderer(r,n);if(i.\u0275type===0)return i;typeof i.throwOnSyntheticProps=="boolean"&&(i.throwOnSyntheticProps=!1);let s=new lp(i);return n?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let o=a.createRenderer(r,n);s.use(o),this.scheduler??=this.injector.get(vp,null,{optional:!0}),this.scheduler?.notify(10)}).catch(a=>{s.use(i)}),s}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(r){this._engine?.flush(),this.delegate.componentReplaced?.(r)}static \u0275fac=function(n){Sp()};static \u0275prov=Ae({token:t,factory:t.\u0275fac})}return t})(),lp=class{delegate;replay=[];\u0275type=1;constructor(e){this.delegate=e}use(e){if(this.delegate=e,this.replay!==null){for(let r of this.replay)r(e);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(e,r){return this.delegate.createElement(e,r)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}get destroyNode(){return this.delegate.destroyNode}appendChild(e,r){this.delegate.appendChild(e,r)}insertBefore(e,r,n,i){this.delegate.insertBefore(e,r,n,i)}removeChild(e,r,n,i){this.delegate.removeChild(e,r,n,i)}selectRootElement(e,r){return this.delegate.selectRootElement(e,r)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,r,n,i){this.delegate.setAttribute(e,r,n,i)}removeAttribute(e,r,n){this.delegate.removeAttribute(e,r,n)}addClass(e,r){this.delegate.addClass(e,r)}removeClass(e,r){this.delegate.removeClass(e,r)}setStyle(e,r,n,i){this.delegate.setStyle(e,r,n,i)}removeStyle(e,r,n){this.delegate.removeStyle(e,r,n)}setProperty(e,r,n){this.shouldReplay(r)&&this.replay.push(i=>i.setProperty(e,r,n)),this.delegate.setProperty(e,r,n)}setValue(e,r){this.delegate.setValue(e,r)}listen(e,r,n,i){return this.shouldReplay(r)&&this.replay.push(s=>s.listen(e,r,n,i)),this.delegate.listen(e,r,n,i)}shouldReplay(e){return this.replay!==null&&e.startsWith(N2)}},B2=new no("");function by(t="animations"){return Cc("NgAsyncAnimations"),dp([{provide:ao,useFactory:(e,r,n)=>new F2(e,r,n,t),deps:[io,po,so]},{provide:ks,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Cy=mo;Up({dsn:gr.sentryKey,environment:gr.name,release:`sitediary@${Cy.version}`,transport:t=>Wp(jp)(Pe(G({},t),{maxQueueSize:100})),ignoreErrors:["Error: NG0100","Cannot clone array containing an object!","TypeError: undefined is not an object (evaluating 'this.helpGuideContainer.nativeElement')","TypeError: Cannot read properties of undefined (reading 'nativeElement')","Error during locking the orientation of the screen in PORTRAIT"]});var R2=gr.ngxLoggerLevel,O2={prefix:`${vr.ASSETS_URL}i18n/`,suffix:".json?v="+Cy.version},cp=class extends window.FileReader{constructor(){return super(),this.__zone_symbol__originalInstance||this}};window.FileReader=cp;ho(tv,"fr");var Ty=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=wt({type:e,bootstrap:[dy]}),e.\u0275inj=bt({providers:[{provide:qh,useValue:O2},bp({eventCoalescing:!0}),Lp({player:()=>wy.default}),_f,Tp,ro,vr,uf,bf,ff,nf,of,hf,mf,gf,kf,pf,wf,df,Lr,Ft,ov,rf,sf,hc,pc,Mi,{provide:mn,useClass:pv,multi:!0},{provide:mn,useClass:cv,multi:!0},{provide:mn,useClass:hv,multi:!0},{provide:mn,useClass:uv,multi:!0},{provide:mn,useClass:fv,multi:!0},{provide:mn,useClass:Ey,multi:!0},{provide:mn,useClass:xy,multi:!0},{provide:wp,deps:[xo],useFactory:n=>n.currentLocale},yo,{provide:gp,useValue:Xp({showDialog:!1})},_c(Pp(),Ip()),cf(lf),by(),_c()],imports:[fo,my,mv,vy,Eo.forRoot({loader:{provide:Gp,useClass:av}}),ef.forRoot({level:R2},{writerProvider:{provide:Jp,useClass:Sy}}),Ii.forRoot({innerHTMLTemplatesEnabled:!0}),Dp,Cf,sv,Np,Fp,Zp.forRoot(),gy,yy,Mp,Yp]});let t=e;return t})();var xc=class t{constructor(){this._reboot=new ro,this.reboot$=this._reboot.asObservable()}static getbootControl(){return t.instance||(t.instance=new t),t.instance}watchReboot(){return this.reboot$}restart(){this._reboot.next(!0)}};function $2(t){let e=t;return 5}var Ay=["zh",[["\u4E0A\u5348","\u4E0B\u5348"]],void 0,[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"]],void 0,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]],void 0,[["\u516C\u5143\u524D","\u516C\u5143"]],0,[6,0],["y/M/d","y\u5E74M\u6708d\u65E5",void 0,"y\u5E74M\u6708d\u65E5EEEE"],["HH:mm","HH:mm:ss","z HH:mm:ss","zzzz HH:mm:ss"],["{1} {0}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"CNY","\xA5","\u4EBA\u6C11\u5E01",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],CNY:["\xA5"],ILR:["ILS"],JPY:["JP\xA5","\xA5"],KRW:["\uFFE6","\u20A9"],PHP:[void 0,"\u20B1"],RUR:[void 0,"\u0440."],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",$2];ho(Ay);gr.production&&void 0;var _y=()=>{Ap().bootstrapModule(Ty).then(()=>window.appBootstrap&&window.appBootstrap()).catch(t=>console.log(t))};_y();var kF=xc.getbootControl().watchReboot().subscribe(()=>_y());

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.